1 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
3 Refactor Python "gdb" module into a proper Python package, by
4 introducing a new "_gdb" module for code implemented in C, and
5 using reload/__import__ instead of exec.
6 * python/lib/gdb/__init__.py: Import * from _gdb.
7 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
8 prompt_hook, sys.argv): Moved from finish_python_initialization.
9 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
10 (packages, auto_load_packages): New list and function replacing
11 module_dict and auto-loading code, using __file__ instead of
12 gdb.PYTHONDIR and reload/__import__ instead of exec.
13 (GdbSetPythonDirectory): Replacing function of the same name
14 from finish_python_initialization, using reload/__import__ instead
15 of exec, as well as call auto_load_packages.
16 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
17 gdb_python_module and not gdb_module.
18 * python/python-internal.h (gdb_python_module): Declare.
19 * python/python.c (gdb_python_module): New global.
20 (before_prompt_hook): Check gdb_python_module and not gdb_module.
21 (_initialize_python): Rename gdb module to _gdb.
22 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
23 (finish_python_initialization): Move Python code to
24 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
27 2012-09-13 Pedro Alves <palves@redhat.com>
29 * Makefile.in (COMMON_OBS): Add registry.o.
30 * registry.c: New file.
31 * registry.h (struct registry_container): Declare.
32 (registry_data_callback): New typedef.
33 (struct registry_data, struct registry_data_registration, struct
34 registry_data_registry): New type.
35 (register_data_with_cleanup, registry_alloc_data)
36 (registry_callback_adaptor, registry_clear_data)
37 (registry_container_free_data, registry_set_data, registry_data):
39 (DEFINE_REGISTRY): Refactor structures and functions as shims over
40 the new common structures and functions.
41 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
44 2012-09-12 Doug Evans <dje@google.com>
46 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
49 2012-09-11 Doug Evans <dje@google.com>
51 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
52 .gdb_index symbol attributes if there are none.
54 2012-09-11 Joel Brobecker <brobecker@adacore.com>
56 * symtab.h (struct minimal_symbol) [has_size]: New field.
57 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
58 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
59 * printcmd.c (build_address_symbolic): Only filter out zero-sized
60 minimal symbols if the symbol's size is actually known.
61 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
62 of msymbol's size field. Add comment.
63 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
64 SET_MSYMBOL_SIZE to set the minimal symbol size.
66 2012-09-11 Joel Brobecker <brobecker@adacore.com>
68 * minsyms.c (install_minimal_symbols): Use memset to fill entire
69 minimal_symbol struct object, rather than setting some of its
72 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
74 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
75 passed_a_ptr flag when displaying typedef types.
77 2012-09-10 Joel Brobecker <brobecker@adacore.com>
79 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
80 the optimized_out flag is preserved.
82 2012-09-10 Anthony Green <green@moxielogic.com>
84 * moxie-tdep.c (moxie_analyze_prologue): Update for function
85 prologue changes in GCC.
87 2012-09-10 Keith Seitz <keiths@redhat.com>
90 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
91 (BOOL_CONVERSION_BADNESS): ... this.
92 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
93 (rank_one_type): Allow all boolean conversions
94 permitted by the standard.
96 2012-09-06 Tom Tromey <tromey@redhat.com>
98 * python/py-newobjfileevent.c (create_new_objfile_event_object):
99 Don't decref py_objfile.
101 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
103 Do not enable -lmcheck by default when Python is enabled with
105 * configure.ac: (python_has_threads) New variable, by testing
106 if WITH_THREAD is defined in Python.h.
107 Move --enable-lmcheck after --with-python.
108 Do not enable -lmcheck by default if python_has_threads=yes.
109 Warn if --enable-lmcheck and python_has_threads=yes.
110 * configure: Regenerate.
112 2012-08-31 Yao Qi <yao@codesourcery.com>
114 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
115 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
116 Update some commands.
117 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
118 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
121 2012-08-31 Yao Qi <yao@codesourcery.com>
123 * mi/mi-cmds.c (mi_cmds): Add 'static'.
125 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
127 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
129 2012-08-29 Doug Evans <dje@google.com>
131 * main.c (print_gdb_help): Remove reference to
132 --use-deprecated-index-sections.
134 2012-08-28 Yao Qi <yao@codesourcery.com>
136 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
137 (init_cmds): Call add_setshow_uinteger_cmd for command
138 'max-user-call-depth'.
139 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
140 declaration of 'max_user_call_depth'.
141 * frame.c (backtrace_limit): Add 'unsigned'.
142 (_initialize_frame): Call add_setshow_uinteger_cmd for command
144 * remote.c (remoteaddresssize): Add 'unsigned'.
145 (remote_address_masked): Change local var 'address_size' to
147 (_initialize_remote): Call add_setshow_uinteger_cmd for
149 * top.c (history_size): Add 'unsigned'.
150 (show_commands): Change local variables to 'unsigned'.
151 (set_history_size_command): Don't check history_size is negative.
152 Adjust the condition to call unstifle_history and set history_size
155 2012-08-28 Pedro Alves <palves@redhat.com>
159 * infcmd.c (default_print_one_register_info): New, factored out
160 from default_print_registers_info.
161 (default_print_registers_info): Use it. Mark value unavailable if
163 (registers_info): Print user registers with
164 default_print_one_register_info.
166 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
169 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
170 is not NULL before referencing it.
172 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
174 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
175 variable pc. Call find_pc_line instead of find_pc_overlay, restore
178 2012-08-27 Eli Zaretskii <eliz@gnu.org>
179 Jan Kratochvil <jan.kratochvil@redhat.com>
181 * auto-load.c (auto_load_objfile_script): Rename to ...
182 (auto_load_objfile_script_1): ... here, change variable realname to
183 parameter realname, document it, add return value, add variable retval.
184 (auto_load_objfile_script): New function.
186 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
188 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
189 followed by a whitespace.
191 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
194 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
195 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
196 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
199 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
201 * memattr.c (create_mem_region): Fix memory region overlapping
204 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
206 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
207 with xmalloc/cleanup.
208 * mt-tdep.c (mt_push_dummy_call): Likewise.
209 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
210 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
212 2012-08-24 Yao Qi <yao@codesourcery.com>
214 * jv-exp.y (push_expression_name): Add "." at the end of error
217 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
219 Document how to return from "python-interactive" to GDB.
220 * python/python.c (_initialize_python): Update documentation.
222 2012-08-23 Pedro Alves <palves@redhat.com>
224 * infrun.c (_initialize_infrun) <handle command help text>:
225 Mention that multiple signals are supported.
227 2012-08-23 Pedro Alves <palves@redhat.com>
229 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
232 2012-08-23 Yao Qi <yao@codesourcery.com>
234 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
235 (tfind_1): Don't call registers_changed, set_traceframe_num,
236 and clear_traceframe_info.
237 Call set_current_traceframe.
238 (set_current_traceframe): call set_traceframe_num.
240 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
242 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
243 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
245 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
247 Enable readline in Python in a GDB-specific way and block the
248 standard Python readline module to prevent conflicts with GDB.
249 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
250 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
251 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
252 * python/py-gdb-readline.c: New file.
253 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
255 * python/python.c (_initialize_python): Call
256 gdbpy_initialize_gdb_readline.
258 2012-08-22 Keith Seitz <keiths@redhat.com>
260 * defs.h: Include build-gnulib/config.h
262 2012-08-22 Joseph Myers <joseph@codesourcery.com>
264 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
267 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
269 Add a new "python-interactive" command that starts a standard
270 Python interactive prompt with "pi" as alias, and add "py" as
271 an alias to "python".
272 * NEWS: Mention the new commands.
273 * python/python.c (eval_python_command): New function.
274 (python_interactive_command): For "python-interactive" with
275 arguments, call eval_python_command. For "python-interactive"
276 without arguments, call PyRun_InteractiveLoop.
277 (_initialize_python): Add "python-interactive" command with
278 "pi" as alias, and add "py" as an alias to "python".
280 2012-08-22 Tom Tromey <tromey@redhat.com>
282 * defs.h (quit_flag): Don't declare.
283 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
284 (QUIT): Use new functions.
285 * event-top.c (command_handler): Use clear_quit_flag.
286 (handle_sigint): Use set_quit_flag.
287 (async_request_quit): Use check_quit_flag. Don't check
289 * exceptions.c (throw_exception): Use clear_quit_flag.
290 * main.c (captured_main): Use clear_quit_flag.
291 * python/python.c (clear_quit_flag, set_quit_flag)
292 (check_quit_flag): New functions.
293 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
295 * remote.c (remote_wait_as): Use check_quit_flag,
297 (remote_start_remote): Call QUIT.
298 * symfile.c (load_progress): Use check_quit_flag.
299 * top.c (command_loop): Use clear_quit_flag.
300 (command_line_input): Call QUIT.
301 * utils.c (quit_flag): Conditionally define.
302 (clear_quit_flag, check_quit_flag, set_quit_flag): New
304 (prompt_for_continue): Call QUIT. Use quit, not
306 * remote-mips.c (mips_expect_timeout): Call QUIT.
307 * monitor.c (monitor_expect): Call QUIT.
309 2012-08-22 Tom Tromey <tromey@redhat.com>
311 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
312 (async_init_signals): Update.
313 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
314 (SIGWINCH_HANDLER_BODY): Remove.
316 2012-08-22 Tom Tromey <tromey@redhat.com>
318 * jit.c (jit_object_close_impl): Don't malloc the objfile
320 * objfiles.c (allocate_objfile): Don't malloc the objfile
322 (free_objfile): Don't free the objfile name.
323 * objfiles.h (struct objfile) <name>: Update comment.
324 * symfile.c (reread_symbols): Fix reference counting. Don't
327 2012-08-22 Tom Tromey <tromey@redhat.com>
329 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
330 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
331 (symfile_bfd_open): Likewise.
332 (generic_load): Likewise.
333 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
334 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
336 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
338 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
339 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
340 (pmon_load_fast): Likewise.
341 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
342 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
343 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
344 (macho_check_dsym): Likewise.
345 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
346 (m32r_upload_command): Likewise.
347 * gdb_bfd.h (gdb_bfd_cache): Declare.
348 * gdb_bfd.c (struct gdb_bfd_data): New.
349 (gdb_bfd_cache): New global.
350 (struct gdb_bfd_cache_search): New.
351 (hash_bfd): New function.
353 (gdb_bfd_open): Likewise.
354 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
355 (gdb_bfd_unref): Remove closed BFD from cache. Update for
357 * exec.c (exec_file_attach): Use gdb_bfd_open.
358 * dsrec.c (load_srec): Use gdb_bfd_open.
360 2012-08-22 Tom Tromey <tromey@redhat.com>
362 * dwarf2read.c (macro_start_file): Update.
363 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
364 (free_objfile_per_bfd_storage): Destroy macro_cache.
365 (allocate_objfile, free_objfile): Update.
366 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
368 (struct objfile) <macro_cache>: Remove.
369 * symfile.c (reread_symbols): Update.
370 * symmisc.c (print_symbol_bcache_statistics): Update.
371 (print_objfile_statistics): Update.
373 2012-08-22 Tom Tromey <tromey@redhat.com>
375 * elfread.c (elf_symtab_read): Update.
376 * objfiles.c (objfiles_bfd_data): New global.
377 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
378 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
379 (allocate_objfile, free_objfile): Update.
380 (_initialize_objfiles): Initialize objfiles_bfd_data.
381 * objfiles.h (struct objfile_per_bfd_storage): New.
382 (struct objfile) <per_bfd>: New field.
383 <filename_cache>: Remove.
384 (set_objfile_per_bfd): Declare.
385 * symfile.c (reread_symbols): Update. Call
387 (allocate_symtab): Update.
388 * symmisc.c (print_symbol_bcache_statistics): Update.
389 (print_objfile_statistics): Print the size of the BFD obstack.
391 2012-08-22 Tom Tromey <tromey@redhat.com>
393 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
394 * gdb_bfd.c: Use DEFINE_REGISTRY.
395 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
396 (gdb_bfd_ref): Call bfd_alloc_data.
397 (gdb_bfd_unref): Call bfd_free_data.
399 2012-08-22 Tom Tromey <tromey@redhat.com>
401 * registry.h (struct registry_fields): New.
402 (REGISTRY_FIELDS): Redefine.
403 (REGISTRY_ACCESS_FIELD): New macro.
404 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
407 2012-08-22 Tom Tromey <tromey@redhat.com>
409 * auto-load.c (_initialize_auto_load): Update.
410 * solib-svr4.c (_initialize_svr4_solib): Update
411 * solib-dsbt.c (_initialize_dsbt_solib): Update.
412 * solib-darwin.c (_initialize_darwin_solib): Update.
413 * registry.h: New file.
414 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
415 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
416 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
417 (register_program_space_data_with_cleanup)
418 (register_program_space_data, program_space_alloc_data)
419 (clear_program_space_data, set_program_space_data)
420 (program_space_data): Don't declare.
421 * progspace.c: Use DEFINE_REGISTRY.
422 (struct program_space_data, struct
423 program_space_data_registration, struct
424 program_space_data_registry, program_space_data_registry)
425 (register_program_space_data_with_cleanup)
426 (register_program_space_data, program_space_alloc_data)
427 (program_space_free_data, clear_program_space_data)
428 (set_program_space_data, program_space_data): Remove.
429 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
430 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
431 (register_objfile_data_with_cleanup, register_objfile_data)
432 (clear_objfile_data, set_objfile_data, objfile_data): Don't
434 * objfiles.c: Use DEFINE_REGISTRY.
435 (struct objfile_data, struct objfile_data_registration, struct
436 objfile_data_registry, objfile_data_registry)
437 (register_objfile_data_with_cleanup, register_objfile_data)
438 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
439 (set_objfile_data, objfile_data): Remove.
440 (_initialize_objfiles): Update.
441 * jit.c (_initialize_jit): Update.
442 * inflow.c (_initialize_inflow): Update.
443 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
444 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
445 (register_inferior_data_with_cleanup, register_inferior_data)
446 (clear_inferior_data, set_inferior_data, inferior_data): Don't
448 * inferior.c: Use DEFINE_REGISTRY.
449 (struct inferior_data, struct inferior_data_registration, struct
450 inferior_data_registry, inferior_data_registry)
451 (register_inferior_data_with_cleanup, register_inferior_data)
452 (inferior_alloc_data, inferior_free_data clear_inferior_data)
453 (set_inferior_data, inferior_data): Remove.
454 * auxv.c (_initialize_auxv): Update.
455 * ada-lang.c (_initialize_ada_language): Update.
456 * breakpoint.c (_initialize_breakpoint): Update.
457 * i386-nat.c (i386_use_watchpoints): Update.
459 2012-08-22 Tom Tromey <tromey@redhat.com>
461 * exec.c (exec_close, exec_file_attach): Update.
462 (add_to_section_table): Initialize 'key' field.
463 (add_target_sections, remove_target_sections): Add 'key' argument.
464 * exec.h (add_target_sections, remove_target_sections): Add
466 * solib.c (solib_map_sections, update_solib_list, clear_solib)
467 (reload_shared_libraries_1): Update.
468 * target.h (struct target_section) <key>: New field.
470 2012-08-22 Tom Tromey <tromey@redhat.com>
472 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
474 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
476 * symfile.c (allocate_symtab): Use host_address_to_string
477 function instead of cast of pointer to long which is not
478 compatible with x86_64-w64-mingw32 build.
480 2012-08-19 Andrew Pinski <apinski@cavium.com>
482 * mips-tdep.c (is_octeon): New function.
483 (is_octeon_bbit_op): New function.
484 (mips32_next_pc): Handle Octeon's bbit instructions.
485 (mips32_instruction_has_delay_slot): Likewise.
487 2012-08-19 Andrew Pinski <apinski@cavium.com>
489 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
492 2012-08-19 Andrew Pinski <apinski@cavium.com>
494 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
496 2012-08-19 Keith Seitz <keiths@redhat.com>
499 * c-typeprint.c (c_type_print_varspec_prefix): Pass
500 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
502 2012-08-18 Eli Zaretskii <eliz@gnu.org>
504 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
505 The typo broke "make TAGS".
507 2012-08-17 Joel Brobecker <brobecker@adacore.com>
511 2012-08-17 Keith Seitz <keiths@redhat.com>
514 * gdbtypes.c (strict_type_checking): New variable.
515 (show_strict_type_checking): New function.
516 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
517 if strict type checking is disabled.
518 (_initialize_gdbtypes): Add "check type" subcommand.
519 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
521 2012-08-17 Keith Seitz <keiths@redhat.com>
523 * language.h (type_mode): Remove.
524 (type_check): Remove.
525 (struct language_defn): Remove la_type_check.
526 (STRICT_TYPE): Remove unused macro.
527 (type_error): Remove.
528 * language.c (set_type_range_case): Renamed to ...
529 (set_range_case): ... this. Update all callers.
530 Remove type_mode/type_check.
532 (type_check): Remove.
533 (show_type_command): Remove.
534 (set_type_command): Remove.
535 (language_info): Remove type checking output.
536 (type_error): Remove unused function.
537 (range_error): Update comment.
538 (unknown_language_defn): Remove la_type_check.
539 (auto_language_defn): Likewise.
540 (local_language_defn): Likewise.
541 (_initialize_language): Remove "check type" subcommand.
542 * ada-lang.c (ada_language_defn): Remove la_type_check.
543 * c-lang.c (c_language_defn): Likewise.
544 (cplus_language_defn): Likewise.
545 (asm_language_defn): Likewise.
546 (minimal_language_defn): Likewise.
547 * d-lang.c (d_language_defn): Likewise.
548 * f-lang.c (f_language_defn): Likewise.
549 * go-lang.c (go_language_defn): Likewise.
550 * jv-lang.c (java_language_defn): Likewise.
551 * m2-lang.c (m2_language_defn): Likewise.
552 * objc-lang.c (objc_language_defn): Likewise.
553 * opencl-lang.c (opencl_language_defn): Likewise.
554 * p-lang.c (pascal_language_defn): Likewise.
556 2012-08-16 Mike Frysinger <vapier@gentoo.org>
558 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
560 2012-08-16 Joel Brobecker <brobecker@adacore.com>
562 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
564 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
565 using the regache. Use ia64_hpux_get_register_from_save_state_t
566 to access the bsp and bspstore registers if not.
568 2012-08-16 Joel Brobecker <brobecker@adacore.com>
570 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
571 * breakpoint.c (detach_breakpoints): Change pid parameter into
572 a ptid. Adjust code accordingly.
573 * infrun.c (handle_inferior_event): Delete variable child_pid.
574 Update call to detach_breakpoints to pass the child ptid for
576 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
577 assert that inferior_ptid's lwp is zero.
578 (linux_handle_extended_wait): Update call to detach_breakpoints.
579 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
582 2012-08-16 Joel Brobecker <brobecker@adacore.com>
584 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
585 parent, only call detach_breakpoints if tts.tts_event ==
588 2012-08-16 Joel Brobecker <brobecker@adacore.com>
590 * dwarf2-frame.c (dwarf2_frame_cache): Use
591 get_frame_address_in_block instead of get_frame_pc as
592 the bound for executing the frame's FDE.
594 2012-08-16 Yao Qi <yao@codesourcery.com>
596 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
597 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
598 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
599 (c_type_print_varspec_suffix): Likewise.
600 * eval.c (evaluate_subexp_standard): Likewise.
601 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
602 (f_type_print_varspec_suffix): Likewise.
603 * gdbtypes.c (is_scalar_type): Likewise.
604 (recursive_dump_type): Likewise.
605 * infcall.c (value_arg_coerce): Likewise.
606 * m2-valprint.c (m2_val_print): Likewise.
607 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
608 (pascal_type_print_varspec_suffix): Likewise.
609 (pascal_type_print_base): Likewise.
610 * p-valprint.c (pascal_val_print): Likewise.
611 (pascal_val_print): Likewise.
612 * valops.c (value_slice): Likewise.
613 * valprint.c (scalar_type_p): Likewise.
614 * valarith.c (value_bitstring_subscript): Remove.
615 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
616 Remove comment on TYPE_CODE_BITSTRING.
618 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
621 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
624 2012-08-16 Yao Qi <yao@codesourcery.com>
626 * tracepoint.c (trace_find_none_command): Remove.
627 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
629 2012-08-16 Yao Qi <yao@codesourcery.com>
631 * remote.c (handle_notification): Remove parameter 'length'.
632 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
634 2012-08-15 Keith Seitz <keiths@redhat.com>
636 * gdbtypes.c (opaque_type_resolution): Make static.
638 (overload_debug): Add missing comment.
639 (show_opaque_type_resolution): Likewise.
640 (show_overload_debug): Likewise.
641 (print_bit_vector): Remove unnecessary forward declaration.
642 (print_arg_types): Likewise.
643 (dump_fn_fieldlists): Likewise.
644 (print_cplus_stuff): Likewise.
646 2012-08-15 Tom Tromey <tromey@redhat.com>
648 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
649 (gdb_bfd_ref): Initialize new field.
650 (gdb_bfd_unref): Unref the archive BFD.
651 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
654 2012-08-15 Tom Tromey <tromey@redhat.com>
657 * python/py-bpevent.c (create_breakpoint_event_object): Update
659 * python/py-event.c (evpy_add_attribute): Update comment.
660 * python/py-exitedevent.c (create_exited_event_object): Fix
661 reference counting and error handling.
662 * python/py-newobjfileevent.c (create_new_objfile_event_object):
663 Fix reference counting.
664 * python/py-signalevent.c (create_signal_event_object): Fix
665 reference counting and error handling.
666 * python/py-stopevent.c (emit_stop_event): Fix reference
668 * python/py-threadevent.c (get_event_thread): Return a
670 * python/py-type.c (convert_field): Fix reference counting.
672 2012-08-15 Tom Tromey <tromey@redhat.com>
674 * dwarf2read.c (dwarf_decode_macro_bytes)
675 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
678 2012-08-14 Mike Frysinger <vapier@gentoo.org>
680 * infcmd.c (_initialize_infcmd): Update help text for the signal,
681 stepi, nexti, finish, next, step, jump, and continue commands.
682 * infrun.c (_initialize_infrun): Update help text for the handle
685 2012-08-14 Doug Evans <dje@google.com>
687 * gdbtypes.c (struct extra): Delete, unused.
689 * gdbtypes.c: Whitespace cleanup.
690 (address_space_name_to_int): Remove "extern" from definition.
691 (_initialize_gdbtypes): Declare with initialize_file_ftype.
693 * gdbtypes.c (make_pointer_type): Remove redundant setting of
694 TYPE_POINTER_TYPE (type).
696 2012-08-14 Gary Benson <gbenson@redhat.com>
698 * solib-svr4.c (svr4_free_library_list): Use free_so.
700 2012-08-13 Mike Frysinger <vapier@gentoo.org>
702 * .gitignore: Add go-exp.c.
704 2012-08-13 Doug Evans <dje@google.com>
706 * value.c (show_convenience): Tweak comment.
707 (_initialize_values): Mention convenience functions in the help text
708 for "show convenience".
710 2012-08-13 Yao Qi <yao@codesourcery.com>
712 * std-operator.def: Remove TERNOP_SLICE_COUNT.
713 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
715 * eval.c (evaluate_subexp_standard): Likewise.
716 * expprint.c (print_subexp_standard): Likewise.
717 (dump_subexp_body_standard): Likewise.
718 * parse.c (operator_length_standard): Likewise.
720 2012-08-13 Yao Qi <yao@codesourcery.com>
722 * std-operator.def: Remove OP_BITSTRING.
723 * breakpoint.c (watchpoint_exp_is_const): Update.
724 * eval.c (evaluate_subexp_standard): Remove handling to
726 * expprint.c (print_subexp_standard): Likewise.
727 (dump_subexp_body_standard): Likewise.
728 * parse.c (operator_length_standard): Likewise.
729 * valops.c (value_bitstring): Remove.
730 * value.h: Remove the declaration of 'value_bitstring'.
732 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
734 * linespec.c (find_methods): Remove unused variables `i1' and
736 (decode_line_full): Likewise for `arg_start'.
738 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
740 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
741 (zlib_decompress_section): Likewise for `section_data'.
742 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
744 2012-08-10 Doug Evans <dje@google.com>
746 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
747 * NEWS: Document them.
748 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
750 * python/py-type.c (typy_array_1): New function.
751 (typy_array): Call it.
752 (typy_vector): New function.
753 (type_object_methods): Add "vector".
754 * python/lib/gdb/function/__init__.py: New file.
755 * python/lib/gdb/function/strfns.py: New file.
757 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
759 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
760 for TYPE_FIELD_BITPOS.
761 (typy_get_sizeof): Likewise for TYPE_LENGTH.
763 2012-08-10 Mike Frysinger <vapier@gentoo.org>
766 * common/vec.h (VEC_merge): Define.
767 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
768 (DEF_VEC_ALLOC_FUNC_P): Likewise.
769 (DEF_VEC_ALLOC_FUNC_O): Likewise.
770 * completer.c: Include gdb_signals.h.
771 (signal_completer): Define.
772 * completer.h (signal_completer): Add prototype.
773 * infcmd.c (_initialize_infcmd): Assign the command
774 completer for "signal" to handle_completer.
775 * infrun.c: Include completer.h.
776 (handle_completer): Define.
777 (_initialize_infrun): Declare a new local variable c. Store the
778 result of add_com("handle") to it. Assign the command
779 completer for "handle" to handle_completer.
781 2012-08-09 Yao Qi <yao@codesourcery.com>
783 * cli/cli-decode.c (set_cmd_prefix): New.
784 (lookup_cmd_for_prefixlist): New.
785 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
786 of each cmd_list_element in *prefixlist.
787 (add_setshow_cmd_full): set_cmd_prefix.
788 (add_alias_cmd): Likewise.
789 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
790 Declare 'auto_boolean_enums'.
791 * cli/cli-setshow.c: Include "observer.h".
792 (notify_command_param_changed_p): New.
793 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
795 (do_setshow_command): Split it to ...
796 (do_set_command, do_show_command): ... them. New.
797 (do_set_command): Call observer_notify_command_param_changed if
798 notify_command_param_changed_p returns true.
799 (cmd_show_list): Caller update.
800 * auto-load.c (set_auto_load_cmd): Likewise.
801 * remote.c (show_remote_cmd): Likewise.
802 * cli/cli-setshow.h: Update declarations.
803 * top.c (execute_command): Call do_set_command and do_show_command.
805 * NEWS: Mention new MI notification.
806 * mi/mi-interp.c: Declare mi_command_param_changed.
807 (mi_interpreter_init): Attach mi_command_param_changed to
808 observer command_param_changed.
809 (mi_command_param_changed): New.
810 Remove mi_suppress_breakpoint_notifications.
811 Define global variable mi_suppress_notification.
812 (mi_breakpoint_created): Update.
813 (mi_breakpoint_deleted): Likewise.
814 (mi_breakpoint_modified): Likewise.
815 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
816 'gdb-set' and set mi_suppress_notification.
817 * mi/mi-main.h: (mi_suppress_notification): New struct.
819 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
820 Jan Kratochvil <jan.kratochvil@redhat.com>
822 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
824 2012-08-09 Yao Qi <yao@codesourcery.com>
826 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
827 (skiplist): Move it to skip.c.
828 (init_cmd_lists): Remove code setting enablebreaklist and
830 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
831 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
833 * gdbcmd.h: Likewise.
834 * skip.c (_initialize_step_skip): Move 'skiplist' from
837 2012-08-09 Yao Qi <yao@codesourcery.com>
839 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
840 * gnu-nat.c, symfile.c: Likewise.
842 2012-08-08 Aaron Gamble <agamble@google.com>
844 * utils.c (prompt_for_continue_wait_time): New static global.
845 (make_command_stats_cleanup): Initialize it.
846 (report_command_stats): Subtract time waiting for user.
847 (prompt_for_continue): Track time waiting for user.
848 (defaulted_query): Track time waiting for user.
850 2012-08-08 Doug Evans <dje@google.com>
852 * eval.c (evaluate_subexp_standard): Fix thinko in handling
854 * expprint.c (print_subexp_standard, case OP_TYPE): New.
855 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
856 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
857 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
858 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
859 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
861 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
862 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
863 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
864 (dump_prefix_expression): Handle OP_TYPE.
866 2012-08-08 Keith Seitz <keiths@redhat.com>
868 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
871 2012-08-08 Doug Evans <dje@google.com>
873 * linux-thread-db.c: #include "gdb_vecs.h".
874 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
876 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
877 (thread_db_load_search): Use a vector to iterate over path elements.
878 Handle text appearing after "$pdir".
880 * gdb_string.h: Moved to ...
881 * common/gdb_string.h: ... here.
882 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
883 gdb_string.h and gdb_assert.h.
885 2012-08-08 Yao Qi <yao@codesourcery.com>
887 * tic6x-tdep.c (tic6x_register_to_value): Remove.
888 (tic6x_value_to_register): Likewise.
889 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
890 and set_gdbarch_value_to_register.
892 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
893 Jean-Marc Saffroy <saffroy@gmail.com>
896 * defs.h (find_memory_region_ftype): New comment. New arg modified.
897 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
898 * gcore.c (gcore_create_callback): New function comment. Add modified
899 parameter. Only write modified regions. Set SEC_READONLY exactly
900 according to MODIFIED.
901 (objfile_find_memory_regions): Ignore separate debug info files. Ass
902 the passed modified value to FUNC.
903 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
904 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
905 first. New variables modified and has_anonymous. Parse the lines of
906 smaps file. Add the passed MODIFIED value to FUNC.
907 * procfs.c (find_memory_regions_callback): Add the passed modified
910 2012-08-06 Tom Tromey <tromey@redhat.com>
912 * dwarf2-frame.c (clear_pointer_cleanup): New function.
913 (dwarf2_frame_cache): Use it.
914 * frame-unwind.h (frame_sniffer_ftype): Document prologue
915 cache initialization constraint.
917 2012-08-06 Tom Tromey <tromey@redhat.com>
920 * varobj.c (update_dynamic_varobj_children): Don't call
923 2012-08-06 Tom Tromey <tromey@redhat.com>
926 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
928 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
930 * NEWS: New entry for 'cd' default parameters.
931 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
933 2012-08-03 Tom Tromey <tromey@redhat.com>
935 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
938 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
940 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
941 to attempting lseek/write.
942 (inf_child_fileio_pread): Likewise for pread.
944 2012-08-02 Yao Qi <yao@codesourcery.com>
946 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
947 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
948 add_setshow_zinteger_cmd.
949 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
950 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
951 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
952 instead of add_setshow_zinteger_cmd.
953 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
954 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
955 instead of add_setshow_zinteger_cmd.
956 * frame.c (frame_debug): Add 'unsigned'.
957 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
958 add_setshow_zinteger_cmd.
959 * frame.h: Update the declaration of 'frame_debug'.
960 * gdbtypes.c (overload_debug): Add 'unsigned'.
961 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
962 add_setshow_zinteger_cmd.
963 * inferior.h: Update declaration of 'debug_infrun'.
964 * infrun.c (debug_infrun): Add 'unsigned'.
965 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
966 add_setshow_zinteger_cmd.
967 * jit.c (jit_debug): Add 'unsigned'.
968 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
969 add_setshow_zinteger_cmd.
970 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
971 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
972 instead of add_setshow_zinteger_cmd.
973 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
974 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
975 add_setshow_zinteger_cmd.
976 * machoread.c (mach_o_debug_level): Add 'unsigned'.
977 (_initialize_machoread): Call add_setshow_zuinteger_cmd
978 instead of add_setshow_zinteger_cmd.
979 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
980 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
981 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
982 intead of add_setshow_zinteger_cmd.
983 * mips-tdep.c (mips_debug): Add 'unsigned'.
984 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
985 instead of add_setshow_zinteger_cmd.
986 * monitor.c (monitor_debug): Add 'unsigned'.
987 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
988 add_setshow_zinteger_cmd.
989 * observer.c (observer_debug): Add 'unsigned'.
990 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
991 add_setshow_zinteger_cmd.
992 * parse.c (expressiondebug): Add 'unsigned'.
993 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
994 add_setshow_zinteger_cmd.
995 * record.c (record_debug): Add 'unsigned'.
996 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
997 add_setshow_zinteger_cmd.
998 * record.h: Update the declaration of 'record_debug'.
999 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1000 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1001 add_setshow_zinteger_cmd.
1002 * serial.c (global_serial_debug_p): Add 'unsigned'.
1003 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1004 add_setshow_zinteger_cmd.
1005 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1006 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1007 add_setshow_zinteger_cmd.
1008 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1009 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1010 add_setshow_zinteger_cmd.
1011 * target.c (targetdebug): Add 'unsigned'.
1012 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1013 add_setshow_zinteger_cmd.
1014 * valops.c (overload_debug): Add 'unsigned'.
1015 * varobj.c (varobjdebug): Add 'unsigned'.
1016 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1017 add_setshow_zinteger_cmd.
1018 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1019 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1020 instead of add_setshow_zinteger_cmd.
1022 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1023 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1024 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1025 instead of add_setshow_zinteger_cmd.
1026 * gdbarch.c, gdbarch.h: Re-generated.
1028 2012-08-02 Yao Qi <yao@codesourcery.com>
1030 * nto-tdep.c: Don't include cli/cli-decode.h and
1032 (_initialize_nto_tdep): Remove.
1033 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1035 Remove macro nto_internal_debugging.
1037 2012-08-01 Richard Henderson <rth@redhat.com>
1039 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1040 (mep-*-*) [gdb_target_obs]: Likewise.
1042 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1044 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1045 linux_get_siginfo_type.
1047 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1049 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1051 (call_function_by_hand) <ON_STACK>: Call write_memory with
1052 gdbarch_breakpoint_from_pc, if possible.
1053 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1056 2012-07-31 Yao Qi <yao@codesourcery.com>
1058 * tracepoint.c: Add 'static' for some variables.
1060 2012-07-31 Yao Qi <yao@codesourcery.com>
1062 * go32-nat.c: Declare _initialize_go32_nat.
1063 * ser-go32.c: Declare _initialize_ser_dos.
1064 * top.c (do_chdir_cleanup): Add 'static'.
1066 2012-07-30 Keith Seitz <keiths@redhat.com>
1068 * linespec.c (linespec_lex_number): A number followed
1069 by quotes is a valid number, too.
1071 2012-07-30 Tom Tromey <tromey@redhat.com>
1073 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1075 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1077 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1078 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1080 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1082 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1083 invalid or reevaluated to prevent prevent references to possibly
1084 delete'd type objects being left in the varobj.
1086 2012-07-27 Tom Tromey <tromey@redhat.com>
1087 Jan Kratochvil <jan.kratochvil@redhat.com>
1089 * copying.awk: Print buffer-read-only and vi ro markers.
1090 * copying.c: Rebuild.
1091 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1092 * gdbarch.c, gdbarch.h: Rebuild.
1093 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1094 buffer-read-only and vi ro markers.
1095 * features/arm-with-iwmmxt.c: Rebuild.
1096 * features/arm-with-m-fpa-layout.c: Rebuild.
1097 * features/arm-with-m-vfp-d16.c: Rebuild.
1098 * features/arm-with-m.c: Rebuild.
1099 * features/arm-with-neon.c: Rebuild.
1100 * features/arm-with-vfpv2.c: Rebuild.
1101 * features/arm-with-vfpv3.c: Rebuild.
1102 * features/i386/amd64-avx-linux.c: Rebuild.
1103 * features/i386/amd64-avx.c: Rebuild.
1104 * features/i386/amd64-linux.c: Rebuild.
1105 * features/i386/amd64.c: Rebuild.
1106 * features/i386/i386-avx-linux.c: Rebuild.
1107 * features/i386/i386-avx.c: Rebuild.
1108 * features/i386/i386-linux.c: Rebuild.
1109 * features/i386/i386-mmx-linux.c: Rebuild.
1110 * features/i386/i386-mmx.c: Rebuild.
1111 * features/i386/i386.c: Rebuild.
1112 * features/i386/x32-avx-linux.c: Rebuild.
1113 * features/i386/x32-avx.c: Rebuild.
1114 * features/i386/x32-linux.c: Rebuild.
1115 * features/i386/x32.c: Rebuild.
1116 * features/mips-dsp-linux.c: Rebuild.
1117 * features/mips-linux.c: Rebuild.
1118 * features/mips64-dsp-linux.c: Rebuild.
1119 * features/mips64-linux.c: Rebuild.
1120 * features/rs6000/powerpc-32.c: Rebuild.
1121 * features/rs6000/powerpc-32l.c: Rebuild.
1122 * features/rs6000/powerpc-403.c: Rebuild.
1123 * features/rs6000/powerpc-403gc.c: Rebuild.
1124 * features/rs6000/powerpc-405.c: Rebuild.
1125 * features/rs6000/powerpc-505.c: Rebuild.
1126 * features/rs6000/powerpc-601.c: Rebuild.
1127 * features/rs6000/powerpc-602.c: Rebuild.
1128 * features/rs6000/powerpc-603.c: Rebuild.
1129 * features/rs6000/powerpc-604.c: Rebuild.
1130 * features/rs6000/powerpc-64.c: Rebuild.
1131 * features/rs6000/powerpc-64l.c: Rebuild.
1132 * features/rs6000/powerpc-7400.c: Rebuild.
1133 * features/rs6000/powerpc-750.c: Rebuild.
1134 * features/rs6000/powerpc-860.c: Rebuild.
1135 * features/rs6000/powerpc-altivec32.c: Rebuild.
1136 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1137 * features/rs6000/powerpc-altivec64.c: Rebuild.
1138 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1139 * features/rs6000/powerpc-cell32l.c: Rebuild.
1140 * features/rs6000/powerpc-cell64l.c: Rebuild.
1141 * features/rs6000/powerpc-e500.c: Rebuild.
1142 * features/rs6000/powerpc-e500l.c: Rebuild.
1143 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1144 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1145 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1146 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1147 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1148 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1149 * features/rs6000/powerpc-vsx32.c: Rebuild.
1150 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1151 * features/rs6000/powerpc-vsx64.c: Rebuild.
1152 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1153 * features/rs6000/rs6000.c: Rebuild.
1154 * features/s390-linux32.c: Rebuild.
1155 * features/s390-linux32v1.c: Rebuild.
1156 * features/s390-linux32v2.c: Rebuild.
1157 * features/s390-linux64.c: Rebuild.
1158 * features/s390-linux64v1.c: Rebuild.
1159 * features/s390-linux64v2.c: Rebuild.
1160 * features/s390x-linux64.c: Rebuild.
1161 * features/s390x-linux64v1.c: Rebuild.
1162 * features/s390x-linux64v2.c: Rebuild.
1163 * features/tic6x-c62x-linux.c: Rebuild.
1164 * features/tic6x-c62x.c: Rebuild.
1165 * features/tic6x-c64x-linux.c: Rebuild.
1166 * features/tic6x-c64x.c: Rebuild.
1167 * features/tic6x-c64xp-linux.c: Rebuild.
1168 * features/tic6x-c64xp.c: Rebuild.
1170 2012-07-27 Tom Tromey <tromey@redhat.com>
1172 * c-exp.y (classify_name): Avoid assignment in condition.
1174 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1176 * amd64-windows-tdep.c: Include "frame.h".
1177 (amd64_windows_skip_trampoline_code): New function.
1178 (amd64_windows_init_abi): Add trampoline registration.
1180 2012-07-27 Yao Qi <yao@codesourcery.com>
1182 * tracepoint.c (cur_traceframe_number): Remove.
1183 (set_tfile_traceframe): Remove.
1184 (tfile_trace_find, tfile_fetch_registers): Update callers.
1185 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1186 (tfile_open, tfile_trace_find): Likewise.
1188 2012-07-27 Yao Qi <yao@codesourcery.com>
1190 * thread.c (switch_to_thread): Don't call registers_changed.
1192 2012-07-26 Tom Tromey <tromey@redhat.com>
1194 * Makefile.in (SFILES): Remove objc-exp.y.
1195 (YYFILES): Remove objc-exp.c.
1196 (YYOBJ): Remove objc-exp.o.
1197 (local-maintainer-clean): Don't mention objc-exp.c.
1198 * c-exp.y: Include objc-lang.h.
1199 (%union) <class>: New field.
1200 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1201 (exp): Clone subscript production for OBJC_LBRAC. Add various
1202 Objective C productions.
1203 (msglist, msgarglist, msgarg): New productions.
1204 (array_mod, func_mod, operator): Clone productions for
1206 (parse_string_or_char): Handle '@' strings.
1207 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1208 (classify_name): Check la_name_of_this. Recognize ObjC class
1210 * objc-exp.y: Remove.
1211 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1212 * objc-lang.h (objc_parse, objc_error): Don't declare.
1214 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1216 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1218 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1220 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1223 2012-07-26 Tom Tromey <tromey@redhat.com>
1225 * copying.c: Rebuild.
1226 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1229 2012-07-26 Tom Tromey <tromey@redhat.com>
1231 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1233 (print_objfile_statistics): Likewise.
1234 (maintenance_print_symbols): Likewise.
1235 (maintenance_print_msymbols): Likewise.
1236 (maintenance_print_objfiles): Likewise.
1237 * psymtab.c (print_partial_symbols): Call QUIT.
1238 (maintenance_print_psymbols): Likewise. Don't modify
1240 * copying.c (show_copying_command): Don't modify immediate_quit.
1241 (show_warranty_command): Likewise.
1242 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1244 2012-07-26 Keith Seitz <keiths@redhat.com>
1246 * linespec.c (linespec_lexer_lex_number): The input
1247 is also a valid number if the next character is a comma
1250 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1252 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1255 2012-07-26 Tristan Gingold <gingold@adacore.com>
1257 * machoread.c: Include gdb_bfd.h.
1259 2012-07-26 Tristan Gingold <gingold@adacore.com>
1261 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1264 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1266 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1268 (dwarf2_evaluate_loc_desc): Likewise.
1269 (dwarf2_loc_desc_needs_frame): Likewise.
1270 (locexpr_describe_location_1): Likewise.
1271 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1273 (struct dwarf2_loclist_baton): Likewise.
1274 * dwarf2read.c (struct dwarf_block): Likewise.
1275 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1276 (decode_locdesc): Expand SIZE and I to size_t.
1278 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1280 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1282 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1284 * doublest.c (convert_doublest_to_floatformat): If the exponent
1285 is too small, treat the value as zero. If the exponent is too
1286 large, treat the value as infinity.
1288 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1290 * configure.ac: Add --enable-lmcheck configure option.
1291 * configure: Regenerate.
1293 2012-07-25 Tom Tromey <tromey@redhat.com>
1295 * NEWS: Mention maint info bfds.
1296 * gdb_bfd.c (all_bfds): New global.
1297 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1298 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1301 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1303 * configure.tgt: Add v850*-*-rtems*.
1305 2012-07-25 Tom Tromey <tromey@redhat.com>
1307 * macrotab.c (macro_bcache_str): Remove cast.
1309 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1311 * linespec.c (linespec_lexer_lex_number): Update comments,
1312 change the return and add check to make sure the input is
1313 the decimal numbers.
1314 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1315 false, call linespec_lexer_lex_string.
1317 2012-07-24 Tom Tromey <tromey@redhat.com>
1319 * symfile.c (symbol_file_add): Don't open BFD twice.
1321 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1323 * breakpoint.c (create_breakpoint): Store condition for pending
1326 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1328 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1329 (m68k_return_value): Handle complex types like structures.
1330 (m68k_svr4_return_value): Likewise.
1332 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1334 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1335 parameters to bfd_get_section_name.
1337 2012-07-24 Yao Qi <yao@codesourcery.com>
1339 * cli/cli-setshow.c: Handle case 'var_uinteger'
1340 and 'var_zuninteger' together. Handle case 'var_integer' and
1341 'var_zinteger' together.
1343 2012-07-23 Keith Seitz <keiths@redhat.com>
1345 * linespec.c (convert_linespec_to_sal): Don't add
1346 any symbols to the result vector if symbol_to_sal
1349 2012-07-23 Keith Seitz <keiths@redhat.com>
1351 * linespec.c (decode_objc): Record the function name
1354 2012-07-23 Tom Tromey <tromey@redhat.com>
1356 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1358 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1359 (map_vmap): Acquire a reference to the BFD.
1361 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1363 * p-valprint.c (pascal_object_print_value): Replace potentially
1364 unsafe alloca with xmalloc/xfree.
1365 * valops.c (search_struct_method): Likewise.
1367 2012-07-23 Tom Tromey <tromey@redhat.com>
1369 * solib-svr4.c (enable_break): Update.
1370 * bfd-target.h (target_bfd_reopen): Update documentation.
1372 2012-07-23 Tom Tromey <tromey@redhat.com>
1374 * symfile.c (separate_debug_file_exists): Update.
1375 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1376 (reread_symbols): Update.
1377 * elfread.c (build_id_verify): Update.
1378 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1379 bfd_open_maybe_remote.
1381 2012-07-23 Tom Tromey <tromey@redhat.com>
1383 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1385 2012-07-23 Tom Tromey <tromey@redhat.com>
1387 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1389 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1391 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1392 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1394 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1395 * objfiles.c (allocate_objfile): Acquire a new reference.
1396 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1397 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1398 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1399 a cleanup for 'nbfd'.
1400 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1402 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1403 make a cleanup for 'abfd'.
1404 (symbol_file_add): Make a BFD cleanup.
1406 2012-07-23 Tom Tromey <tromey@redhat.com>
1408 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1409 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1410 * corelow.c (core_open): Use gdb_bfd_fopen.
1411 * dsrec.c (load_srec): Use gdb_bfd_openr.
1412 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1413 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1414 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1415 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1416 (gdb_bfd_fdopenr): New functions.
1417 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1418 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1419 (gdb_bfd_fdopenr): Declare.
1420 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1421 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1422 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1423 gdb_bfd_openr_next_archived_file.
1424 (macho_check_dsym): Use gdb_bfd_openr.
1425 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1426 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1427 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1428 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1430 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1431 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1432 gdb_bfd_openr_next_archived_file.
1433 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1435 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1437 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1438 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1439 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1440 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1441 (symfile_bfd_open): Use gdb_bfd_fopen.
1442 (generic_load): Use gdb_bfd_openr.
1443 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1445 2012-07-23 Tom Tromey <tromey@redhat.com>
1447 * bfd-target.c (target_bfd_reopen): Update.
1448 * cli/cli-dump.c (bfd_openr_with_cleanup)
1449 (bfd_openw_with_cleanup): Update.
1450 * corelow.c (core_open): Update.
1451 * dsrec.c (load_srec): Update.
1452 * exec.c (exec_file_attach): Update.
1453 * gcore.c (create_gcore_bfd): Update.
1454 * gdb_bfd.c (gdb_bfd_ref): Return void.
1455 (gdb_bfd_open): Update.
1456 * gdb_bfd.h (gdb_bfd_ref): Return void.
1458 * jit.c (jit_bfd_try_read_symtab): Update.
1459 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1460 * machoread.c (macho_symfile_read_all_oso): Update.
1461 (macho_check_dsym): Update.
1462 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1463 * remote-m32r-sdi.c (m32r_load): Update.
1464 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1465 * rs6000-nat.c (add_vmap): Update.
1466 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1468 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1469 * solib-spu.c (spu_bfd_open): Update.
1470 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1471 * spu-linux-nat.c (spu_bfd_open): Update.
1472 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1473 (generic_load): Update.
1474 * windows-nat.c (windows_make_so): Update.
1476 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1478 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1480 2012-07-20 Jeff Kenton <jkenton@tilera.com>
1482 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1483 SIGTRAMP_FRAME unwinding.
1485 2012-07-20 Doug Evans <dje@google.com>
1487 * NEWS: Document new options "set/show use-deprecated-index-sections",
1488 and delete reference to --use-deprecated-index-sections.
1489 * symfile.h (use_deprecated_index_sections): Delete.
1490 * dwarf2read.c (use_deprecated_index_sections): Make static.
1491 (read_index_from_section): Update wording of how to load
1492 deprecated index sections.
1493 (_initialize_dwarf2_read): New options
1494 "set/show use-deprecated-index-sections".
1495 * main.c (captured_main): Delete --use-deprecated-index-sections.
1497 2012-07-20 Pedro Alves <palves@redhat.com>
1502 * infrun.c (handle_inferior_event) <new thread>: Don't special
1503 case minus_one_ptid.
1504 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1505 * linux-thread-db.c (thread_get_info_callback): Don't return early
1506 if the thread is zombie.
1507 (thread_from_lwp): Change return type to void. Rewrite stale
1509 (attach_thread): Don't return early if the thread is zombie,
1510 instead set its "dying" flag.
1511 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1512 (find_new_threads_callback): Don't return early if the thread is
1515 2012-07-20 Pedro Alves <palves@redhat.com>
1517 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1518 * target.c (target_wait): Likewise.
1519 (str_comma_list_concat_elem, do_option, target_options_to_string):
1521 * target.h (target_options_to_string): Declare.
1523 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1524 Tom Tromey <tromey@redhat.com>
1526 * dwarf2read.c (dwarf_decode_macros)
1527 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1528 DW_MACRO_GNU_transparent_include_alt>: New cases.
1529 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1530 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1532 2012-07-20 Tom Tromey <tromey@redhat.com>
1534 * dwarf2read.c (try_open_dwo_file): Don't call
1535 gdb_bfd_stash_filename.
1537 2012-07-20 Pedro Alves <palves@redhat.com>
1539 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1540 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1541 (i386_process_record): Tweak description comments.
1543 2012-07-20 Pedro Alves <palves@redhat.com>
1545 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1546 (i386_process_record): Use record_read_memory.
1547 * record.c (record_read_memory): New function.
1548 (record_arch_list_add_mem, record_exec_insn): Use
1550 * record.h (record_read_memory): Declare.
1552 2012-07-20 Yao Qi <yao@codesourcery.com>
1554 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1557 2012-07-19 Pedro Alves <palves@redhat.com>
1559 * record.c (record_resume): Ask the target beneath to report all
1562 2012-07-19 Doug Evans <dje@google.com>
1564 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1565 there's no section at address zero.
1566 (dwarf2_record_block_ranges): Ditto.
1568 2012-07-19 Yao Qi <yao@codesourcery.com>
1570 * command.h, remote.c: Fix a typo in comment.
1572 2012-07-19 Tom Tromey <tromey@redhat.com>
1575 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1576 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1577 OP_DECLTYPE>: New cases.
1578 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1579 (type_exp): Add new productions.
1580 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1582 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1584 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1585 OP_DECLTYPE>: New case.
1586 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1588 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1589 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1591 2012-07-19 Tom Tromey <tromey@redhat.com>
1593 * c-exp.y (enum token_flags): New.
1594 (struct token) <cxx_only>: Remove.
1596 (tokentab3, tokentab2, ident_tokens): Update.
1597 (lex_one_token): Update. Handle FLAG_SHADOW.
1599 2012-07-19 Tom Tromey <tromey@redhat.com>
1601 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1602 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1603 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1604 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1605 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1606 type_exp production where appropriate.
1607 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1608 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1609 <UNOP_MEMVAL_TYPE>: New case.
1610 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1611 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1612 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1613 <UNOP_MEMVAL_TYPE>: New case.
1614 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1615 UNOP_REINTERPRET_CAST>: Update.
1616 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1617 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1618 UNOP_REINTERPRET_CAST>: Update.
1619 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1620 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1621 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1624 2012-07-19 Yao Qi <yao@codesourcery.com>
1625 Jan Kratochvil <jan.kratochvil@redhat.com>
1627 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1628 and case 'var_optional_filename' together.
1629 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1630 instead of add_setshow_optional_filename_cmd for setshow command
1631 'args'. Set completer for 'set args'.
1633 2012-07-18 Doug Evans <dje@google.com>
1635 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1636 * common/gdb_vecs.c: New file, contents from utils.c.
1637 * common/host-defs.h: New file, contents from defs.h.
1638 * utils.h: New file, contents from defs.h.
1639 * defs.h: Move all declarations of objects defined in utils.c
1640 to utils.h (except QUIT() and related).
1641 #include "utils.h", "host-defs.h".
1642 * probe.h (probe_p): Move here from gdb_vecs.h.
1643 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1644 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1645 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1646 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1647 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1648 (COMMON_OBS): Add gdb_vecs.o.
1649 (gdb_vecs.o): New rule.
1651 2012-07-18 Keith Seitz <keiths@redhat.com>
1653 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1654 parameter. If non-zero, use SYMNAME as the canonical name
1657 (convert_linespec_to_sals): Use add_sal_to_sals for
1659 (decode_line_full): No need to "fill in missing canonical names"
1660 anymore. Simply make cleanups for the allocated names.
1662 2012-07-18 Keith Seitz <keiths@redhat.com>
1664 * linespec.c (struct linespec): Constify expression,
1665 source_filename, function_name, and label_name.
1666 (symbol_not_found_error): Make all parameters const.
1667 (linespec_parser_delete): No need to check for NULL
1668 when using xfree. Cast const char * to char * for xfree.
1670 2012-07-18 Keith Seitz <keiths@redhat.com>
1672 * breakpoint.c (invalid_thread_id_error): New function.
1673 (find_condition_and_thread): Use invalid_thread_id_error.
1674 (watch_command_1): Likewise.
1676 2012-07-18 Tom Tromey <tromey@redhat.com>
1678 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1679 * contrib/cc-with-tweaks.sh: New file.
1681 2012-07-18 Tom Tromey <tromey@redhat.com>
1683 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1684 (locate_dwz_sections): Recognize .gdb_index.
1685 (create_cus_from_index_list): New function.
1686 (create_cus_from_index): Use it. Handle .dwz data.
1687 (read_index_from_section): New function, extracted from
1689 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1692 2012-07-18 Tom Tromey <tromey@redhat.com>
1694 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1695 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1696 <is_dwz>: New field.
1697 (struct dwz_file): New.
1698 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1699 (locate_dwz_sections, dwarf2_get_dwz_file)
1700 (get_abbrev_section_for_cu): New functions.
1701 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1702 (read_and_check_type_unit_head): Add abbrev_section argument.
1703 (create_debug_types_hash_table): Update.
1704 (init_cutu_and_read_dies): Use proper abbrev section.
1705 (init_cutu_and_read_dies_no_follow): Likewise.
1706 (set_partial_user): Do nothing if PST==NULL.
1707 (read_comp_units_from_section): New function.
1708 (create_all_comp_units): Use it.
1709 (scan_partial_symbols, partial_die_parent_scope): Update.
1710 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1711 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1712 (find_partial_die): Add offset_in_dwz argument. Update.
1713 (guess_partial_die_structure_name, fixup_partial_die): Update.
1714 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1715 DW_FORM_GNU_strp_alt.
1716 (read_indirect_string_from_dwz): New function.
1717 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1718 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1719 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1720 (follow_die_offset): Add offset_in_dwz argument.
1721 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1722 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1723 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1724 Handle new macro forms.
1725 (dwarf_decode_macros): Update.
1726 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1727 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1728 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1729 (create_debug_types_hash_table): Use correct abbrev section.
1730 (get_debug_line_section): New function.
1731 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
1732 (process_full_comp_unit): Pass 'required' argument to
1733 end_symtab_get_static_block.
1734 * buildsym.h (end_symtab_get_static_block): Update.
1735 * buildsym.c (end_symtab_get_static_block): Add 'required'
1737 (end_symtab, end_expandable_symtab): Update.
1739 2012-07-18 Tom Tromey <tromey@redhat.com>
1741 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
1743 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
1744 (zlib_decompress_section): Remove.
1745 (dwarf2_read_section): Use gdb_bfd_map_section.
1746 (munmap_section_buffer): Remove.
1747 (free_dwo_file, dwarf2_per_objfile_free): Don't use
1748 munmap_section_buffer.
1749 * gdb_bfd.c: Include zlib.h, sys/mman.h.
1750 (struct gdb_bfd_section_data): New.
1751 (free_one_bfd_section): New function.
1752 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
1753 (get_section_descriptor, zlib_decompress_section)
1754 (gdb_bfd_map_section): New functions.
1755 * gdb_bfd.h (gdb_bfd_map_section): Declare.
1757 2012-07-18 Tom Tromey <tromey@redhat.com>
1759 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
1761 2012-07-18 Tom Tromey <tromey@redhat.com>
1763 * gdb_bfd.c (struct gdb_bfd_data): New.
1764 (gdb_bfd_cache): New global.
1765 (struct gdb_bfd_cache_search): New.
1766 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
1767 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
1768 * gdb_bfd.h (gdb_bfd_open): Declare.
1770 2012-07-18 Tom Tromey <tromey@redhat.com>
1772 * utils.c (make_cleanup_bfd_unref): Rename from
1773 make_cleanup_bfd_close.
1774 * defs.h (make_cleanup_bfd_unref): Rename from
1775 make_cleanup_bfd_close.
1776 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
1777 (bfd_openw_with_cleanup): Update.
1778 * corelow.c (core_open): Update.
1779 * dsrec.c (load_srec): Update.
1780 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1781 * remote-m32r-sdi.c (m32r_load): Update.
1782 * remote-mips.c (mips_load_srec): Update.
1783 (pmon_load_fast): Update.
1784 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1786 (darwin_bfd_open): Update.
1787 * solib.c (solib_bfd_fopen): Update.
1788 * symfile-mem.c (symbol_file_add_from_memory): Update.
1789 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
1790 (symfile_bfd_open): Update.
1791 (generic_load): Update.
1793 2012-07-18 Tom Tromey <tromey@redhat.com>
1795 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
1796 (pmon_load_fast): Likewise.
1797 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
1798 (m32r_upload_command): Likewise.
1799 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
1800 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1801 Use make_cleanup_bfd_close.
1803 2012-07-18 Tom Tromey <tromey@redhat.com>
1805 * symfile.c (symfile_bfd_open): Don't copy name. Call
1806 gdb_bfd_stash_filename.
1807 (load_command): Open the new BFD before freeing the old.
1808 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
1809 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
1810 Call gdb_bfd_stash_filename.
1811 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
1812 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
1813 gdb_bfd_stash_filename.
1814 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1815 Free found_pathname.
1816 * rs6000-nat.c (add_vmap): Don't copy filename. Call
1817 gdb_bfd_stash_filename.
1818 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
1819 * machoread.c (macho_add_oso_symfile): Call
1820 gdb_bfd_stash_filename.
1821 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
1822 gdb_bfd_stash_filename.
1823 (macho_check_dsym): Don't copy filename. Call
1824 gdb_bfd_stash_filename.
1825 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
1826 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
1827 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
1828 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
1829 * exec.c (exec_close): Don't free the BFD's filename.
1830 (exec_file_attach): Don't copy the filename. Call
1831 gdb_bfd_stash_filename.
1832 * corelow.c (core_close): Don't free the BFD's filename.
1833 (core_open): Call gdb_bfd_stash_filename.
1834 * corefile.c (reopen_exec_file): Remove #if 0 code.
1835 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
1837 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
1839 2012-07-18 Tom Tromey <tromey@redhat.com>
1841 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
1843 (free_dwo_file): Use gdb_bfd_unref.
1844 * cli/cli-dump.c: Include gdb_bfd.h.
1845 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
1846 (bfd_openr_with_cleanup): Likewise.
1847 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
1849 * utils.c: Include gdb_bfd.h.
1850 (do_bfd_close_cleanup): Use gdb_bfd_unref.
1851 * symfile.c: Include gdb_bfd.h.
1852 (separate_debug_file_exists): Use gdb_bfd_unref.
1853 (bfd_open_maybe_remote): Use gdb_bfd_ref.
1854 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1855 (generic_load): Use gdb_bfd_ref.
1856 (reread_symbols): Use gdb_bfd_unref.
1857 * symfile-mem.c: Include gdb_bfd.h.
1858 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
1859 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1860 * solib.c: Include gdb_bfd.h.
1861 (solib_bfd_fopen): Use gdb_bfd_ref.
1862 (solib_bfd_open): Use gdb_bfd_unref.
1863 (free_so_symbols): Use gdb_bfd_unref.
1864 (reload_shared_libraries_1): Use gdb_bfd_unref.
1865 * solib-spu.c: Include gdb_bfd.h.
1866 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
1867 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
1869 * solib-frv.c: Include gdb_bfd.h.
1870 (enable_break2): Use gdb_bfd_unref.
1871 * solib-dsbt.c: Include gdb_bfd.h.
1872 (enable_break2): Use gdb_bfd_unref.
1873 * solib-darwin.c: Include gdb_bfd.h.
1874 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
1876 (darwin_bfd_open): Use gdb_bfd_unref.
1877 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
1878 * remote-mips.c: Include gdb_bfd.h.
1879 (mips_load_srec): Use gdb_bfd_ref.
1880 (pmon_load_fast): Use gdb_bfd_ref.
1881 * remote-m32r-sdi.c: Include gdb_bfd.h.
1882 (m32r_load): Use gdb_bfd_ref.
1883 * record.c: Include gdb_bfd.h.
1884 (record_save_cleanups): Use gdb_bfd_unref.
1885 (cmd_record_save): Use gdb_bfd_unref.
1886 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
1888 * objfiles.h (gdb_bfd_close_or_warn): Remove.
1889 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
1890 * objfiles.c: Include gdb_bfd.h.
1891 (free_objfile): Use gdb_bfd_unref.
1892 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
1894 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
1895 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
1896 (macho_check_dsym): Likewise.
1897 * m32r-rom.c: Include gdb_bfd.h.
1898 (m32r_load): Use gdb_bfd_ref.
1899 (m32r_upload_command): Use gdb_bfd_ref.
1900 * jit.c: Include gdb_bfd.h.
1901 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
1902 * gdb_bfd.h: New file.
1903 * gdb_bfd.c: New file.
1904 * gcore.c: Include gdb_bfd.h.
1905 (create_gcore_bfd): Use gdb_bfd_ref.
1906 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
1907 (gcore_command): Use gdb_bfd_unref.
1908 * exec.c: Include gdb_bfd.h.
1909 (exec_close): Use gdb_bfd_unref.
1910 (exec_close_1): Use gdb_bfd_unref.
1911 (exec_file_attach): Use gdb_bfd_ref.
1912 * elfread.c: Include gdb_bfd.h.
1913 (build_id_verify): Use gdb_bfd_unref.
1914 * dsrec.c: Include gdb_bfd.h.
1915 (load_srec): Use gdb_bfd_ref.
1916 * corelow.c: Include gdb_bfd.h.
1917 (core_close): Use gdb_bfd_unref.
1918 (core_open): Use gdb_bfd_ref.
1919 * bfd-target.c: Include gdb_bfd.h.
1920 (target_bfd_xclose): Use gdb_bfd_unref.
1921 (target_bfd_reopen): Use gdb_bfd_ref.
1922 * Makefile.in (SFILES): Add gdb_bfd.c.
1923 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
1924 (COMMON_OBS): Add gdb_bfd.o.
1926 2012-07-18 Keith Seitz <keiths@redhat.com>
1928 * breakpoint.c (find_condition_and_thread): Initialize
1930 (create_breakpiont): find_condition_and_thread will now
1931 initialize COND_STRING, THREAD, and REST (and TASK).
1932 (addr_string_to_sals): Likewise.
1934 2012-07-18 Pedro Alves <palves@redhat.com>
1936 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
1937 Pull the single step breakpoints out of the target.
1939 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1941 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
1942 * stap-probe.c (compile_probe_arg): Likewise.
1944 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1946 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
1947 (elf_compile_to_ax): Likewise.
1948 * infrun.c (insert_exception_resume_from_probe): Likewise.
1949 (check_exception_resume): Remove `objfile' variable.
1950 * probe.c (find_probe_by_pc): Remove `objfile' argument.
1951 (struct probe_and_objfile, probe_and_objfile_s): Delete.
1952 (collect_probes): Adjust return value to `VEC (probe_p) *'.
1953 (compare_entries): Rename to...
1954 (compare_probes): ...this. Adjust function to work with
1955 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
1957 (gen_ui_out_table_header_info): Adjust `probes' argument to be
1959 (print_ui_out_info): Adjust argument to be `struct probe *'.
1960 (info_probes_for_ops): Adjust internal computations to use
1962 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
1963 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
1964 gen_info_probes_table_values>: Remove `objfile' argument.
1965 (struct probe) <objfile>: New field.
1966 (find_probe_by_pc): Remove `objfile' argument.
1967 * stap-probe.c (stap_parse_probe_arguments): Likewise.
1968 (stap_get_probe_argument_count): Likewise.
1969 (stap_get_arg): Likewise.
1970 (stap_evaluate_probe_argument): Likewise.
1971 (stap_compile_to_ax): Likewise.
1972 (compile_probe_arg): Refactor not to pass `objfile' anymore.
1973 (handle_stap_probe): Fill `objfile' field from `struct probe'.
1974 (stap_gen_info_probes_table_header): Remove `objfile' argument.
1975 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
1976 sym_compile_to_ax>: Likewise.
1978 2012-07-18 Terry Guo <terry.guo@arm.com>
1981 * defs.h (GDB_MI_MSG_WIDTH): New.
1982 * ser_base (ser_base_read_error_fd): New function.
1983 (do_ser_base_readchar): Poll error file descriptor as well as
1985 (generic_readchar): Refactor error handling.
1987 2012-07-18 Joel Brobecker <brobecker@adacore.com>
1989 * NEWS: Create a new section for the next release branch.
1990 Rename the section of the current branch, now that it has
1993 2012-07-18 Joel Brobecker <brobecker@adacore.com>
1995 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
1996 * version.in: Bump version to 7.5.50.20120718-cvs.
1998 2012-07-17 Keith Seitz <keiths@redhat.com>
2000 * linespec.c (linespec_parse_line_offset): Make parameter
2003 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2006 * f-valprint.c (info_common_command): New variable frame_id.
2007 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2008 * printcmd.c (print_variable_and_value): Extend function comment.
2009 Add comment for invalidated FRAME.
2010 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2011 FI form FRAME_ID after each print_frame_local_vars.
2012 (struct print_variable_and_value_data): Change frame to frame_id.
2013 (do_print_variable_and_value): New variable frame, initialize it from
2014 p->frame_id. Add comment for invalidated FRAME.
2015 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2016 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2017 for invalidated FRAME.
2019 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2020 Pedro Alves <palves@redhat.com>
2022 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2025 2012-07-16 Tom Tromey <tromey@redhat.com>
2027 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2029 2012-07-15 Doug Evans <dje@google.com>
2031 * dwarf2read.c (stmt_list_hash): New struct.
2032 (type_unit_group): Embed "per_cu" member, remove pointer.
2033 New union member "t", move member "tus" into it, all uses updated.
2034 New member "hash", replaces member "line_offset, all uses updated.
2035 (quick_file_names): Replace member "offset" with "hash", all uses
2037 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2038 (hash_file_name_entry, eq_file_name_entry): Call them.
2039 (hash_type_unit_group, eq_type_unit_group): Ditto.
2040 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2041 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2042 (dw2_get_file_names): Update.
2043 (create_type_unit_group): Replace "per_cu" arg with "cu".
2044 All callers updated. Fix "quick" (.gdb_index) handling.
2045 (get_type_unit_group): Replace "per_cu" arg with "cu".
2046 All callers updated.
2047 (build_type_unit_groups): Don't reset tu_stats.
2049 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2050 "tab_cur_size". Change member "tab" to be a htab_t.
2051 (create_filename_seen_cache): Update.
2052 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2053 (filename_seen): Update.
2055 2012-07-13 Doug Evans <dje@google.com>
2057 * symtab.c (filename_seen): Update comment.
2059 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2060 Doug Evans <dje@google.com>
2062 * buildsym.c (end_symtab_1): Split it to ...
2063 (end_symtab_get_static_block): ... this ...
2064 (end_symtab_from_static_block): ... and this function.
2065 (end_symtab, end_expandable_symtab): Call them.
2066 * buildsym.h (end_symtab_get_static_block)
2067 (end_symtab_from_static_block): New declarations.
2068 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2069 Set its valid CU ranges.
2071 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2073 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2074 DW_OP_GNU_parameter_ref.
2076 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2078 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2079 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2081 2012-07-13 Doug Evans <dje@google.com>
2083 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2084 (filename_seen_cache): New struct.
2085 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2086 (create_filename_seen_cache): New function.
2087 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2088 (filename_seen): Delete arg "first". New arg "cache". All callers
2090 (output_source_filename_data): New struct.
2091 (output_source_filename): Delete arg "first". New arg "data".
2092 All callers updated.
2093 (sources_info): Delete local "first". New locals "data", "cleanups".
2094 Rewrite to use filename_seen_cache.
2095 (add_partial_filename_data): Delete member "first". New member
2096 "filename_seen_cache". All uses updated.
2097 (make_source_files_completion_list): Rewrite to use
2098 filename_seen_cache.
2100 2012-07-12 Doug Evans <dje@google.com>
2102 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2104 2012-07-10 Doug Evans <dje@google.com>
2107 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2108 all_type_unit_groups, type_unit_groups, tu_stats.
2109 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2110 All uses updated. Add type_unit_group to union "s".
2111 (type_unit_group): New struct.
2112 (IS_TYPE_UNIT_GROUP): New macro.
2113 (abbrev_table): Delete unused member "section".
2114 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2115 (dw2_get_cu): Assert not used with type_unit_group.
2116 (dw2_get_primary_cu): New function.
2117 (dw2_build_type_unit_groups_reader): New function.
2118 (dw2_build_type_unit_groups): New function.
2119 (dw2_get_file_names): Assert not called on type units.
2120 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2121 Redo loop to iterate over type unit groups instead of type units.
2122 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2123 (read_abbrev_offset): New function.
2124 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2126 (create_partial_symtab): New function.
2127 (process_psymtab_comp_unit_reader): Assert not used with type units.
2128 Call create_partial_symtab.
2129 (process_psymtab_type_unit): Delete.
2130 (hash_type_unit_group, eq_type_unit_group): New functions.
2131 (allocate_type_unit_groups_table): New function.
2132 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2133 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2134 (create_type_unit_group, get_type_unit_group): New functions.
2135 (tu_abbrev_offset): New struct.
2136 (sort_tu_by_abbrev_offset): New function.
2137 (add_type_unit_group_to_table): New function.
2138 (build_type_unit_groups): New function.
2139 (build_type_psymtabs_reader): New function.
2140 (build_type_psymtab_dependencies): New function.
2141 (build_type_psymtabs): Rewrite.
2142 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2143 is seen in a type unit.
2144 (process_queue): Move symtab expansion debugging printfs here.
2145 Call process_full_type_unit for type units.
2146 (compute_symtab_includes): Assert not called for type units.
2147 (process_cu_includes): Don't call compute_symtab_includes for
2149 (process_full_type_unit): New function.
2150 (process_imported_unit_die): Flag an error if called for type units.
2151 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2152 updated. Assert not called for type units.
2153 (read_file_scope): Call dwarf2_start_symtab.
2154 (setup_type_unit_groups): New function.
2155 (read_type_unit_scope): Rewrite.
2156 (abbrev_table_read_table): Initialize abbrev_table->offset.
2157 (abbrev_table_free_cleanup): New function.
2158 (dwarf2_start_symtab): New function.
2159 (load_full_type_unit): Assert not called for type unit groups.
2160 * buildsym.c (finish_block_internal): New arg "expandable".
2161 All callers updated.
2162 (start_symtab): Move most contents to ...
2163 (restart_symtab): ... here. New function.
2164 (reset_symtab_globals): New function.
2165 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2166 Call reset_symtab_globals.
2167 (end_symtab, end_expandable_symtab): New functions.
2168 (set_missing_symtab, augment_type_symtab): New functions.
2169 * buildsym.h (end_expandable_symtab): Declare.
2170 (augment_type_symtab, restart_symtab): Declare.
2171 * psympriv.h (struct partial_symtab): New member "anonymous".
2172 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2174 (read_psymtabs_with_filename): Ditto.
2175 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2176 (expand_symtabs_matching_via_partial): Ditto.
2177 (dump_psymtab): Update.
2178 * dictionary.c (dict_add_pending): New function.
2179 * dictionary.h (dict_add_pending): Declare.
2181 2012-07-09 Doug Evans <dje@google.com>
2183 * buildsym.c (start_subfile): Remove unnecessary check for
2186 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2188 * dwarf2read.c (load_full_type_unit): Simplify.
2190 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2191 to struct signatured_type **. All uses updated.
2193 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2194 All callers updated.
2196 2012-07-09 Tom Tromey <tromey@redhat.com>
2198 * c-exp.y (check_parameter_typelist): New function.
2199 (parameter_typelist): Call it.
2200 * eval.c (make_params): Handle '(void)' case.
2201 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2204 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2206 * common/linux-ptrace.c: Include gdb_assert.h.
2207 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2208 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2210 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2212 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2213 * linux-nat.c (linux_child_post_attach)
2214 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2216 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2218 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2219 nptl <2.7 bug workaround for core files.
2221 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2223 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2225 (save_siginfo): Remove.
2226 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2228 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2229 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2230 * linux-nat.h (struct lwp_info): Remove field siginfo.
2232 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2234 Code cleanup for the next patch.
2235 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2236 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2238 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2239 (ia64_linux_stopped_data_address):
2240 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2242 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2243 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2244 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2247 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2250 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2251 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2253 2012-07-06 Tom Tromey <tromey@redhat.com>
2255 * c-exp.y (DOTDOTDOT): New token.
2256 (func_mod, exp): Use parameter_typelist.
2257 (parameter_typelist): New production.
2258 (tokentab3): Add "..." token.
2259 * eval.c (make_params): Handle varargs.
2260 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2263 2012-07-06 Tom Tromey <tromey@redhat.com>
2266 * c-exp.y (%union) <tvec>: Change type.
2267 (func_mod): Now uses <tvec> type.
2268 (exp): Update for tvec change.
2269 (direct_abs_decl): Push the typelist.
2270 (func_mod): Return a typelist.
2271 (nonempty_typelist): Update for tvec change.
2272 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2273 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2274 * parse.c (pop_type_list): New function.
2275 (push_typelist): New function.
2276 (follow_types): Handle tp_function_with_arguments.
2277 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2278 (enum type_pieces) <tp_function_with_arguments>: New constant.
2279 (union type_stack_elt) <typelist_val>: New field.
2280 (push_typelist): Declare.
2282 2012-07-06 Tom Tromey <tromey@redhat.com>
2284 * c-exp.y (%union) <type_stack>: New field.
2285 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2286 (ptr_operator_ts): New production.
2288 * parse.c (type_stack_reserve): New function.
2289 (check_type_stack_depth): Use it.
2290 (pop_type_stack, append_type_stack, push_type_stack)
2291 (get_type_stack, type_stack_cleanup): New functions.
2292 (follow_types): Handle tp_type_stack.
2293 (_initialize_parse): Simplify initialization.
2294 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2296 (union type_stack_elt) <stack_val>: New field.
2297 (get_type_stack, append_type_stack, push_type_stack)
2298 (type_stack_cleanup): Declare.
2300 2012-07-06 Tom Tromey <tromey@redhat.com>
2302 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2304 (struct type_stack): New.
2305 * parse.c (type_stack, type_stack_size, type_stack_depth):
2307 (type_stack): New global.
2308 (parse_exp_in_context, check_type_stack_depth)
2309 (insert_into_type_stack, insert_type, push_type, push_type_int)
2310 (insert_type_address_space, pop_type, pop_type_int)
2311 (_initialize_parse): Update.
2313 2012-07-06 Tom Tromey <tromey@redhat.com>
2315 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2318 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2320 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2322 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2323 Jan Kratochvil <jan.kratochvil@redhat.com>
2325 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2326 alloca with xmalloc/xfree.
2328 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2330 * MAINTAINERS (Write After Approval): Add myself to the list.
2332 2012-07-05 Doug Evans <dje@google.com>
2334 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2336 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2338 * ax-gdb.c (cli/cli-utils.h): New include.
2339 (linespec.h): Ditto.
2340 (agent_eval_command_one): New function.
2341 (agent_command_1): Ditto.
2342 (agent_command): Call function agent_command_1.
2343 (agent_eval_command): Ditto.
2344 (_initialize_ax_gdb): Change help for "maint agent"
2345 and "maint agent-eval".
2347 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2349 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2350 * cli/cli-utils.c (check_for_argument): New function.
2351 * cli/cli-utils.h (check_for_argument): Ditto.
2353 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2355 * NEWS: Mention x32 ABI support.
2357 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2359 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2360 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2362 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2363 and pc_regnum_from_eax to -1. Update SP regnum from
2364 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2367 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2370 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2372 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2373 * dwarf2expr.h: Include gdbtypes.h.
2374 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2375 these forward declarations.
2376 (cu_offset, sect_offset): Move these ...
2377 * gdbtypes.h: Remove include dwarf2expr.h.
2378 (cu_offset, sect_offset): ... here.
2380 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2382 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2383 (amd64_linux_sigtramp_code): This.
2384 (amd64_x32_linux_sigtramp_code): New.
2385 (LINUX_SIGTRAMP_LEN): Updated.
2386 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2388 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2390 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2392 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2394 * config.in: Regenerate.
2395 * configure: Regenerate.
2396 * configure.ac: Remove check for gnu/libc-version.h.
2397 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2399 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2400 variables libc_version, libc_major and libc_minor. Replace sscanf by
2401 inferior_has_bug. Extend the comment.
2403 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2405 * linux-thread-db.c (inferior_has_bug): New function.
2406 (thread_db_find_new_threads_silently): Return boolean as checked by
2407 inferior_has_bug, describe it in the comments.
2408 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2409 earlier. Abort the initialization if it returned non-zero.
2410 (thread_db_new_objfile): Exclude debug files.
2411 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2414 2012-07-02 Doug Evans <dje@google.com>
2416 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2417 related to queue management.
2419 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2420 instead of "debug dwarf2-die" in debugging printfs.
2421 (create_debug_info_hash_table_reader): Ditto.
2422 (create_debug_info_hash_table): Ditto.
2423 (init_dwo_file): Ditto.
2424 (init_cutu_and_read_dies): Add debugging printf.
2425 (init_cutu_and_read_dies_no_follow): Ditto.
2426 (process_psymtab_comp_unit_reader): Ditto.
2428 2012-07-02 Stan Shebs <stan@codesourcery.com>
2430 Add target-side support for dynamic printf.
2431 * NEWS: Mention the additional style.
2432 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2433 (struct bp_location): New field cmd_bytecode.
2434 * breakpoint.c: Include format.h.
2435 (disconnected_dprintf): New global.
2436 (parse_cmd_to_aexpr): New function.
2437 (build_target_command_list): New function.
2438 (insert_bp_location): Call it.
2439 (remove_breakpoints_pid): Skip dprintf breakpoints.
2440 (print_one_breakpoint_location): Ditto.
2441 (dprintf_style_agent): New global.
2442 (dprintf_style_enums): Add dprintf_style_agent.
2443 (update_dprintf_command_list): Add agent case.
2444 (agent_printf_command): New function.
2445 (_initialize_breakpoint): Add new commands.
2446 * common/ax.def (printf): New bytecode.
2447 * ax.h (ax_string): Declare.
2448 * ax-gdb.h (gen_printf): Declare.
2449 * ax-gdb.c: Include cli-utils.h, format.h.
2450 (gen_printf): New function.
2451 (maint_agent_print_command): New function.
2452 (_initialize_ax_gdb): Add maint agent-printf command.
2453 * ax-general.c (ax_string): New function.
2454 (ax_print): Add printf disassembly.
2455 * Makefile.in (SFILES): Add format.c
2456 (COMMON_OBS): Add format.o.
2457 * common/format.h: New file.
2458 * common/format.c: New file.
2459 * printcmd.c: Include format.h.
2460 (ui_printf): Call parse_format_string.
2461 * remote.c (remote_state): New field breakpoint_commands.
2462 (PACKET_BreakpointCommands): New enum.
2463 (remote_breakpoint_commands_feature): New function.
2464 (remote_protocol_features): Add new BreakpointCommands entry.
2465 (remote_can_run_breakpoint_commands): New function.
2466 (remote_add_target_side_commands): New function.
2467 (remote_insert_breakpoint): Call it.
2468 (remote_insert_hw_breakpoint): Ditto.
2469 (_initialize_remote): Add new packet configuration for
2470 target-side breakpoint commands.
2471 * target.h (struct target_ops): New field
2472 to_can_run_breakpoint_commands.
2473 (target_can_run_breakpoint_commands): New macro.
2474 * target.c (update_current_target): Handle
2475 to_can_run_breakpoint_commands.
2477 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2479 Execute -ix and -iex only after system and user gdbinit files.
2480 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2481 processing down after gdbinit files.
2483 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2485 Add fnmatch-gnu module.
2486 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2487 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2488 * gnulib/aclocal.m4: Regenerate.
2489 * gnulib/config.in: Regenerate.
2490 * gnulib/configure: Regenerate.
2491 * gnulib/import/dummy.c: Remove.
2492 * gnulib/import/Makefile.am: Regenerate.
2493 * gnulib/import/Makefile.in: Likewise.
2494 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2495 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2496 * gnulib/import/alloca.c: New file.
2497 * gnulib/import/alloca.in.h: Likewise.
2498 * gnulib/import/config.charset: Likewise.
2499 * gnulib/import/fnmatch.c: Likewise.
2500 * gnulib/import/fnmatch.in.h: Likewise.
2501 * gnulib/import/fnmatch_loop.c: Likewise.
2502 * gnulib/import/localcharset.c: Likewise.
2503 * gnulib/import/localcharset.h: Likewise.
2504 * gnulib/import/m4/alloca.m4: Likewise.
2505 * gnulib/import/m4/codeset.m4: Likewise.
2506 * gnulib/import/m4/configmake.m4: Likewise.
2507 * gnulib/import/m4/fcntl-o.m4: Likewise.
2508 * gnulib/import/m4/fnmatch.m4: Likewise.
2509 * gnulib/import/m4/glibc21.m4: Likewise.
2510 * gnulib/import/m4/localcharset.m4: Likewise.
2511 * gnulib/import/m4/locale-fr.m4: Likewise.
2512 * gnulib/import/m4/locale-ja.m4: Likewise.
2513 * gnulib/import/m4/locale-zh.m4: Likewise.
2514 * gnulib/import/m4/mbrtowc.m4: Likewise.
2515 * gnulib/import/m4/mbsinit.m4: Likewise.
2516 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2517 * gnulib/import/m4/mbstate_t.m4: Likewise.
2518 * gnulib/import/m4/stdbool.m4: Likewise.
2519 * gnulib/import/m4/wchar_h.m4: Likewise.
2520 * gnulib/import/m4/wctype_h.m4: Likewise.
2521 * gnulib/import/m4/wint_t.m4: Likewise.
2522 * gnulib/import/mbrtowc.c: Likewise.
2523 * gnulib/import/mbsinit.c: Likewise.
2524 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2525 * gnulib/import/mbsrtowcs-state.c: Likewise.
2526 * gnulib/import/mbsrtowcs.c: Likewise.
2527 * gnulib/import/ref-add.sin: Likewise.
2528 * gnulib/import/ref-del.sin: Likewise.
2529 * gnulib/import/stdbool.in.h: Likewise.
2530 * gnulib/import/streq.h: Likewise.
2531 * gnulib/import/strnlen1.c: Likewise.
2532 * gnulib/import/strnlen1.h: Likewise.
2533 * gnulib/import/verify.h: Likewise.
2534 * gnulib/import/wchar.in.h: Likewise.
2535 * gnulib/import/wctype.in.h: Likewise.
2537 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2539 Support shell wildcards for 'set auto-load safe-path'.
2540 * auto-load.c: Include fnmatch.h.
2541 (filename_is_in_dir): Rename to ...
2542 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2543 it. Update function comment. Rename dir_len to pattern_len. New
2544 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2545 messages. Use gdb_filename_fnmatch.
2546 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2548 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2549 * defs.h (gdb_filename_fnmatch): New declaration.
2550 * utils.c: Include fnmatch.h.
2551 (gdb_filename_fnmatch): New function.
2553 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2555 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2556 `-probe' and `-probe-stap' options.
2558 2012-07-01 Yao Qi <yao@codesourcery.com>
2560 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2561 always_inserted_off, and always_inserted_enums.
2562 Change always_inserted_mode's type to 'enum auto_boolean'.
2563 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2565 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2566 of add_setshow_enum_cmd.
2567 * infrun.c: Remove can_use_displaced_stepping_auto,
2568 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2569 can_use_displaced_stepping_enum.
2570 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2571 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2572 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2573 add_setshow_enum_cmd.
2575 2012-06-30 Doug Evans <dje@google.com>
2577 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2578 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2579 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2581 2012-06-29 Doug Evans <dje@google.com>
2583 * linespec.c: #include "stack.h".
2584 (decode_line_with_current_source): Moved here from symtab.c and
2585 renamed from decode_line_spec. All callers updated.
2586 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2587 renamed from decode_line_spec_1. All callers updated.
2588 * linespec.h (decode_line_with_current_source): Move declaration here
2589 from symtab.h and renamed from decode_line_spec.
2590 (decode_line_with_last_displayed): Move declaration here from symtab.h
2591 and renamed from decode_line_spec_1.
2592 * macrocmd.c: #include "linespec.h".
2593 * symtab.c: Remove #include "linespec.h".
2595 2012-06-28 Doug Evans <dje@google.com>
2597 * dwarf2read.c (get_cu_length): New function.
2598 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2599 (create_debug_types_hash_table): Ditto.
2600 (init_cutu_and_read_dies): Ditto.
2601 (init_cutu_and_read_dies_no_follow): Ditto.
2603 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2605 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2606 (struct abbrev_table): Define.
2607 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2609 (init_cutu_and_read_dies): Update.
2610 (abbrev_table_alloc_abbrev): New function. Replaces
2611 dwarf_alloc_abbrev. All callers updated.
2612 (abbrev_table_add_abbrev): New function.
2613 (abbrev_table_lookup_abbrev): New function. Replaces
2614 dwarf2_lookup_abbrev. All callers updated.
2615 (abbrev_table_read_table): New function. Contents moved here from
2616 dwarf2_read_abbrevs.
2617 (dwarf2_read_abbrevs): Call it.
2618 (abbrev_table_free): New function.
2619 (dwarf2_free_abbrev_table): Call it.
2621 2012-06-28 Stan Shebs <stan@codesourcery.com>
2623 * osdata.c (info_osdata_command): Filter out "Title" columns
2625 * common/linux-osdata.c (struct osdata_type): Add title field.
2626 (osdata_table): Add titles to each entry.
2627 (linux_command_xfer_osdata): Add a column for title data.
2629 2012-06-28 Stan Shebs <stan@codesourcery.com>
2631 Make logging work for MI.
2633 * interps.h (interp_set_logging_ftype): New typedef.
2634 (struct interp_procs): New field set_logging_proc.
2635 (current_interp_set_logging): Declare.
2636 * interps.c (current_interp_set_logging): New function.
2637 * cli/cli-logging.c: Include interps.h.
2638 (set_logging_redirect): Call current_interp_set_logging.
2639 (pop_output_files): Ditto.
2640 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2641 * mi/mi-console.h (mi_console_set_raw): Declare.
2642 * mi/mi-console.c (mi_console_set_raw): New function.
2643 * mi/mi-interp.c (saved_raw_stdout): New global.
2644 (mi_set_logging): New function.
2645 (_initialize_mi_interp): Add it to interp procs.
2647 2012-06-28 Doug Evans <dje@google.com>
2649 * symtab.c (lookup_symbol_aux_objfile): Use
2650 ALL_OBJFILE_PRIMARY_SYMTABS.
2652 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2654 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2656 * common/buffer.c: Include inttypes.h and stdint.h.
2657 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2659 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2660 Pedro Alves <palves@redhat.com>
2662 * gdbthread.h (ALL_THREADS): New macro.
2663 (thread_list): Declare.
2664 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2665 going, but instead fall through to the stepping handling.
2666 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2667 the passed in signal. Adjust debug output.
2668 (resume_callback): Rename to ...
2669 (linux_nat_resume_callback): ... this. Pass the thread's last
2670 stop signal, if in "pass" state.
2671 (linux_nat_resume): Adjust to rename.
2672 (stop_wait_callback): New assertion. Don't respawn signals;
2673 instead let the LWP remain with SIGNALLED set.
2674 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2675 * remote.c (append_pending_thread_resumptions): New.
2676 (remote_vcont_resume): Call it.
2677 * target.h (target_resume): Extend comment.
2679 2012-06-28 Iain Sandoe <iain@codesourcery.com>
2681 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2683 2012-06-27 Doug Evans <dje@google.com>
2685 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2686 Delete have_addr_base, unused. All uses updated.
2687 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2688 (dwarf2_get_pc_bounds): Add ranges_base.
2689 (dwarf2_record_block_ranges): Ditto.
2691 2012-06-27 Tom Tromey <tromey@redhat.com>
2694 * varobj.c (varobj_create): Update.
2695 (varobj_set_value): Update.
2696 * tracepoint.c (validate_actionline): Update.
2697 (encode_actions_1): Update.
2698 * parse.c (parse_exp_1): Add 'pc' argument.
2699 (parse_exp_in_context): Add 'pc' argument. Change how
2700 expression_context_pc is set.
2701 (parse_expression): Update.
2702 (parse_field_expression): Update.
2703 * expression.h (parse_exp_1): Update.
2704 * eval.c (parse_to_comma_and_eval): Update.
2705 * breakpoint.c (set_breakpoint_condition): Update.
2706 (update_watchpoint): Update.
2707 (init_breakpoint_sal): Update
2708 (find_condition_and_thread): Update.
2709 (watch_command_1): Update.
2710 (update_breakpoint_locations): Update.
2711 * ada-lang.c (ada_read_renaming_var_value): Update.
2712 (create_excep_cond_exprs): Update.
2714 2012-06-27 Doug Evans <dje@google.com>
2716 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2719 2012-06-26 Doug Evans <dje@google.com>
2721 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2723 (error_check_comp_unit_head): New arg abbrev_section. All callers
2725 (read_and_check_comp_unit_head): Ditto.
2726 (read_and_check_type_unit_head): Ditto.
2728 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2730 New attribute 'last' for gdb.Symtab_and_line.
2731 * NEWS (Python Scripting): Add entry about the new attribute.
2732 * python/py-symtab.c (salpy_get_last): New function which
2733 implements the get method for the 'last' attribute of
2734 gdb.Symtab_and_line.
2735 (sal_object_getset): Add entry for the 'last' attribute.
2737 2012-06-26 Doug Evans <dje@google.com>
2739 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
2740 (dwo_sections): Add macinfo, macro.
2741 (dwarf2_locate_dwo_sections): Watch for macro sections.
2742 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
2743 All callers updated. Handle DWO files.
2745 * NEWS: Mention new options "set debug dwarf2-read" and
2746 "set debug symtab-create".
2747 * dwarf2read.c (dwarf2_read_debug): New static global.
2748 (dwarf2_build_psymtabs_hard): Add debugging printfs.
2749 (process_queue): Ditto.
2750 (process_full_comp_unit): Ditto.
2751 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
2752 * elfread.c (elf_symfile_read): Add debugging printf.
2753 * minsyms.c (install_minimal_symbols): Ditto.
2754 * psymtab.c (allocate_psymtab): Ditto.
2755 * symfile.c (allocate_symtab): Ditto.
2756 * symtab.c (symtab_create_debug): New global.
2757 (_initialize_symtab): Add new option "set debug symtab-create".
2758 * symtab.h (symtab_create_debug): Declare.
2760 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
2761 (lookup_dwo_type_unit): Ditto.
2763 2012-06-26 Roland McGrath <roland@hack.frob.com>
2764 H.J. Lu <hongjiu.lu@intel.com>
2766 * amd64-linux-nat.c: Include <sys/user.h>.
2767 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
2768 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
2769 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
2771 * configure.ac: Check if the fs_base and gs_base members of
2772 `struct user_regs_struct' exist.
2773 * config.in: Regenerated.
2774 * configure: Likewise.
2776 2012-06-25 Michael Eager <eager@eagercon.com>
2779 * python/python.c (gdbpy_write): Check for interrupted output.
2781 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
2783 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
2784 register as a stack alignment in ARM mode.
2786 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2788 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
2789 * gnulib/config.in: Regenerate.
2790 * gnulib/configure: Likewise.
2791 * gnulib/import/m4/extensions.m4: Update it.
2792 * gnulib/import/m4/gnulib-common.m4: Likewise.
2793 * gnulib/import/m4/memmem.m4: Likewise.
2794 * gnulib/import/m4/mmap-anon.m4: Likewise.
2795 * gnulib/import/m4/multiarch.m4: Likewise.
2796 * gnulib/import/stdint.in.h: Likewise.
2798 2012-06-24 Yao Qi <yao@codesourcery.com>
2800 * corefile.c (write_memory_with_notification): New.
2801 * gdbcore.h: Declare write_memory_with_notification.
2802 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
2803 'observer_notify_memory_changed' with 'write_memory_with_notification'.
2804 * valops.c (value_assign): Likewise.
2805 * python/py-inferior.c (infpy_write_memory): Call
2806 'write_memory_with_notification'.
2808 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2810 * cc-with-index.sh: Use also -ex "set auto-load no".
2812 2012-06-23 Doug Evans <dje@google.com>
2815 * NEWS: Document additions to .gdb_index.
2816 * dwarf2read.c: #include "gdb/gdb-index.h".
2817 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
2818 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
2819 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
2820 (dwarf2_read_index): Recognize version 7.
2821 (dw2_do_expand_symtabs_matching): New args want_specific_block,
2822 block_kind, domain): All callers updated.
2823 (dw2_find_symbol_file): Handle new index CU values.
2824 (dw2_expand_symtabs_matching): Match symbol kind if requested.
2825 (add_index_entry): New args is_static, kind. All callers updated.
2826 (offset_type_compare, uniquify_cu_indices): New functions
2827 (symbol_kind): New function.
2828 (write_psymtabs_to_index): Remove duplicate CU values.
2829 (write_psymtabs_to_index): Write .gdb_index version 7.
2831 2012-06-22 Joel Brobecker <brobecker@adacore.com>
2833 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
2834 * configure: Regenerate.
2836 2012-06-20 Yao Qi <yao@codesourcery.com>
2838 * python/py-inferior.c: Update comments of infpy_read_memory
2839 and infpy_write_memory.
2841 2012-06-19 Tom Tromey <tromey@redhat.com>
2844 * parser-defs.h (insert_type, insert_type_address_space): Declare.
2845 (push_type_address_space): Remove.
2846 * parse.c (insert_into_type_stack): New function.
2847 (insert_type): Likewise.
2848 (insert_type_address_space): Rename from push_type_address_space.
2849 Insert tp_space_identifier.
2850 * c-exp.y (ptr_operator): New production.
2851 (abs_decl): Use ptr_operator.
2852 (space_identifier): Call insert_type_address_space.
2853 (ptype): Don't use const_or_volatile_or_space_identifier.
2854 (const_or_volatile_noopt): Call insert_type.
2855 (conversion_type_id, conversion_declarator): New productions.
2856 (operator): Use conversion_type_id.
2858 2012-06-18 Doug Evans <dje@google.com>
2860 * symtab.h (minimal_symbol): New member created_by_gdb.
2861 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
2863 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
2864 (search_symbols): Call it instead of lookup_symbol.
2865 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
2867 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
2868 Adjust address for DW_OP_GNU_addr_index.
2869 * dwarf2expr.h (dwarf_expr_context): Update comment.
2870 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
2871 all callers updated. Handle TLS vars described with
2872 DW_OP_GNU_const_index.
2873 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
2874 and DW_OP_GNU_const_index.
2875 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
2877 * block.c (find_block_in_blockvector): Make explicit the fact that we
2878 ignore GLOBAL_BLOCK.
2880 2012-06-18 Tom Tromey <tromey@redhat.com>
2882 * c-exp.y (operator): Remove trailing space after "delete" and
2885 2012-06-18 Mark Kettenis <kettenis@gnu.org>
2886 Jan Kratochvil <jan.kratochvil@redhat.com>
2888 Switch i386 and derived targets to ON_STACK.
2889 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
2890 (amd64_dicos_init_abi): Remove its installment.
2891 * dicos-tdep.c (dicos_init_abi): Remove the
2892 set_gdbarch_call_dummy_location call. Update the comment here.
2893 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
2894 (i386_dicos_init_abi): Remove its installment.
2895 * i386-tdep.c (i386_push_dummy_code): New function.
2896 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
2897 i386_push_dummy_code.
2899 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2901 Remove stale dummy frames.
2902 * breakpoint.c: Include dummy-frame.h.
2903 (longjmp_breakpoint_ops): New variable.
2904 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
2905 bp_longjmp_call_dummy.
2906 (bpstat_what, bptype_string, print_one_breakpoint_location)
2907 (init_bp_location): Support bp_longjmp_call_dummy.
2908 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
2909 (set_longjmp_breakpoint_for_call_dummy)
2910 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
2912 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
2913 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
2914 FIXME comment and extend the other comment for bp_call_dummy.
2915 (set_longjmp_breakpoint_for_call_dummy)
2916 (check_longjmp_breakpoint_for_call_dummy): New declarations.
2917 * dummy-frame.c: Include gdbthread.h.
2918 (pop_dummy_frame_bpt): New function.
2919 (pop_dummy_frame): Call pop_dummy_frame_bpt.
2920 (dummy_frame_discard): New function.
2921 (cleanup_dummy_frames): Update the comment about longjmps.
2922 * dummy-frame.h (dummy_frame_discard): New declaration.
2923 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
2924 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
2925 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
2926 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
2927 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
2928 keep_going if IS_LONGJMP and there is no other reason to stop.
2930 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
2932 * remote-sim.c (sim_command_completer): Initialize
2935 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2937 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
2938 * dwarf2loc.c (call_site_parameter_matches): Support
2939 CALL_SITE_PARAMETER_PARAM_OFFSET.
2940 (needs_dwarf_reg_entry_value): Push stub value.
2941 * dwarf2read.c (read_call_site_scope): New variable origin. Support
2942 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
2943 * gdbtypes.h (enum call_site_parameter_kind): New item
2944 CALL_SITE_PARAMETER_PARAM_OFFSET.
2945 (struct call_site.parameter.u): New field param_offset.
2947 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2949 Code cleanup: Generalize call_site.parameter key.
2950 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
2951 variable dwarf_reg. New variable kind_u. Update parameters to
2952 push_dwarf_reg_entry_value.
2953 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2954 * dwarf2expr.h (enum call_site_parameter_kind)
2955 (union call_site_parameter_u): Forward declarations.
2956 (struct dwarf_expr_context_funcs): Update parameters and their
2957 description for push_dwarf_reg_entry_value.
2958 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2959 * dwarf2loc.c (call_site_parameter_matches): New function.
2960 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
2961 description. Use call_site_parameter_matches.
2962 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
2963 Update parameters and their description.
2964 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
2965 New variable kind_u. Adjust the caller for updated parameters.
2966 (needs_dwarf_reg_entry_value): Update parameters.
2967 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
2968 instead of attr. Update for the changed fields of struct
2969 call_site_parameter.
2970 * gdbtypes.h: Include dwarf2expr.h.
2971 (enum call_site_parameter_kind): New.
2972 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
2973 fb_offset into new union u.
2975 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2977 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
2978 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
2981 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2983 * amd64-linux-nat.c (compat_x32_clock_t): New.
2984 (compat_x32_siginfo_t): Likewise.
2985 (compat_x32_siginfo_from_siginfo): Likewise.
2986 (siginfo_from_compat_x32_siginfo): Likewise.
2987 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
2988 and siginfo_from_compat_x32_siginfo for x32.
2990 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
2992 * tracepoint.c (tfile_xfer_partial): Add a lseek.
2994 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2996 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
2997 instead of gdbarch_ptr_bit.
2998 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
2999 (amd64_supply_native_gregset): Likewise.
3000 (amd64_collect_native_gregset): Likewise.
3001 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3002 (amd64_supply_xsave): Likewise.
3003 (amd64_collect_fxsave): Likewise.
3004 (amd64_collect_xsave): Likewise.
3006 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3008 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3009 (amd64_linux_read_description): Check DS segment register for
3012 2012-06-15 Tom Tromey <tromey@redhat.com>
3014 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3015 init_cutu_and_read_dies.
3017 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3019 * MAINTAINERS (Write After Approval): Add myself to the list.
3021 2012-06-15 Tom Tromey <tromey@redhat.com>
3023 * valops.c (value_find_oload_method_list): Now static.
3024 * value.h (value_find_oload_method_list): Don't declare.
3026 2012-06-15 Tom Tromey <tromey@redhat.com>
3028 * valops.c (find_overload_match): Use value_ind.
3030 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3032 * infrun.c (handle_inferior_event): Correct indentation.
3034 2012-06-14 Doug Evans <dje@google.com>
3036 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3037 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3039 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3040 updated. Handle DEBUG_LOC_START_LENGTH.
3041 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3042 (loclist_describe_location): Ditto.
3044 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3047 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3048 after hiding inline functions.
3050 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3052 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3053 _initialize_inf_ttrace.
3055 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3057 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3058 _initialize_hppa_hpux_nat.
3060 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3062 * remote-sim.c (sim_command_completer): Change type of return
3063 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3065 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3066 Jan Kratochvil <jan.kratochvil@redhat.com>
3069 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3070 stack on a 16-byte boundary.
3072 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3074 * jit.c (finalize_symtab): Set function's return type to 'void' by
3077 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3078 H.J. Lu <hongjiu.lu@intel.com>
3080 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3081 Move bits common to both the classic LP64 and the new x32 ILP32
3083 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3084 (amd64_x32_linux_init_abi): New function.
3085 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3088 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3089 * i386-tdep.c (i386_pseudo_register_name): Make public.
3090 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3091 * amd64-tdep.c (amd64_dword_names): Add "eip".
3092 (amd64_x32_pseudo_register_type): New function
3093 (amd64_x32_init_abi): New function.
3095 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3098 * inferior.h (struct inferior_suspend_state): Comment out.
3099 (struct inferior): Comment out the field suspend.
3100 * infrun.c (struct infcall_suspend_state): Comment out the field
3102 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3105 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3107 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3108 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3109 function comment. Return ERROR for unresolved cases. Implement
3110 returning proper NAME.
3111 (yylex): Accept also NAME from classify_inner_name.
3112 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3113 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3115 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3117 2012-06-13 Tom Tromey <tromey@redhat.com>
3119 * breakpoint.c (condition_completer): New function.
3120 (_initialize_breakpoint): Use it.
3121 * value.c (complete_internalvar): New function.
3122 * value.h (complete_internalvar): Declare.
3124 2012-06-13 Tom Tromey <tromey@redhat.com>
3126 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3127 * breakpoint.c (catch_syscall_completer): Return a VEC.
3128 * cli/cli-cmds.c (complete_command): Update.
3129 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3130 (complete_on_enum): Likewise.
3131 * command.h: Include gdb_vecs.h.
3132 (completer_ftype): Change return type.
3133 (complete_on_cmdlist, complete_on_enum): Likewise.
3134 * completer.c (noop_completer, filename_completer)
3135 (location_completer): Return a VEC.
3136 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3138 (expression_completer, complete_line_internal, complete_line)
3139 (command_completer): Return a VEC.
3140 (gdb_completion_word_break_characters, line_completion_function):
3142 * completer.h: Include gdb_vecs.h.
3143 (complete_line, noop_completer, filename_completer)
3144 (expression_completer, location_completer, command_completer):
3146 * f-lang.c (f_word_break_characters): Return a VEC.
3147 * interps.c (interpreter_completer): Return a VEC.
3148 * language.h (struct language_defn)
3149 <la_make_symbol_completion_list>: Return a VEC.
3150 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3151 * symtab.c (free_completion_list): Take a VEC.
3152 (return_val_size, return_val_index): Remove.
3153 (return_val): Now a VEC.
3154 (completion_list_add_name): Update.
3155 (default_make_symbol_completion_list_break_on)
3156 (default_make_symbol_completion_list, make_symbol_completion_list)
3157 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3159 (add_filename_to_list): Update.
3160 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3162 (maybe_add_partial_symtab_filename): Update.
3163 (make_source_files_completion_list): Return a VEC.
3164 * symtab.h (default_make_symbol_completion_list_break_on)
3165 (default_make_symbol_completion_list, make_symbol_completion_list)
3166 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3167 (make_source_files_completion_list): Update.
3169 2012-06-13 Tom Tromey <tromey@redhat.com>
3171 * breakpoint.c (add_catch_command): Use completer_ftype.
3172 * breakpoint.h: Include command.h.
3173 (add_catch_command): Use completer_ftype.
3174 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3175 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3176 Use completer_ftype.
3177 * command.h (completer_ftype): New typedef.
3178 (set_cmd_completer): Use it.
3179 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3182 2012-06-13 Pedro Alves <palves@redhat.com>
3184 Partial revert of previous change.
3186 * serial.c (scb_base): New global.
3187 (serial_for_fd): New.
3188 (serial_open, serial_fdopen_ops): Link new serial in open serials
3190 (do_serial_close): Unlink serial from the open serials chain.
3192 2012-06-12 Pedro Alves <palves@redhat.com>
3194 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3196 (prepare_for_detach): No longer context switch here in non-stop
3198 (fetch_inferior_event): Ditto.
3199 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3200 to the event thread before removing breakpoints. Switch to the
3201 event thread before inserting breakpoints and resuming.
3202 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3203 event thread before resuming.
3204 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3205 Switch to the event thread before removing breakpoints.
3207 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3209 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3210 special characters correctly for the Windows shells. See
3211 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3213 [!__MINGW32__]: Remove extra double quote character from special
3216 2012-06-11 Stan Shebs <stan@codesourcery.com>
3218 * ui-out.h: Remove #if 0 declarations.
3219 * ui-out.c: Remove #if 0 functions.
3221 2012-06-11 Pedro Alves <palves@redhat.com>
3223 * ser-base.c (run_async_handler_and_reschedule): New.
3224 (fd_event, push_event): Use it.
3225 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3226 reference count to 1.
3227 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3229 (serial_is_open, serial_ref, serial_unref): New.
3230 * serial.h (serial_open): Adjust comment.
3231 (serial_is_open): Declare.
3232 (serial_close): Adjust comment.
3233 (serial_ref, serial_unref) Declare.
3234 (struct serial): New field 'refcnt'.
3236 2012-06-11 Pedro Alves <palves@redhat.com>
3238 Remove #if 0'd "connect" command, and unnecessary associated
3239 refcounting and serial reuse bits.
3241 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3242 * serial.c (last_serial_opened): Delete.
3244 (serial_open): Adjust.
3245 (serial_for_fd): Delete.
3246 (serial_fdopen_ops, do_serial_close): Adjust.
3247 (serial_fdopen_ops): Adjust.
3249 2012-06-11 Pedro Alves <palves@redhat.com>
3251 * serial.c (do_serial_close): Remove early return when SCB is
3254 2012-06-11 Tom Tromey <tromey@redhat.com>
3256 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3258 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3260 Fix regression by the "ambiguous linespec" series.
3261 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3262 get_last_displayed_symtab and get_last_displayed_line and depending
3265 2012-06-11 Tom Tromey <tromey@redhat.com>
3267 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3268 (dw2_find_symbol_file): Use it.
3270 2012-06-11 Michael Eager <eager@eagercon.com>
3272 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3273 * mips-linux-tdep.h (mips_signals): New
3275 2012-06-11 Tom Tromey <tromey@redhat.com>
3277 * infrun.c (handle_inferior_event)
3278 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3280 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3281 exception logic in all cases. Update comments.
3282 (insert_longjmp_resume_breakpoint): Set the exception resume
3285 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3287 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3289 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3291 * valarith.c (binop_types_user_defined_p): Fix a typo.
3293 2012-06-08 Yao Qi <yao@codesourcery.com>
3294 Chung-Lin Tang <cltang@codesourcery.com>
3296 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3297 * arch-utils.h: Declare.
3298 * gdbarch.sh: Add return_in_first_hidden_param_p.
3299 * gdbarch.c, gdbarch.h: Regenerated.
3300 * infcall.c (call_function_by_hand): Call
3301 gdbarch_return_in_first_hidden_param_p instead of
3302 language_pass_by_reference.
3304 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3305 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3306 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3307 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3308 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3309 `cplus_return_struct_by_reference'.
3310 (tic6x_return_value): Handle language cplusplus.
3311 (tic6x_return_in_first_hidden_param_p): New.
3312 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3314 2012-06-07 Doug Evans <dje@google.com>
3316 * dwarf2read.c (dwarf2_cu): Add comment.
3318 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3320 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3322 (mips_eabi_push_dummy_call): Likewise.
3323 (mips_n32n64_push_dummy_call): Likewise.
3324 (mips_o32_push_dummy_call): Likewise.
3325 (mips_o64_push_dummy_call): Likewise.
3327 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3329 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3331 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3333 * mips-tdep.c (mips_pseudo_register_type): Use
3334 mips_float_register_p.
3336 2012-06-06 Pedro Alves <palves@redhat.com>
3338 * infrun.c (handle_inferior_event): Remove calls to
3339 reinit_frame_cache that follow a context_switch call.
3341 2012-06-06 Pedro Alves <palves@redhat.com>
3343 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3344 context_switch and remove stale comment.
3346 2012-06-06 Pedro Alves <palves@redhat.com>
3348 * infrun.c (struct execution_control_state): Remove
3349 `new_thread_event' field.
3350 (handle_inferior_event): Simplify new threads handling; don't
3351 resume the inferior if we find a new thread.
3353 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3355 * NEWS: Document the deprecation of SH's 'regs' command.
3356 * inferior.h (all_registers_info): Add function declaration.
3357 * sh-tdep.c (sh_show_regs): Remove variable.
3358 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3359 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3360 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3361 (sh_show_regs_command): Remove functions.
3362 (sh_gdbarch_init): Don't set sh_show_regs.
3363 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3364 'info all-registers'.
3365 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3366 (sh64_show_regs): Remove functions.
3367 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3369 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3371 * configure.ac: Move development=true below AC_INIT.
3372 * configure: Regenerate.
3374 2012-06-05 Stan Shebs <stan@codesourcery.com>
3376 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3379 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3381 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3382 argument as ssize_t.
3383 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3384 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3385 * target.c (target_read_stack, target_write_memory)
3386 (target_write_raw_memory): Likewise.
3387 * target.h (target_read_stack, target_write_memory)
3388 (target_write_raw_memory): Likewise.
3390 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3392 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3393 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3394 * target.c (target_read_memory): Change LEN to ssize_t.
3395 * target.h (target_read_memory): Change LEN to ssize_t.
3397 2012-06-05 Pedro Alves <palves@redhat.com>
3401 * breakpoint.c (until_break_command): Only fetch the selected
3402 frame after decode_line_1.
3404 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3406 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3407 event breakpoint at _start, __start or main if a program
3408 interpreter is not found.
3410 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3412 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3414 * windows-tdep.c: #include "objfiles.h".
3415 (windows_iterate_over_objfiles_in_search_order): New function.
3416 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3417 iterate_over_objfiles_in_search_order gdbarch method to
3418 windows_iterate_over_objfiles_in_search_order.
3419 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3421 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3423 * gdbarch.sh: Add generation of
3424 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3425 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3426 (iterate_over_objfiles_in_search_order): New gdbarch method.
3427 * gdbarch.h, gdbarch.c: Regenerate.
3428 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3430 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3432 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3433 out of lookup_symbol_aux_symtabs.
3434 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3435 call to lookup_symbol_aux_objfile.
3436 (struct global_sym_lookup_data): New type.
3437 (lookup_symbol_global_iterator_cb): New function.
3438 (lookup_symbol_global): Search for symbol using
3439 gdbarch_iterate_over_objfiles_in_search_order and
3440 lookup_symbol_global_iterator_cb.
3441 * findvar.c (struct minsym_lookup_data): New type.
3442 (minsym_lookup_iterator_cb): New function.
3443 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3444 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3445 and minsym_lookup_iterator_cb.
3447 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3449 Revert the following patch:
3450 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3451 try locating the symbol in the symbol's own objfile first, before
3452 extending the search to all objfiles.
3453 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3454 out of lookup_symbol_aux_symtabs.
3455 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3456 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3457 Do not search EXCLUDE_OBJFILE.
3458 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3459 (lookup_symbol_global): Search for matches in the block's objfile
3460 first, before searching all other objfiles.
3462 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3464 * breakpoint.c (find_condition_and_thread): Stop parsing
3465 as soon as the first invalid keyword is found.
3467 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3469 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3471 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3473 * config/djgpp/djcheck.sh: Add copyright header.
3475 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3477 * copyright.py (update_files, main): Fix path to update-copyright
3480 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3482 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3483 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3484 for which a reminder to update by hand is printed.
3486 2012-06-04 Doug Evans <dje@google.com>
3488 * buildsym.c (make_blockvector): Add comment.
3490 2012-06-04 Pedro Alves <palves@redhat.com>
3492 * arch-utils.c (default_gdb_signal_from_target): Delete.
3493 * arch-utils.h (default_gdb_signal_from_target): Delete.
3494 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3495 gdbarch_gdb_signal_from_target_p.
3496 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3498 * gdbarch.h: Regenerate.
3499 * gdbarch.c: Regenerate.
3501 2012-06-04 Pedro Alves <palves@redhat.com>
3503 * gdbarch.sh (gdb_signal_from_target): Mention that the
3504 implementation of the method must be host independent.
3505 * gdbarch.h: Regenerate.
3507 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3509 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3511 (target_read_memory_bfd): New function.
3512 (symbol_file_add_from_memory): Use it.
3514 2012-06-03 Doug Evans <dje@google.com>
3516 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3518 (basic_lookup_transparent_type): Ditto.
3520 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3521 (ALL_PRIMARY_SYMTABS): Use it.
3522 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3523 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3524 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3525 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3526 (basic_lookup_transparent_type): Ditto.
3528 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3530 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3531 it to optimize resolution of demangled name.
3533 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3535 * configure.ac (development): Define new variable.
3536 Call AC_CHECK_LIB for mcheck if $development.
3537 (ERROR_ON_WARNING): Enable it by default only if $development.
3538 * config.in: Regenerate.
3539 * configure: Regenerate.
3541 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3543 * target.c (target_read_memory): Make LEN argument as size_t.
3544 * target.h (target_read_memory): Likewise.
3546 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3548 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3550 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3552 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3553 BookE interface for PowerPC server processors if not available
3554 in the Linux Kernel.
3556 2012-05-31 Keith Seitz <keiths@redhat.com>
3558 * linespec.c (decode_objc): Add cleanup to free
3560 (find_linespec_symbols): Add cleanup to free CLASSES.
3561 * symfile.c (find_separate_debug_file_by_debuglink): Add
3562 cleanup to free DEBUGLINK.
3563 * ui-out.c (clear_header_list): No need to check if
3564 HEADER_NEXT.COLHDR is NULL.
3565 Free HEADER_NEXT.COL_NAME.
3567 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3569 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3572 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3574 * configure.host (gdb_host_cpu): Handle tilegx*.
3575 (gdb_host): Handle tilegx-*-linux*.
3576 * tilegx-linux-nat.c: New file.
3577 * config/tilegx/linux.mh: New file.
3579 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3581 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3582 tilegx-linux-tdep.o.
3583 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3584 tilegx-linux-tdep.c.
3585 * configure.tgt: Handle tilegx-*-linux*.
3586 * tilegx-tdep.h: New file.
3587 * tilegx-tdep.c: New file.
3588 * tilegx-linux-tdep.c: New file.
3589 * regformats/reg-tilegx.dat: New file.
3591 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3593 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3594 accounting of hw watchpoints on ppc.
3596 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3598 * source.c (openp): Expand tilde in path entries.
3600 2012-05-29 Doug Evans <dje@google.com>
3602 * buildsym.c (block_compar): Fix comment.
3603 (end_symtab): Fix and clarify some comments.
3605 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3606 cleanup_undefined_types.
3607 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3608 All callers updated.
3610 2012-05-29 Tom Tromey <tromey@redhat.com>
3612 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3614 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3615 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3617 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3620 2012-05-29 Tristan Gingold <gingold@adacore.com>
3622 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3623 (struct darwin_info): ... New struct.
3624 (solib_darwin_pspace_data): New variable.
3625 (darwin_pspace_data_cleanup): New function.
3626 (get_darwin_info): Likewise.
3627 (darwin_dyld_version_ok, darwin_load_image_infos)
3628 (darwin_solib_get_all_image_info_addr_at_init)
3629 (darwin_solib_read_all_image_info_addr): Add info argument.
3631 (darwin_current_sos): Use per pspace structure.
3632 (darwin_solib_create_inferior_hook): Likewise.
3633 (darwin_clear_solib): Likewise.
3634 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3636 2012-05-28 Pedro Alves <palves@redhat.com>
3638 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3639 block that uses them. Clear ecss before handling each event.
3641 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3643 * solib-svr4.c (svr4_current_sos): New comment on
3644 svr4_current_sos_via_xfer_libraries fall back.
3646 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3648 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3649 it as a fallback for TYPE_IS_OPAQUE.
3650 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3651 symbols for lookup_symbol.
3653 2012-05-24 John Steele Scott <toojays@toojays.net>
3655 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3656 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3657 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3658 (check_producer): ... this new function, which also checks for ICC
3659 and caches the result.
3660 (producer_is_icc): New function.
3661 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3664 2012-05-24 Pedro Alves <palves@redhat.com>
3668 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3669 (default_gdb_signal_to_target): ... this. Add comment.
3670 (default_gdb_signal_from_host): Rename to ...
3671 (default_gdb_signal_from_target): ... this. Add comment.
3672 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3673 (default_gdb_signal_to_target): ... this.
3674 (default_gdb_signal_from_host): Rename to ...
3675 (default_gdb_signal_from_target): ... this.
3676 * corelow.c (core_open): Adjust to naming change. Replace comment.
3677 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3678 (gdb_signal_from_target): ... this. Adjust to
3679 default_gdb_signal_from_host naming change. Extend comment.
3680 (gdb_signal_to_host): Rename to ...
3681 (gdb_signal_to_target): ... this. Adjust to
3682 default_gdb_signal_to_host naming change.
3683 * gdbarch.h, gdbarch.c: Renegerate.
3685 2012-05-24 Pedro Alves <palves@redhat.com>
3689 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
3691 2012-05-24 Pedro Alves <palves@redhat.com>
3695 Replace target_signal with gdb_signal throughout.
3697 2012-05-24 Pedro Alves <palves@redhat.com>
3701 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3702 string, instead of reusing the va_list argument.
3704 2012-05-24 Tom Tromey <tromey@redhat.com>
3706 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3709 2012-05-23 Doug Evans <dje@google.com>
3711 * symtab.c (search_symbols): Formatting fixes.
3712 (print_symbol_info): Formatting fixes.
3714 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3715 int64_t change to leb128 API.
3716 (read_encoded_value, decode_frame_entry_1): Ditto.
3717 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3718 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3719 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3720 (execute_stack_op): Ditto.
3721 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3722 (safe_read_uleb128, safe_read_sleb128): Ditto.
3723 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3724 (dwarf2_compile_expr_to_ax): Ditto.
3725 (locexpr_describe_location_piece): Ditto.
3726 (disassemble_dwarf_expression): Ditto.
3727 (locexpr_describe_location_1): Ditto.
3729 2012-05-23 Stan Shebs <stan@codesourcery.com>
3730 Kwok Cheung Yeung <kcy@codesourcery.com>
3732 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
3733 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
3734 (mi-cmd-info.o): New rule.
3735 * osdata.h (info_osdata_command): New declaration.
3736 * osdata.c (info_osdata_command): Change to non-static.
3737 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
3738 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
3739 * mi/mi-cmd-info.c: New file.
3741 2012-05-23 Doug Evans <dje@google.com>
3743 * symtab.c (search_symbols): Pass NULL for file_matcher to
3744 expand_symtabs_matching if there are no files to match.
3746 * gdbtypes.c (lookup_typename): Simplify.
3748 2012-05-23 Pedro Alves <palves@redhat.com>
3750 * arch-utils.h (default_target_signal_to_host): Delete.
3751 * arch-utils.c (default_target_signal_to_host): Delete.
3752 * gdbarch.sh (target_signal_to_host): Remove.
3753 * gdbarch.h, gdbarch.c: Regenerate.
3755 2012-05-22 Doug Evans <dje@google.com>
3757 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
3759 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
3760 (execute_cfa_program): Update to match API of leb128 functions.
3761 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
3763 (read_unsigned_leb128, read_signed_leb128): Delete.
3764 (read_initial_length): Change type of buf argument to
3766 (read_encoded_value): Update to match API of leb128 functions.
3767 (decode_frame_entry): Change result to "const gdb_byte *", and
3768 similarly for "start" parameter.
3769 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
3770 (dwarf2_build_frame_info): Change local frame_ptr to
3772 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
3773 read_uleb128, read_sleb128. All callers updated.
3774 (safe_skip_leb128): New function.
3775 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
3776 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
3777 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
3778 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
3779 read_uleb128, read_sleb128.
3780 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3781 (execute_stack_op): Update to match API of leb128 functions.
3782 * dwarf2expr.h: #include "leb128.h".
3783 (read_uleb128, read_sleb128): Delete.
3784 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
3785 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
3786 * dwarf2loc.c (debug_loc_kind): New enum.
3787 (decode_debug_loc_addresses): New function.
3788 (decode_debug_loc_dwo_addresses): New function.
3789 (dwarf2_find_location_expression): Rewrite.
3790 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
3791 (locexpr_describe_location_piece): Ditto.
3792 (disassemble_dwarf_expression): Ditto.
3793 (locexpr_describe_location_1): Ditto.
3794 (loclist_describe_location): Rewrite.
3795 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
3796 * dwarf2read.c (die_reader_specs): New member "buffer_end".
3797 (dwarf2_section_buffer_overflow_complaint): Renamed from
3798 dwarf2_macros_too_long_complaint. All callers updated.
3799 (skip_leb128): Delete.
3800 (init_cu_die_reader): Initialize reader->buffer_end.
3801 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
3802 (skip_form_bytes): New arg buffer_end. All callers updated.
3803 Replace call to skip_leb128 with gdb_skip_leb128.
3804 (skip_unknown_opcode): New arg mac_end. All callers updated.
3805 (fill_in_loclist_baton): Initialize baton->from_dwo.
3807 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3809 * mips-linux-nat.c (mips_linux_read_description): Use a more
3810 verbose error message.
3812 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3814 * NEWS: Add MIPS/Linux DSP support.
3815 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
3816 (SIGCONTEXT_DSPCTL): New macro.
3817 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
3818 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
3819 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
3820 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
3821 (N64_SIGCONTEXT_HI3): Likewise.
3822 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
3823 (N64_SIGCONTEXT_LO3): Likewise.
3824 (N64_SIGCONTEXT_DSPCTL): Likewise.
3825 (N64_SIGCONTEXT_FPCSR): Clarify definition.
3826 (mips_linux_o32_sigframe_init): Handle DSP registers.
3827 (mips_linux_n32n64_sigframe_init): Likewise.
3829 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3831 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
3834 2012-05-22 Pedro Alves <palves@redhat.com>
3836 * target.h (store_waitstatus): Move declaration ...
3837 * inf-child.h (store_waitstatus): ... here.
3838 * target.c: Move inclusion of gdb_wait.h, and ...
3839 (store_waitstatus): ... this ...
3840 * inf-child.c: ... here.
3841 * linux-nat.c: Include inf-child.h.
3842 * rs6000-nat.c: Include inf-child.h.
3843 * spu-linux-nat.c: Include inf-child.h.
3845 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3847 * tracepoint.c (start_tracing): Add missing i18n markup.
3848 (stop_tracing, set_trace_user): Ditto.
3849 (set_trace_notes, set_trace_stop_notes): Ditto.
3851 2012-05-21 Tom Tromey <tromey@redhat.com>
3854 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
3856 * value.h (value_cast_pointers): Update.
3857 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
3858 (value_cast): Update.
3859 (update_search_result): New function.
3860 (do_search_struct_field): New, from search_struct_field. Check
3861 for ambiguous results.
3862 (search_struct_field): Rewrite.
3863 * infcall.c (value_arg_coerce): Update.
3864 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
3865 value_cast_pointers.
3866 * ada-lang.c (ada_convert_actual): Update.
3868 2012-05-21 Tom Tromey <tromey@redhat.com>
3870 * macroexp.c (macro_stringify): Terminate the string.
3872 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3874 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
3876 * auto-load.c (auto_load_expand_dir_vars): New function.
3877 (auto_load_safe_path_vec_update): Use it, remove the
3878 substitute_path_component call thanks to it.
3879 (auto_load_objfile_script): Remove the debug_file_directory processing.
3880 Use auto_load_expand_dir_vars, remove the substitute_path_component
3882 * configure: Regenerate.
3883 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
3884 path. Escape $ also for $debugdir.
3885 (--with_auto_load_safe_path): Escape $ also for $debugdir.
3886 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
3888 2012-05-20 Doug Evans <dje@google.com>
3890 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
3891 before use. Check for symtab->includes == NULL before scanning it.
3893 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3895 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
3897 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3899 * NEWS: Add microMIPS support and "set mips compression",
3900 "show mips compression" commands.
3901 * mips-tdep.h (mips_isa): New enum.
3902 (gdbarch_tdep): Add mips_isa.
3903 (mips_pc_is_mips16): Update prototype.
3904 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
3905 * mips-tdep.c (mips_compression_mips16): New variable.
3906 (mips_compression_micromips): Likewise.
3907 (mips_compression_strings): Likewise.
3908 (mips_compression_string): Likewise.
3909 (is_mips16_isa, is_micromips_isa): New functions.
3910 (is_mips16_addr): Rename to...
3911 (is_compact_addr): ... this.
3912 (unmake_mips16_addr): Likewise to...
3913 (unmake_compact_addr): ... this.
3914 (make_mips16_addr): Likewise to...
3915 (make_compact_addr): ... this.
3916 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
3918 (mips_elf_make_msymbol_special): Handle microMIPS code.
3919 (msymbol_is_special): Rename to...
3920 (msymbol_is_mips16): ... this.
3921 (mips_make_symbol_special, mips_pc_is_mips16): Update
3923 (msymbol_is_mips, msymbol_is_micromips): New functions.
3924 (mips16_to_32_reg): Rename to...
3925 (mips_reg3_to_reg): ... this.
3926 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
3927 (mips_pc_isa): Likewise.
3928 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
3930 (mips_fetch_instruction): Pass return status instead of printing
3931 an error message if requested. Handle microMIPS code. Bail out
3933 (micromips_op): New macro.
3934 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
3935 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
3936 (b6s4_op, b7s3_reg): Likewise.
3937 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
3938 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
3939 (mips_insn_size): New function.
3940 (mips32_next_pc): Update mips_fetch_instruction call.
3941 (micromips_relative_offset7): New function.
3942 (micromips_relative_offset10): Likewise.
3943 (micromips_relative_offset16): Likewise.
3944 (micromips_pc_insn_size): Likewise.
3945 (micromips_bc1_pc): Likewise.
3946 (micromips_next_pc): Likewise.
3947 (unpack_mips16): Update mips_fetch_instruction call.
3948 (extended_mips16_next_pc): Update according to change to
3950 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
3952 (mips16_scan_prologue): Update mips_fetch_instruction call.
3953 Update according to change to mips16_to_32_reg.
3954 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
3955 (mips_insn16_frame_base_sniffer): Likewise.
3956 (micromips_decode_imm9): New function.
3957 (micromips_scan_prologue): Likewise.
3958 (mips_micro_frame_cache): Likewise.
3959 (mips_micro_frame_this_id): Likewise.
3960 (mips_micro_frame_prev_register): Likewise.
3961 (mips_micro_frame_sniffer): Likewise.
3962 (mips_micro_frame_unwind): New variable.
3963 (mips_micro_frame_base_address): New function.
3964 (mips_micro_frame_base): New variable.
3965 (mips_micro_frame_base_sniffer): New function.
3966 (mips32_scan_prologue): Update mips_fetch_instruction call.
3967 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
3968 rather than for MIPS16.
3969 (mips_insn32_frame_base_sniffer): Likewise.
3970 (mips_addr_bits_remove): Handle microMIPS code.
3971 (deal_with_atomic_sequence): Rename to...
3972 (mips_deal_with_atomic_sequence): ... this. Update the type
3973 of the variable used to hold an instruction. Remove the ISA bit
3974 check. Update mips_fetch_instruction call.
3975 (micromips_deal_with_atomic_sequence): New function.
3976 (deal_with_atomic_sequence): Likewise.
3977 (mips_about_to_return): Handle microMIPS code. Update
3978 mips_fetch_instruction call.
3979 (heuristic_proc_start): Check for the standard MIPS ISA rather
3980 than for MIPS16. Update mips_pc_is_mips16 and
3981 mips_fetch_instruction calls. Handle microMIPS code.
3982 (mips_push_dummy_code): Handle microMIPS code.
3983 (mips_eabi_push_dummy_call): Likewise.
3984 (mips_o32_return_value): Update mips_pc_is_mips16 call.
3985 (mips_o64_push_dummy_call): Handle microMIPS code.
3986 (mips_o64_return_value): Update mips_pc_is_mips16 call.
3987 (is_delayed): Remove function.
3988 (mips_single_step_through_delay): Replace the call to is_delayed
3989 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
3990 Handle microMIPS code.
3991 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
3993 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
3995 (micromips_in_function_epilogue_p): New function.
3996 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
3998 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4000 (gdb_print_insn_mips): Likewise.
4001 (mips_breakpoint_from_pc): Likewise.
4002 (mips_remote_breakpoint_from_pc): New function.
4003 (mips32_instruction_has_delay_slot): Simplify making use of the
4004 updated mips_fetch_instruction interface.
4005 (micromips_instruction_has_delay_slot): New function.
4006 (mips16_instruction_has_delay_slot): Simplify making use of the
4007 updated mips_fetch_instruction interface.
4008 (mips_adjust_breakpoint_address): Check for the standard MIPS
4009 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4010 calls. Handle microMIPS code.
4011 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4012 (mips_skip_trampoline_code): Handle microMIPS code.
4013 (global_mips_compression): New function.
4014 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4015 file flags. Register the microMIPS remote breakpoint handler
4016 and heuristic frame unwinder.
4017 (show_mips_compression): New function.
4018 (_initialize_mips_tdep): Add the "set mips compression" and
4019 "show mips compression" commands.
4021 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4026 * amd64-darwin-tdep.c:
4027 * arm-symbian-tdep.c:
4031 * bfin-linux-tdep.c:
4038 * dwarf2-frame-tailcall.c:
4067 * microblaze-tdep.c:
4068 * mips-linux-tdep.c:
4076 * python/py-finishbreakpoint.c:
4077 * python/py-inferior.c:
4078 * python/py-infthread.c:
4082 * remote-m32r-sdi.c:
4086 * rs6000-aix-tdep.c:
4112 * amd64-darwin-tdep.c:
4113 * arm-symbian-tdep.c:
4114 * arm-tdep.c: Delete unused variables.
4116 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4118 Rename $ddir to $datadir.
4119 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4120 * auto-load.c (auto_load_safe_path_vec_update)
4121 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4122 * configure: Regenerate.
4123 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4124 Likewise. Remove the 'use $ddir' help string.
4126 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4128 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4129 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4131 2012-05-18 Tom Tromey <tromey@redhat.com>
4134 * valprint.h (struct value_print_options) <symbol_print>: New
4136 * valprint.c (user_print_options): Add default for symbol_print.
4137 (show_symbol_print): New function.
4138 (generic_val_print): Respect symbol_print.
4139 (_initialize_valprint): Add "print symbol" setting.
4140 * f-valprint.c (f_val_print): Respect symbol_print.
4141 * c-valprint.c (c_val_print): Respect symbol_print.
4143 * printcmd.c (print_address_symbolic): Return int. Ignore some
4145 (print_address_demangle): Return int.
4146 * defs.h: (print_address_symbolic): Return int.
4147 * value.h (print_address_demangle): Return int.
4149 2012-05-18 Tom Tromey <tromey@redhat.com>
4151 * valprint.c (val_print_string): Don't print leading space.
4152 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4153 print space before string or vtbl.
4154 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4156 * jv-valprint.c (java_value_print): Print space before string.
4157 * go-valprint.c (print_go_string): Print space before string.
4158 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4159 space before string.
4160 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4161 space before string or vtbl.
4162 * auxv.c (fprint_target_auxv): Print space after address.
4164 2012-05-18 Tom Tromey <tromey@redhat.com>
4166 * printcmd.c (print_address_demangle): Remove special case for 0.
4168 2012-05-18 Tom Tromey <tromey@redhat.com>
4170 * printcmd.c (print_address_demangle): Add 'opts' argument.
4171 * p-valprint.c (pascal_val_print): Update.
4172 * jv-valprint.c (java_val_print): Update.
4174 * valprint.c (generic_val_print): Update.
4175 (print_function_pointer_address): Add 'options' argument. Remove
4176 'addressprint' argument. Update.
4177 * m2-valprint.c (print_unpacked_pointer): Update.
4178 * gnu-v3-abi.c (print_one_vtable): Update.
4179 (gnuv3_print_method_ptr): Update.
4180 * f-valprint.c (f_val_print): Update.
4181 * cp-valprint.c (cp_print_value_fields): Update.
4182 * valprint.h (print_function_pointer_address): Update.
4183 * c-valprint.c (c_val_print): Update.
4185 2012-05-18 Tom Tromey <tromey@redhat.com>
4187 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4188 directly corresponding to the found psymtab.
4189 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4190 (dw2_find_pc_sect_symtab): Use it.
4191 * block.h (blockvector_contains_pc): Declare.
4192 * block.c (find_block_in_blockvector): New function.
4193 (blockvector_for_pc_sect): Use it.
4194 (blockvector_contains_pc): New function.
4196 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4198 * mips-tdep.h (mips_write_pc): New prototype.
4199 * mips-tdep.c (mips_write_pc): Make external, add description.
4200 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4203 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4205 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4207 (mips_unwind_pc, mips_write_pc): Likewise.
4208 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4211 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4213 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4214 proc_warn, proc_error, proc_get_status, proc_flags,
4215 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4216 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4217 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4218 proc_stop_process, proc_wait_for_stop, proc_run_process,
4219 proc_set_traced_signals, proc_set_traced_faults,
4220 proc_set_traced_sysentry, proc_set_traced_sysexit,
4221 proc_set_held_signals, proc_get_held_signals,
4222 proc_get_traced_signals, proc_get_traced_faults,
4223 proc_get_traced_sysentry, proc_get_traced_sysexit,
4224 proc_clear_current_fault, proc_set_current_signal,
4225 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4226 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4227 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4228 proc_get_current_thread, proc_get_current_thread,
4229 proc_get_current_thread, proc_update_threads,
4230 proc_update_threads, proc_update_threads, proc_update_threads,
4231 proc_iterate_over_threads, procfs_find_new_threads,
4232 procfs_pid_to_str): Make static. Remove advance declaration.
4233 (proc_cursig): Make static. Conditionalized defintion on
4234 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4235 (proc_syscall, proc_set_kill_on_last_close,
4236 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4237 proc_get_pending_signals, proc_get_signal_actions,
4238 proc_trace_signal, proc_ignore_signal): Delete.
4240 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4242 * coffread.c (cs_section_address): Passing proper argument for
4243 `bfd_get_section_vma'.
4244 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4245 `bfd_get_section_flags'.
4246 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4247 `bfd_get_section_vma'.
4249 2012-05-16 Tom Tromey <tromey@redhat.com>
4252 * macrotab.h: (macro_define_special): Declare.
4253 (enum macro_special_kind): New.
4254 (struct macro_definition) <argc, replacement>: Update comments.
4255 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4256 (macro_define_object_internal): New function.
4257 (macro_define_object): Use it.
4258 (macro_define_special): New function.
4259 (fixup_definition): New function.
4260 (macro_lookup_definition, foreach_macro_in_scope)
4261 (foreach_macro): Use fixup_definition.
4262 * macroexp.h (macro_stringify): Declare.
4263 * macroexp.c (free_buffer_return_text): New function.
4264 (stringify): Constify "arg".
4265 (macro_stringify): New function.
4266 * dwarf2read.c (macro_start_file): Call macro_define_special.
4268 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4269 Maciej W. Rozycki <macro@mips.com>
4271 * breakpoint.h (bp_location): Add related_address member.
4272 * inferior.h (get_return_value): Take a pointer to struct value
4273 instead of struct type for the function requested.
4274 * value.h (using_struct_return): Likewise.
4275 * gdbarch.sh (return_value): Take a pointer to struct value
4276 instead of struct type for the function requested.
4277 * breakpoint.c (set_breakpoint_location_function): Initialize
4278 related_address for bp_gnu_ifunc_resolver breakpoints.
4279 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4280 requested function's address to gdbarch_return_value.
4281 * eval.c (evaluate_subexp_standard): Pass the requested
4282 function's address to using_struct_return.
4283 * infcall.c (call_function_by_hand): Pass the requested
4284 function's address to using_struct_return and
4285 gdbarch_return_value.
4286 * infcmd.c (get_return_value): Take a pointer to struct value
4287 instead of struct type for the function requested.
4288 (print_return_value): Update accordingly.
4289 (finish_command_continuation): Likewise.
4290 * stack.c (return_command): Pass the requested function's
4291 address to using_struct_return and gdbarch_return_value.
4292 * value.c (using_struct_return): Take a pointer to struct value
4293 instead of struct type for the function requested. Pass the
4294 requested function's address to gdbarch_return_value.
4295 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4296 New function_value member, replacing function_type.
4297 (bpfinishpy_dealloc): Update accordingly.
4298 (bpfinishpy_pre_stop_hook): Likewise.
4299 (bpfinishpy_init): Likewise. Record the requested function's
4301 * mips-tdep.c (mips_fval_reg): New enum.
4302 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4303 words put in GP registers.
4304 (mips_o64_push_dummy_call): Update a comment.
4305 (mips_o32_return_value): Take a pointer to struct value instead
4306 of struct type for the function requested and use it to check if
4307 using the MIPS16 calling convention. Return the designated
4308 general purpose registers for floating-point values returned in
4310 (mips_o64_return_value): Likewise.
4311 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4312 (ppc_sysv_abi_broken_return_value): Likewise.
4313 (ppc64_sysv_abi_return_value): Likewise.
4314 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4315 value instead of struct type for the function requested.
4316 * amd64-tdep.c (amd64_return_value): Likewise.
4317 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4318 * arm-tdep.c (arm_return_value): Likewise.
4319 * avr-tdep.c (avr_return_value): Likewise.
4320 * bfin-tdep.c (bfin_return_value): Likewise.
4321 * cris-tdep.c (cris_return_value): Likewise.
4322 * frv-tdep.c (frv_return_value): Likewise.
4323 * h8300-tdep.c (h8300_return_value): Likewise.
4324 (h8300h_return_value): Likewise.
4325 * hppa-tdep.c (hppa32_return_value): Likewise.
4326 (hppa64_return_value): Likewise.
4327 * i386-tdep.c (i386_return_value): Likewise.
4328 * ia64-tdep.c (ia64_return_value): Likewise.
4329 * iq2000-tdep.c (iq2000_return_value): Likewise.
4330 * lm32-tdep.c (lm32_return_value): Likewise.
4331 * m32c-tdep.c (m32c_return_value): Likewise.
4332 * m32r-tdep.c (m32r_return_value): Likewise.
4333 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4334 * m68k-tdep.c (m68k_return_value): Likewise.
4335 (m68k_svr4_return_value): Likewise.
4336 * m88k-tdep.c (m88k_return_value): Likewise.
4337 * mep-tdep.c (mep_return_value): Likewise.
4338 * microblaze-tdep.c (microblaze_return_value): Likewise.
4339 * mn10300-tdep.c (mn10300_return_value): Likewise.
4340 * moxie-tdep.c (moxie_return_value): Likewise.
4341 * mt-tdep.c (mt_return_value): Likewise.
4342 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4343 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4344 (ppc_sysv_abi_broken_return_value): Likewise.
4345 (ppc64_sysv_abi_return_value): Likewise.
4346 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4347 * rl78-tdep.c (rl78_return_value): Likewise.
4348 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4349 * rx-tdep.c (rx_return_value): Likewise.
4350 * s390-tdep.c (s390_return_value): Likewise.
4351 * score-tdep.c (score_return_value): Likewise.
4352 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4353 (sh_return_value_fpu): Likewise.
4354 * sh64-tdep.c (sh64_return_value): Likewise.
4355 * sparc-tdep.c (sparc32_return_value): Likewise.
4356 * sparc64-tdep.c (sparc64_return_value): Likewise.
4357 * spu-tdep.c (spu_return_value): Likewise.
4358 * tic6x-tdep.c (tic6x_return_value): Likewise.
4359 * v850-tdep.c (v850_return_value): Likewise.
4360 * vax-tdep.c (vax_return_value): Likewise.
4361 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4362 * xtensa-tdep.c (xtensa_return_value): Likewise.
4363 * gdbarch.c: Regenerate.
4364 * gdbarch.h: Regenerate.
4366 2012-05-15 Tom Tromey <tromey@redhat.com>
4368 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4370 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4372 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4373 of command in two error message.
4375 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4377 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4379 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4381 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4383 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4385 * NEWS (show auto-load scripts-directory): Add forgotten command.
4387 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4389 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4392 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4394 * amd64-tdep.c: Include features/i386/x32.c and
4395 features/i386/x32-avx.c.
4396 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4397 initialize_tdesc_x32_avx.
4399 2012-05-14 Stan Shebs <stan@codesourcery.com>
4402 * breakpoint.h (enum bptype): New type bp_dprintf.
4403 (struct breakpoint): New field extra_string.
4404 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4405 (create_breakpoint): Add extra_string arg.
4406 * breakpoint.c (dprintf_breakpoint_ops): New.
4407 (is_breakpoint): Add bp_dprintf.
4408 (bpstat_what): Add dprintf case.
4409 (bptype_string): Ditto.
4410 (print_one_breakpoint_location): Ditto.
4411 (init_bp_location): Ditto.
4412 (bkpt_print_mention): Ditto.
4413 (dprintf_style_enums): New array.
4414 (dprintf_style): New global.
4415 (dprintf_function): New global.
4416 (dprintf_channel): New global.
4417 (update_dprintf_command_list): New function.
4418 (update_dprintf_commands): New function.
4419 (init_breakpoint_sal): Add extra_string argument, handle it.
4420 (create_breakpoint_sal): Add extra_string argument.
4421 (create_breakpoints_sal): Add extra_string argument, update callers.
4422 (find_condition_and_thread): Add extra argument.
4423 (create_breakpoint): Add extra_string argument, record it.
4424 (dprintf_command): New function.
4425 (break_command_1): Add arg to create_breakpoint call.
4426 (handle_gnu_v3_exceptions): Ditto.
4427 (trace_command): Ditto.
4428 (ftrace_command): Ditto.
4429 (strace_command): Ditto.
4430 (bkpt_print_mention): Add dprintf case.
4431 (create_breakpoint_sal_default): Add extra_string argument.
4432 (_initialize_breakpoint): Add new commands.
4433 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4434 * python/py-breakpoint.c (bppy_init): Ditto.
4435 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4437 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4439 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4441 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4443 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4446 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4448 Add a new function gdb.find_pc_line to the Python API.
4449 * NEWS (Python Scripting): Add entry about the new function.
4450 * python/python.c (gdbpy_find_pc_line): New function which
4451 implements gdb.find_pc_line.
4452 (GdbMethods): Add entry for the new function.
4454 2012-05-12 Pedro Alves <palves@redhat.com>
4456 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4457 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4459 2012-05-12 Eli Zaretskii <eliz@gnu.org>
4461 * inferior.c: Include completer.h
4462 (initialize_inferiors): Set completer of add-inferior to
4465 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4467 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4468 gdbarch_ptr_bit for x32 core dump.
4470 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4472 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4473 and features/i386/x32-avx-linux.c.
4475 2012-05-11 Stan Shebs <stan@codesourcery.com>
4476 Kwok Cheung Yeung <kcy@codesourcery.com>
4478 * NEWS: Describe new info os commands.
4479 * common/linux-osdata.c (PID_T, TIME_T): Define.
4480 (MAX_PID_T_STRLEN): New.
4481 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4483 (command_from_pid): Add comment. Change to use PID_T.
4484 (commandline_from_pid): Change to use PID_T.
4485 (user_from_pid): Add comment.
4486 (get_process_owner): Add comment. Change to use PID_T and
4488 (get_number_of_cpu_cores): Add comment.
4489 (get_cores_used_by_process): Add comment. Change to use PID_T and
4491 (linux_xfer_osdata_processes): Change to use PID_T and
4493 (compare_processes): New function.
4494 (linux_xfer_osdata_processgroups): New function.
4495 (linux_xfer_osdata_threads): Change to use PID_T.
4496 (linux_xfer_osdata_fds): New function.
4497 (format_socket_state, print_sockets): New functions.
4498 (union socket_addr): New union.
4499 (linux_xfer_osdata_isockets): New function.
4500 (time_from_time_t, group_from_gid): New functions.
4501 (linux_xfer_osdata_shm): New function.
4502 (linux_xfer_osdata_sem): New function.
4503 (linux_xfer_osdata_msg): New function.
4504 (linux_xfer_osdata_modules): New function.
4505 (osdata_table): Add new entries.
4506 * common/buffer.c (buffer_xml_printf): Add support for long and
4507 long long format specifiers.
4509 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4511 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4512 (tdesc_x32_avx_linux): Likewise.
4514 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4516 Implement multi-component --with-auto-load-dir.
4517 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4519 (--with-auto-load-safe-path): Update the default value description.
4520 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4522 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4523 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4524 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4525 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4526 "set auto-load scripts-directory".
4527 * config.in: Regenerate.
4528 * configure: Regenerate.
4529 * configure.ac (--with-auto-load-dir): New configure option.
4530 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4532 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4534 Provide $ddir substitution for --with-auto-load-safe-path.
4535 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4537 * auto-load.c: Include observer.h.
4538 (auto_load_safe_path_vec_update): Call substitute_path_component for
4539 each component. New variable ddir_subst.
4540 (auto_load_gdb_datadir_changed): New function.
4541 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4542 AUTO_LOAD_SAFE_PATH. New comment.
4543 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4544 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4545 * config.in: Regenerate.
4546 * configure: Regenerate.
4547 * configure.ac (--auto-load-safe-path): Rename
4548 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4549 GDB_DATADIR/auto-load.
4550 * defs.h (substitute_path_component): New declaration.
4551 * top.c: Include observer.h.
4552 (set_gdb_datadir): New function.
4553 (init_main): Install it for "set data-directory".
4554 * utils.c (substitute_path_component): New function.
4556 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4558 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4559 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4560 DEBUG_FILE_DIRECTORY. Handle multiple components of
4561 DEBUG_FILE_DIRECTORY.
4563 2012-05-10 Tom Tromey <tromey@redhat.com>
4565 * dwarf2read.c (recursively_write_psymbols): New function.
4566 (write_psymtabs_to_index): Use it.
4568 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4570 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4571 (load_partial_comp_unit): Update.
4572 (queue_comp_unit): Add argument 'pretend_language'.
4573 (process_queue): Update.
4574 (psymtab_to_symtab_1): Skip dependencies that have a user.
4575 (load_partial_comp_unit_reader): Give meaning to the 'data'
4577 (load_full_comp_unit): Add 'pretend_language' argument.
4578 (process_full_comp_unit): Add 'pretend_language' argument. Set
4580 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4582 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4583 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4585 (prepare_one_comp_unit): Add 'pretend_language' argument.
4587 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4588 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4589 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4590 (dw2_do_instantiate_symtab): Check whether symtab was read in
4592 (dw2_instantiate_symtab): Add assertion. Call
4593 process_cu_includes.
4594 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4595 (partial_symtab_p): New typedef.
4596 (set_partial_user): New function.
4597 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4598 (scan_partial_symbols): Add imported CU to imported_symtabs.
4599 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4600 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4601 (get_symtab, recursively_compute_inclusions)
4602 (compute_symtab_includes, process_cu_includes)
4603 (process_imported_unit_die): New functions.
4604 (process_die) <DW_TAG_imported_unit>: New case.
4605 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4607 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4609 (struct partial_die_info) <locdesc>: Remove.
4611 (process_psymtab_comp_unit): Add 'read_partial' argument.
4613 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4614 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4615 (add_partial_symbol): Update.
4616 (process_die): Handle DW_TAG_partial_unit.
4617 (read_file_scope): Update comment.
4618 (load_partial_dies): Handle DW_TAG_imported_unit.
4619 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4620 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4622 2012-05-10 Tom Tromey <tromey@redhat.com>
4624 * cc-with-dwz.sh: New file.
4626 2012-05-10 Tom Tromey <tromey@redhat.com>
4628 * symtab.h (struct symtab) <includes, user>: New fields.
4629 * block.h (struct block_iterator) <d, idx, which>: New fields.
4630 * block.c (initialize_block_iterator, find_iterator_symtab)
4631 (block_iterator_step, block_iter_name_step)
4632 (block_iter_match_step): New functions.
4633 (block_iterator_first, block_iterator_next)
4634 (block_iter_name_first, block_iter_name_next)
4635 (block_iter_match_first, block_iter_match_next): Rewrite.
4636 (get_block_symtab): New function.
4638 2012-05-10 Tom Tromey <tromey@redhat.com>
4640 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4642 * jit.c (finalize_symtab): Use allocate_global_block,
4644 * buildsym.c (finish_block_internal): New function, from old
4646 (finish_block): Rewrite.
4647 (end_symtab): Use finish_block_internal, set_block_symtab.
4648 * block.h (struct global_block): New.
4649 (allocate_global_block, set_block_symtab): Declare.
4650 * block.c (allocate_global_block, set_block_symtab): New
4653 2012-05-10 Tom Tromey <tromey@redhat.com>
4655 * psymtab.c (partial_map_expand_apply): Add assertion.
4656 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4657 (psymtab_to_symtab): Find unshared psymtab.
4658 (dump_psymtab): Print including psymtabs.
4659 (recursively_search_psymtabs): New function.
4660 (expand_symtabs_matching_via_partial): Use it.
4661 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4663 (enum psymtab_search_status): New.
4665 2012-05-10 Tom Tromey <tromey@redhat.com>
4667 * tracepoint.c (scope_info): Update.
4668 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4669 (find_pc_sect_symtab, search_symbols)
4670 (default_make_symbol_completion_list_break_on)
4671 (make_file_symbol_completion_list): Update.
4672 * symmisc.c (dump_symtab_1): Update.
4673 * stack.c (print_frame_args, iterate_over_block_locals)
4674 (print_frame_labels, iterate_over_block_arg_vars): Update.
4675 * python/py-block.c (block_object) <dict>: Remove.
4677 <iter>: Change type.
4678 (blpy_iter): Update.
4679 (blpy_block_syms_iternext): Update.
4680 * psymtab.c (map_block): Use block iterators.
4681 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4682 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4683 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4684 * infrun.c (check_exception_resume): Update.
4685 * cp-support.c (make_symbol_overload_list_block): Update.
4686 * coffread.c (patch_opaque_types): Update.
4687 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4688 * block.h (struct block_iterator): New.
4689 (block_iterator_first, block_iterator_next, block_iter_name_first)
4690 (block_iter_name_next, block_iter_match_first)
4691 (block_iter_match_next): Declare.
4692 (ALL_BLOCK_SYMBOLS): Redefine.
4693 * block.c (block_iterator_first, block_iterator_next)
4694 (block_iter_name_first, block_iter_name_next)
4695 (block_iter_match_first, block_iter_match_next): New functions.
4696 * ada-lang.c (ada_add_block_symbols)
4697 (ada_make_symbol_completion_list): Use block iterator.
4699 2012-05-10 Tom Tromey <tromey@redhat.com>
4701 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4702 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4703 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4704 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4705 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4708 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4710 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4711 print-file-var-lib2.c, print-file-var-main.c and
4712 print-file-var.exp (located in gdb/testsuite/gdb.base).
4714 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4716 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4717 try locating the symbol in the symbol's own objfile first, before
4718 extending the search to all objfiles.
4719 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4720 out of lookup_symbol_aux_symtabs.
4721 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4722 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4723 Do not search EXCLUDE_OBJFILE.
4724 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4725 (lookup_symbol_global): Search for matches in the block's objfile
4726 first, before searching all other objfiles.
4728 2012-05-10 Tristan Gingold <gingold@adacore.com>
4730 * printcmd.c (set_command): Add pre/post inc/dec.
4732 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
4734 * gdb.1: Document -ex option.
4736 2012-05-09 Joel Brobecker <brobecker@adacore.com>
4738 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
4739 * inferior.h (AT_SYMBOL): Delete.
4741 2012-05-09 Joel Brobecker <brobecker@adacore.com>
4743 * mips-tdep.c (mips_push_dummy_code): New function.
4744 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
4745 ON_STACK and install mips_push_dummy_code as our gdbarch
4746 push_dummy_code routine.
4748 2012-05-09 Pedro Alves <palves@redhat.com>
4750 * target.c (set_maintenance_target_async_permitted): Rename to ...
4751 (set_target_async_command): ... this.
4752 (show_maintenance_target_async_permitted): Rename to ...
4753 (show_target_async_command): ... this.
4754 (initialize_targets): Adjust.
4756 2012-05-08 Doug Evans <dje@google.com>
4758 * go-exp.y (classify_name): Add missing assignment of fields of
4761 2012-05-08 Eli Zaretskii <eliz@gnu.org>
4763 Display the ">" prompt in interactive mode while reading canned
4764 commands, even when the current interpreter is MI.
4766 * interps.c (interp_set_temp): New function.
4768 * interps.h (interp_set_temp): Add prototype.
4770 * cli/cli-script.c (restore_interp): New cleanup function.
4771 (read_command_lines): Temporarily override the current interpreter
4772 with CLI and arrange for restoring the original one.
4774 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
4776 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
4778 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4780 * probe.c (parse_probes): Move conditional to check for
4781 debuginfo files from here...
4782 * stap-probe.c (stap_get_probes): ... to here.
4784 2012-05-07 Mark Kettenis <kettenis@gnu.org>
4785 H.J. Lu <hongjiu.lu@intel.com>
4787 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
4788 `movl %esp, %ebp' for the X32 ABI.
4790 2012-05-07 Tom Tromey <tromey@redhat.com>
4792 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
4794 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
4795 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
4796 (dwarf_stack_op_name): Remove.
4797 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
4798 (decode_locdesc): Use get_DW_OP_name.
4799 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
4800 (dwarf2_compile_expr_to_ax): Likewise.
4801 (disassemble_dwarf_expression): Likewise.
4802 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
4804 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
4806 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
4807 (sh_linux_sigtramp_cache): New function.
4808 (sh_linux_sigreturn_init): New function.
4809 (sh_linux_rt_sigreturn_init): New function.
4810 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
4812 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
4814 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
4815 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
4816 (sh_linux_init_abi): Add init calls to register new tramp_frame
4817 definitions under 32-bit SH, update comments.
4819 2012-05-07 Pedro Alves <palves@redhat.com>
4823 * amd64-linux-tdep.c: Include glibc-tdep.h.
4824 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
4825 gdbarch_skip_solib_resolver callback.
4827 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4829 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
4830 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
4831 (show_auto_load_safe_path): Check any-directory by comparison with "/".
4832 (add_auto_load_safe_path): Change the error message.
4833 (_initialize_auto_load): Change the "safe-path" help text.
4834 * configure: Regenerate
4835 * configure.ac (--without-auto-load-safe-path): Set
4836 WITH_AUTO_LOAD_SAFE_PATH to /.
4838 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
4840 * stap-probe.h: Do not include unecessary `probe.h'.
4842 2012-05-05 Alan Modra <amodra@gmail.com>
4844 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
4845 bfd_und_section_ptr.
4846 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
4847 and bfd_com_section_ptr.
4849 2012-05-04 Joel Brobecker <brobecker@adacore.com>
4851 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
4853 2012-05-04 Joel Brobecker <brobecker@adacore.com>
4855 * windows-nat.h (segment_register_p_ftype): New typedef.
4856 (windows_set_segment_register_p): Add declaration.
4857 * windows-nat.c (segment_register_p): New static global.
4858 (windows_set_segment_register_p): New function.
4859 (do_windows_fetch_inferior_registers): Add special handling
4860 for segment registers.
4861 * amd64-windows-nat.c: #include "amd64-tdep.h".
4862 (amd64_windows_segment_register_p): New function.
4863 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
4864 * i386-windows-nat.c: #include "i386-tdep.h".
4865 (i386_windows_segment_register_p): New function.
4866 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
4868 2012-05-04 Tristan Gingold <gingold@adacore.com>
4870 * printcmd.c (set_command): Emit a warning if the expression is not
4873 2012-05-03 Joel Brobecker <brobecker@adacore.com>
4875 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
4878 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4880 * stap-probe.c (stap_is_operator): Change declaration.
4881 (stap_get_opcode): Change return value.
4882 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
4883 `stap_parse_argument_1'.
4885 2012-05-03 Pedro Alves <pedro@codesourcery.com>
4887 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
4890 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
4892 Add two new methods global_block and static_block to gdb.Symtab
4894 * NEWS (Python scripting): Add entry about the new methods.
4895 * python/py-symtab.c (stpy_global_block): New function which
4896 implements the gdb.Symtab.global_block() method.
4897 (stpy_static_block): New function which implements the
4898 gdb.Symtab.static_block() method.
4899 (symtab_object_methods): Add entries for the two new methods.
4901 2012-05-03 Doug Evans <dje@google.com>
4903 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
4906 2012-05-03 Yao Qi <yao@codesourcery.com>
4908 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
4910 (i386_process_record): Ditto.
4912 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4914 * infcall.c (unwind_on_signal_p): Make static.
4916 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4918 * sol-thread.c (solaris_pid_to_str): Make static.
4919 (_initialize_sol_thread): Add prototype.
4921 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4923 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
4925 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
4927 * MAINTAINERS: Remove myself.
4929 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4931 Fix --without-auto-load-safe-path for MS-Windows host platform.
4932 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
4934 2012-05-02 Eli Zaretskii <eliz@gnu.org>
4936 * gdb_curses.h: Undefine KEY_EVENT before including curses
4937 headers. Move "#undef MOUSE_MOVED" before any curses header
4940 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4942 * features/i386/i386-mmx-linux.c: Regenerate.
4943 * features/rs6000/powerpc-32.c: Likewise.
4944 * features/rs6000/powerpc-32l.c: Likewise.
4945 * features/rs6000/powerpc-403.c: Likewise.
4946 * features/rs6000/powerpc-403gc.c: Likewise.
4947 * features/rs6000/powerpc-405.c: Likewise.
4948 * features/rs6000/powerpc-505.c: Likewise.
4949 * features/rs6000/powerpc-601.c: Likewise.
4950 * features/rs6000/powerpc-602.c: Likewise.
4951 * features/rs6000/powerpc-603.c: Likewise.
4952 * features/rs6000/powerpc-604.c: Likewise.
4953 * features/rs6000/powerpc-64.c: Likewise.
4954 * features/rs6000/powerpc-64l.c: Likewise.
4955 * features/rs6000/powerpc-750.c: Likewise.
4956 * features/rs6000/powerpc-860.c: Likewise.
4957 * features/rs6000/powerpc-e500.c: Likewise.
4958 * features/rs6000/powerpc-e500l.c: Likewise.
4959 * features/rs6000/powerpc-isa205-32l.c: Likewise.
4960 * features/rs6000/powerpc-isa205-64l.c: Likewise.
4961 * features/rs6000/rs6000.c: Likewise.
4963 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4965 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
4967 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
4968 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
4969 (stap_parse_argument) <e>: Likewise.
4970 (handle_stap_probe) <byte_order>: Likewise.
4972 2012-04-30 Doug Evans <dje@google.com>
4974 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
4975 init_and_read_dies_worker. All callers updated.
4976 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
4977 replaced with init_cutu_and_read_dies.
4978 (load_partial_comp_unit): Pass 1 for use_existing_cu.
4979 (find_partial_die): Remove FIXME. Don't free current CU.
4981 2012-04-30 Sterling Augustine <saugustine@google.com>
4983 * contrib: New directory.
4984 * contrib/test_pubnames_and_indexes.py: New file.
4986 2012-04-30 Doug Evans <dje@google.com>
4988 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
4989 All callers updated.
4990 (init_cu_die_reader): Verify the section is non-empty.
4991 (dwarf_decode_line_header): Don't dereference section->asection
4992 until we know the section is present.
4994 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
4996 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
4999 2012-04-29 Yao Qi <yao@codesourcery.com>
5001 * gdb-code-style.el: New hook gdb-markup-hook
5002 and gdb-comment-hook.
5004 2012-04-28 Doug Evans <dje@google.com>
5006 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5007 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5009 * symfile.h (dwarf2_debug_sections): New member addr.
5010 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5011 (ctx_no_get_addr_index): New function.
5012 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5013 (ctx_no_get_addr_index): Declare.
5014 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5015 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5016 (dwarf_expr_ctx_funcs): Update.
5017 (needs_get_addr_index): New function.
5018 (needs_frame_ctx_funcs): Update.
5019 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5020 * dwarf2read.c: #include "gdbcore.h".
5021 (dwarf2_per_objfile): New members addr, dwo_files.
5022 (dwarf2_elf_names): Add entry for addr.
5023 (struct dwo_section_names): New type.
5024 (dwo_section_names): New static global.
5025 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5026 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5027 old debug_types_section member updated to use this.
5028 Rename member debug_types_section to info_or_types_section,
5030 (signatured_type): Rename member type_offset to type_offset_in_tu,
5031 all uses updated. New member type_offset_in_section.
5032 (struct dwo_sections): New type.
5033 (struct dwo_unit): New type.
5034 (struct dwo_file): New type.
5035 (die_reader_specs): New member dwo_file.
5036 (dwarf2_locate_sections): Watch for .debug_addr.
5037 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5038 (dwarf2_read_section): Get bfd of section from bfd's asection,
5040 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5041 (create_signatured_type_table_from_index): Initialize
5042 sig_type->info_or_types_section.
5043 (dw2_get_file_names): Statement lists for type units with DWO files
5044 live in the DWO file.
5045 (create_debug_types_hash_table): New function.
5046 (create_all_type_units): Rewrite.
5047 (init_cu_die_reader): New arg dwo_file, all callers updated.
5048 (init_and_read_dies_worker): Get section from
5049 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5050 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5051 continue reading the CU/TU from there.
5052 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5053 updated. Get section from this_cu->info_or_types_section.
5054 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5055 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5056 DW_FORM_GNU_str_index.
5057 (hash_dwo_file, eq_dwo_file): New functions.
5058 (allocate_dwo_file_hash_table): New function.
5059 (hash_dwo_unit, eq_dwo_unit): New functions.
5060 (allocate_dwo_unit_table): New function.
5061 (dwarf2_locate_dwo_sections): New function.
5062 (struct create_dwo_info_table_data): New type.
5063 (create_debug_info_hash_table_reader): New function.
5064 (create_debug_info_hash_table): New function.
5065 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5066 (lookup_dwo_file): New function.
5067 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5068 (free_dwo_file, free_dwo_file_cleanup): New functions.
5069 (free_dwo_file_from_slot, free_dwo_files): New functions.
5070 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5071 (dwarf2_record_block_ranges): Ditto.
5072 (read_partial_die): Ditto.
5073 (process_enumeration_scope): Update to use type_offset_in_section.
5074 (read_full_die_1): New function.
5075 (read_full_die): Rewrite.
5076 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5077 DW_FORM_GNU_str_index.
5078 (read_addr_index_1, read_addr_index): New functions.
5079 (read_addr_index_from_leb128): New function.
5080 (struct dwarf2_read_addr_index_data): New type.
5081 (dwarf2_read_addr_index_reader): New function.
5082 (dwarf2_read_addr_index): New function.
5083 (read_str_index): New function.
5084 (leb128_size): New function.
5085 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5086 If processing a type unit from a DWO file, get the line section
5088 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5089 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5090 DW_FORM_GNU_str_index.
5091 (lookup_die_type): Check whether section offset of type's die is
5092 known before looking it up. Remove assert. Condition can
5093 legimately happen for inter-cu type references.
5094 (dwarf_attr_name): Handle Fission attributes.
5095 (dwarf_form_name): Handle Fission forms.
5096 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5097 DW_FORM_GNU_str_index.
5098 (follow_die_sig): Update to use type_offset_in_section.
5099 (decode_locdesc): New case DW_OP_GNU_addr_index.
5100 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5101 DW_FORM_GNU_str_index.
5102 (cu_debug_loc_section): New function.
5103 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5104 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5105 Free DWO files if present.
5106 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5108 Refactor DIE reading.
5109 * dwarf2read.c (dwarf2_per_objfile): Replace members
5110 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5111 (die_reader_specs): New member "die_section". Temporarily make
5112 member "buffer" non-const, pending constifying all info_ptr uses.
5113 (die_reader_func_ftype): New typedef.
5114 (dw2_get_file_names_reader): New function.
5115 (dw2_get_file_names): Rewrite.
5116 (read_and_check_type_unit_head): Rename arg type_offset to
5118 (create_all_type_units): Improve debugging message.
5119 Improve dummy type unit check.
5120 (init_cu_die_reader): New arg "section". All callers updated.
5121 (init_and_read_dies_worker): New function.
5122 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5123 (init_cutu_and_read_dies_no_follow): New function.
5124 (init_cutu_and_read_dies_simple): New function.
5125 (process_psymtab_comp_unit_reader): New function.
5126 (process_psymtab_comp_unit): Delete args section,
5127 is_debug_types_section. Rewrite. All callers updated.
5128 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5129 All callers updated. Rewrite.
5130 (load_partial_comp_unit_reader): New function.
5131 (load_partial_comp_unit): Rewrite.
5132 (skip_children): New arg reader. Delete args buffer, cu.
5133 All callers updated.
5134 (skip_one_die): New arg reader. Delete args buffer, cu.
5135 All callers updated.
5136 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5137 All callers updated.
5138 (load_full_comp_unit_reader): New function.
5139 (load_full_comp_unit): Rewrite.
5140 (read_comp_unit): Delete.
5141 (read_die_and_children_1): Delete, contents moved ...
5142 (read_die_and_children): ... here.
5143 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5144 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5145 All callers updated.
5146 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5147 All callers updated.
5148 (find_partial_die): Rewrite load_all_dies support.
5149 (read_attribute_value): New arg reader. Delete args abfd, cu.
5150 All callers updated.
5151 (read_attribute): New arg reader. Delete args abfd, cu.
5152 All callers updated.
5153 (load_full_type_unit): Add assert.
5154 (read_signatured_type_reader): New function.
5155 (read_signatured_type): Rewrite.
5156 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5157 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5158 All callers updated. Set per_cu->cu = NULL after freeing it.
5159 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5160 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5161 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5162 (set_die_type): Update.
5163 (get_die_type_at_offset): Update.
5164 (read_file_scope): Call prepare_one_comp_unit.
5165 (read_type_unit_scope): Ditto.
5166 (prepare_one_comp_unit): Set producer if present.
5168 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5170 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5171 gettext function on `error'.
5173 2012-04-27 Doug Evans <dje@google.com>
5175 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5178 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5179 Tom Tromey <tromey@redhat.com>
5181 * breakpoint.c (struct breakpoint_objfile_data)
5182 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5183 <exception_probes>: New fields.
5184 (free_breakpoint_probes): New function.
5185 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5186 `_Unwind_DebugHook'.
5187 (create_exception_master_breakpoint): Likewise.
5188 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5189 * infrun.c: Including necessary header files for handling SystemTap
5191 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5192 via SystemTap probes.
5193 (check_exception_resume): Remove `func' argument. Handle exception
5194 unwinding breakpoint set via a SystemTap probe.
5195 (insert_exception_resume_from_probe): New function.
5197 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5198 Tom Tromey <tromey@redhat.com>
5199 Jan Kratochvil <jan.kratochvil@redhat.com>
5201 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5202 (COMMON_OBS): Likewise.
5203 (HFILES_NO_SRCDIR): Add `probe'.
5204 * NEWS: Mention support for static and SystemTap probes.
5205 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5206 SystemTap probes' arguments parser.
5207 * arm-linux-tdep.c: Including headers needed to perform the parsing
5208 of SystemTap probes' arguments.
5209 (arm_stap_is_single_operand): New function.
5210 (arm_stap_parse_special_token): Likewise.
5211 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5212 probes' arguments parser.
5213 * ax-gdb.c (require_rvalue): Removing static declaration.
5214 (gen_expr): Likewise.
5215 * ax-gdb.h (gen_expr): Declaring function.
5216 (require_rvalue): Likewise.
5217 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5218 (bkpt_probe_breakpoint_ops): New variable.
5219 (momentary_breakpoint_from_master): Set the `probe' value.
5220 (add_location_to_breakpoint): Likewise.
5221 (break_command_1): Using proper breakpoint_ops according to the
5222 argument passed by the user in the command line.
5223 (bkpt_probe_insert_location): New function.
5224 (bkpt_probe_remove_location): Likewise.
5225 (bkpt_probe_create_sals_from_address): Likewise.
5226 (bkpt_probe_decode_linespec): Likewise.
5227 (tracepoint_probe_create_sals_from_address): Likewise.
5228 (tracepoint_probe_decode_linespec): Likewise.
5229 (tracepoint_probe_breakpoint_ops): New variable.
5230 (trace_command): Using proper breakpoint_ops according to the
5231 argument passed by the user in the command line.
5232 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5233 static probes on breakpoints and tracepoints.
5234 * breakpoint.h (struct bp_location) <probe>: New field.
5235 * cli-utils.c (skip_spaces_const): New function.
5236 (extract_arg): Likewise.
5237 * cli-utils.h (skip_spaces_const): Likewise.
5238 (extract_arg): Likewise.
5239 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5240 * configure.ac: Append `stap-probe.o' to be generated when ELF
5242 * configure: Regenerate.
5243 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5244 * elfread.c: Include `probe.h' and `arch-utils.h'.
5245 (probe_key): New variable.
5246 (elf_get_probes): New function.
5247 (elf_get_probe_argument_count): Likewise.
5248 (elf_evaluate_probe_argument): Likewise.
5249 (elf_compile_to_ax): Likewise.
5250 (elf_symfile_relocate_probe): Likewise.
5251 (stap_probe_key_free): Likewise.
5252 (elf_probe_fns): New variable.
5253 (elf_sym_fns): Add `sym_probe_fns' value.
5254 (elf_sym_fns_lazy_psyms): Likewise.
5255 (elf_sym_fns_gdb_index): Likewise.
5256 (_initialize_elfread): Initialize objfile cache for static
5258 * gdb_vecs.h (struct probe): New forward declaration.
5259 (probe_p): New VEC declaration.
5260 * gdbarch.c: Regenerate.
5261 * gdbarch.h: Regenerate.
5262 * gdbarch.sh (stap_integer_prefix): New variable.
5263 (stap_integer_suffix): Likewise.
5264 (stap_register_prefix): Likewise.
5265 (stap_register_suffix): Likewise.
5266 (stap_register_indirection_prefix): Likewise.
5267 (stap_register_indirection_suffix): Likewise.
5268 (stap_gdb_register_prefix): Likewise.
5269 (stap_gdb_register_suffix): Likewise.
5270 (stap_is_single_operand): New function.
5271 (stap_parse_special_token): Likewise.
5272 (struct stap_parse_info): Forward declaration.
5273 * i386-tdep.c: Including headers needed to perform the parsing
5274 of SystemTap probes' arguments.
5275 (i386_stap_is_single_operand): New function.
5276 (i386_stap_parse_special_token): Likewise.
5277 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5278 probes' arguments parser.
5279 * i386-tdep.h (i386_stap_is_single_operand): New function.
5280 (i386_stap_parse_special_token): Likewise.
5281 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5282 * mipsread.c (ecoff_sym_fns): Likewise.
5283 * objfiles.c (objfile_relocate1): Support relocation for static
5285 * parse.c (prefixify_expression): Remove static declaration.
5286 (initialize_expout): Likewise.
5287 (reallocate_expout): Likewise.
5288 * parser-defs.h (initialize_expout): Declare function.
5289 (reallocate_expout): Likewise.
5290 (prefixify_expression): Likewise.
5291 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5292 of SystemTap probes' arguments.
5293 (ppc_stap_is_single_operand): New function.
5294 (ppc_stap_parse_special_token): Likewise.
5295 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5296 probes' arguments parser.
5297 * probe.c: New file, for generic statically defined probe support.
5298 * probe.h: Likewise.
5299 * s390-tdep.c: Including headers needed to perform the parsing of
5300 SystemTap probes' arguments.
5301 (s390_stap_is_single_operand): New function.
5302 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5303 probes' arguments parser.
5304 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5305 * stap-probe.c: New file, for SystemTap probe support.
5306 * stap-probe.h: Likewise.
5307 * symfile.h: Include `gdb_vecs.h'.
5308 (struct sym_probe_fns): New struct.
5309 (struct sym_fns) <sym_probe_fns>: New field.
5310 * symtab.c (init_sal): Initialize `probe' field.
5311 * symtab.h (struct probe): Forward declaration.
5312 (struct symtab_and_line) <probe>: New field.
5313 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5315 (stop_tracing): Likewise.
5316 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5318 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5319 Tom Tromey <tromey@redhat.com>
5321 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5322 and to compile agent expressions.
5323 * infrun.c (siginfo_make_value): New argument `ignore'.
5324 (siginfo_funcs): New struct.
5325 (_initialize_infrun): New argument when calling
5326 `create_internalvar_type_lazy'.
5327 * thread.c (thread_id_make_value): New argument `ignore'.
5328 (thread_funcs): New struct.
5329 (_initialize_thread): New argument when calling
5330 `create_internalvar_type_lazy'.
5331 * tracepoint.c (sdata_make_value): New argument `ignore'.
5332 (sdata_funcs): New struct.
5333 (_initialize_tracepoint): New argument when calling
5334 `create_internalvar_type_lazy'.
5335 * value.c (make_value): New struct.
5336 (create_internalvar_type_lazy): New argument `data'.
5337 (compile_internalvar_to_ax): New function.
5338 (value_of_internalvar): Properly handling `make_value' case.
5339 (clear_internalvar): Likewise.
5340 (show_convenience): Adding `TRY_CATCH' block.
5341 * value.h (internalvar_make_value): Delete, replace by...
5342 (struct internalvar_funcs): ... this.
5343 (create_internalvar_type_lazy) <fun>: Delete argument.
5344 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5345 (compile_internalvar_to_ax): New function.
5346 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5347 (tlb_funcs): New struct.
5348 (_initialize_windows_tdep): New argument when calling
5349 `create_internalvar_type_lazy'.
5351 2012-04-27 Mark Wielaard <mjw@redhat.com>
5353 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5354 see whether it is an address or a constant offset from DW_AT_low_pc.
5355 (dwarf2_record_block_ranges): Likewise.
5356 (read_partial_die): Likewise.
5358 2012-04-26 Mark Wielaard <mjw@redhat.com>
5360 * MAINTAINERS (Write After Approval): Add myself to the list.
5362 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5364 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5365 (proc_prettyprint_signal): Likewise.
5366 (proc_prettyprint_faultset): Likewise.
5367 (proc_prettyprint_fault): Likewise.
5368 (proc_prettyprint_actionset): Likewise.
5369 (proc_prettyprint_flags): Move to new proc-flags.c section.
5370 (proc_prettyfprint_flags): New prototype.
5371 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5372 (proc_syscall, proc_cursig): Likewise.
5373 (proc_set_kill_on_last_close): Likewise.
5374 (proc_unset_kill_on_last_close): Likewise.
5375 (proc_set_watchpoint): Make static.
5376 (proc_delete_dead_threads): Likewise.
5377 (procfs_set_watchpoint): Likewise.
5378 (_initialize_procfs): Add prototype.
5379 * proc-events.c: Include proc-utils.h.
5380 (init_syscall_table): Make static.
5381 * proc-api.c (_initialize_proc_api): Add prototype.
5382 * proc-flags.c: Include proc-utils.h.
5384 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5386 * configure.ac: Add AC_ARG_PROGRAM.
5387 * configure: Regenerate.
5389 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5391 Fix DW_AT_lower_bound defaults for DWARF-4+.
5392 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5393 high. New variable low_default_is_valid. Implement DWARF-4+
5394 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5395 no default by the DWARF standard.
5397 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5398 Maciej W. Rozycki <macro@codesourcery.com>
5400 * infrun.c (handle_inferior_event): Move the check for return
5401 trampolines ahead of the check for function trampolines.
5402 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5403 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5404 (mips_str_mips16_ret_stub): Likewise.
5405 (mips_str_call_fp_stub): Likewise.
5406 (mips_str_call_stub): Likewise.
5407 (mips_str_fn_stub): Likewise.
5408 (mips_str_pic): Likewise.
5409 (mips_in_frame_stub): New function.
5410 (mips_unwind_pc): Return the return address rather than the PC
5411 if the PC of an intermediate frame is inside a call thunk.
5412 (mips_is_stub_suffix): New function.
5413 (mips_is_stub_mode): Likewise.
5414 (mips_get_mips16_fn_stub_pc): Likewise.
5415 (mips_skip_mips16_trampoline_code): Update to handle all the
5416 currently generated stub types. Don't recurse into __fn_stub
5417 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5418 Use cooked register accesses.
5419 (mips_in_return_stub): Reintroduce function.
5420 (mips_skip_trampoline_code): Traverse trampolines recursively.
5421 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5423 2012-04-26 Joel Brobecker <brobecker@adacore.com>
5427 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5429 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5430 * features/arm-with-m-vfp-d16.xml: New file. Describes
5431 Cortex-M with VFPv4-sp-d16 FPU register layout.
5432 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5433 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5434 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5435 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5436 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5438 2012-04-25 Doug Evans <dje@google.com>
5440 * cli/cli-decode.c (print_doc_line): Use stream instead of
5443 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5445 * features/arm-with-iwmmxt.c: Regenerate.
5446 * features/arm-with-m-fpa-layout.c: Likewise.
5447 * features/arm-with-m.c: Likewise.
5448 * features/arm-with-neon.c: Likewise.
5449 * features/arm-with-vfpv2.c: Likewise.
5450 * features/arm-with-vfpv3.c: Likewise.
5451 * features/mips-dsp-linux.c: Likewise.
5452 * features/mips-linux.c: Likewise.
5453 * features/mips64-dsp-linux.c: Likewise.
5454 * features/mips64-linux.c: Likewise.
5455 * features/s390-linux32.c: Likewise.
5456 * features/s390-linux32v1.c: Likewise.
5457 * features/s390-linux32v2.c: Likewise.
5458 * features/s390-linux64.c: Likewise.
5459 * features/s390-linux64v1.c: Likewise.
5460 * features/s390-linux64v2.c: Likewise.
5461 * features/s390x-linux64.c: Likewise.
5462 * features/s390x-linux64v1.c: Likewise.
5463 * features/s390x-linux64v2.c: Likewise.
5464 * features/tic6x-c62x-linux.c: Likewise.
5465 * features/tic6x-c62x.c: Likewise.
5466 * features/tic6x-c64x-linux.c: Likewise.
5467 * features/tic6x-c64x.c: Likewise.
5468 * features/tic6x-c64xp-linux.c: Likewise.
5469 * features/tic6x-c64xp.c: Likewise.
5470 * target-descriptions.c: Only generate `field_type' and `type'
5471 variables when needed.
5473 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5475 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5477 2012-04-25 Doug Evans <dje@google.com>
5479 Initial pass at Go language support.
5481 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5483 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5484 (YYFILES): Add go-exp.c.
5485 (YYOBJ): Add go-exp.o.
5486 (local-maintainer-clean): Delete go-exp.c.
5487 * defs.h (enum language): Add language_go.
5488 * dwarf2read.c: #include "go-lang.h".
5489 (fixup_go_packaging): New function.
5490 (process_full_comp_unit): Call it when processing Go CUs.
5491 (dwarf2_physname): Add Go support.
5492 (read_file_scope): Handle missing language spec for GNU Go.
5493 (set_cu_language): Handle DW_LANG_Go.
5494 * go-exp.y: New file.
5495 * go-lang.h: New file.
5496 * go-lang.c: New file.
5497 * go-typeprint.c: New file.
5498 * go-valprint.c: New file.
5499 * symtab.c: #include "go-lang.h".
5500 (symbol_set_language): Handle language_go.
5501 (symbol_find_demangled_name, symbol_set_names): Ditto.
5502 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5504 2012-04-24 Jim Meyering <meyering@redhat.com>
5506 avoid a few strncpy-induced buffer overruns
5507 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5508 fname and psargs before trying to concatenate.
5509 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5510 "name" before applying strchr.
5512 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5514 * CONTRIBUTE: Use unified diff instead of context diff when
5517 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5519 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5520 code. Handle JR.HB correctly.
5522 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5525 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5526 with the other MIPS16 helpers.
5528 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5530 * observer.sh: Conditionally declare `args', thus cleaning up
5531 unused instances of this variable.
5533 2012-04-24 Yao Qi <yao@codesourcery.com>
5535 Revert this patch to allow breakpoint always-inserted
5537 2011-12-05 Pedro Alves <pedro@codesourcery.com>
5538 * breakpoint.c: Include record.h.
5539 (breakpoints_always_inserted_mode): Return false when the record
5542 * breakpoint.c (iterate_over_bp_locations): New.
5543 * breakpoint.h: Declare.
5544 New typedef walk_bp_location_callback.
5545 * record.c (record_open): Call record_init_record_breakpoints.
5546 (record_sync_record_breakpoints): New.
5547 (record_init_record_breakpoints): New.
5548 * NEWS: Mention supporting breakpoint always-inserted mode in
5551 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5553 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5556 2012-04-24 Yao Qi <yao@codesourcery.com>
5558 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5559 (is_catchpoint): ... it.
5560 (print_one_breakpoint_location): Caller update.
5561 * breakpoint.h: Update declaration.
5563 2012-04-23 David S. Miller <davem@davemloft.net>
5565 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5567 2012-04-23 Tom Tromey <tromey@redhat.com>
5569 * buildsym.c (add_free_pendings): Remove.
5570 * buildsym.h (add_free_pendings): Remove.
5572 2012-04-23 Doug Evans <dje@google.com>
5574 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5575 attr.u.unsnd instead of attr.u.addr.
5576 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5577 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5579 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5580 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5582 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5584 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5586 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5587 (mips_o32_return_value): Likewise.
5588 (mips_o64_return_value): Likewise.
5590 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5592 * ada-lang.c (ada_evaluate_subexp): Add cases for
5593 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5594 their treatment in eval.c.
5596 2012-04-21 David S. Miller <davem@davemloft.net>
5598 * sparc-tdep.c (X_DISP10): Define.
5599 (sparc_analyze_control_transfer): Handle compare-and-branch.
5601 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5603 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5604 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5606 2012-04-20 Nigel Stephens <nigel@mips.com>
5607 Maciej W. Rozycki <macro@codesourcery.com>
5609 * mips-tdep.c (mips_float_register_p): New function.
5610 (mips_convert_register_float_case_p): Use mips_float_register_p.
5611 (mips_register_type): Likewise.
5612 (mips_print_register): Likewise.
5613 (print_gp_register_row): Likewise.
5614 (mips_print_registers_info): Likewise.
5616 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5618 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5621 2012-04-20 Andrew Pinski <apinski@cavium.com>
5623 * MAINTAINERS (Write After Approval): Add myself to the list.
5625 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5627 * MAINTAINERS: Update my e-mail address.
5629 2012-04-20 Pedro Alves <palves@redhat.com>
5631 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5633 * configure: Regenerate.
5635 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5637 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5639 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5641 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5643 Fix compilation compatibility with python-2.4
5644 * python/py-type.c (convert_field): Cast ADDRSTRING for
5645 PyObject_SetAttrString as non-const. New comment.
5647 2012-04-19 Tom Tromey <tromey@redhat.com>
5649 * top.c (quit_target): Use all_cleanups.
5650 * main.c (captured_command_loop): Use all_cleanups.
5651 * exceptions.c (throw_exception): Use all_cleanups.
5653 2012-04-19 Pedro Alves <palves@redhat.com>
5655 * Makefile.in (GNULIB_BUILDDIR): New.
5656 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5657 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5658 (CLEANDIRS). Remove gnulib/import.
5659 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5661 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5662 (gnulib/import/Makefile): Replace gnulib/import with
5663 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5664 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5665 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5666 acx_configure_dir.m4.
5667 * acinclude.m4: Include acx_configure_dir.m4.
5668 * acx_configure_dir.m4: New file.
5669 * aclocal.m4: Regenerate.
5670 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5671 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5672 (GNULIB): New variable.
5673 (GNULIB_STDINT_H): Adjust.
5674 (AC_OUTPUT): Don't output gnulib/Makefile.
5675 * gdb/defs.h: Include build-gnulib/config.h.
5676 * aclocal.m4: Regenerate.
5677 * config.in: Regenerate.
5678 * configure: Regenerate.
5680 * gnulib/Makefile.in: New file.
5681 * gnulib/configure.ac: New file.
5682 * gnulib/aclocal.m4: New file.
5683 * gnulib/config.in: New file.
5684 * gnulib/configure: New file.
5685 * gnulib/: Re-run gnulib-tool to adjust.
5687 2012-04-19 Doug Evans <dje@google.com>
5689 * cleanups.h (struct cleanup): Move to cleanups.c.
5690 (make_cleanup_dtor_ftype): New typedef.
5691 (make_cleanup_dtor): Use it.
5692 (ALL_CLEANUPS): Replace with ...
5693 (all_cleanups): ... this. Declare. All uses updated.
5694 * cleanups.c: #include "gdb_assert.h".
5695 (sentinel_cleanup): New static global.
5696 (SENTINEL_CLEANUP): Define.
5697 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5698 (make_my_cleanup2): Assert result is non-NULL.
5699 (all_cleanups): New function.
5700 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5703 2012-04-19 Pedro Alves <palves@redhat.com>
5705 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5706 Adjust paths to gnulib imported files.
5708 2012-04-19 Pedro Alves <palves@redhat.com>
5710 * gnulib/: Move whole directory ...
5711 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5712 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5713 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5714 (aclocal_m4_deps): Adjust.
5715 * aclocal.m4: Regenerate.
5716 * configure: Regenerate.
5717 * configure.ac: Adjust AC_OUTPUT output.
5719 2012-04-19 Yao Qi <yao@codesourcery.com>
5721 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5723 * vec.c: Move it ...
5724 * common/vec.c: ... here.
5725 * vec.h: Move it ...
5726 * common/vec.h: ... here.
5728 2012-04-19 Yao Qi <yao@codesourcery.com>
5730 * gdb-code-style.el: New.
5732 2012-04-18 Pedro Alves <palves@redhat.com>
5734 Update gnulib from latest git.
5735 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5737 * gnulib/Makefile.am: Update.
5738 * gnulib/dummy.c: Update.
5739 * gnulib/extra/arg-nonnull.h: Update.
5740 * gnulib/extra/c++defs.h: Update.
5741 * gnulib/extra/update-copyright: Update.
5742 * gnulib/extra/warn-on-use.h: Update.
5743 * gnulib/inttypes.in.h: Update.
5744 * gnulib/m4/00gnulib.m4: Update.
5745 * gnulib/m4/extensions.m4: Update.
5746 * gnulib/m4/gnulib-cache.m4: Update.
5747 * gnulib/m4/gnulib-common.m4: Update.
5748 * gnulib/m4/gnulib-comp.m4: Update.
5749 * gnulib/m4/gnulib-tool.m4: Update.
5750 * gnulib/m4/include_next.m4: Update.
5751 * gnulib/m4/inttypes-pri.m4: Update.
5752 * gnulib/m4/inttypes.m4: Update.
5753 * gnulib/m4/longlong.m4: Update.
5754 * gnulib/m4/memchr.m4: Update.
5755 * gnulib/m4/memmem.m4: Update.
5756 * gnulib/m4/mmap-anon.m4: Update.
5757 * gnulib/m4/multiarch.m4: Update.
5758 * gnulib/m4/onceonly.m4: Update.
5759 * gnulib/m4/stddef_h.m4: Update.
5760 * gnulib/m4/stdint.m4: Update.
5761 * gnulib/m4/string_h.m4: Update.
5762 * gnulib/m4/warn-on-use.m4: Update.
5763 * gnulib/m4/wchar_h.m4: Update.
5764 * gnulib/m4/wchar_t.m4: Update.
5765 * gnulib/m4/wint_t.m4: Update.
5766 * gnulib/memchr.c: Update.
5767 * gnulib/memmem.c: Update.
5768 * gnulib/stddef.in.h: Update.
5769 * gnulib/stdint.in.h: Update.
5770 * gnulib/str-two-way.h: Update.
5771 * gnulib/string.in.h: Update.
5772 * gnulib/wchar.in.h: Update.
5774 * gnulib/extra/arg-nonnull.h: Delete.
5775 * gnulib/extra/c++defs.h: Delete.
5776 * gnulib/extra/warn-on-use.h: Delete.
5777 * gnulib/m4/wchar_h.m4: Delete.
5778 * gnulib/m4/wint_t.m4: Delete.
5779 * gnulib/wchar.in.h: Delete.
5781 * gnulib/extra/snippets/arg-nonnull.h: New.
5782 * gnulib/extra/snippets/c++defs.h: New.
5783 * gnulib/extra/snippets/warn-on-use.h: New.
5785 * aclocal.m4: Regenerate.
5786 * config.in: Regenerate.
5787 * configure: Regenerate.
5788 * gnulib/Makefile.in: Regenerate.
5790 2012-04-18 Pedro Alves <palves@redhat.com>
5792 Reimport the update-copyright module from gnulib
5793 (250b80067c1e1d8faa0c42fb572f721975b929c5).
5795 * configure: Regenerate.
5796 * gnulib/Makefile.am: Update.
5797 * gnulib/Makefile.in: Regenerate.
5798 * gnulib/extra/update-copyright: Update.
5799 * gnulib/m4/gnulib-cache.m4: Update.
5800 * gnulib/m4/gnulib-comp.m4: Update.
5802 2012-04-18 Tristan Gingold <gingold@adacore.com>
5804 * configure.ac (aix): Put -lpthread into libs.
5805 * configure: Regenerate.
5807 2012-04-18 Tom Tromey <tromey@redhat.com>
5809 * linespec.c (convert_linespec_to_sals): Don't use
5811 (compare_msymbols): Arguments are minsym_and_objfile, not
5812 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
5814 2012-04-18 Pedro Alves <palves@redhat.com>
5816 Revert gnulib/ part of:
5817 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5818 Copyright year update in most files (performed by copyright.sh).
5820 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5822 Fix 64-bit constants on 32-bit hosts.
5823 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
5824 from unsigned long to ULONGEST.
5825 (read_signed_leb128): Change declaration return type from long to
5827 (dwarf2_const_value_attr): Change declaration parameter value from long
5829 (dwarf2_compute_name): Change variable value from long to LONGEST.
5830 (read_unsigned_leb128): Change return type, variable result and some
5831 casts from unsigned long to ULONGEST.
5832 (read_signed_leb128): Change return type, variable result and some
5833 casts from long to LONGEST.
5834 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
5835 value from long to LONGEST.
5836 (dwarf2_const_value): Change variable value from long to LONGEST.
5837 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
5838 plongest and hex_string.
5839 * symtab.h (struct general_symbol_info): Change ivalue from long to
5840 LONGEST, remove the comment.
5841 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
5842 Change SYMBOL_VALUE format strings to use plongest and hex_string.
5844 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
5847 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
5848 * ada-lang.c (ada_discrete_type_high_bound)
5849 (ada_discrete_type_low_bound): Fix function comment. Use
5850 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5851 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
5852 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5853 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
5854 Use TYPE_FIELD_ENUMVAL.
5855 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
5856 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5857 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
5858 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
5860 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
5861 * dwarf2read.c (process_enumeration_scope): Likewise.
5862 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
5864 (class StructMainTypePrettyPrinter): Support also
5865 FIELD_LOC_KIND_ENUMVAL.
5866 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
5868 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5869 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
5870 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
5871 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
5873 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
5874 accommodate enumval.
5875 (struct call_site): Adjust loc_kind to accommodate enumval.
5876 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
5877 (TYPE_FIELD_ENUMVAL): New macros.
5878 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
5879 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
5881 * p-typeprint.c (pascal_type_print_base): Likewise.
5882 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
5884 * python/lib/gdb/types.py (make_enum_dict): Likewise.
5885 * python/py-type.c (convert_field): New variable addrstring. Use
5886 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5887 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
5888 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
5889 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
5891 * valprint.c (generic_val_print): Likewise.
5893 2012-04-17 Doug Evans <dje@google.com>
5895 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
5897 * dwarf2read.c: Whitespace fixes.
5898 (lookup_signatured_type): Tweak comment.
5899 (get_die_type_at_offset): Fix comment.
5901 2012-04-17 Joel Brobecker <brobecker@adacore.com>
5903 * xcoffread.c (xcoff_secnum_to_sections): New function.
5904 (secnum_to_section, secnum_to_bfd_section): Reimplement
5905 using xcoff_secnum_to_sections. Rename "secnum" parameter
5907 (RECORD_MINIMAL_SYMBOL): Delete.
5908 (record_minimal_symbol): New function.
5909 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
5910 by call to record_minimal_symbol and set misc_func_recorded
5911 to 1. Set last_csect_sec to the XCOFF section index instead
5912 of GDB's section_offset index. Update calls to
5913 prim_record_minimal_symbol_and_info to pass the BFD section
5916 2012-04-17 Joel Brobecker <brobecker@adacore.com>
5918 * xcoffread.c (read_xcoff_symtab): Delete variables
5919 last_csect_val and last_csect_sec and associated code.
5921 2012-04-17 Doug Evans <dje@google.com>
5923 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
5924 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5925 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
5926 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
5928 * cleanups.h: New file.
5929 * cleanups.c: New file.
5930 * Makefile.in (SFILES): Add cleanups.c.
5931 (HFILES_NO_SRCDIR): Add cleanups.h.
5932 (COMMON_OBS): Add cleanups.o.
5933 * defs.h (struct cleanup): Moved to cleanups.h.
5934 (do_cleanups,do_final_cleanups): Ditto.
5935 (discard_cleanups,discard_final_cleanups): Ditto
5936 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5937 (save_cleanups,save_final_cleanups): Ditto.
5938 (restore_cleanups,restore_final_cleanups): Ditto.
5939 (null_cleanup): Ditto.
5940 (make_my_cleanup,make_my_cleanup2): Ditto.
5941 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5942 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
5943 (do_cleanups,do_final_cleanups): Ditto.
5944 (discard_cleanups,discard_final_cleanups): Ditto
5945 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5946 (save_cleanups,save_final_cleanups): Ditto.
5947 (restore_cleanups,restore_final_cleanups): Ditto.
5948 (null_cleanup): Ditto.
5949 (make_my_cleanup,make_my_cleanup2): Ditto.
5950 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5952 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
5954 (make_cleanup_dyn_string_delete): Ditto.
5955 (make_cleanup_ui_file_delete): Ditto.
5956 (make_cleanup_ui_out_redirect_pop): Ditto.
5957 (make_cleanup_free_section_addr_info): Ditto.
5958 (make_cleanup_restore_integer): Ditto.
5959 (make_cleanup_unpush_target): Ditto.
5960 (make_cleanup_value_free_to_mark): Ditto.
5961 (make_cleanup_value_free): Ditto.
5962 (make_cleanup_free_so): Ditto.
5964 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5966 New option "set debug auto-load".
5967 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
5968 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
5969 (auto_load_safe_path_vec_update)
5970 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
5972 (file_is_auto_load_safe): New parameters debug_fmt and ....
5973 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
5974 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
5975 caller by explanatory string.
5976 (_initialize_auto_load): Register "set debug auto-load".
5977 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
5979 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5980 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
5981 by explanatory string.
5982 * main.c (captured_main): Likewise.
5983 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
5984 (source_section_scripts): Likewise.
5986 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5988 New option "set auto-load safe-path".
5989 * NEWS: New commands "set auto-load safe-path"
5990 and "show auto-load safe-path".
5991 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
5992 (auto_load_safe_path, auto_load_safe_path_vec)
5993 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
5994 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
5995 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
5996 (source_gdb_script_for_objfile): New variable is_safe. Call
5997 file_is_auto_load_safe. Return if it is not.
5998 (struct loaded_script): New field loaded.
5999 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6000 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6001 output "Missing" to "No".
6002 (_initialize_auto_load): New variable cmd. Initialize
6003 auto_load_safe_path. Register "set auto-load safe-path",
6004 "show auto-load safe-path" and "add-auto-load-safe-path".
6005 * auto-load.h (maybe_add_script): Add parameter loaded.
6006 (file_is_auto_load_safe): New declaration.
6007 * config.in: Regenerate.
6008 * configure: Regenerate.
6009 * configure.ac: New parameters --with-auto-load-safe-path
6010 and --without-auto-load-safe-path.
6011 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6012 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6013 * main.c (captured_main): Check file_is_auto_load_safe for
6015 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6016 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6017 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6020 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6022 auto-load: Implementation.
6023 * NEWS: New descriptions for "info auto-load",
6024 "info auto-load gdb-scripts", "info auto-load python-scripts",
6025 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6026 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6027 and "show auto-load-scripts". New description for "set auto-load",
6028 "show auto-load", "set auto-load gdb-scripts",
6029 "show auto-load gdb-scripts", "set auto-load python-scripts",
6030 "show auto-load python-scripts", "set auto-load local-gdbinit",
6031 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6032 "show auto-load libthread-db".
6033 * auto-load.c: Remove include python/python-internal.h. Add includes
6034 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6036 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6037 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6038 (gdbpy_global_auto_load): Rename to ...
6039 (global_auto_load): ... here.
6040 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6041 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6042 (script_language_gdb, source_gdb_script_for_objfile): New.
6043 (struct loaded_script): New field language.
6044 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6046 (maybe_add_script): Add parameter language. Drop redundant
6047 entry.full_path initialization. Initialize entry.language and
6049 (auto_load_objfile_script): Change parameter suffix to language.
6050 Remove the call of maybe_add_script.
6051 Call language->source_script_for_objfile.
6052 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6054 (collect_matching_scripts): Adjust it for
6055 struct collect_matching_scripts_data.
6056 (auto_load_info_scripts_pattern_nl): New variable.
6057 (info_auto_load_scripts): Rename to ...
6058 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6059 for struct collect_matching_scripts_data.
6060 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6061 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6062 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6063 (auto_load_info_cmdlist_get): New.
6064 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6065 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6066 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6067 "info auto-load local-gdbinit".
6068 * auto-load.h (struct script_language): New.
6069 (gdbpy_global_auto_load): Rename to ...
6070 (global_auto_load): ... here.
6071 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6072 (auto_load_local_gdbinit_loaded): New declarations.
6073 (maybe_add_script): New parameter language.
6074 (auto_load_objfile_script): Change parameter suffix to language.
6075 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6076 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6077 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6079 * linux-thread-db.c: Include auto-load.h and ctype.h.
6080 (auto_load_thread_db, show_auto_load_thread_db): New.
6081 (struct thread_db_info): New field filename.
6082 (delete_thread_db_info): Call xfree for FILENAME.
6083 (try_thread_db_load): Initialize FILENAME.
6084 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6085 if !AUTO_LOAD_THREAD_DB.
6086 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6087 (_initialize_thread_db): Install auto_load_thread_db
6088 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6089 as "info auto-load libthread-db".
6090 * main.c (captured_main): Rename gdbpy_global_auto_load to
6091 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6092 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6093 (print_gdb_help): Extend the help for 'local init file'.
6094 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6095 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6096 (auto_load_scripts): Rename to ...
6097 (auto_load_python_scripts): ... here, update the comment.
6098 (gdbpy_load_auto_script_for_objfile): New declaration.
6099 (show_auto_load_python_scripts, script_language_python)
6100 (gdbpy_load_auto_script_for_objfile): New.
6101 (source_section_scripts): Refactor the code.
6102 (load_auto_scripts_for_objfile): Rename to ...
6103 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6104 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6105 (info_auto_load_python_scripts): New.
6106 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6107 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6108 Register "set auto-load-scripts" as its deprecated alias. Register
6109 "info auto-load python-scripts". Register "info auto-load-scripts" as
6110 its deprecated alias.
6111 (load_auto_scripts_for_objfile): Rename to ...
6112 (gdbpy_load_auto_scripts_for_objfile): ... here.
6113 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6114 (gdbpy_load_auto_scripts_for_objfile): ... here.
6116 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6118 auto-load: Move files.
6119 * Makefile.in (SFILES): Add auto-load.c.
6120 (HFILES_NO_SRCDIR): Add auto-load.h.
6121 (COMMON_OBS): Add auto-load.o.
6122 (distclean): Change .gdbinit for gdb-gdb.gdb.
6123 * auto-load.c: New file, with parts from python/py-auto-load.c.
6124 * auto-load.h: New file, with parts from python/python.h.
6125 * configure: Regenerate.
6126 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6127 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6128 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6129 * main.c: Include auto-load.h.
6130 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6131 command.h, observer.h and progspace.h to auto-load.c. Add include
6133 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6134 (struct loaded_script, auto_load_pspace_data)
6135 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6136 (hash_loaded_script_entry, eq_loaded_script_entry)
6137 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6138 (maybe_add_script): Move to auto-load.c.
6139 (source_section_scripts): Change maybe_add_script parameters passing,
6140 use script_not_found_warning_print.
6141 (clear_section_scripts, auto_load_objfile_script)
6142 (auto_load_new_objfile, loaded_script_ptr)
6143 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6144 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6145 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6146 auto_load_new_objfile and info_auto_load_scripts initizations to
6148 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6150 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6153 * charset.c (find_charset_names): Remove variables ix and elt.
6154 Use free_char_ptr_vec.
6155 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6156 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6157 debugdir_end. New variable debugdir_len.
6158 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6159 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6161 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6162 and elt. Use free_char_ptr_vec.
6163 * source.c (add_path): Remove variables argv, arg and argv_index.
6164 New variables dir_vec, back_to, ix and name.
6165 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6166 make_cleanup_freeargv. Remove variable separator. Simplify the code
6167 no longer expecting DIRNAME_SEPARATOR.
6168 (openp): Remove variable p, p1 and len. New variables dir_vec,
6169 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6170 no longer expecting DIRNAME_SEPARATOR.
6171 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6172 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6174 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6175 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6176 (dirnames_to_char_ptr_vec): New functions.
6178 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6181 * source.c (add_path): Remove always true conditional 'p == 0' and
6182 unindent its code block.
6184 2012-04-17 Pedro Alves <palves@redhat.com>
6186 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6187 (FIELD_BITPOS_LVAL): ... this.
6188 (FIELD_BITPOS): New.
6189 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6190 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6191 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6193 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6195 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6196 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6197 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6200 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6202 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6203 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6204 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6205 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6206 * jv-lang.c (java_link_class_type): Likewise, once.
6207 * stabsread.c (read_enum_type): Likewise.
6209 2012-04-16 Yao Qi <yao@codesourcery.com>
6211 * common/agent.c (agent_run_command): Add one more parameter `len'.
6213 * common/agent.h: Update declaration.
6214 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6216 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6218 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6221 * value.c (value_actual_type): New function.
6222 * value.h (value_actual_type): New declaration.
6223 * varobj.c (update_type_if_necessary): New function.
6224 (varobj_create): Call value_actual_type instead of
6226 (install_dynamic_child): distinct changed and type changed MI variable
6228 (update_dynamic_varobj_children): Updated for install_dynamic_child
6229 change. All callers updated.
6230 (varobj_update): Support for MI variable object type change if
6231 the value changed and RTTI is used to determine the type.
6232 (create_child_with_value): Call value_actual_type instead of
6234 (adjust_value_for_child_access): Extended with a new parameter which
6235 specify whether the given value should be casted to enclosing type.
6236 All callers updated.
6238 2012-04-14 Yao Qi <yao@codesourcery.com>
6240 Import gnulib module inttypes from git
6241 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6242 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6243 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6244 gnulib/m4/inttypes-pri.m4
6245 * aclocal.m4, config.in, configure: Regenerated.
6246 * gnulib/Makefile.am: Update.
6247 * gnulib/Makefile.in: Update.
6248 * gnulib/m4/gnulib-cache.m4: Update.
6249 * gnulib/m4/gnulib-comp.m4: Update.
6250 * gnulib/inttypes.in.h: New.
6251 * gnulib/m4/inttypes-pri.m4: New.
6252 * gnulib/m4/inttypes.m4: New.
6254 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6256 * infrun.c (resume): Update PC address to the real PC after
6257 preparing to do displaced stepping.
6259 2012-04-12 Doug Evans <dje@google.com>
6261 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6262 All callers updated.
6264 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6266 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6268 2012-04-12 Doug Evans <dje@google.com>
6270 * dwarf2read.c (create_all_type_units): Renamed from
6271 create_debug_types_hash_table. All callers updated.
6273 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6274 local type_sig to sig_type, type_offset to type_offset_in_tu.
6275 (hash_signatured_type): Renamed from hash_type_signature,
6276 all callers updated.
6277 (eq_signatured_type): Renamed from eq_type_signature,
6278 all callers updated.
6279 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6280 (process_enumeration_scope): Ditto.
6281 (lookup_signatured_type_at_offset): Ditto.
6282 (load_full_type_unit, read_signatured_type): Ditto.
6284 2012-04-12 Yao Qi <yao@codesourcery.com>
6286 * remote.c (async_remote_interrupt): Correct function name in
6288 (async_remote_interrupt_twice): Ditto.
6290 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6292 * source.c (find_and_open_source): Consistently pass resulting
6293 full path through xfullpath.
6295 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6297 Provide more specific displaced-stepping memory error message.
6298 * infrun.c (displaced_step_prepare): New variable status. Call
6299 target_read_memory instead of read_memory, provide more specific
6302 2012-04-11 Tristan Gingold <gingold@adacore.com>
6305 * darwin-nat.c (darwin_execvp): Revert previous patch.
6307 2012-04-11 Tristan Gingold <gingold@adacore.com>
6310 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6313 2012-04-11 Tristan Gingold <gingold@adacore.com>
6315 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6318 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6320 New command 'explore' which helps explore values and types in
6322 * NEWS: Add an entry about the new 'explore' command.
6323 * data-directory/Makefile.in: Add gdb/command/explore.py
6324 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6325 command using the GDB Python API.
6327 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6329 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6330 extension in jump target calculation.
6332 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6334 * mips-tdep.c (mips32_next_pc): Handle JALX.
6336 2012-04-10 Yao Qi <yao@codesourcery.com>
6338 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6340 2012-04-10 Yao Qi <yao@codesourcery.com>
6342 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6343 and gnulib/m4/gnulib-tool.m4.
6345 2012-04-10 Doug Evans <dje@google.com>
6347 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6348 (load_partial_dies): Clarify comment.
6349 (find_partial_die): Support rereading type units.
6350 Clarify CU handling, if we know offset is in CU, don't search for the
6351 containing CU. Add comment regarding memory waste.
6353 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6355 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6356 i386/x32-avx and i386/x32-avx-linux.
6357 (i386/x32-expedite): New.
6358 (i386/x32-linux-expedite): Likewise.
6359 (i386/x32-avx-expedite): Likewise.
6360 (i386/x32-avx-linux-expedite): Likewise.
6361 ($(outdir)/i386/x32.dat): Likewise.
6362 ($(outdir)/i386/x32-linux.dat): Likewise.
6363 ($(outdir)/i386/x32-avx.dat): Likewise.
6364 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6366 * features/i386/x32-avx-linux.xml: New file.
6367 * features/i386/x32-avx.xml: Likewise.
6368 * features/i386/x32-core.xml: Likewise.
6369 * features/i386/x32-linux.xml: Likewise.
6370 * features/i386/x32.xml: Likewise.
6372 * features/i386/x32-avx-linux.c: New. Generated.
6373 * features/i386/x32-avx.c: Likewise.
6374 * features/i386/x32-linux.c: Likewise.
6375 * features/i386/x32.c: Likewise.
6376 * regformats/i386/x32-avx-linux.dat: Likewise.
6377 * regformats/i386/x32-avx.dat: Likewise.
6378 * regformats/i386/x32-linux.dat: Likewise.
6379 * regformats/i386/x32.dat: Likewise.
6381 2012-04-10 Tristan Gingold <gingold@adacore.com>
6383 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6384 code to kill the inferior.
6386 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6388 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6390 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6392 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6393 (yyvsp): New defines.
6394 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6396 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6398 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6400 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6402 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6405 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6407 * sparc64-tdep.c (sparc64_store_arguments)
6408 (sparc64_store_arguments): Fix coding style.
6410 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6412 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6413 complex floats, adjust some related comments and tighten a related
6415 (sparc64_extract_return_value): Handle complex floats.
6417 2012-04-07 Doug Evans <dje@google.com>
6419 * dwarf2read.c (load_partial_dies): Change condition to assert.
6421 2012-04-06 Doug Evans <dje@google.com>
6423 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6426 2012-04-05 Kevin Buettner <kevinb@redhat.com>
6428 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6430 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6431 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6434 2012-04-05 Keith Seitz <keiths@redhat.com>
6436 * linespec.c (decode_compound): Remove.
6437 (enum offset_relative_sign): New enum.
6438 (struct line_offset): New struct.
6439 (struct linespec): New struct.
6440 (struct linespec_state): Move file_symtabs,
6441 user_filename, and user_function into struct linespec.
6442 Make result an anonymous struct holding vectors of
6443 symbolp and minsym_and_objfile_d.
6444 Add language member.
6445 (enum ls_token_type): New enum.
6446 (linespec_keywords): New array.
6447 (struct ls_token): New struct.
6448 (struct ls_parser): New struct.
6449 (linespec_lexer_lex_number): New function.
6450 (linespec_lexer_lex_keyword): New function.
6451 (is_ada_operator): New function.
6452 (skip_quote_char): New function.
6453 (copy_token_string): New function.
6454 (is_closing_quote_enclosed): New function.
6455 (find_parameter_list_end): New function.
6456 (linespec_lexer_lex_string): New function.
6457 (linespec_lexer_lex_one): New function.
6458 (linespec_lexer_consume_token): New function.
6459 (linespec_lexer_peek_token): New function.
6460 (cplusplus_error): Remove unused function.
6461 (find_methods): Update comment.
6462 (find_toplevel_char): Return const.
6463 (is_objc_method_format): Remove unused function.
6464 (find_toplevel_string): New function.
6465 (is_linespec_boundary): Remove.
6466 (symbol_not_found_error): New function.
6467 (find_method_overload_end): Remove function.
6468 (unexpected_linespec_error): New function.
6469 (keep_name_info): Remove.
6470 (linespec_parse_line_offset): New function.
6471 (linespec_parse_basic): New function.
6472 (canonicalize_linespec): New function.
6473 (decode_line_internal): Remove.
6474 (create_sals_line_offset): New function adapted from
6476 (convert_linespec_to_sals): New function.
6477 (parse_linespec): New function.
6478 (linespec_parser_new): New function.
6479 (linespec_state_destructor): Change parameter type to
6480 struct linespec_state *.
6481 Add language parameter.
6482 Remove freeing of moved members.
6483 (linespec_parser_delete): New function.
6484 (decode_line_full): Use parse_linespec and linespec_parser_new.
6485 (decode_line_1): Likewise.
6486 (decode_indirect): Rename to ...
6487 (linespec_expression_to_pc): ... this and rewrite
6488 to simply find CORE_ADDR, storing this result for later
6490 (locate_first_half): Remove.
6491 (deocde_objc): Add parameter LS.
6492 Initialize new struct collect_info members.
6493 Handle minimal symbols, too.
6494 (decode_compound): Delete.
6495 (lookup_prefix_sym): Rewrite.
6496 (compare_msymbols): New function.
6497 (find_method): Rewrite.
6498 Do not call cplusplus_error.
6499 (symtabs_from_filename): Rewrite.
6500 (collect_function_symbols): Delete.
6501 (find_function_symbols): Rewrite without ARGPTR-style
6503 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6504 (decode_dollar): Adapted and renamed to ...
6505 (linespec_parse_variable): ... this.
6506 (find_linespec_symbols): New function.
6507 (decode_label): Adapted and renamed to ...
6508 (find_label_symbols): ... this.
6509 (decode_digits_list_mode): Add and use LS argument.
6510 (decode_digits_ordinary): Likewise.
6511 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6512 If in list mode, allow any symbol class. Otherwise, only
6513 permit LOC_BLOCK symbols.
6514 (minsym_found): Update comments.
6515 (search_minsyms_for_name): Do not convert the matching symbol
6516 into a SAL. Simply push the symbol and objfile into the
6518 (decode_variable): Delete. Contents adapted into
6519 find_linespec_symbols.
6521 * cp-support.c (SKIP_SPACE): Remove.
6522 (operator_tokens): Remove unused global.
6523 (cp_validate_operator): Remove.
6524 * cp-support.h (cp_validate_operator): Remove declaration.
6526 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6528 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6529 for TYPE_VPTR_FIELDNO.
6530 * valprint.c (valprint_check_validity): Make it global, move the
6531 function comment ...
6532 * value.h (valprint_check_validity): ... to this new declaration.
6534 2012-04-02 Tristan Gingold <gingold@adacore.com>
6536 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6537 the STATE32 api for i386 state.
6538 (i386_darwin_store_inferior_registers): Likewise.
6540 2012-04-02 Tristan Gingold <gingold@adacore.com>
6542 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6544 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6547 2012-04-02 Tristan Gingold <gingold@adacore.com>
6550 * darwin-nat.c (darwin_execvp): Set binary preference.
6552 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6554 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6556 2012-03-30 Tom Tromey <tromey@redhat.com>
6558 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6559 of TRY_CATCH. Fix error handling.
6560 * python/py-value.c (convert_value_from_python): Move 'old'
6561 declaration to innermost scope.
6563 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6564 Andrey Smirnov <andrew.smirnov@gmail.com>
6566 -Wshadow warning fix.
6567 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6568 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6569 Adjust code accordingly.
6571 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6573 * ada-lang.c (symbol_completion_add): Rename parameter
6574 "encoded" into "encoded_p". Ajust code and documentation
6577 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6578 Andrey Smirnov <andrew.smirnov@gmail.com>
6580 -Wshadow warning fix.
6581 * ada-lang.c (symbol_completion_add): Rename parameter
6582 "wild_match" into wild_match_p. Update code and documentation
6585 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6587 * ada-lang.c (symbol_completion_match): Rename parameter
6588 "encoded" into "encoded_p". Ajust code and documentation
6591 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6592 Andrey Smirnov <andrew.smirnov@gmail.com>
6594 -Wshadow warning fix.
6595 * ada-lang.c (symbol_completion_match): Rename parameter
6596 "wild_match" into "wild_match_p". Adjust code and function
6597 documentation accordingly.
6599 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6600 Andrey Smirnov <andrew.smirnov@gmail.com>
6602 -Wshadow warning fix.
6603 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6604 "symbol_info" into "info". Adjust code accordingly.
6605 (ada_lookup_symbol): Likewise.
6607 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6609 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6610 of this function's documentation.
6612 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6613 Andrey Smirnov <andrew.smirnov@gmail.com>
6615 -Wshadow warning fix.
6616 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6617 variable into "wild_match_p". Adjust code accordingly.
6619 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6620 Andrey Smirnov <andrew.smirnov@gmail.com>
6622 -Wshadow warning fix.
6623 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6624 parameter into "wild_match_p". Adjust code accordingly.
6625 Document this parameter in the function description.
6627 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6628 Andrey Smirnov <andrew.smirnov@gmail.com>
6630 -Wshadow warning fix.
6631 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6632 "wild_match" parameter to "wild_match_p" (-Wshadow).
6634 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6636 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6637 in function documentation.
6639 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6640 Andrey Smirnov <andrew.smirnov@gmail.com>
6642 -Wshadow warning fix.
6643 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6644 variable into wild_match_p. Adjust code accordingly.
6646 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6647 Andrey Smirnov <andrew.smirnov@gmail.com>
6649 * ada-valprint.c (ada_val_print_1): Move the code handling
6650 TYPE_CODE_ENUM inside its own lexical block. Declare
6651 variables len and val there, instead of in the function's
6652 top level block. Avoid declaring deref_val again in a way
6653 that shadows another variable of the same name declared
6654 in one of the up-level blocks. Just re-use the up-level
6657 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6659 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6660 Replace block_found argument by symbol_info. Adjust
6661 implementation accordingly. Add function documentation.
6662 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6664 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6665 * ada-exp.y (write_object_renaming): Adjust to new
6666 ada_lookup_encoded_symbol API.
6668 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6670 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6673 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
6675 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6676 (v850_register_name): Add the mpu and fpu register names.
6677 (v850e_register_name): Add the mpu and fpu register names.
6678 (v850e2_register_name): New function.
6679 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
6682 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6684 * NEWS: Add entry for Ada varobj support.
6686 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6688 * varobj.c (default_value_is_changeable_p): New function,
6689 extracted from varobj_value_is_changeable_p. Add declaration.
6690 (ada_value_is_changeable_p): New function, extracted from
6691 varobj_value_is_changeable_p. Add declaration.
6692 (struct language_specific): New field "value_is_changeable_p".
6693 (languages): Add entries for new field.
6694 (varobj_create): Set language before calling install_new_value.
6695 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6696 "value_is_changeable_p" language callback.
6698 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6700 * ada-varobj.h, ada-varobj.c: New files.
6701 * Makefile.in (SFILES): Add ada-varobj.c.
6702 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6703 (COMMON_OBS): Add ada-varobj.o.
6705 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6707 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6708 (struct language_specific): New field "value_has_mutated".
6709 (languages): Set field "value_has_mutated" in each entry of array.
6710 (varobj_value_has_mutated): New function.
6711 (varobj_udpdate): Add handling of type mutation.
6712 (value_of_root): Add handling of type mutation.
6713 (ada_value_has_mutated): New function.
6715 2012-03-28 Pedro Alves <palves@redhat.com>
6717 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6718 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6720 2012-03-28 Tom Tromey <tromey@redhat.com>
6722 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6723 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6726 2012-03-28 Tom Tromey <tromey@redhat.com>
6728 * .dir-locals.el: New file.
6730 2012-03-28 Pedro Alves <palves@redhat.com>
6732 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
6734 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6736 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
6739 2012-03-27 Pedro Alves <palves@redhat.com>
6741 Eliminate struct ui_stream.
6743 * ui-out.h (struct ui_stream): Delete.
6744 (ui_out_field_stream): Adjust prototype.
6745 (ui_out_stream_new, ui_out_stream_delete)
6746 (make_cleanup_ui_out_stream_delete): Delete declarations.
6747 * ui-out.c (ui_out_field_stream): Change prototype to take a
6748 ui_file instead of a ui_stream. Adjust.
6749 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
6750 (make_cleanup_ui_out_stream_delete): Delete.
6751 * breakpoint.c (print_breakpoint_location)
6752 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
6753 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6754 * disasm.c (dump_insns): Ditto.
6755 (do_mixed_source_and_assembly, do_assembly_only): Adjust
6757 (gdb_disassembly): Use ui_file/mem_fileopen instead of
6758 ui_stream/ui_out_stream_new.
6759 * infcmd.c (print_return_value): Ditto.
6760 * osdata.c (info_osdata_command): Don't allocate a local
6762 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
6763 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6764 * tracepoint.c (print_one_static_tracepoint_marker): Don't
6765 allocate a local ui_stream.
6766 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
6767 instead of ui_stream/ui_out_stream_new.
6768 (list_args_or_locals): Don't allocate a local ui_stream.
6769 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
6770 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
6771 ui_stream/ui_out_stream_new.
6772 * cli/cli-setshow.c (do_setshow_command): Ditto.
6774 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
6776 * arm-linux-tdep.c (arm_linux_init_abi): Call
6777 set_gdbarch_process_record. Initialize `arm_swi_record' field.
6778 * arm-tdep.c (arm_process_record): New function.
6779 (deallocate_reg_mem): New function.
6780 (decode_insn): New function.
6781 (thumb_record_branch): New function.
6782 (thumb_record_ldm_stm_swi(): New function.
6783 (thumb_record_misc): New function.
6784 (thumb_record_ld_st_stack): New function.
6785 (thumb_record_ld_st_imm_offset): New function.
6786 (thumb_record_ld_st_reg_offset(): New function.
6787 (thumb_record_add_sub_cmp_mov): New function.
6788 (thumb_record_shift_add_sub): New function.
6789 (arm_record_coproc_data_proc): New function.
6790 (arm_record_coproc): New function.
6791 (arm_record_b_bl): New function.
6792 (arm_record_ld_st_multiple): New function.
6793 (arm_record_ld_st_reg_offset): New function.
6794 (arm_record_ld_st_imm_offset): New function.
6795 (arm_record_data_proc_imm): New function.
6796 (arm_record_data_proc_misc_ld_str): New function.
6797 (arm_record_extension_space): New function.
6798 (arm_record_strx): New function.
6799 (sbo_sbz): New function.
6800 (struct insn_decode_record): New structure for arm insn record.
6801 (REG_ALLOC): New macro for reg allocations.
6802 (MEM_ALLOC): New macro for memory allocations.
6803 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
6805 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
6807 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
6808 (store_register): Likewise.
6810 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
6812 * MAINTAINERS (Write After Approval): Add myself to the list.
6814 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6816 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
6817 Describe also the option "auto".
6819 2012-03-22 Richard Henderson <rth@redhat.com>
6821 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
6822 * sparc-nat.c (sparc_xfer_wcookie): Make static.
6824 2012-03-22 Richard Henderson <rth@redhat.com>
6826 * jit.c (jit_read_code_entry): Compute alignment and offset of
6827 int64_t member before computing entry_size.
6829 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6831 Python scripting: Add new method Value.referenced_value to
6832 gdb.Value which can dereference pointer as well as reference
6834 * NEWS: Add entry under 'Python scripting' about the new method
6835 Value.referenced_value on gdb.Value objects.
6836 * python/py-value.c (valpy_referenced_value): New function
6837 defining a new method on gdb.Value objects which can dereference
6838 pointer and reference values.
6840 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6842 * MAINTAINERS (Write After Approval): Add myself to the list.
6844 2012-03-21 Kevin Buettner <kevinb@redhat.com>
6846 * symtab.c (skip_prologue_sal): Change test to check for "main()"
6847 in addition to "main".
6849 2012-03-21 Joel Brobecker <brobecker@adacore.com>
6851 * expression.h (op_name): Add declaration.
6852 * expprint.c (op_name): Remove declaration. Make non-static.
6853 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
6855 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
6857 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
6859 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
6860 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
6861 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
6862 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
6863 (linux_nat_get_siginfo): Likewise.
6864 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
6865 (linux_nat_get_siginfo): Likewise.
6866 * linux-tdep.c (linux_get_siginfo_type): Likewise.
6867 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
6868 * procfs.c (gdb_siginfo_t): Likewise.
6870 2012-03-21 Mike Frysinger <vapier@gentoo.org>
6872 * .gitignore: Ignore more files.
6874 2012-03-20 Pedro Alves <palves@redhat.com>
6876 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
6879 2012-03-20 Yao Qi <yao@codesourcery.com>
6881 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
6884 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6886 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
6887 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
6888 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
6890 * dwarf2expr.h (cu_offset, sect_offset): New types.
6891 (struct dwarf_expr_context_funcs) <dwarf_call>
6892 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
6894 (struct dwarf_expr_context) <len>: Improve the comment.
6895 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
6896 cu_offset and sect_offset.
6897 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
6898 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
6899 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
6900 * dwarf2loc.h: Include dwarf2expr.h.
6901 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
6903 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
6904 Improve the comment.
6905 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
6906 (struct signatured_type, struct line_header, struct partial_die_info)
6907 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
6908 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
6909 (get_die_type_at_offset, create_cus_from_index)
6910 (create_signatured_type_table_from_index, dw2_get_file_names)
6911 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
6912 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
6913 (create_debug_types_hash_table, process_psymtab_comp_unit)
6914 (load_partial_comp_unit, create_all_comp_units)
6915 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
6916 (load_full_comp_unit, dwarf2_physname, read_import_statement)
6917 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6918 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
6919 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
6920 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
6921 (find_partial_die, read_attribute_value, lookup_die_type)
6922 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
6923 (is_ref_attr): New function comment.
6924 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
6925 Use cu_offset and sect_offset.
6926 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
6927 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
6928 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
6929 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
6930 (offset_and_type_hash, offset_and_type_eq, set_die_type)
6931 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
6932 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
6935 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6938 * python/py-auto-load.c (source_section_scripts): New variable back_to.
6939 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
6941 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
6943 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6945 * NEWS: Describe new options --init-command=FILE, -ix and
6946 --init-eval-command=COMMAND, -iex.
6947 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
6948 CMDARG_INIT_COMMAND.
6949 (captured_main): New enum items OPT_IX and OPT_IEX. Add
6950 "init-command", "init-eval-command", "ix" and "iex" to the variable
6951 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
6952 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
6953 (print_gdb_help): Describe --init-command=FILE, -ix and
6954 --init-eval-command=COMMAND, -iex.
6956 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6959 * main.c (struct cmdarg): Move it here from main. Add more comments.
6960 (cmdarg_s, VEC (cmdarg_s)): New.
6961 (main): Move struct cmdarg from here. New variables cmdarg_vec and
6962 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
6963 Install cleanup for cmdarg_vec. Update filling for options 'x' and
6964 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
6967 2012-03-19 Tom Tromey <tromey@redhat.com>
6969 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
6971 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6974 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
6977 2012-03-16 Chris January <chris.january@allinea.com>
6979 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
6982 2012-03-16 Chris January <chris.january@allinea.com>
6984 * source.c (add_path): Use memmove instead of strcpy because the
6987 2012-03-16 Joel Brobecker <brobecker@adacore.com>
6989 * value.h (set_value_parent): Add declaration.
6990 * value.c (set_value_parent): New function.
6991 (value_address): If VALUE->PARENT is not NULL, then use it as
6992 the base address instead of VALUE->LOCATION.address.
6993 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
6994 the same as OBJ's address. Adjust V's offset accordingly.
6997 2012-03-16 Gary Benson <gbenson@redhat.com>
6999 PR breakpoints/10738
7000 * dwarf2read.c (use_deprecated_index_sections): New global.
7001 (struct partial_die_info): New member may_be_inlined.
7002 (read_partial_die): Set may_be_inlined where appropriate.
7003 (add_partial_subprogram): Add partial symbols for partial
7004 DIEs that may be inlined.
7005 (new_symbol_full): Add inlined subroutines to the current
7007 (write_psymtabs_to_index): Bump version number.
7008 (dwarf2_read_index): Read only version 6 indices unless
7009 use_deprecated_index_sections is set.
7010 * linespec.c (symbol_and_data_callback): New structure.
7011 (iterate_inline_only): New function.
7012 (iterate_over_all_matching_symtabs): New argument
7013 "include_inline". If nonzero, also call the callback for
7014 symbols representing inlined subroutines.
7015 (lookup_prefix_sym): Pass extra argument to the above.
7016 (find_function_symbols): Likewise.
7017 (add_matching_symbols_to_info): Likewise.
7018 * NEWS: Mention that GDB can now set breakpoints on inlined
7021 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7023 * p-typeprint.c (pascal_type_print_method_args):
7024 Fix display of parameter of methods.
7026 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7028 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7029 Add missing prototype.
7031 2012-03-16 Yao Qi <yao@codesourcery.com>
7032 Jan Kratochvil <jan.kratochvil@redhat.com>
7034 Fix false compilation warning.
7035 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7037 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7038 Pedro Alves <pedro@codesourcery.com>
7040 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7041 (arm_register_g_packet_guesses): New function.
7042 (arm_gdbarch_init): Don't force a target description with
7043 registers when the executable is detected as M-profile. Instead
7044 set gdbarch->tdep->is_m. Register `g' packet guesses.
7045 (_initialize_arm_tdep): Initialize the new target description.
7046 * features/arm-with-m-fpa-layout.xml: New description.
7047 * features/arm-with-m-fpa-layout.c: New, generated.
7049 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7051 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7052 Update function description.
7053 (insert_bp_location): Do not wipe bl->target_info out.
7054 * mem-break.c: #include "gdb_string.h".
7055 (default_memory_insert_breakpoint): Do not call target_read_memory
7056 with a pointer to the breakpoint's shadow_contents buffer. Use
7057 a local buffer instead.
7058 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7060 2012-03-15 Tom Tromey <tromey@redhat.com>
7062 * NEWS: Mention "info vtbl", not "info vtable".
7063 * cp-support.c (info_vtbl_command): Fix comment.
7064 (_initialize_cp_support): Fix text.
7066 2012-03-15 Tom Tromey <tromey@redhat.com>
7068 * cp-valprint.c (cp_print_value_fields): Use
7069 print_function_pointer_address for vtable slot.
7071 2012-03-15 Tom Tromey <tromey@redhat.com>
7073 * gnu-v3-abi.c (struct value_and_voffset): New.
7074 (hash_value_and_voffset, eq_value_and_voffset)
7075 (compare_value_and_voffset, compute_vtable_size)
7076 (print_one_vtable, gnuv3_print_vtable): New functions.
7077 (init_gnuv3_ops): Initialize 'print_vtable' field.
7078 * cp-support.c (info_vtbl_command): New function.
7079 (_initialize_cp_support): Add "info vtbl".
7080 * cp-abi.h (cplus_print_vtable): Declare.
7081 (struct cp_abi_ops) <print_vtable>: New field.
7082 * cp-abi.c (cplus_print_vtable): New function.
7085 2012-03-15 Tom Tromey <tromey@redhat.com>
7087 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7088 iterate_over_symbols.
7090 2012-03-14 Doug Evans <dje@google.com>
7092 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7093 DW_OP_GNU_parameter_ref.
7095 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7097 Fix double prompt of 'interpreter-exec mi'.
7098 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7099 (mi_interpreter_resume): use it.
7100 (mi_execute_command_input_handler): New function.
7101 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7102 mi_execute_command_input_handler.
7104 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7106 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7108 (darwin_debug_port_info): Make static.
7109 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7110 * machoread.c (_initialize_machoread): Add prototype.
7111 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7112 (i386_darwin_set_control, i386_darwin_get_control)
7113 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7114 i386_darwin_get_status, i386_darwin_get_control):
7115 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7117 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7119 * ax-gdb.c (gen_usual_unary): Remove special handling of
7120 enum and bool types.
7122 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7124 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7126 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7128 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7130 2012-03-13 Chris January <chris.january@allinea.com>
7132 * aix-thread.c (fill_sprs): Store the floating point registers
7133 at the correct offsets into vals.
7135 2012-03-13 Doug Evans <dje@google.com>
7137 * NEWS: Mention symbol-reloading has been deleted.
7138 * symfile.c (symbol_reloading): Delete.
7139 (show_symbol_reloading): Delete.
7140 (_initialize_symfile): Delete set/show symbol-reloading.
7142 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7143 read_in_chain until we have successfully read it in.
7144 (load_full_comp_unit): Ditto.
7145 (read_signatured_type): Add comment.
7147 2012-03-13 Chris January <chris.january@allinea.com>
7149 * stabsread.c (fix_common_block): Change type of valu argument
7152 2012-03-13 Chris January <chris.january@allinea.com>
7154 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7157 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7159 * common/linux-procfs.c (linux_proc_get_int): New, from
7160 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7162 (linux_proc_get_tgid): Only call linux_proc_get_int.
7163 (linux_proc_get_tracerpid): New.
7164 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7165 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7166 linux_proc_pid_has_state.
7167 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7168 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7169 (linux_ptrace_attach_warnings): New.
7170 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7172 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7173 (linux_nat_attach): New variables ex, buffer, message and message_s.
7174 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7176 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7178 * Makefile.in (linux-ptrace.o): New.
7179 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7181 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7182 * common/linux-ptrace.c: New file.
7183 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7184 * config/arm/linux.mh: Likewise.
7185 * config/i386/linux.mh: Likewise.
7186 * config/i386/linux64.mh: Likewise.
7187 * config/ia64/linux.mh: Likewise.
7188 * config/m32r/linux.mh: Likewise.
7189 * config/m68k/linux.mh: Likewise.
7190 * config/mips/linux.mh: Likewise.
7191 * config/pa/linux.mh: Likewise.
7192 * config/powerpc/linux.mh: Likewise.
7193 * config/powerpc/ppc64-linux.mh: Likewise.
7194 * config/powerpc/spu-linux.mh: Likewise.
7195 * config/s390/s390.mh: Likewise.
7196 * config/sparc/linux.mh: Likewise.
7197 * config/sparc/linux64.mh: Likewise.
7198 * config/xtensa/linux.mh: Likewise.
7199 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7200 common/linux-procfs.c.
7201 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7203 2012-03-13 Hui Zhu <teawater@gmail.com>
7204 Pedro Alves <palves@redhat.com>
7206 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7207 CREATE_BREAKPOINT_FLAGS_INSERTED.
7208 (create_breakpoint_sal, create_breakpoints_sal)
7209 (base_breakpoint_create_breakpoints_sal)
7210 (tracepoint_create_breakpoints_sal)
7211 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7213 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7214 (ftrace_command, strace_command): Adjust.
7215 (create_tracepoint_from_upload): Pass
7216 CREATE_BREAKPOINT_FLAGS_INSERTED.
7217 * breakpoint.h (enum breakpoint_create_flags): New.
7218 (create_breakpoint): New flags parameter.
7219 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7220 * python/py-breakpoint.c (bppy_init): Adjust.
7221 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7222 * spu-tdep.c (spu_catch_start): Adjust.
7224 2012-03-13 Pedro Alves <palves@redhat.com>
7225 Hui Zhu <teawater@gmail.com>
7226 Yao Qi <yao@codesourcery.com>
7228 * remote.c (struct remote_state): New field `starting_up'.
7229 (remote_start_remote): Set and clear it.
7230 (remote_can_download_tracepoint): If starting up, return false.
7232 2012-03-13 Yao Qi <yao@codesourcery.com>
7234 * inferior.h (struct inferior): Remove fields any_syscall_count,
7235 syscalls_counts and total_syscalls_count. Move them to new
7236 struct catch_syscall_inferior_data in breakpoint.c.
7237 * breakpoint.c: Call DEF_VEC_I(int).
7238 (struct catch_syscall_inferior_data): New.
7239 (get_catch_syscall_inferior_data): New.
7240 (catch_syscall_inferior_data_cleanup): New.
7241 (insert_catch_syscall): Update to access data in
7242 struct catch_syscall_inferior_data.
7243 (insert_catch_syscall): Likewise.
7244 (remove_catch_syscall): Likewise.
7245 (remove_catch_syscall): Likewise.
7246 (is_syscall_catchpoint_enabled): Likewise.
7247 (add_catch_command): Likewise.
7248 (_initialize_breakpoint): Register cleanup.
7249 * breakpoint.h: Removed DEF_VEC_I(int).
7250 * dwarf2loc.c: Call DEF_VEC_I(int).
7251 * mi/mi-main.c: Likewise.
7253 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7255 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7257 2012-03-12 Chris January <chris.january@allinea.com>
7259 * aix-thread.c (_initialize_aix_thread): Add prototype.
7260 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7261 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7263 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7265 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7266 include of "amd64-nat.h".
7268 2012-03-12 Tom Tromey <tromey@redhat.com>
7270 * buildsym.c (record_pending_block): Now static.
7271 * buildsym.h: (record_pending_block): Remove.
7273 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7275 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7277 2012-03-09 Tom Tromey <tromey@redhat.com>
7279 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7280 producer_is_gxx_lt_4_6>: New fields.
7281 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7283 2012-03-09 Tom Tromey <tromey@redhat.com>
7285 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7287 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7289 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7292 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7294 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7296 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7298 Fix -Wmissing-prototypes build.
7299 * arm-linux-nat.c (get_thread_id): Make it static.
7300 * xtensa-linux-nat.c (get_thread_id): Likewise.
7302 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7304 * server.c (process_point_options): If a conditional expression
7305 is found, only print a message if remote_debug is nonzero.
7307 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7309 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7310 of internal error for unknown/unsupported types.
7312 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7314 Fix CU relative vs. absolute DIE offsets.
7315 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7316 offset to offset_in_cu.
7317 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7319 (dwarf2_fetch_die_location_block): Rename parameter offset to
7320 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7322 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7324 * libunwind-frame.c: Rename to ...
7325 * ia64-libunwind-tdep.c: ... here.
7326 * libunwind-frame.h: Rename to ...
7327 * ia64-libunwind-tdep.h: ... here.
7328 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7329 ia64-libunwind-tdep.h.
7330 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7331 * README (--with-libunwind): Rename to ...
7332 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7333 * config.in: Regenerate.
7334 * configure: Regenerate.
7335 * configure.ac: New option --with-libunwind-ia64, make the
7336 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7337 Remove AC_DEFINE for HAVE_LIBUNWIND.
7338 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7339 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7340 Rename libunwind-frame in the general comment.
7341 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7342 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7343 Move forward declarations inside #ifndef. Rename libunwind-frame in
7344 the general comment.
7345 * ia64-tdep.c: Rename libunwind-frame.h #include to
7346 ia64-libunwind-tdep.h.
7347 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7348 (ia64_libunwind_descr): Rename libunwind-frame to
7349 ia64-libunwind-tdep in these function comments.
7350 * ia64-tdep.h: Rename libunwind-frame.h #include to
7351 ia64-libunwind-tdep.h.
7352 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7353 ia64-libunwind-tdep in that data comment.
7355 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7357 * libunwind-frame.h (struct frame_unwind): New declaration.
7359 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7361 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7362 "set breakpoint condition-evaluation" command.
7364 2012-03-08 Tristan Gingold <gingold@adacore.com>
7366 * sparc-stub.c: Move to stubs/
7367 * sh-stub.c: Likewise.
7368 * m68k-stub.c: Likewise.
7369 * m32r-stub.c: Likewise.
7370 * i386-stub.c: Likewise.
7372 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7374 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7375 linux_get_siginfo_type.
7377 * m68klinux-nat.c: Include "gdb_proc_service.h".
7378 (PTRACE_GET_THREAD_AREA): Define.
7379 (ps_get_thread_area): New function.
7381 2012-03-08 Yao Qi <yao@codesourcery.com>
7383 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7385 (remote_query_attached): Likewise.
7386 (remote_static_tracepoint_marker_at): Likewise.
7387 (remote_set_permissions): Likewise.
7388 (remote_detach_1, extended_remote_attach_1): Likewise.
7389 (send_g_packet, remote_vkill): Likewise.
7390 (extended_remote_disable_randomization): Likewise.
7391 (remote_add_target_side_condition): Likewise.
7392 (remote_insert_breakpoint): Likewise.
7393 (remote_remove_breakpoint): Likewise.
7394 (remote_insert_watchpoint): Likewise.
7395 (remote_remove_watchpoint): Likewise.
7396 (remote_insert_hw_breakpoint): Likewise.
7397 (remote_insert_hw_breakpoint): Likewise.
7398 (remote_remove_hw_breakpoint): Likewise.
7399 (remote_download_command_source): Likewise.
7400 (remote_download_tracepoint): Likewise.
7401 (remote_download_trace_state_variable): Likewise.
7402 (remote_disable_tracepoint): Likewise.
7403 (remote_trace_set_readonly_regions): Likewise.
7404 (remote_get_tracepoint_status): Likewise.
7405 (remote_trace_find): Likewise.
7406 (remote_get_trace_state_variable_value): Likewise.
7407 (remote_set_disconnected_tracing): Likewise.
7408 (remote_set_circular_trace_buffer): Likewise.
7409 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7410 (remote_use_agent): Likewise.
7411 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7414 2012-03-07 Pedro Alves <palves@redhat.com>
7416 * NEWS: Mention QProgramSignals.
7417 * inferior.h (update_signals_program_target): Declare.
7418 * infrun.c: (update_signals_program_target): New.
7419 (handle_command): Update the target of the new program signals
7421 * remote.c (PACKET_QProgramSignals): New enum.
7422 (last_program_signals_packet): New global.
7423 (remote_program_signals): New.
7424 (remote_start_remote): Update the target with the program signals
7426 (remote_protocol_features): Add entry for QPassSignals.
7427 (remote_open_1): Free anc clear last_program_signals_packet.
7428 (init_remote_ops): Install remote_program_signals.
7429 * target.c (update_current_target): Adjust.
7430 (target_program_signals): New.
7431 * target.h (struct target_ops) <to_program_signals>: New field.
7432 (target_program_signals): Declare.
7434 2012-03-07 Pedro Alves <palves@redhat.com>
7436 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7439 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7441 * m68klinux-nat.c (getregs_supplies): Make static.
7442 (getfpregs_supplies): Likewise.
7443 (have_ptrace_getregs): Likewise.
7445 2012-03-06 Joel Brobecker <brobecker@adacore.com>
7447 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7448 in call to get_die_type_at_offset.
7450 2012-03-06 Stan Shebs <stan@codesourcery.com>
7452 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7453 * mi/mi-cmd-disas.c: Ditto.
7454 * mi/mi-cmd-env.c: Ditto.
7455 * mi/mi-cmd-file.c: Ditto.
7456 * mi/mi-cmd-stack.c: Ditto.
7457 * mi/mi-cmd-target.c: Ditto.
7458 * mi/mi-cmd-var.c: Ditto.
7459 * mi/mi-cmds.c: Ditto.
7460 * mi/mi-cmds.h: Ditto.
7461 * mi/mi-console.c: Ditto.
7462 * mi/mi-getopt.c: Ditto.
7463 * mi/mi-getopt.h: Ditto.
7464 * mi/mi-interp.c: Ditto.
7465 * mi/mi-main.c: Ditto.
7466 * mi/mi-out.c: Ditto.
7467 * mi/mi-parse.c: Ditto.
7468 * mi/mi-parse.h: Ditto.
7469 * mi/mi-symbol-cmds.c: Ditto.
7471 * mi/mi-getopt.h: Move mi_opt struct up.
7472 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7474 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7476 2012-03-06 Tom Tromey <tromey@redhat.com>
7478 * proc-service.c (ps_pglobal_lookup): Set the current program
7481 2012-03-06 Pedro Alves <palves@redhat.com>
7483 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7485 2012-03-05 Joel Brobecker <brobecker@adacore.com>
7487 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7489 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7492 * common/linux-osdata.c (linux_common_core_of_thread): New function
7494 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7495 call by linux_common_core_of_thread.
7496 (linux_nat_core_of_thread_1): Remove.
7497 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7498 * linux-thread-db.c: Include linux-osdata.h.
7499 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7500 linux_common_core_of_thread.
7502 2012-03-05 Tom Tromey <tromey@redhat.com>
7504 * value.c (value_primitive_field): Don't fetch contents for
7507 2012-03-05 Tom Tromey <tromey@redhat.com>
7509 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7511 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
7513 * s390-nat.c: Include "gregset.h".
7515 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7517 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7518 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7519 (libunwind_load): New variable so_error, use it for dlerror. Try to
7520 load also LIBUNWIND_SO_7.
7522 2012-03-05 Pedro Alves <palves@redhat.com>
7524 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7525 is not NULL, and remove resulting dead code.
7527 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7529 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7530 prologue to sh_analyze_prologue.
7531 (sh_analyze_prologue): Make better use of such an upper limit, and
7532 generally be more cautious about accessing memory.
7534 2012-03-05 Tom Tromey <tromey@redhat.com>
7536 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7537 _initialize_ia64_hpux_tdep.
7539 2012-03-05 Pedro Alves <palves@redhat.com>
7543 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7544 the register state is clear, supply explicit zero, instead of
7545 marking the register unavailable.
7547 2012-03-05 Tristan Gingold <gingold@adacore.com>
7549 * NEWS: Mention OpenVMS ia64 new target.
7551 2012-03-05 Tristan Gingold <gingold@adacore.com>
7553 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7554 (ia64_unw_accessors, ia64_unw_rse_accessors)
7555 (ia64_libunwind_descr): Declare.
7556 * ia64-vms-tdep.c: New file.
7557 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7558 (ia64_libunwind_descr): Make them public.
7559 * configure.tgt: Add ia64-*-*vms*.
7560 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7561 (ALLDEPFILES): Add ia64-vms-tdep.c
7563 2012-03-05 Tristan Gingold <gingold@adacore.com>
7565 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7566 * remote.c (PACKET_qXfer_uib): New enum value.
7567 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7568 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7569 (_initialize_remote): Call add_packet_config_cmd for
7572 2012-03-05 Tristan Gingold <gingold@adacore.com>
7574 * osabi.c (gdb_osabi_names): Add OpenVMS.
7575 (generic_elf_osabi_sniffer): Likewise.
7576 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
7578 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7580 Removed unused code.
7581 * libunwind-frame.c (libunwind_frame_unwind)
7582 (libunwind_frame_base_address): Remove.
7583 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7585 2012-03-04 Yao Qi <yao@codesourcery.com>
7587 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7588 remove trailing new line.
7589 (agent_run_command, agent_run_command): Add _ markup.
7590 (agent_capability_check): Likewise.
7592 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7594 * breakpoint.c (set_condition_evaluation_mode): Set
7595 CONDITION_EVALUATION_MODE unconditionally.
7597 2012-03-03 Yao Qi <yao@codesourcery.com>
7599 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7600 * common/agent.h: Update declaration.
7601 * inf-child.c (inf_child_use_agent): New.
7602 (inf_child_can_use_agent): New.
7603 (inf_child_target): Initialize fields `to_use_agent'
7604 and `to_can_use_agent'.
7605 * agent.c (agent_new_objfile): New.
7606 (_initialize_agent): Add agent_new_objfile to new_objfile
7609 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7611 (linux_target_install_ops): Initialize field
7612 `to_static_tracepoint_markers_by_strid'.
7613 * remote.c (free_current_marker): Move it to ...
7614 * tracepoint.c (free_current_marker): ... here. New.
7615 (cleanup_target_stop): New.
7616 * tracepoint.h: Declare free_current_marker.
7617 * NEWS: Add one entry about `info static-tracepoint-marker'.
7619 2012-03-03 Yao Qi <yao@codesourcery.com>
7621 * common/agent.c (agent_loaded_p): New.
7622 (agent_look_up_symbols): New global.
7623 * common/agent.h: Declare agent_loaded_p.
7625 2012-03-03 Yao Qi <yao@codesourcery.com>
7627 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7628 (agent_capability_check, agent_capability_invalidate): New.
7629 (symbol_list): New array element.
7630 * common/agent.h (enum agent_capa): New.
7631 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7633 2012-03-03 Yao Qi <yao@codesourcery.com>
7635 * target.h (struct target_ops) <to_use_agent>: New field.
7636 (struct target_ops) <to_can_use_agent>: New field.
7637 (target_use_agent, target_can_use_agent): New macro.
7638 * target.c (update_current_target): Update.
7639 * remote.c: New enum `PACKET_QAgent'.
7640 (remote_protocol_features): Add a new element.
7641 (remote_use_agent, remote_can_use_agent): New.
7642 (init_remote_ops): Initialize field `can_use_agent' with
7643 remote_can_use_agent. Intiailize field `use_agent' with
7645 * common/agent.c (use_agent): New global.
7646 * common/agent.h: Declare it.
7647 * tracepoint.c (info_static_tracepoint_markers_command): Add
7649 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7650 (COMMON_OBS): Add common/agent.o and agent.o
7651 (common-agent.o): New rule.
7654 2012-03-03 Yao Qi <yao@codesourcery.com>
7656 * common/agent.c: New.
7657 * common/agent.h: New.
7658 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7660 * configure, configh.in: Regenerated.
7662 2012-03-02 Kevin Buettner <kevinb@redhat.com>
7664 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7665 unless it exists for this architecture.
7667 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7669 * language.h (struct language_defn): New "method" la_read_var_value.
7670 * findvar.c: #include "language.h".
7671 (default_read_var_value): Renames read_var_value. Rewrite
7672 function description.
7673 (read_var_value): New function.
7674 * value.h (default_read_var_value): Add prototype.
7675 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7677 (ada_language_defn): Add entry for la_read_var_value.
7678 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7679 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7680 language_defn structures to add entry for new la_read_var_value
7683 2012-03-02 Tom Tromey <tromey@redhat.com>
7684 Pedro Alves <palves@redhat.com>
7686 PR breakpoints/13776:
7687 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7689 (delete_longjmp_breakpoint_at_next_stop): New.
7690 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7691 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7692 before deleting the inferior. Add comments.
7693 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7694 breakpoints immediately, but only on next stop. Move that code
7695 next to where we mark other breakpoints for deletion.
7697 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7699 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7701 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7704 2012-03-02 Pedro Alves <palves@redhat.com>
7706 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7708 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7710 Fix -Wmissing-prototypes build.
7711 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7712 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7713 (gdbsim_has_memory): Likewise.
7715 2012-03-02 Yao Qi <yao@codesourcery.com>
7717 Fix -Wmissing-prototypes build.
7718 * charset.c (phony_iconv_open): Make static.
7719 (phony_iconv_close, phony_iconv): Likewise.
7720 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7721 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7723 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7724 * ser-mingw.c (create_select_thread): Make static.
7725 * windows-termcap.c (tgetent): New prototype.
7726 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7728 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7730 Fix -Wmissing-prototypes build.
7731 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
7732 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
7733 (_initialize_loadable): New prototypes.
7735 2012-03-02 Doug Evans <dje@google.com>
7737 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
7738 abbrev table, read_comp_unit will do it.
7740 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7742 Fix -Wmissing-prototypes build.
7743 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
7744 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
7745 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
7746 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
7747 (_initialize_arm_symbian_tdep): New prototype.
7748 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
7749 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
7750 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
7752 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
7753 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
7755 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
7756 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
7757 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
7759 * moxie-tdep.c (moxie_process_record): Likewise.
7760 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
7761 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
7762 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
7763 (_initialize_rl78_tdep): New prototype.
7764 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
7765 (_initialize_rx_tdep): New prototype.
7766 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
7767 (_initialize_darwin_solib): New prototype.
7768 * solib-spu.c: Include solib-spu.h.
7769 (_initialize_spu_solib): New prototype.
7770 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
7771 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
7772 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
7773 (tic6x_software_single_step): Make it static.
7774 (_initialize_tic6x_tdep): New prototype.
7776 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7778 Fix -Wmissing-prototypes build.
7779 * cris-tdep.c (cris_can_use_hardware_watchpoint)
7780 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
7782 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7784 Fix -Wmissing-prototypes build.
7785 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
7786 (frv_have_stopped_data_address): Remove.
7788 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7790 Fix -Wmissing-prototypes build.
7791 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
7792 * sh-tdep.c: Include sh64-tdep.h.
7793 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
7794 * sh64-tdep.c: Include sh64-tdep.h.
7795 * sh64-tdep.h: New file.
7797 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7799 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
7801 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7803 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
7804 sp_regnum once the gdbarch_init_osabi hook has been called.
7806 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7808 * mips-tdep.c (mips32_bc1_pc): New function.
7809 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
7810 BPOSGE32 and BPOSGE64 instructions.
7811 (deal_with_atomic_sequence): Likewise.
7812 (mips32_instruction_has_delay_slot): Likewise.
7814 2012-03-01 Maciej W. Rozycki <macro@mips.com>
7815 Chris Dearman <chris@mips.com>
7816 Maciej W. Rozycki <macro@codesourcery.com>
7817 Joseph Myers <joseph@codesourcery.com>
7819 * features/mips-dsp.xml: New file.
7820 * features/mips64-dsp.xml: New file.
7821 * features/mips-dsp-linux.xml: New file.
7822 * features/mips64-dsp-linux.xml: New file.
7823 * features/Makefile (WHICH): Add mips-dsp-linux and
7825 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
7826 * features/mips-dsp-linux.c: New file.
7827 * features/mips64-dsp-linux.c: New file.
7828 * regformats/mips-dsp-linux.dat: New file.
7829 * regformats/mips64-dsp-linux.dat: New file.
7830 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
7832 (mips64_linux_register_addr): Likewise.
7833 (mips64_linux_regsets_fetch_registers): Likewise.
7834 (mips64_linux_regsets_store_registers): Likewise.
7835 (mips64_linux_fetch_registers): Update call to
7836 mips64_linux_regsets_fetch_registers.
7837 (mips64_linux_store_registers): Update call to
7838 mips64_linux_regsets_store_registers.
7839 (mips_linux_read_description): Probe for DSP registers.
7840 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
7841 and initialize_tdesc_mips64_dsp_linux.
7842 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
7843 Remove padding of no longer used embedded register slots.
7844 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
7845 (MIPS_RESTART_REGNUM): Redefine enum value.
7846 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
7848 (mips_tx39_reg_names): Likewise.
7849 (mips_linux_reg_names): New array of register names for Linux
7851 (mips_register_name): Check for a null pointer in
7852 mips_processor_reg_names and return an empty string.
7853 (mips_register_type): Exclude embedded registers for the IRIX
7855 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
7856 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
7858 (mips_stab_reg_to_regnum): Handle DSP accumulators.
7859 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
7860 (mips_gdbarch_init): Likewise. Initialize internal register
7861 indices for the Linux ABI. Use dynamic numbers to refer to
7862 registers, as applicable, while parsing the target description.
7863 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
7865 2012-03-01 Joel Brobecker <brobecker@adacore.com>
7867 * frame.h (read_frame_register_unsigned): Fix typo in function
7870 2012-03-01 Pedro Alves <palves@redhat.com>
7872 * jit-reader.in [!__cplusplus]
7873 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
7875 2012-03-01 Pedro Alves <palves@redhat.com>
7877 * configure.ac (build_warnings): Add -Wmissing-prototypes.
7878 * configure: Regenerate.
7880 2012-03-01 Pedro Alves <palves@redhat.com>
7882 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
7883 * breakpoint.c (create_exception_master_breakpoint, trace_command)
7884 (ftrace_command, strace_command): Make static.
7885 * d-lang.c (_initialize_d_language): Declare.
7886 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
7887 * dwarf2loc.c (_initialize_dwarf2loc):
7888 * dwarf2read.c (process_psymtab_comp_unit): Make static.
7889 * exec.c (exec_get_section_table): Make static.
7890 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
7891 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
7892 * inferior.c (remove_inferior_command, add_inferior_command)
7893 (clone_inferior_command): Make static.
7894 * linux-nat.c (linux_nat_thread_address_space)
7895 (linux_nat_core_of_thread): Make static.
7896 * linux-tdep.c (_initialize_linux_tdep): Declare.
7897 * objc-lang.c (_initialize_objc_lang): Declare.
7898 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
7900 (_initialize_opencl_language): Declare.
7901 * record.c (_initialize_record): Declare.
7902 * remote.c (demand_private_info, remote_get_tib_address)
7903 (remote_supports_cond_tracepoints)
7904 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
7906 * skip.c (_initialize_step_skip): Declare.
7907 * symtab.c (skip_prologue_using_lineinfo): Make static.
7908 * tracepoint.c (delete_trace_state_variable)
7909 (trace_variable_command, delete_trace_variable_command)
7910 (get_uploaded_tsv, find_matching_tracepoint_location)
7911 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
7913 * value.c (pack_unsigned_long): Make static.
7914 * varobj.c (varobj_ensure_python_env): Make static.
7915 * windows-tdep.c (_initialize_windows_tdep): Declare.
7916 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
7918 2012-03-01 Pedro Alves <palves@redhat.com>
7920 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
7922 (linux_init_abi): Install it as has_shared_address_space gdbarch
7925 2012-03-01 Pedro Alves <palves@redhat.com>
7927 * observer.c (observer_test_first_notification_function)
7928 (observer_test_second_notification_function)
7929 (observer_test_third_notification_function): Add declarations.
7931 2012-03-01 Pedro Alves <palves@redhat.com>
7933 * common/signals.c (default_target_signal_to_host)
7934 (default_target_signal_from_host): Move ...
7935 * arch-utils.c: ... here.
7936 * arch-utils.h (default_target_signal_to_host)
7937 (default_target_signal_from_host): Declare.
7939 * common/signals.c (target_signal_from_command): Move ...
7940 * infrun.c: ... here.
7941 * inferior.h (target_signal_from_command): Declare.
7942 * target.h (target_signal_from_command)
7943 (default_target_signal_from_host, default_target_signal_to_host):
7944 Delete declarations.
7946 * common/signals.c (_initialize_signals): Delete.
7948 2012-03-01 Pedro Alves <palves@redhat.com>
7950 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
7951 both __cplusplus and !__cplusplus.
7953 2012-03-01 Pedro Alves <palves@redhat.com>
7955 * psymtab.c (find_and_open_source): Delete declaration.
7956 * source.c (find_and_open_source): Move comment ...
7957 * source.h (find_and_open_source): ... to this new declaration.
7959 2012-03-01 Pedro Alves <palves@redhat.com>
7961 * inline-frame.c: Include inline-frame.h.
7963 2012-03-01 Pedro Alves <palves@redhat.com>
7965 * tui/tui-data.c (set_gen_win_origin): Delete.
7966 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
7967 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
7969 2012-03-01 Pedro Alves <palves@redhat.com>
7971 * remote.c (encode_actions): Delete declaration.
7972 * tracepoint.c (encode_actions): Make extern.
7973 * tracepoint.h (encode_actions): Declare.
7975 2012-03-01 Pedro Alves <palves@redhat.com>
7977 * python/py-breakpoint.c: Include python.h.
7978 * python/py-continueevent.c (create_continue_event_object): Make
7980 * python/py-lazy-string.c (stpy_get_type): Make static.
7981 * python/py-newobjfileevent.c (create_new_objfile_event_object):
7983 * python/py-utils.c (unicode_to_target_python_string): Make
7985 * python/py-value.c: Include python.h.
7987 2012-03-01 Pedro Alves <palves@redhat.com>
7989 * inferior.c (delete_threads_of_inferior): Delete.
7991 2012-03-01 Pedro Alves <palves@redhat.com>
7993 Import fallback definitions from glibc.
7995 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
7996 ps_prochandle): Forward declare.
7997 (ps_err_e): Use glibc's comments.
7998 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7999 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8000 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8001 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8002 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8003 (struct ps_prochandle): Adjust comment.
8005 2012-03-01 Pedro Alves <palves@redhat.com>
8007 * ada-lang.c (ada_modulus_from_name): Delete.
8008 * ada-lex.l (lexer_init): Make static.
8010 2012-03-01 Pedro Alves <palves@redhat.com>
8014 * frame.c (read_frame_register_unsigned): New.
8015 * frame.h (read_frame_register_unsigned): Declare.
8016 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8018 (print_i387_control_word): New parameter `control_p'. Handle it.
8019 (i387_print_float_info): Handle unavailable float registers.
8021 2012-03-01 Keith Seitz <keiths@redhat.com>
8023 * linespec.c (decode_line_2): Sort the list of methods
8024 alphabetically before presenting the user with a selection
8027 2012-03-01 Doug Evans <dje@google.com>
8029 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8031 (dwarf2_read_abbrevs): Remove corresponding initialization.
8033 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8035 * NEWS: Mention new python command class gdb.COMMAND_USER.
8036 * cli/cli-cmds.c (show_user): Print error when used on a python
8038 (init_cli_cmds): Update documentation strings for "show user" and
8039 "set/show max-user-call-depth" to clarify that it does not apply to
8041 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8043 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8045 * top.c (execute_command): Only execute a user-defined command as a
8046 legacy macro if c->user_commands is set.
8048 2012-03-01 Tom Tromey <tromey@redhat.com>
8050 * valprint.h (struct generic_val_print_decorations): New.
8051 (generic_val_print): Declare.
8052 * valprint.c (generic_val_print): New function.
8053 * p-valprint.c (p_decorations): New global.
8054 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8055 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8056 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8057 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8058 * m2-valprint.c (m2_decorations): New global.
8059 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8060 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8061 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8062 TYPE_CODE_ERROR>: Call generic_val_print.
8063 * f-valprint.c (f_decorations): New global.
8064 (f_val_print): Use print_function_pointer_address.
8065 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8066 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8067 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8069 * c-valprint.c (c_decorations): New global.
8070 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8071 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8072 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8073 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8074 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8075 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8078 2012-03-01 Tom Tromey <tromey@redhat.com>
8080 * valprint.c (val_print): Update.
8081 * p-valprint (pascal_val_print): Return void.
8082 * p-lang.h (pascal_val_print): Return void.
8083 * m2-valprint.c (m2_val_print): Return void.
8084 * m2-lang.h (m2_val_print): Return void.
8085 * language.h (struct language_defn) <la_val_print>: Return void.
8086 * language.c (unk_lang_val_print): Return void.
8087 * jv-valprint.c (java_val_print): Return void.
8088 * jv-lang.h (java_val_print): Return void.
8089 * f-valprint.c (f_val_print): Return void.
8090 * f-lang.h (f_val_print): Return void.
8091 * d-valprint.c (d_val_print): Return void.
8092 (dynamic_array_type): Update.
8093 * d-lang.h (d_val_print): Return void.
8094 * c-valprint.c (c_val_print): Return void.
8095 * c-lang.h (c_val_print): Return void.
8096 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8098 * ada-lang.h (ada_val_print): Return void.
8100 2012-03-01 Tom Tromey <tromey@redhat.com>
8102 * value.h (val_print): Return void.
8103 * valprint.c (val_print): Return void.
8105 2012-03-01 Tom Tromey <tromey@redhat.com>
8107 * value.h (common_val_print): Return void.
8108 * valprint.c (common_val_print): Return void.
8110 2012-03-01 Tom Tromey <tromey@redhat.com>
8112 * value.h (value_print): Return void.
8113 * valprint.c (value_print): Return void.
8114 * p-valprint.c (pascal_value_print): Return void.
8115 * p-lang.h (pascal_value_print): Return void.
8116 * language.h (struct language_defn) <la_value_print>: Return
8118 * language.c (unk_lang_value_print): Return void.
8119 * jv-valprint.c (java_value_print): Return void.
8120 * jv-lang.h (java_value_print): Return void.
8121 * f-valprint.c (c_value_print): Don't declare.
8123 * c-valprint.c (c_value_print): Return void.
8124 * c-lang.h (c_value_print): Return void.
8125 * ada-valprint.c (ada_value_print): Return void.
8126 * ada-lang.h (ada_value_print): Return void.
8128 2012-03-01 Tom Tromey <tromey@redhat.com>
8130 * value.c (value_primitive_field): Handle virtual base classes.
8132 2012-03-01 Tom Tromey <tromey@redhat.com>
8134 * gdbtypes.h (struct vbase): Remove.
8136 2012-03-01 Tom Tromey <tromey@redhat.com>
8138 * c-valprint.c (print_function_pointer_address): Move...
8139 * valprint.c: ... here. Make non-static.
8140 * m2-valprint.c (print_function_pointer_address): Remove.
8141 * valprint.h (print_function_pointer_address): Declare.
8143 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8145 * NEWS: Document the fact that one can provide a condition when
8146 creating an Ada exception catchpoint.
8148 2012-03-01 Tom Tromey <tromey@redhat.com>
8150 * valprint.c (val_print_type_code_flags): Fix placement of
8153 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8155 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8156 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8157 environment variable before calling update-copyright.
8159 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8161 * gnulib/extra/update-copyright: Update to the latest from
8162 gnulib's git repository.
8163 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8164 variable to 2 instead of 1.
8166 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8168 * varobj.c (c_value_of_variable): Remove dead code.
8170 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8172 * ada-lex.p (processId): Do not modify already encoded IDs.
8173 Update function documentation.
8175 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8177 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8178 "name" with "struct symbol *name_sym".
8179 * ada-exp.y (write_var_or_type): Update call to
8180 ada_find_renaming_symbol.
8181 "name" with "struct symbol *name_sym". Adjust Implementation
8182 accordingly. Adjust the function documentation.
8184 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8186 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8187 * ada-lang.c (ada_find_any_type): Add advance declaration.
8188 Make static. Replace ada_find_any_symbol by
8189 ada_find_any_type_symbol.
8190 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8191 Improve function description. Make static.
8192 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8193 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8195 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8197 * ada-lang.c (struct tag_args): Delete.
8198 (ada_get_tsd_type): Function body moved up in source file.
8199 (ada_tag_name_1, ada_tag_name_2): Delete.
8200 (ada_get_tsd_from_tag): New function.
8201 (ada_tag_name_from_tsd): New function.
8202 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8203 to determine the tag name.
8205 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8207 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8209 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8212 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8214 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8216 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8218 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8221 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8223 * ada-lang.c (constrained_packed_array_type): If there is a
8224 parallel XA type, use it to determine the array index type.
8226 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8228 * ada-valprint.c (ada_val_print_1): If our value is a reference
8229 to an array descriptor, dereference it before converting it
8232 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8234 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8235 creating fixed value.
8236 (ada_value_ind, ada_coerce_ref, assign_component)
8237 (ada_evaluate_subexp): Remove call to unwrap_value before
8238 call to ada_to_fixed_value.
8240 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8242 * ada-lang.c (to_fixed_array_type): Set result's type name.
8244 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8246 * ada-lang.c (catch_ada_exception_command_split): Add new
8247 argument cond_string. Add support for condition at end of
8248 "catch exception" commands.
8249 (ada_decode_exception_location): Add new argument cond_string.
8250 Update call to catch_ada_exception_command_split.
8251 (create_ada_exception_catchpoint): Add new argument cond_string.
8252 Set the breakpoint condition if needed.
8253 (catch_ada_exception_command): Update call to
8254 ada_decode_exception_location.
8255 (ada_decode_assert_location): Add function documentation.
8256 Add support for condition at end of "catch assert" command.
8257 (catch_assert_command): Update calls to ada_decode_assert_location
8258 and create_ada_exception_catchpoint.
8260 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8262 Fix disp-step-syscall.exp: fork: single step over fork.
8263 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8264 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8265 comment, change parameters gdbarch and ptid to regcache. Remove
8266 parameter regcache, initialize gdbarch from regcache here.
8267 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8269 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8271 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8272 'syscall'. Make the 'int' check more strict.
8274 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8276 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8277 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8278 (i386_linux_intx80_sysenter_syscall_record): ... here.
8279 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8280 Use the renamed function name.
8282 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8284 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8285 * breakpoint.c (until_break_command): Likewise.
8286 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8287 * infcall.c (call_function_by_hand): Likewise.
8288 * infcmd.c (finish_forward): Likewise.
8289 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8291 2012-02-28 Tristan Gingold <gingold@adacore.com>
8293 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8294 avoid variable assignments inside condition.
8296 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8298 Fix static analysis issue found by cppcheck.
8299 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8300 uninitialized BUF for size 2.
8302 2012-02-27 Chris Dearman <chris@mips.com>
8303 Nathan Froyd <froydnj@codesourcery.com>
8304 Maciej W. Rozycki <macro@codesourcery.com>
8306 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8307 (mips16_instruction_has_delay_slot): Likewise.
8308 (mips_segment_boundary): Likewise.
8309 (mips_adjust_breakpoint_address): Likewise.
8310 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8312 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8313 Maciej W. Rozycki <macro@codesourcery.com>
8315 * infrun.c (handle_inferior_event): Don't proceed through
8316 shared library trampolines if stepping at the machine
8319 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8321 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8324 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8326 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8327 (sh_stub_unwind_sniffer): New functions.
8328 (sh_stub_unwind): New variable.
8329 (sh_gdbarch_init): Wire everything.
8331 2012-02-27 Pedro Alves <palves@redhat.com>
8333 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8334 (linux_nat_post_attach_wait): Adjust to use
8335 linux_proc_pid_is_stopped.
8336 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8337 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8338 based on pid_is_stopped from both linux-nat.c and
8339 gdbserver/linux-low.c, and renamed.
8341 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8343 * remote.c (remote_watchpoint_addr_within_range): New function.
8344 (init_remote_ops): Use it.
8346 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8348 * target.h (target_watchpoint_addr_within_range): Document macro.
8350 2012-02-24 Pedro Alves <palves@redhat.com>
8352 * stack.c (set_last_displayed_sal): Issue internal_error instead
8353 of warning, and issue it after clearing the last displayed sal.
8355 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8356 Pedro Alves <palves@redhat.com>
8358 * breakpoint.c (until_break_command): Install breakpoints after
8359 all frame manipulations.
8361 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8363 * remote.c (remote_supports_cond_breakpoints): New forward
8365 (remote_add_target_side_condition): New function.
8366 (remote_insert_breakpoint): Add target-side breakpoint
8367 conditional if supported.
8368 (remote_insert_hw_breakpoint): Likewise.
8369 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8372 * target.c (update_current_target): Inherit
8373 to_supports_evaluation_of_breakpoint_conditions.
8374 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8376 * target.h (struct target_ops)
8377 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8378 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8380 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8381 (condition_evaluation_both, condition_evaluation_auto,
8382 condition_evaluation_host, condition_evaluation_target,
8383 condition_evaluation_enums, condition_evaluation_mode_1,
8384 condition_evaluation_mode): New static globals.
8385 (translate_condition_evaluation_mode): New function.
8386 (breakpoint_condition_evaluation_mode): New function.
8387 (gdb_evaluates_breakpoint_condition_p): New function.
8388 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8389 (mark_breakpoint_modified): New function.
8390 (mark_breakpoint_location_modified): New function.
8391 (set_condition_evaluation_mode): New function.
8392 (show_condition_evaluation_mode): New function.
8393 (bp_location_compare_addrs): New function.
8394 (get_first_location_gte_addr): New helper function.
8395 (set_breakpoint_condition): Free condition bytecode if locations
8396 has become unconditional. Call mark_breakpoint_modified (...).
8397 (condition_command): Call update_global_location_list (1) for
8399 (breakpoint_xfer_memory): Use is_breakpoint (...).
8400 (is_breakpoint): New function.
8401 (parse_cond_to_aexpr): New function.
8402 (build_target_condition_list): New function.
8403 (insert_bp_location): Handle target-side conditional
8404 breakpoints and call build_target_condition_list (...).
8405 (update_inserted_breakpoint_locations): New function.
8406 (insert_breakpoint_locations): Handle target-side conditional
8408 (bpstat_check_breakpoint_conditions): Add comment.
8409 (bp_condition_evaluator): New function.
8410 (bp_location_condition_evaluator): New function.
8411 (print_breakpoint_location): Print information on where the condition
8413 (print_one_breakpoint_location): Likewise.
8414 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8415 breakpoint location.
8416 (force_breakpoint_reinsertion): New functions.
8417 (update_global_location_list): Handle target-side breakpoint
8419 Reinsert locations that are already inserted if conditions have
8421 (bp_location_dtor): Free agent expression bytecode.
8422 (disable_breakpoint): Call mark_breakpoint_modified (...).
8423 Call update_global_location_list (...) with parameter 1 for breakpoints.
8424 (disable_command): Call mark_breakpoint_location_modified (...).
8425 Call update_global_location_list (...) with parameter 1 for breakpoints.
8426 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8427 (enable_command): mark_breakpoint_location_modified (...).
8428 (_initialize_breakpoint): Update documentation and add
8429 condition-evaluation breakpoint subcommand.
8431 * breakpoint.h: Include ax.h.
8432 (condition_list): New data structure.
8433 (condition_status): New enum.
8434 (bp_target_info) <cond_list>: New field.
8435 (bp_location) <condition_changed, cond_bytecode>: New fields.
8436 (is_breakpoint): New prototype.
8438 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8440 * remote.c (remote_state) <cond_breakpoints>: New field.
8441 (PACKET_ConditionalBreakpoints): New enum.
8442 (remote_cond_breakpoint_feature): New function.
8443 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8444 (remote_supports_cond_breakpoints): New function.
8445 (_initialize_remote): Add new packet configuration for
8446 target-side conditional breakpoints.
8448 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8450 * NEWS: Mention target-side conditional breakpoint support,
8451 new condition-evaluation breakpoint subcommand and remote
8454 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8456 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8459 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8461 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8462 (after_prologue): Remove.
8464 2012-02-23 Tom Tromey <tromey@redhat.com>
8466 * jv-valprint.c (java_val_print): Remove dead code.
8468 2012-02-23 Tristan Gingold <gingold@adacore.com>
8470 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8471 known_tasks_element and known_tasks_length fields.
8472 (read_known_tasks_array): Change argument type. Use pointer type
8473 and number of elements from DATA. Adjust.
8474 (read_known_tasks_list): Likewise.
8475 (get_known_tasks_addr): Remove.
8476 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8477 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8478 type and array length. Merge former get_known_tasks_addr code.
8480 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8483 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8484 it after set_momentary_breakpoint.
8486 2012-02-22 Sterling Augustine <saugustine@google.com>
8489 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8491 2012-02-22 Gary Benson <gbenson@redhat.com>
8493 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8494 (find_slot_in_mapped_hash): Likewise.
8496 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8499 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8500 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8501 * configure: Regenerate.
8503 2012-02-21 Tristan Gingold <gingold@adacore.com>
8504 Pedro Alves <palves@redhat.com>
8506 * ia64-tdep.c: Do not include libunwind-ia64.h.
8507 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8508 Include libunwind-ia64.h instead of libunwind.h.
8509 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8510 for libunwind.h existence.
8511 * configure, config.in: Regenerate.
8513 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8515 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8516 instead of value_rtti_target_type.
8517 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8518 instead of value_rtti_target_type.
8519 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8520 value_rtti_target_type.
8521 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8522 (value_rtti_target_type): Rename to ...
8523 (value_rtti_indirect_type): ... here and make it indirect. Update
8525 * value.c (readjust_indirect_value_type): New function.
8526 (coerce_ref): Support for enclosing type setting for references
8527 with readjust_indirect_value_type.
8528 * value.h (readjust_value_type): New declaration.
8529 (value_rtti_target_type): Rename to ...
8530 (value_rtti_indirect_type): ... here.
8532 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8534 * MAINTAINERS (Write After Approval): Add myself to the list.
8536 2012-02-20 Doug Evans <dje@google.com>
8538 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8539 Rename objfile_p_char parameter to objfilep.
8540 (build_objfile_section_table): Result is now void. All callers
8542 * objfiles.h (struct objfile): Tweak comments, whitespace.
8543 (build_objfile_section_table): Update.
8545 * elfread.c (elf_symfile_segments): Fix warning text.
8547 2012-02-20 Tom Tromey <tromey@redhat.com>
8550 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8551 particular set of file names once.
8552 (dw2_map_symbol_filenames): Likewise.
8554 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8557 * main.c (write_files): Remove the declaration.
8558 (external_editor_command): Move the declaration ...
8559 [GDBTK] (external_editor_command): ... here. Fix the comment.
8561 2012-02-20 Tom Tromey <tromey@redhat.com>
8563 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8566 2012-02-20 Tristan Gingold <gingold@adacore.com>
8568 * darwin-nat.h (enum darwin_msg_state): Add comments.
8570 2012-02-20 Tristan Gingold <gingold@adacore.com>
8572 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8575 2012-20-18 Joel Brobecker <brobecker@adacore.com>
8577 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8578 between function description and implementation.
8580 2012-02-17 Tom Tromey <tromey@redhat.com>
8583 * python/py-event.c (event_object_getset): New global.
8584 (event_object_type): Reference it.
8585 * python/py-type.c (field_object_getset): New global.
8586 (field_object_type): Reference it.
8587 * python/python-internal.h (gdb_py_generic_dict): Declare.
8588 * python/py-utils.c (gdb_py_generic_dict): New function.
8590 2012-02-17 Tristan Gingold <gingold@adacore.com>
8592 * solib-darwin.c (darwin_current_sos): Check magic and filetype
8594 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8596 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8597 TYPE_CALLING_CONVENTION annotation.
8599 2012-02-16 Kevin Buettner <kevinb@redhat.com>
8601 * MAINTAINERS: Add rx to target ISA section.
8602 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8603 (ALLDEPFILES): Add rx-tdep.c.
8605 2012-02-16 Tom Tromey <tromey@redhat.com>
8607 * symfile.c (symbol_file_add_main_1): Use inferior's
8609 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8610 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8612 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8614 (follow_exec): Use inferior's symfile_flags.
8615 * inferior.h (struct inferior) <symfile_flags>: New field.
8617 2012-02-16 Mike Frysinger <vapier@gentoo.org>
8620 * remote-sim.c (gdbsim_create_inferior): Call error() when
8621 sim_create_inferior() fails.
8623 2012-02-16 Josh Matthews <josh@joshmatthews.net>
8625 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8627 2012-02-16 Tom Tromey <tromey@redhat.com>
8630 * thread.c (struct current_thread_cleanup) <was_removable>: New
8632 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8633 (make_cleanup_restore_current_thread): Initialize new field.
8635 2012-02-15 Kevin Buettner <kevinb@redhat.com>
8637 * MAINTAINERS: Add rl78 to target ISA section.
8638 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8639 (ALLDEPFILES): Add rl78-tdep.c.
8640 * NEWS: Mention rl78 as a new target.
8642 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8644 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8646 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8648 2012-02-15 Tom Tromey <tromey@redhat.com>
8651 * infcmd.c (registers_info): Print just the current register's
8654 2012-02-15 Tom Tromey <tromey@redhat.com>
8656 * python/py-symbol.c (sympy_value): Use _().
8658 2012-02-15 Pedro Alves <palves@redhat.com>
8660 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8661 output to be like native targets'.
8662 (remote_pid_to_str): Special case the null ptid.
8664 2012-02-14 Stan Shebs <stan@codesourcery.com>
8666 * NEWS: Mention enable count command.
8667 * breakpoint.h (struct breakpoint): New field enable_count.
8668 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8669 (enable_breakpoint): Add arg to call.
8670 (struct disp_data): New struct.
8671 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8672 (do_map_enable_once_breakpoint): Create a struct and pass it.
8673 (do_map_enable_delete_breakpoint): Ditto.
8674 (do_map_enable_count_breakpoint): New function.
8675 (enable_count_command): New function.
8676 (bpstat_stop_status): Decrement enable_count.
8677 (print_one_breakpoint_location): Report enable count.
8678 (_initialize_breakpoint): Add enable count command.
8680 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8682 * rl78-tdep.c (reggroups.h): Include.
8683 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8684 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8685 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8686 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8687 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8688 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8689 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8690 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8691 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8692 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8693 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8694 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8695 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8696 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8697 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8698 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8699 beginning of register list.
8700 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8701 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8702 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8703 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8704 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8705 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8706 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8707 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8708 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8709 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8710 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8711 the pseudo registers. Rearrange other pseudo registers too so
8712 that the bank registers appear at the end.
8713 (rl78_register_type): Account for the fact that the byte sized
8714 bank registers are now pseudo-registers.
8715 (rl78_register_name): Rearrange the register name array. Make
8716 initial set of raw banked registers inaccessible.
8717 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8718 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8719 case for copying bytes back and forth between raw and pseudo
8720 versions of the banked registers. Update other cases to reflect
8722 (rl78_return_value): Update to account for changed names of
8724 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8725 rl78_register_sim_regno().
8727 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8729 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
8730 the name parameter being passed to find_pc_partial_function().
8732 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8734 * MAINTAINERS: Step down from being ia64 target maintainer.
8736 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8738 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
8739 compilation warning.
8741 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8743 Fix crash on loaded shlibs without loaded exec_bfd.
8744 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
8745 (set_section_command): Replace exec_bfd by p->bfd.
8747 2012-02-10 Tom Tromey <tromey@redhat.com>
8749 * linespec.c (decode_line_internal): Skip symtabs_from_filename
8750 when we have a C++ qualified name.
8752 2012-02-10 Pedro Alves <palves@redhat.com>
8754 * inferior.c (inferior_pid_to_str): New.
8755 (print_inferior, inferior_command): Use it.
8757 2012-02-10 Pedro Alves <palves@redhat.com>
8759 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
8761 * configure: Regenerate.
8763 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8765 * linespec.c (decode_line_internal): Fix comment correctness.
8767 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
8770 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
8771 * amd64bsd-nat.c: Add support for debug registers (adapted from
8773 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
8774 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
8775 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
8776 (amd64bsd_dr_get_control): New functions.
8777 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
8778 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
8779 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
8780 watchpoints initialization.
8781 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
8783 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8785 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
8787 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
8789 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8791 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
8793 2012-02-08 Joel Brobecker <brobecker@adacore.com>
8795 * language.h (symbol_name_cmp_ftype): Renames
8796 symbol_name_match_p_ftype.
8797 (struct language_defn)[la_get_symbol_name_cmp]: Renames
8798 la_get_symbol_name_match_p.
8799 * ada-lang.c (ada_get_symbol_name_cmp): Renames
8800 ada_get_symbol_name_match_p. Update comment.
8801 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
8802 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
8803 Renames symbol_name_match_p. Update field type.
8804 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
8805 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8806 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
8807 "la_get_symbol_name_cmp" in comments.
8808 * language.c: Likewise.
8810 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8812 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
8814 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
8815 (amd64_sol2_gregset32_reg_offs): Likewise.
8817 2012-02-08 Joel Brobecker <brobecker@adacore.com>
8819 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
8820 of the returned BFD is allocated by GDB.
8822 2012-02-07 Tom Tromey <tromey@redhat.com>
8825 * python/python-internal.h (frame_object_type): Declare.
8826 * python/py-symbol.c (sympy_needs_frame): New function.
8827 (sympy_value): New function.
8828 (symbol_object_getset): Add "needs_frame".
8829 (symbol_object_methods): Add "value".
8830 * python/py-frame.c (frame_object_type): No longer static.
8832 2012-02-07 Tom Tromey <tromey@redhat.com>
8835 * python/py-symbol.c (sympy_line): New function.
8836 (symbol_object_getset): Add "line".
8838 2012-02-07 Tom Tromey <tromey@redhat.com>
8840 * charset.c (find_charset_names): Check 'in' against NULL.
8842 2012-02-06 Doug Evans <dje@google.com>
8844 * gdbtypes.h (struct main_type): Change type of name,tag_name,
8845 and fields.name members from char * to const char *. All uses updated.
8846 (struct cplus_struct_type): Change type of fn_fieldlists.name member
8847 from char * to const char *. All uses updated.
8848 (type_name_no_tag): Update.
8849 (lookup_unsigned_typename, lookup_signed_typename): Update.
8850 * gdbtypes.c (type_name_no_tag): Change result type
8851 from char * to const char *. All callers updated.
8852 (lookup_unsigned_typename, lookup_signed_typename): Change type of
8853 name parameter from char * to const char *.
8854 * symtab.h (struct cplus_specific): Change type of demangled_name
8855 member from char * to const char *. All uses updated.
8856 (struct general_symbol_info): Change type of name and
8857 mangled_lang.demangled_name members from char * to const char *.
8859 (symbol_get_demangled_name, symbol_natural_name): Update.
8860 (symbol_demangled_name, symbol_search_name): Update.
8861 * symtab.c (symbol_get_demangled_name): Change result type
8862 from char * to const char *. All callers updated.
8863 (symbol_natural_name, symbol_demangled_name): Ditto.
8864 (symbol_search_name): Ditto.
8865 (completion_list_add_name): Change type of symname,sym_text,
8866 text,word parameters from char * to const char *.
8867 (completion_list_objc_symbol): Change type of sym_text,
8868 text,word parameters from char * to const char *.
8869 * ada-lang.c (find_struct_field): Change type of name parameter
8870 from char * to const char *.
8871 (encoded_ordered_before): Similarly for N0,N1 parameters.
8872 (old_renaming_is_invisible): Similarly for function_name parameter.
8873 (ada_type_name): Change result type from char * to const char *.
8874 All callers updated.
8875 * ada-lang.h (ada_type_name): Update.
8876 * buildsym.c (hashname): Change type of name parameter
8877 from char * to const char *.
8878 * buildsym.h (hashname): Update.
8879 * dbxread.c (end_psymtab): Change type of include_list parameter
8880 from char ** to const char **.
8881 * dwarf2read.c (determine_prefix): Change result type
8882 from char * to const char *. All callers updated.
8883 * f-lang.c (find_common_for_function): Change type of name, funcname
8884 parameters from char * to const char *.
8885 * f-lang.c (find_common_for_function): Update.
8886 * f-valprint.c (list_all_visible_commons): Change type of funcname
8887 parameters from char * to const char *.
8888 * gdbarch.sh (static_transform_name): Change type of name parameter
8889 and result from char * to const char *.
8890 * gdbarch.c: Regenerate.
8891 * gdbarch.h: Regenerate.
8892 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
8893 of name parameter from char * to const char *.
8894 * jv-lang.c (java_primitive_type_from_name): Ditto.
8895 (java_demangled_signature_length): Similarly for signature parameter.
8896 (java_demangled_signature_copy): Ditto.
8897 (java_demangle_type_signature): Ditto.
8898 * jv-lang.h (java_primitive_type_from_name): Update.
8899 (java_demangle_type_signature): Update.
8900 * objc-lang.c (specialcmp): Change type of a,b parameters
8901 from char * to const char *.
8902 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
8903 from char * to const char *. All callers updated.
8904 * p-lang.h (is_pascal_string_type): Update.
8905 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
8906 of name parameter from char * to const char *.
8907 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
8908 * utils.c (fprintf_symbol_filtered): Ditto.
8909 * defs.h (fprintf_symbol_filtered): Update.
8910 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
8911 * stabsread.h (end_psymtab): Update.
8912 * stack.c (find_frame_funname): Change type of funname parameter
8913 from char ** to const char **.
8914 * stack.h (find_frame_funname): Update.
8915 * typeprint.c (type_print): Change type of varstring parameter
8916 from char * to const char *.
8917 * value.h (type_print): Update.
8918 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
8919 from char * to const char *. All callers updated.
8920 (xcoff_end_psymtab): Change type of include_list parameter
8921 from char ** to const char **. All callers updated.
8922 (swap_sym): Similarly for name parameter. All callers updated.
8923 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
8925 (process_coff_symbol): Use xstrdup.
8926 * stabsread.c (stabs_method_name_from_physname): Renamed from
8927 update_method_name_from_physname. Change result type from void
8928 to char *. All callers updated.
8929 (read_member_functions): In has_destructor case, store name in objfile
8930 obstack instead of malloc space. In !has_stub case, fix mem leak.
8932 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
8934 * configure: Rebuild.
8935 * configure.ac: Put -L../bfd and -L../libiberty at the front of
8938 2012-02-03 Kevin Buettner <kevinb@redhat.com>
8940 * configure.tgt (rl78-*-elf): New target.
8941 * rl78-tdep.c: New file.
8943 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8945 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
8946 and continue the loop. Add QUIT statement.
8948 2012-02-03 Tom Tromey <tromey@redhat.com>
8951 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
8952 bfd_lookup_symbol_from_symtab.
8953 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
8954 gdb_bfd_lookup_symbol_from_symtab.
8956 2012-02-03 Joel Brobecker <brobecker@adacore.com>
8958 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
8959 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
8960 symbol. Add assertion that sym2 is never NULL.
8962 2012-02-02 Doug Evans <dje@google.com>
8964 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
8965 "name" parameter to const char ** from char **. All callers updated.
8966 (find_pc_partial_function): Ditto.
8967 (cache_pc_function_name): Change type to const char * from char *.
8968 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
8969 (find_pc_partial_function): Update.
8970 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
8971 type of "name" parameter to const char * from char *.
8973 * arch-utils.c (generic_in_solib_return_trampoline): Change
8974 type of "name" parameter to const char * from char *.
8975 * arch-utils.h (generic_in_solib_return_trampoline): Update.
8976 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
8977 type of "name" parameter to const char * from char *.
8978 * gdbarch.sh (in_solib_return_trampoline): Ditto.
8979 * gdbarch.c: Regenerate.
8980 * gdbarch.h: Regenerate.
8981 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
8982 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
8983 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
8984 type of "name" parameter to const char * from char *.
8985 * skip.c (skip_function_pc): Ditto.
8986 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
8987 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
8988 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
8989 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
8990 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
8991 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
8992 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
8993 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
8994 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
8996 2012-02-02 Pedro Alves <palves@redhat.com>
8998 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
8999 the current inferior has no execution. Make sure the current
9000 remote process matches gdb's current inferior.
9002 2012-02-02 Tom Tromey <tromey@redhat.com>
9005 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9008 2012-02-02 Tom Tromey <tromey@redhat.com>
9011 * symtab.c (lookup_language_this): Set block_found.
9013 2012-02-01 Tom Tromey <tromey@redhat.com>
9016 * jit.c (struct jit_inferior_data): Rewrite.
9017 (struct jit_objfile_data): New.
9018 (get_jit_objfile_data): New function.
9019 (add_objfile_entry): Update.
9020 (jit_read_descriptor): Return int. Replace descriptor_addr
9021 argument with inf_data. Update. Don't call error.
9022 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9024 (jit_inferior_init): Don't look up descriptor. Don't call error.
9025 (jit_reset_inferior_data_and_breakpoints)
9026 (jit_inferior_created_observer): Remove.
9027 (jit_inferior_exit_hook): Update.
9028 (jit_executable_changed_observer): Remove.
9029 (jit_event_handler): Update.
9030 (free_objfile_data): Reset inferior data if needed.
9031 (_initialize_jit): Update.
9033 2012-02-01 Tom Tromey <tromey@redhat.com>
9035 * jit.c (bfd_open_from_target_memory): Move higher in file.
9037 2012-02-01 Tristan Gingold <gingold@adacore.com>
9039 * libunwind-frame.c (libunwind_load): Display message if dlopen
9042 2012-02-01 Gary Benson <gbenson@redhat.com>
9044 * symtab.h (symbol_found_callback_ftype): New typedef.
9045 (iterate_over_symbols): Use the above.
9046 * symtab.c (iterate_over_symbols): Likewise.
9047 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9048 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9049 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9050 (iterate_name_matcher): Document return values.
9051 (collect_one_symbol): Likewise.
9052 (collect_function_symbols): Likewise.
9053 (collect_symbols): Likewise.
9055 2012-02-01 Tom Tromey <tromey@redhat.com>
9057 * ada-lang.c (resolve_subexp): Update.
9058 (ada_lookup_symbol_list): Add 'full_search' argument.
9059 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9060 ada_lookup_symbol_list.
9061 (ada_lookup_encoded_symbol): Update.
9062 (get_var_value): Update.
9063 * ada-exp.y (block_lookup): Update.
9064 (write_var_or_type): Update.
9065 (write_name_assoc): Update.
9066 * ada-lang.h (ada_lookup_symbol_list): Update.
9068 2012-01-31 Tom Tromey <tromey@redhat.com>
9070 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9073 2012-01-31 Doug Evans <dje@google.com>
9075 * symtab.h: Remove outdated comment.
9076 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9078 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9080 Fix build error in Darwin port.
9081 * i386-darwin-nat.c: Include i386-nat.h.
9083 2012-01-30 Tom Tromey <tromey@redhat.com>
9085 PR breakpoints/13568:
9086 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9087 argument. Check for recursive includes.
9088 (dwarf_decode_macros): Create an include hash.
9090 2012-01-30 Michael Eager <eager@eagercon.com>
9092 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9093 * ppc-linux-tdep.c: Include glibc-tdep.h.
9094 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9095 (powerpc_linux_in_plt_stub): New function.
9096 (powerpc_linux_in_dynsym_resolve_code): New function.
9097 (ppc_skip_trampoline_code): New function.
9098 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9099 Use glibc_skip_solib_resolver.
9101 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9103 Code cleanup: Make 1440 bytes of data segment read-only.
9104 * arch-utils.c (endian_enum): Make it const char *const [].
9105 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9107 * breakpoint.c (always_inserted_enums): Likewise.
9108 * cli/cli-cmds.c (script_ext_enums): Likewise.
9109 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9110 enumlist parameter const char *const *.
9111 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9112 const char *const *.
9113 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9114 parameter const char *const *.
9115 * cris-tdep.c (cris_modes): Make it const char *const [].
9116 * filesystem.c (target_file_system_kinds): Likewise.
9117 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9118 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9119 (can_use_displaced_stepping_enum, scheduler_enums)
9120 (exec_direction_names): Likewise.
9121 * language.c (_initialize_language): Make the type_or_range_names and
9122 case_sensitive_names variables const char *const [].
9123 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9124 * python/python.c (python_excp_enums): Likewise.
9125 * remote.c (interrupt_sequence_modes): Likewise.
9126 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9127 * serial.c (logbase_enums): Likewise.
9128 * sh-tdep.c (sh_cc_enum): Likewise.
9129 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9131 * symtab.c (multiple_symbols_modes): Likewise.
9132 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9134 * utils.c (internal_problem_modes): Likewise.
9136 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9138 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9139 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9142 2012-01-27 Doug Evans <dje@google.com>
9144 * configure.ac (with_python): Fix absolute path handling for win32.
9145 * configure: Regenerate.
9147 2012-01-26 Doug Evans <dje@google.com>
9149 * symtab.c: Whitespace cleanup, no code changes.
9151 * symtab.c (lookup_symbol_in_language): Improve comment.
9152 (lookup_symbol_aux): Fix comment.
9154 * psymtab.c (add_psymbol_to_list): Result is now "void".
9155 * psympriv.h (add_psymbol_to_list): Update.
9157 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9159 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9161 Do not open script filenames twice.
9162 * cli/cli-cmds.c (source_script_from_stream): Pass to
9163 source_python_script also STREAM.
9164 * python/py-auto-load.c (source_section_scripts): Pass to
9165 source_python_script_for_objfile also STREAM.
9166 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9168 * python/python-internal.h (source_python_script_for_objfile): New
9169 parameter file, rename parameter file to filename.
9170 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9171 instead if !_WIN32. Update the function comment.
9172 (source_python_script, source_python_script_for_objfile)
9173 (source_python_script): New parameter file, rename parameter file to
9174 filename. Pass FILENAME to python_run_simple_file.
9175 * python/python.h (source_python_script): New parameter file, rename
9176 parameter file to filename.
9178 2012-01-26 Pedro Alves <palves@redhat.com>
9180 * corelow.c (core_has_fake_pid): Delete.
9181 (core_close): Delete references to `core_has_fake_pid'.
9182 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9183 (core_open): Delete references to `core_has_fake_pid'.
9184 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9187 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9189 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9190 Remove language parameter from name_matcher. Adjust the comment.
9191 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9192 Remove language parameter.
9193 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9194 * linespec.c (iterate_name_matcher): Likewise.
9195 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9196 name_matcher. Adjust call accordingly.
9197 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9198 (maintenance_check_symtabs): Adjust type of parameter "fun".
9199 * psymtab.h (maintenance_check_symtabs): Likewise.
9201 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9203 * language.h (symbol_name_match_p_ftype): New typedef.
9204 (struct language_defn): Replace field la_symbol_name_compare
9205 by la_get_symbol_name_match_p.
9206 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9207 (ada_language_defn): Use it.
9208 * linespec.c (struct symbol_matcher_data): New type.
9209 (iterate_name_matcher): Rewrite.
9210 (iterate_over_all_matching_symtabs): Pass a pointer to
9211 a symbol_matcher_data struct to expand_symtabs_matching
9212 instead of just the lookup name.
9213 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9214 opencl-lang.c, p-lang.c, language.c: Delete field
9215 la_symbol_name_compare, and replace by NULL for new field
9216 la_get_symbol_name_match_p.
9217 * symfile.h (struct quick_symbol_functions): Update comment.
9219 2012-01-25 Tom Tromey <tromey@redhat.com>
9221 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9224 2012-01-24 Tom Tromey <tromey@redhat.com>
9227 * solib.c (update_solib_list): Update the program space's
9228 added_solibs and deleted_solibs fields.
9229 * progspace.h (struct program_space) <added_solibs,
9230 deleted_solibs>: New fields.
9231 (clear_program_space_solib_cache): Declare.
9232 * progspace.c (release_program_space): Call
9233 clear_program_space_solib_cache.
9234 (clear_program_space_solib_cache): New function.
9235 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9236 bpstat_stop_status. Use handle_solib_event.
9237 * breakpoint.c: Include gdb_regex.h.
9238 (print_solib_event): New function.
9239 (bpstat_print): Use print_solib_event.
9240 (bpstat_stop_status): Add special case for bp_shlib_event.
9241 (handle_solib_event): New function.
9242 (bpstat_what): Use handle_solib_event.
9243 (struct solib_catchpoint): New.
9244 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9245 (breakpoint_hit_catch_solib, check_status_catch_solib)
9246 (print_it_catch_solib, print_one_catch_solib)
9247 (print_mention_catch_solib, print_recreate_catch_solib): New
9249 (catch_solib_breakpoint_ops): New global.
9250 (catch_load_or_unload, catch_load_command_1)
9251 (catch_unload_command_1): New functions.
9252 (internal_bkpt_check_status): Add special case for
9254 (internal_bkpt_print_it): Use print_solib_event.
9255 (initialize_breakpoint_ops): Initialize
9256 catch_solib_breakpoint_ops.
9257 (_initialize_breakpoint): Register "catch load" and "catch
9259 * breakpoint.h (handle_solib_event): Declare.
9260 * NEWS: Add entry for "catch load" and "catch unload".
9262 2012-01-24 Tom Tromey <tromey@redhat.com>
9264 * ada-lang.c: Include gdb_vecs.h.
9265 * charset.c: Include gdb_vecs.h.
9266 * tracepoint.h: Include gdb_vecs.h.
9267 * gdb_vecs.h: New file.
9269 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9271 * breakpoint.c (breakpoint_hit_catch_fork)
9272 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9273 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9274 * infrun.c (inferior_has_forked, inferior_has_vforked)
9275 (inferior_has_execd, inferior_has_called_syscall): Delete.
9276 (handle_syscall_event): Get syscall_number from the execution
9277 control state's wait status.
9278 (wait_for_inferior): Don't clear syscall_number.
9280 2012-01-24 Pedro Alves <palves@redhat.com>
9282 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9283 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9284 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9285 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9287 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9288 false for events other than TARGET_SIGNAL_TRAP.
9289 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9291 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9292 events other than TARGET_SIGNAL_TRAP.
9293 (tracepoint_breakpoint_hit): Add `ws' parameter.
9294 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9296 (bpstat_stop_status): Same.
9297 (pc_at_non_inline_function): Same.
9298 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9299 to pass the current event's waitstatus to bpstat_stop_status
9300 and pc_at_non_inline_function.
9302 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9305 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9306 Update the function comment for it.
9307 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9308 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9311 2012-01-24 Pedro Alves <palves@redhat.com>
9313 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9314 outside `bs->stop' block.
9315 (bpstat_what): Rework bp_shlib_event handling.
9316 (internal_bkpt_check_status): If the breakpoint is a
9317 bp_shlib_event, then set bs->stop and bs->print if
9318 stop_on_solib_events is set.
9320 2012-01-24 Gary Benson <gbenson@redhat.com>
9322 Delete #if 0'd out code.
9323 * stack.c (print_frame_label_vars): Remove.
9324 (catch_info): Likewise.
9325 (_initialize_stack): Remove "info catch" command.
9326 * NEWS: Mention the above.
9328 2012-01-24 Pedro Alves <palves@redhat.com>
9330 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9332 (remote_notice_new_inferior): If the remote end doesn't support
9333 the multiprocess extensions, then the PID is fake.
9334 (add_current_inferior_and_thread): New.
9335 (remote_start_remote): Use it.
9336 (extended_remote_attach_1): Adjust.
9337 (extended_remote_create_inferior_1): Use
9338 add_current_inferior_and_thread.
9340 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9342 Fix watchpoints to be specific for each inferior.
9343 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9344 current_program_space.
9345 * i386-nat.c (i386_inferior_data_cleanup): New.
9346 (i386_inferior_data_get): Replace variable inf_data_local by an
9348 (i386_use_watchpoints): Initialize i386_inferior_data.
9349 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9350 specific iterate_over_lwps.
9352 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9354 Fix watchpoints across inferior fork.
9355 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9356 comment for linux_nat_iterate_watchpoint_lwps.
9357 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9358 linux_nat_iterate_watchpoint_lwps.
9359 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9360 * i386-linux-nat.c (update_debug_registers_callback): Update the
9361 comment for linux_nat_iterate_watchpoint_lwps.
9362 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9363 linux_nat_iterate_watchpoint_lwps.
9364 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9365 * i386-nat.c: Include inferior.h.
9366 (dr_mirror): Remove.
9367 (i386_inferior_data, struct i386_inferior_data)
9368 (i386_inferior_data_get): New.
9369 (i386_debug_reg_state): Use i386_inferior_data_get.
9370 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9371 (i386_insert_watchpoint, i386_remove_watchpoint)
9372 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9373 (i386_remove_hw_breakpoint): New variable state, use
9374 i386_debug_reg_state instead of DR_MIRROR.
9375 * linux-nat.c (delete_lwp): New declaration.
9376 (num_lwps): Move here from downwards.
9377 (delete_lwp_cleanup): New.
9378 (linux_child_follow_fork): Create new child_lp, call
9379 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9381 (num_lwps): Move upwards.
9382 (linux_nat_iterate_watchpoint_lwps): New.
9383 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9384 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9386 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9390 2012-01-23 Pedro Alves <palves@redhat.com>
9392 * top.c (caution): Rename to ...
9393 (confirm): ... this.
9394 (show_caution): Rename to ...
9395 (show_confirm): ... this.
9396 (quit_cover): Adjust.
9397 (init_main): Adjust.
9398 * top.h (caution): Rename to ...
9399 (confirm): ... this.
9400 * utils.c (internal_vproblem, defaulted_query): Adjust.
9402 2012-01-23 Pedro Alves <palves@redhat.com>
9404 * top.c (caution): Update comment.
9405 (execute_command): Don't consider the current value of `caution'.
9407 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9409 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9411 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9413 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9414 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9415 * target.c (target_fileio_pwrite): Remove buffer address from
9417 (target_fileio_pread): Likewise.
9419 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9421 * NEWS: Document remote "info proc" and "generate-core-file".
9423 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9425 * gdbarch.sh (find_memory_regions): New callback.
9426 * gdbarch.c, gdbarch.h: Regenerate.
9428 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9429 callback before falling back to target method.
9431 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9432 (linux_target_install_ops): No longer install it.
9434 * linux-tdep.c (linux_find_memory_regions): New function.
9435 (linux_init_abi): Install it.
9437 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9439 * gdbarch.sh (make_corefile_notes): New architecture callback.
9440 * gdbarch.c: Regenerate.
9441 * gdbarch.h: Likewise.
9443 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9444 before target_make_corefile_notes. If NULL is returned, the
9445 target does not support core file generation.
9447 * linux-nat.c: Include "linux-tdep.h".
9448 (find_signalled_thread, find_stop_signal): Remove.
9449 (linux_nat_do_thread_registers): Likewise.
9450 (struct linux_nat_corefile_thread_data): Likewise.
9451 (linux_nat_corefile_thread_callback): Likewise.
9452 (iterate_over_spus): Likewise.
9453 (struct linux_spu_corefile_data): Likewise.
9454 (linux_spu_corefile_callback): Likewise.
9455 (linux_spu_make_corefile_notes): Likewise.
9456 (linux_nat_collect_thread_registers): New function.
9457 (linux_nat_make_corefile_notes): Replace contents by call to
9458 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9459 as native-only callback.
9461 * linux-tdep.h: Include "bfd.h".
9462 (struct regcache): Add forward declaration.
9463 (linux_collect_thread_registers_ftype): New typedef.
9464 (linux_make_corefile_notes): Add prototype.
9465 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9466 "regset.h", and "elf-bfd.h".
9467 (find_signalled_thread, find_stop_signal): New functions.
9468 (linux_spu_make_corefile_notes): Likewise.
9469 (linux_collect_thread_registers): Likewise.
9470 (struct linux_corefile_thread_data): New data structure.
9471 (linux_corefile_thread_callback): New funcion.
9472 (linux_make_corefile_notes): Likewise.
9473 (linux_make_corefile_notes_1): Likewise.
9474 (linux_init_abi): Install it.
9476 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9478 * gdbarch.sh (info_proc): New callback.
9479 * gdbarch.c, gdbarch.h: Regenerate.
9481 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9482 before falling back to the target info_proc callback.
9484 * linux-nat.c: Do not include "cli/cli-utils.h".
9485 (linux_nat_info_proc): Remove.
9486 (linux_target_install_ops): No longer install it.
9488 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9489 (read_mapping): New function.
9490 (linux_info_proc): Likewise.
9491 (linux_init_abi): Install it.
9493 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9495 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9496 * infcmd.c: (info_proc_cmd_1): New function.
9497 (info_proc_cmd): New function, moved here from equivalent routine
9498 orignally in linux-nat.c.
9499 (info_proc_cmd_mappings): Likewise.
9500 (info_proc_cmd_stat): Likewise.
9501 (info_proc_cmd_status): Likewise.
9502 (info_proc_cmd_cwd): Likewise.
9503 (info_proc_cmd_cmdline): Likewise.
9504 (info_proc_cmd_exe): Likewise.
9505 (info_proc_cmd_all): Likewise.
9506 (_initialize_infcmd): Install "info proc" command and subcommands.
9508 * target.h (struct target_ops): Add to_info_proc.
9509 (target_info_proc): Add prototype.
9510 * target.c (target_info_proc): New function.
9512 * procfs.c (procfs_info_proc): Add prototype.
9513 (info_proc_cmd): Rename into ...
9514 (procfs_info_proc): ... this. Update argument types as appropriate
9515 for a to_info_proc implementation. Handle "what" argument.
9516 (procfs_target): Install procfs_info_proc.
9517 (_initialize_procfs): No longer install "info proc" command.
9519 * linux-nat.c: (enum info_proc_what): Remove.
9520 (linux_nat_info_proc_cmd_1): Rename into ...
9521 (linux_nat_info_proc): ... this. Update argument types as appropriate
9522 for a to_info_proc implementation.
9523 (linux_nat_info_proc_cmd): Remove.
9524 (linux_nat_info_proc_cmd_mappings): Likewise.
9525 (linux_nat_info_proc_cmd_stat): Likewise.
9526 (linux_nat_info_proc_cmd_status): Likewise.
9527 (linux_nat_info_proc_cmd_cwd): Likewise.
9528 (linux_nat_info_proc_cmd_cmdline): Likewise.
9529 (linux_nat_info_proc_cmd_exe): Likewise.
9530 (linux_nat_info_proc_cmd_all): Likewise.
9531 (linux_target_install_ops): Install linux_nat_info_proc.
9532 (_initialize_linux_nat): No longer install "info proc" command
9535 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9537 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9538 * config.in, configure: Regenerate.
9540 * target.h (struct target_ops): Add to_fileio_readlink.
9541 (target_fileio_readlink): Add prototype.
9542 * target.c (target_fileio_readlink): New function.
9544 * inf-child.c: Conditionally include <sys/param.h>.
9545 (inf_child_fileio_readlink): New function.
9546 (inf_child_target): Install it.
9548 * remote.c (PACKET_vFile_readlink): New enum value.
9549 (remote_hostio_readlink): New function.
9550 (init_remote_ops): Install it.
9551 (_initialize_remote): Handle vFile:readlink packet type.
9553 2012-01-20 Pedro Alves <palves@redhat.com>
9554 Ulrich Weigand <ulrich.weigand@linaro.org>
9556 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9557 * config.in, configure: Regenerate.
9559 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9560 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9561 (target_fileio_open): Add prototype.
9562 (target_fileio_pwrite): Likewise.
9563 (target_fileio_pread): Likewise.
9564 (target_fileio_close): Likewise.
9565 (target_fileio_unlink): Likewise.
9566 (target_fileio_read_alloc): Likewise.
9567 (target_fileio_read_stralloc): Likewise.
9569 * target.c: Include "gdb/fileio.h".
9570 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9571 (default_fileio_target): New function.
9572 (target_fileio_open): Likewise.
9573 (target_fileio_pwrite): Likewise.
9574 (target_fileio_pread): Likewise.
9575 (target_fileio_close): Likewise.
9576 (target_fileio_unlink): Likewise.
9577 (target_fileio_close_cleanup): Likewise.
9578 (target_fileio_read_alloc_1): Likewise.
9579 (target_fileio_read_alloc): Likewise.
9580 (target_fileio_read_stralloc): Likewise.
9582 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9583 <fcntl.h>, and <unistd.h>.
9584 (inf_child_fileio_open_flags_to_host): New function.
9585 (inf_child_errno_to_fileio_error): Likewise.
9586 (inf_child_fileio_open): Likewise.
9587 (inf_child_fileio_pwrite): Likewise.
9588 (inf_child_fileio_pread): Likewise.
9589 (inf_child_fileio_close): Likewise.
9590 (inf_child_fileio_unlink): Likewise.
9591 (inf_child_target): Install to_fileio routines.
9593 * remote.c (init_remote_ops): Install to_fileio routines.
9595 2012-01-20 Pedro Alves <palves@redhat.com>
9596 Ulrich Weigand <ulrich.weigand@linaro.org>
9598 * remote.c (remote_multi_process_p): Only check for multi-process
9599 protocol feature, do not check for extended protocol.
9600 (remote_supports_multi_process): Check for extended protocol here.
9601 (set_general_process): Likewise.
9602 (extended_remote_kill): Likewise.
9603 (remote_pid_to_str): Likewise.
9604 (remote_query_supported): Always query multiprocess mode.
9606 2012-01-20 Pedro Alves <palves@redhat.com>
9607 Ulrich Weigand <ulrich.weigand@linaro.org>
9609 * inferior.h (struct inferior): Add fake_pid_p.
9610 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9611 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9612 magic_null_ptid since the remote side doesn't provide a real PID.
9614 2012-01-19 Tom Tromey <tromey@redhat.com>
9616 * NEWS: Combine the two Python sections.
9618 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9620 * target.h (target_close): Update comment on the target's unpush state.
9622 2012-01-19 Pedro Alves <palves@redhat.com>
9624 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9625 linux_nat_async directly instead of going through the target
9627 * target.c (unpush_target): Close target after unpushing it, not
9630 2012-01-19 Gary Benson <gbenson@redhat.com>
9632 * mdebugread.c (sort_blocks): Replace integer constants with ones
9633 derived from FIRST_LOCAL_BLOCK.
9635 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9636 Jan Kratochvil <jan.kratochvil@redhat.com>
9639 * symfile.c (find_separate_debug_file): New function.
9640 (terminate_after_last_dir_separator): Likewise.
9641 (find_separate_debug_file_by_debuglink): Also try realpath.
9642 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9643 * configure: Regenerate.
9644 * config.in: Regenerate.
9646 2012-01-18 Doug Evans <dje@google.com>
9648 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9649 (main.o): Remove rule.
9650 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9651 (--with-sysroot): Rewrite.
9652 * configure: Regenerate.
9653 * config.in: Regenerate.
9655 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9657 * parse.c (initialize_expout): New function.
9658 (reallocate_expout): Likewise.
9659 (parse_exp_in_context): Use `initialize_expout' and
9660 `reallocate_expout' when appropriate.
9662 2012-01-18 Pedro Alves <palves@redhat.com>
9664 * record.c (struct record_breakpoint, record_breakpoint_p)
9665 (record_breakpoints): New.
9666 (record_insert_breakpoint, record_remove_breakpoint): Manage
9667 record breakpoints list. Only remove breakpoints from the
9668 inferior if they had been inserted there in the first place.
9670 2012-01-17 Doug Evans <dje@google.com>
9672 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9673 if we know we don't have a file name to look for.
9675 2012-01-17 Pedro Alves <palves@redhat.com>
9677 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9678 the frame's stop reason is UNWIND_UNAVAILABLE.
9680 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9682 Fix compilation error.
9683 * m2-exp.y (yyerror): Use ANSI C prototype.
9685 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9687 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9688 (growbuf_by_size): Likewise.
9689 (yyerror): Likewise.
9690 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9691 (modblock): Remove variable (was #if 0'ed).
9692 (parse_number): Convert prototype from K&R to ANSI C.
9693 (yyerror): Likewise.
9694 * objc-exp.y (parse_number): Likewise.
9695 (yyerror): Likewise.
9696 (yylex): Remove #if 0'ed code.
9697 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9698 (yyerror): Likewise.
9700 2012-01-16 Tom Tromey <tromey@redhat.com>
9703 * symtab.h (compare_filenames_for_search): Declare.
9704 * symtab.c (compare_filenames_for_search): New function.
9705 (iterate_over_some_symtabs): Use it.
9706 * symfile.h (struct quick_symbol_functions)
9707 <map_symtabs_matching_filename>: Change spec.
9708 * psymtab.c (partial_map_symtabs_matching_filename): Use
9709 compare_filenames_for_search. Update for new spec.
9710 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9711 compare_filenames_for_search. Update for new spec.
9712 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9714 2012-01-16 Tom Tromey <tromey@redhat.com>
9717 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9718 (struct main_type) <flag_flag_enum>: New field.
9719 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9720 * NEWS: Add entries.
9721 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9723 * python/lib/gdb/printing.py (_EnumInstance): New class.
9724 (FlagEnumerationPrinter): Likewise.
9726 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9728 * breakpoint.c (create_sals_from_address_default): New function.
9729 (create_breakpoints_sal_default): Likewise.
9730 (decode_linespec_default): Likewise.
9731 (is_marker_spec): Removed.
9732 (strace_marker_p): New function.
9733 (init_breakpoint_sal): Using `strace_marker_p' instead of
9735 (create_breakpoint): Call method `create_sals_from_address' from
9736 breakpoint_ops, replacing code that created SALs conditionally
9737 on the type of the breakpoint. Call method `create_breakpoints_sal',
9738 replacing code that created breakpoints conditionally on the type
9740 (base_breakpoint_create_sals_from_address): New function.
9741 (base_breakpoint_create_breakpoints_sal): Likewise.
9742 (base_breakpoint_decode_linespec): Likewise.
9743 (base_breakpoint_ops): Add methods
9744 `base_breakpoint_create_sals_from_address',
9745 `base_breakpoint_create_breakpoints_sal' and
9746 `base_breakpoint_decode_linespec'.
9747 (bkpt_create_sals_from_address): New function.
9748 (bkpt_create_breakpoints_sal): Likewise.
9749 (bkpt_decode_linespec): Likewise.
9750 (tracepoint_create_sals_from_address): Likewise.
9751 (tracepoint_create_breakpoints_sal): Likewise.
9752 (tracepoint_decode_linespec): Likewise.
9753 (strace_marker_create_sals_from_address): Likewise.
9754 (strace_marker_create_breakpoints_sal): Likewise.
9755 (strace_marker_decode_linespec): Likewise.
9756 (strace_marker_breakpoint_ops): New variable.
9757 (addr_string_to_sals): Remove `marker_spec'. Call method
9758 `decode_linespec' from breakpoint_ops, replacing code that decoded
9759 an address string into a SAL. Use `strace_marker_p' instead of
9761 (strace_command): Decide whether we are dealing with a static
9762 tracepoint with marker or not. Use the appropriate breakpoint_ops.
9763 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
9764 * breakpoint.h (linespec_result, linespec_sals): New forward
9766 (breakpoint_ops) <create_sals_from_address>,
9767 <create_breakpoints_sal>, <decode_linespec>: New methods.
9769 2012-01-14 Doug Evans <dje@google.com>
9771 * NEWS: Update text for "maint set python print-stack".
9772 It is deprecated in gdb 7.4 and deleted in 7.5.
9774 2012-01-13 Eli Zaretskii <eliz@gnu.org>
9776 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
9779 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9781 * configure: Regenerate.
9782 * config.in: Regenerate.
9784 2012-01-12 Keith Seitz <keiths@redhat.com>
9787 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
9788 (ANONYMOUS_UNION_NAME): Define.
9789 (is_path_expr_parent): New function.
9790 (get_path_expr_parent): New function.
9791 (is_anonymous_child): New function.
9792 (create_child_with_value): If the child is anonymous and without
9793 a name, assign an object name to it.
9794 (c_describe_child): Use get_path_expr_parent to determine
9795 the parent expression.
9796 If there field represents an anonymous struct or union and
9797 has no name, set an appropriate display name and expression.
9798 (cplus_describe_child): Likewise.
9800 2012-01-12 Pedro Alves <palves@redhat.com>
9802 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
9803 available when %ebp is found to be zero (outermost).
9805 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
9807 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
9808 an internal gdb_static_assert.
9809 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
9811 2012-01-11 Tom Tromey <tromey@redhat.com>
9814 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
9815 catch" and "catch throw".
9817 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
9819 * blockframe.c (block_innermost_frame): Start search from selected
9820 frame, if present, or otherwise the current frame.
9822 * c-exp.y (variable): Update innermost_block for
9823 'block COLONCOLON NAME' clause.
9824 * m2-exp.y (variable): Ditto.
9825 * objc-exp.y (variable): Ditto.
9827 2012-01-10 Tom Tromey <tromey@redhat.com>
9830 * python/python.c (finish_python_initialization): Set sys.argv.
9832 2012-01-10 Doug Evans <dje@google.com>
9834 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
9835 "want_line_info". All callers updated.
9836 (dwarf_decode_lines_1): New function.
9837 (handle_DW_AT_stmt_list): Add function comment.
9838 New arg "want_line_info". All callers updated.
9839 (read_file_scope,read_type_unit_scope): Move comment from
9840 handle_DW_AT_stmt_list to here.
9842 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9844 Fix regression after libiberty/ update for GCC PR 6057 and others.
9845 * c-exp.y (operator) <OPERATOR DELETE>
9846 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9847 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
9848 (make_builtin_type, make_name): New variable i, add gdb_assert.
9849 (operator) <OPERATOR NEW>: Update ARGS to 3.
9850 (operator) <OPERATOR DELETE>: Add trailing space.
9851 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
9852 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9853 * cp-support.c (cp_canonicalize_string): Check NULL from
9854 cp_comp_to_string, call warning and return.
9856 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9858 Fix duplicate .o files after omitting libbfd.a.
9859 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
9860 (SFILES): Add corelow.c.
9861 (COMMON_OBS): Add corelow.o.
9862 (ALLDEPFILES): Remove corelow.c.
9863 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
9864 * config/alpha/alpha-osf3.mh: Likewise.
9865 * config/alpha/fbsd.mh: Likewise.
9866 * config/arm/nbsdaout.mh: Likewise.
9867 * config/arm/nbsdelf.mh: Likewise.
9868 * config/i386/i386gnu.mh: Likewise.
9869 * config/ia64/hpux.mh: Likewise.
9870 * config/ia64/linux.mh: Likewise.
9871 * config/m32r/linux.mh: Likewise.
9872 * config/m68k/linux.mh: Likewise.
9873 * config/mips/irix5.mh: Likewise.
9874 * config/mips/irix6.mh: Likewise.
9875 * config/pa/hpux.mh: Likewise.
9876 * config/pa/linux.mh: Likewise.
9877 * config/powerpc/aix.mh: Likewise.
9878 * config/sparc/linux.mh: Likewise.
9879 * config/sparc/linux64.mh: Likewise.
9880 * config/sparc/sol2.mh: Likewise.
9881 * config/vax/vax.mh: Likewise.
9882 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
9883 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
9884 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
9885 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
9886 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
9887 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
9888 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
9889 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
9890 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
9891 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
9892 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
9893 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
9894 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9895 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
9896 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
9897 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9898 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
9899 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
9900 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
9901 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
9902 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
9903 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
9904 corelow.o from gdb_target_obs.
9905 * corefile.c (core_target): Update the comment on NULL value.
9906 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
9907 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
9908 MATCHES. Drop YUMMY set on NULL.
9909 (core_close): Do not call exit_inferior_silent on zero PID. Do not
9910 reclaim CORE_DATA if it is already NULL.
9912 2012-01-09 Doug Evans <dje@google.com>
9914 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
9915 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
9917 2012-01-09 Keith Seitz <keiths@redhat.com>
9919 * breakpoint.c (wrapper.h): Don't include.
9921 2012-01-09 Keith Seitz <keiths@redhat.com>
9923 * Makefile.in (SFILES): Remove wrapper.c.
9924 (HFILES_NO_SRCDIR): Remove wrapper.h.
9925 (COMMON_OBS): Remove wrapper.o.
9926 * cli/cli-interp.c: Don't inlude wrapper.h.
9927 * corelow.c: Likewise.
9928 (core_open): Replace gdb_target_find_new_threads with
9929 TRY_CATCH around target_find_new_threads.
9930 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
9931 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
9932 * varobj.c (varobj_create): Likewise for parse_exp_1 and
9933 evaluate_expression.
9934 (varobj_set_value): Likewise for evaluate_expression and
9936 (install_new_variable): Likewise for value_fetch_lazy.
9937 (adjust_value_for_child_access): Likewise for value_ind.
9938 (c_describe_child): Likewise for value_subscript and
9940 (c_value_of_root): Likewise for evaluate_expression.
9941 * wrapper.c: Remove.
9942 * wrapper.h: Remove.
9944 2012-01-09 Doug Evans <dje@google.com>
9946 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
9947 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
9948 "abfd" args with "section". All callers updated.
9949 Error checking code moved ...
9950 (error_check_comp_unit_head): ... here. New function.
9951 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
9952 Delete arg "abfd". New arg "type_offset". All callers updated.
9953 (create_debug_types_hash_table): Simplify by using
9954 read_and_check_type_unit_head.
9956 * parser-defs.h (namecopy): Delete.
9957 * parse.c (namecopy, namecopy_size): Move into copy_name.
9959 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9961 Partially fix duplicate .o files after omitting libbfd.a.
9962 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
9963 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9964 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
9965 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9966 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
9967 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
9968 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9970 2012-01-09 Pedro Alves <palves@redhat.com>
9972 * MAINTAINERS: Update my email address.
9974 2012-01-08 Doug Evans <dje@google.com>
9976 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
9977 n_type_units. Rename type_comp_units to all_type_units.
9979 (add_signatured_type_cu_to_table): Renamed from
9980 add_signatured_type_cu_to_list. All callers updated.
9982 * gdbtypes.h (struct cplus_struct_type): Delete member
9983 nfn_fields_total. All uses removed.
9985 2012-01-06 Doug Evans <dje@google.com>
9987 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
9989 (dwarf2_find_comp_unit): Delete.
9990 (process_psymtab_comp_unit): Make result "void".
9991 Delete args buffer, info_ptr, buffer_size, and replace with
9992 "section". All callers updated.
9993 (dwarf2_build_psymtabs_hard): Simplify.
9995 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
9996 Thiago Jung Bauermann <bauerman@br.ibm.com>
9998 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
9999 before `struct gdb_exception'.
10000 * breakpoint.c (update_global_location_list_nothrow)
10001 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10002 * cp-abi.c (value_rtti_type): Likewise.
10003 * cp-support.c (cp_validate_operator): Likewise.
10004 * infrun.c (insert_exception_resume_breakpoint)
10005 (check_exception_resume, keep_going): Likewise.
10006 * mi-interp.c (mi_breakpoint_created)
10007 (mi_breakpoint_modified): Likewise.
10008 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10009 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10010 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10012 2012-01-05 Doug Evans <dje@google.com>
10014 * dwarf2read.c (statement_prologue): Delete, unused.
10016 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10017 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10019 * dwarf2read.c (comp_unit_header): Delete, unused.
10021 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10023 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10024 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10026 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10028 * infrun.c (normal_stop): Don't skip calling the normal_stop
10029 observers if the thread was doing a multi-step, but stopped for
10030 some reason other than stepping.
10032 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10034 * cli/cli-decode.h: Add comments.
10035 (CMD_LIST_AMBIGUOUS): Moved to command.h
10036 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10037 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10038 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10039 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10040 (add_com, add_com_alias, add_info, add_info_alias)
10041 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10043 * command.h: Add and adjust comments.
10044 (CMD_LIST_AMBIGUOUS): Moved here.
10045 (help_cmd, help_cmd_list): Delete declarations.
10047 2012-01-04 Doug Evans <dje@google.com>
10049 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10050 All callers updated.
10051 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10052 Replace all arguments with "per_cu". All callers updated.
10054 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10056 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10057 New arg "per_cu". All callers updated.
10059 Delete #if 0'd out code.
10060 * language.c (binop_result_type): Delete.
10061 (simple_type, ordered_type, same_type, integral_type): Delete.
10062 (numeric_type, character_type, string_type, boolean_type): Delete.
10063 (float_type, structured_type): Delete.
10064 * language.h: Update.
10066 2012-01-04 Tom Tromey <tromey@redhat.com>
10068 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10070 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10072 * corefile.c (close_exec_file): Delete.
10073 (reopen_exec_file): Remove commented out code that seems related
10074 to close_exec_file, which is being deleted here.
10075 * inferior.h (close_exec_file): Delete.
10076 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10078 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10080 * ada-lang.c: #include "cli/cli-utils.h".
10081 (get_selections): Use skip_spaces.
10082 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10083 (catch_ada_exception_command_split): Use skip_spaces.
10084 (ada_decode_assert_location): Likewise.
10086 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10088 * linespec.c (decode_line_internal): Check for C++ or Java
10089 compound constructs only if the current language is C, C++
10092 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10095 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10096 Joel Brobecker <brobecker@adacore.com>
10097 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10098 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10100 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10101 fall through into AT_ENTRY_POINT.
10102 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10103 DUMMY_ADDR with it.
10104 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10105 PPC_INSN_SIZE skip to 3 times.
10107 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10109 * linespec.c (add_minsym): Preserve function descriptors.
10111 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10113 * breakpoint.c (all_locations_are_pending): Consider locations
10114 in program spaces executing during startup pending as well.
10116 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10118 Copyright year update in most files of the GDB Project.
10120 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10122 * copyright.sh: Delete.
10123 * copyright.py: Rewrite.
10125 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10127 * gnulib/extra/update-copyright: New file, imported from gnulib.
10129 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10131 * README (Copyright and License Notices): New section.
10133 2012-01-03 Tom Tromey <tromey@redhat.com>
10136 * python/py-value.c (valpy_dereference, valpy_get_address
10137 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10138 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10139 (valpy_absolute, valpy_richcompare): Free intermediate values.
10141 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10143 * ada-lang.c: Reformat the copyright notice.
10145 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10147 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10148 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10149 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10150 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10151 Revert this part of:
10152 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10153 Build gdb directly from *.o files not using libgdb.a.
10154 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10156 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10158 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10159 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10160 Reformat the copyright header.
10162 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10164 Revert this part of:
10165 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10166 Remove the gdbtui binary.
10167 * gdb.c (main): Remove args.interpreter_p initialization.
10168 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10169 * main.h (struct captured_main_args): Remove interpreter_p.
10171 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10173 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10175 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10177 * top.c (print_gdb_version): Update copyright year.
10179 2012-01-02 Yao Qi <yao@codesourcery.com>
10181 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10183 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10184 Joel Brobecker <brobecker@adacore.com>
10186 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10187 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10189 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10190 fall through into AT_ENTRY_POINT.
10191 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10192 DUMMY_ADDR with it.
10193 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10194 PPC_INSN_SIZE skip to 3 times.
10196 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10198 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10200 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10202 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10204 Build gdb directly from *.o files not using libgdb.a.
10205 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10206 (COMMON_OBS): Remove solib-target.o.
10207 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10208 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10209 (LIBGDB_OBS, libgdb.a): Move it above.
10210 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10211 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10212 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10213 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10214 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10215 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10216 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10217 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10218 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10219 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10220 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10221 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10222 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10223 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10224 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10225 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10226 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10227 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10228 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10229 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10230 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10231 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10232 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10233 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10234 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10235 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10236 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10238 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10240 Remove the gdbtui binary.
10241 * .gitignore (/gdbtui): Remove.
10242 * Makefile.in (TUI): Remove.
10243 (SUBDIR_TUI_OBS): Remove tui-main.o.
10244 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10245 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10246 (tui-main.o): Remove.
10247 (all_object_files): Remove tui-main.o.
10248 * NEWS: New note for the gdbtui removal.
10249 * configure: Rebuilt.
10250 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10251 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10252 CONFIG_UNINSTALL respectively.
10253 * gdb.c (main): Remove args.interpreter_p initialization.
10254 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10255 * main.h (struct captured_main_args): Remove interpreter_p.
10256 * tui/tui-main.c: Remove.
10258 2012-01-01 Doug Evans <dje@google.com>
10260 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10261 (dwarf2_physname, read_import_statement): Ditto.
10262 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10263 (process_structure_scope read_subroutine_type): Ditto.
10264 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10265 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10266 (dwarf2_fetch_die_location_block): Ditto.
10267 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10269 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10270 All callers updated.
10271 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10272 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10273 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10275 * dwarf2read.c (load_cu): Move assert to more useful location.
10277 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10278 All callers updated.
10280 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10281 (dwarf2_elf_names): Minor reformat.
10282 (dwarf2_per_cu_data): Tweak comment.
10283 (dwarf2_read_section): Fix comment.
10284 (create_all_comp_units): Fix comment.
10285 (load_full_comp_unit): Fix comment.
10286 (process_full_comp_unit): Fix comment.
10287 (read_signatured_type): Fix comment.
10289 For older changes see ChangeLog-2011.
10295 version-control: never