1 2012-09-14 Pedro Alves <palves@redhat.com>
3 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
5 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
7 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
8 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
9 data-directory as appropriate.
11 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
13 * printcmd.c (ui_printf): Eliminate single-use variable
16 2012-09-14 Yao Qi <yao@codesourcery.com>
17 Pedro Alves <palves@redhat.com>
19 * valops.c (value_assign): Move observer_notify_target_changed
20 below to replace reinit_frame_cache.
22 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
24 Refactor Python "gdb" module into a proper Python package, by
25 introducing a new "_gdb" module for code implemented in C, and
26 using reload/__import__ instead of exec.
27 * python/lib/gdb/__init__.py: Import * from _gdb.
28 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
29 prompt_hook, sys.argv): Moved from finish_python_initialization.
30 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
31 (packages, auto_load_packages): New list and function replacing
32 module_dict and auto-loading code, using __file__ instead of
33 gdb.PYTHONDIR and reload/__import__ instead of exec.
34 (GdbSetPythonDirectory): Replacing function of the same name
35 from finish_python_initialization, using reload/__import__ instead
36 of exec, as well as call auto_load_packages.
37 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
38 gdb_python_module and not gdb_module.
39 * python/python-internal.h (gdb_python_module): Declare.
40 * python/python.c (gdb_python_module): New global.
41 (before_prompt_hook): Check gdb_python_module and not gdb_module.
42 (_initialize_python): Rename gdb module to _gdb.
43 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
44 (finish_python_initialization): Move Python code to
45 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
48 2012-09-13 Pedro Alves <palves@redhat.com>
50 * Makefile.in (COMMON_OBS): Add registry.o.
51 * registry.c: New file.
52 * registry.h (struct registry_container): Declare.
53 (registry_data_callback): New typedef.
54 (struct registry_data, struct registry_data_registration, struct
55 registry_data_registry): New type.
56 (register_data_with_cleanup, registry_alloc_data)
57 (registry_callback_adaptor, registry_clear_data)
58 (registry_container_free_data, registry_set_data, registry_data):
60 (DEFINE_REGISTRY): Refactor structures and functions as shims over
61 the new common structures and functions.
62 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
65 2012-09-12 Doug Evans <dje@google.com>
67 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
70 2012-09-11 Doug Evans <dje@google.com>
72 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
73 .gdb_index symbol attributes if there are none.
75 2012-09-11 Joel Brobecker <brobecker@adacore.com>
77 * symtab.h (struct minimal_symbol) [has_size]: New field.
78 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
79 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
80 * printcmd.c (build_address_symbolic): Only filter out zero-sized
81 minimal symbols if the symbol's size is actually known.
82 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
83 of msymbol's size field. Add comment.
84 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
85 SET_MSYMBOL_SIZE to set the minimal symbol size.
87 2012-09-11 Joel Brobecker <brobecker@adacore.com>
89 * minsyms.c (install_minimal_symbols): Use memset to fill entire
90 minimal_symbol struct object, rather than setting some of its
93 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
95 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
96 passed_a_ptr flag when displaying typedef types.
98 2012-09-10 Joel Brobecker <brobecker@adacore.com>
100 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
101 the optimized_out flag is preserved.
103 2012-09-10 Anthony Green <green@moxielogic.com>
105 * moxie-tdep.c (moxie_analyze_prologue): Update for function
106 prologue changes in GCC.
108 2012-09-10 Keith Seitz <keiths@redhat.com>
111 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
112 (BOOL_CONVERSION_BADNESS): ... this.
113 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
114 (rank_one_type): Allow all boolean conversions
115 permitted by the standard.
117 2012-09-06 Tom Tromey <tromey@redhat.com>
119 * python/py-newobjfileevent.c (create_new_objfile_event_object):
120 Don't decref py_objfile.
122 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
124 Do not enable -lmcheck by default when Python is enabled with
126 * configure.ac: (python_has_threads) New variable, by testing
127 if WITH_THREAD is defined in Python.h.
128 Move --enable-lmcheck after --with-python.
129 Do not enable -lmcheck by default if python_has_threads=yes.
130 Warn if --enable-lmcheck and python_has_threads=yes.
131 * configure: Regenerate.
133 2012-08-31 Yao Qi <yao@codesourcery.com>
135 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
136 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
137 Update some commands.
138 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
139 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
142 2012-08-31 Yao Qi <yao@codesourcery.com>
144 * mi/mi-cmds.c (mi_cmds): Add 'static'.
146 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
148 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
150 2012-08-29 Doug Evans <dje@google.com>
152 * main.c (print_gdb_help): Remove reference to
153 --use-deprecated-index-sections.
155 2012-08-28 Yao Qi <yao@codesourcery.com>
157 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
158 (init_cmds): Call add_setshow_uinteger_cmd for command
159 'max-user-call-depth'.
160 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
161 declaration of 'max_user_call_depth'.
162 * frame.c (backtrace_limit): Add 'unsigned'.
163 (_initialize_frame): Call add_setshow_uinteger_cmd for command
165 * remote.c (remoteaddresssize): Add 'unsigned'.
166 (remote_address_masked): Change local var 'address_size' to
168 (_initialize_remote): Call add_setshow_uinteger_cmd for
170 * top.c (history_size): Add 'unsigned'.
171 (show_commands): Change local variables to 'unsigned'.
172 (set_history_size_command): Don't check history_size is negative.
173 Adjust the condition to call unstifle_history and set history_size
176 2012-08-28 Pedro Alves <palves@redhat.com>
180 * infcmd.c (default_print_one_register_info): New, factored out
181 from default_print_registers_info.
182 (default_print_registers_info): Use it. Mark value unavailable if
184 (registers_info): Print user registers with
185 default_print_one_register_info.
187 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
190 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
191 is not NULL before referencing it.
193 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
195 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
196 variable pc. Call find_pc_line instead of find_pc_overlay, restore
199 2012-08-27 Eli Zaretskii <eliz@gnu.org>
200 Jan Kratochvil <jan.kratochvil@redhat.com>
202 * auto-load.c (auto_load_objfile_script): Rename to ...
203 (auto_load_objfile_script_1): ... here, change variable realname to
204 parameter realname, document it, add return value, add variable retval.
205 (auto_load_objfile_script): New function.
207 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
209 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
210 followed by a whitespace.
212 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
215 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
216 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
217 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
220 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
222 * memattr.c (create_mem_region): Fix memory region overlapping
225 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
227 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
228 with xmalloc/cleanup.
229 * mt-tdep.c (mt_push_dummy_call): Likewise.
230 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
231 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
233 2012-08-24 Yao Qi <yao@codesourcery.com>
235 * jv-exp.y (push_expression_name): Add "." at the end of error
238 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
240 Document how to return from "python-interactive" to GDB.
241 * python/python.c (_initialize_python): Update documentation.
243 2012-08-23 Pedro Alves <palves@redhat.com>
245 * infrun.c (_initialize_infrun) <handle command help text>:
246 Mention that multiple signals are supported.
248 2012-08-23 Pedro Alves <palves@redhat.com>
250 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
253 2012-08-23 Yao Qi <yao@codesourcery.com>
255 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
256 (tfind_1): Don't call registers_changed, set_traceframe_num,
257 and clear_traceframe_info.
258 Call set_current_traceframe.
259 (set_current_traceframe): call set_traceframe_num.
261 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
263 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
264 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
266 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
268 Enable readline in Python in a GDB-specific way and block the
269 standard Python readline module to prevent conflicts with GDB.
270 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
271 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
272 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
273 * python/py-gdb-readline.c: New file.
274 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
276 * python/python.c (_initialize_python): Call
277 gdbpy_initialize_gdb_readline.
279 2012-08-22 Keith Seitz <keiths@redhat.com>
281 * defs.h: Include build-gnulib/config.h
283 2012-08-22 Joseph Myers <joseph@codesourcery.com>
285 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
288 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
290 Add a new "python-interactive" command that starts a standard
291 Python interactive prompt with "pi" as alias, and add "py" as
292 an alias to "python".
293 * NEWS: Mention the new commands.
294 * python/python.c (eval_python_command): New function.
295 (python_interactive_command): For "python-interactive" with
296 arguments, call eval_python_command. For "python-interactive"
297 without arguments, call PyRun_InteractiveLoop.
298 (_initialize_python): Add "python-interactive" command with
299 "pi" as alias, and add "py" as an alias to "python".
301 2012-08-22 Tom Tromey <tromey@redhat.com>
303 * defs.h (quit_flag): Don't declare.
304 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
305 (QUIT): Use new functions.
306 * event-top.c (command_handler): Use clear_quit_flag.
307 (handle_sigint): Use set_quit_flag.
308 (async_request_quit): Use check_quit_flag. Don't check
310 * exceptions.c (throw_exception): Use clear_quit_flag.
311 * main.c (captured_main): Use clear_quit_flag.
312 * python/python.c (clear_quit_flag, set_quit_flag)
313 (check_quit_flag): New functions.
314 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
316 * remote.c (remote_wait_as): Use check_quit_flag,
318 (remote_start_remote): Call QUIT.
319 * symfile.c (load_progress): Use check_quit_flag.
320 * top.c (command_loop): Use clear_quit_flag.
321 (command_line_input): Call QUIT.
322 * utils.c (quit_flag): Conditionally define.
323 (clear_quit_flag, check_quit_flag, set_quit_flag): New
325 (prompt_for_continue): Call QUIT. Use quit, not
327 * remote-mips.c (mips_expect_timeout): Call QUIT.
328 * monitor.c (monitor_expect): Call QUIT.
330 2012-08-22 Tom Tromey <tromey@redhat.com>
332 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
333 (async_init_signals): Update.
334 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
335 (SIGWINCH_HANDLER_BODY): Remove.
337 2012-08-22 Tom Tromey <tromey@redhat.com>
339 * jit.c (jit_object_close_impl): Don't malloc the objfile
341 * objfiles.c (allocate_objfile): Don't malloc the objfile
343 (free_objfile): Don't free the objfile name.
344 * objfiles.h (struct objfile) <name>: Update comment.
345 * symfile.c (reread_symbols): Fix reference counting. Don't
348 2012-08-22 Tom Tromey <tromey@redhat.com>
350 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
351 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
352 (symfile_bfd_open): Likewise.
353 (generic_load): Likewise.
354 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
355 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
357 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
359 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
360 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
361 (pmon_load_fast): Likewise.
362 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
363 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
364 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
365 (macho_check_dsym): Likewise.
366 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
367 (m32r_upload_command): Likewise.
368 * gdb_bfd.h (gdb_bfd_cache): Declare.
369 * gdb_bfd.c (struct gdb_bfd_data): New.
370 (gdb_bfd_cache): New global.
371 (struct gdb_bfd_cache_search): New.
372 (hash_bfd): New function.
374 (gdb_bfd_open): Likewise.
375 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
376 (gdb_bfd_unref): Remove closed BFD from cache. Update for
378 * exec.c (exec_file_attach): Use gdb_bfd_open.
379 * dsrec.c (load_srec): Use gdb_bfd_open.
381 2012-08-22 Tom Tromey <tromey@redhat.com>
383 * dwarf2read.c (macro_start_file): Update.
384 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
385 (free_objfile_per_bfd_storage): Destroy macro_cache.
386 (allocate_objfile, free_objfile): Update.
387 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
389 (struct objfile) <macro_cache>: Remove.
390 * symfile.c (reread_symbols): Update.
391 * symmisc.c (print_symbol_bcache_statistics): Update.
392 (print_objfile_statistics): Update.
394 2012-08-22 Tom Tromey <tromey@redhat.com>
396 * elfread.c (elf_symtab_read): Update.
397 * objfiles.c (objfiles_bfd_data): New global.
398 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
399 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
400 (allocate_objfile, free_objfile): Update.
401 (_initialize_objfiles): Initialize objfiles_bfd_data.
402 * objfiles.h (struct objfile_per_bfd_storage): New.
403 (struct objfile) <per_bfd>: New field.
404 <filename_cache>: Remove.
405 (set_objfile_per_bfd): Declare.
406 * symfile.c (reread_symbols): Update. Call
408 (allocate_symtab): Update.
409 * symmisc.c (print_symbol_bcache_statistics): Update.
410 (print_objfile_statistics): Print the size of the BFD obstack.
412 2012-08-22 Tom Tromey <tromey@redhat.com>
414 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
415 * gdb_bfd.c: Use DEFINE_REGISTRY.
416 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
417 (gdb_bfd_ref): Call bfd_alloc_data.
418 (gdb_bfd_unref): Call bfd_free_data.
420 2012-08-22 Tom Tromey <tromey@redhat.com>
422 * registry.h (struct registry_fields): New.
423 (REGISTRY_FIELDS): Redefine.
424 (REGISTRY_ACCESS_FIELD): New macro.
425 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
428 2012-08-22 Tom Tromey <tromey@redhat.com>
430 * auto-load.c (_initialize_auto_load): Update.
431 * solib-svr4.c (_initialize_svr4_solib): Update
432 * solib-dsbt.c (_initialize_dsbt_solib): Update.
433 * solib-darwin.c (_initialize_darwin_solib): Update.
434 * registry.h: New file.
435 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
436 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
437 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
438 (register_program_space_data_with_cleanup)
439 (register_program_space_data, program_space_alloc_data)
440 (clear_program_space_data, set_program_space_data)
441 (program_space_data): Don't declare.
442 * progspace.c: Use DEFINE_REGISTRY.
443 (struct program_space_data, struct
444 program_space_data_registration, struct
445 program_space_data_registry, program_space_data_registry)
446 (register_program_space_data_with_cleanup)
447 (register_program_space_data, program_space_alloc_data)
448 (program_space_free_data, clear_program_space_data)
449 (set_program_space_data, program_space_data): Remove.
450 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
451 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
452 (register_objfile_data_with_cleanup, register_objfile_data)
453 (clear_objfile_data, set_objfile_data, objfile_data): Don't
455 * objfiles.c: Use DEFINE_REGISTRY.
456 (struct objfile_data, struct objfile_data_registration, struct
457 objfile_data_registry, objfile_data_registry)
458 (register_objfile_data_with_cleanup, register_objfile_data)
459 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
460 (set_objfile_data, objfile_data): Remove.
461 (_initialize_objfiles): Update.
462 * jit.c (_initialize_jit): Update.
463 * inflow.c (_initialize_inflow): Update.
464 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
465 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
466 (register_inferior_data_with_cleanup, register_inferior_data)
467 (clear_inferior_data, set_inferior_data, inferior_data): Don't
469 * inferior.c: Use DEFINE_REGISTRY.
470 (struct inferior_data, struct inferior_data_registration, struct
471 inferior_data_registry, inferior_data_registry)
472 (register_inferior_data_with_cleanup, register_inferior_data)
473 (inferior_alloc_data, inferior_free_data clear_inferior_data)
474 (set_inferior_data, inferior_data): Remove.
475 * auxv.c (_initialize_auxv): Update.
476 * ada-lang.c (_initialize_ada_language): Update.
477 * breakpoint.c (_initialize_breakpoint): Update.
478 * i386-nat.c (i386_use_watchpoints): Update.
480 2012-08-22 Tom Tromey <tromey@redhat.com>
482 * exec.c (exec_close, exec_file_attach): Update.
483 (add_to_section_table): Initialize 'key' field.
484 (add_target_sections, remove_target_sections): Add 'key' argument.
485 * exec.h (add_target_sections, remove_target_sections): Add
487 * solib.c (solib_map_sections, update_solib_list, clear_solib)
488 (reload_shared_libraries_1): Update.
489 * target.h (struct target_section) <key>: New field.
491 2012-08-22 Tom Tromey <tromey@redhat.com>
493 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
495 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
497 * symfile.c (allocate_symtab): Use host_address_to_string
498 function instead of cast of pointer to long which is not
499 compatible with x86_64-w64-mingw32 build.
501 2012-08-19 Andrew Pinski <apinski@cavium.com>
503 * mips-tdep.c (is_octeon): New function.
504 (is_octeon_bbit_op): New function.
505 (mips32_next_pc): Handle Octeon's bbit instructions.
506 (mips32_instruction_has_delay_slot): Likewise.
508 2012-08-19 Andrew Pinski <apinski@cavium.com>
510 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
513 2012-08-19 Andrew Pinski <apinski@cavium.com>
515 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
517 2012-08-19 Keith Seitz <keiths@redhat.com>
520 * c-typeprint.c (c_type_print_varspec_prefix): Pass
521 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
523 2012-08-18 Eli Zaretskii <eliz@gnu.org>
525 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
526 The typo broke "make TAGS".
528 2012-08-17 Joel Brobecker <brobecker@adacore.com>
532 2012-08-17 Keith Seitz <keiths@redhat.com>
535 * gdbtypes.c (strict_type_checking): New variable.
536 (show_strict_type_checking): New function.
537 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
538 if strict type checking is disabled.
539 (_initialize_gdbtypes): Add "check type" subcommand.
540 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
542 2012-08-17 Keith Seitz <keiths@redhat.com>
544 * language.h (type_mode): Remove.
545 (type_check): Remove.
546 (struct language_defn): Remove la_type_check.
547 (STRICT_TYPE): Remove unused macro.
548 (type_error): Remove.
549 * language.c (set_type_range_case): Renamed to ...
550 (set_range_case): ... this. Update all callers.
551 Remove type_mode/type_check.
553 (type_check): Remove.
554 (show_type_command): Remove.
555 (set_type_command): Remove.
556 (language_info): Remove type checking output.
557 (type_error): Remove unused function.
558 (range_error): Update comment.
559 (unknown_language_defn): Remove la_type_check.
560 (auto_language_defn): Likewise.
561 (local_language_defn): Likewise.
562 (_initialize_language): Remove "check type" subcommand.
563 * ada-lang.c (ada_language_defn): Remove la_type_check.
564 * c-lang.c (c_language_defn): Likewise.
565 (cplus_language_defn): Likewise.
566 (asm_language_defn): Likewise.
567 (minimal_language_defn): Likewise.
568 * d-lang.c (d_language_defn): Likewise.
569 * f-lang.c (f_language_defn): Likewise.
570 * go-lang.c (go_language_defn): Likewise.
571 * jv-lang.c (java_language_defn): Likewise.
572 * m2-lang.c (m2_language_defn): Likewise.
573 * objc-lang.c (objc_language_defn): Likewise.
574 * opencl-lang.c (opencl_language_defn): Likewise.
575 * p-lang.c (pascal_language_defn): Likewise.
577 2012-08-16 Mike Frysinger <vapier@gentoo.org>
579 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
581 2012-08-16 Joel Brobecker <brobecker@adacore.com>
583 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
585 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
586 using the regache. Use ia64_hpux_get_register_from_save_state_t
587 to access the bsp and bspstore registers if not.
589 2012-08-16 Joel Brobecker <brobecker@adacore.com>
591 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
592 * breakpoint.c (detach_breakpoints): Change pid parameter into
593 a ptid. Adjust code accordingly.
594 * infrun.c (handle_inferior_event): Delete variable child_pid.
595 Update call to detach_breakpoints to pass the child ptid for
597 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
598 assert that inferior_ptid's lwp is zero.
599 (linux_handle_extended_wait): Update call to detach_breakpoints.
600 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
603 2012-08-16 Joel Brobecker <brobecker@adacore.com>
605 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
606 parent, only call detach_breakpoints if tts.tts_event ==
609 2012-08-16 Joel Brobecker <brobecker@adacore.com>
611 * dwarf2-frame.c (dwarf2_frame_cache): Use
612 get_frame_address_in_block instead of get_frame_pc as
613 the bound for executing the frame's FDE.
615 2012-08-16 Yao Qi <yao@codesourcery.com>
617 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
618 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
619 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
620 (c_type_print_varspec_suffix): Likewise.
621 * eval.c (evaluate_subexp_standard): Likewise.
622 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
623 (f_type_print_varspec_suffix): Likewise.
624 * gdbtypes.c (is_scalar_type): Likewise.
625 (recursive_dump_type): Likewise.
626 * infcall.c (value_arg_coerce): Likewise.
627 * m2-valprint.c (m2_val_print): Likewise.
628 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
629 (pascal_type_print_varspec_suffix): Likewise.
630 (pascal_type_print_base): Likewise.
631 * p-valprint.c (pascal_val_print): Likewise.
632 (pascal_val_print): Likewise.
633 * valops.c (value_slice): Likewise.
634 * valprint.c (scalar_type_p): Likewise.
635 * valarith.c (value_bitstring_subscript): Remove.
636 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
637 Remove comment on TYPE_CODE_BITSTRING.
639 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
642 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
645 2012-08-16 Yao Qi <yao@codesourcery.com>
647 * tracepoint.c (trace_find_none_command): Remove.
648 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
650 2012-08-16 Yao Qi <yao@codesourcery.com>
652 * remote.c (handle_notification): Remove parameter 'length'.
653 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
655 2012-08-15 Keith Seitz <keiths@redhat.com>
657 * gdbtypes.c (opaque_type_resolution): Make static.
659 (overload_debug): Add missing comment.
660 (show_opaque_type_resolution): Likewise.
661 (show_overload_debug): Likewise.
662 (print_bit_vector): Remove unnecessary forward declaration.
663 (print_arg_types): Likewise.
664 (dump_fn_fieldlists): Likewise.
665 (print_cplus_stuff): Likewise.
667 2012-08-15 Tom Tromey <tromey@redhat.com>
669 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
670 (gdb_bfd_ref): Initialize new field.
671 (gdb_bfd_unref): Unref the archive BFD.
672 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
675 2012-08-15 Tom Tromey <tromey@redhat.com>
678 * python/py-bpevent.c (create_breakpoint_event_object): Update
680 * python/py-event.c (evpy_add_attribute): Update comment.
681 * python/py-exitedevent.c (create_exited_event_object): Fix
682 reference counting and error handling.
683 * python/py-newobjfileevent.c (create_new_objfile_event_object):
684 Fix reference counting.
685 * python/py-signalevent.c (create_signal_event_object): Fix
686 reference counting and error handling.
687 * python/py-stopevent.c (emit_stop_event): Fix reference
689 * python/py-threadevent.c (get_event_thread): Return a
691 * python/py-type.c (convert_field): Fix reference counting.
693 2012-08-15 Tom Tromey <tromey@redhat.com>
695 * dwarf2read.c (dwarf_decode_macro_bytes)
696 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
699 2012-08-14 Mike Frysinger <vapier@gentoo.org>
701 * infcmd.c (_initialize_infcmd): Update help text for the signal,
702 stepi, nexti, finish, next, step, jump, and continue commands.
703 * infrun.c (_initialize_infrun): Update help text for the handle
706 2012-08-14 Doug Evans <dje@google.com>
708 * gdbtypes.c (struct extra): Delete, unused.
710 * gdbtypes.c: Whitespace cleanup.
711 (address_space_name_to_int): Remove "extern" from definition.
712 (_initialize_gdbtypes): Declare with initialize_file_ftype.
714 * gdbtypes.c (make_pointer_type): Remove redundant setting of
715 TYPE_POINTER_TYPE (type).
717 2012-08-14 Gary Benson <gbenson@redhat.com>
719 * solib-svr4.c (svr4_free_library_list): Use free_so.
721 2012-08-13 Mike Frysinger <vapier@gentoo.org>
723 * .gitignore: Add go-exp.c.
725 2012-08-13 Doug Evans <dje@google.com>
727 * value.c (show_convenience): Tweak comment.
728 (_initialize_values): Mention convenience functions in the help text
729 for "show convenience".
731 2012-08-13 Yao Qi <yao@codesourcery.com>
733 * std-operator.def: Remove TERNOP_SLICE_COUNT.
734 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
736 * eval.c (evaluate_subexp_standard): Likewise.
737 * expprint.c (print_subexp_standard): Likewise.
738 (dump_subexp_body_standard): Likewise.
739 * parse.c (operator_length_standard): Likewise.
741 2012-08-13 Yao Qi <yao@codesourcery.com>
743 * std-operator.def: Remove OP_BITSTRING.
744 * breakpoint.c (watchpoint_exp_is_const): Update.
745 * eval.c (evaluate_subexp_standard): Remove handling to
747 * expprint.c (print_subexp_standard): Likewise.
748 (dump_subexp_body_standard): Likewise.
749 * parse.c (operator_length_standard): Likewise.
750 * valops.c (value_bitstring): Remove.
751 * value.h: Remove the declaration of 'value_bitstring'.
753 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
755 * linespec.c (find_methods): Remove unused variables `i1' and
757 (decode_line_full): Likewise for `arg_start'.
759 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
761 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
762 (zlib_decompress_section): Likewise for `section_data'.
763 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
765 2012-08-10 Doug Evans <dje@google.com>
767 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
768 * NEWS: Document them.
769 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
771 * python/py-type.c (typy_array_1): New function.
772 (typy_array): Call it.
773 (typy_vector): New function.
774 (type_object_methods): Add "vector".
775 * python/lib/gdb/function/__init__.py: New file.
776 * python/lib/gdb/function/strfns.py: New file.
778 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
780 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
781 for TYPE_FIELD_BITPOS.
782 (typy_get_sizeof): Likewise for TYPE_LENGTH.
784 2012-08-10 Mike Frysinger <vapier@gentoo.org>
787 * common/vec.h (VEC_merge): Define.
788 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
789 (DEF_VEC_ALLOC_FUNC_P): Likewise.
790 (DEF_VEC_ALLOC_FUNC_O): Likewise.
791 * completer.c: Include gdb_signals.h.
792 (signal_completer): Define.
793 * completer.h (signal_completer): Add prototype.
794 * infcmd.c (_initialize_infcmd): Assign the command
795 completer for "signal" to handle_completer.
796 * infrun.c: Include completer.h.
797 (handle_completer): Define.
798 (_initialize_infrun): Declare a new local variable c. Store the
799 result of add_com("handle") to it. Assign the command
800 completer for "handle" to handle_completer.
802 2012-08-09 Yao Qi <yao@codesourcery.com>
804 * cli/cli-decode.c (set_cmd_prefix): New.
805 (lookup_cmd_for_prefixlist): New.
806 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
807 of each cmd_list_element in *prefixlist.
808 (add_setshow_cmd_full): set_cmd_prefix.
809 (add_alias_cmd): Likewise.
810 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
811 Declare 'auto_boolean_enums'.
812 * cli/cli-setshow.c: Include "observer.h".
813 (notify_command_param_changed_p): New.
814 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
816 (do_setshow_command): Split it to ...
817 (do_set_command, do_show_command): ... them. New.
818 (do_set_command): Call observer_notify_command_param_changed if
819 notify_command_param_changed_p returns true.
820 (cmd_show_list): Caller update.
821 * auto-load.c (set_auto_load_cmd): Likewise.
822 * remote.c (show_remote_cmd): Likewise.
823 * cli/cli-setshow.h: Update declarations.
824 * top.c (execute_command): Call do_set_command and do_show_command.
826 * NEWS: Mention new MI notification.
827 * mi/mi-interp.c: Declare mi_command_param_changed.
828 (mi_interpreter_init): Attach mi_command_param_changed to
829 observer command_param_changed.
830 (mi_command_param_changed): New.
831 Remove mi_suppress_breakpoint_notifications.
832 Define global variable mi_suppress_notification.
833 (mi_breakpoint_created): Update.
834 (mi_breakpoint_deleted): Likewise.
835 (mi_breakpoint_modified): Likewise.
836 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
837 'gdb-set' and set mi_suppress_notification.
838 * mi/mi-main.h: (mi_suppress_notification): New struct.
840 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
841 Jan Kratochvil <jan.kratochvil@redhat.com>
843 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
845 2012-08-09 Yao Qi <yao@codesourcery.com>
847 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
848 (skiplist): Move it to skip.c.
849 (init_cmd_lists): Remove code setting enablebreaklist and
851 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
852 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
854 * gdbcmd.h: Likewise.
855 * skip.c (_initialize_step_skip): Move 'skiplist' from
858 2012-08-09 Yao Qi <yao@codesourcery.com>
860 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
861 * gnu-nat.c, symfile.c: Likewise.
863 2012-08-08 Aaron Gamble <agamble@google.com>
865 * utils.c (prompt_for_continue_wait_time): New static global.
866 (make_command_stats_cleanup): Initialize it.
867 (report_command_stats): Subtract time waiting for user.
868 (prompt_for_continue): Track time waiting for user.
869 (defaulted_query): Track time waiting for user.
871 2012-08-08 Doug Evans <dje@google.com>
873 * eval.c (evaluate_subexp_standard): Fix thinko in handling
875 * expprint.c (print_subexp_standard, case OP_TYPE): New.
876 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
877 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
878 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
879 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
880 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
882 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
883 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
884 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
885 (dump_prefix_expression): Handle OP_TYPE.
887 2012-08-08 Keith Seitz <keiths@redhat.com>
889 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
892 2012-08-08 Doug Evans <dje@google.com>
894 * linux-thread-db.c: #include "gdb_vecs.h".
895 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
897 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
898 (thread_db_load_search): Use a vector to iterate over path elements.
899 Handle text appearing after "$pdir".
901 * gdb_string.h: Moved to ...
902 * common/gdb_string.h: ... here.
903 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
904 gdb_string.h and gdb_assert.h.
906 2012-08-08 Yao Qi <yao@codesourcery.com>
908 * tic6x-tdep.c (tic6x_register_to_value): Remove.
909 (tic6x_value_to_register): Likewise.
910 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
911 and set_gdbarch_value_to_register.
913 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
914 Jean-Marc Saffroy <saffroy@gmail.com>
917 * defs.h (find_memory_region_ftype): New comment. New arg modified.
918 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
919 * gcore.c (gcore_create_callback): New function comment. Add modified
920 parameter. Only write modified regions. Set SEC_READONLY exactly
921 according to MODIFIED.
922 (objfile_find_memory_regions): Ignore separate debug info files. Ass
923 the passed modified value to FUNC.
924 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
925 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
926 first. New variables modified and has_anonymous. Parse the lines of
927 smaps file. Add the passed MODIFIED value to FUNC.
928 * procfs.c (find_memory_regions_callback): Add the passed modified
931 2012-08-06 Tom Tromey <tromey@redhat.com>
933 * dwarf2-frame.c (clear_pointer_cleanup): New function.
934 (dwarf2_frame_cache): Use it.
935 * frame-unwind.h (frame_sniffer_ftype): Document prologue
936 cache initialization constraint.
938 2012-08-06 Tom Tromey <tromey@redhat.com>
941 * varobj.c (update_dynamic_varobj_children): Don't call
944 2012-08-06 Tom Tromey <tromey@redhat.com>
947 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
949 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
951 * NEWS: New entry for 'cd' default parameters.
952 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
954 2012-08-03 Tom Tromey <tromey@redhat.com>
956 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
959 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
961 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
962 to attempting lseek/write.
963 (inf_child_fileio_pread): Likewise for pread.
965 2012-08-02 Yao Qi <yao@codesourcery.com>
967 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
968 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
969 add_setshow_zinteger_cmd.
970 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
971 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
972 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
973 instead of add_setshow_zinteger_cmd.
974 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
975 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
976 instead of add_setshow_zinteger_cmd.
977 * frame.c (frame_debug): Add 'unsigned'.
978 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
979 add_setshow_zinteger_cmd.
980 * frame.h: Update the declaration of 'frame_debug'.
981 * gdbtypes.c (overload_debug): Add 'unsigned'.
982 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
983 add_setshow_zinteger_cmd.
984 * inferior.h: Update declaration of 'debug_infrun'.
985 * infrun.c (debug_infrun): Add 'unsigned'.
986 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
987 add_setshow_zinteger_cmd.
988 * jit.c (jit_debug): Add 'unsigned'.
989 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
990 add_setshow_zinteger_cmd.
991 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
992 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
993 instead of add_setshow_zinteger_cmd.
994 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
995 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
996 add_setshow_zinteger_cmd.
997 * machoread.c (mach_o_debug_level): Add 'unsigned'.
998 (_initialize_machoread): Call add_setshow_zuinteger_cmd
999 instead of add_setshow_zinteger_cmd.
1000 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1001 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1002 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1003 intead of add_setshow_zinteger_cmd.
1004 * mips-tdep.c (mips_debug): Add 'unsigned'.
1005 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1006 instead of add_setshow_zinteger_cmd.
1007 * monitor.c (monitor_debug): Add 'unsigned'.
1008 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1009 add_setshow_zinteger_cmd.
1010 * observer.c (observer_debug): Add 'unsigned'.
1011 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1012 add_setshow_zinteger_cmd.
1013 * parse.c (expressiondebug): Add 'unsigned'.
1014 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1015 add_setshow_zinteger_cmd.
1016 * record.c (record_debug): Add 'unsigned'.
1017 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1018 add_setshow_zinteger_cmd.
1019 * record.h: Update the declaration of 'record_debug'.
1020 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1021 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1022 add_setshow_zinteger_cmd.
1023 * serial.c (global_serial_debug_p): Add 'unsigned'.
1024 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1025 add_setshow_zinteger_cmd.
1026 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1027 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1028 add_setshow_zinteger_cmd.
1029 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1030 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1031 add_setshow_zinteger_cmd.
1032 * target.c (targetdebug): Add 'unsigned'.
1033 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1034 add_setshow_zinteger_cmd.
1035 * valops.c (overload_debug): Add 'unsigned'.
1036 * varobj.c (varobjdebug): Add 'unsigned'.
1037 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1038 add_setshow_zinteger_cmd.
1039 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1040 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1041 instead of add_setshow_zinteger_cmd.
1043 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1044 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1045 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1046 instead of add_setshow_zinteger_cmd.
1047 * gdbarch.c, gdbarch.h: Re-generated.
1049 2012-08-02 Yao Qi <yao@codesourcery.com>
1051 * nto-tdep.c: Don't include cli/cli-decode.h and
1053 (_initialize_nto_tdep): Remove.
1054 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1056 Remove macro nto_internal_debugging.
1058 2012-08-01 Richard Henderson <rth@redhat.com>
1060 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1061 (mep-*-*) [gdb_target_obs]: Likewise.
1063 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1065 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1066 linux_get_siginfo_type.
1068 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1070 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1072 (call_function_by_hand) <ON_STACK>: Call write_memory with
1073 gdbarch_breakpoint_from_pc, if possible.
1074 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1077 2012-07-31 Yao Qi <yao@codesourcery.com>
1079 * tracepoint.c: Add 'static' for some variables.
1081 2012-07-31 Yao Qi <yao@codesourcery.com>
1083 * go32-nat.c: Declare _initialize_go32_nat.
1084 * ser-go32.c: Declare _initialize_ser_dos.
1085 * top.c (do_chdir_cleanup): Add 'static'.
1087 2012-07-30 Keith Seitz <keiths@redhat.com>
1089 * linespec.c (linespec_lex_number): A number followed
1090 by quotes is a valid number, too.
1092 2012-07-30 Tom Tromey <tromey@redhat.com>
1094 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1096 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1098 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1099 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1101 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1103 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1104 invalid or reevaluated to prevent prevent references to possibly
1105 delete'd type objects being left in the varobj.
1107 2012-07-27 Tom Tromey <tromey@redhat.com>
1108 Jan Kratochvil <jan.kratochvil@redhat.com>
1110 * copying.awk: Print buffer-read-only and vi ro markers.
1111 * copying.c: Rebuild.
1112 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1113 * gdbarch.c, gdbarch.h: Rebuild.
1114 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1115 buffer-read-only and vi ro markers.
1116 * features/arm-with-iwmmxt.c: Rebuild.
1117 * features/arm-with-m-fpa-layout.c: Rebuild.
1118 * features/arm-with-m-vfp-d16.c: Rebuild.
1119 * features/arm-with-m.c: Rebuild.
1120 * features/arm-with-neon.c: Rebuild.
1121 * features/arm-with-vfpv2.c: Rebuild.
1122 * features/arm-with-vfpv3.c: Rebuild.
1123 * features/i386/amd64-avx-linux.c: Rebuild.
1124 * features/i386/amd64-avx.c: Rebuild.
1125 * features/i386/amd64-linux.c: Rebuild.
1126 * features/i386/amd64.c: Rebuild.
1127 * features/i386/i386-avx-linux.c: Rebuild.
1128 * features/i386/i386-avx.c: Rebuild.
1129 * features/i386/i386-linux.c: Rebuild.
1130 * features/i386/i386-mmx-linux.c: Rebuild.
1131 * features/i386/i386-mmx.c: Rebuild.
1132 * features/i386/i386.c: Rebuild.
1133 * features/i386/x32-avx-linux.c: Rebuild.
1134 * features/i386/x32-avx.c: Rebuild.
1135 * features/i386/x32-linux.c: Rebuild.
1136 * features/i386/x32.c: Rebuild.
1137 * features/mips-dsp-linux.c: Rebuild.
1138 * features/mips-linux.c: Rebuild.
1139 * features/mips64-dsp-linux.c: Rebuild.
1140 * features/mips64-linux.c: Rebuild.
1141 * features/rs6000/powerpc-32.c: Rebuild.
1142 * features/rs6000/powerpc-32l.c: Rebuild.
1143 * features/rs6000/powerpc-403.c: Rebuild.
1144 * features/rs6000/powerpc-403gc.c: Rebuild.
1145 * features/rs6000/powerpc-405.c: Rebuild.
1146 * features/rs6000/powerpc-505.c: Rebuild.
1147 * features/rs6000/powerpc-601.c: Rebuild.
1148 * features/rs6000/powerpc-602.c: Rebuild.
1149 * features/rs6000/powerpc-603.c: Rebuild.
1150 * features/rs6000/powerpc-604.c: Rebuild.
1151 * features/rs6000/powerpc-64.c: Rebuild.
1152 * features/rs6000/powerpc-64l.c: Rebuild.
1153 * features/rs6000/powerpc-7400.c: Rebuild.
1154 * features/rs6000/powerpc-750.c: Rebuild.
1155 * features/rs6000/powerpc-860.c: Rebuild.
1156 * features/rs6000/powerpc-altivec32.c: Rebuild.
1157 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1158 * features/rs6000/powerpc-altivec64.c: Rebuild.
1159 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1160 * features/rs6000/powerpc-cell32l.c: Rebuild.
1161 * features/rs6000/powerpc-cell64l.c: Rebuild.
1162 * features/rs6000/powerpc-e500.c: Rebuild.
1163 * features/rs6000/powerpc-e500l.c: Rebuild.
1164 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1165 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1166 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1167 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1168 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1169 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1170 * features/rs6000/powerpc-vsx32.c: Rebuild.
1171 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1172 * features/rs6000/powerpc-vsx64.c: Rebuild.
1173 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1174 * features/rs6000/rs6000.c: Rebuild.
1175 * features/s390-linux32.c: Rebuild.
1176 * features/s390-linux32v1.c: Rebuild.
1177 * features/s390-linux32v2.c: Rebuild.
1178 * features/s390-linux64.c: Rebuild.
1179 * features/s390-linux64v1.c: Rebuild.
1180 * features/s390-linux64v2.c: Rebuild.
1181 * features/s390x-linux64.c: Rebuild.
1182 * features/s390x-linux64v1.c: Rebuild.
1183 * features/s390x-linux64v2.c: Rebuild.
1184 * features/tic6x-c62x-linux.c: Rebuild.
1185 * features/tic6x-c62x.c: Rebuild.
1186 * features/tic6x-c64x-linux.c: Rebuild.
1187 * features/tic6x-c64x.c: Rebuild.
1188 * features/tic6x-c64xp-linux.c: Rebuild.
1189 * features/tic6x-c64xp.c: Rebuild.
1191 2012-07-27 Tom Tromey <tromey@redhat.com>
1193 * c-exp.y (classify_name): Avoid assignment in condition.
1195 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1197 * amd64-windows-tdep.c: Include "frame.h".
1198 (amd64_windows_skip_trampoline_code): New function.
1199 (amd64_windows_init_abi): Add trampoline registration.
1201 2012-07-27 Yao Qi <yao@codesourcery.com>
1203 * tracepoint.c (cur_traceframe_number): Remove.
1204 (set_tfile_traceframe): Remove.
1205 (tfile_trace_find, tfile_fetch_registers): Update callers.
1206 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1207 (tfile_open, tfile_trace_find): Likewise.
1209 2012-07-27 Yao Qi <yao@codesourcery.com>
1211 * thread.c (switch_to_thread): Don't call registers_changed.
1213 2012-07-26 Tom Tromey <tromey@redhat.com>
1215 * Makefile.in (SFILES): Remove objc-exp.y.
1216 (YYFILES): Remove objc-exp.c.
1217 (YYOBJ): Remove objc-exp.o.
1218 (local-maintainer-clean): Don't mention objc-exp.c.
1219 * c-exp.y: Include objc-lang.h.
1220 (%union) <class>: New field.
1221 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1222 (exp): Clone subscript production for OBJC_LBRAC. Add various
1223 Objective C productions.
1224 (msglist, msgarglist, msgarg): New productions.
1225 (array_mod, func_mod, operator): Clone productions for
1227 (parse_string_or_char): Handle '@' strings.
1228 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1229 (classify_name): Check la_name_of_this. Recognize ObjC class
1231 * objc-exp.y: Remove.
1232 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1233 * objc-lang.h (objc_parse, objc_error): Don't declare.
1235 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1237 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1239 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1241 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1244 2012-07-26 Tom Tromey <tromey@redhat.com>
1246 * copying.c: Rebuild.
1247 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1250 2012-07-26 Tom Tromey <tromey@redhat.com>
1252 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1254 (print_objfile_statistics): Likewise.
1255 (maintenance_print_symbols): Likewise.
1256 (maintenance_print_msymbols): Likewise.
1257 (maintenance_print_objfiles): Likewise.
1258 * psymtab.c (print_partial_symbols): Call QUIT.
1259 (maintenance_print_psymbols): Likewise. Don't modify
1261 * copying.c (show_copying_command): Don't modify immediate_quit.
1262 (show_warranty_command): Likewise.
1263 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1265 2012-07-26 Keith Seitz <keiths@redhat.com>
1267 * linespec.c (linespec_lexer_lex_number): The input
1268 is also a valid number if the next character is a comma
1271 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1273 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1276 2012-07-26 Tristan Gingold <gingold@adacore.com>
1278 * machoread.c: Include gdb_bfd.h.
1280 2012-07-26 Tristan Gingold <gingold@adacore.com>
1282 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1285 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1287 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1289 (dwarf2_evaluate_loc_desc): Likewise.
1290 (dwarf2_loc_desc_needs_frame): Likewise.
1291 (locexpr_describe_location_1): Likewise.
1292 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1294 (struct dwarf2_loclist_baton): Likewise.
1295 * dwarf2read.c (struct dwarf_block): Likewise.
1296 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1297 (decode_locdesc): Expand SIZE and I to size_t.
1299 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1301 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1303 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1305 * doublest.c (convert_doublest_to_floatformat): If the exponent
1306 is too small, treat the value as zero. If the exponent is too
1307 large, treat the value as infinity.
1309 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1311 * configure.ac: Add --enable-lmcheck configure option.
1312 * configure: Regenerate.
1314 2012-07-25 Tom Tromey <tromey@redhat.com>
1316 * NEWS: Mention maint info bfds.
1317 * gdb_bfd.c (all_bfds): New global.
1318 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1319 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1322 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1324 * configure.tgt: Add v850*-*-rtems*.
1326 2012-07-25 Tom Tromey <tromey@redhat.com>
1328 * macrotab.c (macro_bcache_str): Remove cast.
1330 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1332 * linespec.c (linespec_lexer_lex_number): Update comments,
1333 change the return and add check to make sure the input is
1334 the decimal numbers.
1335 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1336 false, call linespec_lexer_lex_string.
1338 2012-07-24 Tom Tromey <tromey@redhat.com>
1340 * symfile.c (symbol_file_add): Don't open BFD twice.
1342 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1344 * breakpoint.c (create_breakpoint): Store condition for pending
1347 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1349 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1350 (m68k_return_value): Handle complex types like structures.
1351 (m68k_svr4_return_value): Likewise.
1353 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1355 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1356 parameters to bfd_get_section_name.
1358 2012-07-24 Yao Qi <yao@codesourcery.com>
1360 * cli/cli-setshow.c: Handle case 'var_uinteger'
1361 and 'var_zuninteger' together. Handle case 'var_integer' and
1362 'var_zinteger' together.
1364 2012-07-23 Keith Seitz <keiths@redhat.com>
1366 * linespec.c (convert_linespec_to_sal): Don't add
1367 any symbols to the result vector if symbol_to_sal
1370 2012-07-23 Keith Seitz <keiths@redhat.com>
1372 * linespec.c (decode_objc): Record the function name
1375 2012-07-23 Tom Tromey <tromey@redhat.com>
1377 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1379 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1380 (map_vmap): Acquire a reference to the BFD.
1382 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1384 * p-valprint.c (pascal_object_print_value): Replace potentially
1385 unsafe alloca with xmalloc/xfree.
1386 * valops.c (search_struct_method): Likewise.
1388 2012-07-23 Tom Tromey <tromey@redhat.com>
1390 * solib-svr4.c (enable_break): Update.
1391 * bfd-target.h (target_bfd_reopen): Update documentation.
1393 2012-07-23 Tom Tromey <tromey@redhat.com>
1395 * symfile.c (separate_debug_file_exists): Update.
1396 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1397 (reread_symbols): Update.
1398 * elfread.c (build_id_verify): Update.
1399 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1400 bfd_open_maybe_remote.
1402 2012-07-23 Tom Tromey <tromey@redhat.com>
1404 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1406 2012-07-23 Tom Tromey <tromey@redhat.com>
1408 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1410 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1412 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1413 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1415 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1416 * objfiles.c (allocate_objfile): Acquire a new reference.
1417 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1418 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1419 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1420 a cleanup for 'nbfd'.
1421 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1423 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1424 make a cleanup for 'abfd'.
1425 (symbol_file_add): Make a BFD cleanup.
1427 2012-07-23 Tom Tromey <tromey@redhat.com>
1429 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1430 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1431 * corelow.c (core_open): Use gdb_bfd_fopen.
1432 * dsrec.c (load_srec): Use gdb_bfd_openr.
1433 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1434 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1435 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1436 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1437 (gdb_bfd_fdopenr): New functions.
1438 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1439 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1440 (gdb_bfd_fdopenr): Declare.
1441 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1442 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1443 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1444 gdb_bfd_openr_next_archived_file.
1445 (macho_check_dsym): Use gdb_bfd_openr.
1446 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1447 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1448 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1449 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1451 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1452 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1453 gdb_bfd_openr_next_archived_file.
1454 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1456 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1458 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1459 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1460 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1461 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1462 (symfile_bfd_open): Use gdb_bfd_fopen.
1463 (generic_load): Use gdb_bfd_openr.
1464 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1466 2012-07-23 Tom Tromey <tromey@redhat.com>
1468 * bfd-target.c (target_bfd_reopen): Update.
1469 * cli/cli-dump.c (bfd_openr_with_cleanup)
1470 (bfd_openw_with_cleanup): Update.
1471 * corelow.c (core_open): Update.
1472 * dsrec.c (load_srec): Update.
1473 * exec.c (exec_file_attach): Update.
1474 * gcore.c (create_gcore_bfd): Update.
1475 * gdb_bfd.c (gdb_bfd_ref): Return void.
1476 (gdb_bfd_open): Update.
1477 * gdb_bfd.h (gdb_bfd_ref): Return void.
1479 * jit.c (jit_bfd_try_read_symtab): Update.
1480 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1481 * machoread.c (macho_symfile_read_all_oso): Update.
1482 (macho_check_dsym): Update.
1483 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1484 * remote-m32r-sdi.c (m32r_load): Update.
1485 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1486 * rs6000-nat.c (add_vmap): Update.
1487 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1489 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1490 * solib-spu.c (spu_bfd_open): Update.
1491 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1492 * spu-linux-nat.c (spu_bfd_open): Update.
1493 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1494 (generic_load): Update.
1495 * windows-nat.c (windows_make_so): Update.
1497 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1499 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1501 2012-07-20 Jeff Kenton <jkenton@tilera.com>
1503 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1504 SIGTRAMP_FRAME unwinding.
1506 2012-07-20 Doug Evans <dje@google.com>
1508 * NEWS: Document new options "set/show use-deprecated-index-sections",
1509 and delete reference to --use-deprecated-index-sections.
1510 * symfile.h (use_deprecated_index_sections): Delete.
1511 * dwarf2read.c (use_deprecated_index_sections): Make static.
1512 (read_index_from_section): Update wording of how to load
1513 deprecated index sections.
1514 (_initialize_dwarf2_read): New options
1515 "set/show use-deprecated-index-sections".
1516 * main.c (captured_main): Delete --use-deprecated-index-sections.
1518 2012-07-20 Pedro Alves <palves@redhat.com>
1523 * infrun.c (handle_inferior_event) <new thread>: Don't special
1524 case minus_one_ptid.
1525 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1526 * linux-thread-db.c (thread_get_info_callback): Don't return early
1527 if the thread is zombie.
1528 (thread_from_lwp): Change return type to void. Rewrite stale
1530 (attach_thread): Don't return early if the thread is zombie,
1531 instead set its "dying" flag.
1532 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1533 (find_new_threads_callback): Don't return early if the thread is
1536 2012-07-20 Pedro Alves <palves@redhat.com>
1538 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1539 * target.c (target_wait): Likewise.
1540 (str_comma_list_concat_elem, do_option, target_options_to_string):
1542 * target.h (target_options_to_string): Declare.
1544 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1545 Tom Tromey <tromey@redhat.com>
1547 * dwarf2read.c (dwarf_decode_macros)
1548 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1549 DW_MACRO_GNU_transparent_include_alt>: New cases.
1550 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1551 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1553 2012-07-20 Tom Tromey <tromey@redhat.com>
1555 * dwarf2read.c (try_open_dwo_file): Don't call
1556 gdb_bfd_stash_filename.
1558 2012-07-20 Pedro Alves <palves@redhat.com>
1560 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1561 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1562 (i386_process_record): Tweak description comments.
1564 2012-07-20 Pedro Alves <palves@redhat.com>
1566 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1567 (i386_process_record): Use record_read_memory.
1568 * record.c (record_read_memory): New function.
1569 (record_arch_list_add_mem, record_exec_insn): Use
1571 * record.h (record_read_memory): Declare.
1573 2012-07-20 Yao Qi <yao@codesourcery.com>
1575 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1578 2012-07-19 Pedro Alves <palves@redhat.com>
1580 * record.c (record_resume): Ask the target beneath to report all
1583 2012-07-19 Doug Evans <dje@google.com>
1585 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1586 there's no section at address zero.
1587 (dwarf2_record_block_ranges): Ditto.
1589 2012-07-19 Yao Qi <yao@codesourcery.com>
1591 * command.h, remote.c: Fix a typo in comment.
1593 2012-07-19 Tom Tromey <tromey@redhat.com>
1596 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1597 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1598 OP_DECLTYPE>: New cases.
1599 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1600 (type_exp): Add new productions.
1601 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1603 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1605 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1606 OP_DECLTYPE>: New case.
1607 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1609 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1610 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1612 2012-07-19 Tom Tromey <tromey@redhat.com>
1614 * c-exp.y (enum token_flags): New.
1615 (struct token) <cxx_only>: Remove.
1617 (tokentab3, tokentab2, ident_tokens): Update.
1618 (lex_one_token): Update. Handle FLAG_SHADOW.
1620 2012-07-19 Tom Tromey <tromey@redhat.com>
1622 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1623 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1624 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1625 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1626 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1627 type_exp production where appropriate.
1628 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1629 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1630 <UNOP_MEMVAL_TYPE>: New case.
1631 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1632 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1633 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1634 <UNOP_MEMVAL_TYPE>: New case.
1635 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1636 UNOP_REINTERPRET_CAST>: Update.
1637 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1638 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1639 UNOP_REINTERPRET_CAST>: Update.
1640 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1641 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1642 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1645 2012-07-19 Yao Qi <yao@codesourcery.com>
1646 Jan Kratochvil <jan.kratochvil@redhat.com>
1648 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1649 and case 'var_optional_filename' together.
1650 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1651 instead of add_setshow_optional_filename_cmd for setshow command
1652 'args'. Set completer for 'set args'.
1654 2012-07-18 Doug Evans <dje@google.com>
1656 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1657 * common/gdb_vecs.c: New file, contents from utils.c.
1658 * common/host-defs.h: New file, contents from defs.h.
1659 * utils.h: New file, contents from defs.h.
1660 * defs.h: Move all declarations of objects defined in utils.c
1661 to utils.h (except QUIT() and related).
1662 #include "utils.h", "host-defs.h".
1663 * probe.h (probe_p): Move here from gdb_vecs.h.
1664 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1665 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1666 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1667 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1668 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1669 (COMMON_OBS): Add gdb_vecs.o.
1670 (gdb_vecs.o): New rule.
1672 2012-07-18 Keith Seitz <keiths@redhat.com>
1674 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1675 parameter. If non-zero, use SYMNAME as the canonical name
1678 (convert_linespec_to_sals): Use add_sal_to_sals for
1680 (decode_line_full): No need to "fill in missing canonical names"
1681 anymore. Simply make cleanups for the allocated names.
1683 2012-07-18 Keith Seitz <keiths@redhat.com>
1685 * linespec.c (struct linespec): Constify expression,
1686 source_filename, function_name, and label_name.
1687 (symbol_not_found_error): Make all parameters const.
1688 (linespec_parser_delete): No need to check for NULL
1689 when using xfree. Cast const char * to char * for xfree.
1691 2012-07-18 Keith Seitz <keiths@redhat.com>
1693 * breakpoint.c (invalid_thread_id_error): New function.
1694 (find_condition_and_thread): Use invalid_thread_id_error.
1695 (watch_command_1): Likewise.
1697 2012-07-18 Tom Tromey <tromey@redhat.com>
1699 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1700 * contrib/cc-with-tweaks.sh: New file.
1702 2012-07-18 Tom Tromey <tromey@redhat.com>
1704 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1705 (locate_dwz_sections): Recognize .gdb_index.
1706 (create_cus_from_index_list): New function.
1707 (create_cus_from_index): Use it. Handle .dwz data.
1708 (read_index_from_section): New function, extracted from
1710 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1713 2012-07-18 Tom Tromey <tromey@redhat.com>
1715 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1716 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1717 <is_dwz>: New field.
1718 (struct dwz_file): New.
1719 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1720 (locate_dwz_sections, dwarf2_get_dwz_file)
1721 (get_abbrev_section_for_cu): New functions.
1722 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1723 (read_and_check_type_unit_head): Add abbrev_section argument.
1724 (create_debug_types_hash_table): Update.
1725 (init_cutu_and_read_dies): Use proper abbrev section.
1726 (init_cutu_and_read_dies_no_follow): Likewise.
1727 (set_partial_user): Do nothing if PST==NULL.
1728 (read_comp_units_from_section): New function.
1729 (create_all_comp_units): Use it.
1730 (scan_partial_symbols, partial_die_parent_scope): Update.
1731 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1732 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1733 (find_partial_die): Add offset_in_dwz argument. Update.
1734 (guess_partial_die_structure_name, fixup_partial_die): Update.
1735 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1736 DW_FORM_GNU_strp_alt.
1737 (read_indirect_string_from_dwz): New function.
1738 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1739 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1740 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1741 (follow_die_offset): Add offset_in_dwz argument.
1742 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1743 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1744 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1745 Handle new macro forms.
1746 (dwarf_decode_macros): Update.
1747 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1748 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1749 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1750 (create_debug_types_hash_table): Use correct abbrev section.
1751 (get_debug_line_section): New function.
1752 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
1753 (process_full_comp_unit): Pass 'required' argument to
1754 end_symtab_get_static_block.
1755 * buildsym.h (end_symtab_get_static_block): Update.
1756 * buildsym.c (end_symtab_get_static_block): Add 'required'
1758 (end_symtab, end_expandable_symtab): Update.
1760 2012-07-18 Tom Tromey <tromey@redhat.com>
1762 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
1764 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
1765 (zlib_decompress_section): Remove.
1766 (dwarf2_read_section): Use gdb_bfd_map_section.
1767 (munmap_section_buffer): Remove.
1768 (free_dwo_file, dwarf2_per_objfile_free): Don't use
1769 munmap_section_buffer.
1770 * gdb_bfd.c: Include zlib.h, sys/mman.h.
1771 (struct gdb_bfd_section_data): New.
1772 (free_one_bfd_section): New function.
1773 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
1774 (get_section_descriptor, zlib_decompress_section)
1775 (gdb_bfd_map_section): New functions.
1776 * gdb_bfd.h (gdb_bfd_map_section): Declare.
1778 2012-07-18 Tom Tromey <tromey@redhat.com>
1780 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
1782 2012-07-18 Tom Tromey <tromey@redhat.com>
1784 * gdb_bfd.c (struct gdb_bfd_data): New.
1785 (gdb_bfd_cache): New global.
1786 (struct gdb_bfd_cache_search): New.
1787 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
1788 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
1789 * gdb_bfd.h (gdb_bfd_open): Declare.
1791 2012-07-18 Tom Tromey <tromey@redhat.com>
1793 * utils.c (make_cleanup_bfd_unref): Rename from
1794 make_cleanup_bfd_close.
1795 * defs.h (make_cleanup_bfd_unref): Rename from
1796 make_cleanup_bfd_close.
1797 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
1798 (bfd_openw_with_cleanup): Update.
1799 * corelow.c (core_open): Update.
1800 * dsrec.c (load_srec): Update.
1801 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1802 * remote-m32r-sdi.c (m32r_load): Update.
1803 * remote-mips.c (mips_load_srec): Update.
1804 (pmon_load_fast): Update.
1805 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1807 (darwin_bfd_open): Update.
1808 * solib.c (solib_bfd_fopen): Update.
1809 * symfile-mem.c (symbol_file_add_from_memory): Update.
1810 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
1811 (symfile_bfd_open): Update.
1812 (generic_load): Update.
1814 2012-07-18 Tom Tromey <tromey@redhat.com>
1816 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
1817 (pmon_load_fast): Likewise.
1818 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
1819 (m32r_upload_command): Likewise.
1820 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
1821 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1822 Use make_cleanup_bfd_close.
1824 2012-07-18 Tom Tromey <tromey@redhat.com>
1826 * symfile.c (symfile_bfd_open): Don't copy name. Call
1827 gdb_bfd_stash_filename.
1828 (load_command): Open the new BFD before freeing the old.
1829 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
1830 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
1831 Call gdb_bfd_stash_filename.
1832 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
1833 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
1834 gdb_bfd_stash_filename.
1835 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1836 Free found_pathname.
1837 * rs6000-nat.c (add_vmap): Don't copy filename. Call
1838 gdb_bfd_stash_filename.
1839 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
1840 * machoread.c (macho_add_oso_symfile): Call
1841 gdb_bfd_stash_filename.
1842 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
1843 gdb_bfd_stash_filename.
1844 (macho_check_dsym): Don't copy filename. Call
1845 gdb_bfd_stash_filename.
1846 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
1847 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
1848 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
1849 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
1850 * exec.c (exec_close): Don't free the BFD's filename.
1851 (exec_file_attach): Don't copy the filename. Call
1852 gdb_bfd_stash_filename.
1853 * corelow.c (core_close): Don't free the BFD's filename.
1854 (core_open): Call gdb_bfd_stash_filename.
1855 * corefile.c (reopen_exec_file): Remove #if 0 code.
1856 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
1858 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
1860 2012-07-18 Tom Tromey <tromey@redhat.com>
1862 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
1864 (free_dwo_file): Use gdb_bfd_unref.
1865 * cli/cli-dump.c: Include gdb_bfd.h.
1866 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
1867 (bfd_openr_with_cleanup): Likewise.
1868 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
1870 * utils.c: Include gdb_bfd.h.
1871 (do_bfd_close_cleanup): Use gdb_bfd_unref.
1872 * symfile.c: Include gdb_bfd.h.
1873 (separate_debug_file_exists): Use gdb_bfd_unref.
1874 (bfd_open_maybe_remote): Use gdb_bfd_ref.
1875 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1876 (generic_load): Use gdb_bfd_ref.
1877 (reread_symbols): Use gdb_bfd_unref.
1878 * symfile-mem.c: Include gdb_bfd.h.
1879 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
1880 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1881 * solib.c: Include gdb_bfd.h.
1882 (solib_bfd_fopen): Use gdb_bfd_ref.
1883 (solib_bfd_open): Use gdb_bfd_unref.
1884 (free_so_symbols): Use gdb_bfd_unref.
1885 (reload_shared_libraries_1): Use gdb_bfd_unref.
1886 * solib-spu.c: Include gdb_bfd.h.
1887 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
1888 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
1890 * solib-frv.c: Include gdb_bfd.h.
1891 (enable_break2): Use gdb_bfd_unref.
1892 * solib-dsbt.c: Include gdb_bfd.h.
1893 (enable_break2): Use gdb_bfd_unref.
1894 * solib-darwin.c: Include gdb_bfd.h.
1895 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
1897 (darwin_bfd_open): Use gdb_bfd_unref.
1898 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
1899 * remote-mips.c: Include gdb_bfd.h.
1900 (mips_load_srec): Use gdb_bfd_ref.
1901 (pmon_load_fast): Use gdb_bfd_ref.
1902 * remote-m32r-sdi.c: Include gdb_bfd.h.
1903 (m32r_load): Use gdb_bfd_ref.
1904 * record.c: Include gdb_bfd.h.
1905 (record_save_cleanups): Use gdb_bfd_unref.
1906 (cmd_record_save): Use gdb_bfd_unref.
1907 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
1909 * objfiles.h (gdb_bfd_close_or_warn): Remove.
1910 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
1911 * objfiles.c: Include gdb_bfd.h.
1912 (free_objfile): Use gdb_bfd_unref.
1913 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
1915 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
1916 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
1917 (macho_check_dsym): Likewise.
1918 * m32r-rom.c: Include gdb_bfd.h.
1919 (m32r_load): Use gdb_bfd_ref.
1920 (m32r_upload_command): Use gdb_bfd_ref.
1921 * jit.c: Include gdb_bfd.h.
1922 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
1923 * gdb_bfd.h: New file.
1924 * gdb_bfd.c: New file.
1925 * gcore.c: Include gdb_bfd.h.
1926 (create_gcore_bfd): Use gdb_bfd_ref.
1927 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
1928 (gcore_command): Use gdb_bfd_unref.
1929 * exec.c: Include gdb_bfd.h.
1930 (exec_close): Use gdb_bfd_unref.
1931 (exec_close_1): Use gdb_bfd_unref.
1932 (exec_file_attach): Use gdb_bfd_ref.
1933 * elfread.c: Include gdb_bfd.h.
1934 (build_id_verify): Use gdb_bfd_unref.
1935 * dsrec.c: Include gdb_bfd.h.
1936 (load_srec): Use gdb_bfd_ref.
1937 * corelow.c: Include gdb_bfd.h.
1938 (core_close): Use gdb_bfd_unref.
1939 (core_open): Use gdb_bfd_ref.
1940 * bfd-target.c: Include gdb_bfd.h.
1941 (target_bfd_xclose): Use gdb_bfd_unref.
1942 (target_bfd_reopen): Use gdb_bfd_ref.
1943 * Makefile.in (SFILES): Add gdb_bfd.c.
1944 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
1945 (COMMON_OBS): Add gdb_bfd.o.
1947 2012-07-18 Keith Seitz <keiths@redhat.com>
1949 * breakpoint.c (find_condition_and_thread): Initialize
1951 (create_breakpiont): find_condition_and_thread will now
1952 initialize COND_STRING, THREAD, and REST (and TASK).
1953 (addr_string_to_sals): Likewise.
1955 2012-07-18 Pedro Alves <palves@redhat.com>
1957 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
1958 Pull the single step breakpoints out of the target.
1960 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1962 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
1963 * stap-probe.c (compile_probe_arg): Likewise.
1965 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1967 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
1968 (elf_compile_to_ax): Likewise.
1969 * infrun.c (insert_exception_resume_from_probe): Likewise.
1970 (check_exception_resume): Remove `objfile' variable.
1971 * probe.c (find_probe_by_pc): Remove `objfile' argument.
1972 (struct probe_and_objfile, probe_and_objfile_s): Delete.
1973 (collect_probes): Adjust return value to `VEC (probe_p) *'.
1974 (compare_entries): Rename to...
1975 (compare_probes): ...this. Adjust function to work with
1976 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
1978 (gen_ui_out_table_header_info): Adjust `probes' argument to be
1980 (print_ui_out_info): Adjust argument to be `struct probe *'.
1981 (info_probes_for_ops): Adjust internal computations to use
1983 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
1984 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
1985 gen_info_probes_table_values>: Remove `objfile' argument.
1986 (struct probe) <objfile>: New field.
1987 (find_probe_by_pc): Remove `objfile' argument.
1988 * stap-probe.c (stap_parse_probe_arguments): Likewise.
1989 (stap_get_probe_argument_count): Likewise.
1990 (stap_get_arg): Likewise.
1991 (stap_evaluate_probe_argument): Likewise.
1992 (stap_compile_to_ax): Likewise.
1993 (compile_probe_arg): Refactor not to pass `objfile' anymore.
1994 (handle_stap_probe): Fill `objfile' field from `struct probe'.
1995 (stap_gen_info_probes_table_header): Remove `objfile' argument.
1996 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
1997 sym_compile_to_ax>: Likewise.
1999 2012-07-18 Terry Guo <terry.guo@arm.com>
2002 * defs.h (GDB_MI_MSG_WIDTH): New.
2003 * ser_base (ser_base_read_error_fd): New function.
2004 (do_ser_base_readchar): Poll error file descriptor as well as
2006 (generic_readchar): Refactor error handling.
2008 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2010 * NEWS: Create a new section for the next release branch.
2011 Rename the section of the current branch, now that it has
2014 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2016 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2017 * version.in: Bump version to 7.5.50.20120718-cvs.
2019 2012-07-17 Keith Seitz <keiths@redhat.com>
2021 * linespec.c (linespec_parse_line_offset): Make parameter
2024 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2027 * f-valprint.c (info_common_command): New variable frame_id.
2028 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2029 * printcmd.c (print_variable_and_value): Extend function comment.
2030 Add comment for invalidated FRAME.
2031 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2032 FI form FRAME_ID after each print_frame_local_vars.
2033 (struct print_variable_and_value_data): Change frame to frame_id.
2034 (do_print_variable_and_value): New variable frame, initialize it from
2035 p->frame_id. Add comment for invalidated FRAME.
2036 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2037 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2038 for invalidated FRAME.
2040 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2041 Pedro Alves <palves@redhat.com>
2043 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2046 2012-07-16 Tom Tromey <tromey@redhat.com>
2048 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2050 2012-07-15 Doug Evans <dje@google.com>
2052 * dwarf2read.c (stmt_list_hash): New struct.
2053 (type_unit_group): Embed "per_cu" member, remove pointer.
2054 New union member "t", move member "tus" into it, all uses updated.
2055 New member "hash", replaces member "line_offset, all uses updated.
2056 (quick_file_names): Replace member "offset" with "hash", all uses
2058 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2059 (hash_file_name_entry, eq_file_name_entry): Call them.
2060 (hash_type_unit_group, eq_type_unit_group): Ditto.
2061 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2062 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2063 (dw2_get_file_names): Update.
2064 (create_type_unit_group): Replace "per_cu" arg with "cu".
2065 All callers updated. Fix "quick" (.gdb_index) handling.
2066 (get_type_unit_group): Replace "per_cu" arg with "cu".
2067 All callers updated.
2068 (build_type_unit_groups): Don't reset tu_stats.
2070 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2071 "tab_cur_size". Change member "tab" to be a htab_t.
2072 (create_filename_seen_cache): Update.
2073 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2074 (filename_seen): Update.
2076 2012-07-13 Doug Evans <dje@google.com>
2078 * symtab.c (filename_seen): Update comment.
2080 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2081 Doug Evans <dje@google.com>
2083 * buildsym.c (end_symtab_1): Split it to ...
2084 (end_symtab_get_static_block): ... this ...
2085 (end_symtab_from_static_block): ... and this function.
2086 (end_symtab, end_expandable_symtab): Call them.
2087 * buildsym.h (end_symtab_get_static_block)
2088 (end_symtab_from_static_block): New declarations.
2089 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2090 Set its valid CU ranges.
2092 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2094 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2095 DW_OP_GNU_parameter_ref.
2097 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2099 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2100 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2102 2012-07-13 Doug Evans <dje@google.com>
2104 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2105 (filename_seen_cache): New struct.
2106 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2107 (create_filename_seen_cache): New function.
2108 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2109 (filename_seen): Delete arg "first". New arg "cache". All callers
2111 (output_source_filename_data): New struct.
2112 (output_source_filename): Delete arg "first". New arg "data".
2113 All callers updated.
2114 (sources_info): Delete local "first". New locals "data", "cleanups".
2115 Rewrite to use filename_seen_cache.
2116 (add_partial_filename_data): Delete member "first". New member
2117 "filename_seen_cache". All uses updated.
2118 (make_source_files_completion_list): Rewrite to use
2119 filename_seen_cache.
2121 2012-07-12 Doug Evans <dje@google.com>
2123 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2125 2012-07-10 Doug Evans <dje@google.com>
2128 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2129 all_type_unit_groups, type_unit_groups, tu_stats.
2130 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2131 All uses updated. Add type_unit_group to union "s".
2132 (type_unit_group): New struct.
2133 (IS_TYPE_UNIT_GROUP): New macro.
2134 (abbrev_table): Delete unused member "section".
2135 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2136 (dw2_get_cu): Assert not used with type_unit_group.
2137 (dw2_get_primary_cu): New function.
2138 (dw2_build_type_unit_groups_reader): New function.
2139 (dw2_build_type_unit_groups): New function.
2140 (dw2_get_file_names): Assert not called on type units.
2141 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2142 Redo loop to iterate over type unit groups instead of type units.
2143 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2144 (read_abbrev_offset): New function.
2145 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2147 (create_partial_symtab): New function.
2148 (process_psymtab_comp_unit_reader): Assert not used with type units.
2149 Call create_partial_symtab.
2150 (process_psymtab_type_unit): Delete.
2151 (hash_type_unit_group, eq_type_unit_group): New functions.
2152 (allocate_type_unit_groups_table): New function.
2153 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2154 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2155 (create_type_unit_group, get_type_unit_group): New functions.
2156 (tu_abbrev_offset): New struct.
2157 (sort_tu_by_abbrev_offset): New function.
2158 (add_type_unit_group_to_table): New function.
2159 (build_type_unit_groups): New function.
2160 (build_type_psymtabs_reader): New function.
2161 (build_type_psymtab_dependencies): New function.
2162 (build_type_psymtabs): Rewrite.
2163 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2164 is seen in a type unit.
2165 (process_queue): Move symtab expansion debugging printfs here.
2166 Call process_full_type_unit for type units.
2167 (compute_symtab_includes): Assert not called for type units.
2168 (process_cu_includes): Don't call compute_symtab_includes for
2170 (process_full_type_unit): New function.
2171 (process_imported_unit_die): Flag an error if called for type units.
2172 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2173 updated. Assert not called for type units.
2174 (read_file_scope): Call dwarf2_start_symtab.
2175 (setup_type_unit_groups): New function.
2176 (read_type_unit_scope): Rewrite.
2177 (abbrev_table_read_table): Initialize abbrev_table->offset.
2178 (abbrev_table_free_cleanup): New function.
2179 (dwarf2_start_symtab): New function.
2180 (load_full_type_unit): Assert not called for type unit groups.
2181 * buildsym.c (finish_block_internal): New arg "expandable".
2182 All callers updated.
2183 (start_symtab): Move most contents to ...
2184 (restart_symtab): ... here. New function.
2185 (reset_symtab_globals): New function.
2186 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2187 Call reset_symtab_globals.
2188 (end_symtab, end_expandable_symtab): New functions.
2189 (set_missing_symtab, augment_type_symtab): New functions.
2190 * buildsym.h (end_expandable_symtab): Declare.
2191 (augment_type_symtab, restart_symtab): Declare.
2192 * psympriv.h (struct partial_symtab): New member "anonymous".
2193 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2195 (read_psymtabs_with_filename): Ditto.
2196 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2197 (expand_symtabs_matching_via_partial): Ditto.
2198 (dump_psymtab): Update.
2199 * dictionary.c (dict_add_pending): New function.
2200 * dictionary.h (dict_add_pending): Declare.
2202 2012-07-09 Doug Evans <dje@google.com>
2204 * buildsym.c (start_subfile): Remove unnecessary check for
2207 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2209 * dwarf2read.c (load_full_type_unit): Simplify.
2211 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2212 to struct signatured_type **. All uses updated.
2214 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2215 All callers updated.
2217 2012-07-09 Tom Tromey <tromey@redhat.com>
2219 * c-exp.y (check_parameter_typelist): New function.
2220 (parameter_typelist): Call it.
2221 * eval.c (make_params): Handle '(void)' case.
2222 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2225 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2227 * common/linux-ptrace.c: Include gdb_assert.h.
2228 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2229 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2231 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2233 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2234 * linux-nat.c (linux_child_post_attach)
2235 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2237 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2239 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2240 nptl <2.7 bug workaround for core files.
2242 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2244 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2246 (save_siginfo): Remove.
2247 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2249 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2250 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2251 * linux-nat.h (struct lwp_info): Remove field siginfo.
2253 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2255 Code cleanup for the next patch.
2256 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2257 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2259 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2260 (ia64_linux_stopped_data_address):
2261 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2263 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2264 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2265 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2268 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2271 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2272 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2274 2012-07-06 Tom Tromey <tromey@redhat.com>
2276 * c-exp.y (DOTDOTDOT): New token.
2277 (func_mod, exp): Use parameter_typelist.
2278 (parameter_typelist): New production.
2279 (tokentab3): Add "..." token.
2280 * eval.c (make_params): Handle varargs.
2281 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2284 2012-07-06 Tom Tromey <tromey@redhat.com>
2287 * c-exp.y (%union) <tvec>: Change type.
2288 (func_mod): Now uses <tvec> type.
2289 (exp): Update for tvec change.
2290 (direct_abs_decl): Push the typelist.
2291 (func_mod): Return a typelist.
2292 (nonempty_typelist): Update for tvec change.
2293 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2294 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2295 * parse.c (pop_type_list): New function.
2296 (push_typelist): New function.
2297 (follow_types): Handle tp_function_with_arguments.
2298 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2299 (enum type_pieces) <tp_function_with_arguments>: New constant.
2300 (union type_stack_elt) <typelist_val>: New field.
2301 (push_typelist): Declare.
2303 2012-07-06 Tom Tromey <tromey@redhat.com>
2305 * c-exp.y (%union) <type_stack>: New field.
2306 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2307 (ptr_operator_ts): New production.
2309 * parse.c (type_stack_reserve): New function.
2310 (check_type_stack_depth): Use it.
2311 (pop_type_stack, append_type_stack, push_type_stack)
2312 (get_type_stack, type_stack_cleanup): New functions.
2313 (follow_types): Handle tp_type_stack.
2314 (_initialize_parse): Simplify initialization.
2315 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2317 (union type_stack_elt) <stack_val>: New field.
2318 (get_type_stack, append_type_stack, push_type_stack)
2319 (type_stack_cleanup): Declare.
2321 2012-07-06 Tom Tromey <tromey@redhat.com>
2323 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2325 (struct type_stack): New.
2326 * parse.c (type_stack, type_stack_size, type_stack_depth):
2328 (type_stack): New global.
2329 (parse_exp_in_context, check_type_stack_depth)
2330 (insert_into_type_stack, insert_type, push_type, push_type_int)
2331 (insert_type_address_space, pop_type, pop_type_int)
2332 (_initialize_parse): Update.
2334 2012-07-06 Tom Tromey <tromey@redhat.com>
2336 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2339 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2341 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2343 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2344 Jan Kratochvil <jan.kratochvil@redhat.com>
2346 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2347 alloca with xmalloc/xfree.
2349 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2351 * MAINTAINERS (Write After Approval): Add myself to the list.
2353 2012-07-05 Doug Evans <dje@google.com>
2355 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2357 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2359 * ax-gdb.c (cli/cli-utils.h): New include.
2360 (linespec.h): Ditto.
2361 (agent_eval_command_one): New function.
2362 (agent_command_1): Ditto.
2363 (agent_command): Call function agent_command_1.
2364 (agent_eval_command): Ditto.
2365 (_initialize_ax_gdb): Change help for "maint agent"
2366 and "maint agent-eval".
2368 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2370 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2371 * cli/cli-utils.c (check_for_argument): New function.
2372 * cli/cli-utils.h (check_for_argument): Ditto.
2374 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2376 * NEWS: Mention x32 ABI support.
2378 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2380 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2381 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2383 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2384 and pc_regnum_from_eax to -1. Update SP regnum from
2385 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2388 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2391 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2393 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2394 * dwarf2expr.h: Include gdbtypes.h.
2395 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2396 these forward declarations.
2397 (cu_offset, sect_offset): Move these ...
2398 * gdbtypes.h: Remove include dwarf2expr.h.
2399 (cu_offset, sect_offset): ... here.
2401 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2403 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2404 (amd64_linux_sigtramp_code): This.
2405 (amd64_x32_linux_sigtramp_code): New.
2406 (LINUX_SIGTRAMP_LEN): Updated.
2407 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2409 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2411 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2413 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2415 * config.in: Regenerate.
2416 * configure: Regenerate.
2417 * configure.ac: Remove check for gnu/libc-version.h.
2418 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2420 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2421 variables libc_version, libc_major and libc_minor. Replace sscanf by
2422 inferior_has_bug. Extend the comment.
2424 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2426 * linux-thread-db.c (inferior_has_bug): New function.
2427 (thread_db_find_new_threads_silently): Return boolean as checked by
2428 inferior_has_bug, describe it in the comments.
2429 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2430 earlier. Abort the initialization if it returned non-zero.
2431 (thread_db_new_objfile): Exclude debug files.
2432 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2435 2012-07-02 Doug Evans <dje@google.com>
2437 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2438 related to queue management.
2440 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2441 instead of "debug dwarf2-die" in debugging printfs.
2442 (create_debug_info_hash_table_reader): Ditto.
2443 (create_debug_info_hash_table): Ditto.
2444 (init_dwo_file): Ditto.
2445 (init_cutu_and_read_dies): Add debugging printf.
2446 (init_cutu_and_read_dies_no_follow): Ditto.
2447 (process_psymtab_comp_unit_reader): Ditto.
2449 2012-07-02 Stan Shebs <stan@codesourcery.com>
2451 Add target-side support for dynamic printf.
2452 * NEWS: Mention the additional style.
2453 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2454 (struct bp_location): New field cmd_bytecode.
2455 * breakpoint.c: Include format.h.
2456 (disconnected_dprintf): New global.
2457 (parse_cmd_to_aexpr): New function.
2458 (build_target_command_list): New function.
2459 (insert_bp_location): Call it.
2460 (remove_breakpoints_pid): Skip dprintf breakpoints.
2461 (print_one_breakpoint_location): Ditto.
2462 (dprintf_style_agent): New global.
2463 (dprintf_style_enums): Add dprintf_style_agent.
2464 (update_dprintf_command_list): Add agent case.
2465 (agent_printf_command): New function.
2466 (_initialize_breakpoint): Add new commands.
2467 * common/ax.def (printf): New bytecode.
2468 * ax.h (ax_string): Declare.
2469 * ax-gdb.h (gen_printf): Declare.
2470 * ax-gdb.c: Include cli-utils.h, format.h.
2471 (gen_printf): New function.
2472 (maint_agent_print_command): New function.
2473 (_initialize_ax_gdb): Add maint agent-printf command.
2474 * ax-general.c (ax_string): New function.
2475 (ax_print): Add printf disassembly.
2476 * Makefile.in (SFILES): Add format.c
2477 (COMMON_OBS): Add format.o.
2478 * common/format.h: New file.
2479 * common/format.c: New file.
2480 * printcmd.c: Include format.h.
2481 (ui_printf): Call parse_format_string.
2482 * remote.c (remote_state): New field breakpoint_commands.
2483 (PACKET_BreakpointCommands): New enum.
2484 (remote_breakpoint_commands_feature): New function.
2485 (remote_protocol_features): Add new BreakpointCommands entry.
2486 (remote_can_run_breakpoint_commands): New function.
2487 (remote_add_target_side_commands): New function.
2488 (remote_insert_breakpoint): Call it.
2489 (remote_insert_hw_breakpoint): Ditto.
2490 (_initialize_remote): Add new packet configuration for
2491 target-side breakpoint commands.
2492 * target.h (struct target_ops): New field
2493 to_can_run_breakpoint_commands.
2494 (target_can_run_breakpoint_commands): New macro.
2495 * target.c (update_current_target): Handle
2496 to_can_run_breakpoint_commands.
2498 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2500 Execute -ix and -iex only after system and user gdbinit files.
2501 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2502 processing down after gdbinit files.
2504 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2506 Add fnmatch-gnu module.
2507 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2508 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2509 * gnulib/aclocal.m4: Regenerate.
2510 * gnulib/config.in: Regenerate.
2511 * gnulib/configure: Regenerate.
2512 * gnulib/import/dummy.c: Remove.
2513 * gnulib/import/Makefile.am: Regenerate.
2514 * gnulib/import/Makefile.in: Likewise.
2515 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2516 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2517 * gnulib/import/alloca.c: New file.
2518 * gnulib/import/alloca.in.h: Likewise.
2519 * gnulib/import/config.charset: Likewise.
2520 * gnulib/import/fnmatch.c: Likewise.
2521 * gnulib/import/fnmatch.in.h: Likewise.
2522 * gnulib/import/fnmatch_loop.c: Likewise.
2523 * gnulib/import/localcharset.c: Likewise.
2524 * gnulib/import/localcharset.h: Likewise.
2525 * gnulib/import/m4/alloca.m4: Likewise.
2526 * gnulib/import/m4/codeset.m4: Likewise.
2527 * gnulib/import/m4/configmake.m4: Likewise.
2528 * gnulib/import/m4/fcntl-o.m4: Likewise.
2529 * gnulib/import/m4/fnmatch.m4: Likewise.
2530 * gnulib/import/m4/glibc21.m4: Likewise.
2531 * gnulib/import/m4/localcharset.m4: Likewise.
2532 * gnulib/import/m4/locale-fr.m4: Likewise.
2533 * gnulib/import/m4/locale-ja.m4: Likewise.
2534 * gnulib/import/m4/locale-zh.m4: Likewise.
2535 * gnulib/import/m4/mbrtowc.m4: Likewise.
2536 * gnulib/import/m4/mbsinit.m4: Likewise.
2537 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2538 * gnulib/import/m4/mbstate_t.m4: Likewise.
2539 * gnulib/import/m4/stdbool.m4: Likewise.
2540 * gnulib/import/m4/wchar_h.m4: Likewise.
2541 * gnulib/import/m4/wctype_h.m4: Likewise.
2542 * gnulib/import/m4/wint_t.m4: Likewise.
2543 * gnulib/import/mbrtowc.c: Likewise.
2544 * gnulib/import/mbsinit.c: Likewise.
2545 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2546 * gnulib/import/mbsrtowcs-state.c: Likewise.
2547 * gnulib/import/mbsrtowcs.c: Likewise.
2548 * gnulib/import/ref-add.sin: Likewise.
2549 * gnulib/import/ref-del.sin: Likewise.
2550 * gnulib/import/stdbool.in.h: Likewise.
2551 * gnulib/import/streq.h: Likewise.
2552 * gnulib/import/strnlen1.c: Likewise.
2553 * gnulib/import/strnlen1.h: Likewise.
2554 * gnulib/import/verify.h: Likewise.
2555 * gnulib/import/wchar.in.h: Likewise.
2556 * gnulib/import/wctype.in.h: Likewise.
2558 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2560 Support shell wildcards for 'set auto-load safe-path'.
2561 * auto-load.c: Include fnmatch.h.
2562 (filename_is_in_dir): Rename to ...
2563 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2564 it. Update function comment. Rename dir_len to pattern_len. New
2565 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2566 messages. Use gdb_filename_fnmatch.
2567 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2569 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2570 * defs.h (gdb_filename_fnmatch): New declaration.
2571 * utils.c: Include fnmatch.h.
2572 (gdb_filename_fnmatch): New function.
2574 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2576 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2577 `-probe' and `-probe-stap' options.
2579 2012-07-01 Yao Qi <yao@codesourcery.com>
2581 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2582 always_inserted_off, and always_inserted_enums.
2583 Change always_inserted_mode's type to 'enum auto_boolean'.
2584 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2586 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2587 of add_setshow_enum_cmd.
2588 * infrun.c: Remove can_use_displaced_stepping_auto,
2589 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2590 can_use_displaced_stepping_enum.
2591 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2592 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2593 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2594 add_setshow_enum_cmd.
2596 2012-06-30 Doug Evans <dje@google.com>
2598 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2599 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2600 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2602 2012-06-29 Doug Evans <dje@google.com>
2604 * linespec.c: #include "stack.h".
2605 (decode_line_with_current_source): Moved here from symtab.c and
2606 renamed from decode_line_spec. All callers updated.
2607 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2608 renamed from decode_line_spec_1. All callers updated.
2609 * linespec.h (decode_line_with_current_source): Move declaration here
2610 from symtab.h and renamed from decode_line_spec.
2611 (decode_line_with_last_displayed): Move declaration here from symtab.h
2612 and renamed from decode_line_spec_1.
2613 * macrocmd.c: #include "linespec.h".
2614 * symtab.c: Remove #include "linespec.h".
2616 2012-06-28 Doug Evans <dje@google.com>
2618 * dwarf2read.c (get_cu_length): New function.
2619 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2620 (create_debug_types_hash_table): Ditto.
2621 (init_cutu_and_read_dies): Ditto.
2622 (init_cutu_and_read_dies_no_follow): Ditto.
2624 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2626 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2627 (struct abbrev_table): Define.
2628 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2630 (init_cutu_and_read_dies): Update.
2631 (abbrev_table_alloc_abbrev): New function. Replaces
2632 dwarf_alloc_abbrev. All callers updated.
2633 (abbrev_table_add_abbrev): New function.
2634 (abbrev_table_lookup_abbrev): New function. Replaces
2635 dwarf2_lookup_abbrev. All callers updated.
2636 (abbrev_table_read_table): New function. Contents moved here from
2637 dwarf2_read_abbrevs.
2638 (dwarf2_read_abbrevs): Call it.
2639 (abbrev_table_free): New function.
2640 (dwarf2_free_abbrev_table): Call it.
2642 2012-06-28 Stan Shebs <stan@codesourcery.com>
2644 * osdata.c (info_osdata_command): Filter out "Title" columns
2646 * common/linux-osdata.c (struct osdata_type): Add title field.
2647 (osdata_table): Add titles to each entry.
2648 (linux_command_xfer_osdata): Add a column for title data.
2650 2012-06-28 Stan Shebs <stan@codesourcery.com>
2652 Make logging work for MI.
2654 * interps.h (interp_set_logging_ftype): New typedef.
2655 (struct interp_procs): New field set_logging_proc.
2656 (current_interp_set_logging): Declare.
2657 * interps.c (current_interp_set_logging): New function.
2658 * cli/cli-logging.c: Include interps.h.
2659 (set_logging_redirect): Call current_interp_set_logging.
2660 (pop_output_files): Ditto.
2661 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2662 * mi/mi-console.h (mi_console_set_raw): Declare.
2663 * mi/mi-console.c (mi_console_set_raw): New function.
2664 * mi/mi-interp.c (saved_raw_stdout): New global.
2665 (mi_set_logging): New function.
2666 (_initialize_mi_interp): Add it to interp procs.
2668 2012-06-28 Doug Evans <dje@google.com>
2670 * symtab.c (lookup_symbol_aux_objfile): Use
2671 ALL_OBJFILE_PRIMARY_SYMTABS.
2673 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2675 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2677 * common/buffer.c: Include inttypes.h and stdint.h.
2678 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2680 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2681 Pedro Alves <palves@redhat.com>
2683 * gdbthread.h (ALL_THREADS): New macro.
2684 (thread_list): Declare.
2685 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2686 going, but instead fall through to the stepping handling.
2687 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2688 the passed in signal. Adjust debug output.
2689 (resume_callback): Rename to ...
2690 (linux_nat_resume_callback): ... this. Pass the thread's last
2691 stop signal, if in "pass" state.
2692 (linux_nat_resume): Adjust to rename.
2693 (stop_wait_callback): New assertion. Don't respawn signals;
2694 instead let the LWP remain with SIGNALLED set.
2695 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2696 * remote.c (append_pending_thread_resumptions): New.
2697 (remote_vcont_resume): Call it.
2698 * target.h (target_resume): Extend comment.
2700 2012-06-28 Iain Sandoe <iain@codesourcery.com>
2702 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2704 2012-06-27 Doug Evans <dje@google.com>
2706 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2707 Delete have_addr_base, unused. All uses updated.
2708 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2709 (dwarf2_get_pc_bounds): Add ranges_base.
2710 (dwarf2_record_block_ranges): Ditto.
2712 2012-06-27 Tom Tromey <tromey@redhat.com>
2715 * varobj.c (varobj_create): Update.
2716 (varobj_set_value): Update.
2717 * tracepoint.c (validate_actionline): Update.
2718 (encode_actions_1): Update.
2719 * parse.c (parse_exp_1): Add 'pc' argument.
2720 (parse_exp_in_context): Add 'pc' argument. Change how
2721 expression_context_pc is set.
2722 (parse_expression): Update.
2723 (parse_field_expression): Update.
2724 * expression.h (parse_exp_1): Update.
2725 * eval.c (parse_to_comma_and_eval): Update.
2726 * breakpoint.c (set_breakpoint_condition): Update.
2727 (update_watchpoint): Update.
2728 (init_breakpoint_sal): Update
2729 (find_condition_and_thread): Update.
2730 (watch_command_1): Update.
2731 (update_breakpoint_locations): Update.
2732 * ada-lang.c (ada_read_renaming_var_value): Update.
2733 (create_excep_cond_exprs): Update.
2735 2012-06-27 Doug Evans <dje@google.com>
2737 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2740 2012-06-26 Doug Evans <dje@google.com>
2742 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2744 (error_check_comp_unit_head): New arg abbrev_section. All callers
2746 (read_and_check_comp_unit_head): Ditto.
2747 (read_and_check_type_unit_head): Ditto.
2749 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2751 New attribute 'last' for gdb.Symtab_and_line.
2752 * NEWS (Python Scripting): Add entry about the new attribute.
2753 * python/py-symtab.c (salpy_get_last): New function which
2754 implements the get method for the 'last' attribute of
2755 gdb.Symtab_and_line.
2756 (sal_object_getset): Add entry for the 'last' attribute.
2758 2012-06-26 Doug Evans <dje@google.com>
2760 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
2761 (dwo_sections): Add macinfo, macro.
2762 (dwarf2_locate_dwo_sections): Watch for macro sections.
2763 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
2764 All callers updated. Handle DWO files.
2766 * NEWS: Mention new options "set debug dwarf2-read" and
2767 "set debug symtab-create".
2768 * dwarf2read.c (dwarf2_read_debug): New static global.
2769 (dwarf2_build_psymtabs_hard): Add debugging printfs.
2770 (process_queue): Ditto.
2771 (process_full_comp_unit): Ditto.
2772 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
2773 * elfread.c (elf_symfile_read): Add debugging printf.
2774 * minsyms.c (install_minimal_symbols): Ditto.
2775 * psymtab.c (allocate_psymtab): Ditto.
2776 * symfile.c (allocate_symtab): Ditto.
2777 * symtab.c (symtab_create_debug): New global.
2778 (_initialize_symtab): Add new option "set debug symtab-create".
2779 * symtab.h (symtab_create_debug): Declare.
2781 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
2782 (lookup_dwo_type_unit): Ditto.
2784 2012-06-26 Roland McGrath <roland@hack.frob.com>
2785 H.J. Lu <hongjiu.lu@intel.com>
2787 * amd64-linux-nat.c: Include <sys/user.h>.
2788 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
2789 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
2790 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
2792 * configure.ac: Check if the fs_base and gs_base members of
2793 `struct user_regs_struct' exist.
2794 * config.in: Regenerated.
2795 * configure: Likewise.
2797 2012-06-25 Michael Eager <eager@eagercon.com>
2800 * python/python.c (gdbpy_write): Check for interrupted output.
2802 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
2804 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
2805 register as a stack alignment in ARM mode.
2807 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2809 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
2810 * gnulib/config.in: Regenerate.
2811 * gnulib/configure: Likewise.
2812 * gnulib/import/m4/extensions.m4: Update it.
2813 * gnulib/import/m4/gnulib-common.m4: Likewise.
2814 * gnulib/import/m4/memmem.m4: Likewise.
2815 * gnulib/import/m4/mmap-anon.m4: Likewise.
2816 * gnulib/import/m4/multiarch.m4: Likewise.
2817 * gnulib/import/stdint.in.h: Likewise.
2819 2012-06-24 Yao Qi <yao@codesourcery.com>
2821 * corefile.c (write_memory_with_notification): New.
2822 * gdbcore.h: Declare write_memory_with_notification.
2823 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
2824 'observer_notify_memory_changed' with 'write_memory_with_notification'.
2825 * valops.c (value_assign): Likewise.
2826 * python/py-inferior.c (infpy_write_memory): Call
2827 'write_memory_with_notification'.
2829 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2831 * cc-with-index.sh: Use also -ex "set auto-load no".
2833 2012-06-23 Doug Evans <dje@google.com>
2836 * NEWS: Document additions to .gdb_index.
2837 * dwarf2read.c: #include "gdb/gdb-index.h".
2838 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
2839 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
2840 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
2841 (dwarf2_read_index): Recognize version 7.
2842 (dw2_do_expand_symtabs_matching): New args want_specific_block,
2843 block_kind, domain): All callers updated.
2844 (dw2_find_symbol_file): Handle new index CU values.
2845 (dw2_expand_symtabs_matching): Match symbol kind if requested.
2846 (add_index_entry): New args is_static, kind. All callers updated.
2847 (offset_type_compare, uniquify_cu_indices): New functions
2848 (symbol_kind): New function.
2849 (write_psymtabs_to_index): Remove duplicate CU values.
2850 (write_psymtabs_to_index): Write .gdb_index version 7.
2852 2012-06-22 Joel Brobecker <brobecker@adacore.com>
2854 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
2855 * configure: Regenerate.
2857 2012-06-20 Yao Qi <yao@codesourcery.com>
2859 * python/py-inferior.c: Update comments of infpy_read_memory
2860 and infpy_write_memory.
2862 2012-06-19 Tom Tromey <tromey@redhat.com>
2865 * parser-defs.h (insert_type, insert_type_address_space): Declare.
2866 (push_type_address_space): Remove.
2867 * parse.c (insert_into_type_stack): New function.
2868 (insert_type): Likewise.
2869 (insert_type_address_space): Rename from push_type_address_space.
2870 Insert tp_space_identifier.
2871 * c-exp.y (ptr_operator): New production.
2872 (abs_decl): Use ptr_operator.
2873 (space_identifier): Call insert_type_address_space.
2874 (ptype): Don't use const_or_volatile_or_space_identifier.
2875 (const_or_volatile_noopt): Call insert_type.
2876 (conversion_type_id, conversion_declarator): New productions.
2877 (operator): Use conversion_type_id.
2879 2012-06-18 Doug Evans <dje@google.com>
2881 * symtab.h (minimal_symbol): New member created_by_gdb.
2882 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
2884 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
2885 (search_symbols): Call it instead of lookup_symbol.
2886 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
2888 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
2889 Adjust address for DW_OP_GNU_addr_index.
2890 * dwarf2expr.h (dwarf_expr_context): Update comment.
2891 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
2892 all callers updated. Handle TLS vars described with
2893 DW_OP_GNU_const_index.
2894 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
2895 and DW_OP_GNU_const_index.
2896 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
2898 * block.c (find_block_in_blockvector): Make explicit the fact that we
2899 ignore GLOBAL_BLOCK.
2901 2012-06-18 Tom Tromey <tromey@redhat.com>
2903 * c-exp.y (operator): Remove trailing space after "delete" and
2906 2012-06-18 Mark Kettenis <kettenis@gnu.org>
2907 Jan Kratochvil <jan.kratochvil@redhat.com>
2909 Switch i386 and derived targets to ON_STACK.
2910 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
2911 (amd64_dicos_init_abi): Remove its installment.
2912 * dicos-tdep.c (dicos_init_abi): Remove the
2913 set_gdbarch_call_dummy_location call. Update the comment here.
2914 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
2915 (i386_dicos_init_abi): Remove its installment.
2916 * i386-tdep.c (i386_push_dummy_code): New function.
2917 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
2918 i386_push_dummy_code.
2920 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2922 Remove stale dummy frames.
2923 * breakpoint.c: Include dummy-frame.h.
2924 (longjmp_breakpoint_ops): New variable.
2925 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
2926 bp_longjmp_call_dummy.
2927 (bpstat_what, bptype_string, print_one_breakpoint_location)
2928 (init_bp_location): Support bp_longjmp_call_dummy.
2929 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
2930 (set_longjmp_breakpoint_for_call_dummy)
2931 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
2933 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
2934 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
2935 FIXME comment and extend the other comment for bp_call_dummy.
2936 (set_longjmp_breakpoint_for_call_dummy)
2937 (check_longjmp_breakpoint_for_call_dummy): New declarations.
2938 * dummy-frame.c: Include gdbthread.h.
2939 (pop_dummy_frame_bpt): New function.
2940 (pop_dummy_frame): Call pop_dummy_frame_bpt.
2941 (dummy_frame_discard): New function.
2942 (cleanup_dummy_frames): Update the comment about longjmps.
2943 * dummy-frame.h (dummy_frame_discard): New declaration.
2944 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
2945 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
2946 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
2947 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
2948 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
2949 keep_going if IS_LONGJMP and there is no other reason to stop.
2951 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
2953 * remote-sim.c (sim_command_completer): Initialize
2956 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2958 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
2959 * dwarf2loc.c (call_site_parameter_matches): Support
2960 CALL_SITE_PARAMETER_PARAM_OFFSET.
2961 (needs_dwarf_reg_entry_value): Push stub value.
2962 * dwarf2read.c (read_call_site_scope): New variable origin. Support
2963 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
2964 * gdbtypes.h (enum call_site_parameter_kind): New item
2965 CALL_SITE_PARAMETER_PARAM_OFFSET.
2966 (struct call_site.parameter.u): New field param_offset.
2968 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2970 Code cleanup: Generalize call_site.parameter key.
2971 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
2972 variable dwarf_reg. New variable kind_u. Update parameters to
2973 push_dwarf_reg_entry_value.
2974 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2975 * dwarf2expr.h (enum call_site_parameter_kind)
2976 (union call_site_parameter_u): Forward declarations.
2977 (struct dwarf_expr_context_funcs): Update parameters and their
2978 description for push_dwarf_reg_entry_value.
2979 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2980 * dwarf2loc.c (call_site_parameter_matches): New function.
2981 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
2982 description. Use call_site_parameter_matches.
2983 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
2984 Update parameters and their description.
2985 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
2986 New variable kind_u. Adjust the caller for updated parameters.
2987 (needs_dwarf_reg_entry_value): Update parameters.
2988 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
2989 instead of attr. Update for the changed fields of struct
2990 call_site_parameter.
2991 * gdbtypes.h: Include dwarf2expr.h.
2992 (enum call_site_parameter_kind): New.
2993 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
2994 fb_offset into new union u.
2996 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2998 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
2999 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3002 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3004 * amd64-linux-nat.c (compat_x32_clock_t): New.
3005 (compat_x32_siginfo_t): Likewise.
3006 (compat_x32_siginfo_from_siginfo): Likewise.
3007 (siginfo_from_compat_x32_siginfo): Likewise.
3008 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3009 and siginfo_from_compat_x32_siginfo for x32.
3011 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3013 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3015 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3017 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3018 instead of gdbarch_ptr_bit.
3019 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3020 (amd64_supply_native_gregset): Likewise.
3021 (amd64_collect_native_gregset): Likewise.
3022 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3023 (amd64_supply_xsave): Likewise.
3024 (amd64_collect_fxsave): Likewise.
3025 (amd64_collect_xsave): Likewise.
3027 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3029 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3030 (amd64_linux_read_description): Check DS segment register for
3033 2012-06-15 Tom Tromey <tromey@redhat.com>
3035 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3036 init_cutu_and_read_dies.
3038 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3040 * MAINTAINERS (Write After Approval): Add myself to the list.
3042 2012-06-15 Tom Tromey <tromey@redhat.com>
3044 * valops.c (value_find_oload_method_list): Now static.
3045 * value.h (value_find_oload_method_list): Don't declare.
3047 2012-06-15 Tom Tromey <tromey@redhat.com>
3049 * valops.c (find_overload_match): Use value_ind.
3051 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3053 * infrun.c (handle_inferior_event): Correct indentation.
3055 2012-06-14 Doug Evans <dje@google.com>
3057 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3058 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3060 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3061 updated. Handle DEBUG_LOC_START_LENGTH.
3062 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3063 (loclist_describe_location): Ditto.
3065 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3068 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3069 after hiding inline functions.
3071 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3073 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3074 _initialize_inf_ttrace.
3076 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3078 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3079 _initialize_hppa_hpux_nat.
3081 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3083 * remote-sim.c (sim_command_completer): Change type of return
3084 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3086 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3087 Jan Kratochvil <jan.kratochvil@redhat.com>
3090 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3091 stack on a 16-byte boundary.
3093 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3095 * jit.c (finalize_symtab): Set function's return type to 'void' by
3098 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3099 H.J. Lu <hongjiu.lu@intel.com>
3101 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3102 Move bits common to both the classic LP64 and the new x32 ILP32
3104 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3105 (amd64_x32_linux_init_abi): New function.
3106 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3109 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3110 * i386-tdep.c (i386_pseudo_register_name): Make public.
3111 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3112 * amd64-tdep.c (amd64_dword_names): Add "eip".
3113 (amd64_x32_pseudo_register_type): New function
3114 (amd64_x32_init_abi): New function.
3116 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3119 * inferior.h (struct inferior_suspend_state): Comment out.
3120 (struct inferior): Comment out the field suspend.
3121 * infrun.c (struct infcall_suspend_state): Comment out the field
3123 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3126 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3128 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3129 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3130 function comment. Return ERROR for unresolved cases. Implement
3131 returning proper NAME.
3132 (yylex): Accept also NAME from classify_inner_name.
3133 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3134 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3136 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3138 2012-06-13 Tom Tromey <tromey@redhat.com>
3140 * breakpoint.c (condition_completer): New function.
3141 (_initialize_breakpoint): Use it.
3142 * value.c (complete_internalvar): New function.
3143 * value.h (complete_internalvar): Declare.
3145 2012-06-13 Tom Tromey <tromey@redhat.com>
3147 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3148 * breakpoint.c (catch_syscall_completer): Return a VEC.
3149 * cli/cli-cmds.c (complete_command): Update.
3150 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3151 (complete_on_enum): Likewise.
3152 * command.h: Include gdb_vecs.h.
3153 (completer_ftype): Change return type.
3154 (complete_on_cmdlist, complete_on_enum): Likewise.
3155 * completer.c (noop_completer, filename_completer)
3156 (location_completer): Return a VEC.
3157 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3159 (expression_completer, complete_line_internal, complete_line)
3160 (command_completer): Return a VEC.
3161 (gdb_completion_word_break_characters, line_completion_function):
3163 * completer.h: Include gdb_vecs.h.
3164 (complete_line, noop_completer, filename_completer)
3165 (expression_completer, location_completer, command_completer):
3167 * f-lang.c (f_word_break_characters): Return a VEC.
3168 * interps.c (interpreter_completer): Return a VEC.
3169 * language.h (struct language_defn)
3170 <la_make_symbol_completion_list>: Return a VEC.
3171 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3172 * symtab.c (free_completion_list): Take a VEC.
3173 (return_val_size, return_val_index): Remove.
3174 (return_val): Now a VEC.
3175 (completion_list_add_name): Update.
3176 (default_make_symbol_completion_list_break_on)
3177 (default_make_symbol_completion_list, make_symbol_completion_list)
3178 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3180 (add_filename_to_list): Update.
3181 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3183 (maybe_add_partial_symtab_filename): Update.
3184 (make_source_files_completion_list): Return a VEC.
3185 * symtab.h (default_make_symbol_completion_list_break_on)
3186 (default_make_symbol_completion_list, make_symbol_completion_list)
3187 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3188 (make_source_files_completion_list): Update.
3190 2012-06-13 Tom Tromey <tromey@redhat.com>
3192 * breakpoint.c (add_catch_command): Use completer_ftype.
3193 * breakpoint.h: Include command.h.
3194 (add_catch_command): Use completer_ftype.
3195 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3196 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3197 Use completer_ftype.
3198 * command.h (completer_ftype): New typedef.
3199 (set_cmd_completer): Use it.
3200 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3203 2012-06-13 Pedro Alves <palves@redhat.com>
3205 Partial revert of previous change.
3207 * serial.c (scb_base): New global.
3208 (serial_for_fd): New.
3209 (serial_open, serial_fdopen_ops): Link new serial in open serials
3211 (do_serial_close): Unlink serial from the open serials chain.
3213 2012-06-12 Pedro Alves <palves@redhat.com>
3215 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3217 (prepare_for_detach): No longer context switch here in non-stop
3219 (fetch_inferior_event): Ditto.
3220 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3221 to the event thread before removing breakpoints. Switch to the
3222 event thread before inserting breakpoints and resuming.
3223 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3224 event thread before resuming.
3225 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3226 Switch to the event thread before removing breakpoints.
3228 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3230 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3231 special characters correctly for the Windows shells. See
3232 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3234 [!__MINGW32__]: Remove extra double quote character from special
3237 2012-06-11 Stan Shebs <stan@codesourcery.com>
3239 * ui-out.h: Remove #if 0 declarations.
3240 * ui-out.c: Remove #if 0 functions.
3242 2012-06-11 Pedro Alves <palves@redhat.com>
3244 * ser-base.c (run_async_handler_and_reschedule): New.
3245 (fd_event, push_event): Use it.
3246 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3247 reference count to 1.
3248 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3250 (serial_is_open, serial_ref, serial_unref): New.
3251 * serial.h (serial_open): Adjust comment.
3252 (serial_is_open): Declare.
3253 (serial_close): Adjust comment.
3254 (serial_ref, serial_unref) Declare.
3255 (struct serial): New field 'refcnt'.
3257 2012-06-11 Pedro Alves <palves@redhat.com>
3259 Remove #if 0'd "connect" command, and unnecessary associated
3260 refcounting and serial reuse bits.
3262 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3263 * serial.c (last_serial_opened): Delete.
3265 (serial_open): Adjust.
3266 (serial_for_fd): Delete.
3267 (serial_fdopen_ops, do_serial_close): Adjust.
3268 (serial_fdopen_ops): Adjust.
3270 2012-06-11 Pedro Alves <palves@redhat.com>
3272 * serial.c (do_serial_close): Remove early return when SCB is
3275 2012-06-11 Tom Tromey <tromey@redhat.com>
3277 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3279 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3281 Fix regression by the "ambiguous linespec" series.
3282 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3283 get_last_displayed_symtab and get_last_displayed_line and depending
3286 2012-06-11 Tom Tromey <tromey@redhat.com>
3288 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3289 (dw2_find_symbol_file): Use it.
3291 2012-06-11 Michael Eager <eager@eagercon.com>
3293 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3294 * mips-linux-tdep.h (mips_signals): New
3296 2012-06-11 Tom Tromey <tromey@redhat.com>
3298 * infrun.c (handle_inferior_event)
3299 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3301 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3302 exception logic in all cases. Update comments.
3303 (insert_longjmp_resume_breakpoint): Set the exception resume
3306 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3308 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3310 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3312 * valarith.c (binop_types_user_defined_p): Fix a typo.
3314 2012-06-08 Yao Qi <yao@codesourcery.com>
3315 Chung-Lin Tang <cltang@codesourcery.com>
3317 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3318 * arch-utils.h: Declare.
3319 * gdbarch.sh: Add return_in_first_hidden_param_p.
3320 * gdbarch.c, gdbarch.h: Regenerated.
3321 * infcall.c (call_function_by_hand): Call
3322 gdbarch_return_in_first_hidden_param_p instead of
3323 language_pass_by_reference.
3325 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3326 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3327 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3328 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3329 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3330 `cplus_return_struct_by_reference'.
3331 (tic6x_return_value): Handle language cplusplus.
3332 (tic6x_return_in_first_hidden_param_p): New.
3333 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3335 2012-06-07 Doug Evans <dje@google.com>
3337 * dwarf2read.c (dwarf2_cu): Add comment.
3339 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3341 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3343 (mips_eabi_push_dummy_call): Likewise.
3344 (mips_n32n64_push_dummy_call): Likewise.
3345 (mips_o32_push_dummy_call): Likewise.
3346 (mips_o64_push_dummy_call): Likewise.
3348 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3350 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3352 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3354 * mips-tdep.c (mips_pseudo_register_type): Use
3355 mips_float_register_p.
3357 2012-06-06 Pedro Alves <palves@redhat.com>
3359 * infrun.c (handle_inferior_event): Remove calls to
3360 reinit_frame_cache that follow a context_switch call.
3362 2012-06-06 Pedro Alves <palves@redhat.com>
3364 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3365 context_switch and remove stale comment.
3367 2012-06-06 Pedro Alves <palves@redhat.com>
3369 * infrun.c (struct execution_control_state): Remove
3370 `new_thread_event' field.
3371 (handle_inferior_event): Simplify new threads handling; don't
3372 resume the inferior if we find a new thread.
3374 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3376 * NEWS: Document the deprecation of SH's 'regs' command.
3377 * inferior.h (all_registers_info): Add function declaration.
3378 * sh-tdep.c (sh_show_regs): Remove variable.
3379 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3380 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3381 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3382 (sh_show_regs_command): Remove functions.
3383 (sh_gdbarch_init): Don't set sh_show_regs.
3384 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3385 'info all-registers'.
3386 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3387 (sh64_show_regs): Remove functions.
3388 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3390 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3392 * configure.ac: Move development=true below AC_INIT.
3393 * configure: Regenerate.
3395 2012-06-05 Stan Shebs <stan@codesourcery.com>
3397 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3400 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3402 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3403 argument as ssize_t.
3404 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3405 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3406 * target.c (target_read_stack, target_write_memory)
3407 (target_write_raw_memory): Likewise.
3408 * target.h (target_read_stack, target_write_memory)
3409 (target_write_raw_memory): Likewise.
3411 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3413 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3414 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3415 * target.c (target_read_memory): Change LEN to ssize_t.
3416 * target.h (target_read_memory): Change LEN to ssize_t.
3418 2012-06-05 Pedro Alves <palves@redhat.com>
3422 * breakpoint.c (until_break_command): Only fetch the selected
3423 frame after decode_line_1.
3425 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3427 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3428 event breakpoint at _start, __start or main if a program
3429 interpreter is not found.
3431 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3433 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3435 * windows-tdep.c: #include "objfiles.h".
3436 (windows_iterate_over_objfiles_in_search_order): New function.
3437 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3438 iterate_over_objfiles_in_search_order gdbarch method to
3439 windows_iterate_over_objfiles_in_search_order.
3440 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3442 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3444 * gdbarch.sh: Add generation of
3445 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3446 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3447 (iterate_over_objfiles_in_search_order): New gdbarch method.
3448 * gdbarch.h, gdbarch.c: Regenerate.
3449 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3451 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3453 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3454 out of lookup_symbol_aux_symtabs.
3455 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3456 call to lookup_symbol_aux_objfile.
3457 (struct global_sym_lookup_data): New type.
3458 (lookup_symbol_global_iterator_cb): New function.
3459 (lookup_symbol_global): Search for symbol using
3460 gdbarch_iterate_over_objfiles_in_search_order and
3461 lookup_symbol_global_iterator_cb.
3462 * findvar.c (struct minsym_lookup_data): New type.
3463 (minsym_lookup_iterator_cb): New function.
3464 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3465 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3466 and minsym_lookup_iterator_cb.
3468 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3470 Revert the following patch:
3471 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3472 try locating the symbol in the symbol's own objfile first, before
3473 extending the search to all objfiles.
3474 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3475 out of lookup_symbol_aux_symtabs.
3476 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3477 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3478 Do not search EXCLUDE_OBJFILE.
3479 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3480 (lookup_symbol_global): Search for matches in the block's objfile
3481 first, before searching all other objfiles.
3483 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3485 * breakpoint.c (find_condition_and_thread): Stop parsing
3486 as soon as the first invalid keyword is found.
3488 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3490 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3492 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3494 * config/djgpp/djcheck.sh: Add copyright header.
3496 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3498 * copyright.py (update_files, main): Fix path to update-copyright
3501 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3503 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3504 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3505 for which a reminder to update by hand is printed.
3507 2012-06-04 Doug Evans <dje@google.com>
3509 * buildsym.c (make_blockvector): Add comment.
3511 2012-06-04 Pedro Alves <palves@redhat.com>
3513 * arch-utils.c (default_gdb_signal_from_target): Delete.
3514 * arch-utils.h (default_gdb_signal_from_target): Delete.
3515 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3516 gdbarch_gdb_signal_from_target_p.
3517 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3519 * gdbarch.h: Regenerate.
3520 * gdbarch.c: Regenerate.
3522 2012-06-04 Pedro Alves <palves@redhat.com>
3524 * gdbarch.sh (gdb_signal_from_target): Mention that the
3525 implementation of the method must be host independent.
3526 * gdbarch.h: Regenerate.
3528 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3530 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3532 (target_read_memory_bfd): New function.
3533 (symbol_file_add_from_memory): Use it.
3535 2012-06-03 Doug Evans <dje@google.com>
3537 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3539 (basic_lookup_transparent_type): Ditto.
3541 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3542 (ALL_PRIMARY_SYMTABS): Use it.
3543 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3544 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3545 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3546 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3547 (basic_lookup_transparent_type): Ditto.
3549 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3551 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3552 it to optimize resolution of demangled name.
3554 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3556 * configure.ac (development): Define new variable.
3557 Call AC_CHECK_LIB for mcheck if $development.
3558 (ERROR_ON_WARNING): Enable it by default only if $development.
3559 * config.in: Regenerate.
3560 * configure: Regenerate.
3562 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3564 * target.c (target_read_memory): Make LEN argument as size_t.
3565 * target.h (target_read_memory): Likewise.
3567 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3569 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3571 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3573 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3574 BookE interface for PowerPC server processors if not available
3575 in the Linux Kernel.
3577 2012-05-31 Keith Seitz <keiths@redhat.com>
3579 * linespec.c (decode_objc): Add cleanup to free
3581 (find_linespec_symbols): Add cleanup to free CLASSES.
3582 * symfile.c (find_separate_debug_file_by_debuglink): Add
3583 cleanup to free DEBUGLINK.
3584 * ui-out.c (clear_header_list): No need to check if
3585 HEADER_NEXT.COLHDR is NULL.
3586 Free HEADER_NEXT.COL_NAME.
3588 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3590 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3593 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3595 * configure.host (gdb_host_cpu): Handle tilegx*.
3596 (gdb_host): Handle tilegx-*-linux*.
3597 * tilegx-linux-nat.c: New file.
3598 * config/tilegx/linux.mh: New file.
3600 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3602 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3603 tilegx-linux-tdep.o.
3604 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3605 tilegx-linux-tdep.c.
3606 * configure.tgt: Handle tilegx-*-linux*.
3607 * tilegx-tdep.h: New file.
3608 * tilegx-tdep.c: New file.
3609 * tilegx-linux-tdep.c: New file.
3610 * regformats/reg-tilegx.dat: New file.
3612 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3614 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3615 accounting of hw watchpoints on ppc.
3617 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3619 * source.c (openp): Expand tilde in path entries.
3621 2012-05-29 Doug Evans <dje@google.com>
3623 * buildsym.c (block_compar): Fix comment.
3624 (end_symtab): Fix and clarify some comments.
3626 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3627 cleanup_undefined_types.
3628 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3629 All callers updated.
3631 2012-05-29 Tom Tromey <tromey@redhat.com>
3633 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3635 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3636 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3638 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3641 2012-05-29 Tristan Gingold <gingold@adacore.com>
3643 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3644 (struct darwin_info): ... New struct.
3645 (solib_darwin_pspace_data): New variable.
3646 (darwin_pspace_data_cleanup): New function.
3647 (get_darwin_info): Likewise.
3648 (darwin_dyld_version_ok, darwin_load_image_infos)
3649 (darwin_solib_get_all_image_info_addr_at_init)
3650 (darwin_solib_read_all_image_info_addr): Add info argument.
3652 (darwin_current_sos): Use per pspace structure.
3653 (darwin_solib_create_inferior_hook): Likewise.
3654 (darwin_clear_solib): Likewise.
3655 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3657 2012-05-28 Pedro Alves <palves@redhat.com>
3659 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3660 block that uses them. Clear ecss before handling each event.
3662 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3664 * solib-svr4.c (svr4_current_sos): New comment on
3665 svr4_current_sos_via_xfer_libraries fall back.
3667 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3669 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3670 it as a fallback for TYPE_IS_OPAQUE.
3671 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3672 symbols for lookup_symbol.
3674 2012-05-24 John Steele Scott <toojays@toojays.net>
3676 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3677 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3678 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3679 (check_producer): ... this new function, which also checks for ICC
3680 and caches the result.
3681 (producer_is_icc): New function.
3682 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3685 2012-05-24 Pedro Alves <palves@redhat.com>
3689 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3690 (default_gdb_signal_to_target): ... this. Add comment.
3691 (default_gdb_signal_from_host): Rename to ...
3692 (default_gdb_signal_from_target): ... this. Add comment.
3693 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3694 (default_gdb_signal_to_target): ... this.
3695 (default_gdb_signal_from_host): Rename to ...
3696 (default_gdb_signal_from_target): ... this.
3697 * corelow.c (core_open): Adjust to naming change. Replace comment.
3698 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3699 (gdb_signal_from_target): ... this. Adjust to
3700 default_gdb_signal_from_host naming change. Extend comment.
3701 (gdb_signal_to_host): Rename to ...
3702 (gdb_signal_to_target): ... this. Adjust to
3703 default_gdb_signal_to_host naming change.
3704 * gdbarch.h, gdbarch.c: Renegerate.
3706 2012-05-24 Pedro Alves <palves@redhat.com>
3710 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
3712 2012-05-24 Pedro Alves <palves@redhat.com>
3716 Replace target_signal with gdb_signal throughout.
3718 2012-05-24 Pedro Alves <palves@redhat.com>
3722 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3723 string, instead of reusing the va_list argument.
3725 2012-05-24 Tom Tromey <tromey@redhat.com>
3727 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3730 2012-05-23 Doug Evans <dje@google.com>
3732 * symtab.c (search_symbols): Formatting fixes.
3733 (print_symbol_info): Formatting fixes.
3735 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3736 int64_t change to leb128 API.
3737 (read_encoded_value, decode_frame_entry_1): Ditto.
3738 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3739 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3740 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3741 (execute_stack_op): Ditto.
3742 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3743 (safe_read_uleb128, safe_read_sleb128): Ditto.
3744 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3745 (dwarf2_compile_expr_to_ax): Ditto.
3746 (locexpr_describe_location_piece): Ditto.
3747 (disassemble_dwarf_expression): Ditto.
3748 (locexpr_describe_location_1): Ditto.
3750 2012-05-23 Stan Shebs <stan@codesourcery.com>
3751 Kwok Cheung Yeung <kcy@codesourcery.com>
3753 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
3754 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
3755 (mi-cmd-info.o): New rule.
3756 * osdata.h (info_osdata_command): New declaration.
3757 * osdata.c (info_osdata_command): Change to non-static.
3758 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
3759 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
3760 * mi/mi-cmd-info.c: New file.
3762 2012-05-23 Doug Evans <dje@google.com>
3764 * symtab.c (search_symbols): Pass NULL for file_matcher to
3765 expand_symtabs_matching if there are no files to match.
3767 * gdbtypes.c (lookup_typename): Simplify.
3769 2012-05-23 Pedro Alves <palves@redhat.com>
3771 * arch-utils.h (default_target_signal_to_host): Delete.
3772 * arch-utils.c (default_target_signal_to_host): Delete.
3773 * gdbarch.sh (target_signal_to_host): Remove.
3774 * gdbarch.h, gdbarch.c: Regenerate.
3776 2012-05-22 Doug Evans <dje@google.com>
3778 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
3780 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
3781 (execute_cfa_program): Update to match API of leb128 functions.
3782 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
3784 (read_unsigned_leb128, read_signed_leb128): Delete.
3785 (read_initial_length): Change type of buf argument to
3787 (read_encoded_value): Update to match API of leb128 functions.
3788 (decode_frame_entry): Change result to "const gdb_byte *", and
3789 similarly for "start" parameter.
3790 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
3791 (dwarf2_build_frame_info): Change local frame_ptr to
3793 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
3794 read_uleb128, read_sleb128. All callers updated.
3795 (safe_skip_leb128): New function.
3796 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
3797 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
3798 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
3799 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
3800 read_uleb128, read_sleb128.
3801 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3802 (execute_stack_op): Update to match API of leb128 functions.
3803 * dwarf2expr.h: #include "leb128.h".
3804 (read_uleb128, read_sleb128): Delete.
3805 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
3806 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
3807 * dwarf2loc.c (debug_loc_kind): New enum.
3808 (decode_debug_loc_addresses): New function.
3809 (decode_debug_loc_dwo_addresses): New function.
3810 (dwarf2_find_location_expression): Rewrite.
3811 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
3812 (locexpr_describe_location_piece): Ditto.
3813 (disassemble_dwarf_expression): Ditto.
3814 (locexpr_describe_location_1): Ditto.
3815 (loclist_describe_location): Rewrite.
3816 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
3817 * dwarf2read.c (die_reader_specs): New member "buffer_end".
3818 (dwarf2_section_buffer_overflow_complaint): Renamed from
3819 dwarf2_macros_too_long_complaint. All callers updated.
3820 (skip_leb128): Delete.
3821 (init_cu_die_reader): Initialize reader->buffer_end.
3822 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
3823 (skip_form_bytes): New arg buffer_end. All callers updated.
3824 Replace call to skip_leb128 with gdb_skip_leb128.
3825 (skip_unknown_opcode): New arg mac_end. All callers updated.
3826 (fill_in_loclist_baton): Initialize baton->from_dwo.
3828 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3830 * mips-linux-nat.c (mips_linux_read_description): Use a more
3831 verbose error message.
3833 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3835 * NEWS: Add MIPS/Linux DSP support.
3836 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
3837 (SIGCONTEXT_DSPCTL): New macro.
3838 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
3839 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
3840 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
3841 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
3842 (N64_SIGCONTEXT_HI3): Likewise.
3843 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
3844 (N64_SIGCONTEXT_LO3): Likewise.
3845 (N64_SIGCONTEXT_DSPCTL): Likewise.
3846 (N64_SIGCONTEXT_FPCSR): Clarify definition.
3847 (mips_linux_o32_sigframe_init): Handle DSP registers.
3848 (mips_linux_n32n64_sigframe_init): Likewise.
3850 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3852 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
3855 2012-05-22 Pedro Alves <palves@redhat.com>
3857 * target.h (store_waitstatus): Move declaration ...
3858 * inf-child.h (store_waitstatus): ... here.
3859 * target.c: Move inclusion of gdb_wait.h, and ...
3860 (store_waitstatus): ... this ...
3861 * inf-child.c: ... here.
3862 * linux-nat.c: Include inf-child.h.
3863 * rs6000-nat.c: Include inf-child.h.
3864 * spu-linux-nat.c: Include inf-child.h.
3866 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3868 * tracepoint.c (start_tracing): Add missing i18n markup.
3869 (stop_tracing, set_trace_user): Ditto.
3870 (set_trace_notes, set_trace_stop_notes): Ditto.
3872 2012-05-21 Tom Tromey <tromey@redhat.com>
3875 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
3877 * value.h (value_cast_pointers): Update.
3878 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
3879 (value_cast): Update.
3880 (update_search_result): New function.
3881 (do_search_struct_field): New, from search_struct_field. Check
3882 for ambiguous results.
3883 (search_struct_field): Rewrite.
3884 * infcall.c (value_arg_coerce): Update.
3885 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
3886 value_cast_pointers.
3887 * ada-lang.c (ada_convert_actual): Update.
3889 2012-05-21 Tom Tromey <tromey@redhat.com>
3891 * macroexp.c (macro_stringify): Terminate the string.
3893 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3895 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
3897 * auto-load.c (auto_load_expand_dir_vars): New function.
3898 (auto_load_safe_path_vec_update): Use it, remove the
3899 substitute_path_component call thanks to it.
3900 (auto_load_objfile_script): Remove the debug_file_directory processing.
3901 Use auto_load_expand_dir_vars, remove the substitute_path_component
3903 * configure: Regenerate.
3904 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
3905 path. Escape $ also for $debugdir.
3906 (--with_auto_load_safe_path): Escape $ also for $debugdir.
3907 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
3909 2012-05-20 Doug Evans <dje@google.com>
3911 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
3912 before use. Check for symtab->includes == NULL before scanning it.
3914 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3916 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
3918 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3920 * NEWS: Add microMIPS support and "set mips compression",
3921 "show mips compression" commands.
3922 * mips-tdep.h (mips_isa): New enum.
3923 (gdbarch_tdep): Add mips_isa.
3924 (mips_pc_is_mips16): Update prototype.
3925 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
3926 * mips-tdep.c (mips_compression_mips16): New variable.
3927 (mips_compression_micromips): Likewise.
3928 (mips_compression_strings): Likewise.
3929 (mips_compression_string): Likewise.
3930 (is_mips16_isa, is_micromips_isa): New functions.
3931 (is_mips16_addr): Rename to...
3932 (is_compact_addr): ... this.
3933 (unmake_mips16_addr): Likewise to...
3934 (unmake_compact_addr): ... this.
3935 (make_mips16_addr): Likewise to...
3936 (make_compact_addr): ... this.
3937 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
3939 (mips_elf_make_msymbol_special): Handle microMIPS code.
3940 (msymbol_is_special): Rename to...
3941 (msymbol_is_mips16): ... this.
3942 (mips_make_symbol_special, mips_pc_is_mips16): Update
3944 (msymbol_is_mips, msymbol_is_micromips): New functions.
3945 (mips16_to_32_reg): Rename to...
3946 (mips_reg3_to_reg): ... this.
3947 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
3948 (mips_pc_isa): Likewise.
3949 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
3951 (mips_fetch_instruction): Pass return status instead of printing
3952 an error message if requested. Handle microMIPS code. Bail out
3954 (micromips_op): New macro.
3955 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
3956 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
3957 (b6s4_op, b7s3_reg): Likewise.
3958 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
3959 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
3960 (mips_insn_size): New function.
3961 (mips32_next_pc): Update mips_fetch_instruction call.
3962 (micromips_relative_offset7): New function.
3963 (micromips_relative_offset10): Likewise.
3964 (micromips_relative_offset16): Likewise.
3965 (micromips_pc_insn_size): Likewise.
3966 (micromips_bc1_pc): Likewise.
3967 (micromips_next_pc): Likewise.
3968 (unpack_mips16): Update mips_fetch_instruction call.
3969 (extended_mips16_next_pc): Update according to change to
3971 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
3973 (mips16_scan_prologue): Update mips_fetch_instruction call.
3974 Update according to change to mips16_to_32_reg.
3975 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
3976 (mips_insn16_frame_base_sniffer): Likewise.
3977 (micromips_decode_imm9): New function.
3978 (micromips_scan_prologue): Likewise.
3979 (mips_micro_frame_cache): Likewise.
3980 (mips_micro_frame_this_id): Likewise.
3981 (mips_micro_frame_prev_register): Likewise.
3982 (mips_micro_frame_sniffer): Likewise.
3983 (mips_micro_frame_unwind): New variable.
3984 (mips_micro_frame_base_address): New function.
3985 (mips_micro_frame_base): New variable.
3986 (mips_micro_frame_base_sniffer): New function.
3987 (mips32_scan_prologue): Update mips_fetch_instruction call.
3988 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
3989 rather than for MIPS16.
3990 (mips_insn32_frame_base_sniffer): Likewise.
3991 (mips_addr_bits_remove): Handle microMIPS code.
3992 (deal_with_atomic_sequence): Rename to...
3993 (mips_deal_with_atomic_sequence): ... this. Update the type
3994 of the variable used to hold an instruction. Remove the ISA bit
3995 check. Update mips_fetch_instruction call.
3996 (micromips_deal_with_atomic_sequence): New function.
3997 (deal_with_atomic_sequence): Likewise.
3998 (mips_about_to_return): Handle microMIPS code. Update
3999 mips_fetch_instruction call.
4000 (heuristic_proc_start): Check for the standard MIPS ISA rather
4001 than for MIPS16. Update mips_pc_is_mips16 and
4002 mips_fetch_instruction calls. Handle microMIPS code.
4003 (mips_push_dummy_code): Handle microMIPS code.
4004 (mips_eabi_push_dummy_call): Likewise.
4005 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4006 (mips_o64_push_dummy_call): Handle microMIPS code.
4007 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4008 (is_delayed): Remove function.
4009 (mips_single_step_through_delay): Replace the call to is_delayed
4010 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4011 Handle microMIPS code.
4012 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4014 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4016 (micromips_in_function_epilogue_p): New function.
4017 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4019 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4021 (gdb_print_insn_mips): Likewise.
4022 (mips_breakpoint_from_pc): Likewise.
4023 (mips_remote_breakpoint_from_pc): New function.
4024 (mips32_instruction_has_delay_slot): Simplify making use of the
4025 updated mips_fetch_instruction interface.
4026 (micromips_instruction_has_delay_slot): New function.
4027 (mips16_instruction_has_delay_slot): Simplify making use of the
4028 updated mips_fetch_instruction interface.
4029 (mips_adjust_breakpoint_address): Check for the standard MIPS
4030 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4031 calls. Handle microMIPS code.
4032 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4033 (mips_skip_trampoline_code): Handle microMIPS code.
4034 (global_mips_compression): New function.
4035 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4036 file flags. Register the microMIPS remote breakpoint handler
4037 and heuristic frame unwinder.
4038 (show_mips_compression): New function.
4039 (_initialize_mips_tdep): Add the "set mips compression" and
4040 "show mips compression" commands.
4042 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4047 * amd64-darwin-tdep.c:
4048 * arm-symbian-tdep.c:
4052 * bfin-linux-tdep.c:
4059 * dwarf2-frame-tailcall.c:
4088 * microblaze-tdep.c:
4089 * mips-linux-tdep.c:
4097 * python/py-finishbreakpoint.c:
4098 * python/py-inferior.c:
4099 * python/py-infthread.c:
4103 * remote-m32r-sdi.c:
4107 * rs6000-aix-tdep.c:
4133 * amd64-darwin-tdep.c:
4134 * arm-symbian-tdep.c:
4135 * arm-tdep.c: Delete unused variables.
4137 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4139 Rename $ddir to $datadir.
4140 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4141 * auto-load.c (auto_load_safe_path_vec_update)
4142 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4143 * configure: Regenerate.
4144 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4145 Likewise. Remove the 'use $ddir' help string.
4147 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4149 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4150 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4152 2012-05-18 Tom Tromey <tromey@redhat.com>
4155 * valprint.h (struct value_print_options) <symbol_print>: New
4157 * valprint.c (user_print_options): Add default for symbol_print.
4158 (show_symbol_print): New function.
4159 (generic_val_print): Respect symbol_print.
4160 (_initialize_valprint): Add "print symbol" setting.
4161 * f-valprint.c (f_val_print): Respect symbol_print.
4162 * c-valprint.c (c_val_print): Respect symbol_print.
4164 * printcmd.c (print_address_symbolic): Return int. Ignore some
4166 (print_address_demangle): Return int.
4167 * defs.h: (print_address_symbolic): Return int.
4168 * value.h (print_address_demangle): Return int.
4170 2012-05-18 Tom Tromey <tromey@redhat.com>
4172 * valprint.c (val_print_string): Don't print leading space.
4173 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4174 print space before string or vtbl.
4175 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4177 * jv-valprint.c (java_value_print): Print space before string.
4178 * go-valprint.c (print_go_string): Print space before string.
4179 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4180 space before string.
4181 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4182 space before string or vtbl.
4183 * auxv.c (fprint_target_auxv): Print space after address.
4185 2012-05-18 Tom Tromey <tromey@redhat.com>
4187 * printcmd.c (print_address_demangle): Remove special case for 0.
4189 2012-05-18 Tom Tromey <tromey@redhat.com>
4191 * printcmd.c (print_address_demangle): Add 'opts' argument.
4192 * p-valprint.c (pascal_val_print): Update.
4193 * jv-valprint.c (java_val_print): Update.
4195 * valprint.c (generic_val_print): Update.
4196 (print_function_pointer_address): Add 'options' argument. Remove
4197 'addressprint' argument. Update.
4198 * m2-valprint.c (print_unpacked_pointer): Update.
4199 * gnu-v3-abi.c (print_one_vtable): Update.
4200 (gnuv3_print_method_ptr): Update.
4201 * f-valprint.c (f_val_print): Update.
4202 * cp-valprint.c (cp_print_value_fields): Update.
4203 * valprint.h (print_function_pointer_address): Update.
4204 * c-valprint.c (c_val_print): Update.
4206 2012-05-18 Tom Tromey <tromey@redhat.com>
4208 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4209 directly corresponding to the found psymtab.
4210 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4211 (dw2_find_pc_sect_symtab): Use it.
4212 * block.h (blockvector_contains_pc): Declare.
4213 * block.c (find_block_in_blockvector): New function.
4214 (blockvector_for_pc_sect): Use it.
4215 (blockvector_contains_pc): New function.
4217 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4219 * mips-tdep.h (mips_write_pc): New prototype.
4220 * mips-tdep.c (mips_write_pc): Make external, add description.
4221 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4224 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4226 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4228 (mips_unwind_pc, mips_write_pc): Likewise.
4229 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4232 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4234 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4235 proc_warn, proc_error, proc_get_status, proc_flags,
4236 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4237 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4238 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4239 proc_stop_process, proc_wait_for_stop, proc_run_process,
4240 proc_set_traced_signals, proc_set_traced_faults,
4241 proc_set_traced_sysentry, proc_set_traced_sysexit,
4242 proc_set_held_signals, proc_get_held_signals,
4243 proc_get_traced_signals, proc_get_traced_faults,
4244 proc_get_traced_sysentry, proc_get_traced_sysexit,
4245 proc_clear_current_fault, proc_set_current_signal,
4246 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4247 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4248 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4249 proc_get_current_thread, proc_get_current_thread,
4250 proc_get_current_thread, proc_update_threads,
4251 proc_update_threads, proc_update_threads, proc_update_threads,
4252 proc_iterate_over_threads, procfs_find_new_threads,
4253 procfs_pid_to_str): Make static. Remove advance declaration.
4254 (proc_cursig): Make static. Conditionalized defintion on
4255 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4256 (proc_syscall, proc_set_kill_on_last_close,
4257 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4258 proc_get_pending_signals, proc_get_signal_actions,
4259 proc_trace_signal, proc_ignore_signal): Delete.
4261 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4263 * coffread.c (cs_section_address): Passing proper argument for
4264 `bfd_get_section_vma'.
4265 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4266 `bfd_get_section_flags'.
4267 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4268 `bfd_get_section_vma'.
4270 2012-05-16 Tom Tromey <tromey@redhat.com>
4273 * macrotab.h: (macro_define_special): Declare.
4274 (enum macro_special_kind): New.
4275 (struct macro_definition) <argc, replacement>: Update comments.
4276 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4277 (macro_define_object_internal): New function.
4278 (macro_define_object): Use it.
4279 (macro_define_special): New function.
4280 (fixup_definition): New function.
4281 (macro_lookup_definition, foreach_macro_in_scope)
4282 (foreach_macro): Use fixup_definition.
4283 * macroexp.h (macro_stringify): Declare.
4284 * macroexp.c (free_buffer_return_text): New function.
4285 (stringify): Constify "arg".
4286 (macro_stringify): New function.
4287 * dwarf2read.c (macro_start_file): Call macro_define_special.
4289 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4290 Maciej W. Rozycki <macro@mips.com>
4292 * breakpoint.h (bp_location): Add related_address member.
4293 * inferior.h (get_return_value): Take a pointer to struct value
4294 instead of struct type for the function requested.
4295 * value.h (using_struct_return): Likewise.
4296 * gdbarch.sh (return_value): Take a pointer to struct value
4297 instead of struct type for the function requested.
4298 * breakpoint.c (set_breakpoint_location_function): Initialize
4299 related_address for bp_gnu_ifunc_resolver breakpoints.
4300 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4301 requested function's address to gdbarch_return_value.
4302 * eval.c (evaluate_subexp_standard): Pass the requested
4303 function's address to using_struct_return.
4304 * infcall.c (call_function_by_hand): Pass the requested
4305 function's address to using_struct_return and
4306 gdbarch_return_value.
4307 * infcmd.c (get_return_value): Take a pointer to struct value
4308 instead of struct type for the function requested.
4309 (print_return_value): Update accordingly.
4310 (finish_command_continuation): Likewise.
4311 * stack.c (return_command): Pass the requested function's
4312 address to using_struct_return and gdbarch_return_value.
4313 * value.c (using_struct_return): Take a pointer to struct value
4314 instead of struct type for the function requested. Pass the
4315 requested function's address to gdbarch_return_value.
4316 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4317 New function_value member, replacing function_type.
4318 (bpfinishpy_dealloc): Update accordingly.
4319 (bpfinishpy_pre_stop_hook): Likewise.
4320 (bpfinishpy_init): Likewise. Record the requested function's
4322 * mips-tdep.c (mips_fval_reg): New enum.
4323 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4324 words put in GP registers.
4325 (mips_o64_push_dummy_call): Update a comment.
4326 (mips_o32_return_value): Take a pointer to struct value instead
4327 of struct type for the function requested and use it to check if
4328 using the MIPS16 calling convention. Return the designated
4329 general purpose registers for floating-point values returned in
4331 (mips_o64_return_value): Likewise.
4332 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4333 (ppc_sysv_abi_broken_return_value): Likewise.
4334 (ppc64_sysv_abi_return_value): Likewise.
4335 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4336 value instead of struct type for the function requested.
4337 * amd64-tdep.c (amd64_return_value): Likewise.
4338 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4339 * arm-tdep.c (arm_return_value): Likewise.
4340 * avr-tdep.c (avr_return_value): Likewise.
4341 * bfin-tdep.c (bfin_return_value): Likewise.
4342 * cris-tdep.c (cris_return_value): Likewise.
4343 * frv-tdep.c (frv_return_value): Likewise.
4344 * h8300-tdep.c (h8300_return_value): Likewise.
4345 (h8300h_return_value): Likewise.
4346 * hppa-tdep.c (hppa32_return_value): Likewise.
4347 (hppa64_return_value): Likewise.
4348 * i386-tdep.c (i386_return_value): Likewise.
4349 * ia64-tdep.c (ia64_return_value): Likewise.
4350 * iq2000-tdep.c (iq2000_return_value): Likewise.
4351 * lm32-tdep.c (lm32_return_value): Likewise.
4352 * m32c-tdep.c (m32c_return_value): Likewise.
4353 * m32r-tdep.c (m32r_return_value): Likewise.
4354 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4355 * m68k-tdep.c (m68k_return_value): Likewise.
4356 (m68k_svr4_return_value): Likewise.
4357 * m88k-tdep.c (m88k_return_value): Likewise.
4358 * mep-tdep.c (mep_return_value): Likewise.
4359 * microblaze-tdep.c (microblaze_return_value): Likewise.
4360 * mn10300-tdep.c (mn10300_return_value): Likewise.
4361 * moxie-tdep.c (moxie_return_value): Likewise.
4362 * mt-tdep.c (mt_return_value): Likewise.
4363 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4364 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4365 (ppc_sysv_abi_broken_return_value): Likewise.
4366 (ppc64_sysv_abi_return_value): Likewise.
4367 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4368 * rl78-tdep.c (rl78_return_value): Likewise.
4369 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4370 * rx-tdep.c (rx_return_value): Likewise.
4371 * s390-tdep.c (s390_return_value): Likewise.
4372 * score-tdep.c (score_return_value): Likewise.
4373 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4374 (sh_return_value_fpu): Likewise.
4375 * sh64-tdep.c (sh64_return_value): Likewise.
4376 * sparc-tdep.c (sparc32_return_value): Likewise.
4377 * sparc64-tdep.c (sparc64_return_value): Likewise.
4378 * spu-tdep.c (spu_return_value): Likewise.
4379 * tic6x-tdep.c (tic6x_return_value): Likewise.
4380 * v850-tdep.c (v850_return_value): Likewise.
4381 * vax-tdep.c (vax_return_value): Likewise.
4382 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4383 * xtensa-tdep.c (xtensa_return_value): Likewise.
4384 * gdbarch.c: Regenerate.
4385 * gdbarch.h: Regenerate.
4387 2012-05-15 Tom Tromey <tromey@redhat.com>
4389 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4391 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4393 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4394 of command in two error message.
4396 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4398 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4400 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4402 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4404 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4406 * NEWS (show auto-load scripts-directory): Add forgotten command.
4408 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4410 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4413 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4415 * amd64-tdep.c: Include features/i386/x32.c and
4416 features/i386/x32-avx.c.
4417 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4418 initialize_tdesc_x32_avx.
4420 2012-05-14 Stan Shebs <stan@codesourcery.com>
4423 * breakpoint.h (enum bptype): New type bp_dprintf.
4424 (struct breakpoint): New field extra_string.
4425 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4426 (create_breakpoint): Add extra_string arg.
4427 * breakpoint.c (dprintf_breakpoint_ops): New.
4428 (is_breakpoint): Add bp_dprintf.
4429 (bpstat_what): Add dprintf case.
4430 (bptype_string): Ditto.
4431 (print_one_breakpoint_location): Ditto.
4432 (init_bp_location): Ditto.
4433 (bkpt_print_mention): Ditto.
4434 (dprintf_style_enums): New array.
4435 (dprintf_style): New global.
4436 (dprintf_function): New global.
4437 (dprintf_channel): New global.
4438 (update_dprintf_command_list): New function.
4439 (update_dprintf_commands): New function.
4440 (init_breakpoint_sal): Add extra_string argument, handle it.
4441 (create_breakpoint_sal): Add extra_string argument.
4442 (create_breakpoints_sal): Add extra_string argument, update callers.
4443 (find_condition_and_thread): Add extra argument.
4444 (create_breakpoint): Add extra_string argument, record it.
4445 (dprintf_command): New function.
4446 (break_command_1): Add arg to create_breakpoint call.
4447 (handle_gnu_v3_exceptions): Ditto.
4448 (trace_command): Ditto.
4449 (ftrace_command): Ditto.
4450 (strace_command): Ditto.
4451 (bkpt_print_mention): Add dprintf case.
4452 (create_breakpoint_sal_default): Add extra_string argument.
4453 (_initialize_breakpoint): Add new commands.
4454 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4455 * python/py-breakpoint.c (bppy_init): Ditto.
4456 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4458 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4460 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4462 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4464 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4467 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4469 Add a new function gdb.find_pc_line to the Python API.
4470 * NEWS (Python Scripting): Add entry about the new function.
4471 * python/python.c (gdbpy_find_pc_line): New function which
4472 implements gdb.find_pc_line.
4473 (GdbMethods): Add entry for the new function.
4475 2012-05-12 Pedro Alves <palves@redhat.com>
4477 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4478 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4480 2012-05-12 Eli Zaretskii <eliz@gnu.org>
4482 * inferior.c: Include completer.h
4483 (initialize_inferiors): Set completer of add-inferior to
4486 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4488 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4489 gdbarch_ptr_bit for x32 core dump.
4491 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4493 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4494 and features/i386/x32-avx-linux.c.
4496 2012-05-11 Stan Shebs <stan@codesourcery.com>
4497 Kwok Cheung Yeung <kcy@codesourcery.com>
4499 * NEWS: Describe new info os commands.
4500 * common/linux-osdata.c (PID_T, TIME_T): Define.
4501 (MAX_PID_T_STRLEN): New.
4502 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4504 (command_from_pid): Add comment. Change to use PID_T.
4505 (commandline_from_pid): Change to use PID_T.
4506 (user_from_pid): Add comment.
4507 (get_process_owner): Add comment. Change to use PID_T and
4509 (get_number_of_cpu_cores): Add comment.
4510 (get_cores_used_by_process): Add comment. Change to use PID_T and
4512 (linux_xfer_osdata_processes): Change to use PID_T and
4514 (compare_processes): New function.
4515 (linux_xfer_osdata_processgroups): New function.
4516 (linux_xfer_osdata_threads): Change to use PID_T.
4517 (linux_xfer_osdata_fds): New function.
4518 (format_socket_state, print_sockets): New functions.
4519 (union socket_addr): New union.
4520 (linux_xfer_osdata_isockets): New function.
4521 (time_from_time_t, group_from_gid): New functions.
4522 (linux_xfer_osdata_shm): New function.
4523 (linux_xfer_osdata_sem): New function.
4524 (linux_xfer_osdata_msg): New function.
4525 (linux_xfer_osdata_modules): New function.
4526 (osdata_table): Add new entries.
4527 * common/buffer.c (buffer_xml_printf): Add support for long and
4528 long long format specifiers.
4530 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4532 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4533 (tdesc_x32_avx_linux): Likewise.
4535 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4537 Implement multi-component --with-auto-load-dir.
4538 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4540 (--with-auto-load-safe-path): Update the default value description.
4541 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4543 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4544 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4545 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4546 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4547 "set auto-load scripts-directory".
4548 * config.in: Regenerate.
4549 * configure: Regenerate.
4550 * configure.ac (--with-auto-load-dir): New configure option.
4551 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4553 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4555 Provide $ddir substitution for --with-auto-load-safe-path.
4556 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4558 * auto-load.c: Include observer.h.
4559 (auto_load_safe_path_vec_update): Call substitute_path_component for
4560 each component. New variable ddir_subst.
4561 (auto_load_gdb_datadir_changed): New function.
4562 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4563 AUTO_LOAD_SAFE_PATH. New comment.
4564 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4565 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4566 * config.in: Regenerate.
4567 * configure: Regenerate.
4568 * configure.ac (--auto-load-safe-path): Rename
4569 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4570 GDB_DATADIR/auto-load.
4571 * defs.h (substitute_path_component): New declaration.
4572 * top.c: Include observer.h.
4573 (set_gdb_datadir): New function.
4574 (init_main): Install it for "set data-directory".
4575 * utils.c (substitute_path_component): New function.
4577 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4579 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4580 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4581 DEBUG_FILE_DIRECTORY. Handle multiple components of
4582 DEBUG_FILE_DIRECTORY.
4584 2012-05-10 Tom Tromey <tromey@redhat.com>
4586 * dwarf2read.c (recursively_write_psymbols): New function.
4587 (write_psymtabs_to_index): Use it.
4589 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4591 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4592 (load_partial_comp_unit): Update.
4593 (queue_comp_unit): Add argument 'pretend_language'.
4594 (process_queue): Update.
4595 (psymtab_to_symtab_1): Skip dependencies that have a user.
4596 (load_partial_comp_unit_reader): Give meaning to the 'data'
4598 (load_full_comp_unit): Add 'pretend_language' argument.
4599 (process_full_comp_unit): Add 'pretend_language' argument. Set
4601 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4603 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4604 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4606 (prepare_one_comp_unit): Add 'pretend_language' argument.
4608 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4609 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4610 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4611 (dw2_do_instantiate_symtab): Check whether symtab was read in
4613 (dw2_instantiate_symtab): Add assertion. Call
4614 process_cu_includes.
4615 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4616 (partial_symtab_p): New typedef.
4617 (set_partial_user): New function.
4618 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4619 (scan_partial_symbols): Add imported CU to imported_symtabs.
4620 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4621 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4622 (get_symtab, recursively_compute_inclusions)
4623 (compute_symtab_includes, process_cu_includes)
4624 (process_imported_unit_die): New functions.
4625 (process_die) <DW_TAG_imported_unit>: New case.
4626 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4628 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4630 (struct partial_die_info) <locdesc>: Remove.
4632 (process_psymtab_comp_unit): Add 'read_partial' argument.
4634 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4635 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4636 (add_partial_symbol): Update.
4637 (process_die): Handle DW_TAG_partial_unit.
4638 (read_file_scope): Update comment.
4639 (load_partial_dies): Handle DW_TAG_imported_unit.
4640 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4641 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4643 2012-05-10 Tom Tromey <tromey@redhat.com>
4645 * cc-with-dwz.sh: New file.
4647 2012-05-10 Tom Tromey <tromey@redhat.com>
4649 * symtab.h (struct symtab) <includes, user>: New fields.
4650 * block.h (struct block_iterator) <d, idx, which>: New fields.
4651 * block.c (initialize_block_iterator, find_iterator_symtab)
4652 (block_iterator_step, block_iter_name_step)
4653 (block_iter_match_step): New functions.
4654 (block_iterator_first, block_iterator_next)
4655 (block_iter_name_first, block_iter_name_next)
4656 (block_iter_match_first, block_iter_match_next): Rewrite.
4657 (get_block_symtab): New function.
4659 2012-05-10 Tom Tromey <tromey@redhat.com>
4661 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4663 * jit.c (finalize_symtab): Use allocate_global_block,
4665 * buildsym.c (finish_block_internal): New function, from old
4667 (finish_block): Rewrite.
4668 (end_symtab): Use finish_block_internal, set_block_symtab.
4669 * block.h (struct global_block): New.
4670 (allocate_global_block, set_block_symtab): Declare.
4671 * block.c (allocate_global_block, set_block_symtab): New
4674 2012-05-10 Tom Tromey <tromey@redhat.com>
4676 * psymtab.c (partial_map_expand_apply): Add assertion.
4677 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4678 (psymtab_to_symtab): Find unshared psymtab.
4679 (dump_psymtab): Print including psymtabs.
4680 (recursively_search_psymtabs): New function.
4681 (expand_symtabs_matching_via_partial): Use it.
4682 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4684 (enum psymtab_search_status): New.
4686 2012-05-10 Tom Tromey <tromey@redhat.com>
4688 * tracepoint.c (scope_info): Update.
4689 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4690 (find_pc_sect_symtab, search_symbols)
4691 (default_make_symbol_completion_list_break_on)
4692 (make_file_symbol_completion_list): Update.
4693 * symmisc.c (dump_symtab_1): Update.
4694 * stack.c (print_frame_args, iterate_over_block_locals)
4695 (print_frame_labels, iterate_over_block_arg_vars): Update.
4696 * python/py-block.c (block_object) <dict>: Remove.
4698 <iter>: Change type.
4699 (blpy_iter): Update.
4700 (blpy_block_syms_iternext): Update.
4701 * psymtab.c (map_block): Use block iterators.
4702 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4703 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4704 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4705 * infrun.c (check_exception_resume): Update.
4706 * cp-support.c (make_symbol_overload_list_block): Update.
4707 * coffread.c (patch_opaque_types): Update.
4708 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4709 * block.h (struct block_iterator): New.
4710 (block_iterator_first, block_iterator_next, block_iter_name_first)
4711 (block_iter_name_next, block_iter_match_first)
4712 (block_iter_match_next): Declare.
4713 (ALL_BLOCK_SYMBOLS): Redefine.
4714 * block.c (block_iterator_first, block_iterator_next)
4715 (block_iter_name_first, block_iter_name_next)
4716 (block_iter_match_first, block_iter_match_next): New functions.
4717 * ada-lang.c (ada_add_block_symbols)
4718 (ada_make_symbol_completion_list): Use block iterator.
4720 2012-05-10 Tom Tromey <tromey@redhat.com>
4722 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4723 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4724 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4725 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4726 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4729 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4731 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4732 print-file-var-lib2.c, print-file-var-main.c and
4733 print-file-var.exp (located in gdb/testsuite/gdb.base).
4735 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4737 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4738 try locating the symbol in the symbol's own objfile first, before
4739 extending the search to all objfiles.
4740 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4741 out of lookup_symbol_aux_symtabs.
4742 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4743 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4744 Do not search EXCLUDE_OBJFILE.
4745 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4746 (lookup_symbol_global): Search for matches in the block's objfile
4747 first, before searching all other objfiles.
4749 2012-05-10 Tristan Gingold <gingold@adacore.com>
4751 * printcmd.c (set_command): Add pre/post inc/dec.
4753 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
4755 * gdb.1: Document -ex option.
4757 2012-05-09 Joel Brobecker <brobecker@adacore.com>
4759 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
4760 * inferior.h (AT_SYMBOL): Delete.
4762 2012-05-09 Joel Brobecker <brobecker@adacore.com>
4764 * mips-tdep.c (mips_push_dummy_code): New function.
4765 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
4766 ON_STACK and install mips_push_dummy_code as our gdbarch
4767 push_dummy_code routine.
4769 2012-05-09 Pedro Alves <palves@redhat.com>
4771 * target.c (set_maintenance_target_async_permitted): Rename to ...
4772 (set_target_async_command): ... this.
4773 (show_maintenance_target_async_permitted): Rename to ...
4774 (show_target_async_command): ... this.
4775 (initialize_targets): Adjust.
4777 2012-05-08 Doug Evans <dje@google.com>
4779 * go-exp.y (classify_name): Add missing assignment of fields of
4782 2012-05-08 Eli Zaretskii <eliz@gnu.org>
4784 Display the ">" prompt in interactive mode while reading canned
4785 commands, even when the current interpreter is MI.
4787 * interps.c (interp_set_temp): New function.
4789 * interps.h (interp_set_temp): Add prototype.
4791 * cli/cli-script.c (restore_interp): New cleanup function.
4792 (read_command_lines): Temporarily override the current interpreter
4793 with CLI and arrange for restoring the original one.
4795 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
4797 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
4799 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4801 * probe.c (parse_probes): Move conditional to check for
4802 debuginfo files from here...
4803 * stap-probe.c (stap_get_probes): ... to here.
4805 2012-05-07 Mark Kettenis <kettenis@gnu.org>
4806 H.J. Lu <hongjiu.lu@intel.com>
4808 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
4809 `movl %esp, %ebp' for the X32 ABI.
4811 2012-05-07 Tom Tromey <tromey@redhat.com>
4813 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
4815 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
4816 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
4817 (dwarf_stack_op_name): Remove.
4818 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
4819 (decode_locdesc): Use get_DW_OP_name.
4820 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
4821 (dwarf2_compile_expr_to_ax): Likewise.
4822 (disassemble_dwarf_expression): Likewise.
4823 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
4825 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
4827 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
4828 (sh_linux_sigtramp_cache): New function.
4829 (sh_linux_sigreturn_init): New function.
4830 (sh_linux_rt_sigreturn_init): New function.
4831 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
4833 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
4835 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
4836 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
4837 (sh_linux_init_abi): Add init calls to register new tramp_frame
4838 definitions under 32-bit SH, update comments.
4840 2012-05-07 Pedro Alves <palves@redhat.com>
4844 * amd64-linux-tdep.c: Include glibc-tdep.h.
4845 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
4846 gdbarch_skip_solib_resolver callback.
4848 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4850 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
4851 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
4852 (show_auto_load_safe_path): Check any-directory by comparison with "/".
4853 (add_auto_load_safe_path): Change the error message.
4854 (_initialize_auto_load): Change the "safe-path" help text.
4855 * configure: Regenerate
4856 * configure.ac (--without-auto-load-safe-path): Set
4857 WITH_AUTO_LOAD_SAFE_PATH to /.
4859 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
4861 * stap-probe.h: Do not include unecessary `probe.h'.
4863 2012-05-05 Alan Modra <amodra@gmail.com>
4865 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
4866 bfd_und_section_ptr.
4867 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
4868 and bfd_com_section_ptr.
4870 2012-05-04 Joel Brobecker <brobecker@adacore.com>
4872 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
4874 2012-05-04 Joel Brobecker <brobecker@adacore.com>
4876 * windows-nat.h (segment_register_p_ftype): New typedef.
4877 (windows_set_segment_register_p): Add declaration.
4878 * windows-nat.c (segment_register_p): New static global.
4879 (windows_set_segment_register_p): New function.
4880 (do_windows_fetch_inferior_registers): Add special handling
4881 for segment registers.
4882 * amd64-windows-nat.c: #include "amd64-tdep.h".
4883 (amd64_windows_segment_register_p): New function.
4884 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
4885 * i386-windows-nat.c: #include "i386-tdep.h".
4886 (i386_windows_segment_register_p): New function.
4887 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
4889 2012-05-04 Tristan Gingold <gingold@adacore.com>
4891 * printcmd.c (set_command): Emit a warning if the expression is not
4894 2012-05-03 Joel Brobecker <brobecker@adacore.com>
4896 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
4899 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4901 * stap-probe.c (stap_is_operator): Change declaration.
4902 (stap_get_opcode): Change return value.
4903 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
4904 `stap_parse_argument_1'.
4906 2012-05-03 Pedro Alves <pedro@codesourcery.com>
4908 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
4911 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
4913 Add two new methods global_block and static_block to gdb.Symtab
4915 * NEWS (Python scripting): Add entry about the new methods.
4916 * python/py-symtab.c (stpy_global_block): New function which
4917 implements the gdb.Symtab.global_block() method.
4918 (stpy_static_block): New function which implements the
4919 gdb.Symtab.static_block() method.
4920 (symtab_object_methods): Add entries for the two new methods.
4922 2012-05-03 Doug Evans <dje@google.com>
4924 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
4927 2012-05-03 Yao Qi <yao@codesourcery.com>
4929 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
4931 (i386_process_record): Ditto.
4933 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4935 * infcall.c (unwind_on_signal_p): Make static.
4937 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4939 * sol-thread.c (solaris_pid_to_str): Make static.
4940 (_initialize_sol_thread): Add prototype.
4942 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4944 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
4946 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
4948 * MAINTAINERS: Remove myself.
4950 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4952 Fix --without-auto-load-safe-path for MS-Windows host platform.
4953 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
4955 2012-05-02 Eli Zaretskii <eliz@gnu.org>
4957 * gdb_curses.h: Undefine KEY_EVENT before including curses
4958 headers. Move "#undef MOUSE_MOVED" before any curses header
4961 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4963 * features/i386/i386-mmx-linux.c: Regenerate.
4964 * features/rs6000/powerpc-32.c: Likewise.
4965 * features/rs6000/powerpc-32l.c: Likewise.
4966 * features/rs6000/powerpc-403.c: Likewise.
4967 * features/rs6000/powerpc-403gc.c: Likewise.
4968 * features/rs6000/powerpc-405.c: Likewise.
4969 * features/rs6000/powerpc-505.c: Likewise.
4970 * features/rs6000/powerpc-601.c: Likewise.
4971 * features/rs6000/powerpc-602.c: Likewise.
4972 * features/rs6000/powerpc-603.c: Likewise.
4973 * features/rs6000/powerpc-604.c: Likewise.
4974 * features/rs6000/powerpc-64.c: Likewise.
4975 * features/rs6000/powerpc-64l.c: Likewise.
4976 * features/rs6000/powerpc-750.c: Likewise.
4977 * features/rs6000/powerpc-860.c: Likewise.
4978 * features/rs6000/powerpc-e500.c: Likewise.
4979 * features/rs6000/powerpc-e500l.c: Likewise.
4980 * features/rs6000/powerpc-isa205-32l.c: Likewise.
4981 * features/rs6000/powerpc-isa205-64l.c: Likewise.
4982 * features/rs6000/rs6000.c: Likewise.
4984 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4986 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
4988 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
4989 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
4990 (stap_parse_argument) <e>: Likewise.
4991 (handle_stap_probe) <byte_order>: Likewise.
4993 2012-04-30 Doug Evans <dje@google.com>
4995 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
4996 init_and_read_dies_worker. All callers updated.
4997 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
4998 replaced with init_cutu_and_read_dies.
4999 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5000 (find_partial_die): Remove FIXME. Don't free current CU.
5002 2012-04-30 Sterling Augustine <saugustine@google.com>
5004 * contrib: New directory.
5005 * contrib/test_pubnames_and_indexes.py: New file.
5007 2012-04-30 Doug Evans <dje@google.com>
5009 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5010 All callers updated.
5011 (init_cu_die_reader): Verify the section is non-empty.
5012 (dwarf_decode_line_header): Don't dereference section->asection
5013 until we know the section is present.
5015 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5017 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5020 2012-04-29 Yao Qi <yao@codesourcery.com>
5022 * gdb-code-style.el: New hook gdb-markup-hook
5023 and gdb-comment-hook.
5025 2012-04-28 Doug Evans <dje@google.com>
5027 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5028 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5030 * symfile.h (dwarf2_debug_sections): New member addr.
5031 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5032 (ctx_no_get_addr_index): New function.
5033 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5034 (ctx_no_get_addr_index): Declare.
5035 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5036 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5037 (dwarf_expr_ctx_funcs): Update.
5038 (needs_get_addr_index): New function.
5039 (needs_frame_ctx_funcs): Update.
5040 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5041 * dwarf2read.c: #include "gdbcore.h".
5042 (dwarf2_per_objfile): New members addr, dwo_files.
5043 (dwarf2_elf_names): Add entry for addr.
5044 (struct dwo_section_names): New type.
5045 (dwo_section_names): New static global.
5046 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5047 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5048 old debug_types_section member updated to use this.
5049 Rename member debug_types_section to info_or_types_section,
5051 (signatured_type): Rename member type_offset to type_offset_in_tu,
5052 all uses updated. New member type_offset_in_section.
5053 (struct dwo_sections): New type.
5054 (struct dwo_unit): New type.
5055 (struct dwo_file): New type.
5056 (die_reader_specs): New member dwo_file.
5057 (dwarf2_locate_sections): Watch for .debug_addr.
5058 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5059 (dwarf2_read_section): Get bfd of section from bfd's asection,
5061 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5062 (create_signatured_type_table_from_index): Initialize
5063 sig_type->info_or_types_section.
5064 (dw2_get_file_names): Statement lists for type units with DWO files
5065 live in the DWO file.
5066 (create_debug_types_hash_table): New function.
5067 (create_all_type_units): Rewrite.
5068 (init_cu_die_reader): New arg dwo_file, all callers updated.
5069 (init_and_read_dies_worker): Get section from
5070 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5071 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5072 continue reading the CU/TU from there.
5073 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5074 updated. Get section from this_cu->info_or_types_section.
5075 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5076 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5077 DW_FORM_GNU_str_index.
5078 (hash_dwo_file, eq_dwo_file): New functions.
5079 (allocate_dwo_file_hash_table): New function.
5080 (hash_dwo_unit, eq_dwo_unit): New functions.
5081 (allocate_dwo_unit_table): New function.
5082 (dwarf2_locate_dwo_sections): New function.
5083 (struct create_dwo_info_table_data): New type.
5084 (create_debug_info_hash_table_reader): New function.
5085 (create_debug_info_hash_table): New function.
5086 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5087 (lookup_dwo_file): New function.
5088 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5089 (free_dwo_file, free_dwo_file_cleanup): New functions.
5090 (free_dwo_file_from_slot, free_dwo_files): New functions.
5091 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5092 (dwarf2_record_block_ranges): Ditto.
5093 (read_partial_die): Ditto.
5094 (process_enumeration_scope): Update to use type_offset_in_section.
5095 (read_full_die_1): New function.
5096 (read_full_die): Rewrite.
5097 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5098 DW_FORM_GNU_str_index.
5099 (read_addr_index_1, read_addr_index): New functions.
5100 (read_addr_index_from_leb128): New function.
5101 (struct dwarf2_read_addr_index_data): New type.
5102 (dwarf2_read_addr_index_reader): New function.
5103 (dwarf2_read_addr_index): New function.
5104 (read_str_index): New function.
5105 (leb128_size): New function.
5106 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5107 If processing a type unit from a DWO file, get the line section
5109 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5110 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5111 DW_FORM_GNU_str_index.
5112 (lookup_die_type): Check whether section offset of type's die is
5113 known before looking it up. Remove assert. Condition can
5114 legimately happen for inter-cu type references.
5115 (dwarf_attr_name): Handle Fission attributes.
5116 (dwarf_form_name): Handle Fission forms.
5117 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5118 DW_FORM_GNU_str_index.
5119 (follow_die_sig): Update to use type_offset_in_section.
5120 (decode_locdesc): New case DW_OP_GNU_addr_index.
5121 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5122 DW_FORM_GNU_str_index.
5123 (cu_debug_loc_section): New function.
5124 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5125 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5126 Free DWO files if present.
5127 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5129 Refactor DIE reading.
5130 * dwarf2read.c (dwarf2_per_objfile): Replace members
5131 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5132 (die_reader_specs): New member "die_section". Temporarily make
5133 member "buffer" non-const, pending constifying all info_ptr uses.
5134 (die_reader_func_ftype): New typedef.
5135 (dw2_get_file_names_reader): New function.
5136 (dw2_get_file_names): Rewrite.
5137 (read_and_check_type_unit_head): Rename arg type_offset to
5139 (create_all_type_units): Improve debugging message.
5140 Improve dummy type unit check.
5141 (init_cu_die_reader): New arg "section". All callers updated.
5142 (init_and_read_dies_worker): New function.
5143 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5144 (init_cutu_and_read_dies_no_follow): New function.
5145 (init_cutu_and_read_dies_simple): New function.
5146 (process_psymtab_comp_unit_reader): New function.
5147 (process_psymtab_comp_unit): Delete args section,
5148 is_debug_types_section. Rewrite. All callers updated.
5149 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5150 All callers updated. Rewrite.
5151 (load_partial_comp_unit_reader): New function.
5152 (load_partial_comp_unit): Rewrite.
5153 (skip_children): New arg reader. Delete args buffer, cu.
5154 All callers updated.
5155 (skip_one_die): New arg reader. Delete args buffer, cu.
5156 All callers updated.
5157 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5158 All callers updated.
5159 (load_full_comp_unit_reader): New function.
5160 (load_full_comp_unit): Rewrite.
5161 (read_comp_unit): Delete.
5162 (read_die_and_children_1): Delete, contents moved ...
5163 (read_die_and_children): ... here.
5164 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5165 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5166 All callers updated.
5167 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5168 All callers updated.
5169 (find_partial_die): Rewrite load_all_dies support.
5170 (read_attribute_value): New arg reader. Delete args abfd, cu.
5171 All callers updated.
5172 (read_attribute): New arg reader. Delete args abfd, cu.
5173 All callers updated.
5174 (load_full_type_unit): Add assert.
5175 (read_signatured_type_reader): New function.
5176 (read_signatured_type): Rewrite.
5177 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5178 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5179 All callers updated. Set per_cu->cu = NULL after freeing it.
5180 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5181 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5182 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5183 (set_die_type): Update.
5184 (get_die_type_at_offset): Update.
5185 (read_file_scope): Call prepare_one_comp_unit.
5186 (read_type_unit_scope): Ditto.
5187 (prepare_one_comp_unit): Set producer if present.
5189 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5191 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5192 gettext function on `error'.
5194 2012-04-27 Doug Evans <dje@google.com>
5196 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5199 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5200 Tom Tromey <tromey@redhat.com>
5202 * breakpoint.c (struct breakpoint_objfile_data)
5203 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5204 <exception_probes>: New fields.
5205 (free_breakpoint_probes): New function.
5206 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5207 `_Unwind_DebugHook'.
5208 (create_exception_master_breakpoint): Likewise.
5209 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5210 * infrun.c: Including necessary header files for handling SystemTap
5212 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5213 via SystemTap probes.
5214 (check_exception_resume): Remove `func' argument. Handle exception
5215 unwinding breakpoint set via a SystemTap probe.
5216 (insert_exception_resume_from_probe): New function.
5218 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5219 Tom Tromey <tromey@redhat.com>
5220 Jan Kratochvil <jan.kratochvil@redhat.com>
5222 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5223 (COMMON_OBS): Likewise.
5224 (HFILES_NO_SRCDIR): Add `probe'.
5225 * NEWS: Mention support for static and SystemTap probes.
5226 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5227 SystemTap probes' arguments parser.
5228 * arm-linux-tdep.c: Including headers needed to perform the parsing
5229 of SystemTap probes' arguments.
5230 (arm_stap_is_single_operand): New function.
5231 (arm_stap_parse_special_token): Likewise.
5232 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5233 probes' arguments parser.
5234 * ax-gdb.c (require_rvalue): Removing static declaration.
5235 (gen_expr): Likewise.
5236 * ax-gdb.h (gen_expr): Declaring function.
5237 (require_rvalue): Likewise.
5238 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5239 (bkpt_probe_breakpoint_ops): New variable.
5240 (momentary_breakpoint_from_master): Set the `probe' value.
5241 (add_location_to_breakpoint): Likewise.
5242 (break_command_1): Using proper breakpoint_ops according to the
5243 argument passed by the user in the command line.
5244 (bkpt_probe_insert_location): New function.
5245 (bkpt_probe_remove_location): Likewise.
5246 (bkpt_probe_create_sals_from_address): Likewise.
5247 (bkpt_probe_decode_linespec): Likewise.
5248 (tracepoint_probe_create_sals_from_address): Likewise.
5249 (tracepoint_probe_decode_linespec): Likewise.
5250 (tracepoint_probe_breakpoint_ops): New variable.
5251 (trace_command): Using proper breakpoint_ops according to the
5252 argument passed by the user in the command line.
5253 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5254 static probes on breakpoints and tracepoints.
5255 * breakpoint.h (struct bp_location) <probe>: New field.
5256 * cli-utils.c (skip_spaces_const): New function.
5257 (extract_arg): Likewise.
5258 * cli-utils.h (skip_spaces_const): Likewise.
5259 (extract_arg): Likewise.
5260 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5261 * configure.ac: Append `stap-probe.o' to be generated when ELF
5263 * configure: Regenerate.
5264 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5265 * elfread.c: Include `probe.h' and `arch-utils.h'.
5266 (probe_key): New variable.
5267 (elf_get_probes): New function.
5268 (elf_get_probe_argument_count): Likewise.
5269 (elf_evaluate_probe_argument): Likewise.
5270 (elf_compile_to_ax): Likewise.
5271 (elf_symfile_relocate_probe): Likewise.
5272 (stap_probe_key_free): Likewise.
5273 (elf_probe_fns): New variable.
5274 (elf_sym_fns): Add `sym_probe_fns' value.
5275 (elf_sym_fns_lazy_psyms): Likewise.
5276 (elf_sym_fns_gdb_index): Likewise.
5277 (_initialize_elfread): Initialize objfile cache for static
5279 * gdb_vecs.h (struct probe): New forward declaration.
5280 (probe_p): New VEC declaration.
5281 * gdbarch.c: Regenerate.
5282 * gdbarch.h: Regenerate.
5283 * gdbarch.sh (stap_integer_prefix): New variable.
5284 (stap_integer_suffix): Likewise.
5285 (stap_register_prefix): Likewise.
5286 (stap_register_suffix): Likewise.
5287 (stap_register_indirection_prefix): Likewise.
5288 (stap_register_indirection_suffix): Likewise.
5289 (stap_gdb_register_prefix): Likewise.
5290 (stap_gdb_register_suffix): Likewise.
5291 (stap_is_single_operand): New function.
5292 (stap_parse_special_token): Likewise.
5293 (struct stap_parse_info): Forward declaration.
5294 * i386-tdep.c: Including headers needed to perform the parsing
5295 of SystemTap probes' arguments.
5296 (i386_stap_is_single_operand): New function.
5297 (i386_stap_parse_special_token): Likewise.
5298 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5299 probes' arguments parser.
5300 * i386-tdep.h (i386_stap_is_single_operand): New function.
5301 (i386_stap_parse_special_token): Likewise.
5302 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5303 * mipsread.c (ecoff_sym_fns): Likewise.
5304 * objfiles.c (objfile_relocate1): Support relocation for static
5306 * parse.c (prefixify_expression): Remove static declaration.
5307 (initialize_expout): Likewise.
5308 (reallocate_expout): Likewise.
5309 * parser-defs.h (initialize_expout): Declare function.
5310 (reallocate_expout): Likewise.
5311 (prefixify_expression): Likewise.
5312 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5313 of SystemTap probes' arguments.
5314 (ppc_stap_is_single_operand): New function.
5315 (ppc_stap_parse_special_token): Likewise.
5316 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5317 probes' arguments parser.
5318 * probe.c: New file, for generic statically defined probe support.
5319 * probe.h: Likewise.
5320 * s390-tdep.c: Including headers needed to perform the parsing of
5321 SystemTap probes' arguments.
5322 (s390_stap_is_single_operand): New function.
5323 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5324 probes' arguments parser.
5325 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5326 * stap-probe.c: New file, for SystemTap probe support.
5327 * stap-probe.h: Likewise.
5328 * symfile.h: Include `gdb_vecs.h'.
5329 (struct sym_probe_fns): New struct.
5330 (struct sym_fns) <sym_probe_fns>: New field.
5331 * symtab.c (init_sal): Initialize `probe' field.
5332 * symtab.h (struct probe): Forward declaration.
5333 (struct symtab_and_line) <probe>: New field.
5334 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5336 (stop_tracing): Likewise.
5337 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5339 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5340 Tom Tromey <tromey@redhat.com>
5342 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5343 and to compile agent expressions.
5344 * infrun.c (siginfo_make_value): New argument `ignore'.
5345 (siginfo_funcs): New struct.
5346 (_initialize_infrun): New argument when calling
5347 `create_internalvar_type_lazy'.
5348 * thread.c (thread_id_make_value): New argument `ignore'.
5349 (thread_funcs): New struct.
5350 (_initialize_thread): New argument when calling
5351 `create_internalvar_type_lazy'.
5352 * tracepoint.c (sdata_make_value): New argument `ignore'.
5353 (sdata_funcs): New struct.
5354 (_initialize_tracepoint): New argument when calling
5355 `create_internalvar_type_lazy'.
5356 * value.c (make_value): New struct.
5357 (create_internalvar_type_lazy): New argument `data'.
5358 (compile_internalvar_to_ax): New function.
5359 (value_of_internalvar): Properly handling `make_value' case.
5360 (clear_internalvar): Likewise.
5361 (show_convenience): Adding `TRY_CATCH' block.
5362 * value.h (internalvar_make_value): Delete, replace by...
5363 (struct internalvar_funcs): ... this.
5364 (create_internalvar_type_lazy) <fun>: Delete argument.
5365 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5366 (compile_internalvar_to_ax): New function.
5367 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5368 (tlb_funcs): New struct.
5369 (_initialize_windows_tdep): New argument when calling
5370 `create_internalvar_type_lazy'.
5372 2012-04-27 Mark Wielaard <mjw@redhat.com>
5374 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5375 see whether it is an address or a constant offset from DW_AT_low_pc.
5376 (dwarf2_record_block_ranges): Likewise.
5377 (read_partial_die): Likewise.
5379 2012-04-26 Mark Wielaard <mjw@redhat.com>
5381 * MAINTAINERS (Write After Approval): Add myself to the list.
5383 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5385 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5386 (proc_prettyprint_signal): Likewise.
5387 (proc_prettyprint_faultset): Likewise.
5388 (proc_prettyprint_fault): Likewise.
5389 (proc_prettyprint_actionset): Likewise.
5390 (proc_prettyprint_flags): Move to new proc-flags.c section.
5391 (proc_prettyfprint_flags): New prototype.
5392 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5393 (proc_syscall, proc_cursig): Likewise.
5394 (proc_set_kill_on_last_close): Likewise.
5395 (proc_unset_kill_on_last_close): Likewise.
5396 (proc_set_watchpoint): Make static.
5397 (proc_delete_dead_threads): Likewise.
5398 (procfs_set_watchpoint): Likewise.
5399 (_initialize_procfs): Add prototype.
5400 * proc-events.c: Include proc-utils.h.
5401 (init_syscall_table): Make static.
5402 * proc-api.c (_initialize_proc_api): Add prototype.
5403 * proc-flags.c: Include proc-utils.h.
5405 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5407 * configure.ac: Add AC_ARG_PROGRAM.
5408 * configure: Regenerate.
5410 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5412 Fix DW_AT_lower_bound defaults for DWARF-4+.
5413 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5414 high. New variable low_default_is_valid. Implement DWARF-4+
5415 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5416 no default by the DWARF standard.
5418 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5419 Maciej W. Rozycki <macro@codesourcery.com>
5421 * infrun.c (handle_inferior_event): Move the check for return
5422 trampolines ahead of the check for function trampolines.
5423 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5424 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5425 (mips_str_mips16_ret_stub): Likewise.
5426 (mips_str_call_fp_stub): Likewise.
5427 (mips_str_call_stub): Likewise.
5428 (mips_str_fn_stub): Likewise.
5429 (mips_str_pic): Likewise.
5430 (mips_in_frame_stub): New function.
5431 (mips_unwind_pc): Return the return address rather than the PC
5432 if the PC of an intermediate frame is inside a call thunk.
5433 (mips_is_stub_suffix): New function.
5434 (mips_is_stub_mode): Likewise.
5435 (mips_get_mips16_fn_stub_pc): Likewise.
5436 (mips_skip_mips16_trampoline_code): Update to handle all the
5437 currently generated stub types. Don't recurse into __fn_stub
5438 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5439 Use cooked register accesses.
5440 (mips_in_return_stub): Reintroduce function.
5441 (mips_skip_trampoline_code): Traverse trampolines recursively.
5442 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5444 2012-04-26 Joel Brobecker <brobecker@adacore.com>
5448 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5450 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5451 * features/arm-with-m-vfp-d16.xml: New file. Describes
5452 Cortex-M with VFPv4-sp-d16 FPU register layout.
5453 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5454 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5455 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5456 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5457 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5459 2012-04-25 Doug Evans <dje@google.com>
5461 * cli/cli-decode.c (print_doc_line): Use stream instead of
5464 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5466 * features/arm-with-iwmmxt.c: Regenerate.
5467 * features/arm-with-m-fpa-layout.c: Likewise.
5468 * features/arm-with-m.c: Likewise.
5469 * features/arm-with-neon.c: Likewise.
5470 * features/arm-with-vfpv2.c: Likewise.
5471 * features/arm-with-vfpv3.c: Likewise.
5472 * features/mips-dsp-linux.c: Likewise.
5473 * features/mips-linux.c: Likewise.
5474 * features/mips64-dsp-linux.c: Likewise.
5475 * features/mips64-linux.c: Likewise.
5476 * features/s390-linux32.c: Likewise.
5477 * features/s390-linux32v1.c: Likewise.
5478 * features/s390-linux32v2.c: Likewise.
5479 * features/s390-linux64.c: Likewise.
5480 * features/s390-linux64v1.c: Likewise.
5481 * features/s390-linux64v2.c: Likewise.
5482 * features/s390x-linux64.c: Likewise.
5483 * features/s390x-linux64v1.c: Likewise.
5484 * features/s390x-linux64v2.c: Likewise.
5485 * features/tic6x-c62x-linux.c: Likewise.
5486 * features/tic6x-c62x.c: Likewise.
5487 * features/tic6x-c64x-linux.c: Likewise.
5488 * features/tic6x-c64x.c: Likewise.
5489 * features/tic6x-c64xp-linux.c: Likewise.
5490 * features/tic6x-c64xp.c: Likewise.
5491 * target-descriptions.c: Only generate `field_type' and `type'
5492 variables when needed.
5494 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5496 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5498 2012-04-25 Doug Evans <dje@google.com>
5500 Initial pass at Go language support.
5502 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5504 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5505 (YYFILES): Add go-exp.c.
5506 (YYOBJ): Add go-exp.o.
5507 (local-maintainer-clean): Delete go-exp.c.
5508 * defs.h (enum language): Add language_go.
5509 * dwarf2read.c: #include "go-lang.h".
5510 (fixup_go_packaging): New function.
5511 (process_full_comp_unit): Call it when processing Go CUs.
5512 (dwarf2_physname): Add Go support.
5513 (read_file_scope): Handle missing language spec for GNU Go.
5514 (set_cu_language): Handle DW_LANG_Go.
5515 * go-exp.y: New file.
5516 * go-lang.h: New file.
5517 * go-lang.c: New file.
5518 * go-typeprint.c: New file.
5519 * go-valprint.c: New file.
5520 * symtab.c: #include "go-lang.h".
5521 (symbol_set_language): Handle language_go.
5522 (symbol_find_demangled_name, symbol_set_names): Ditto.
5523 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5525 2012-04-24 Jim Meyering <meyering@redhat.com>
5527 avoid a few strncpy-induced buffer overruns
5528 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5529 fname and psargs before trying to concatenate.
5530 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5531 "name" before applying strchr.
5533 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5535 * CONTRIBUTE: Use unified diff instead of context diff when
5538 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5540 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5541 code. Handle JR.HB correctly.
5543 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5546 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5547 with the other MIPS16 helpers.
5549 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5551 * observer.sh: Conditionally declare `args', thus cleaning up
5552 unused instances of this variable.
5554 2012-04-24 Yao Qi <yao@codesourcery.com>
5556 Revert this patch to allow breakpoint always-inserted
5558 2011-12-05 Pedro Alves <pedro@codesourcery.com>
5559 * breakpoint.c: Include record.h.
5560 (breakpoints_always_inserted_mode): Return false when the record
5563 * breakpoint.c (iterate_over_bp_locations): New.
5564 * breakpoint.h: Declare.
5565 New typedef walk_bp_location_callback.
5566 * record.c (record_open): Call record_init_record_breakpoints.
5567 (record_sync_record_breakpoints): New.
5568 (record_init_record_breakpoints): New.
5569 * NEWS: Mention supporting breakpoint always-inserted mode in
5572 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5574 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5577 2012-04-24 Yao Qi <yao@codesourcery.com>
5579 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5580 (is_catchpoint): ... it.
5581 (print_one_breakpoint_location): Caller update.
5582 * breakpoint.h: Update declaration.
5584 2012-04-23 David S. Miller <davem@davemloft.net>
5586 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5588 2012-04-23 Tom Tromey <tromey@redhat.com>
5590 * buildsym.c (add_free_pendings): Remove.
5591 * buildsym.h (add_free_pendings): Remove.
5593 2012-04-23 Doug Evans <dje@google.com>
5595 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5596 attr.u.unsnd instead of attr.u.addr.
5597 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5598 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5600 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5601 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5603 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5605 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5607 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5608 (mips_o32_return_value): Likewise.
5609 (mips_o64_return_value): Likewise.
5611 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5613 * ada-lang.c (ada_evaluate_subexp): Add cases for
5614 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5615 their treatment in eval.c.
5617 2012-04-21 David S. Miller <davem@davemloft.net>
5619 * sparc-tdep.c (X_DISP10): Define.
5620 (sparc_analyze_control_transfer): Handle compare-and-branch.
5622 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5624 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5625 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5627 2012-04-20 Nigel Stephens <nigel@mips.com>
5628 Maciej W. Rozycki <macro@codesourcery.com>
5630 * mips-tdep.c (mips_float_register_p): New function.
5631 (mips_convert_register_float_case_p): Use mips_float_register_p.
5632 (mips_register_type): Likewise.
5633 (mips_print_register): Likewise.
5634 (print_gp_register_row): Likewise.
5635 (mips_print_registers_info): Likewise.
5637 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5639 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5642 2012-04-20 Andrew Pinski <apinski@cavium.com>
5644 * MAINTAINERS (Write After Approval): Add myself to the list.
5646 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5648 * MAINTAINERS: Update my e-mail address.
5650 2012-04-20 Pedro Alves <palves@redhat.com>
5652 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5654 * configure: Regenerate.
5656 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5658 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5660 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5662 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5664 Fix compilation compatibility with python-2.4
5665 * python/py-type.c (convert_field): Cast ADDRSTRING for
5666 PyObject_SetAttrString as non-const. New comment.
5668 2012-04-19 Tom Tromey <tromey@redhat.com>
5670 * top.c (quit_target): Use all_cleanups.
5671 * main.c (captured_command_loop): Use all_cleanups.
5672 * exceptions.c (throw_exception): Use all_cleanups.
5674 2012-04-19 Pedro Alves <palves@redhat.com>
5676 * Makefile.in (GNULIB_BUILDDIR): New.
5677 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5678 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5679 (CLEANDIRS). Remove gnulib/import.
5680 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5682 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5683 (gnulib/import/Makefile): Replace gnulib/import with
5684 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5685 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5686 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5687 acx_configure_dir.m4.
5688 * acinclude.m4: Include acx_configure_dir.m4.
5689 * acx_configure_dir.m4: New file.
5690 * aclocal.m4: Regenerate.
5691 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5692 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5693 (GNULIB): New variable.
5694 (GNULIB_STDINT_H): Adjust.
5695 (AC_OUTPUT): Don't output gnulib/Makefile.
5696 * gdb/defs.h: Include build-gnulib/config.h.
5697 * aclocal.m4: Regenerate.
5698 * config.in: Regenerate.
5699 * configure: Regenerate.
5701 * gnulib/Makefile.in: New file.
5702 * gnulib/configure.ac: New file.
5703 * gnulib/aclocal.m4: New file.
5704 * gnulib/config.in: New file.
5705 * gnulib/configure: New file.
5706 * gnulib/: Re-run gnulib-tool to adjust.
5708 2012-04-19 Doug Evans <dje@google.com>
5710 * cleanups.h (struct cleanup): Move to cleanups.c.
5711 (make_cleanup_dtor_ftype): New typedef.
5712 (make_cleanup_dtor): Use it.
5713 (ALL_CLEANUPS): Replace with ...
5714 (all_cleanups): ... this. Declare. All uses updated.
5715 * cleanups.c: #include "gdb_assert.h".
5716 (sentinel_cleanup): New static global.
5717 (SENTINEL_CLEANUP): Define.
5718 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5719 (make_my_cleanup2): Assert result is non-NULL.
5720 (all_cleanups): New function.
5721 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5724 2012-04-19 Pedro Alves <palves@redhat.com>
5726 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5727 Adjust paths to gnulib imported files.
5729 2012-04-19 Pedro Alves <palves@redhat.com>
5731 * gnulib/: Move whole directory ...
5732 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5733 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5734 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5735 (aclocal_m4_deps): Adjust.
5736 * aclocal.m4: Regenerate.
5737 * configure: Regenerate.
5738 * configure.ac: Adjust AC_OUTPUT output.
5740 2012-04-19 Yao Qi <yao@codesourcery.com>
5742 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5744 * vec.c: Move it ...
5745 * common/vec.c: ... here.
5746 * vec.h: Move it ...
5747 * common/vec.h: ... here.
5749 2012-04-19 Yao Qi <yao@codesourcery.com>
5751 * gdb-code-style.el: New.
5753 2012-04-18 Pedro Alves <palves@redhat.com>
5755 Update gnulib from latest git.
5756 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5758 * gnulib/Makefile.am: Update.
5759 * gnulib/dummy.c: Update.
5760 * gnulib/extra/arg-nonnull.h: Update.
5761 * gnulib/extra/c++defs.h: Update.
5762 * gnulib/extra/update-copyright: Update.
5763 * gnulib/extra/warn-on-use.h: Update.
5764 * gnulib/inttypes.in.h: Update.
5765 * gnulib/m4/00gnulib.m4: Update.
5766 * gnulib/m4/extensions.m4: Update.
5767 * gnulib/m4/gnulib-cache.m4: Update.
5768 * gnulib/m4/gnulib-common.m4: Update.
5769 * gnulib/m4/gnulib-comp.m4: Update.
5770 * gnulib/m4/gnulib-tool.m4: Update.
5771 * gnulib/m4/include_next.m4: Update.
5772 * gnulib/m4/inttypes-pri.m4: Update.
5773 * gnulib/m4/inttypes.m4: Update.
5774 * gnulib/m4/longlong.m4: Update.
5775 * gnulib/m4/memchr.m4: Update.
5776 * gnulib/m4/memmem.m4: Update.
5777 * gnulib/m4/mmap-anon.m4: Update.
5778 * gnulib/m4/multiarch.m4: Update.
5779 * gnulib/m4/onceonly.m4: Update.
5780 * gnulib/m4/stddef_h.m4: Update.
5781 * gnulib/m4/stdint.m4: Update.
5782 * gnulib/m4/string_h.m4: Update.
5783 * gnulib/m4/warn-on-use.m4: Update.
5784 * gnulib/m4/wchar_h.m4: Update.
5785 * gnulib/m4/wchar_t.m4: Update.
5786 * gnulib/m4/wint_t.m4: Update.
5787 * gnulib/memchr.c: Update.
5788 * gnulib/memmem.c: Update.
5789 * gnulib/stddef.in.h: Update.
5790 * gnulib/stdint.in.h: Update.
5791 * gnulib/str-two-way.h: Update.
5792 * gnulib/string.in.h: Update.
5793 * gnulib/wchar.in.h: Update.
5795 * gnulib/extra/arg-nonnull.h: Delete.
5796 * gnulib/extra/c++defs.h: Delete.
5797 * gnulib/extra/warn-on-use.h: Delete.
5798 * gnulib/m4/wchar_h.m4: Delete.
5799 * gnulib/m4/wint_t.m4: Delete.
5800 * gnulib/wchar.in.h: Delete.
5802 * gnulib/extra/snippets/arg-nonnull.h: New.
5803 * gnulib/extra/snippets/c++defs.h: New.
5804 * gnulib/extra/snippets/warn-on-use.h: New.
5806 * aclocal.m4: Regenerate.
5807 * config.in: Regenerate.
5808 * configure: Regenerate.
5809 * gnulib/Makefile.in: Regenerate.
5811 2012-04-18 Pedro Alves <palves@redhat.com>
5813 Reimport the update-copyright module from gnulib
5814 (250b80067c1e1d8faa0c42fb572f721975b929c5).
5816 * configure: Regenerate.
5817 * gnulib/Makefile.am: Update.
5818 * gnulib/Makefile.in: Regenerate.
5819 * gnulib/extra/update-copyright: Update.
5820 * gnulib/m4/gnulib-cache.m4: Update.
5821 * gnulib/m4/gnulib-comp.m4: Update.
5823 2012-04-18 Tristan Gingold <gingold@adacore.com>
5825 * configure.ac (aix): Put -lpthread into libs.
5826 * configure: Regenerate.
5828 2012-04-18 Tom Tromey <tromey@redhat.com>
5830 * linespec.c (convert_linespec_to_sals): Don't use
5832 (compare_msymbols): Arguments are minsym_and_objfile, not
5833 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
5835 2012-04-18 Pedro Alves <palves@redhat.com>
5837 Revert gnulib/ part of:
5838 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5839 Copyright year update in most files (performed by copyright.sh).
5841 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5843 Fix 64-bit constants on 32-bit hosts.
5844 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
5845 from unsigned long to ULONGEST.
5846 (read_signed_leb128): Change declaration return type from long to
5848 (dwarf2_const_value_attr): Change declaration parameter value from long
5850 (dwarf2_compute_name): Change variable value from long to LONGEST.
5851 (read_unsigned_leb128): Change return type, variable result and some
5852 casts from unsigned long to ULONGEST.
5853 (read_signed_leb128): Change return type, variable result and some
5854 casts from long to LONGEST.
5855 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
5856 value from long to LONGEST.
5857 (dwarf2_const_value): Change variable value from long to LONGEST.
5858 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
5859 plongest and hex_string.
5860 * symtab.h (struct general_symbol_info): Change ivalue from long to
5861 LONGEST, remove the comment.
5862 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
5863 Change SYMBOL_VALUE format strings to use plongest and hex_string.
5865 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
5868 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
5869 * ada-lang.c (ada_discrete_type_high_bound)
5870 (ada_discrete_type_low_bound): Fix function comment. Use
5871 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5872 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
5873 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5874 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
5875 Use TYPE_FIELD_ENUMVAL.
5876 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
5877 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5878 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
5879 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
5881 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
5882 * dwarf2read.c (process_enumeration_scope): Likewise.
5883 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
5885 (class StructMainTypePrettyPrinter): Support also
5886 FIELD_LOC_KIND_ENUMVAL.
5887 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
5889 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5890 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
5891 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
5892 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
5894 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
5895 accommodate enumval.
5896 (struct call_site): Adjust loc_kind to accommodate enumval.
5897 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
5898 (TYPE_FIELD_ENUMVAL): New macros.
5899 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
5900 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
5902 * p-typeprint.c (pascal_type_print_base): Likewise.
5903 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
5905 * python/lib/gdb/types.py (make_enum_dict): Likewise.
5906 * python/py-type.c (convert_field): New variable addrstring. Use
5907 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5908 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
5909 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
5910 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
5912 * valprint.c (generic_val_print): Likewise.
5914 2012-04-17 Doug Evans <dje@google.com>
5916 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
5918 * dwarf2read.c: Whitespace fixes.
5919 (lookup_signatured_type): Tweak comment.
5920 (get_die_type_at_offset): Fix comment.
5922 2012-04-17 Joel Brobecker <brobecker@adacore.com>
5924 * xcoffread.c (xcoff_secnum_to_sections): New function.
5925 (secnum_to_section, secnum_to_bfd_section): Reimplement
5926 using xcoff_secnum_to_sections. Rename "secnum" parameter
5928 (RECORD_MINIMAL_SYMBOL): Delete.
5929 (record_minimal_symbol): New function.
5930 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
5931 by call to record_minimal_symbol and set misc_func_recorded
5932 to 1. Set last_csect_sec to the XCOFF section index instead
5933 of GDB's section_offset index. Update calls to
5934 prim_record_minimal_symbol_and_info to pass the BFD section
5937 2012-04-17 Joel Brobecker <brobecker@adacore.com>
5939 * xcoffread.c (read_xcoff_symtab): Delete variables
5940 last_csect_val and last_csect_sec and associated code.
5942 2012-04-17 Doug Evans <dje@google.com>
5944 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
5945 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5946 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
5947 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
5949 * cleanups.h: New file.
5950 * cleanups.c: New file.
5951 * Makefile.in (SFILES): Add cleanups.c.
5952 (HFILES_NO_SRCDIR): Add cleanups.h.
5953 (COMMON_OBS): Add cleanups.o.
5954 * defs.h (struct cleanup): Moved to cleanups.h.
5955 (do_cleanups,do_final_cleanups): Ditto.
5956 (discard_cleanups,discard_final_cleanups): Ditto
5957 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5958 (save_cleanups,save_final_cleanups): Ditto.
5959 (restore_cleanups,restore_final_cleanups): Ditto.
5960 (null_cleanup): Ditto.
5961 (make_my_cleanup,make_my_cleanup2): Ditto.
5962 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5963 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
5964 (do_cleanups,do_final_cleanups): Ditto.
5965 (discard_cleanups,discard_final_cleanups): Ditto
5966 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5967 (save_cleanups,save_final_cleanups): Ditto.
5968 (restore_cleanups,restore_final_cleanups): Ditto.
5969 (null_cleanup): Ditto.
5970 (make_my_cleanup,make_my_cleanup2): Ditto.
5971 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5973 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
5975 (make_cleanup_dyn_string_delete): Ditto.
5976 (make_cleanup_ui_file_delete): Ditto.
5977 (make_cleanup_ui_out_redirect_pop): Ditto.
5978 (make_cleanup_free_section_addr_info): Ditto.
5979 (make_cleanup_restore_integer): Ditto.
5980 (make_cleanup_unpush_target): Ditto.
5981 (make_cleanup_value_free_to_mark): Ditto.
5982 (make_cleanup_value_free): Ditto.
5983 (make_cleanup_free_so): Ditto.
5985 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5987 New option "set debug auto-load".
5988 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
5989 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
5990 (auto_load_safe_path_vec_update)
5991 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
5993 (file_is_auto_load_safe): New parameters debug_fmt and ....
5994 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
5995 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
5996 caller by explanatory string.
5997 (_initialize_auto_load): Register "set debug auto-load".
5998 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6000 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6001 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6002 by explanatory string.
6003 * main.c (captured_main): Likewise.
6004 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6005 (source_section_scripts): Likewise.
6007 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6009 New option "set auto-load safe-path".
6010 * NEWS: New commands "set auto-load safe-path"
6011 and "show auto-load safe-path".
6012 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6013 (auto_load_safe_path, auto_load_safe_path_vec)
6014 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6015 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6016 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6017 (source_gdb_script_for_objfile): New variable is_safe. Call
6018 file_is_auto_load_safe. Return if it is not.
6019 (struct loaded_script): New field loaded.
6020 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6021 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6022 output "Missing" to "No".
6023 (_initialize_auto_load): New variable cmd. Initialize
6024 auto_load_safe_path. Register "set auto-load safe-path",
6025 "show auto-load safe-path" and "add-auto-load-safe-path".
6026 * auto-load.h (maybe_add_script): Add parameter loaded.
6027 (file_is_auto_load_safe): New declaration.
6028 * config.in: Regenerate.
6029 * configure: Regenerate.
6030 * configure.ac: New parameters --with-auto-load-safe-path
6031 and --without-auto-load-safe-path.
6032 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6033 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6034 * main.c (captured_main): Check file_is_auto_load_safe for
6036 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6037 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6038 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6041 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6043 auto-load: Implementation.
6044 * NEWS: New descriptions for "info auto-load",
6045 "info auto-load gdb-scripts", "info auto-load python-scripts",
6046 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6047 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6048 and "show auto-load-scripts". New description for "set auto-load",
6049 "show auto-load", "set auto-load gdb-scripts",
6050 "show auto-load gdb-scripts", "set auto-load python-scripts",
6051 "show auto-load python-scripts", "set auto-load local-gdbinit",
6052 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6053 "show auto-load libthread-db".
6054 * auto-load.c: Remove include python/python-internal.h. Add includes
6055 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6057 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6058 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6059 (gdbpy_global_auto_load): Rename to ...
6060 (global_auto_load): ... here.
6061 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6062 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6063 (script_language_gdb, source_gdb_script_for_objfile): New.
6064 (struct loaded_script): New field language.
6065 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6067 (maybe_add_script): Add parameter language. Drop redundant
6068 entry.full_path initialization. Initialize entry.language and
6070 (auto_load_objfile_script): Change parameter suffix to language.
6071 Remove the call of maybe_add_script.
6072 Call language->source_script_for_objfile.
6073 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6075 (collect_matching_scripts): Adjust it for
6076 struct collect_matching_scripts_data.
6077 (auto_load_info_scripts_pattern_nl): New variable.
6078 (info_auto_load_scripts): Rename to ...
6079 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6080 for struct collect_matching_scripts_data.
6081 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6082 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6083 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6084 (auto_load_info_cmdlist_get): New.
6085 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6086 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6087 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6088 "info auto-load local-gdbinit".
6089 * auto-load.h (struct script_language): New.
6090 (gdbpy_global_auto_load): Rename to ...
6091 (global_auto_load): ... here.
6092 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6093 (auto_load_local_gdbinit_loaded): New declarations.
6094 (maybe_add_script): New parameter language.
6095 (auto_load_objfile_script): Change parameter suffix to language.
6096 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6097 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6098 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6100 * linux-thread-db.c: Include auto-load.h and ctype.h.
6101 (auto_load_thread_db, show_auto_load_thread_db): New.
6102 (struct thread_db_info): New field filename.
6103 (delete_thread_db_info): Call xfree for FILENAME.
6104 (try_thread_db_load): Initialize FILENAME.
6105 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6106 if !AUTO_LOAD_THREAD_DB.
6107 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6108 (_initialize_thread_db): Install auto_load_thread_db
6109 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6110 as "info auto-load libthread-db".
6111 * main.c (captured_main): Rename gdbpy_global_auto_load to
6112 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6113 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6114 (print_gdb_help): Extend the help for 'local init file'.
6115 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6116 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6117 (auto_load_scripts): Rename to ...
6118 (auto_load_python_scripts): ... here, update the comment.
6119 (gdbpy_load_auto_script_for_objfile): New declaration.
6120 (show_auto_load_python_scripts, script_language_python)
6121 (gdbpy_load_auto_script_for_objfile): New.
6122 (source_section_scripts): Refactor the code.
6123 (load_auto_scripts_for_objfile): Rename to ...
6124 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6125 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6126 (info_auto_load_python_scripts): New.
6127 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6128 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6129 Register "set auto-load-scripts" as its deprecated alias. Register
6130 "info auto-load python-scripts". Register "info auto-load-scripts" as
6131 its deprecated alias.
6132 (load_auto_scripts_for_objfile): Rename to ...
6133 (gdbpy_load_auto_scripts_for_objfile): ... here.
6134 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6135 (gdbpy_load_auto_scripts_for_objfile): ... here.
6137 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6139 auto-load: Move files.
6140 * Makefile.in (SFILES): Add auto-load.c.
6141 (HFILES_NO_SRCDIR): Add auto-load.h.
6142 (COMMON_OBS): Add auto-load.o.
6143 (distclean): Change .gdbinit for gdb-gdb.gdb.
6144 * auto-load.c: New file, with parts from python/py-auto-load.c.
6145 * auto-load.h: New file, with parts from python/python.h.
6146 * configure: Regenerate.
6147 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6148 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6149 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6150 * main.c: Include auto-load.h.
6151 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6152 command.h, observer.h and progspace.h to auto-load.c. Add include
6154 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6155 (struct loaded_script, auto_load_pspace_data)
6156 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6157 (hash_loaded_script_entry, eq_loaded_script_entry)
6158 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6159 (maybe_add_script): Move to auto-load.c.
6160 (source_section_scripts): Change maybe_add_script parameters passing,
6161 use script_not_found_warning_print.
6162 (clear_section_scripts, auto_load_objfile_script)
6163 (auto_load_new_objfile, loaded_script_ptr)
6164 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6165 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6166 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6167 auto_load_new_objfile and info_auto_load_scripts initizations to
6169 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6171 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6174 * charset.c (find_charset_names): Remove variables ix and elt.
6175 Use free_char_ptr_vec.
6176 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6177 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6178 debugdir_end. New variable debugdir_len.
6179 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6180 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6182 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6183 and elt. Use free_char_ptr_vec.
6184 * source.c (add_path): Remove variables argv, arg and argv_index.
6185 New variables dir_vec, back_to, ix and name.
6186 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6187 make_cleanup_freeargv. Remove variable separator. Simplify the code
6188 no longer expecting DIRNAME_SEPARATOR.
6189 (openp): Remove variable p, p1 and len. New variables dir_vec,
6190 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6191 no longer expecting DIRNAME_SEPARATOR.
6192 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6193 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6195 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6196 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6197 (dirnames_to_char_ptr_vec): New functions.
6199 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6202 * source.c (add_path): Remove always true conditional 'p == 0' and
6203 unindent its code block.
6205 2012-04-17 Pedro Alves <palves@redhat.com>
6207 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6208 (FIELD_BITPOS_LVAL): ... this.
6209 (FIELD_BITPOS): New.
6210 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6211 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6212 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6214 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6216 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6217 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6218 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6221 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6223 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6224 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6225 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6226 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6227 * jv-lang.c (java_link_class_type): Likewise, once.
6228 * stabsread.c (read_enum_type): Likewise.
6230 2012-04-16 Yao Qi <yao@codesourcery.com>
6232 * common/agent.c (agent_run_command): Add one more parameter `len'.
6234 * common/agent.h: Update declaration.
6235 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6237 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6239 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6242 * value.c (value_actual_type): New function.
6243 * value.h (value_actual_type): New declaration.
6244 * varobj.c (update_type_if_necessary): New function.
6245 (varobj_create): Call value_actual_type instead of
6247 (install_dynamic_child): distinct changed and type changed MI variable
6249 (update_dynamic_varobj_children): Updated for install_dynamic_child
6250 change. All callers updated.
6251 (varobj_update): Support for MI variable object type change if
6252 the value changed and RTTI is used to determine the type.
6253 (create_child_with_value): Call value_actual_type instead of
6255 (adjust_value_for_child_access): Extended with a new parameter which
6256 specify whether the given value should be casted to enclosing type.
6257 All callers updated.
6259 2012-04-14 Yao Qi <yao@codesourcery.com>
6261 Import gnulib module inttypes from git
6262 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6263 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6264 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6265 gnulib/m4/inttypes-pri.m4
6266 * aclocal.m4, config.in, configure: Regenerated.
6267 * gnulib/Makefile.am: Update.
6268 * gnulib/Makefile.in: Update.
6269 * gnulib/m4/gnulib-cache.m4: Update.
6270 * gnulib/m4/gnulib-comp.m4: Update.
6271 * gnulib/inttypes.in.h: New.
6272 * gnulib/m4/inttypes-pri.m4: New.
6273 * gnulib/m4/inttypes.m4: New.
6275 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6277 * infrun.c (resume): Update PC address to the real PC after
6278 preparing to do displaced stepping.
6280 2012-04-12 Doug Evans <dje@google.com>
6282 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6283 All callers updated.
6285 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6287 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6289 2012-04-12 Doug Evans <dje@google.com>
6291 * dwarf2read.c (create_all_type_units): Renamed from
6292 create_debug_types_hash_table. All callers updated.
6294 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6295 local type_sig to sig_type, type_offset to type_offset_in_tu.
6296 (hash_signatured_type): Renamed from hash_type_signature,
6297 all callers updated.
6298 (eq_signatured_type): Renamed from eq_type_signature,
6299 all callers updated.
6300 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6301 (process_enumeration_scope): Ditto.
6302 (lookup_signatured_type_at_offset): Ditto.
6303 (load_full_type_unit, read_signatured_type): Ditto.
6305 2012-04-12 Yao Qi <yao@codesourcery.com>
6307 * remote.c (async_remote_interrupt): Correct function name in
6309 (async_remote_interrupt_twice): Ditto.
6311 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6313 * source.c (find_and_open_source): Consistently pass resulting
6314 full path through xfullpath.
6316 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6318 Provide more specific displaced-stepping memory error message.
6319 * infrun.c (displaced_step_prepare): New variable status. Call
6320 target_read_memory instead of read_memory, provide more specific
6323 2012-04-11 Tristan Gingold <gingold@adacore.com>
6326 * darwin-nat.c (darwin_execvp): Revert previous patch.
6328 2012-04-11 Tristan Gingold <gingold@adacore.com>
6331 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6334 2012-04-11 Tristan Gingold <gingold@adacore.com>
6336 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6339 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6341 New command 'explore' which helps explore values and types in
6343 * NEWS: Add an entry about the new 'explore' command.
6344 * data-directory/Makefile.in: Add gdb/command/explore.py
6345 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6346 command using the GDB Python API.
6348 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6350 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6351 extension in jump target calculation.
6353 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6355 * mips-tdep.c (mips32_next_pc): Handle JALX.
6357 2012-04-10 Yao Qi <yao@codesourcery.com>
6359 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6361 2012-04-10 Yao Qi <yao@codesourcery.com>
6363 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6364 and gnulib/m4/gnulib-tool.m4.
6366 2012-04-10 Doug Evans <dje@google.com>
6368 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6369 (load_partial_dies): Clarify comment.
6370 (find_partial_die): Support rereading type units.
6371 Clarify CU handling, if we know offset is in CU, don't search for the
6372 containing CU. Add comment regarding memory waste.
6374 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6376 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6377 i386/x32-avx and i386/x32-avx-linux.
6378 (i386/x32-expedite): New.
6379 (i386/x32-linux-expedite): Likewise.
6380 (i386/x32-avx-expedite): Likewise.
6381 (i386/x32-avx-linux-expedite): Likewise.
6382 ($(outdir)/i386/x32.dat): Likewise.
6383 ($(outdir)/i386/x32-linux.dat): Likewise.
6384 ($(outdir)/i386/x32-avx.dat): Likewise.
6385 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6387 * features/i386/x32-avx-linux.xml: New file.
6388 * features/i386/x32-avx.xml: Likewise.
6389 * features/i386/x32-core.xml: Likewise.
6390 * features/i386/x32-linux.xml: Likewise.
6391 * features/i386/x32.xml: Likewise.
6393 * features/i386/x32-avx-linux.c: New. Generated.
6394 * features/i386/x32-avx.c: Likewise.
6395 * features/i386/x32-linux.c: Likewise.
6396 * features/i386/x32.c: Likewise.
6397 * regformats/i386/x32-avx-linux.dat: Likewise.
6398 * regformats/i386/x32-avx.dat: Likewise.
6399 * regformats/i386/x32-linux.dat: Likewise.
6400 * regformats/i386/x32.dat: Likewise.
6402 2012-04-10 Tristan Gingold <gingold@adacore.com>
6404 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6405 code to kill the inferior.
6407 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6409 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6411 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6413 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6414 (yyvsp): New defines.
6415 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6417 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6419 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6421 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6423 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6426 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6428 * sparc64-tdep.c (sparc64_store_arguments)
6429 (sparc64_store_arguments): Fix coding style.
6431 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6433 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6434 complex floats, adjust some related comments and tighten a related
6436 (sparc64_extract_return_value): Handle complex floats.
6438 2012-04-07 Doug Evans <dje@google.com>
6440 * dwarf2read.c (load_partial_dies): Change condition to assert.
6442 2012-04-06 Doug Evans <dje@google.com>
6444 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6447 2012-04-05 Kevin Buettner <kevinb@redhat.com>
6449 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6451 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6452 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6455 2012-04-05 Keith Seitz <keiths@redhat.com>
6457 * linespec.c (decode_compound): Remove.
6458 (enum offset_relative_sign): New enum.
6459 (struct line_offset): New struct.
6460 (struct linespec): New struct.
6461 (struct linespec_state): Move file_symtabs,
6462 user_filename, and user_function into struct linespec.
6463 Make result an anonymous struct holding vectors of
6464 symbolp and minsym_and_objfile_d.
6465 Add language member.
6466 (enum ls_token_type): New enum.
6467 (linespec_keywords): New array.
6468 (struct ls_token): New struct.
6469 (struct ls_parser): New struct.
6470 (linespec_lexer_lex_number): New function.
6471 (linespec_lexer_lex_keyword): New function.
6472 (is_ada_operator): New function.
6473 (skip_quote_char): New function.
6474 (copy_token_string): New function.
6475 (is_closing_quote_enclosed): New function.
6476 (find_parameter_list_end): New function.
6477 (linespec_lexer_lex_string): New function.
6478 (linespec_lexer_lex_one): New function.
6479 (linespec_lexer_consume_token): New function.
6480 (linespec_lexer_peek_token): New function.
6481 (cplusplus_error): Remove unused function.
6482 (find_methods): Update comment.
6483 (find_toplevel_char): Return const.
6484 (is_objc_method_format): Remove unused function.
6485 (find_toplevel_string): New function.
6486 (is_linespec_boundary): Remove.
6487 (symbol_not_found_error): New function.
6488 (find_method_overload_end): Remove function.
6489 (unexpected_linespec_error): New function.
6490 (keep_name_info): Remove.
6491 (linespec_parse_line_offset): New function.
6492 (linespec_parse_basic): New function.
6493 (canonicalize_linespec): New function.
6494 (decode_line_internal): Remove.
6495 (create_sals_line_offset): New function adapted from
6497 (convert_linespec_to_sals): New function.
6498 (parse_linespec): New function.
6499 (linespec_parser_new): New function.
6500 (linespec_state_destructor): Change parameter type to
6501 struct linespec_state *.
6502 Add language parameter.
6503 Remove freeing of moved members.
6504 (linespec_parser_delete): New function.
6505 (decode_line_full): Use parse_linespec and linespec_parser_new.
6506 (decode_line_1): Likewise.
6507 (decode_indirect): Rename to ...
6508 (linespec_expression_to_pc): ... this and rewrite
6509 to simply find CORE_ADDR, storing this result for later
6511 (locate_first_half): Remove.
6512 (deocde_objc): Add parameter LS.
6513 Initialize new struct collect_info members.
6514 Handle minimal symbols, too.
6515 (decode_compound): Delete.
6516 (lookup_prefix_sym): Rewrite.
6517 (compare_msymbols): New function.
6518 (find_method): Rewrite.
6519 Do not call cplusplus_error.
6520 (symtabs_from_filename): Rewrite.
6521 (collect_function_symbols): Delete.
6522 (find_function_symbols): Rewrite without ARGPTR-style
6524 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6525 (decode_dollar): Adapted and renamed to ...
6526 (linespec_parse_variable): ... this.
6527 (find_linespec_symbols): New function.
6528 (decode_label): Adapted and renamed to ...
6529 (find_label_symbols): ... this.
6530 (decode_digits_list_mode): Add and use LS argument.
6531 (decode_digits_ordinary): Likewise.
6532 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6533 If in list mode, allow any symbol class. Otherwise, only
6534 permit LOC_BLOCK symbols.
6535 (minsym_found): Update comments.
6536 (search_minsyms_for_name): Do not convert the matching symbol
6537 into a SAL. Simply push the symbol and objfile into the
6539 (decode_variable): Delete. Contents adapted into
6540 find_linespec_symbols.
6542 * cp-support.c (SKIP_SPACE): Remove.
6543 (operator_tokens): Remove unused global.
6544 (cp_validate_operator): Remove.
6545 * cp-support.h (cp_validate_operator): Remove declaration.
6547 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6549 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6550 for TYPE_VPTR_FIELDNO.
6551 * valprint.c (valprint_check_validity): Make it global, move the
6552 function comment ...
6553 * value.h (valprint_check_validity): ... to this new declaration.
6555 2012-04-02 Tristan Gingold <gingold@adacore.com>
6557 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6558 the STATE32 api for i386 state.
6559 (i386_darwin_store_inferior_registers): Likewise.
6561 2012-04-02 Tristan Gingold <gingold@adacore.com>
6563 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6565 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6568 2012-04-02 Tristan Gingold <gingold@adacore.com>
6571 * darwin-nat.c (darwin_execvp): Set binary preference.
6573 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6575 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6577 2012-03-30 Tom Tromey <tromey@redhat.com>
6579 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6580 of TRY_CATCH. Fix error handling.
6581 * python/py-value.c (convert_value_from_python): Move 'old'
6582 declaration to innermost scope.
6584 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6585 Andrey Smirnov <andrew.smirnov@gmail.com>
6587 -Wshadow warning fix.
6588 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6589 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6590 Adjust code accordingly.
6592 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6594 * ada-lang.c (symbol_completion_add): Rename parameter
6595 "encoded" into "encoded_p". Ajust code and documentation
6598 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6599 Andrey Smirnov <andrew.smirnov@gmail.com>
6601 -Wshadow warning fix.
6602 * ada-lang.c (symbol_completion_add): Rename parameter
6603 "wild_match" into wild_match_p. Update code and documentation
6606 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6608 * ada-lang.c (symbol_completion_match): Rename parameter
6609 "encoded" into "encoded_p". Ajust code and 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 (symbol_completion_match): Rename parameter
6617 "wild_match" into "wild_match_p". Adjust code and function
6618 documentation accordingly.
6620 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6621 Andrey Smirnov <andrew.smirnov@gmail.com>
6623 -Wshadow warning fix.
6624 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6625 "symbol_info" into "info". Adjust code accordingly.
6626 (ada_lookup_symbol): Likewise.
6628 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6630 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6631 of this function's documentation.
6633 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6634 Andrey Smirnov <andrew.smirnov@gmail.com>
6636 -Wshadow warning fix.
6637 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6638 variable into "wild_match_p". Adjust code accordingly.
6640 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6641 Andrey Smirnov <andrew.smirnov@gmail.com>
6643 -Wshadow warning fix.
6644 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6645 parameter into "wild_match_p". Adjust code accordingly.
6646 Document this parameter in the function description.
6648 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6649 Andrey Smirnov <andrew.smirnov@gmail.com>
6651 -Wshadow warning fix.
6652 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6653 "wild_match" parameter to "wild_match_p" (-Wshadow).
6655 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6657 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6658 in function documentation.
6660 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6661 Andrey Smirnov <andrew.smirnov@gmail.com>
6663 -Wshadow warning fix.
6664 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6665 variable into wild_match_p. Adjust code accordingly.
6667 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6668 Andrey Smirnov <andrew.smirnov@gmail.com>
6670 * ada-valprint.c (ada_val_print_1): Move the code handling
6671 TYPE_CODE_ENUM inside its own lexical block. Declare
6672 variables len and val there, instead of in the function's
6673 top level block. Avoid declaring deref_val again in a way
6674 that shadows another variable of the same name declared
6675 in one of the up-level blocks. Just re-use the up-level
6678 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6680 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6681 Replace block_found argument by symbol_info. Adjust
6682 implementation accordingly. Add function documentation.
6683 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6685 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6686 * ada-exp.y (write_object_renaming): Adjust to new
6687 ada_lookup_encoded_symbol API.
6689 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6691 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6694 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
6696 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6697 (v850_register_name): Add the mpu and fpu register names.
6698 (v850e_register_name): Add the mpu and fpu register names.
6699 (v850e2_register_name): New function.
6700 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
6703 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6705 * NEWS: Add entry for Ada varobj support.
6707 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6709 * varobj.c (default_value_is_changeable_p): New function,
6710 extracted from varobj_value_is_changeable_p. Add declaration.
6711 (ada_value_is_changeable_p): New function, extracted from
6712 varobj_value_is_changeable_p. Add declaration.
6713 (struct language_specific): New field "value_is_changeable_p".
6714 (languages): Add entries for new field.
6715 (varobj_create): Set language before calling install_new_value.
6716 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6717 "value_is_changeable_p" language callback.
6719 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6721 * ada-varobj.h, ada-varobj.c: New files.
6722 * Makefile.in (SFILES): Add ada-varobj.c.
6723 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6724 (COMMON_OBS): Add ada-varobj.o.
6726 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6728 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6729 (struct language_specific): New field "value_has_mutated".
6730 (languages): Set field "value_has_mutated" in each entry of array.
6731 (varobj_value_has_mutated): New function.
6732 (varobj_udpdate): Add handling of type mutation.
6733 (value_of_root): Add handling of type mutation.
6734 (ada_value_has_mutated): New function.
6736 2012-03-28 Pedro Alves <palves@redhat.com>
6738 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6739 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6741 2012-03-28 Tom Tromey <tromey@redhat.com>
6743 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6744 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6747 2012-03-28 Tom Tromey <tromey@redhat.com>
6749 * .dir-locals.el: New file.
6751 2012-03-28 Pedro Alves <palves@redhat.com>
6753 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
6755 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6757 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
6760 2012-03-27 Pedro Alves <palves@redhat.com>
6762 Eliminate struct ui_stream.
6764 * ui-out.h (struct ui_stream): Delete.
6765 (ui_out_field_stream): Adjust prototype.
6766 (ui_out_stream_new, ui_out_stream_delete)
6767 (make_cleanup_ui_out_stream_delete): Delete declarations.
6768 * ui-out.c (ui_out_field_stream): Change prototype to take a
6769 ui_file instead of a ui_stream. Adjust.
6770 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
6771 (make_cleanup_ui_out_stream_delete): Delete.
6772 * breakpoint.c (print_breakpoint_location)
6773 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
6774 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6775 * disasm.c (dump_insns): Ditto.
6776 (do_mixed_source_and_assembly, do_assembly_only): Adjust
6778 (gdb_disassembly): Use ui_file/mem_fileopen instead of
6779 ui_stream/ui_out_stream_new.
6780 * infcmd.c (print_return_value): Ditto.
6781 * osdata.c (info_osdata_command): Don't allocate a local
6783 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
6784 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6785 * tracepoint.c (print_one_static_tracepoint_marker): Don't
6786 allocate a local ui_stream.
6787 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
6788 instead of ui_stream/ui_out_stream_new.
6789 (list_args_or_locals): Don't allocate a local ui_stream.
6790 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
6791 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
6792 ui_stream/ui_out_stream_new.
6793 * cli/cli-setshow.c (do_setshow_command): Ditto.
6795 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
6797 * arm-linux-tdep.c (arm_linux_init_abi): Call
6798 set_gdbarch_process_record. Initialize `arm_swi_record' field.
6799 * arm-tdep.c (arm_process_record): New function.
6800 (deallocate_reg_mem): New function.
6801 (decode_insn): New function.
6802 (thumb_record_branch): New function.
6803 (thumb_record_ldm_stm_swi(): New function.
6804 (thumb_record_misc): New function.
6805 (thumb_record_ld_st_stack): New function.
6806 (thumb_record_ld_st_imm_offset): New function.
6807 (thumb_record_ld_st_reg_offset(): New function.
6808 (thumb_record_add_sub_cmp_mov): New function.
6809 (thumb_record_shift_add_sub): New function.
6810 (arm_record_coproc_data_proc): New function.
6811 (arm_record_coproc): New function.
6812 (arm_record_b_bl): New function.
6813 (arm_record_ld_st_multiple): New function.
6814 (arm_record_ld_st_reg_offset): New function.
6815 (arm_record_ld_st_imm_offset): New function.
6816 (arm_record_data_proc_imm): New function.
6817 (arm_record_data_proc_misc_ld_str): New function.
6818 (arm_record_extension_space): New function.
6819 (arm_record_strx): New function.
6820 (sbo_sbz): New function.
6821 (struct insn_decode_record): New structure for arm insn record.
6822 (REG_ALLOC): New macro for reg allocations.
6823 (MEM_ALLOC): New macro for memory allocations.
6824 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
6826 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
6828 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
6829 (store_register): Likewise.
6831 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
6833 * MAINTAINERS (Write After Approval): Add myself to the list.
6835 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6837 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
6838 Describe also the option "auto".
6840 2012-03-22 Richard Henderson <rth@redhat.com>
6842 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
6843 * sparc-nat.c (sparc_xfer_wcookie): Make static.
6845 2012-03-22 Richard Henderson <rth@redhat.com>
6847 * jit.c (jit_read_code_entry): Compute alignment and offset of
6848 int64_t member before computing entry_size.
6850 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6852 Python scripting: Add new method Value.referenced_value to
6853 gdb.Value which can dereference pointer as well as reference
6855 * NEWS: Add entry under 'Python scripting' about the new method
6856 Value.referenced_value on gdb.Value objects.
6857 * python/py-value.c (valpy_referenced_value): New function
6858 defining a new method on gdb.Value objects which can dereference
6859 pointer and reference values.
6861 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6863 * MAINTAINERS (Write After Approval): Add myself to the list.
6865 2012-03-21 Kevin Buettner <kevinb@redhat.com>
6867 * symtab.c (skip_prologue_sal): Change test to check for "main()"
6868 in addition to "main".
6870 2012-03-21 Joel Brobecker <brobecker@adacore.com>
6872 * expression.h (op_name): Add declaration.
6873 * expprint.c (op_name): Remove declaration. Make non-static.
6874 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
6876 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
6878 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
6880 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
6881 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
6882 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
6883 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
6884 (linux_nat_get_siginfo): Likewise.
6885 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
6886 (linux_nat_get_siginfo): Likewise.
6887 * linux-tdep.c (linux_get_siginfo_type): Likewise.
6888 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
6889 * procfs.c (gdb_siginfo_t): Likewise.
6891 2012-03-21 Mike Frysinger <vapier@gentoo.org>
6893 * .gitignore: Ignore more files.
6895 2012-03-20 Pedro Alves <palves@redhat.com>
6897 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
6900 2012-03-20 Yao Qi <yao@codesourcery.com>
6902 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
6905 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6907 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
6908 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
6909 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
6911 * dwarf2expr.h (cu_offset, sect_offset): New types.
6912 (struct dwarf_expr_context_funcs) <dwarf_call>
6913 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
6915 (struct dwarf_expr_context) <len>: Improve the comment.
6916 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
6917 cu_offset and sect_offset.
6918 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
6919 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
6920 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
6921 * dwarf2loc.h: Include dwarf2expr.h.
6922 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
6924 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
6925 Improve the comment.
6926 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
6927 (struct signatured_type, struct line_header, struct partial_die_info)
6928 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
6929 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
6930 (get_die_type_at_offset, create_cus_from_index)
6931 (create_signatured_type_table_from_index, dw2_get_file_names)
6932 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
6933 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
6934 (create_debug_types_hash_table, process_psymtab_comp_unit)
6935 (load_partial_comp_unit, create_all_comp_units)
6936 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
6937 (load_full_comp_unit, dwarf2_physname, read_import_statement)
6938 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6939 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
6940 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
6941 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
6942 (find_partial_die, read_attribute_value, lookup_die_type)
6943 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
6944 (is_ref_attr): New function comment.
6945 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
6946 Use cu_offset and sect_offset.
6947 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
6948 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
6949 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
6950 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
6951 (offset_and_type_hash, offset_and_type_eq, set_die_type)
6952 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
6953 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
6956 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6959 * python/py-auto-load.c (source_section_scripts): New variable back_to.
6960 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
6962 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
6964 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6966 * NEWS: Describe new options --init-command=FILE, -ix and
6967 --init-eval-command=COMMAND, -iex.
6968 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
6969 CMDARG_INIT_COMMAND.
6970 (captured_main): New enum items OPT_IX and OPT_IEX. Add
6971 "init-command", "init-eval-command", "ix" and "iex" to the variable
6972 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
6973 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
6974 (print_gdb_help): Describe --init-command=FILE, -ix and
6975 --init-eval-command=COMMAND, -iex.
6977 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6980 * main.c (struct cmdarg): Move it here from main. Add more comments.
6981 (cmdarg_s, VEC (cmdarg_s)): New.
6982 (main): Move struct cmdarg from here. New variables cmdarg_vec and
6983 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
6984 Install cleanup for cmdarg_vec. Update filling for options 'x' and
6985 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
6988 2012-03-19 Tom Tromey <tromey@redhat.com>
6990 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
6992 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6995 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
6998 2012-03-16 Chris January <chris.january@allinea.com>
7000 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7003 2012-03-16 Chris January <chris.january@allinea.com>
7005 * source.c (add_path): Use memmove instead of strcpy because the
7008 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7010 * value.h (set_value_parent): Add declaration.
7011 * value.c (set_value_parent): New function.
7012 (value_address): If VALUE->PARENT is not NULL, then use it as
7013 the base address instead of VALUE->LOCATION.address.
7014 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7015 the same as OBJ's address. Adjust V's offset accordingly.
7018 2012-03-16 Gary Benson <gbenson@redhat.com>
7020 PR breakpoints/10738
7021 * dwarf2read.c (use_deprecated_index_sections): New global.
7022 (struct partial_die_info): New member may_be_inlined.
7023 (read_partial_die): Set may_be_inlined where appropriate.
7024 (add_partial_subprogram): Add partial symbols for partial
7025 DIEs that may be inlined.
7026 (new_symbol_full): Add inlined subroutines to the current
7028 (write_psymtabs_to_index): Bump version number.
7029 (dwarf2_read_index): Read only version 6 indices unless
7030 use_deprecated_index_sections is set.
7031 * linespec.c (symbol_and_data_callback): New structure.
7032 (iterate_inline_only): New function.
7033 (iterate_over_all_matching_symtabs): New argument
7034 "include_inline". If nonzero, also call the callback for
7035 symbols representing inlined subroutines.
7036 (lookup_prefix_sym): Pass extra argument to the above.
7037 (find_function_symbols): Likewise.
7038 (add_matching_symbols_to_info): Likewise.
7039 * NEWS: Mention that GDB can now set breakpoints on inlined
7042 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7044 * p-typeprint.c (pascal_type_print_method_args):
7045 Fix display of parameter of methods.
7047 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7049 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7050 Add missing prototype.
7052 2012-03-16 Yao Qi <yao@codesourcery.com>
7053 Jan Kratochvil <jan.kratochvil@redhat.com>
7055 Fix false compilation warning.
7056 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7058 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7059 Pedro Alves <pedro@codesourcery.com>
7061 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7062 (arm_register_g_packet_guesses): New function.
7063 (arm_gdbarch_init): Don't force a target description with
7064 registers when the executable is detected as M-profile. Instead
7065 set gdbarch->tdep->is_m. Register `g' packet guesses.
7066 (_initialize_arm_tdep): Initialize the new target description.
7067 * features/arm-with-m-fpa-layout.xml: New description.
7068 * features/arm-with-m-fpa-layout.c: New, generated.
7070 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7072 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7073 Update function description.
7074 (insert_bp_location): Do not wipe bl->target_info out.
7075 * mem-break.c: #include "gdb_string.h".
7076 (default_memory_insert_breakpoint): Do not call target_read_memory
7077 with a pointer to the breakpoint's shadow_contents buffer. Use
7078 a local buffer instead.
7079 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7081 2012-03-15 Tom Tromey <tromey@redhat.com>
7083 * NEWS: Mention "info vtbl", not "info vtable".
7084 * cp-support.c (info_vtbl_command): Fix comment.
7085 (_initialize_cp_support): Fix text.
7087 2012-03-15 Tom Tromey <tromey@redhat.com>
7089 * cp-valprint.c (cp_print_value_fields): Use
7090 print_function_pointer_address for vtable slot.
7092 2012-03-15 Tom Tromey <tromey@redhat.com>
7094 * gnu-v3-abi.c (struct value_and_voffset): New.
7095 (hash_value_and_voffset, eq_value_and_voffset)
7096 (compare_value_and_voffset, compute_vtable_size)
7097 (print_one_vtable, gnuv3_print_vtable): New functions.
7098 (init_gnuv3_ops): Initialize 'print_vtable' field.
7099 * cp-support.c (info_vtbl_command): New function.
7100 (_initialize_cp_support): Add "info vtbl".
7101 * cp-abi.h (cplus_print_vtable): Declare.
7102 (struct cp_abi_ops) <print_vtable>: New field.
7103 * cp-abi.c (cplus_print_vtable): New function.
7106 2012-03-15 Tom Tromey <tromey@redhat.com>
7108 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7109 iterate_over_symbols.
7111 2012-03-14 Doug Evans <dje@google.com>
7113 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7114 DW_OP_GNU_parameter_ref.
7116 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7118 Fix double prompt of 'interpreter-exec mi'.
7119 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7120 (mi_interpreter_resume): use it.
7121 (mi_execute_command_input_handler): New function.
7122 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7123 mi_execute_command_input_handler.
7125 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7127 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7129 (darwin_debug_port_info): Make static.
7130 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7131 * machoread.c (_initialize_machoread): Add prototype.
7132 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7133 (i386_darwin_set_control, i386_darwin_get_control)
7134 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7135 i386_darwin_get_status, i386_darwin_get_control):
7136 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7138 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7140 * ax-gdb.c (gen_usual_unary): Remove special handling of
7141 enum and bool types.
7143 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7145 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7147 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7149 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7151 2012-03-13 Chris January <chris.january@allinea.com>
7153 * aix-thread.c (fill_sprs): Store the floating point registers
7154 at the correct offsets into vals.
7156 2012-03-13 Doug Evans <dje@google.com>
7158 * NEWS: Mention symbol-reloading has been deleted.
7159 * symfile.c (symbol_reloading): Delete.
7160 (show_symbol_reloading): Delete.
7161 (_initialize_symfile): Delete set/show symbol-reloading.
7163 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7164 read_in_chain until we have successfully read it in.
7165 (load_full_comp_unit): Ditto.
7166 (read_signatured_type): Add comment.
7168 2012-03-13 Chris January <chris.january@allinea.com>
7170 * stabsread.c (fix_common_block): Change type of valu argument
7173 2012-03-13 Chris January <chris.january@allinea.com>
7175 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7178 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7180 * common/linux-procfs.c (linux_proc_get_int): New, from
7181 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7183 (linux_proc_get_tgid): Only call linux_proc_get_int.
7184 (linux_proc_get_tracerpid): New.
7185 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7186 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7187 linux_proc_pid_has_state.
7188 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7189 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7190 (linux_ptrace_attach_warnings): New.
7191 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7193 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7194 (linux_nat_attach): New variables ex, buffer, message and message_s.
7195 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7197 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7199 * Makefile.in (linux-ptrace.o): New.
7200 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7202 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7203 * common/linux-ptrace.c: New file.
7204 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7205 * config/arm/linux.mh: Likewise.
7206 * config/i386/linux.mh: Likewise.
7207 * config/i386/linux64.mh: Likewise.
7208 * config/ia64/linux.mh: Likewise.
7209 * config/m32r/linux.mh: Likewise.
7210 * config/m68k/linux.mh: Likewise.
7211 * config/mips/linux.mh: Likewise.
7212 * config/pa/linux.mh: Likewise.
7213 * config/powerpc/linux.mh: Likewise.
7214 * config/powerpc/ppc64-linux.mh: Likewise.
7215 * config/powerpc/spu-linux.mh: Likewise.
7216 * config/s390/s390.mh: Likewise.
7217 * config/sparc/linux.mh: Likewise.
7218 * config/sparc/linux64.mh: Likewise.
7219 * config/xtensa/linux.mh: Likewise.
7220 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7221 common/linux-procfs.c.
7222 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7224 2012-03-13 Hui Zhu <teawater@gmail.com>
7225 Pedro Alves <palves@redhat.com>
7227 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7228 CREATE_BREAKPOINT_FLAGS_INSERTED.
7229 (create_breakpoint_sal, create_breakpoints_sal)
7230 (base_breakpoint_create_breakpoints_sal)
7231 (tracepoint_create_breakpoints_sal)
7232 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7234 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7235 (ftrace_command, strace_command): Adjust.
7236 (create_tracepoint_from_upload): Pass
7237 CREATE_BREAKPOINT_FLAGS_INSERTED.
7238 * breakpoint.h (enum breakpoint_create_flags): New.
7239 (create_breakpoint): New flags parameter.
7240 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7241 * python/py-breakpoint.c (bppy_init): Adjust.
7242 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7243 * spu-tdep.c (spu_catch_start): Adjust.
7245 2012-03-13 Pedro Alves <palves@redhat.com>
7246 Hui Zhu <teawater@gmail.com>
7247 Yao Qi <yao@codesourcery.com>
7249 * remote.c (struct remote_state): New field `starting_up'.
7250 (remote_start_remote): Set and clear it.
7251 (remote_can_download_tracepoint): If starting up, return false.
7253 2012-03-13 Yao Qi <yao@codesourcery.com>
7255 * inferior.h (struct inferior): Remove fields any_syscall_count,
7256 syscalls_counts and total_syscalls_count. Move them to new
7257 struct catch_syscall_inferior_data in breakpoint.c.
7258 * breakpoint.c: Call DEF_VEC_I(int).
7259 (struct catch_syscall_inferior_data): New.
7260 (get_catch_syscall_inferior_data): New.
7261 (catch_syscall_inferior_data_cleanup): New.
7262 (insert_catch_syscall): Update to access data in
7263 struct catch_syscall_inferior_data.
7264 (insert_catch_syscall): Likewise.
7265 (remove_catch_syscall): Likewise.
7266 (remove_catch_syscall): Likewise.
7267 (is_syscall_catchpoint_enabled): Likewise.
7268 (add_catch_command): Likewise.
7269 (_initialize_breakpoint): Register cleanup.
7270 * breakpoint.h: Removed DEF_VEC_I(int).
7271 * dwarf2loc.c: Call DEF_VEC_I(int).
7272 * mi/mi-main.c: Likewise.
7274 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7276 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7278 2012-03-12 Chris January <chris.january@allinea.com>
7280 * aix-thread.c (_initialize_aix_thread): Add prototype.
7281 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7282 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7284 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7286 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7287 include of "amd64-nat.h".
7289 2012-03-12 Tom Tromey <tromey@redhat.com>
7291 * buildsym.c (record_pending_block): Now static.
7292 * buildsym.h: (record_pending_block): Remove.
7294 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7296 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7298 2012-03-09 Tom Tromey <tromey@redhat.com>
7300 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7301 producer_is_gxx_lt_4_6>: New fields.
7302 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7304 2012-03-09 Tom Tromey <tromey@redhat.com>
7306 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7308 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7310 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7313 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7315 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7317 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7319 Fix -Wmissing-prototypes build.
7320 * arm-linux-nat.c (get_thread_id): Make it static.
7321 * xtensa-linux-nat.c (get_thread_id): Likewise.
7323 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7325 * server.c (process_point_options): If a conditional expression
7326 is found, only print a message if remote_debug is nonzero.
7328 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7330 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7331 of internal error for unknown/unsupported types.
7333 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7335 Fix CU relative vs. absolute DIE offsets.
7336 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7337 offset to offset_in_cu.
7338 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7340 (dwarf2_fetch_die_location_block): Rename parameter offset to
7341 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7343 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7345 * libunwind-frame.c: Rename to ...
7346 * ia64-libunwind-tdep.c: ... here.
7347 * libunwind-frame.h: Rename to ...
7348 * ia64-libunwind-tdep.h: ... here.
7349 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7350 ia64-libunwind-tdep.h.
7351 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7352 * README (--with-libunwind): Rename to ...
7353 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7354 * config.in: Regenerate.
7355 * configure: Regenerate.
7356 * configure.ac: New option --with-libunwind-ia64, make the
7357 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7358 Remove AC_DEFINE for HAVE_LIBUNWIND.
7359 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7360 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7361 Rename libunwind-frame in the general comment.
7362 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7363 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7364 Move forward declarations inside #ifndef. Rename libunwind-frame in
7365 the general comment.
7366 * ia64-tdep.c: Rename libunwind-frame.h #include to
7367 ia64-libunwind-tdep.h.
7368 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7369 (ia64_libunwind_descr): Rename libunwind-frame to
7370 ia64-libunwind-tdep in these function comments.
7371 * ia64-tdep.h: Rename libunwind-frame.h #include to
7372 ia64-libunwind-tdep.h.
7373 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7374 ia64-libunwind-tdep in that data comment.
7376 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7378 * libunwind-frame.h (struct frame_unwind): New declaration.
7380 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7382 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7383 "set breakpoint condition-evaluation" command.
7385 2012-03-08 Tristan Gingold <gingold@adacore.com>
7387 * sparc-stub.c: Move to stubs/
7388 * sh-stub.c: Likewise.
7389 * m68k-stub.c: Likewise.
7390 * m32r-stub.c: Likewise.
7391 * i386-stub.c: Likewise.
7393 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7395 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7396 linux_get_siginfo_type.
7398 * m68klinux-nat.c: Include "gdb_proc_service.h".
7399 (PTRACE_GET_THREAD_AREA): Define.
7400 (ps_get_thread_area): New function.
7402 2012-03-08 Yao Qi <yao@codesourcery.com>
7404 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7406 (remote_query_attached): Likewise.
7407 (remote_static_tracepoint_marker_at): Likewise.
7408 (remote_set_permissions): Likewise.
7409 (remote_detach_1, extended_remote_attach_1): Likewise.
7410 (send_g_packet, remote_vkill): Likewise.
7411 (extended_remote_disable_randomization): Likewise.
7412 (remote_add_target_side_condition): Likewise.
7413 (remote_insert_breakpoint): Likewise.
7414 (remote_remove_breakpoint): Likewise.
7415 (remote_insert_watchpoint): Likewise.
7416 (remote_remove_watchpoint): Likewise.
7417 (remote_insert_hw_breakpoint): Likewise.
7418 (remote_insert_hw_breakpoint): Likewise.
7419 (remote_remove_hw_breakpoint): Likewise.
7420 (remote_download_command_source): Likewise.
7421 (remote_download_tracepoint): Likewise.
7422 (remote_download_trace_state_variable): Likewise.
7423 (remote_disable_tracepoint): Likewise.
7424 (remote_trace_set_readonly_regions): Likewise.
7425 (remote_get_tracepoint_status): Likewise.
7426 (remote_trace_find): Likewise.
7427 (remote_get_trace_state_variable_value): Likewise.
7428 (remote_set_disconnected_tracing): Likewise.
7429 (remote_set_circular_trace_buffer): Likewise.
7430 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7431 (remote_use_agent): Likewise.
7432 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7435 2012-03-07 Pedro Alves <palves@redhat.com>
7437 * NEWS: Mention QProgramSignals.
7438 * inferior.h (update_signals_program_target): Declare.
7439 * infrun.c: (update_signals_program_target): New.
7440 (handle_command): Update the target of the new program signals
7442 * remote.c (PACKET_QProgramSignals): New enum.
7443 (last_program_signals_packet): New global.
7444 (remote_program_signals): New.
7445 (remote_start_remote): Update the target with the program signals
7447 (remote_protocol_features): Add entry for QPassSignals.
7448 (remote_open_1): Free anc clear last_program_signals_packet.
7449 (init_remote_ops): Install remote_program_signals.
7450 * target.c (update_current_target): Adjust.
7451 (target_program_signals): New.
7452 * target.h (struct target_ops) <to_program_signals>: New field.
7453 (target_program_signals): Declare.
7455 2012-03-07 Pedro Alves <palves@redhat.com>
7457 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7460 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7462 * m68klinux-nat.c (getregs_supplies): Make static.
7463 (getfpregs_supplies): Likewise.
7464 (have_ptrace_getregs): Likewise.
7466 2012-03-06 Joel Brobecker <brobecker@adacore.com>
7468 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7469 in call to get_die_type_at_offset.
7471 2012-03-06 Stan Shebs <stan@codesourcery.com>
7473 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7474 * mi/mi-cmd-disas.c: Ditto.
7475 * mi/mi-cmd-env.c: Ditto.
7476 * mi/mi-cmd-file.c: Ditto.
7477 * mi/mi-cmd-stack.c: Ditto.
7478 * mi/mi-cmd-target.c: Ditto.
7479 * mi/mi-cmd-var.c: Ditto.
7480 * mi/mi-cmds.c: Ditto.
7481 * mi/mi-cmds.h: Ditto.
7482 * mi/mi-console.c: Ditto.
7483 * mi/mi-getopt.c: Ditto.
7484 * mi/mi-getopt.h: Ditto.
7485 * mi/mi-interp.c: Ditto.
7486 * mi/mi-main.c: Ditto.
7487 * mi/mi-out.c: Ditto.
7488 * mi/mi-parse.c: Ditto.
7489 * mi/mi-parse.h: Ditto.
7490 * mi/mi-symbol-cmds.c: Ditto.
7492 * mi/mi-getopt.h: Move mi_opt struct up.
7493 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7495 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7497 2012-03-06 Tom Tromey <tromey@redhat.com>
7499 * proc-service.c (ps_pglobal_lookup): Set the current program
7502 2012-03-06 Pedro Alves <palves@redhat.com>
7504 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7506 2012-03-05 Joel Brobecker <brobecker@adacore.com>
7508 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7510 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7513 * common/linux-osdata.c (linux_common_core_of_thread): New function
7515 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7516 call by linux_common_core_of_thread.
7517 (linux_nat_core_of_thread_1): Remove.
7518 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7519 * linux-thread-db.c: Include linux-osdata.h.
7520 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7521 linux_common_core_of_thread.
7523 2012-03-05 Tom Tromey <tromey@redhat.com>
7525 * value.c (value_primitive_field): Don't fetch contents for
7528 2012-03-05 Tom Tromey <tromey@redhat.com>
7530 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7532 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
7534 * s390-nat.c: Include "gregset.h".
7536 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7538 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7539 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7540 (libunwind_load): New variable so_error, use it for dlerror. Try to
7541 load also LIBUNWIND_SO_7.
7543 2012-03-05 Pedro Alves <palves@redhat.com>
7545 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7546 is not NULL, and remove resulting dead code.
7548 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7550 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7551 prologue to sh_analyze_prologue.
7552 (sh_analyze_prologue): Make better use of such an upper limit, and
7553 generally be more cautious about accessing memory.
7555 2012-03-05 Tom Tromey <tromey@redhat.com>
7557 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7558 _initialize_ia64_hpux_tdep.
7560 2012-03-05 Pedro Alves <palves@redhat.com>
7564 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7565 the register state is clear, supply explicit zero, instead of
7566 marking the register unavailable.
7568 2012-03-05 Tristan Gingold <gingold@adacore.com>
7570 * NEWS: Mention OpenVMS ia64 new target.
7572 2012-03-05 Tristan Gingold <gingold@adacore.com>
7574 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7575 (ia64_unw_accessors, ia64_unw_rse_accessors)
7576 (ia64_libunwind_descr): Declare.
7577 * ia64-vms-tdep.c: New file.
7578 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7579 (ia64_libunwind_descr): Make them public.
7580 * configure.tgt: Add ia64-*-*vms*.
7581 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7582 (ALLDEPFILES): Add ia64-vms-tdep.c
7584 2012-03-05 Tristan Gingold <gingold@adacore.com>
7586 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7587 * remote.c (PACKET_qXfer_uib): New enum value.
7588 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7589 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7590 (_initialize_remote): Call add_packet_config_cmd for
7593 2012-03-05 Tristan Gingold <gingold@adacore.com>
7595 * osabi.c (gdb_osabi_names): Add OpenVMS.
7596 (generic_elf_osabi_sniffer): Likewise.
7597 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
7599 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7601 Removed unused code.
7602 * libunwind-frame.c (libunwind_frame_unwind)
7603 (libunwind_frame_base_address): Remove.
7604 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7606 2012-03-04 Yao Qi <yao@codesourcery.com>
7608 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7609 remove trailing new line.
7610 (agent_run_command, agent_run_command): Add _ markup.
7611 (agent_capability_check): Likewise.
7613 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7615 * breakpoint.c (set_condition_evaluation_mode): Set
7616 CONDITION_EVALUATION_MODE unconditionally.
7618 2012-03-03 Yao Qi <yao@codesourcery.com>
7620 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7621 * common/agent.h: Update declaration.
7622 * inf-child.c (inf_child_use_agent): New.
7623 (inf_child_can_use_agent): New.
7624 (inf_child_target): Initialize fields `to_use_agent'
7625 and `to_can_use_agent'.
7626 * agent.c (agent_new_objfile): New.
7627 (_initialize_agent): Add agent_new_objfile to new_objfile
7630 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7632 (linux_target_install_ops): Initialize field
7633 `to_static_tracepoint_markers_by_strid'.
7634 * remote.c (free_current_marker): Move it to ...
7635 * tracepoint.c (free_current_marker): ... here. New.
7636 (cleanup_target_stop): New.
7637 * tracepoint.h: Declare free_current_marker.
7638 * NEWS: Add one entry about `info static-tracepoint-marker'.
7640 2012-03-03 Yao Qi <yao@codesourcery.com>
7642 * common/agent.c (agent_loaded_p): New.
7643 (agent_look_up_symbols): New global.
7644 * common/agent.h: Declare agent_loaded_p.
7646 2012-03-03 Yao Qi <yao@codesourcery.com>
7648 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7649 (agent_capability_check, agent_capability_invalidate): New.
7650 (symbol_list): New array element.
7651 * common/agent.h (enum agent_capa): New.
7652 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7654 2012-03-03 Yao Qi <yao@codesourcery.com>
7656 * target.h (struct target_ops) <to_use_agent>: New field.
7657 (struct target_ops) <to_can_use_agent>: New field.
7658 (target_use_agent, target_can_use_agent): New macro.
7659 * target.c (update_current_target): Update.
7660 * remote.c: New enum `PACKET_QAgent'.
7661 (remote_protocol_features): Add a new element.
7662 (remote_use_agent, remote_can_use_agent): New.
7663 (init_remote_ops): Initialize field `can_use_agent' with
7664 remote_can_use_agent. Intiailize field `use_agent' with
7666 * common/agent.c (use_agent): New global.
7667 * common/agent.h: Declare it.
7668 * tracepoint.c (info_static_tracepoint_markers_command): Add
7670 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7671 (COMMON_OBS): Add common/agent.o and agent.o
7672 (common-agent.o): New rule.
7675 2012-03-03 Yao Qi <yao@codesourcery.com>
7677 * common/agent.c: New.
7678 * common/agent.h: New.
7679 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7681 * configure, configh.in: Regenerated.
7683 2012-03-02 Kevin Buettner <kevinb@redhat.com>
7685 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7686 unless it exists for this architecture.
7688 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7690 * language.h (struct language_defn): New "method" la_read_var_value.
7691 * findvar.c: #include "language.h".
7692 (default_read_var_value): Renames read_var_value. Rewrite
7693 function description.
7694 (read_var_value): New function.
7695 * value.h (default_read_var_value): Add prototype.
7696 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7698 (ada_language_defn): Add entry for la_read_var_value.
7699 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7700 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7701 language_defn structures to add entry for new la_read_var_value
7704 2012-03-02 Tom Tromey <tromey@redhat.com>
7705 Pedro Alves <palves@redhat.com>
7707 PR breakpoints/13776:
7708 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7710 (delete_longjmp_breakpoint_at_next_stop): New.
7711 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7712 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7713 before deleting the inferior. Add comments.
7714 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7715 breakpoints immediately, but only on next stop. Move that code
7716 next to where we mark other breakpoints for deletion.
7718 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7720 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7722 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7725 2012-03-02 Pedro Alves <palves@redhat.com>
7727 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7729 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7731 Fix -Wmissing-prototypes build.
7732 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7733 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7734 (gdbsim_has_memory): Likewise.
7736 2012-03-02 Yao Qi <yao@codesourcery.com>
7738 Fix -Wmissing-prototypes build.
7739 * charset.c (phony_iconv_open): Make static.
7740 (phony_iconv_close, phony_iconv): Likewise.
7741 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7742 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7744 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7745 * ser-mingw.c (create_select_thread): Make static.
7746 * windows-termcap.c (tgetent): New prototype.
7747 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7749 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7751 Fix -Wmissing-prototypes build.
7752 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
7753 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
7754 (_initialize_loadable): New prototypes.
7756 2012-03-02 Doug Evans <dje@google.com>
7758 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
7759 abbrev table, read_comp_unit will do it.
7761 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7763 Fix -Wmissing-prototypes build.
7764 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
7765 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
7766 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
7767 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
7768 (_initialize_arm_symbian_tdep): New prototype.
7769 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
7770 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
7771 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
7773 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
7774 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
7776 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
7777 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
7778 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
7780 * moxie-tdep.c (moxie_process_record): Likewise.
7781 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
7782 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
7783 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
7784 (_initialize_rl78_tdep): New prototype.
7785 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
7786 (_initialize_rx_tdep): New prototype.
7787 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
7788 (_initialize_darwin_solib): New prototype.
7789 * solib-spu.c: Include solib-spu.h.
7790 (_initialize_spu_solib): New prototype.
7791 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
7792 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
7793 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
7794 (tic6x_software_single_step): Make it static.
7795 (_initialize_tic6x_tdep): New prototype.
7797 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7799 Fix -Wmissing-prototypes build.
7800 * cris-tdep.c (cris_can_use_hardware_watchpoint)
7801 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
7803 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7805 Fix -Wmissing-prototypes build.
7806 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
7807 (frv_have_stopped_data_address): Remove.
7809 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7811 Fix -Wmissing-prototypes build.
7812 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
7813 * sh-tdep.c: Include sh64-tdep.h.
7814 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
7815 * sh64-tdep.c: Include sh64-tdep.h.
7816 * sh64-tdep.h: New file.
7818 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7820 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
7822 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7824 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
7825 sp_regnum once the gdbarch_init_osabi hook has been called.
7827 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7829 * mips-tdep.c (mips32_bc1_pc): New function.
7830 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
7831 BPOSGE32 and BPOSGE64 instructions.
7832 (deal_with_atomic_sequence): Likewise.
7833 (mips32_instruction_has_delay_slot): Likewise.
7835 2012-03-01 Maciej W. Rozycki <macro@mips.com>
7836 Chris Dearman <chris@mips.com>
7837 Maciej W. Rozycki <macro@codesourcery.com>
7838 Joseph Myers <joseph@codesourcery.com>
7840 * features/mips-dsp.xml: New file.
7841 * features/mips64-dsp.xml: New file.
7842 * features/mips-dsp-linux.xml: New file.
7843 * features/mips64-dsp-linux.xml: New file.
7844 * features/Makefile (WHICH): Add mips-dsp-linux and
7846 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
7847 * features/mips-dsp-linux.c: New file.
7848 * features/mips64-dsp-linux.c: New file.
7849 * regformats/mips-dsp-linux.dat: New file.
7850 * regformats/mips64-dsp-linux.dat: New file.
7851 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
7853 (mips64_linux_register_addr): Likewise.
7854 (mips64_linux_regsets_fetch_registers): Likewise.
7855 (mips64_linux_regsets_store_registers): Likewise.
7856 (mips64_linux_fetch_registers): Update call to
7857 mips64_linux_regsets_fetch_registers.
7858 (mips64_linux_store_registers): Update call to
7859 mips64_linux_regsets_store_registers.
7860 (mips_linux_read_description): Probe for DSP registers.
7861 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
7862 and initialize_tdesc_mips64_dsp_linux.
7863 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
7864 Remove padding of no longer used embedded register slots.
7865 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
7866 (MIPS_RESTART_REGNUM): Redefine enum value.
7867 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
7869 (mips_tx39_reg_names): Likewise.
7870 (mips_linux_reg_names): New array of register names for Linux
7872 (mips_register_name): Check for a null pointer in
7873 mips_processor_reg_names and return an empty string.
7874 (mips_register_type): Exclude embedded registers for the IRIX
7876 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
7877 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
7879 (mips_stab_reg_to_regnum): Handle DSP accumulators.
7880 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
7881 (mips_gdbarch_init): Likewise. Initialize internal register
7882 indices for the Linux ABI. Use dynamic numbers to refer to
7883 registers, as applicable, while parsing the target description.
7884 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
7886 2012-03-01 Joel Brobecker <brobecker@adacore.com>
7888 * frame.h (read_frame_register_unsigned): Fix typo in function
7891 2012-03-01 Pedro Alves <palves@redhat.com>
7893 * jit-reader.in [!__cplusplus]
7894 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
7896 2012-03-01 Pedro Alves <palves@redhat.com>
7898 * configure.ac (build_warnings): Add -Wmissing-prototypes.
7899 * configure: Regenerate.
7901 2012-03-01 Pedro Alves <palves@redhat.com>
7903 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
7904 * breakpoint.c (create_exception_master_breakpoint, trace_command)
7905 (ftrace_command, strace_command): Make static.
7906 * d-lang.c (_initialize_d_language): Declare.
7907 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
7908 * dwarf2loc.c (_initialize_dwarf2loc):
7909 * dwarf2read.c (process_psymtab_comp_unit): Make static.
7910 * exec.c (exec_get_section_table): Make static.
7911 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
7912 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
7913 * inferior.c (remove_inferior_command, add_inferior_command)
7914 (clone_inferior_command): Make static.
7915 * linux-nat.c (linux_nat_thread_address_space)
7916 (linux_nat_core_of_thread): Make static.
7917 * linux-tdep.c (_initialize_linux_tdep): Declare.
7918 * objc-lang.c (_initialize_objc_lang): Declare.
7919 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
7921 (_initialize_opencl_language): Declare.
7922 * record.c (_initialize_record): Declare.
7923 * remote.c (demand_private_info, remote_get_tib_address)
7924 (remote_supports_cond_tracepoints)
7925 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
7927 * skip.c (_initialize_step_skip): Declare.
7928 * symtab.c (skip_prologue_using_lineinfo): Make static.
7929 * tracepoint.c (delete_trace_state_variable)
7930 (trace_variable_command, delete_trace_variable_command)
7931 (get_uploaded_tsv, find_matching_tracepoint_location)
7932 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
7934 * value.c (pack_unsigned_long): Make static.
7935 * varobj.c (varobj_ensure_python_env): Make static.
7936 * windows-tdep.c (_initialize_windows_tdep): Declare.
7937 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
7939 2012-03-01 Pedro Alves <palves@redhat.com>
7941 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
7943 (linux_init_abi): Install it as has_shared_address_space gdbarch
7946 2012-03-01 Pedro Alves <palves@redhat.com>
7948 * observer.c (observer_test_first_notification_function)
7949 (observer_test_second_notification_function)
7950 (observer_test_third_notification_function): Add declarations.
7952 2012-03-01 Pedro Alves <palves@redhat.com>
7954 * common/signals.c (default_target_signal_to_host)
7955 (default_target_signal_from_host): Move ...
7956 * arch-utils.c: ... here.
7957 * arch-utils.h (default_target_signal_to_host)
7958 (default_target_signal_from_host): Declare.
7960 * common/signals.c (target_signal_from_command): Move ...
7961 * infrun.c: ... here.
7962 * inferior.h (target_signal_from_command): Declare.
7963 * target.h (target_signal_from_command)
7964 (default_target_signal_from_host, default_target_signal_to_host):
7965 Delete declarations.
7967 * common/signals.c (_initialize_signals): Delete.
7969 2012-03-01 Pedro Alves <palves@redhat.com>
7971 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
7972 both __cplusplus and !__cplusplus.
7974 2012-03-01 Pedro Alves <palves@redhat.com>
7976 * psymtab.c (find_and_open_source): Delete declaration.
7977 * source.c (find_and_open_source): Move comment ...
7978 * source.h (find_and_open_source): ... to this new declaration.
7980 2012-03-01 Pedro Alves <palves@redhat.com>
7982 * inline-frame.c: Include inline-frame.h.
7984 2012-03-01 Pedro Alves <palves@redhat.com>
7986 * tui/tui-data.c (set_gen_win_origin): Delete.
7987 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
7988 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
7990 2012-03-01 Pedro Alves <palves@redhat.com>
7992 * remote.c (encode_actions): Delete declaration.
7993 * tracepoint.c (encode_actions): Make extern.
7994 * tracepoint.h (encode_actions): Declare.
7996 2012-03-01 Pedro Alves <palves@redhat.com>
7998 * python/py-breakpoint.c: Include python.h.
7999 * python/py-continueevent.c (create_continue_event_object): Make
8001 * python/py-lazy-string.c (stpy_get_type): Make static.
8002 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8004 * python/py-utils.c (unicode_to_target_python_string): Make
8006 * python/py-value.c: Include python.h.
8008 2012-03-01 Pedro Alves <palves@redhat.com>
8010 * inferior.c (delete_threads_of_inferior): Delete.
8012 2012-03-01 Pedro Alves <palves@redhat.com>
8014 Import fallback definitions from glibc.
8016 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8017 ps_prochandle): Forward declare.
8018 (ps_err_e): Use glibc's comments.
8019 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8020 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8021 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8022 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8023 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8024 (struct ps_prochandle): Adjust comment.
8026 2012-03-01 Pedro Alves <palves@redhat.com>
8028 * ada-lang.c (ada_modulus_from_name): Delete.
8029 * ada-lex.l (lexer_init): Make static.
8031 2012-03-01 Pedro Alves <palves@redhat.com>
8035 * frame.c (read_frame_register_unsigned): New.
8036 * frame.h (read_frame_register_unsigned): Declare.
8037 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8039 (print_i387_control_word): New parameter `control_p'. Handle it.
8040 (i387_print_float_info): Handle unavailable float registers.
8042 2012-03-01 Keith Seitz <keiths@redhat.com>
8044 * linespec.c (decode_line_2): Sort the list of methods
8045 alphabetically before presenting the user with a selection
8048 2012-03-01 Doug Evans <dje@google.com>
8050 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8052 (dwarf2_read_abbrevs): Remove corresponding initialization.
8054 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8056 * NEWS: Mention new python command class gdb.COMMAND_USER.
8057 * cli/cli-cmds.c (show_user): Print error when used on a python
8059 (init_cli_cmds): Update documentation strings for "show user" and
8060 "set/show max-user-call-depth" to clarify that it does not apply to
8062 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8064 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8066 * top.c (execute_command): Only execute a user-defined command as a
8067 legacy macro if c->user_commands is set.
8069 2012-03-01 Tom Tromey <tromey@redhat.com>
8071 * valprint.h (struct generic_val_print_decorations): New.
8072 (generic_val_print): Declare.
8073 * valprint.c (generic_val_print): New function.
8074 * p-valprint.c (p_decorations): New global.
8075 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8076 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8077 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8078 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8079 * m2-valprint.c (m2_decorations): New global.
8080 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8081 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8082 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8083 TYPE_CODE_ERROR>: Call generic_val_print.
8084 * f-valprint.c (f_decorations): New global.
8085 (f_val_print): Use print_function_pointer_address.
8086 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8087 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8088 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8090 * c-valprint.c (c_decorations): New global.
8091 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8092 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8093 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8094 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8095 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8096 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8099 2012-03-01 Tom Tromey <tromey@redhat.com>
8101 * valprint.c (val_print): Update.
8102 * p-valprint (pascal_val_print): Return void.
8103 * p-lang.h (pascal_val_print): Return void.
8104 * m2-valprint.c (m2_val_print): Return void.
8105 * m2-lang.h (m2_val_print): Return void.
8106 * language.h (struct language_defn) <la_val_print>: Return void.
8107 * language.c (unk_lang_val_print): Return void.
8108 * jv-valprint.c (java_val_print): Return void.
8109 * jv-lang.h (java_val_print): Return void.
8110 * f-valprint.c (f_val_print): Return void.
8111 * f-lang.h (f_val_print): Return void.
8112 * d-valprint.c (d_val_print): Return void.
8113 (dynamic_array_type): Update.
8114 * d-lang.h (d_val_print): Return void.
8115 * c-valprint.c (c_val_print): Return void.
8116 * c-lang.h (c_val_print): Return void.
8117 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8119 * ada-lang.h (ada_val_print): Return void.
8121 2012-03-01 Tom Tromey <tromey@redhat.com>
8123 * value.h (val_print): Return void.
8124 * valprint.c (val_print): Return void.
8126 2012-03-01 Tom Tromey <tromey@redhat.com>
8128 * value.h (common_val_print): Return void.
8129 * valprint.c (common_val_print): Return void.
8131 2012-03-01 Tom Tromey <tromey@redhat.com>
8133 * value.h (value_print): Return void.
8134 * valprint.c (value_print): Return void.
8135 * p-valprint.c (pascal_value_print): Return void.
8136 * p-lang.h (pascal_value_print): Return void.
8137 * language.h (struct language_defn) <la_value_print>: Return
8139 * language.c (unk_lang_value_print): Return void.
8140 * jv-valprint.c (java_value_print): Return void.
8141 * jv-lang.h (java_value_print): Return void.
8142 * f-valprint.c (c_value_print): Don't declare.
8144 * c-valprint.c (c_value_print): Return void.
8145 * c-lang.h (c_value_print): Return void.
8146 * ada-valprint.c (ada_value_print): Return void.
8147 * ada-lang.h (ada_value_print): Return void.
8149 2012-03-01 Tom Tromey <tromey@redhat.com>
8151 * value.c (value_primitive_field): Handle virtual base classes.
8153 2012-03-01 Tom Tromey <tromey@redhat.com>
8155 * gdbtypes.h (struct vbase): Remove.
8157 2012-03-01 Tom Tromey <tromey@redhat.com>
8159 * c-valprint.c (print_function_pointer_address): Move...
8160 * valprint.c: ... here. Make non-static.
8161 * m2-valprint.c (print_function_pointer_address): Remove.
8162 * valprint.h (print_function_pointer_address): Declare.
8164 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8166 * NEWS: Document the fact that one can provide a condition when
8167 creating an Ada exception catchpoint.
8169 2012-03-01 Tom Tromey <tromey@redhat.com>
8171 * valprint.c (val_print_type_code_flags): Fix placement of
8174 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8176 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8177 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8178 environment variable before calling update-copyright.
8180 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8182 * gnulib/extra/update-copyright: Update to the latest from
8183 gnulib's git repository.
8184 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8185 variable to 2 instead of 1.
8187 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8189 * varobj.c (c_value_of_variable): Remove dead code.
8191 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8193 * ada-lex.p (processId): Do not modify already encoded IDs.
8194 Update function documentation.
8196 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8198 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8199 "name" with "struct symbol *name_sym".
8200 * ada-exp.y (write_var_or_type): Update call to
8201 ada_find_renaming_symbol.
8202 "name" with "struct symbol *name_sym". Adjust Implementation
8203 accordingly. Adjust the function documentation.
8205 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8207 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8208 * ada-lang.c (ada_find_any_type): Add advance declaration.
8209 Make static. Replace ada_find_any_symbol by
8210 ada_find_any_type_symbol.
8211 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8212 Improve function description. Make static.
8213 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8214 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8216 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8218 * ada-lang.c (struct tag_args): Delete.
8219 (ada_get_tsd_type): Function body moved up in source file.
8220 (ada_tag_name_1, ada_tag_name_2): Delete.
8221 (ada_get_tsd_from_tag): New function.
8222 (ada_tag_name_from_tsd): New function.
8223 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8224 to determine the tag name.
8226 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8228 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8230 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8233 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8235 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8237 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8239 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8242 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8244 * ada-lang.c (constrained_packed_array_type): If there is a
8245 parallel XA type, use it to determine the array index type.
8247 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8249 * ada-valprint.c (ada_val_print_1): If our value is a reference
8250 to an array descriptor, dereference it before converting it
8253 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8255 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8256 creating fixed value.
8257 (ada_value_ind, ada_coerce_ref, assign_component)
8258 (ada_evaluate_subexp): Remove call to unwrap_value before
8259 call to ada_to_fixed_value.
8261 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8263 * ada-lang.c (to_fixed_array_type): Set result's type name.
8265 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8267 * ada-lang.c (catch_ada_exception_command_split): Add new
8268 argument cond_string. Add support for condition at end of
8269 "catch exception" commands.
8270 (ada_decode_exception_location): Add new argument cond_string.
8271 Update call to catch_ada_exception_command_split.
8272 (create_ada_exception_catchpoint): Add new argument cond_string.
8273 Set the breakpoint condition if needed.
8274 (catch_ada_exception_command): Update call to
8275 ada_decode_exception_location.
8276 (ada_decode_assert_location): Add function documentation.
8277 Add support for condition at end of "catch assert" command.
8278 (catch_assert_command): Update calls to ada_decode_assert_location
8279 and create_ada_exception_catchpoint.
8281 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8283 Fix disp-step-syscall.exp: fork: single step over fork.
8284 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8285 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8286 comment, change parameters gdbarch and ptid to regcache. Remove
8287 parameter regcache, initialize gdbarch from regcache here.
8288 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8290 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8292 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8293 'syscall'. Make the 'int' check more strict.
8295 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8297 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8298 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8299 (i386_linux_intx80_sysenter_syscall_record): ... here.
8300 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8301 Use the renamed function name.
8303 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8305 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8306 * breakpoint.c (until_break_command): Likewise.
8307 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8308 * infcall.c (call_function_by_hand): Likewise.
8309 * infcmd.c (finish_forward): Likewise.
8310 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8312 2012-02-28 Tristan Gingold <gingold@adacore.com>
8314 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8315 avoid variable assignments inside condition.
8317 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8319 Fix static analysis issue found by cppcheck.
8320 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8321 uninitialized BUF for size 2.
8323 2012-02-27 Chris Dearman <chris@mips.com>
8324 Nathan Froyd <froydnj@codesourcery.com>
8325 Maciej W. Rozycki <macro@codesourcery.com>
8327 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8328 (mips16_instruction_has_delay_slot): Likewise.
8329 (mips_segment_boundary): Likewise.
8330 (mips_adjust_breakpoint_address): Likewise.
8331 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8333 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8334 Maciej W. Rozycki <macro@codesourcery.com>
8336 * infrun.c (handle_inferior_event): Don't proceed through
8337 shared library trampolines if stepping at the machine
8340 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8342 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8345 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8347 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8348 (sh_stub_unwind_sniffer): New functions.
8349 (sh_stub_unwind): New variable.
8350 (sh_gdbarch_init): Wire everything.
8352 2012-02-27 Pedro Alves <palves@redhat.com>
8354 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8355 (linux_nat_post_attach_wait): Adjust to use
8356 linux_proc_pid_is_stopped.
8357 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8358 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8359 based on pid_is_stopped from both linux-nat.c and
8360 gdbserver/linux-low.c, and renamed.
8362 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8364 * remote.c (remote_watchpoint_addr_within_range): New function.
8365 (init_remote_ops): Use it.
8367 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8369 * target.h (target_watchpoint_addr_within_range): Document macro.
8371 2012-02-24 Pedro Alves <palves@redhat.com>
8373 * stack.c (set_last_displayed_sal): Issue internal_error instead
8374 of warning, and issue it after clearing the last displayed sal.
8376 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8377 Pedro Alves <palves@redhat.com>
8379 * breakpoint.c (until_break_command): Install breakpoints after
8380 all frame manipulations.
8382 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8384 * remote.c (remote_supports_cond_breakpoints): New forward
8386 (remote_add_target_side_condition): New function.
8387 (remote_insert_breakpoint): Add target-side breakpoint
8388 conditional if supported.
8389 (remote_insert_hw_breakpoint): Likewise.
8390 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8393 * target.c (update_current_target): Inherit
8394 to_supports_evaluation_of_breakpoint_conditions.
8395 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8397 * target.h (struct target_ops)
8398 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8399 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8401 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8402 (condition_evaluation_both, condition_evaluation_auto,
8403 condition_evaluation_host, condition_evaluation_target,
8404 condition_evaluation_enums, condition_evaluation_mode_1,
8405 condition_evaluation_mode): New static globals.
8406 (translate_condition_evaluation_mode): New function.
8407 (breakpoint_condition_evaluation_mode): New function.
8408 (gdb_evaluates_breakpoint_condition_p): New function.
8409 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8410 (mark_breakpoint_modified): New function.
8411 (mark_breakpoint_location_modified): New function.
8412 (set_condition_evaluation_mode): New function.
8413 (show_condition_evaluation_mode): New function.
8414 (bp_location_compare_addrs): New function.
8415 (get_first_location_gte_addr): New helper function.
8416 (set_breakpoint_condition): Free condition bytecode if locations
8417 has become unconditional. Call mark_breakpoint_modified (...).
8418 (condition_command): Call update_global_location_list (1) for
8420 (breakpoint_xfer_memory): Use is_breakpoint (...).
8421 (is_breakpoint): New function.
8422 (parse_cond_to_aexpr): New function.
8423 (build_target_condition_list): New function.
8424 (insert_bp_location): Handle target-side conditional
8425 breakpoints and call build_target_condition_list (...).
8426 (update_inserted_breakpoint_locations): New function.
8427 (insert_breakpoint_locations): Handle target-side conditional
8429 (bpstat_check_breakpoint_conditions): Add comment.
8430 (bp_condition_evaluator): New function.
8431 (bp_location_condition_evaluator): New function.
8432 (print_breakpoint_location): Print information on where the condition
8434 (print_one_breakpoint_location): Likewise.
8435 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8436 breakpoint location.
8437 (force_breakpoint_reinsertion): New functions.
8438 (update_global_location_list): Handle target-side breakpoint
8440 Reinsert locations that are already inserted if conditions have
8442 (bp_location_dtor): Free agent expression bytecode.
8443 (disable_breakpoint): Call mark_breakpoint_modified (...).
8444 Call update_global_location_list (...) with parameter 1 for breakpoints.
8445 (disable_command): Call mark_breakpoint_location_modified (...).
8446 Call update_global_location_list (...) with parameter 1 for breakpoints.
8447 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8448 (enable_command): mark_breakpoint_location_modified (...).
8449 (_initialize_breakpoint): Update documentation and add
8450 condition-evaluation breakpoint subcommand.
8452 * breakpoint.h: Include ax.h.
8453 (condition_list): New data structure.
8454 (condition_status): New enum.
8455 (bp_target_info) <cond_list>: New field.
8456 (bp_location) <condition_changed, cond_bytecode>: New fields.
8457 (is_breakpoint): New prototype.
8459 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8461 * remote.c (remote_state) <cond_breakpoints>: New field.
8462 (PACKET_ConditionalBreakpoints): New enum.
8463 (remote_cond_breakpoint_feature): New function.
8464 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8465 (remote_supports_cond_breakpoints): New function.
8466 (_initialize_remote): Add new packet configuration for
8467 target-side conditional breakpoints.
8469 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8471 * NEWS: Mention target-side conditional breakpoint support,
8472 new condition-evaluation breakpoint subcommand and remote
8475 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8477 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8480 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8482 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8483 (after_prologue): Remove.
8485 2012-02-23 Tom Tromey <tromey@redhat.com>
8487 * jv-valprint.c (java_val_print): Remove dead code.
8489 2012-02-23 Tristan Gingold <gingold@adacore.com>
8491 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8492 known_tasks_element and known_tasks_length fields.
8493 (read_known_tasks_array): Change argument type. Use pointer type
8494 and number of elements from DATA. Adjust.
8495 (read_known_tasks_list): Likewise.
8496 (get_known_tasks_addr): Remove.
8497 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8498 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8499 type and array length. Merge former get_known_tasks_addr code.
8501 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8504 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8505 it after set_momentary_breakpoint.
8507 2012-02-22 Sterling Augustine <saugustine@google.com>
8510 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8512 2012-02-22 Gary Benson <gbenson@redhat.com>
8514 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8515 (find_slot_in_mapped_hash): Likewise.
8517 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8520 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8521 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8522 * configure: Regenerate.
8524 2012-02-21 Tristan Gingold <gingold@adacore.com>
8525 Pedro Alves <palves@redhat.com>
8527 * ia64-tdep.c: Do not include libunwind-ia64.h.
8528 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8529 Include libunwind-ia64.h instead of libunwind.h.
8530 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8531 for libunwind.h existence.
8532 * configure, config.in: Regenerate.
8534 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8536 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8537 instead of value_rtti_target_type.
8538 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8539 instead of value_rtti_target_type.
8540 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8541 value_rtti_target_type.
8542 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8543 (value_rtti_target_type): Rename to ...
8544 (value_rtti_indirect_type): ... here and make it indirect. Update
8546 * value.c (readjust_indirect_value_type): New function.
8547 (coerce_ref): Support for enclosing type setting for references
8548 with readjust_indirect_value_type.
8549 * value.h (readjust_value_type): New declaration.
8550 (value_rtti_target_type): Rename to ...
8551 (value_rtti_indirect_type): ... here.
8553 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8555 * MAINTAINERS (Write After Approval): Add myself to the list.
8557 2012-02-20 Doug Evans <dje@google.com>
8559 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8560 Rename objfile_p_char parameter to objfilep.
8561 (build_objfile_section_table): Result is now void. All callers
8563 * objfiles.h (struct objfile): Tweak comments, whitespace.
8564 (build_objfile_section_table): Update.
8566 * elfread.c (elf_symfile_segments): Fix warning text.
8568 2012-02-20 Tom Tromey <tromey@redhat.com>
8571 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8572 particular set of file names once.
8573 (dw2_map_symbol_filenames): Likewise.
8575 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8578 * main.c (write_files): Remove the declaration.
8579 (external_editor_command): Move the declaration ...
8580 [GDBTK] (external_editor_command): ... here. Fix the comment.
8582 2012-02-20 Tom Tromey <tromey@redhat.com>
8584 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8587 2012-02-20 Tristan Gingold <gingold@adacore.com>
8589 * darwin-nat.h (enum darwin_msg_state): Add comments.
8591 2012-02-20 Tristan Gingold <gingold@adacore.com>
8593 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8596 2012-20-18 Joel Brobecker <brobecker@adacore.com>
8598 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8599 between function description and implementation.
8601 2012-02-17 Tom Tromey <tromey@redhat.com>
8604 * python/py-event.c (event_object_getset): New global.
8605 (event_object_type): Reference it.
8606 * python/py-type.c (field_object_getset): New global.
8607 (field_object_type): Reference it.
8608 * python/python-internal.h (gdb_py_generic_dict): Declare.
8609 * python/py-utils.c (gdb_py_generic_dict): New function.
8611 2012-02-17 Tristan Gingold <gingold@adacore.com>
8613 * solib-darwin.c (darwin_current_sos): Check magic and filetype
8615 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8617 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8618 TYPE_CALLING_CONVENTION annotation.
8620 2012-02-16 Kevin Buettner <kevinb@redhat.com>
8622 * MAINTAINERS: Add rx to target ISA section.
8623 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8624 (ALLDEPFILES): Add rx-tdep.c.
8626 2012-02-16 Tom Tromey <tromey@redhat.com>
8628 * symfile.c (symbol_file_add_main_1): Use inferior's
8630 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8631 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8633 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8635 (follow_exec): Use inferior's symfile_flags.
8636 * inferior.h (struct inferior) <symfile_flags>: New field.
8638 2012-02-16 Mike Frysinger <vapier@gentoo.org>
8641 * remote-sim.c (gdbsim_create_inferior): Call error() when
8642 sim_create_inferior() fails.
8644 2012-02-16 Josh Matthews <josh@joshmatthews.net>
8646 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8648 2012-02-16 Tom Tromey <tromey@redhat.com>
8651 * thread.c (struct current_thread_cleanup) <was_removable>: New
8653 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8654 (make_cleanup_restore_current_thread): Initialize new field.
8656 2012-02-15 Kevin Buettner <kevinb@redhat.com>
8658 * MAINTAINERS: Add rl78 to target ISA section.
8659 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8660 (ALLDEPFILES): Add rl78-tdep.c.
8661 * NEWS: Mention rl78 as a new target.
8663 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8665 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8667 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8669 2012-02-15 Tom Tromey <tromey@redhat.com>
8672 * infcmd.c (registers_info): Print just the current register's
8675 2012-02-15 Tom Tromey <tromey@redhat.com>
8677 * python/py-symbol.c (sympy_value): Use _().
8679 2012-02-15 Pedro Alves <palves@redhat.com>
8681 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8682 output to be like native targets'.
8683 (remote_pid_to_str): Special case the null ptid.
8685 2012-02-14 Stan Shebs <stan@codesourcery.com>
8687 * NEWS: Mention enable count command.
8688 * breakpoint.h (struct breakpoint): New field enable_count.
8689 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8690 (enable_breakpoint): Add arg to call.
8691 (struct disp_data): New struct.
8692 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8693 (do_map_enable_once_breakpoint): Create a struct and pass it.
8694 (do_map_enable_delete_breakpoint): Ditto.
8695 (do_map_enable_count_breakpoint): New function.
8696 (enable_count_command): New function.
8697 (bpstat_stop_status): Decrement enable_count.
8698 (print_one_breakpoint_location): Report enable count.
8699 (_initialize_breakpoint): Add enable count command.
8701 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8703 * rl78-tdep.c (reggroups.h): Include.
8704 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8705 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8706 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8707 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8708 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8709 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8710 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8711 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8712 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8713 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8714 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8715 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8716 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8717 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8718 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8719 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8720 beginning of register list.
8721 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8722 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8723 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8724 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8725 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8726 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8727 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8728 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8729 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8730 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8731 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8732 the pseudo registers. Rearrange other pseudo registers too so
8733 that the bank registers appear at the end.
8734 (rl78_register_type): Account for the fact that the byte sized
8735 bank registers are now pseudo-registers.
8736 (rl78_register_name): Rearrange the register name array. Make
8737 initial set of raw banked registers inaccessible.
8738 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8739 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8740 case for copying bytes back and forth between raw and pseudo
8741 versions of the banked registers. Update other cases to reflect
8743 (rl78_return_value): Update to account for changed names of
8745 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8746 rl78_register_sim_regno().
8748 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8750 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
8751 the name parameter being passed to find_pc_partial_function().
8753 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8755 * MAINTAINERS: Step down from being ia64 target maintainer.
8757 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8759 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
8760 compilation warning.
8762 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8764 Fix crash on loaded shlibs without loaded exec_bfd.
8765 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
8766 (set_section_command): Replace exec_bfd by p->bfd.
8768 2012-02-10 Tom Tromey <tromey@redhat.com>
8770 * linespec.c (decode_line_internal): Skip symtabs_from_filename
8771 when we have a C++ qualified name.
8773 2012-02-10 Pedro Alves <palves@redhat.com>
8775 * inferior.c (inferior_pid_to_str): New.
8776 (print_inferior, inferior_command): Use it.
8778 2012-02-10 Pedro Alves <palves@redhat.com>
8780 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
8782 * configure: Regenerate.
8784 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8786 * linespec.c (decode_line_internal): Fix comment correctness.
8788 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
8791 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
8792 * amd64bsd-nat.c: Add support for debug registers (adapted from
8794 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
8795 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
8796 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
8797 (amd64bsd_dr_get_control): New functions.
8798 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
8799 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
8800 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
8801 watchpoints initialization.
8802 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
8804 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8806 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
8808 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
8810 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8812 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
8814 2012-02-08 Joel Brobecker <brobecker@adacore.com>
8816 * language.h (symbol_name_cmp_ftype): Renames
8817 symbol_name_match_p_ftype.
8818 (struct language_defn)[la_get_symbol_name_cmp]: Renames
8819 la_get_symbol_name_match_p.
8820 * ada-lang.c (ada_get_symbol_name_cmp): Renames
8821 ada_get_symbol_name_match_p. Update comment.
8822 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
8823 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
8824 Renames symbol_name_match_p. Update field type.
8825 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
8826 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8827 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
8828 "la_get_symbol_name_cmp" in comments.
8829 * language.c: Likewise.
8831 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8833 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
8835 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
8836 (amd64_sol2_gregset32_reg_offs): Likewise.
8838 2012-02-08 Joel Brobecker <brobecker@adacore.com>
8840 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
8841 of the returned BFD is allocated by GDB.
8843 2012-02-07 Tom Tromey <tromey@redhat.com>
8846 * python/python-internal.h (frame_object_type): Declare.
8847 * python/py-symbol.c (sympy_needs_frame): New function.
8848 (sympy_value): New function.
8849 (symbol_object_getset): Add "needs_frame".
8850 (symbol_object_methods): Add "value".
8851 * python/py-frame.c (frame_object_type): No longer static.
8853 2012-02-07 Tom Tromey <tromey@redhat.com>
8856 * python/py-symbol.c (sympy_line): New function.
8857 (symbol_object_getset): Add "line".
8859 2012-02-07 Tom Tromey <tromey@redhat.com>
8861 * charset.c (find_charset_names): Check 'in' against NULL.
8863 2012-02-06 Doug Evans <dje@google.com>
8865 * gdbtypes.h (struct main_type): Change type of name,tag_name,
8866 and fields.name members from char * to const char *. All uses updated.
8867 (struct cplus_struct_type): Change type of fn_fieldlists.name member
8868 from char * to const char *. All uses updated.
8869 (type_name_no_tag): Update.
8870 (lookup_unsigned_typename, lookup_signed_typename): Update.
8871 * gdbtypes.c (type_name_no_tag): Change result type
8872 from char * to const char *. All callers updated.
8873 (lookup_unsigned_typename, lookup_signed_typename): Change type of
8874 name parameter from char * to const char *.
8875 * symtab.h (struct cplus_specific): Change type of demangled_name
8876 member from char * to const char *. All uses updated.
8877 (struct general_symbol_info): Change type of name and
8878 mangled_lang.demangled_name members from char * to const char *.
8880 (symbol_get_demangled_name, symbol_natural_name): Update.
8881 (symbol_demangled_name, symbol_search_name): Update.
8882 * symtab.c (symbol_get_demangled_name): Change result type
8883 from char * to const char *. All callers updated.
8884 (symbol_natural_name, symbol_demangled_name): Ditto.
8885 (symbol_search_name): Ditto.
8886 (completion_list_add_name): Change type of symname,sym_text,
8887 text,word parameters from char * to const char *.
8888 (completion_list_objc_symbol): Change type of sym_text,
8889 text,word parameters from char * to const char *.
8890 * ada-lang.c (find_struct_field): Change type of name parameter
8891 from char * to const char *.
8892 (encoded_ordered_before): Similarly for N0,N1 parameters.
8893 (old_renaming_is_invisible): Similarly for function_name parameter.
8894 (ada_type_name): Change result type from char * to const char *.
8895 All callers updated.
8896 * ada-lang.h (ada_type_name): Update.
8897 * buildsym.c (hashname): Change type of name parameter
8898 from char * to const char *.
8899 * buildsym.h (hashname): Update.
8900 * dbxread.c (end_psymtab): Change type of include_list parameter
8901 from char ** to const char **.
8902 * dwarf2read.c (determine_prefix): Change result type
8903 from char * to const char *. All callers updated.
8904 * f-lang.c (find_common_for_function): Change type of name, funcname
8905 parameters from char * to const char *.
8906 * f-lang.c (find_common_for_function): Update.
8907 * f-valprint.c (list_all_visible_commons): Change type of funcname
8908 parameters from char * to const char *.
8909 * gdbarch.sh (static_transform_name): Change type of name parameter
8910 and result from char * to const char *.
8911 * gdbarch.c: Regenerate.
8912 * gdbarch.h: Regenerate.
8913 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
8914 of name parameter from char * to const char *.
8915 * jv-lang.c (java_primitive_type_from_name): Ditto.
8916 (java_demangled_signature_length): Similarly for signature parameter.
8917 (java_demangled_signature_copy): Ditto.
8918 (java_demangle_type_signature): Ditto.
8919 * jv-lang.h (java_primitive_type_from_name): Update.
8920 (java_demangle_type_signature): Update.
8921 * objc-lang.c (specialcmp): Change type of a,b parameters
8922 from char * to const char *.
8923 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
8924 from char * to const char *. All callers updated.
8925 * p-lang.h (is_pascal_string_type): Update.
8926 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
8927 of name parameter from char * to const char *.
8928 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
8929 * utils.c (fprintf_symbol_filtered): Ditto.
8930 * defs.h (fprintf_symbol_filtered): Update.
8931 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
8932 * stabsread.h (end_psymtab): Update.
8933 * stack.c (find_frame_funname): Change type of funname parameter
8934 from char ** to const char **.
8935 * stack.h (find_frame_funname): Update.
8936 * typeprint.c (type_print): Change type of varstring parameter
8937 from char * to const char *.
8938 * value.h (type_print): Update.
8939 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
8940 from char * to const char *. All callers updated.
8941 (xcoff_end_psymtab): Change type of include_list parameter
8942 from char ** to const char **. All callers updated.
8943 (swap_sym): Similarly for name parameter. All callers updated.
8944 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
8946 (process_coff_symbol): Use xstrdup.
8947 * stabsread.c (stabs_method_name_from_physname): Renamed from
8948 update_method_name_from_physname. Change result type from void
8949 to char *. All callers updated.
8950 (read_member_functions): In has_destructor case, store name in objfile
8951 obstack instead of malloc space. In !has_stub case, fix mem leak.
8953 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
8955 * configure: Rebuild.
8956 * configure.ac: Put -L../bfd and -L../libiberty at the front of
8959 2012-02-03 Kevin Buettner <kevinb@redhat.com>
8961 * configure.tgt (rl78-*-elf): New target.
8962 * rl78-tdep.c: New file.
8964 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8966 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
8967 and continue the loop. Add QUIT statement.
8969 2012-02-03 Tom Tromey <tromey@redhat.com>
8972 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
8973 bfd_lookup_symbol_from_symtab.
8974 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
8975 gdb_bfd_lookup_symbol_from_symtab.
8977 2012-02-03 Joel Brobecker <brobecker@adacore.com>
8979 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
8980 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
8981 symbol. Add assertion that sym2 is never NULL.
8983 2012-02-02 Doug Evans <dje@google.com>
8985 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
8986 "name" parameter to const char ** from char **. All callers updated.
8987 (find_pc_partial_function): Ditto.
8988 (cache_pc_function_name): Change type to const char * from char *.
8989 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
8990 (find_pc_partial_function): Update.
8991 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
8992 type of "name" parameter to const char * from char *.
8994 * arch-utils.c (generic_in_solib_return_trampoline): Change
8995 type of "name" parameter to const char * from char *.
8996 * arch-utils.h (generic_in_solib_return_trampoline): Update.
8997 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
8998 type of "name" parameter to const char * from char *.
8999 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9000 * gdbarch.c: Regenerate.
9001 * gdbarch.h: Regenerate.
9002 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9003 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9004 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9005 type of "name" parameter to const char * from char *.
9006 * skip.c (skip_function_pc): Ditto.
9007 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9008 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9009 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9010 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9011 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9012 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9013 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9014 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9015 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9017 2012-02-02 Pedro Alves <palves@redhat.com>
9019 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9020 the current inferior has no execution. Make sure the current
9021 remote process matches gdb's current inferior.
9023 2012-02-02 Tom Tromey <tromey@redhat.com>
9026 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9029 2012-02-02 Tom Tromey <tromey@redhat.com>
9032 * symtab.c (lookup_language_this): Set block_found.
9034 2012-02-01 Tom Tromey <tromey@redhat.com>
9037 * jit.c (struct jit_inferior_data): Rewrite.
9038 (struct jit_objfile_data): New.
9039 (get_jit_objfile_data): New function.
9040 (add_objfile_entry): Update.
9041 (jit_read_descriptor): Return int. Replace descriptor_addr
9042 argument with inf_data. Update. Don't call error.
9043 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9045 (jit_inferior_init): Don't look up descriptor. Don't call error.
9046 (jit_reset_inferior_data_and_breakpoints)
9047 (jit_inferior_created_observer): Remove.
9048 (jit_inferior_exit_hook): Update.
9049 (jit_executable_changed_observer): Remove.
9050 (jit_event_handler): Update.
9051 (free_objfile_data): Reset inferior data if needed.
9052 (_initialize_jit): Update.
9054 2012-02-01 Tom Tromey <tromey@redhat.com>
9056 * jit.c (bfd_open_from_target_memory): Move higher in file.
9058 2012-02-01 Tristan Gingold <gingold@adacore.com>
9060 * libunwind-frame.c (libunwind_load): Display message if dlopen
9063 2012-02-01 Gary Benson <gbenson@redhat.com>
9065 * symtab.h (symbol_found_callback_ftype): New typedef.
9066 (iterate_over_symbols): Use the above.
9067 * symtab.c (iterate_over_symbols): Likewise.
9068 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9069 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9070 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9071 (iterate_name_matcher): Document return values.
9072 (collect_one_symbol): Likewise.
9073 (collect_function_symbols): Likewise.
9074 (collect_symbols): Likewise.
9076 2012-02-01 Tom Tromey <tromey@redhat.com>
9078 * ada-lang.c (resolve_subexp): Update.
9079 (ada_lookup_symbol_list): Add 'full_search' argument.
9080 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9081 ada_lookup_symbol_list.
9082 (ada_lookup_encoded_symbol): Update.
9083 (get_var_value): Update.
9084 * ada-exp.y (block_lookup): Update.
9085 (write_var_or_type): Update.
9086 (write_name_assoc): Update.
9087 * ada-lang.h (ada_lookup_symbol_list): Update.
9089 2012-01-31 Tom Tromey <tromey@redhat.com>
9091 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9094 2012-01-31 Doug Evans <dje@google.com>
9096 * symtab.h: Remove outdated comment.
9097 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9099 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9101 Fix build error in Darwin port.
9102 * i386-darwin-nat.c: Include i386-nat.h.
9104 2012-01-30 Tom Tromey <tromey@redhat.com>
9106 PR breakpoints/13568:
9107 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9108 argument. Check for recursive includes.
9109 (dwarf_decode_macros): Create an include hash.
9111 2012-01-30 Michael Eager <eager@eagercon.com>
9113 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9114 * ppc-linux-tdep.c: Include glibc-tdep.h.
9115 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9116 (powerpc_linux_in_plt_stub): New function.
9117 (powerpc_linux_in_dynsym_resolve_code): New function.
9118 (ppc_skip_trampoline_code): New function.
9119 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9120 Use glibc_skip_solib_resolver.
9122 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9124 Code cleanup: Make 1440 bytes of data segment read-only.
9125 * arch-utils.c (endian_enum): Make it const char *const [].
9126 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9128 * breakpoint.c (always_inserted_enums): Likewise.
9129 * cli/cli-cmds.c (script_ext_enums): Likewise.
9130 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9131 enumlist parameter const char *const *.
9132 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9133 const char *const *.
9134 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9135 parameter const char *const *.
9136 * cris-tdep.c (cris_modes): Make it const char *const [].
9137 * filesystem.c (target_file_system_kinds): Likewise.
9138 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9139 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9140 (can_use_displaced_stepping_enum, scheduler_enums)
9141 (exec_direction_names): Likewise.
9142 * language.c (_initialize_language): Make the type_or_range_names and
9143 case_sensitive_names variables const char *const [].
9144 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9145 * python/python.c (python_excp_enums): Likewise.
9146 * remote.c (interrupt_sequence_modes): Likewise.
9147 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9148 * serial.c (logbase_enums): Likewise.
9149 * sh-tdep.c (sh_cc_enum): Likewise.
9150 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9152 * symtab.c (multiple_symbols_modes): Likewise.
9153 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9155 * utils.c (internal_problem_modes): Likewise.
9157 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9159 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9160 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9163 2012-01-27 Doug Evans <dje@google.com>
9165 * configure.ac (with_python): Fix absolute path handling for win32.
9166 * configure: Regenerate.
9168 2012-01-26 Doug Evans <dje@google.com>
9170 * symtab.c: Whitespace cleanup, no code changes.
9172 * symtab.c (lookup_symbol_in_language): Improve comment.
9173 (lookup_symbol_aux): Fix comment.
9175 * psymtab.c (add_psymbol_to_list): Result is now "void".
9176 * psympriv.h (add_psymbol_to_list): Update.
9178 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9180 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9182 Do not open script filenames twice.
9183 * cli/cli-cmds.c (source_script_from_stream): Pass to
9184 source_python_script also STREAM.
9185 * python/py-auto-load.c (source_section_scripts): Pass to
9186 source_python_script_for_objfile also STREAM.
9187 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9189 * python/python-internal.h (source_python_script_for_objfile): New
9190 parameter file, rename parameter file to filename.
9191 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9192 instead if !_WIN32. Update the function comment.
9193 (source_python_script, source_python_script_for_objfile)
9194 (source_python_script): New parameter file, rename parameter file to
9195 filename. Pass FILENAME to python_run_simple_file.
9196 * python/python.h (source_python_script): New parameter file, rename
9197 parameter file to filename.
9199 2012-01-26 Pedro Alves <palves@redhat.com>
9201 * corelow.c (core_has_fake_pid): Delete.
9202 (core_close): Delete references to `core_has_fake_pid'.
9203 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9204 (core_open): Delete references to `core_has_fake_pid'.
9205 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9208 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9210 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9211 Remove language parameter from name_matcher. Adjust the comment.
9212 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9213 Remove language parameter.
9214 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9215 * linespec.c (iterate_name_matcher): Likewise.
9216 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9217 name_matcher. Adjust call accordingly.
9218 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9219 (maintenance_check_symtabs): Adjust type of parameter "fun".
9220 * psymtab.h (maintenance_check_symtabs): Likewise.
9222 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9224 * language.h (symbol_name_match_p_ftype): New typedef.
9225 (struct language_defn): Replace field la_symbol_name_compare
9226 by la_get_symbol_name_match_p.
9227 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9228 (ada_language_defn): Use it.
9229 * linespec.c (struct symbol_matcher_data): New type.
9230 (iterate_name_matcher): Rewrite.
9231 (iterate_over_all_matching_symtabs): Pass a pointer to
9232 a symbol_matcher_data struct to expand_symtabs_matching
9233 instead of just the lookup name.
9234 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9235 opencl-lang.c, p-lang.c, language.c: Delete field
9236 la_symbol_name_compare, and replace by NULL for new field
9237 la_get_symbol_name_match_p.
9238 * symfile.h (struct quick_symbol_functions): Update comment.
9240 2012-01-25 Tom Tromey <tromey@redhat.com>
9242 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9245 2012-01-24 Tom Tromey <tromey@redhat.com>
9248 * solib.c (update_solib_list): Update the program space's
9249 added_solibs and deleted_solibs fields.
9250 * progspace.h (struct program_space) <added_solibs,
9251 deleted_solibs>: New fields.
9252 (clear_program_space_solib_cache): Declare.
9253 * progspace.c (release_program_space): Call
9254 clear_program_space_solib_cache.
9255 (clear_program_space_solib_cache): New function.
9256 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9257 bpstat_stop_status. Use handle_solib_event.
9258 * breakpoint.c: Include gdb_regex.h.
9259 (print_solib_event): New function.
9260 (bpstat_print): Use print_solib_event.
9261 (bpstat_stop_status): Add special case for bp_shlib_event.
9262 (handle_solib_event): New function.
9263 (bpstat_what): Use handle_solib_event.
9264 (struct solib_catchpoint): New.
9265 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9266 (breakpoint_hit_catch_solib, check_status_catch_solib)
9267 (print_it_catch_solib, print_one_catch_solib)
9268 (print_mention_catch_solib, print_recreate_catch_solib): New
9270 (catch_solib_breakpoint_ops): New global.
9271 (catch_load_or_unload, catch_load_command_1)
9272 (catch_unload_command_1): New functions.
9273 (internal_bkpt_check_status): Add special case for
9275 (internal_bkpt_print_it): Use print_solib_event.
9276 (initialize_breakpoint_ops): Initialize
9277 catch_solib_breakpoint_ops.
9278 (_initialize_breakpoint): Register "catch load" and "catch
9280 * breakpoint.h (handle_solib_event): Declare.
9281 * NEWS: Add entry for "catch load" and "catch unload".
9283 2012-01-24 Tom Tromey <tromey@redhat.com>
9285 * ada-lang.c: Include gdb_vecs.h.
9286 * charset.c: Include gdb_vecs.h.
9287 * tracepoint.h: Include gdb_vecs.h.
9288 * gdb_vecs.h: New file.
9290 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9292 * breakpoint.c (breakpoint_hit_catch_fork)
9293 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9294 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9295 * infrun.c (inferior_has_forked, inferior_has_vforked)
9296 (inferior_has_execd, inferior_has_called_syscall): Delete.
9297 (handle_syscall_event): Get syscall_number from the execution
9298 control state's wait status.
9299 (wait_for_inferior): Don't clear syscall_number.
9301 2012-01-24 Pedro Alves <palves@redhat.com>
9303 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9304 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9305 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9306 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9308 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9309 false for events other than TARGET_SIGNAL_TRAP.
9310 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9312 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9313 events other than TARGET_SIGNAL_TRAP.
9314 (tracepoint_breakpoint_hit): Add `ws' parameter.
9315 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9317 (bpstat_stop_status): Same.
9318 (pc_at_non_inline_function): Same.
9319 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9320 to pass the current event's waitstatus to bpstat_stop_status
9321 and pc_at_non_inline_function.
9323 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9326 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9327 Update the function comment for it.
9328 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9329 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9332 2012-01-24 Pedro Alves <palves@redhat.com>
9334 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9335 outside `bs->stop' block.
9336 (bpstat_what): Rework bp_shlib_event handling.
9337 (internal_bkpt_check_status): If the breakpoint is a
9338 bp_shlib_event, then set bs->stop and bs->print if
9339 stop_on_solib_events is set.
9341 2012-01-24 Gary Benson <gbenson@redhat.com>
9343 Delete #if 0'd out code.
9344 * stack.c (print_frame_label_vars): Remove.
9345 (catch_info): Likewise.
9346 (_initialize_stack): Remove "info catch" command.
9347 * NEWS: Mention the above.
9349 2012-01-24 Pedro Alves <palves@redhat.com>
9351 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9353 (remote_notice_new_inferior): If the remote end doesn't support
9354 the multiprocess extensions, then the PID is fake.
9355 (add_current_inferior_and_thread): New.
9356 (remote_start_remote): Use it.
9357 (extended_remote_attach_1): Adjust.
9358 (extended_remote_create_inferior_1): Use
9359 add_current_inferior_and_thread.
9361 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9363 Fix watchpoints to be specific for each inferior.
9364 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9365 current_program_space.
9366 * i386-nat.c (i386_inferior_data_cleanup): New.
9367 (i386_inferior_data_get): Replace variable inf_data_local by an
9369 (i386_use_watchpoints): Initialize i386_inferior_data.
9370 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9371 specific iterate_over_lwps.
9373 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9375 Fix watchpoints across inferior fork.
9376 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9377 comment for linux_nat_iterate_watchpoint_lwps.
9378 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9379 linux_nat_iterate_watchpoint_lwps.
9380 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9381 * i386-linux-nat.c (update_debug_registers_callback): Update the
9382 comment for linux_nat_iterate_watchpoint_lwps.
9383 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9384 linux_nat_iterate_watchpoint_lwps.
9385 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9386 * i386-nat.c: Include inferior.h.
9387 (dr_mirror): Remove.
9388 (i386_inferior_data, struct i386_inferior_data)
9389 (i386_inferior_data_get): New.
9390 (i386_debug_reg_state): Use i386_inferior_data_get.
9391 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9392 (i386_insert_watchpoint, i386_remove_watchpoint)
9393 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9394 (i386_remove_hw_breakpoint): New variable state, use
9395 i386_debug_reg_state instead of DR_MIRROR.
9396 * linux-nat.c (delete_lwp): New declaration.
9397 (num_lwps): Move here from downwards.
9398 (delete_lwp_cleanup): New.
9399 (linux_child_follow_fork): Create new child_lp, call
9400 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9402 (num_lwps): Move upwards.
9403 (linux_nat_iterate_watchpoint_lwps): New.
9404 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9405 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9407 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9411 2012-01-23 Pedro Alves <palves@redhat.com>
9413 * top.c (caution): Rename to ...
9414 (confirm): ... this.
9415 (show_caution): Rename to ...
9416 (show_confirm): ... this.
9417 (quit_cover): Adjust.
9418 (init_main): Adjust.
9419 * top.h (caution): Rename to ...
9420 (confirm): ... this.
9421 * utils.c (internal_vproblem, defaulted_query): Adjust.
9423 2012-01-23 Pedro Alves <palves@redhat.com>
9425 * top.c (caution): Update comment.
9426 (execute_command): Don't consider the current value of `caution'.
9428 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9430 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9432 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9434 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9435 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9436 * target.c (target_fileio_pwrite): Remove buffer address from
9438 (target_fileio_pread): Likewise.
9440 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9442 * NEWS: Document remote "info proc" and "generate-core-file".
9444 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9446 * gdbarch.sh (find_memory_regions): New callback.
9447 * gdbarch.c, gdbarch.h: Regenerate.
9449 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9450 callback before falling back to target method.
9452 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9453 (linux_target_install_ops): No longer install it.
9455 * linux-tdep.c (linux_find_memory_regions): New function.
9456 (linux_init_abi): Install it.
9458 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9460 * gdbarch.sh (make_corefile_notes): New architecture callback.
9461 * gdbarch.c: Regenerate.
9462 * gdbarch.h: Likewise.
9464 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9465 before target_make_corefile_notes. If NULL is returned, the
9466 target does not support core file generation.
9468 * linux-nat.c: Include "linux-tdep.h".
9469 (find_signalled_thread, find_stop_signal): Remove.
9470 (linux_nat_do_thread_registers): Likewise.
9471 (struct linux_nat_corefile_thread_data): Likewise.
9472 (linux_nat_corefile_thread_callback): Likewise.
9473 (iterate_over_spus): Likewise.
9474 (struct linux_spu_corefile_data): Likewise.
9475 (linux_spu_corefile_callback): Likewise.
9476 (linux_spu_make_corefile_notes): Likewise.
9477 (linux_nat_collect_thread_registers): New function.
9478 (linux_nat_make_corefile_notes): Replace contents by call to
9479 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9480 as native-only callback.
9482 * linux-tdep.h: Include "bfd.h".
9483 (struct regcache): Add forward declaration.
9484 (linux_collect_thread_registers_ftype): New typedef.
9485 (linux_make_corefile_notes): Add prototype.
9486 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9487 "regset.h", and "elf-bfd.h".
9488 (find_signalled_thread, find_stop_signal): New functions.
9489 (linux_spu_make_corefile_notes): Likewise.
9490 (linux_collect_thread_registers): Likewise.
9491 (struct linux_corefile_thread_data): New data structure.
9492 (linux_corefile_thread_callback): New funcion.
9493 (linux_make_corefile_notes): Likewise.
9494 (linux_make_corefile_notes_1): Likewise.
9495 (linux_init_abi): Install it.
9497 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9499 * gdbarch.sh (info_proc): New callback.
9500 * gdbarch.c, gdbarch.h: Regenerate.
9502 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9503 before falling back to the target info_proc callback.
9505 * linux-nat.c: Do not include "cli/cli-utils.h".
9506 (linux_nat_info_proc): Remove.
9507 (linux_target_install_ops): No longer install it.
9509 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9510 (read_mapping): New function.
9511 (linux_info_proc): Likewise.
9512 (linux_init_abi): Install it.
9514 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9516 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9517 * infcmd.c: (info_proc_cmd_1): New function.
9518 (info_proc_cmd): New function, moved here from equivalent routine
9519 orignally in linux-nat.c.
9520 (info_proc_cmd_mappings): Likewise.
9521 (info_proc_cmd_stat): Likewise.
9522 (info_proc_cmd_status): Likewise.
9523 (info_proc_cmd_cwd): Likewise.
9524 (info_proc_cmd_cmdline): Likewise.
9525 (info_proc_cmd_exe): Likewise.
9526 (info_proc_cmd_all): Likewise.
9527 (_initialize_infcmd): Install "info proc" command and subcommands.
9529 * target.h (struct target_ops): Add to_info_proc.
9530 (target_info_proc): Add prototype.
9531 * target.c (target_info_proc): New function.
9533 * procfs.c (procfs_info_proc): Add prototype.
9534 (info_proc_cmd): Rename into ...
9535 (procfs_info_proc): ... this. Update argument types as appropriate
9536 for a to_info_proc implementation. Handle "what" argument.
9537 (procfs_target): Install procfs_info_proc.
9538 (_initialize_procfs): No longer install "info proc" command.
9540 * linux-nat.c: (enum info_proc_what): Remove.
9541 (linux_nat_info_proc_cmd_1): Rename into ...
9542 (linux_nat_info_proc): ... this. Update argument types as appropriate
9543 for a to_info_proc implementation.
9544 (linux_nat_info_proc_cmd): Remove.
9545 (linux_nat_info_proc_cmd_mappings): Likewise.
9546 (linux_nat_info_proc_cmd_stat): Likewise.
9547 (linux_nat_info_proc_cmd_status): Likewise.
9548 (linux_nat_info_proc_cmd_cwd): Likewise.
9549 (linux_nat_info_proc_cmd_cmdline): Likewise.
9550 (linux_nat_info_proc_cmd_exe): Likewise.
9551 (linux_nat_info_proc_cmd_all): Likewise.
9552 (linux_target_install_ops): Install linux_nat_info_proc.
9553 (_initialize_linux_nat): No longer install "info proc" command
9556 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9558 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9559 * config.in, configure: Regenerate.
9561 * target.h (struct target_ops): Add to_fileio_readlink.
9562 (target_fileio_readlink): Add prototype.
9563 * target.c (target_fileio_readlink): New function.
9565 * inf-child.c: Conditionally include <sys/param.h>.
9566 (inf_child_fileio_readlink): New function.
9567 (inf_child_target): Install it.
9569 * remote.c (PACKET_vFile_readlink): New enum value.
9570 (remote_hostio_readlink): New function.
9571 (init_remote_ops): Install it.
9572 (_initialize_remote): Handle vFile:readlink packet type.
9574 2012-01-20 Pedro Alves <palves@redhat.com>
9575 Ulrich Weigand <ulrich.weigand@linaro.org>
9577 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9578 * config.in, configure: Regenerate.
9580 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9581 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9582 (target_fileio_open): Add prototype.
9583 (target_fileio_pwrite): Likewise.
9584 (target_fileio_pread): Likewise.
9585 (target_fileio_close): Likewise.
9586 (target_fileio_unlink): Likewise.
9587 (target_fileio_read_alloc): Likewise.
9588 (target_fileio_read_stralloc): Likewise.
9590 * target.c: Include "gdb/fileio.h".
9591 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9592 (default_fileio_target): New function.
9593 (target_fileio_open): Likewise.
9594 (target_fileio_pwrite): Likewise.
9595 (target_fileio_pread): Likewise.
9596 (target_fileio_close): Likewise.
9597 (target_fileio_unlink): Likewise.
9598 (target_fileio_close_cleanup): Likewise.
9599 (target_fileio_read_alloc_1): Likewise.
9600 (target_fileio_read_alloc): Likewise.
9601 (target_fileio_read_stralloc): Likewise.
9603 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9604 <fcntl.h>, and <unistd.h>.
9605 (inf_child_fileio_open_flags_to_host): New function.
9606 (inf_child_errno_to_fileio_error): Likewise.
9607 (inf_child_fileio_open): Likewise.
9608 (inf_child_fileio_pwrite): Likewise.
9609 (inf_child_fileio_pread): Likewise.
9610 (inf_child_fileio_close): Likewise.
9611 (inf_child_fileio_unlink): Likewise.
9612 (inf_child_target): Install to_fileio routines.
9614 * remote.c (init_remote_ops): Install to_fileio routines.
9616 2012-01-20 Pedro Alves <palves@redhat.com>
9617 Ulrich Weigand <ulrich.weigand@linaro.org>
9619 * remote.c (remote_multi_process_p): Only check for multi-process
9620 protocol feature, do not check for extended protocol.
9621 (remote_supports_multi_process): Check for extended protocol here.
9622 (set_general_process): Likewise.
9623 (extended_remote_kill): Likewise.
9624 (remote_pid_to_str): Likewise.
9625 (remote_query_supported): Always query multiprocess mode.
9627 2012-01-20 Pedro Alves <palves@redhat.com>
9628 Ulrich Weigand <ulrich.weigand@linaro.org>
9630 * inferior.h (struct inferior): Add fake_pid_p.
9631 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9632 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9633 magic_null_ptid since the remote side doesn't provide a real PID.
9635 2012-01-19 Tom Tromey <tromey@redhat.com>
9637 * NEWS: Combine the two Python sections.
9639 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9641 * target.h (target_close): Update comment on the target's unpush state.
9643 2012-01-19 Pedro Alves <palves@redhat.com>
9645 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9646 linux_nat_async directly instead of going through the target
9648 * target.c (unpush_target): Close target after unpushing it, not
9651 2012-01-19 Gary Benson <gbenson@redhat.com>
9653 * mdebugread.c (sort_blocks): Replace integer constants with ones
9654 derived from FIRST_LOCAL_BLOCK.
9656 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9657 Jan Kratochvil <jan.kratochvil@redhat.com>
9660 * symfile.c (find_separate_debug_file): New function.
9661 (terminate_after_last_dir_separator): Likewise.
9662 (find_separate_debug_file_by_debuglink): Also try realpath.
9663 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9664 * configure: Regenerate.
9665 * config.in: Regenerate.
9667 2012-01-18 Doug Evans <dje@google.com>
9669 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9670 (main.o): Remove rule.
9671 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9672 (--with-sysroot): Rewrite.
9673 * configure: Regenerate.
9674 * config.in: Regenerate.
9676 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9678 * parse.c (initialize_expout): New function.
9679 (reallocate_expout): Likewise.
9680 (parse_exp_in_context): Use `initialize_expout' and
9681 `reallocate_expout' when appropriate.
9683 2012-01-18 Pedro Alves <palves@redhat.com>
9685 * record.c (struct record_breakpoint, record_breakpoint_p)
9686 (record_breakpoints): New.
9687 (record_insert_breakpoint, record_remove_breakpoint): Manage
9688 record breakpoints list. Only remove breakpoints from the
9689 inferior if they had been inserted there in the first place.
9691 2012-01-17 Doug Evans <dje@google.com>
9693 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9694 if we know we don't have a file name to look for.
9696 2012-01-17 Pedro Alves <palves@redhat.com>
9698 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9699 the frame's stop reason is UNWIND_UNAVAILABLE.
9701 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9703 Fix compilation error.
9704 * m2-exp.y (yyerror): Use ANSI C prototype.
9706 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9708 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9709 (growbuf_by_size): Likewise.
9710 (yyerror): Likewise.
9711 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9712 (modblock): Remove variable (was #if 0'ed).
9713 (parse_number): Convert prototype from K&R to ANSI C.
9714 (yyerror): Likewise.
9715 * objc-exp.y (parse_number): Likewise.
9716 (yyerror): Likewise.
9717 (yylex): Remove #if 0'ed code.
9718 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9719 (yyerror): Likewise.
9721 2012-01-16 Tom Tromey <tromey@redhat.com>
9724 * symtab.h (compare_filenames_for_search): Declare.
9725 * symtab.c (compare_filenames_for_search): New function.
9726 (iterate_over_some_symtabs): Use it.
9727 * symfile.h (struct quick_symbol_functions)
9728 <map_symtabs_matching_filename>: Change spec.
9729 * psymtab.c (partial_map_symtabs_matching_filename): Use
9730 compare_filenames_for_search. Update for new spec.
9731 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9732 compare_filenames_for_search. Update for new spec.
9733 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9735 2012-01-16 Tom Tromey <tromey@redhat.com>
9738 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9739 (struct main_type) <flag_flag_enum>: New field.
9740 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9741 * NEWS: Add entries.
9742 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9744 * python/lib/gdb/printing.py (_EnumInstance): New class.
9745 (FlagEnumerationPrinter): Likewise.
9747 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9749 * breakpoint.c (create_sals_from_address_default): New function.
9750 (create_breakpoints_sal_default): Likewise.
9751 (decode_linespec_default): Likewise.
9752 (is_marker_spec): Removed.
9753 (strace_marker_p): New function.
9754 (init_breakpoint_sal): Using `strace_marker_p' instead of
9756 (create_breakpoint): Call method `create_sals_from_address' from
9757 breakpoint_ops, replacing code that created SALs conditionally
9758 on the type of the breakpoint. Call method `create_breakpoints_sal',
9759 replacing code that created breakpoints conditionally on the type
9761 (base_breakpoint_create_sals_from_address): New function.
9762 (base_breakpoint_create_breakpoints_sal): Likewise.
9763 (base_breakpoint_decode_linespec): Likewise.
9764 (base_breakpoint_ops): Add methods
9765 `base_breakpoint_create_sals_from_address',
9766 `base_breakpoint_create_breakpoints_sal' and
9767 `base_breakpoint_decode_linespec'.
9768 (bkpt_create_sals_from_address): New function.
9769 (bkpt_create_breakpoints_sal): Likewise.
9770 (bkpt_decode_linespec): Likewise.
9771 (tracepoint_create_sals_from_address): Likewise.
9772 (tracepoint_create_breakpoints_sal): Likewise.
9773 (tracepoint_decode_linespec): Likewise.
9774 (strace_marker_create_sals_from_address): Likewise.
9775 (strace_marker_create_breakpoints_sal): Likewise.
9776 (strace_marker_decode_linespec): Likewise.
9777 (strace_marker_breakpoint_ops): New variable.
9778 (addr_string_to_sals): Remove `marker_spec'. Call method
9779 `decode_linespec' from breakpoint_ops, replacing code that decoded
9780 an address string into a SAL. Use `strace_marker_p' instead of
9782 (strace_command): Decide whether we are dealing with a static
9783 tracepoint with marker or not. Use the appropriate breakpoint_ops.
9784 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
9785 * breakpoint.h (linespec_result, linespec_sals): New forward
9787 (breakpoint_ops) <create_sals_from_address>,
9788 <create_breakpoints_sal>, <decode_linespec>: New methods.
9790 2012-01-14 Doug Evans <dje@google.com>
9792 * NEWS: Update text for "maint set python print-stack".
9793 It is deprecated in gdb 7.4 and deleted in 7.5.
9795 2012-01-13 Eli Zaretskii <eliz@gnu.org>
9797 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
9800 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9802 * configure: Regenerate.
9803 * config.in: Regenerate.
9805 2012-01-12 Keith Seitz <keiths@redhat.com>
9808 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
9809 (ANONYMOUS_UNION_NAME): Define.
9810 (is_path_expr_parent): New function.
9811 (get_path_expr_parent): New function.
9812 (is_anonymous_child): New function.
9813 (create_child_with_value): If the child is anonymous and without
9814 a name, assign an object name to it.
9815 (c_describe_child): Use get_path_expr_parent to determine
9816 the parent expression.
9817 If there field represents an anonymous struct or union and
9818 has no name, set an appropriate display name and expression.
9819 (cplus_describe_child): Likewise.
9821 2012-01-12 Pedro Alves <palves@redhat.com>
9823 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
9824 available when %ebp is found to be zero (outermost).
9826 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
9828 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
9829 an internal gdb_static_assert.
9830 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
9832 2012-01-11 Tom Tromey <tromey@redhat.com>
9835 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
9836 catch" and "catch throw".
9838 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
9840 * blockframe.c (block_innermost_frame): Start search from selected
9841 frame, if present, or otherwise the current frame.
9843 * c-exp.y (variable): Update innermost_block for
9844 'block COLONCOLON NAME' clause.
9845 * m2-exp.y (variable): Ditto.
9846 * objc-exp.y (variable): Ditto.
9848 2012-01-10 Tom Tromey <tromey@redhat.com>
9851 * python/python.c (finish_python_initialization): Set sys.argv.
9853 2012-01-10 Doug Evans <dje@google.com>
9855 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
9856 "want_line_info". All callers updated.
9857 (dwarf_decode_lines_1): New function.
9858 (handle_DW_AT_stmt_list): Add function comment.
9859 New arg "want_line_info". All callers updated.
9860 (read_file_scope,read_type_unit_scope): Move comment from
9861 handle_DW_AT_stmt_list to here.
9863 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9865 Fix regression after libiberty/ update for GCC PR 6057 and others.
9866 * c-exp.y (operator) <OPERATOR DELETE>
9867 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9868 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
9869 (make_builtin_type, make_name): New variable i, add gdb_assert.
9870 (operator) <OPERATOR NEW>: Update ARGS to 3.
9871 (operator) <OPERATOR DELETE>: Add trailing space.
9872 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
9873 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9874 * cp-support.c (cp_canonicalize_string): Check NULL from
9875 cp_comp_to_string, call warning and return.
9877 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9879 Fix duplicate .o files after omitting libbfd.a.
9880 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
9881 (SFILES): Add corelow.c.
9882 (COMMON_OBS): Add corelow.o.
9883 (ALLDEPFILES): Remove corelow.c.
9884 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
9885 * config/alpha/alpha-osf3.mh: Likewise.
9886 * config/alpha/fbsd.mh: Likewise.
9887 * config/arm/nbsdaout.mh: Likewise.
9888 * config/arm/nbsdelf.mh: Likewise.
9889 * config/i386/i386gnu.mh: Likewise.
9890 * config/ia64/hpux.mh: Likewise.
9891 * config/ia64/linux.mh: Likewise.
9892 * config/m32r/linux.mh: Likewise.
9893 * config/m68k/linux.mh: Likewise.
9894 * config/mips/irix5.mh: Likewise.
9895 * config/mips/irix6.mh: Likewise.
9896 * config/pa/hpux.mh: Likewise.
9897 * config/pa/linux.mh: Likewise.
9898 * config/powerpc/aix.mh: Likewise.
9899 * config/sparc/linux.mh: Likewise.
9900 * config/sparc/linux64.mh: Likewise.
9901 * config/sparc/sol2.mh: Likewise.
9902 * config/vax/vax.mh: Likewise.
9903 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
9904 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
9905 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
9906 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
9907 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
9908 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
9909 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
9910 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
9911 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
9912 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
9913 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
9914 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
9915 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9916 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
9917 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
9918 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9919 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
9920 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
9921 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
9922 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
9923 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
9924 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
9925 corelow.o from gdb_target_obs.
9926 * corefile.c (core_target): Update the comment on NULL value.
9927 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
9928 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
9929 MATCHES. Drop YUMMY set on NULL.
9930 (core_close): Do not call exit_inferior_silent on zero PID. Do not
9931 reclaim CORE_DATA if it is already NULL.
9933 2012-01-09 Doug Evans <dje@google.com>
9935 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
9936 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
9938 2012-01-09 Keith Seitz <keiths@redhat.com>
9940 * breakpoint.c (wrapper.h): Don't include.
9942 2012-01-09 Keith Seitz <keiths@redhat.com>
9944 * Makefile.in (SFILES): Remove wrapper.c.
9945 (HFILES_NO_SRCDIR): Remove wrapper.h.
9946 (COMMON_OBS): Remove wrapper.o.
9947 * cli/cli-interp.c: Don't inlude wrapper.h.
9948 * corelow.c: Likewise.
9949 (core_open): Replace gdb_target_find_new_threads with
9950 TRY_CATCH around target_find_new_threads.
9951 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
9952 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
9953 * varobj.c (varobj_create): Likewise for parse_exp_1 and
9954 evaluate_expression.
9955 (varobj_set_value): Likewise for evaluate_expression and
9957 (install_new_variable): Likewise for value_fetch_lazy.
9958 (adjust_value_for_child_access): Likewise for value_ind.
9959 (c_describe_child): Likewise for value_subscript and
9961 (c_value_of_root): Likewise for evaluate_expression.
9962 * wrapper.c: Remove.
9963 * wrapper.h: Remove.
9965 2012-01-09 Doug Evans <dje@google.com>
9967 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
9968 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
9969 "abfd" args with "section". All callers updated.
9970 Error checking code moved ...
9971 (error_check_comp_unit_head): ... here. New function.
9972 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
9973 Delete arg "abfd". New arg "type_offset". All callers updated.
9974 (create_debug_types_hash_table): Simplify by using
9975 read_and_check_type_unit_head.
9977 * parser-defs.h (namecopy): Delete.
9978 * parse.c (namecopy, namecopy_size): Move into copy_name.
9980 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9982 Partially fix duplicate .o files after omitting libbfd.a.
9983 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
9984 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9985 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
9986 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9987 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
9988 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
9989 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9991 2012-01-09 Pedro Alves <palves@redhat.com>
9993 * MAINTAINERS: Update my email address.
9995 2012-01-08 Doug Evans <dje@google.com>
9997 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
9998 n_type_units. Rename type_comp_units to all_type_units.
10000 (add_signatured_type_cu_to_table): Renamed from
10001 add_signatured_type_cu_to_list. All callers updated.
10003 * gdbtypes.h (struct cplus_struct_type): Delete member
10004 nfn_fields_total. All uses removed.
10006 2012-01-06 Doug Evans <dje@google.com>
10008 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10010 (dwarf2_find_comp_unit): Delete.
10011 (process_psymtab_comp_unit): Make result "void".
10012 Delete args buffer, info_ptr, buffer_size, and replace with
10013 "section". All callers updated.
10014 (dwarf2_build_psymtabs_hard): Simplify.
10016 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10017 Thiago Jung Bauermann <bauerman@br.ibm.com>
10019 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10020 before `struct gdb_exception'.
10021 * breakpoint.c (update_global_location_list_nothrow)
10022 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10023 * cp-abi.c (value_rtti_type): Likewise.
10024 * cp-support.c (cp_validate_operator): Likewise.
10025 * infrun.c (insert_exception_resume_breakpoint)
10026 (check_exception_resume, keep_going): Likewise.
10027 * mi-interp.c (mi_breakpoint_created)
10028 (mi_breakpoint_modified): Likewise.
10029 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10030 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10031 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10033 2012-01-05 Doug Evans <dje@google.com>
10035 * dwarf2read.c (statement_prologue): Delete, unused.
10037 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10038 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10040 * dwarf2read.c (comp_unit_header): Delete, unused.
10042 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10044 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10045 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10047 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10049 * infrun.c (normal_stop): Don't skip calling the normal_stop
10050 observers if the thread was doing a multi-step, but stopped for
10051 some reason other than stepping.
10053 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10055 * cli/cli-decode.h: Add comments.
10056 (CMD_LIST_AMBIGUOUS): Moved to command.h
10057 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10058 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10059 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10060 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10061 (add_com, add_com_alias, add_info, add_info_alias)
10062 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10064 * command.h: Add and adjust comments.
10065 (CMD_LIST_AMBIGUOUS): Moved here.
10066 (help_cmd, help_cmd_list): Delete declarations.
10068 2012-01-04 Doug Evans <dje@google.com>
10070 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10071 All callers updated.
10072 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10073 Replace all arguments with "per_cu". All callers updated.
10075 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10077 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10078 New arg "per_cu". All callers updated.
10080 Delete #if 0'd out code.
10081 * language.c (binop_result_type): Delete.
10082 (simple_type, ordered_type, same_type, integral_type): Delete.
10083 (numeric_type, character_type, string_type, boolean_type): Delete.
10084 (float_type, structured_type): Delete.
10085 * language.h: Update.
10087 2012-01-04 Tom Tromey <tromey@redhat.com>
10089 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10091 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10093 * corefile.c (close_exec_file): Delete.
10094 (reopen_exec_file): Remove commented out code that seems related
10095 to close_exec_file, which is being deleted here.
10096 * inferior.h (close_exec_file): Delete.
10097 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10099 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10101 * ada-lang.c: #include "cli/cli-utils.h".
10102 (get_selections): Use skip_spaces.
10103 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10104 (catch_ada_exception_command_split): Use skip_spaces.
10105 (ada_decode_assert_location): Likewise.
10107 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10109 * linespec.c (decode_line_internal): Check for C++ or Java
10110 compound constructs only if the current language is C, C++
10113 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10116 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10117 Joel Brobecker <brobecker@adacore.com>
10118 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10119 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10121 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10122 fall through into AT_ENTRY_POINT.
10123 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10124 DUMMY_ADDR with it.
10125 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10126 PPC_INSN_SIZE skip to 3 times.
10128 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10130 * linespec.c (add_minsym): Preserve function descriptors.
10132 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10134 * breakpoint.c (all_locations_are_pending): Consider locations
10135 in program spaces executing during startup pending as well.
10137 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10139 Copyright year update in most files of the GDB Project.
10141 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10143 * copyright.sh: Delete.
10144 * copyright.py: Rewrite.
10146 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10148 * gnulib/extra/update-copyright: New file, imported from gnulib.
10150 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10152 * README (Copyright and License Notices): New section.
10154 2012-01-03 Tom Tromey <tromey@redhat.com>
10157 * python/py-value.c (valpy_dereference, valpy_get_address
10158 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10159 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10160 (valpy_absolute, valpy_richcompare): Free intermediate values.
10162 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10164 * ada-lang.c: Reformat the copyright notice.
10166 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10168 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10169 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10170 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10171 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10172 Revert this part of:
10173 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10174 Build gdb directly from *.o files not using libgdb.a.
10175 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10177 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10179 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10180 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10181 Reformat the copyright header.
10183 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10185 Revert this part of:
10186 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10187 Remove the gdbtui binary.
10188 * gdb.c (main): Remove args.interpreter_p initialization.
10189 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10190 * main.h (struct captured_main_args): Remove interpreter_p.
10192 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10194 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10196 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10198 * top.c (print_gdb_version): Update copyright year.
10200 2012-01-02 Yao Qi <yao@codesourcery.com>
10202 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10204 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10205 Joel Brobecker <brobecker@adacore.com>
10207 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10208 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10210 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10211 fall through into AT_ENTRY_POINT.
10212 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10213 DUMMY_ADDR with it.
10214 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10215 PPC_INSN_SIZE skip to 3 times.
10217 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10219 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10221 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10223 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10225 Build gdb directly from *.o files not using libgdb.a.
10226 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10227 (COMMON_OBS): Remove solib-target.o.
10228 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10229 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10230 (LIBGDB_OBS, libgdb.a): Move it above.
10231 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10232 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10233 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10234 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10235 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10236 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10237 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10238 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10239 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10240 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10241 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10242 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10243 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10244 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10245 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10246 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10247 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10248 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10249 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10250 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10251 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10252 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10253 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10254 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10255 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10256 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10257 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10259 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10261 Remove the gdbtui binary.
10262 * .gitignore (/gdbtui): Remove.
10263 * Makefile.in (TUI): Remove.
10264 (SUBDIR_TUI_OBS): Remove tui-main.o.
10265 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10266 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10267 (tui-main.o): Remove.
10268 (all_object_files): Remove tui-main.o.
10269 * NEWS: New note for the gdbtui removal.
10270 * configure: Rebuilt.
10271 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10272 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10273 CONFIG_UNINSTALL respectively.
10274 * gdb.c (main): Remove args.interpreter_p initialization.
10275 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10276 * main.h (struct captured_main_args): Remove interpreter_p.
10277 * tui/tui-main.c: Remove.
10279 2012-01-01 Doug Evans <dje@google.com>
10281 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10282 (dwarf2_physname, read_import_statement): Ditto.
10283 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10284 (process_structure_scope read_subroutine_type): Ditto.
10285 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10286 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10287 (dwarf2_fetch_die_location_block): Ditto.
10288 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10290 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10291 All callers updated.
10292 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10293 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10294 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10296 * dwarf2read.c (load_cu): Move assert to more useful location.
10298 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10299 All callers updated.
10301 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10302 (dwarf2_elf_names): Minor reformat.
10303 (dwarf2_per_cu_data): Tweak comment.
10304 (dwarf2_read_section): Fix comment.
10305 (create_all_comp_units): Fix comment.
10306 (load_full_comp_unit): Fix comment.
10307 (process_full_comp_unit): Fix comment.
10308 (read_signatured_type): Fix comment.
10310 For older changes see ChangeLog-2011.
10316 version-control: never