1 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
3 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
5 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
8 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
9 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
10 Extend code also for PaX support. Convert all gdb_assert to warning
13 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
15 Implement auto-load user conveniences suggested by Doug Evans.
16 * auto-load.c: Include top.h.
17 (file_is_auto_load_safe): New variable advice_printed. Print advice.
18 (_initialize_auto_load): New variable scripts_directory_help. Mention
19 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
20 scripts-directory. Document in online help one can use also files for
21 set auto-load safe-path.
22 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
23 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
25 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
27 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
30 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
32 * m2-valprint.c (m2_print_array_contents): Eliminate variable
33 ELTLEN and use TYPE_LENGTH directly.
34 (m2_val_print): Likewise.
35 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
36 variable LEN and use TYPE_LENGTH directly.
37 (m68k_svr4_store_return_value): Likewise.
38 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
39 ARGLEN and use TYPE_LENGTH directly.
40 (mips_o64_push_dummy_call): Likewise.
41 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
42 variable LENGTH and use TYPE_LENGTH directly.
43 (s390_function_arg_float): Likewise.
44 (s390_function_arg_integer): Likewise.
45 (s390_push_dummy_call): Likewise.
46 (s390_return_value_convention): Likewise.
47 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
50 2012-09-17 Yao Qi <yao@codesourcery.com>
52 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
53 Update comment to add_setshow_integer_cmd.
54 * cli/cli-setshow.c (do_set_command): Handle case
55 'var_zuinteger_unlimited'.
56 (do_show_command): Likewise.
57 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
58 for command 'remotetimeout'.
59 * command.h (enum var_types): New zuinteger_unlimited. Update comment
61 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
62 for command 'set listsize'.
64 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
66 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
69 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
72 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
73 (frame_pop): Drop also TAILCALL_FRAME frames.
74 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
76 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
77 Pedro Alves <palves@redhat.com>
80 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
81 function start if we are already at function start. Both for
82 reverse-next and for reverse-step into function without line number
85 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
87 Code cleanup - rename 'inline' depth to 'artificial' depth.
88 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
89 frame_id_artificial_p, extend the comment.
90 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
91 * frame.c (fprint_frame_id): Rename at a user, change debug output
92 text to "artificial=".
93 (skip_inlined_frames): Rename to ...
94 (skip_artificial_frames): ... here. Extend the comment.
95 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
96 (frame_id_inlined_p): Rename to ...
97 (frame_id_artificial_p): ... here. Rename at a user.
98 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
99 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
101 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
103 (frame_id_inlined_p): Rename to ...
104 (frame_id_artificial_p): ... here.
105 * inline-frame.c (inline_frame_this_id): Rename at a user.
107 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
109 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
110 vector variables using vector_size syntax rather than array
113 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
115 * valarith.c (value_concat): Replace unsafe ALLOCA with
118 2012-09-14 Pedro Alves <palves@redhat.com>
120 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
122 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
124 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
125 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
126 data-directory as appropriate.
128 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
130 * printcmd.c (ui_printf): Eliminate single-use variable
133 2012-09-14 Yao Qi <yao@codesourcery.com>
134 Pedro Alves <palves@redhat.com>
136 * valops.c (value_assign): Move observer_notify_target_changed
137 below to replace reinit_frame_cache.
139 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
141 Refactor Python "gdb" module into a proper Python package, by
142 introducing a new "_gdb" module for code implemented in C, and
143 using reload/__import__ instead of exec.
144 * python/lib/gdb/__init__.py: Import * from _gdb.
145 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
146 prompt_hook, sys.argv): Moved from finish_python_initialization.
147 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
148 (packages, auto_load_packages): New list and function replacing
149 module_dict and auto-loading code, using __file__ instead of
150 gdb.PYTHONDIR and reload/__import__ instead of exec.
151 (GdbSetPythonDirectory): Replacing function of the same name
152 from finish_python_initialization, using reload/__import__ instead
153 of exec, as well as call auto_load_packages.
154 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
155 gdb_python_module and not gdb_module.
156 * python/python-internal.h (gdb_python_module): Declare.
157 * python/python.c (gdb_python_module): New global.
158 (before_prompt_hook): Check gdb_python_module and not gdb_module.
159 (_initialize_python): Rename gdb module to _gdb.
160 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
161 (finish_python_initialization): Move Python code to
162 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
165 2012-09-13 Pedro Alves <palves@redhat.com>
167 * Makefile.in (COMMON_OBS): Add registry.o.
168 * registry.c: New file.
169 * registry.h (struct registry_container): Declare.
170 (registry_data_callback): New typedef.
171 (struct registry_data, struct registry_data_registration, struct
172 registry_data_registry): New type.
173 (register_data_with_cleanup, registry_alloc_data)
174 (registry_callback_adaptor, registry_clear_data)
175 (registry_container_free_data, registry_set_data, registry_data):
177 (DEFINE_REGISTRY): Refactor structures and functions as shims over
178 the new common structures and functions.
179 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
183 2012-09-12 Doug Evans <dje@google.com>
185 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
188 2012-09-11 Doug Evans <dje@google.com>
190 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
191 .gdb_index symbol attributes if there are none.
193 2012-09-11 Joel Brobecker <brobecker@adacore.com>
195 * symtab.h (struct minimal_symbol) [has_size]: New field.
196 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
197 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
198 * printcmd.c (build_address_symbolic): Only filter out zero-sized
199 minimal symbols if the symbol's size is actually known.
200 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
201 of msymbol's size field. Add comment.
202 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
203 SET_MSYMBOL_SIZE to set the minimal symbol size.
205 2012-09-11 Joel Brobecker <brobecker@adacore.com>
207 * minsyms.c (install_minimal_symbols): Use memset to fill entire
208 minimal_symbol struct object, rather than setting some of its
211 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
213 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
214 passed_a_ptr flag when displaying typedef types.
216 2012-09-10 Joel Brobecker <brobecker@adacore.com>
218 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
219 the optimized_out flag is preserved.
221 2012-09-10 Anthony Green <green@moxielogic.com>
223 * moxie-tdep.c (moxie_analyze_prologue): Update for function
224 prologue changes in GCC.
226 2012-09-10 Keith Seitz <keiths@redhat.com>
229 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
230 (BOOL_CONVERSION_BADNESS): ... this.
231 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
232 (rank_one_type): Allow all boolean conversions
233 permitted by the standard.
235 2012-09-06 Tom Tromey <tromey@redhat.com>
237 * python/py-newobjfileevent.c (create_new_objfile_event_object):
238 Don't decref py_objfile.
240 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
242 Do not enable -lmcheck by default when Python is enabled with
244 * configure.ac: (python_has_threads) New variable, by testing
245 if WITH_THREAD is defined in Python.h.
246 Move --enable-lmcheck after --with-python.
247 Do not enable -lmcheck by default if python_has_threads=yes.
248 Warn if --enable-lmcheck and python_has_threads=yes.
249 * configure: Regenerate.
251 2012-08-31 Yao Qi <yao@codesourcery.com>
253 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
254 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
255 Update some commands.
256 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
257 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
260 2012-08-31 Yao Qi <yao@codesourcery.com>
262 * mi/mi-cmds.c (mi_cmds): Add 'static'.
264 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
266 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
268 2012-08-29 Doug Evans <dje@google.com>
270 * main.c (print_gdb_help): Remove reference to
271 --use-deprecated-index-sections.
273 2012-08-28 Yao Qi <yao@codesourcery.com>
275 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
276 (init_cmds): Call add_setshow_uinteger_cmd for command
277 'max-user-call-depth'.
278 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
279 declaration of 'max_user_call_depth'.
280 * frame.c (backtrace_limit): Add 'unsigned'.
281 (_initialize_frame): Call add_setshow_uinteger_cmd for command
283 * remote.c (remoteaddresssize): Add 'unsigned'.
284 (remote_address_masked): Change local var 'address_size' to
286 (_initialize_remote): Call add_setshow_uinteger_cmd for
288 * top.c (history_size): Add 'unsigned'.
289 (show_commands): Change local variables to 'unsigned'.
290 (set_history_size_command): Don't check history_size is negative.
291 Adjust the condition to call unstifle_history and set history_size
294 2012-08-28 Pedro Alves <palves@redhat.com>
298 * infcmd.c (default_print_one_register_info): New, factored out
299 from default_print_registers_info.
300 (default_print_registers_info): Use it. Mark value unavailable if
302 (registers_info): Print user registers with
303 default_print_one_register_info.
305 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
308 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
309 is not NULL before referencing it.
311 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
313 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
314 variable pc. Call find_pc_line instead of find_pc_overlay, restore
317 2012-08-27 Eli Zaretskii <eliz@gnu.org>
318 Jan Kratochvil <jan.kratochvil@redhat.com>
320 * auto-load.c (auto_load_objfile_script): Rename to ...
321 (auto_load_objfile_script_1): ... here, change variable realname to
322 parameter realname, document it, add return value, add variable retval.
323 (auto_load_objfile_script): New function.
325 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
327 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
328 followed by a whitespace.
330 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
333 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
334 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
335 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
338 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
340 * memattr.c (create_mem_region): Fix memory region overlapping
343 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
345 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
346 with xmalloc/cleanup.
347 * mt-tdep.c (mt_push_dummy_call): Likewise.
348 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
349 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
351 2012-08-24 Yao Qi <yao@codesourcery.com>
353 * jv-exp.y (push_expression_name): Add "." at the end of error
356 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
358 Document how to return from "python-interactive" to GDB.
359 * python/python.c (_initialize_python): Update documentation.
361 2012-08-23 Pedro Alves <palves@redhat.com>
363 * infrun.c (_initialize_infrun) <handle command help text>:
364 Mention that multiple signals are supported.
366 2012-08-23 Pedro Alves <palves@redhat.com>
368 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
371 2012-08-23 Yao Qi <yao@codesourcery.com>
373 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
374 (tfind_1): Don't call registers_changed, set_traceframe_num,
375 and clear_traceframe_info.
376 Call set_current_traceframe.
377 (set_current_traceframe): call set_traceframe_num.
379 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
381 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
382 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
384 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
386 Enable readline in Python in a GDB-specific way and block the
387 standard Python readline module to prevent conflicts with GDB.
388 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
389 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
390 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
391 * python/py-gdb-readline.c: New file.
392 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
394 * python/python.c (_initialize_python): Call
395 gdbpy_initialize_gdb_readline.
397 2012-08-22 Keith Seitz <keiths@redhat.com>
399 * defs.h: Include build-gnulib/config.h
401 2012-08-22 Joseph Myers <joseph@codesourcery.com>
403 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
406 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
408 Add a new "python-interactive" command that starts a standard
409 Python interactive prompt with "pi" as alias, and add "py" as
410 an alias to "python".
411 * NEWS: Mention the new commands.
412 * python/python.c (eval_python_command): New function.
413 (python_interactive_command): For "python-interactive" with
414 arguments, call eval_python_command. For "python-interactive"
415 without arguments, call PyRun_InteractiveLoop.
416 (_initialize_python): Add "python-interactive" command with
417 "pi" as alias, and add "py" as an alias to "python".
419 2012-08-22 Tom Tromey <tromey@redhat.com>
421 * defs.h (quit_flag): Don't declare.
422 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
423 (QUIT): Use new functions.
424 * event-top.c (command_handler): Use clear_quit_flag.
425 (handle_sigint): Use set_quit_flag.
426 (async_request_quit): Use check_quit_flag. Don't check
428 * exceptions.c (throw_exception): Use clear_quit_flag.
429 * main.c (captured_main): Use clear_quit_flag.
430 * python/python.c (clear_quit_flag, set_quit_flag)
431 (check_quit_flag): New functions.
432 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
434 * remote.c (remote_wait_as): Use check_quit_flag,
436 (remote_start_remote): Call QUIT.
437 * symfile.c (load_progress): Use check_quit_flag.
438 * top.c (command_loop): Use clear_quit_flag.
439 (command_line_input): Call QUIT.
440 * utils.c (quit_flag): Conditionally define.
441 (clear_quit_flag, check_quit_flag, set_quit_flag): New
443 (prompt_for_continue): Call QUIT. Use quit, not
445 * remote-mips.c (mips_expect_timeout): Call QUIT.
446 * monitor.c (monitor_expect): Call QUIT.
448 2012-08-22 Tom Tromey <tromey@redhat.com>
450 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
451 (async_init_signals): Update.
452 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
453 (SIGWINCH_HANDLER_BODY): Remove.
455 2012-08-22 Tom Tromey <tromey@redhat.com>
457 * jit.c (jit_object_close_impl): Don't malloc the objfile
459 * objfiles.c (allocate_objfile): Don't malloc the objfile
461 (free_objfile): Don't free the objfile name.
462 * objfiles.h (struct objfile) <name>: Update comment.
463 * symfile.c (reread_symbols): Fix reference counting. Don't
466 2012-08-22 Tom Tromey <tromey@redhat.com>
468 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
469 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
470 (symfile_bfd_open): Likewise.
471 (generic_load): Likewise.
472 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
473 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
475 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
477 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
478 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
479 (pmon_load_fast): Likewise.
480 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
481 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
482 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
483 (macho_check_dsym): Likewise.
484 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
485 (m32r_upload_command): Likewise.
486 * gdb_bfd.h (gdb_bfd_cache): Declare.
487 * gdb_bfd.c (struct gdb_bfd_data): New.
488 (gdb_bfd_cache): New global.
489 (struct gdb_bfd_cache_search): New.
490 (hash_bfd): New function.
492 (gdb_bfd_open): Likewise.
493 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
494 (gdb_bfd_unref): Remove closed BFD from cache. Update for
496 * exec.c (exec_file_attach): Use gdb_bfd_open.
497 * dsrec.c (load_srec): Use gdb_bfd_open.
499 2012-08-22 Tom Tromey <tromey@redhat.com>
501 * dwarf2read.c (macro_start_file): Update.
502 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
503 (free_objfile_per_bfd_storage): Destroy macro_cache.
504 (allocate_objfile, free_objfile): Update.
505 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
507 (struct objfile) <macro_cache>: Remove.
508 * symfile.c (reread_symbols): Update.
509 * symmisc.c (print_symbol_bcache_statistics): Update.
510 (print_objfile_statistics): Update.
512 2012-08-22 Tom Tromey <tromey@redhat.com>
514 * elfread.c (elf_symtab_read): Update.
515 * objfiles.c (objfiles_bfd_data): New global.
516 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
517 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
518 (allocate_objfile, free_objfile): Update.
519 (_initialize_objfiles): Initialize objfiles_bfd_data.
520 * objfiles.h (struct objfile_per_bfd_storage): New.
521 (struct objfile) <per_bfd>: New field.
522 <filename_cache>: Remove.
523 (set_objfile_per_bfd): Declare.
524 * symfile.c (reread_symbols): Update. Call
526 (allocate_symtab): Update.
527 * symmisc.c (print_symbol_bcache_statistics): Update.
528 (print_objfile_statistics): Print the size of the BFD obstack.
530 2012-08-22 Tom Tromey <tromey@redhat.com>
532 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
533 * gdb_bfd.c: Use DEFINE_REGISTRY.
534 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
535 (gdb_bfd_ref): Call bfd_alloc_data.
536 (gdb_bfd_unref): Call bfd_free_data.
538 2012-08-22 Tom Tromey <tromey@redhat.com>
540 * registry.h (struct registry_fields): New.
541 (REGISTRY_FIELDS): Redefine.
542 (REGISTRY_ACCESS_FIELD): New macro.
543 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
546 2012-08-22 Tom Tromey <tromey@redhat.com>
548 * auto-load.c (_initialize_auto_load): Update.
549 * solib-svr4.c (_initialize_svr4_solib): Update
550 * solib-dsbt.c (_initialize_dsbt_solib): Update.
551 * solib-darwin.c (_initialize_darwin_solib): Update.
552 * registry.h: New file.
553 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
554 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
555 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
556 (register_program_space_data_with_cleanup)
557 (register_program_space_data, program_space_alloc_data)
558 (clear_program_space_data, set_program_space_data)
559 (program_space_data): Don't declare.
560 * progspace.c: Use DEFINE_REGISTRY.
561 (struct program_space_data, struct
562 program_space_data_registration, struct
563 program_space_data_registry, program_space_data_registry)
564 (register_program_space_data_with_cleanup)
565 (register_program_space_data, program_space_alloc_data)
566 (program_space_free_data, clear_program_space_data)
567 (set_program_space_data, program_space_data): Remove.
568 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
569 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
570 (register_objfile_data_with_cleanup, register_objfile_data)
571 (clear_objfile_data, set_objfile_data, objfile_data): Don't
573 * objfiles.c: Use DEFINE_REGISTRY.
574 (struct objfile_data, struct objfile_data_registration, struct
575 objfile_data_registry, objfile_data_registry)
576 (register_objfile_data_with_cleanup, register_objfile_data)
577 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
578 (set_objfile_data, objfile_data): Remove.
579 (_initialize_objfiles): Update.
580 * jit.c (_initialize_jit): Update.
581 * inflow.c (_initialize_inflow): Update.
582 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
583 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
584 (register_inferior_data_with_cleanup, register_inferior_data)
585 (clear_inferior_data, set_inferior_data, inferior_data): Don't
587 * inferior.c: Use DEFINE_REGISTRY.
588 (struct inferior_data, struct inferior_data_registration, struct
589 inferior_data_registry, inferior_data_registry)
590 (register_inferior_data_with_cleanup, register_inferior_data)
591 (inferior_alloc_data, inferior_free_data clear_inferior_data)
592 (set_inferior_data, inferior_data): Remove.
593 * auxv.c (_initialize_auxv): Update.
594 * ada-lang.c (_initialize_ada_language): Update.
595 * breakpoint.c (_initialize_breakpoint): Update.
596 * i386-nat.c (i386_use_watchpoints): Update.
598 2012-08-22 Tom Tromey <tromey@redhat.com>
600 * exec.c (exec_close, exec_file_attach): Update.
601 (add_to_section_table): Initialize 'key' field.
602 (add_target_sections, remove_target_sections): Add 'key' argument.
603 * exec.h (add_target_sections, remove_target_sections): Add
605 * solib.c (solib_map_sections, update_solib_list, clear_solib)
606 (reload_shared_libraries_1): Update.
607 * target.h (struct target_section) <key>: New field.
609 2012-08-22 Tom Tromey <tromey@redhat.com>
611 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
613 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
615 * symfile.c (allocate_symtab): Use host_address_to_string
616 function instead of cast of pointer to long which is not
617 compatible with x86_64-w64-mingw32 build.
619 2012-08-19 Andrew Pinski <apinski@cavium.com>
621 * mips-tdep.c (is_octeon): New function.
622 (is_octeon_bbit_op): New function.
623 (mips32_next_pc): Handle Octeon's bbit instructions.
624 (mips32_instruction_has_delay_slot): Likewise.
626 2012-08-19 Andrew Pinski <apinski@cavium.com>
628 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
631 2012-08-19 Andrew Pinski <apinski@cavium.com>
633 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
635 2012-08-19 Keith Seitz <keiths@redhat.com>
638 * c-typeprint.c (c_type_print_varspec_prefix): Pass
639 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
641 2012-08-18 Eli Zaretskii <eliz@gnu.org>
643 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
644 The typo broke "make TAGS".
646 2012-08-17 Joel Brobecker <brobecker@adacore.com>
650 2012-08-17 Keith Seitz <keiths@redhat.com>
653 * gdbtypes.c (strict_type_checking): New variable.
654 (show_strict_type_checking): New function.
655 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
656 if strict type checking is disabled.
657 (_initialize_gdbtypes): Add "check type" subcommand.
658 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
660 2012-08-17 Keith Seitz <keiths@redhat.com>
662 * language.h (type_mode): Remove.
663 (type_check): Remove.
664 (struct language_defn): Remove la_type_check.
665 (STRICT_TYPE): Remove unused macro.
666 (type_error): Remove.
667 * language.c (set_type_range_case): Renamed to ...
668 (set_range_case): ... this. Update all callers.
669 Remove type_mode/type_check.
671 (type_check): Remove.
672 (show_type_command): Remove.
673 (set_type_command): Remove.
674 (language_info): Remove type checking output.
675 (type_error): Remove unused function.
676 (range_error): Update comment.
677 (unknown_language_defn): Remove la_type_check.
678 (auto_language_defn): Likewise.
679 (local_language_defn): Likewise.
680 (_initialize_language): Remove "check type" subcommand.
681 * ada-lang.c (ada_language_defn): Remove la_type_check.
682 * c-lang.c (c_language_defn): Likewise.
683 (cplus_language_defn): Likewise.
684 (asm_language_defn): Likewise.
685 (minimal_language_defn): Likewise.
686 * d-lang.c (d_language_defn): Likewise.
687 * f-lang.c (f_language_defn): Likewise.
688 * go-lang.c (go_language_defn): Likewise.
689 * jv-lang.c (java_language_defn): Likewise.
690 * m2-lang.c (m2_language_defn): Likewise.
691 * objc-lang.c (objc_language_defn): Likewise.
692 * opencl-lang.c (opencl_language_defn): Likewise.
693 * p-lang.c (pascal_language_defn): Likewise.
695 2012-08-16 Mike Frysinger <vapier@gentoo.org>
697 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
699 2012-08-16 Joel Brobecker <brobecker@adacore.com>
701 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
703 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
704 using the regache. Use ia64_hpux_get_register_from_save_state_t
705 to access the bsp and bspstore registers if not.
707 2012-08-16 Joel Brobecker <brobecker@adacore.com>
709 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
710 * breakpoint.c (detach_breakpoints): Change pid parameter into
711 a ptid. Adjust code accordingly.
712 * infrun.c (handle_inferior_event): Delete variable child_pid.
713 Update call to detach_breakpoints to pass the child ptid for
715 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
716 assert that inferior_ptid's lwp is zero.
717 (linux_handle_extended_wait): Update call to detach_breakpoints.
718 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
721 2012-08-16 Joel Brobecker <brobecker@adacore.com>
723 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
724 parent, only call detach_breakpoints if tts.tts_event ==
727 2012-08-16 Joel Brobecker <brobecker@adacore.com>
729 * dwarf2-frame.c (dwarf2_frame_cache): Use
730 get_frame_address_in_block instead of get_frame_pc as
731 the bound for executing the frame's FDE.
733 2012-08-16 Yao Qi <yao@codesourcery.com>
735 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
736 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
737 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
738 (c_type_print_varspec_suffix): Likewise.
739 * eval.c (evaluate_subexp_standard): Likewise.
740 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
741 (f_type_print_varspec_suffix): Likewise.
742 * gdbtypes.c (is_scalar_type): Likewise.
743 (recursive_dump_type): Likewise.
744 * infcall.c (value_arg_coerce): Likewise.
745 * m2-valprint.c (m2_val_print): Likewise.
746 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
747 (pascal_type_print_varspec_suffix): Likewise.
748 (pascal_type_print_base): Likewise.
749 * p-valprint.c (pascal_val_print): Likewise.
750 (pascal_val_print): Likewise.
751 * valops.c (value_slice): Likewise.
752 * valprint.c (scalar_type_p): Likewise.
753 * valarith.c (value_bitstring_subscript): Remove.
754 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
755 Remove comment on TYPE_CODE_BITSTRING.
757 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
760 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
763 2012-08-16 Yao Qi <yao@codesourcery.com>
765 * tracepoint.c (trace_find_none_command): Remove.
766 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
768 2012-08-16 Yao Qi <yao@codesourcery.com>
770 * remote.c (handle_notification): Remove parameter 'length'.
771 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
773 2012-08-15 Keith Seitz <keiths@redhat.com>
775 * gdbtypes.c (opaque_type_resolution): Make static.
777 (overload_debug): Add missing comment.
778 (show_opaque_type_resolution): Likewise.
779 (show_overload_debug): Likewise.
780 (print_bit_vector): Remove unnecessary forward declaration.
781 (print_arg_types): Likewise.
782 (dump_fn_fieldlists): Likewise.
783 (print_cplus_stuff): Likewise.
785 2012-08-15 Tom Tromey <tromey@redhat.com>
787 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
788 (gdb_bfd_ref): Initialize new field.
789 (gdb_bfd_unref): Unref the archive BFD.
790 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
793 2012-08-15 Tom Tromey <tromey@redhat.com>
796 * python/py-bpevent.c (create_breakpoint_event_object): Update
798 * python/py-event.c (evpy_add_attribute): Update comment.
799 * python/py-exitedevent.c (create_exited_event_object): Fix
800 reference counting and error handling.
801 * python/py-newobjfileevent.c (create_new_objfile_event_object):
802 Fix reference counting.
803 * python/py-signalevent.c (create_signal_event_object): Fix
804 reference counting and error handling.
805 * python/py-stopevent.c (emit_stop_event): Fix reference
807 * python/py-threadevent.c (get_event_thread): Return a
809 * python/py-type.c (convert_field): Fix reference counting.
811 2012-08-15 Tom Tromey <tromey@redhat.com>
813 * dwarf2read.c (dwarf_decode_macro_bytes)
814 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
817 2012-08-14 Mike Frysinger <vapier@gentoo.org>
819 * infcmd.c (_initialize_infcmd): Update help text for the signal,
820 stepi, nexti, finish, next, step, jump, and continue commands.
821 * infrun.c (_initialize_infrun): Update help text for the handle
824 2012-08-14 Doug Evans <dje@google.com>
826 * gdbtypes.c (struct extra): Delete, unused.
828 * gdbtypes.c: Whitespace cleanup.
829 (address_space_name_to_int): Remove "extern" from definition.
830 (_initialize_gdbtypes): Declare with initialize_file_ftype.
832 * gdbtypes.c (make_pointer_type): Remove redundant setting of
833 TYPE_POINTER_TYPE (type).
835 2012-08-14 Gary Benson <gbenson@redhat.com>
837 * solib-svr4.c (svr4_free_library_list): Use free_so.
839 2012-08-13 Mike Frysinger <vapier@gentoo.org>
841 * .gitignore: Add go-exp.c.
843 2012-08-13 Doug Evans <dje@google.com>
845 * value.c (show_convenience): Tweak comment.
846 (_initialize_values): Mention convenience functions in the help text
847 for "show convenience".
849 2012-08-13 Yao Qi <yao@codesourcery.com>
851 * std-operator.def: Remove TERNOP_SLICE_COUNT.
852 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
854 * eval.c (evaluate_subexp_standard): Likewise.
855 * expprint.c (print_subexp_standard): Likewise.
856 (dump_subexp_body_standard): Likewise.
857 * parse.c (operator_length_standard): Likewise.
859 2012-08-13 Yao Qi <yao@codesourcery.com>
861 * std-operator.def: Remove OP_BITSTRING.
862 * breakpoint.c (watchpoint_exp_is_const): Update.
863 * eval.c (evaluate_subexp_standard): Remove handling to
865 * expprint.c (print_subexp_standard): Likewise.
866 (dump_subexp_body_standard): Likewise.
867 * parse.c (operator_length_standard): Likewise.
868 * valops.c (value_bitstring): Remove.
869 * value.h: Remove the declaration of 'value_bitstring'.
871 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
873 * linespec.c (find_methods): Remove unused variables `i1' and
875 (decode_line_full): Likewise for `arg_start'.
877 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
879 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
880 (zlib_decompress_section): Likewise for `section_data'.
881 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
883 2012-08-10 Doug Evans <dje@google.com>
885 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
886 * NEWS: Document them.
887 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
889 * python/py-type.c (typy_array_1): New function.
890 (typy_array): Call it.
891 (typy_vector): New function.
892 (type_object_methods): Add "vector".
893 * python/lib/gdb/function/__init__.py: New file.
894 * python/lib/gdb/function/strfns.py: New file.
896 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
898 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
899 for TYPE_FIELD_BITPOS.
900 (typy_get_sizeof): Likewise for TYPE_LENGTH.
902 2012-08-10 Mike Frysinger <vapier@gentoo.org>
905 * common/vec.h (VEC_merge): Define.
906 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
907 (DEF_VEC_ALLOC_FUNC_P): Likewise.
908 (DEF_VEC_ALLOC_FUNC_O): Likewise.
909 * completer.c: Include gdb_signals.h.
910 (signal_completer): Define.
911 * completer.h (signal_completer): Add prototype.
912 * infcmd.c (_initialize_infcmd): Assign the command
913 completer for "signal" to handle_completer.
914 * infrun.c: Include completer.h.
915 (handle_completer): Define.
916 (_initialize_infrun): Declare a new local variable c. Store the
917 result of add_com("handle") to it. Assign the command
918 completer for "handle" to handle_completer.
920 2012-08-09 Yao Qi <yao@codesourcery.com>
922 * cli/cli-decode.c (set_cmd_prefix): New.
923 (lookup_cmd_for_prefixlist): New.
924 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
925 of each cmd_list_element in *prefixlist.
926 (add_setshow_cmd_full): set_cmd_prefix.
927 (add_alias_cmd): Likewise.
928 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
929 Declare 'auto_boolean_enums'.
930 * cli/cli-setshow.c: Include "observer.h".
931 (notify_command_param_changed_p): New.
932 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
934 (do_setshow_command): Split it to ...
935 (do_set_command, do_show_command): ... them. New.
936 (do_set_command): Call observer_notify_command_param_changed if
937 notify_command_param_changed_p returns true.
938 (cmd_show_list): Caller update.
939 * auto-load.c (set_auto_load_cmd): Likewise.
940 * remote.c (show_remote_cmd): Likewise.
941 * cli/cli-setshow.h: Update declarations.
942 * top.c (execute_command): Call do_set_command and do_show_command.
944 * NEWS: Mention new MI notification.
945 * mi/mi-interp.c: Declare mi_command_param_changed.
946 (mi_interpreter_init): Attach mi_command_param_changed to
947 observer command_param_changed.
948 (mi_command_param_changed): New.
949 Remove mi_suppress_breakpoint_notifications.
950 Define global variable mi_suppress_notification.
951 (mi_breakpoint_created): Update.
952 (mi_breakpoint_deleted): Likewise.
953 (mi_breakpoint_modified): Likewise.
954 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
955 'gdb-set' and set mi_suppress_notification.
956 * mi/mi-main.h: (mi_suppress_notification): New struct.
958 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
959 Jan Kratochvil <jan.kratochvil@redhat.com>
961 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
963 2012-08-09 Yao Qi <yao@codesourcery.com>
965 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
966 (skiplist): Move it to skip.c.
967 (init_cmd_lists): Remove code setting enablebreaklist and
969 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
970 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
972 * gdbcmd.h: Likewise.
973 * skip.c (_initialize_step_skip): Move 'skiplist' from
976 2012-08-09 Yao Qi <yao@codesourcery.com>
978 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
979 * gnu-nat.c, symfile.c: Likewise.
981 2012-08-08 Aaron Gamble <agamble@google.com>
983 * utils.c (prompt_for_continue_wait_time): New static global.
984 (make_command_stats_cleanup): Initialize it.
985 (report_command_stats): Subtract time waiting for user.
986 (prompt_for_continue): Track time waiting for user.
987 (defaulted_query): Track time waiting for user.
989 2012-08-08 Doug Evans <dje@google.com>
991 * eval.c (evaluate_subexp_standard): Fix thinko in handling
993 * expprint.c (print_subexp_standard, case OP_TYPE): New.
994 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
995 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
996 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
997 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
998 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1000 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1001 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1002 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1003 (dump_prefix_expression): Handle OP_TYPE.
1005 2012-08-08 Keith Seitz <keiths@redhat.com>
1007 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1010 2012-08-08 Doug Evans <dje@google.com>
1012 * linux-thread-db.c: #include "gdb_vecs.h".
1013 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1015 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1016 (thread_db_load_search): Use a vector to iterate over path elements.
1017 Handle text appearing after "$pdir".
1019 * gdb_string.h: Moved to ...
1020 * common/gdb_string.h: ... here.
1021 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1022 gdb_string.h and gdb_assert.h.
1024 2012-08-08 Yao Qi <yao@codesourcery.com>
1026 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1027 (tic6x_value_to_register): Likewise.
1028 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1029 and set_gdbarch_value_to_register.
1031 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1032 Jean-Marc Saffroy <saffroy@gmail.com>
1035 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1036 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1037 * gcore.c (gcore_create_callback): New function comment. Add modified
1038 parameter. Only write modified regions. Set SEC_READONLY exactly
1039 according to MODIFIED.
1040 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1041 the passed modified value to FUNC.
1042 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1043 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1044 first. New variables modified and has_anonymous. Parse the lines of
1045 smaps file. Add the passed MODIFIED value to FUNC.
1046 * procfs.c (find_memory_regions_callback): Add the passed modified
1049 2012-08-06 Tom Tromey <tromey@redhat.com>
1051 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1052 (dwarf2_frame_cache): Use it.
1053 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1054 cache initialization constraint.
1056 2012-08-06 Tom Tromey <tromey@redhat.com>
1059 * varobj.c (update_dynamic_varobj_children): Don't call
1062 2012-08-06 Tom Tromey <tromey@redhat.com>
1065 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1067 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1069 * NEWS: New entry for 'cd' default parameters.
1070 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1072 2012-08-03 Tom Tromey <tromey@redhat.com>
1074 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1077 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1079 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1080 to attempting lseek/write.
1081 (inf_child_fileio_pread): Likewise for pread.
1083 2012-08-02 Yao Qi <yao@codesourcery.com>
1085 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1086 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1087 add_setshow_zinteger_cmd.
1088 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1089 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1090 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1091 instead of add_setshow_zinteger_cmd.
1092 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1093 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1094 instead of add_setshow_zinteger_cmd.
1095 * frame.c (frame_debug): Add 'unsigned'.
1096 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1097 add_setshow_zinteger_cmd.
1098 * frame.h: Update the declaration of 'frame_debug'.
1099 * gdbtypes.c (overload_debug): Add 'unsigned'.
1100 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1101 add_setshow_zinteger_cmd.
1102 * inferior.h: Update declaration of 'debug_infrun'.
1103 * infrun.c (debug_infrun): Add 'unsigned'.
1104 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1105 add_setshow_zinteger_cmd.
1106 * jit.c (jit_debug): Add 'unsigned'.
1107 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1108 add_setshow_zinteger_cmd.
1109 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1110 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1111 instead of add_setshow_zinteger_cmd.
1112 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1113 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1114 add_setshow_zinteger_cmd.
1115 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1116 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1117 instead of add_setshow_zinteger_cmd.
1118 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1119 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1120 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1121 intead of add_setshow_zinteger_cmd.
1122 * mips-tdep.c (mips_debug): Add 'unsigned'.
1123 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1124 instead of add_setshow_zinteger_cmd.
1125 * monitor.c (monitor_debug): Add 'unsigned'.
1126 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1127 add_setshow_zinteger_cmd.
1128 * observer.c (observer_debug): Add 'unsigned'.
1129 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1130 add_setshow_zinteger_cmd.
1131 * parse.c (expressiondebug): Add 'unsigned'.
1132 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1133 add_setshow_zinteger_cmd.
1134 * record.c (record_debug): Add 'unsigned'.
1135 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1136 add_setshow_zinteger_cmd.
1137 * record.h: Update the declaration of 'record_debug'.
1138 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1139 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1140 add_setshow_zinteger_cmd.
1141 * serial.c (global_serial_debug_p): Add 'unsigned'.
1142 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1143 add_setshow_zinteger_cmd.
1144 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1145 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1146 add_setshow_zinteger_cmd.
1147 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1148 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1149 add_setshow_zinteger_cmd.
1150 * target.c (targetdebug): Add 'unsigned'.
1151 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1152 add_setshow_zinteger_cmd.
1153 * valops.c (overload_debug): Add 'unsigned'.
1154 * varobj.c (varobjdebug): Add 'unsigned'.
1155 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1156 add_setshow_zinteger_cmd.
1157 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1158 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1159 instead of add_setshow_zinteger_cmd.
1161 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1162 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1163 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1164 instead of add_setshow_zinteger_cmd.
1165 * gdbarch.c, gdbarch.h: Re-generated.
1167 2012-08-02 Yao Qi <yao@codesourcery.com>
1169 * nto-tdep.c: Don't include cli/cli-decode.h and
1171 (_initialize_nto_tdep): Remove.
1172 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1174 Remove macro nto_internal_debugging.
1176 2012-08-01 Richard Henderson <rth@redhat.com>
1178 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1179 (mep-*-*) [gdb_target_obs]: Likewise.
1181 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1183 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1184 linux_get_siginfo_type.
1186 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1188 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1190 (call_function_by_hand) <ON_STACK>: Call write_memory with
1191 gdbarch_breakpoint_from_pc, if possible.
1192 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1195 2012-07-31 Yao Qi <yao@codesourcery.com>
1197 * tracepoint.c: Add 'static' for some variables.
1199 2012-07-31 Yao Qi <yao@codesourcery.com>
1201 * go32-nat.c: Declare _initialize_go32_nat.
1202 * ser-go32.c: Declare _initialize_ser_dos.
1203 * top.c (do_chdir_cleanup): Add 'static'.
1205 2012-07-30 Keith Seitz <keiths@redhat.com>
1207 * linespec.c (linespec_lex_number): A number followed
1208 by quotes is a valid number, too.
1210 2012-07-30 Tom Tromey <tromey@redhat.com>
1212 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1214 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1216 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1217 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1219 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1221 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1222 invalid or reevaluated to prevent prevent references to possibly
1223 delete'd type objects being left in the varobj.
1225 2012-07-27 Tom Tromey <tromey@redhat.com>
1226 Jan Kratochvil <jan.kratochvil@redhat.com>
1228 * copying.awk: Print buffer-read-only and vi ro markers.
1229 * copying.c: Rebuild.
1230 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1231 * gdbarch.c, gdbarch.h: Rebuild.
1232 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1233 buffer-read-only and vi ro markers.
1234 * features/arm-with-iwmmxt.c: Rebuild.
1235 * features/arm-with-m-fpa-layout.c: Rebuild.
1236 * features/arm-with-m-vfp-d16.c: Rebuild.
1237 * features/arm-with-m.c: Rebuild.
1238 * features/arm-with-neon.c: Rebuild.
1239 * features/arm-with-vfpv2.c: Rebuild.
1240 * features/arm-with-vfpv3.c: Rebuild.
1241 * features/i386/amd64-avx-linux.c: Rebuild.
1242 * features/i386/amd64-avx.c: Rebuild.
1243 * features/i386/amd64-linux.c: Rebuild.
1244 * features/i386/amd64.c: Rebuild.
1245 * features/i386/i386-avx-linux.c: Rebuild.
1246 * features/i386/i386-avx.c: Rebuild.
1247 * features/i386/i386-linux.c: Rebuild.
1248 * features/i386/i386-mmx-linux.c: Rebuild.
1249 * features/i386/i386-mmx.c: Rebuild.
1250 * features/i386/i386.c: Rebuild.
1251 * features/i386/x32-avx-linux.c: Rebuild.
1252 * features/i386/x32-avx.c: Rebuild.
1253 * features/i386/x32-linux.c: Rebuild.
1254 * features/i386/x32.c: Rebuild.
1255 * features/mips-dsp-linux.c: Rebuild.
1256 * features/mips-linux.c: Rebuild.
1257 * features/mips64-dsp-linux.c: Rebuild.
1258 * features/mips64-linux.c: Rebuild.
1259 * features/rs6000/powerpc-32.c: Rebuild.
1260 * features/rs6000/powerpc-32l.c: Rebuild.
1261 * features/rs6000/powerpc-403.c: Rebuild.
1262 * features/rs6000/powerpc-403gc.c: Rebuild.
1263 * features/rs6000/powerpc-405.c: Rebuild.
1264 * features/rs6000/powerpc-505.c: Rebuild.
1265 * features/rs6000/powerpc-601.c: Rebuild.
1266 * features/rs6000/powerpc-602.c: Rebuild.
1267 * features/rs6000/powerpc-603.c: Rebuild.
1268 * features/rs6000/powerpc-604.c: Rebuild.
1269 * features/rs6000/powerpc-64.c: Rebuild.
1270 * features/rs6000/powerpc-64l.c: Rebuild.
1271 * features/rs6000/powerpc-7400.c: Rebuild.
1272 * features/rs6000/powerpc-750.c: Rebuild.
1273 * features/rs6000/powerpc-860.c: Rebuild.
1274 * features/rs6000/powerpc-altivec32.c: Rebuild.
1275 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1276 * features/rs6000/powerpc-altivec64.c: Rebuild.
1277 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1278 * features/rs6000/powerpc-cell32l.c: Rebuild.
1279 * features/rs6000/powerpc-cell64l.c: Rebuild.
1280 * features/rs6000/powerpc-e500.c: Rebuild.
1281 * features/rs6000/powerpc-e500l.c: Rebuild.
1282 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1283 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1284 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1285 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1286 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1287 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1288 * features/rs6000/powerpc-vsx32.c: Rebuild.
1289 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1290 * features/rs6000/powerpc-vsx64.c: Rebuild.
1291 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1292 * features/rs6000/rs6000.c: Rebuild.
1293 * features/s390-linux32.c: Rebuild.
1294 * features/s390-linux32v1.c: Rebuild.
1295 * features/s390-linux32v2.c: Rebuild.
1296 * features/s390-linux64.c: Rebuild.
1297 * features/s390-linux64v1.c: Rebuild.
1298 * features/s390-linux64v2.c: Rebuild.
1299 * features/s390x-linux64.c: Rebuild.
1300 * features/s390x-linux64v1.c: Rebuild.
1301 * features/s390x-linux64v2.c: Rebuild.
1302 * features/tic6x-c62x-linux.c: Rebuild.
1303 * features/tic6x-c62x.c: Rebuild.
1304 * features/tic6x-c64x-linux.c: Rebuild.
1305 * features/tic6x-c64x.c: Rebuild.
1306 * features/tic6x-c64xp-linux.c: Rebuild.
1307 * features/tic6x-c64xp.c: Rebuild.
1309 2012-07-27 Tom Tromey <tromey@redhat.com>
1311 * c-exp.y (classify_name): Avoid assignment in condition.
1313 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1315 * amd64-windows-tdep.c: Include "frame.h".
1316 (amd64_windows_skip_trampoline_code): New function.
1317 (amd64_windows_init_abi): Add trampoline registration.
1319 2012-07-27 Yao Qi <yao@codesourcery.com>
1321 * tracepoint.c (cur_traceframe_number): Remove.
1322 (set_tfile_traceframe): Remove.
1323 (tfile_trace_find, tfile_fetch_registers): Update callers.
1324 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1325 (tfile_open, tfile_trace_find): Likewise.
1327 2012-07-27 Yao Qi <yao@codesourcery.com>
1329 * thread.c (switch_to_thread): Don't call registers_changed.
1331 2012-07-26 Tom Tromey <tromey@redhat.com>
1333 * Makefile.in (SFILES): Remove objc-exp.y.
1334 (YYFILES): Remove objc-exp.c.
1335 (YYOBJ): Remove objc-exp.o.
1336 (local-maintainer-clean): Don't mention objc-exp.c.
1337 * c-exp.y: Include objc-lang.h.
1338 (%union) <class>: New field.
1339 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1340 (exp): Clone subscript production for OBJC_LBRAC. Add various
1341 Objective C productions.
1342 (msglist, msgarglist, msgarg): New productions.
1343 (array_mod, func_mod, operator): Clone productions for
1345 (parse_string_or_char): Handle '@' strings.
1346 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1347 (classify_name): Check la_name_of_this. Recognize ObjC class
1349 * objc-exp.y: Remove.
1350 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1351 * objc-lang.h (objc_parse, objc_error): Don't declare.
1353 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1355 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1357 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1359 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1362 2012-07-26 Tom Tromey <tromey@redhat.com>
1364 * copying.c: Rebuild.
1365 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1368 2012-07-26 Tom Tromey <tromey@redhat.com>
1370 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1372 (print_objfile_statistics): Likewise.
1373 (maintenance_print_symbols): Likewise.
1374 (maintenance_print_msymbols): Likewise.
1375 (maintenance_print_objfiles): Likewise.
1376 * psymtab.c (print_partial_symbols): Call QUIT.
1377 (maintenance_print_psymbols): Likewise. Don't modify
1379 * copying.c (show_copying_command): Don't modify immediate_quit.
1380 (show_warranty_command): Likewise.
1381 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1383 2012-07-26 Keith Seitz <keiths@redhat.com>
1385 * linespec.c (linespec_lexer_lex_number): The input
1386 is also a valid number if the next character is a comma
1389 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1391 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1394 2012-07-26 Tristan Gingold <gingold@adacore.com>
1396 * machoread.c: Include gdb_bfd.h.
1398 2012-07-26 Tristan Gingold <gingold@adacore.com>
1400 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1403 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1405 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1407 (dwarf2_evaluate_loc_desc): Likewise.
1408 (dwarf2_loc_desc_needs_frame): Likewise.
1409 (locexpr_describe_location_1): Likewise.
1410 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1412 (struct dwarf2_loclist_baton): Likewise.
1413 * dwarf2read.c (struct dwarf_block): Likewise.
1414 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1415 (decode_locdesc): Expand SIZE and I to size_t.
1417 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1419 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1421 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1423 * doublest.c (convert_doublest_to_floatformat): If the exponent
1424 is too small, treat the value as zero. If the exponent is too
1425 large, treat the value as infinity.
1427 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1429 * configure.ac: Add --enable-lmcheck configure option.
1430 * configure: Regenerate.
1432 2012-07-25 Tom Tromey <tromey@redhat.com>
1434 * NEWS: Mention maint info bfds.
1435 * gdb_bfd.c (all_bfds): New global.
1436 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1437 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1440 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1442 * configure.tgt: Add v850*-*-rtems*.
1444 2012-07-25 Tom Tromey <tromey@redhat.com>
1446 * macrotab.c (macro_bcache_str): Remove cast.
1448 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1450 * linespec.c (linespec_lexer_lex_number): Update comments,
1451 change the return and add check to make sure the input is
1452 the decimal numbers.
1453 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1454 false, call linespec_lexer_lex_string.
1456 2012-07-24 Tom Tromey <tromey@redhat.com>
1458 * symfile.c (symbol_file_add): Don't open BFD twice.
1460 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1462 * breakpoint.c (create_breakpoint): Store condition for pending
1465 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1467 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1468 (m68k_return_value): Handle complex types like structures.
1469 (m68k_svr4_return_value): Likewise.
1471 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1473 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1474 parameters to bfd_get_section_name.
1476 2012-07-24 Yao Qi <yao@codesourcery.com>
1478 * cli/cli-setshow.c: Handle case 'var_uinteger'
1479 and 'var_zuninteger' together. Handle case 'var_integer' and
1480 'var_zinteger' together.
1482 2012-07-23 Keith Seitz <keiths@redhat.com>
1484 * linespec.c (convert_linespec_to_sal): Don't add
1485 any symbols to the result vector if symbol_to_sal
1488 2012-07-23 Keith Seitz <keiths@redhat.com>
1490 * linespec.c (decode_objc): Record the function name
1493 2012-07-23 Tom Tromey <tromey@redhat.com>
1495 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1497 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1498 (map_vmap): Acquire a reference to the BFD.
1500 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1502 * p-valprint.c (pascal_object_print_value): Replace potentially
1503 unsafe alloca with xmalloc/xfree.
1504 * valops.c (search_struct_method): Likewise.
1506 2012-07-23 Tom Tromey <tromey@redhat.com>
1508 * solib-svr4.c (enable_break): Update.
1509 * bfd-target.h (target_bfd_reopen): Update documentation.
1511 2012-07-23 Tom Tromey <tromey@redhat.com>
1513 * symfile.c (separate_debug_file_exists): Update.
1514 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1515 (reread_symbols): Update.
1516 * elfread.c (build_id_verify): Update.
1517 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1518 bfd_open_maybe_remote.
1520 2012-07-23 Tom Tromey <tromey@redhat.com>
1522 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1524 2012-07-23 Tom Tromey <tromey@redhat.com>
1526 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1528 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1530 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1531 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1533 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1534 * objfiles.c (allocate_objfile): Acquire a new reference.
1535 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1536 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1537 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1538 a cleanup for 'nbfd'.
1539 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1541 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1542 make a cleanup for 'abfd'.
1543 (symbol_file_add): Make a BFD cleanup.
1545 2012-07-23 Tom Tromey <tromey@redhat.com>
1547 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1548 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1549 * corelow.c (core_open): Use gdb_bfd_fopen.
1550 * dsrec.c (load_srec): Use gdb_bfd_openr.
1551 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1552 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1553 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1554 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1555 (gdb_bfd_fdopenr): New functions.
1556 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1557 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1558 (gdb_bfd_fdopenr): Declare.
1559 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1560 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1561 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1562 gdb_bfd_openr_next_archived_file.
1563 (macho_check_dsym): Use gdb_bfd_openr.
1564 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1565 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1566 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1567 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1569 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1570 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1571 gdb_bfd_openr_next_archived_file.
1572 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1574 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1576 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1577 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1578 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1579 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1580 (symfile_bfd_open): Use gdb_bfd_fopen.
1581 (generic_load): Use gdb_bfd_openr.
1582 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1584 2012-07-23 Tom Tromey <tromey@redhat.com>
1586 * bfd-target.c (target_bfd_reopen): Update.
1587 * cli/cli-dump.c (bfd_openr_with_cleanup)
1588 (bfd_openw_with_cleanup): Update.
1589 * corelow.c (core_open): Update.
1590 * dsrec.c (load_srec): Update.
1591 * exec.c (exec_file_attach): Update.
1592 * gcore.c (create_gcore_bfd): Update.
1593 * gdb_bfd.c (gdb_bfd_ref): Return void.
1594 (gdb_bfd_open): Update.
1595 * gdb_bfd.h (gdb_bfd_ref): Return void.
1597 * jit.c (jit_bfd_try_read_symtab): Update.
1598 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1599 * machoread.c (macho_symfile_read_all_oso): Update.
1600 (macho_check_dsym): Update.
1601 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1602 * remote-m32r-sdi.c (m32r_load): Update.
1603 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1604 * rs6000-nat.c (add_vmap): Update.
1605 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1607 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1608 * solib-spu.c (spu_bfd_open): Update.
1609 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1610 * spu-linux-nat.c (spu_bfd_open): Update.
1611 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1612 (generic_load): Update.
1613 * windows-nat.c (windows_make_so): Update.
1615 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1617 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1619 2012-07-20 Jeff Kenton <jkenton@tilera.com>
1621 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1622 SIGTRAMP_FRAME unwinding.
1624 2012-07-20 Doug Evans <dje@google.com>
1626 * NEWS: Document new options "set/show use-deprecated-index-sections",
1627 and delete reference to --use-deprecated-index-sections.
1628 * symfile.h (use_deprecated_index_sections): Delete.
1629 * dwarf2read.c (use_deprecated_index_sections): Make static.
1630 (read_index_from_section): Update wording of how to load
1631 deprecated index sections.
1632 (_initialize_dwarf2_read): New options
1633 "set/show use-deprecated-index-sections".
1634 * main.c (captured_main): Delete --use-deprecated-index-sections.
1636 2012-07-20 Pedro Alves <palves@redhat.com>
1641 * infrun.c (handle_inferior_event) <new thread>: Don't special
1642 case minus_one_ptid.
1643 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1644 * linux-thread-db.c (thread_get_info_callback): Don't return early
1645 if the thread is zombie.
1646 (thread_from_lwp): Change return type to void. Rewrite stale
1648 (attach_thread): Don't return early if the thread is zombie,
1649 instead set its "dying" flag.
1650 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1651 (find_new_threads_callback): Don't return early if the thread is
1654 2012-07-20 Pedro Alves <palves@redhat.com>
1656 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1657 * target.c (target_wait): Likewise.
1658 (str_comma_list_concat_elem, do_option, target_options_to_string):
1660 * target.h (target_options_to_string): Declare.
1662 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1663 Tom Tromey <tromey@redhat.com>
1665 * dwarf2read.c (dwarf_decode_macros)
1666 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1667 DW_MACRO_GNU_transparent_include_alt>: New cases.
1668 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1669 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1671 2012-07-20 Tom Tromey <tromey@redhat.com>
1673 * dwarf2read.c (try_open_dwo_file): Don't call
1674 gdb_bfd_stash_filename.
1676 2012-07-20 Pedro Alves <palves@redhat.com>
1678 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1679 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1680 (i386_process_record): Tweak description comments.
1682 2012-07-20 Pedro Alves <palves@redhat.com>
1684 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1685 (i386_process_record): Use record_read_memory.
1686 * record.c (record_read_memory): New function.
1687 (record_arch_list_add_mem, record_exec_insn): Use
1689 * record.h (record_read_memory): Declare.
1691 2012-07-20 Yao Qi <yao@codesourcery.com>
1693 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1696 2012-07-19 Pedro Alves <palves@redhat.com>
1698 * record.c (record_resume): Ask the target beneath to report all
1701 2012-07-19 Doug Evans <dje@google.com>
1703 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1704 there's no section at address zero.
1705 (dwarf2_record_block_ranges): Ditto.
1707 2012-07-19 Yao Qi <yao@codesourcery.com>
1709 * command.h, remote.c: Fix a typo in comment.
1711 2012-07-19 Tom Tromey <tromey@redhat.com>
1714 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1715 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1716 OP_DECLTYPE>: New cases.
1717 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1718 (type_exp): Add new productions.
1719 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1721 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1723 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1724 OP_DECLTYPE>: New case.
1725 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1727 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1728 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1730 2012-07-19 Tom Tromey <tromey@redhat.com>
1732 * c-exp.y (enum token_flags): New.
1733 (struct token) <cxx_only>: Remove.
1735 (tokentab3, tokentab2, ident_tokens): Update.
1736 (lex_one_token): Update. Handle FLAG_SHADOW.
1738 2012-07-19 Tom Tromey <tromey@redhat.com>
1740 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1741 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1742 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1743 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1744 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1745 type_exp production where appropriate.
1746 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1747 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1748 <UNOP_MEMVAL_TYPE>: New case.
1749 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1750 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1751 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1752 <UNOP_MEMVAL_TYPE>: New case.
1753 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1754 UNOP_REINTERPRET_CAST>: Update.
1755 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1756 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1757 UNOP_REINTERPRET_CAST>: Update.
1758 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1759 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1760 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1763 2012-07-19 Yao Qi <yao@codesourcery.com>
1764 Jan Kratochvil <jan.kratochvil@redhat.com>
1766 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1767 and case 'var_optional_filename' together.
1768 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1769 instead of add_setshow_optional_filename_cmd for setshow command
1770 'args'. Set completer for 'set args'.
1772 2012-07-18 Doug Evans <dje@google.com>
1774 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1775 * common/gdb_vecs.c: New file, contents from utils.c.
1776 * common/host-defs.h: New file, contents from defs.h.
1777 * utils.h: New file, contents from defs.h.
1778 * defs.h: Move all declarations of objects defined in utils.c
1779 to utils.h (except QUIT() and related).
1780 #include "utils.h", "host-defs.h".
1781 * probe.h (probe_p): Move here from gdb_vecs.h.
1782 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1783 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1784 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1785 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1786 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1787 (COMMON_OBS): Add gdb_vecs.o.
1788 (gdb_vecs.o): New rule.
1790 2012-07-18 Keith Seitz <keiths@redhat.com>
1792 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1793 parameter. If non-zero, use SYMNAME as the canonical name
1796 (convert_linespec_to_sals): Use add_sal_to_sals for
1798 (decode_line_full): No need to "fill in missing canonical names"
1799 anymore. Simply make cleanups for the allocated names.
1801 2012-07-18 Keith Seitz <keiths@redhat.com>
1803 * linespec.c (struct linespec): Constify expression,
1804 source_filename, function_name, and label_name.
1805 (symbol_not_found_error): Make all parameters const.
1806 (linespec_parser_delete): No need to check for NULL
1807 when using xfree. Cast const char * to char * for xfree.
1809 2012-07-18 Keith Seitz <keiths@redhat.com>
1811 * breakpoint.c (invalid_thread_id_error): New function.
1812 (find_condition_and_thread): Use invalid_thread_id_error.
1813 (watch_command_1): Likewise.
1815 2012-07-18 Tom Tromey <tromey@redhat.com>
1817 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1818 * contrib/cc-with-tweaks.sh: New file.
1820 2012-07-18 Tom Tromey <tromey@redhat.com>
1822 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1823 (locate_dwz_sections): Recognize .gdb_index.
1824 (create_cus_from_index_list): New function.
1825 (create_cus_from_index): Use it. Handle .dwz data.
1826 (read_index_from_section): New function, extracted from
1828 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1831 2012-07-18 Tom Tromey <tromey@redhat.com>
1833 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1834 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1835 <is_dwz>: New field.
1836 (struct dwz_file): New.
1837 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1838 (locate_dwz_sections, dwarf2_get_dwz_file)
1839 (get_abbrev_section_for_cu): New functions.
1840 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1841 (read_and_check_type_unit_head): Add abbrev_section argument.
1842 (create_debug_types_hash_table): Update.
1843 (init_cutu_and_read_dies): Use proper abbrev section.
1844 (init_cutu_and_read_dies_no_follow): Likewise.
1845 (set_partial_user): Do nothing if PST==NULL.
1846 (read_comp_units_from_section): New function.
1847 (create_all_comp_units): Use it.
1848 (scan_partial_symbols, partial_die_parent_scope): Update.
1849 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1850 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1851 (find_partial_die): Add offset_in_dwz argument. Update.
1852 (guess_partial_die_structure_name, fixup_partial_die): Update.
1853 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1854 DW_FORM_GNU_strp_alt.
1855 (read_indirect_string_from_dwz): New function.
1856 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1857 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1858 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1859 (follow_die_offset): Add offset_in_dwz argument.
1860 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1861 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1862 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1863 Handle new macro forms.
1864 (dwarf_decode_macros): Update.
1865 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1866 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1867 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1868 (create_debug_types_hash_table): Use correct abbrev section.
1869 (get_debug_line_section): New function.
1870 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
1871 (process_full_comp_unit): Pass 'required' argument to
1872 end_symtab_get_static_block.
1873 * buildsym.h (end_symtab_get_static_block): Update.
1874 * buildsym.c (end_symtab_get_static_block): Add 'required'
1876 (end_symtab, end_expandable_symtab): Update.
1878 2012-07-18 Tom Tromey <tromey@redhat.com>
1880 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
1882 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
1883 (zlib_decompress_section): Remove.
1884 (dwarf2_read_section): Use gdb_bfd_map_section.
1885 (munmap_section_buffer): Remove.
1886 (free_dwo_file, dwarf2_per_objfile_free): Don't use
1887 munmap_section_buffer.
1888 * gdb_bfd.c: Include zlib.h, sys/mman.h.
1889 (struct gdb_bfd_section_data): New.
1890 (free_one_bfd_section): New function.
1891 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
1892 (get_section_descriptor, zlib_decompress_section)
1893 (gdb_bfd_map_section): New functions.
1894 * gdb_bfd.h (gdb_bfd_map_section): Declare.
1896 2012-07-18 Tom Tromey <tromey@redhat.com>
1898 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
1900 2012-07-18 Tom Tromey <tromey@redhat.com>
1902 * gdb_bfd.c (struct gdb_bfd_data): New.
1903 (gdb_bfd_cache): New global.
1904 (struct gdb_bfd_cache_search): New.
1905 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
1906 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
1907 * gdb_bfd.h (gdb_bfd_open): Declare.
1909 2012-07-18 Tom Tromey <tromey@redhat.com>
1911 * utils.c (make_cleanup_bfd_unref): Rename from
1912 make_cleanup_bfd_close.
1913 * defs.h (make_cleanup_bfd_unref): Rename from
1914 make_cleanup_bfd_close.
1915 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
1916 (bfd_openw_with_cleanup): Update.
1917 * corelow.c (core_open): Update.
1918 * dsrec.c (load_srec): Update.
1919 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1920 * remote-m32r-sdi.c (m32r_load): Update.
1921 * remote-mips.c (mips_load_srec): Update.
1922 (pmon_load_fast): Update.
1923 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1925 (darwin_bfd_open): Update.
1926 * solib.c (solib_bfd_fopen): Update.
1927 * symfile-mem.c (symbol_file_add_from_memory): Update.
1928 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
1929 (symfile_bfd_open): Update.
1930 (generic_load): Update.
1932 2012-07-18 Tom Tromey <tromey@redhat.com>
1934 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
1935 (pmon_load_fast): Likewise.
1936 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
1937 (m32r_upload_command): Likewise.
1938 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
1939 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1940 Use make_cleanup_bfd_close.
1942 2012-07-18 Tom Tromey <tromey@redhat.com>
1944 * symfile.c (symfile_bfd_open): Don't copy name. Call
1945 gdb_bfd_stash_filename.
1946 (load_command): Open the new BFD before freeing the old.
1947 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
1948 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
1949 Call gdb_bfd_stash_filename.
1950 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
1951 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
1952 gdb_bfd_stash_filename.
1953 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1954 Free found_pathname.
1955 * rs6000-nat.c (add_vmap): Don't copy filename. Call
1956 gdb_bfd_stash_filename.
1957 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
1958 * machoread.c (macho_add_oso_symfile): Call
1959 gdb_bfd_stash_filename.
1960 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
1961 gdb_bfd_stash_filename.
1962 (macho_check_dsym): Don't copy filename. Call
1963 gdb_bfd_stash_filename.
1964 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
1965 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
1966 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
1967 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
1968 * exec.c (exec_close): Don't free the BFD's filename.
1969 (exec_file_attach): Don't copy the filename. Call
1970 gdb_bfd_stash_filename.
1971 * corelow.c (core_close): Don't free the BFD's filename.
1972 (core_open): Call gdb_bfd_stash_filename.
1973 * corefile.c (reopen_exec_file): Remove #if 0 code.
1974 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
1976 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
1978 2012-07-18 Tom Tromey <tromey@redhat.com>
1980 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
1982 (free_dwo_file): Use gdb_bfd_unref.
1983 * cli/cli-dump.c: Include gdb_bfd.h.
1984 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
1985 (bfd_openr_with_cleanup): Likewise.
1986 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
1988 * utils.c: Include gdb_bfd.h.
1989 (do_bfd_close_cleanup): Use gdb_bfd_unref.
1990 * symfile.c: Include gdb_bfd.h.
1991 (separate_debug_file_exists): Use gdb_bfd_unref.
1992 (bfd_open_maybe_remote): Use gdb_bfd_ref.
1993 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1994 (generic_load): Use gdb_bfd_ref.
1995 (reread_symbols): Use gdb_bfd_unref.
1996 * symfile-mem.c: Include gdb_bfd.h.
1997 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
1998 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1999 * solib.c: Include gdb_bfd.h.
2000 (solib_bfd_fopen): Use gdb_bfd_ref.
2001 (solib_bfd_open): Use gdb_bfd_unref.
2002 (free_so_symbols): Use gdb_bfd_unref.
2003 (reload_shared_libraries_1): Use gdb_bfd_unref.
2004 * solib-spu.c: Include gdb_bfd.h.
2005 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2006 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2008 * solib-frv.c: Include gdb_bfd.h.
2009 (enable_break2): Use gdb_bfd_unref.
2010 * solib-dsbt.c: Include gdb_bfd.h.
2011 (enable_break2): Use gdb_bfd_unref.
2012 * solib-darwin.c: Include gdb_bfd.h.
2013 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2015 (darwin_bfd_open): Use gdb_bfd_unref.
2016 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2017 * remote-mips.c: Include gdb_bfd.h.
2018 (mips_load_srec): Use gdb_bfd_ref.
2019 (pmon_load_fast): Use gdb_bfd_ref.
2020 * remote-m32r-sdi.c: Include gdb_bfd.h.
2021 (m32r_load): Use gdb_bfd_ref.
2022 * record.c: Include gdb_bfd.h.
2023 (record_save_cleanups): Use gdb_bfd_unref.
2024 (cmd_record_save): Use gdb_bfd_unref.
2025 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2027 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2028 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2029 * objfiles.c: Include gdb_bfd.h.
2030 (free_objfile): Use gdb_bfd_unref.
2031 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2033 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2034 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2035 (macho_check_dsym): Likewise.
2036 * m32r-rom.c: Include gdb_bfd.h.
2037 (m32r_load): Use gdb_bfd_ref.
2038 (m32r_upload_command): Use gdb_bfd_ref.
2039 * jit.c: Include gdb_bfd.h.
2040 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2041 * gdb_bfd.h: New file.
2042 * gdb_bfd.c: New file.
2043 * gcore.c: Include gdb_bfd.h.
2044 (create_gcore_bfd): Use gdb_bfd_ref.
2045 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2046 (gcore_command): Use gdb_bfd_unref.
2047 * exec.c: Include gdb_bfd.h.
2048 (exec_close): Use gdb_bfd_unref.
2049 (exec_close_1): Use gdb_bfd_unref.
2050 (exec_file_attach): Use gdb_bfd_ref.
2051 * elfread.c: Include gdb_bfd.h.
2052 (build_id_verify): Use gdb_bfd_unref.
2053 * dsrec.c: Include gdb_bfd.h.
2054 (load_srec): Use gdb_bfd_ref.
2055 * corelow.c: Include gdb_bfd.h.
2056 (core_close): Use gdb_bfd_unref.
2057 (core_open): Use gdb_bfd_ref.
2058 * bfd-target.c: Include gdb_bfd.h.
2059 (target_bfd_xclose): Use gdb_bfd_unref.
2060 (target_bfd_reopen): Use gdb_bfd_ref.
2061 * Makefile.in (SFILES): Add gdb_bfd.c.
2062 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2063 (COMMON_OBS): Add gdb_bfd.o.
2065 2012-07-18 Keith Seitz <keiths@redhat.com>
2067 * breakpoint.c (find_condition_and_thread): Initialize
2069 (create_breakpiont): find_condition_and_thread will now
2070 initialize COND_STRING, THREAD, and REST (and TASK).
2071 (addr_string_to_sals): Likewise.
2073 2012-07-18 Pedro Alves <palves@redhat.com>
2075 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2076 Pull the single step breakpoints out of the target.
2078 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2080 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2081 * stap-probe.c (compile_probe_arg): Likewise.
2083 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2085 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2086 (elf_compile_to_ax): Likewise.
2087 * infrun.c (insert_exception_resume_from_probe): Likewise.
2088 (check_exception_resume): Remove `objfile' variable.
2089 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2090 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2091 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2092 (compare_entries): Rename to...
2093 (compare_probes): ...this. Adjust function to work with
2094 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2096 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2098 (print_ui_out_info): Adjust argument to be `struct probe *'.
2099 (info_probes_for_ops): Adjust internal computations to use
2101 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2102 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2103 gen_info_probes_table_values>: Remove `objfile' argument.
2104 (struct probe) <objfile>: New field.
2105 (find_probe_by_pc): Remove `objfile' argument.
2106 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2107 (stap_get_probe_argument_count): Likewise.
2108 (stap_get_arg): Likewise.
2109 (stap_evaluate_probe_argument): Likewise.
2110 (stap_compile_to_ax): Likewise.
2111 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2112 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2113 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2114 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2115 sym_compile_to_ax>: Likewise.
2117 2012-07-18 Terry Guo <terry.guo@arm.com>
2120 * defs.h (GDB_MI_MSG_WIDTH): New.
2121 * ser_base (ser_base_read_error_fd): New function.
2122 (do_ser_base_readchar): Poll error file descriptor as well as
2124 (generic_readchar): Refactor error handling.
2126 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2128 * NEWS: Create a new section for the next release branch.
2129 Rename the section of the current branch, now that it has
2132 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2134 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2135 * version.in: Bump version to 7.5.50.20120718-cvs.
2137 2012-07-17 Keith Seitz <keiths@redhat.com>
2139 * linespec.c (linespec_parse_line_offset): Make parameter
2142 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2145 * f-valprint.c (info_common_command): New variable frame_id.
2146 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2147 * printcmd.c (print_variable_and_value): Extend function comment.
2148 Add comment for invalidated FRAME.
2149 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2150 FI form FRAME_ID after each print_frame_local_vars.
2151 (struct print_variable_and_value_data): Change frame to frame_id.
2152 (do_print_variable_and_value): New variable frame, initialize it from
2153 p->frame_id. Add comment for invalidated FRAME.
2154 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2155 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2156 for invalidated FRAME.
2158 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2159 Pedro Alves <palves@redhat.com>
2161 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2164 2012-07-16 Tom Tromey <tromey@redhat.com>
2166 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2168 2012-07-15 Doug Evans <dje@google.com>
2170 * dwarf2read.c (stmt_list_hash): New struct.
2171 (type_unit_group): Embed "per_cu" member, remove pointer.
2172 New union member "t", move member "tus" into it, all uses updated.
2173 New member "hash", replaces member "line_offset, all uses updated.
2174 (quick_file_names): Replace member "offset" with "hash", all uses
2176 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2177 (hash_file_name_entry, eq_file_name_entry): Call them.
2178 (hash_type_unit_group, eq_type_unit_group): Ditto.
2179 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2180 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2181 (dw2_get_file_names): Update.
2182 (create_type_unit_group): Replace "per_cu" arg with "cu".
2183 All callers updated. Fix "quick" (.gdb_index) handling.
2184 (get_type_unit_group): Replace "per_cu" arg with "cu".
2185 All callers updated.
2186 (build_type_unit_groups): Don't reset tu_stats.
2188 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2189 "tab_cur_size". Change member "tab" to be a htab_t.
2190 (create_filename_seen_cache): Update.
2191 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2192 (filename_seen): Update.
2194 2012-07-13 Doug Evans <dje@google.com>
2196 * symtab.c (filename_seen): Update comment.
2198 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2199 Doug Evans <dje@google.com>
2201 * buildsym.c (end_symtab_1): Split it to ...
2202 (end_symtab_get_static_block): ... this ...
2203 (end_symtab_from_static_block): ... and this function.
2204 (end_symtab, end_expandable_symtab): Call them.
2205 * buildsym.h (end_symtab_get_static_block)
2206 (end_symtab_from_static_block): New declarations.
2207 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2208 Set its valid CU ranges.
2210 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2212 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2213 DW_OP_GNU_parameter_ref.
2215 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2217 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2218 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2220 2012-07-13 Doug Evans <dje@google.com>
2222 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2223 (filename_seen_cache): New struct.
2224 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2225 (create_filename_seen_cache): New function.
2226 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2227 (filename_seen): Delete arg "first". New arg "cache". All callers
2229 (output_source_filename_data): New struct.
2230 (output_source_filename): Delete arg "first". New arg "data".
2231 All callers updated.
2232 (sources_info): Delete local "first". New locals "data", "cleanups".
2233 Rewrite to use filename_seen_cache.
2234 (add_partial_filename_data): Delete member "first". New member
2235 "filename_seen_cache". All uses updated.
2236 (make_source_files_completion_list): Rewrite to use
2237 filename_seen_cache.
2239 2012-07-12 Doug Evans <dje@google.com>
2241 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2243 2012-07-10 Doug Evans <dje@google.com>
2246 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2247 all_type_unit_groups, type_unit_groups, tu_stats.
2248 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2249 All uses updated. Add type_unit_group to union "s".
2250 (type_unit_group): New struct.
2251 (IS_TYPE_UNIT_GROUP): New macro.
2252 (abbrev_table): Delete unused member "section".
2253 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2254 (dw2_get_cu): Assert not used with type_unit_group.
2255 (dw2_get_primary_cu): New function.
2256 (dw2_build_type_unit_groups_reader): New function.
2257 (dw2_build_type_unit_groups): New function.
2258 (dw2_get_file_names): Assert not called on type units.
2259 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2260 Redo loop to iterate over type unit groups instead of type units.
2261 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2262 (read_abbrev_offset): New function.
2263 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2265 (create_partial_symtab): New function.
2266 (process_psymtab_comp_unit_reader): Assert not used with type units.
2267 Call create_partial_symtab.
2268 (process_psymtab_type_unit): Delete.
2269 (hash_type_unit_group, eq_type_unit_group): New functions.
2270 (allocate_type_unit_groups_table): New function.
2271 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2272 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2273 (create_type_unit_group, get_type_unit_group): New functions.
2274 (tu_abbrev_offset): New struct.
2275 (sort_tu_by_abbrev_offset): New function.
2276 (add_type_unit_group_to_table): New function.
2277 (build_type_unit_groups): New function.
2278 (build_type_psymtabs_reader): New function.
2279 (build_type_psymtab_dependencies): New function.
2280 (build_type_psymtabs): Rewrite.
2281 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2282 is seen in a type unit.
2283 (process_queue): Move symtab expansion debugging printfs here.
2284 Call process_full_type_unit for type units.
2285 (compute_symtab_includes): Assert not called for type units.
2286 (process_cu_includes): Don't call compute_symtab_includes for
2288 (process_full_type_unit): New function.
2289 (process_imported_unit_die): Flag an error if called for type units.
2290 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2291 updated. Assert not called for type units.
2292 (read_file_scope): Call dwarf2_start_symtab.
2293 (setup_type_unit_groups): New function.
2294 (read_type_unit_scope): Rewrite.
2295 (abbrev_table_read_table): Initialize abbrev_table->offset.
2296 (abbrev_table_free_cleanup): New function.
2297 (dwarf2_start_symtab): New function.
2298 (load_full_type_unit): Assert not called for type unit groups.
2299 * buildsym.c (finish_block_internal): New arg "expandable".
2300 All callers updated.
2301 (start_symtab): Move most contents to ...
2302 (restart_symtab): ... here. New function.
2303 (reset_symtab_globals): New function.
2304 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2305 Call reset_symtab_globals.
2306 (end_symtab, end_expandable_symtab): New functions.
2307 (set_missing_symtab, augment_type_symtab): New functions.
2308 * buildsym.h (end_expandable_symtab): Declare.
2309 (augment_type_symtab, restart_symtab): Declare.
2310 * psympriv.h (struct partial_symtab): New member "anonymous".
2311 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2313 (read_psymtabs_with_filename): Ditto.
2314 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2315 (expand_symtabs_matching_via_partial): Ditto.
2316 (dump_psymtab): Update.
2317 * dictionary.c (dict_add_pending): New function.
2318 * dictionary.h (dict_add_pending): Declare.
2320 2012-07-09 Doug Evans <dje@google.com>
2322 * buildsym.c (start_subfile): Remove unnecessary check for
2325 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2327 * dwarf2read.c (load_full_type_unit): Simplify.
2329 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2330 to struct signatured_type **. All uses updated.
2332 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2333 All callers updated.
2335 2012-07-09 Tom Tromey <tromey@redhat.com>
2337 * c-exp.y (check_parameter_typelist): New function.
2338 (parameter_typelist): Call it.
2339 * eval.c (make_params): Handle '(void)' case.
2340 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2343 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2345 * common/linux-ptrace.c: Include gdb_assert.h.
2346 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2347 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2349 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2351 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2352 * linux-nat.c (linux_child_post_attach)
2353 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2355 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2357 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2358 nptl <2.7 bug workaround for core files.
2360 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2362 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2364 (save_siginfo): Remove.
2365 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2367 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2368 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2369 * linux-nat.h (struct lwp_info): Remove field siginfo.
2371 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2373 Code cleanup for the next patch.
2374 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2375 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2377 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2378 (ia64_linux_stopped_data_address):
2379 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2381 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2382 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2383 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2386 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2389 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2390 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2392 2012-07-06 Tom Tromey <tromey@redhat.com>
2394 * c-exp.y (DOTDOTDOT): New token.
2395 (func_mod, exp): Use parameter_typelist.
2396 (parameter_typelist): New production.
2397 (tokentab3): Add "..." token.
2398 * eval.c (make_params): Handle varargs.
2399 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2402 2012-07-06 Tom Tromey <tromey@redhat.com>
2405 * c-exp.y (%union) <tvec>: Change type.
2406 (func_mod): Now uses <tvec> type.
2407 (exp): Update for tvec change.
2408 (direct_abs_decl): Push the typelist.
2409 (func_mod): Return a typelist.
2410 (nonempty_typelist): Update for tvec change.
2411 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2412 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2413 * parse.c (pop_type_list): New function.
2414 (push_typelist): New function.
2415 (follow_types): Handle tp_function_with_arguments.
2416 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2417 (enum type_pieces) <tp_function_with_arguments>: New constant.
2418 (union type_stack_elt) <typelist_val>: New field.
2419 (push_typelist): Declare.
2421 2012-07-06 Tom Tromey <tromey@redhat.com>
2423 * c-exp.y (%union) <type_stack>: New field.
2424 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2425 (ptr_operator_ts): New production.
2427 * parse.c (type_stack_reserve): New function.
2428 (check_type_stack_depth): Use it.
2429 (pop_type_stack, append_type_stack, push_type_stack)
2430 (get_type_stack, type_stack_cleanup): New functions.
2431 (follow_types): Handle tp_type_stack.
2432 (_initialize_parse): Simplify initialization.
2433 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2435 (union type_stack_elt) <stack_val>: New field.
2436 (get_type_stack, append_type_stack, push_type_stack)
2437 (type_stack_cleanup): Declare.
2439 2012-07-06 Tom Tromey <tromey@redhat.com>
2441 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2443 (struct type_stack): New.
2444 * parse.c (type_stack, type_stack_size, type_stack_depth):
2446 (type_stack): New global.
2447 (parse_exp_in_context, check_type_stack_depth)
2448 (insert_into_type_stack, insert_type, push_type, push_type_int)
2449 (insert_type_address_space, pop_type, pop_type_int)
2450 (_initialize_parse): Update.
2452 2012-07-06 Tom Tromey <tromey@redhat.com>
2454 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2457 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2459 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2461 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2462 Jan Kratochvil <jan.kratochvil@redhat.com>
2464 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2465 alloca with xmalloc/xfree.
2467 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2469 * MAINTAINERS (Write After Approval): Add myself to the list.
2471 2012-07-05 Doug Evans <dje@google.com>
2473 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2475 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2477 * ax-gdb.c (cli/cli-utils.h): New include.
2478 (linespec.h): Ditto.
2479 (agent_eval_command_one): New function.
2480 (agent_command_1): Ditto.
2481 (agent_command): Call function agent_command_1.
2482 (agent_eval_command): Ditto.
2483 (_initialize_ax_gdb): Change help for "maint agent"
2484 and "maint agent-eval".
2486 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2488 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2489 * cli/cli-utils.c (check_for_argument): New function.
2490 * cli/cli-utils.h (check_for_argument): Ditto.
2492 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2494 * NEWS: Mention x32 ABI support.
2496 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2498 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2499 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2501 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2502 and pc_regnum_from_eax to -1. Update SP regnum from
2503 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2506 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2509 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2511 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2512 * dwarf2expr.h: Include gdbtypes.h.
2513 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2514 these forward declarations.
2515 (cu_offset, sect_offset): Move these ...
2516 * gdbtypes.h: Remove include dwarf2expr.h.
2517 (cu_offset, sect_offset): ... here.
2519 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2521 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2522 (amd64_linux_sigtramp_code): This.
2523 (amd64_x32_linux_sigtramp_code): New.
2524 (LINUX_SIGTRAMP_LEN): Updated.
2525 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2527 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2529 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2531 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2533 * config.in: Regenerate.
2534 * configure: Regenerate.
2535 * configure.ac: Remove check for gnu/libc-version.h.
2536 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2538 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2539 variables libc_version, libc_major and libc_minor. Replace sscanf by
2540 inferior_has_bug. Extend the comment.
2542 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2544 * linux-thread-db.c (inferior_has_bug): New function.
2545 (thread_db_find_new_threads_silently): Return boolean as checked by
2546 inferior_has_bug, describe it in the comments.
2547 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2548 earlier. Abort the initialization if it returned non-zero.
2549 (thread_db_new_objfile): Exclude debug files.
2550 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2553 2012-07-02 Doug Evans <dje@google.com>
2555 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2556 related to queue management.
2558 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2559 instead of "debug dwarf2-die" in debugging printfs.
2560 (create_debug_info_hash_table_reader): Ditto.
2561 (create_debug_info_hash_table): Ditto.
2562 (init_dwo_file): Ditto.
2563 (init_cutu_and_read_dies): Add debugging printf.
2564 (init_cutu_and_read_dies_no_follow): Ditto.
2565 (process_psymtab_comp_unit_reader): Ditto.
2567 2012-07-02 Stan Shebs <stan@codesourcery.com>
2569 Add target-side support for dynamic printf.
2570 * NEWS: Mention the additional style.
2571 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2572 (struct bp_location): New field cmd_bytecode.
2573 * breakpoint.c: Include format.h.
2574 (disconnected_dprintf): New global.
2575 (parse_cmd_to_aexpr): New function.
2576 (build_target_command_list): New function.
2577 (insert_bp_location): Call it.
2578 (remove_breakpoints_pid): Skip dprintf breakpoints.
2579 (print_one_breakpoint_location): Ditto.
2580 (dprintf_style_agent): New global.
2581 (dprintf_style_enums): Add dprintf_style_agent.
2582 (update_dprintf_command_list): Add agent case.
2583 (agent_printf_command): New function.
2584 (_initialize_breakpoint): Add new commands.
2585 * common/ax.def (printf): New bytecode.
2586 * ax.h (ax_string): Declare.
2587 * ax-gdb.h (gen_printf): Declare.
2588 * ax-gdb.c: Include cli-utils.h, format.h.
2589 (gen_printf): New function.
2590 (maint_agent_print_command): New function.
2591 (_initialize_ax_gdb): Add maint agent-printf command.
2592 * ax-general.c (ax_string): New function.
2593 (ax_print): Add printf disassembly.
2594 * Makefile.in (SFILES): Add format.c
2595 (COMMON_OBS): Add format.o.
2596 * common/format.h: New file.
2597 * common/format.c: New file.
2598 * printcmd.c: Include format.h.
2599 (ui_printf): Call parse_format_string.
2600 * remote.c (remote_state): New field breakpoint_commands.
2601 (PACKET_BreakpointCommands): New enum.
2602 (remote_breakpoint_commands_feature): New function.
2603 (remote_protocol_features): Add new BreakpointCommands entry.
2604 (remote_can_run_breakpoint_commands): New function.
2605 (remote_add_target_side_commands): New function.
2606 (remote_insert_breakpoint): Call it.
2607 (remote_insert_hw_breakpoint): Ditto.
2608 (_initialize_remote): Add new packet configuration for
2609 target-side breakpoint commands.
2610 * target.h (struct target_ops): New field
2611 to_can_run_breakpoint_commands.
2612 (target_can_run_breakpoint_commands): New macro.
2613 * target.c (update_current_target): Handle
2614 to_can_run_breakpoint_commands.
2616 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2618 Execute -ix and -iex only after system and user gdbinit files.
2619 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2620 processing down after gdbinit files.
2622 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2624 Add fnmatch-gnu module.
2625 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2626 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2627 * gnulib/aclocal.m4: Regenerate.
2628 * gnulib/config.in: Regenerate.
2629 * gnulib/configure: Regenerate.
2630 * gnulib/import/dummy.c: Remove.
2631 * gnulib/import/Makefile.am: Regenerate.
2632 * gnulib/import/Makefile.in: Likewise.
2633 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2634 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2635 * gnulib/import/alloca.c: New file.
2636 * gnulib/import/alloca.in.h: Likewise.
2637 * gnulib/import/config.charset: Likewise.
2638 * gnulib/import/fnmatch.c: Likewise.
2639 * gnulib/import/fnmatch.in.h: Likewise.
2640 * gnulib/import/fnmatch_loop.c: Likewise.
2641 * gnulib/import/localcharset.c: Likewise.
2642 * gnulib/import/localcharset.h: Likewise.
2643 * gnulib/import/m4/alloca.m4: Likewise.
2644 * gnulib/import/m4/codeset.m4: Likewise.
2645 * gnulib/import/m4/configmake.m4: Likewise.
2646 * gnulib/import/m4/fcntl-o.m4: Likewise.
2647 * gnulib/import/m4/fnmatch.m4: Likewise.
2648 * gnulib/import/m4/glibc21.m4: Likewise.
2649 * gnulib/import/m4/localcharset.m4: Likewise.
2650 * gnulib/import/m4/locale-fr.m4: Likewise.
2651 * gnulib/import/m4/locale-ja.m4: Likewise.
2652 * gnulib/import/m4/locale-zh.m4: Likewise.
2653 * gnulib/import/m4/mbrtowc.m4: Likewise.
2654 * gnulib/import/m4/mbsinit.m4: Likewise.
2655 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2656 * gnulib/import/m4/mbstate_t.m4: Likewise.
2657 * gnulib/import/m4/stdbool.m4: Likewise.
2658 * gnulib/import/m4/wchar_h.m4: Likewise.
2659 * gnulib/import/m4/wctype_h.m4: Likewise.
2660 * gnulib/import/m4/wint_t.m4: Likewise.
2661 * gnulib/import/mbrtowc.c: Likewise.
2662 * gnulib/import/mbsinit.c: Likewise.
2663 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2664 * gnulib/import/mbsrtowcs-state.c: Likewise.
2665 * gnulib/import/mbsrtowcs.c: Likewise.
2666 * gnulib/import/ref-add.sin: Likewise.
2667 * gnulib/import/ref-del.sin: Likewise.
2668 * gnulib/import/stdbool.in.h: Likewise.
2669 * gnulib/import/streq.h: Likewise.
2670 * gnulib/import/strnlen1.c: Likewise.
2671 * gnulib/import/strnlen1.h: Likewise.
2672 * gnulib/import/verify.h: Likewise.
2673 * gnulib/import/wchar.in.h: Likewise.
2674 * gnulib/import/wctype.in.h: Likewise.
2676 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2678 Support shell wildcards for 'set auto-load safe-path'.
2679 * auto-load.c: Include fnmatch.h.
2680 (filename_is_in_dir): Rename to ...
2681 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2682 it. Update function comment. Rename dir_len to pattern_len. New
2683 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2684 messages. Use gdb_filename_fnmatch.
2685 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2687 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2688 * defs.h (gdb_filename_fnmatch): New declaration.
2689 * utils.c: Include fnmatch.h.
2690 (gdb_filename_fnmatch): New function.
2692 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2694 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2695 `-probe' and `-probe-stap' options.
2697 2012-07-01 Yao Qi <yao@codesourcery.com>
2699 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2700 always_inserted_off, and always_inserted_enums.
2701 Change always_inserted_mode's type to 'enum auto_boolean'.
2702 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2704 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2705 of add_setshow_enum_cmd.
2706 * infrun.c: Remove can_use_displaced_stepping_auto,
2707 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2708 can_use_displaced_stepping_enum.
2709 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2710 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2711 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2712 add_setshow_enum_cmd.
2714 2012-06-30 Doug Evans <dje@google.com>
2716 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2717 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2718 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2720 2012-06-29 Doug Evans <dje@google.com>
2722 * linespec.c: #include "stack.h".
2723 (decode_line_with_current_source): Moved here from symtab.c and
2724 renamed from decode_line_spec. All callers updated.
2725 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2726 renamed from decode_line_spec_1. All callers updated.
2727 * linespec.h (decode_line_with_current_source): Move declaration here
2728 from symtab.h and renamed from decode_line_spec.
2729 (decode_line_with_last_displayed): Move declaration here from symtab.h
2730 and renamed from decode_line_spec_1.
2731 * macrocmd.c: #include "linespec.h".
2732 * symtab.c: Remove #include "linespec.h".
2734 2012-06-28 Doug Evans <dje@google.com>
2736 * dwarf2read.c (get_cu_length): New function.
2737 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2738 (create_debug_types_hash_table): Ditto.
2739 (init_cutu_and_read_dies): Ditto.
2740 (init_cutu_and_read_dies_no_follow): Ditto.
2742 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2744 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2745 (struct abbrev_table): Define.
2746 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2748 (init_cutu_and_read_dies): Update.
2749 (abbrev_table_alloc_abbrev): New function. Replaces
2750 dwarf_alloc_abbrev. All callers updated.
2751 (abbrev_table_add_abbrev): New function.
2752 (abbrev_table_lookup_abbrev): New function. Replaces
2753 dwarf2_lookup_abbrev. All callers updated.
2754 (abbrev_table_read_table): New function. Contents moved here from
2755 dwarf2_read_abbrevs.
2756 (dwarf2_read_abbrevs): Call it.
2757 (abbrev_table_free): New function.
2758 (dwarf2_free_abbrev_table): Call it.
2760 2012-06-28 Stan Shebs <stan@codesourcery.com>
2762 * osdata.c (info_osdata_command): Filter out "Title" columns
2764 * common/linux-osdata.c (struct osdata_type): Add title field.
2765 (osdata_table): Add titles to each entry.
2766 (linux_command_xfer_osdata): Add a column for title data.
2768 2012-06-28 Stan Shebs <stan@codesourcery.com>
2770 Make logging work for MI.
2772 * interps.h (interp_set_logging_ftype): New typedef.
2773 (struct interp_procs): New field set_logging_proc.
2774 (current_interp_set_logging): Declare.
2775 * interps.c (current_interp_set_logging): New function.
2776 * cli/cli-logging.c: Include interps.h.
2777 (set_logging_redirect): Call current_interp_set_logging.
2778 (pop_output_files): Ditto.
2779 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2780 * mi/mi-console.h (mi_console_set_raw): Declare.
2781 * mi/mi-console.c (mi_console_set_raw): New function.
2782 * mi/mi-interp.c (saved_raw_stdout): New global.
2783 (mi_set_logging): New function.
2784 (_initialize_mi_interp): Add it to interp procs.
2786 2012-06-28 Doug Evans <dje@google.com>
2788 * symtab.c (lookup_symbol_aux_objfile): Use
2789 ALL_OBJFILE_PRIMARY_SYMTABS.
2791 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2793 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2795 * common/buffer.c: Include inttypes.h and stdint.h.
2796 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2798 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2799 Pedro Alves <palves@redhat.com>
2801 * gdbthread.h (ALL_THREADS): New macro.
2802 (thread_list): Declare.
2803 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2804 going, but instead fall through to the stepping handling.
2805 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2806 the passed in signal. Adjust debug output.
2807 (resume_callback): Rename to ...
2808 (linux_nat_resume_callback): ... this. Pass the thread's last
2809 stop signal, if in "pass" state.
2810 (linux_nat_resume): Adjust to rename.
2811 (stop_wait_callback): New assertion. Don't respawn signals;
2812 instead let the LWP remain with SIGNALLED set.
2813 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2814 * remote.c (append_pending_thread_resumptions): New.
2815 (remote_vcont_resume): Call it.
2816 * target.h (target_resume): Extend comment.
2818 2012-06-28 Iain Sandoe <iain@codesourcery.com>
2820 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2822 2012-06-27 Doug Evans <dje@google.com>
2824 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2825 Delete have_addr_base, unused. All uses updated.
2826 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2827 (dwarf2_get_pc_bounds): Add ranges_base.
2828 (dwarf2_record_block_ranges): Ditto.
2830 2012-06-27 Tom Tromey <tromey@redhat.com>
2833 * varobj.c (varobj_create): Update.
2834 (varobj_set_value): Update.
2835 * tracepoint.c (validate_actionline): Update.
2836 (encode_actions_1): Update.
2837 * parse.c (parse_exp_1): Add 'pc' argument.
2838 (parse_exp_in_context): Add 'pc' argument. Change how
2839 expression_context_pc is set.
2840 (parse_expression): Update.
2841 (parse_field_expression): Update.
2842 * expression.h (parse_exp_1): Update.
2843 * eval.c (parse_to_comma_and_eval): Update.
2844 * breakpoint.c (set_breakpoint_condition): Update.
2845 (update_watchpoint): Update.
2846 (init_breakpoint_sal): Update
2847 (find_condition_and_thread): Update.
2848 (watch_command_1): Update.
2849 (update_breakpoint_locations): Update.
2850 * ada-lang.c (ada_read_renaming_var_value): Update.
2851 (create_excep_cond_exprs): Update.
2853 2012-06-27 Doug Evans <dje@google.com>
2855 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2858 2012-06-26 Doug Evans <dje@google.com>
2860 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2862 (error_check_comp_unit_head): New arg abbrev_section. All callers
2864 (read_and_check_comp_unit_head): Ditto.
2865 (read_and_check_type_unit_head): Ditto.
2867 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2869 New attribute 'last' for gdb.Symtab_and_line.
2870 * NEWS (Python Scripting): Add entry about the new attribute.
2871 * python/py-symtab.c (salpy_get_last): New function which
2872 implements the get method for the 'last' attribute of
2873 gdb.Symtab_and_line.
2874 (sal_object_getset): Add entry for the 'last' attribute.
2876 2012-06-26 Doug Evans <dje@google.com>
2878 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
2879 (dwo_sections): Add macinfo, macro.
2880 (dwarf2_locate_dwo_sections): Watch for macro sections.
2881 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
2882 All callers updated. Handle DWO files.
2884 * NEWS: Mention new options "set debug dwarf2-read" and
2885 "set debug symtab-create".
2886 * dwarf2read.c (dwarf2_read_debug): New static global.
2887 (dwarf2_build_psymtabs_hard): Add debugging printfs.
2888 (process_queue): Ditto.
2889 (process_full_comp_unit): Ditto.
2890 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
2891 * elfread.c (elf_symfile_read): Add debugging printf.
2892 * minsyms.c (install_minimal_symbols): Ditto.
2893 * psymtab.c (allocate_psymtab): Ditto.
2894 * symfile.c (allocate_symtab): Ditto.
2895 * symtab.c (symtab_create_debug): New global.
2896 (_initialize_symtab): Add new option "set debug symtab-create".
2897 * symtab.h (symtab_create_debug): Declare.
2899 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
2900 (lookup_dwo_type_unit): Ditto.
2902 2012-06-26 Roland McGrath <roland@hack.frob.com>
2903 H.J. Lu <hongjiu.lu@intel.com>
2905 * amd64-linux-nat.c: Include <sys/user.h>.
2906 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
2907 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
2908 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
2910 * configure.ac: Check if the fs_base and gs_base members of
2911 `struct user_regs_struct' exist.
2912 * config.in: Regenerated.
2913 * configure: Likewise.
2915 2012-06-25 Michael Eager <eager@eagercon.com>
2918 * python/python.c (gdbpy_write): Check for interrupted output.
2920 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
2922 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
2923 register as a stack alignment in ARM mode.
2925 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2927 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
2928 * gnulib/config.in: Regenerate.
2929 * gnulib/configure: Likewise.
2930 * gnulib/import/m4/extensions.m4: Update it.
2931 * gnulib/import/m4/gnulib-common.m4: Likewise.
2932 * gnulib/import/m4/memmem.m4: Likewise.
2933 * gnulib/import/m4/mmap-anon.m4: Likewise.
2934 * gnulib/import/m4/multiarch.m4: Likewise.
2935 * gnulib/import/stdint.in.h: Likewise.
2937 2012-06-24 Yao Qi <yao@codesourcery.com>
2939 * corefile.c (write_memory_with_notification): New.
2940 * gdbcore.h: Declare write_memory_with_notification.
2941 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
2942 'observer_notify_memory_changed' with 'write_memory_with_notification'.
2943 * valops.c (value_assign): Likewise.
2944 * python/py-inferior.c (infpy_write_memory): Call
2945 'write_memory_with_notification'.
2947 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2949 * cc-with-index.sh: Use also -ex "set auto-load no".
2951 2012-06-23 Doug Evans <dje@google.com>
2954 * NEWS: Document additions to .gdb_index.
2955 * dwarf2read.c: #include "gdb/gdb-index.h".
2956 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
2957 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
2958 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
2959 (dwarf2_read_index): Recognize version 7.
2960 (dw2_do_expand_symtabs_matching): New args want_specific_block,
2961 block_kind, domain): All callers updated.
2962 (dw2_find_symbol_file): Handle new index CU values.
2963 (dw2_expand_symtabs_matching): Match symbol kind if requested.
2964 (add_index_entry): New args is_static, kind. All callers updated.
2965 (offset_type_compare, uniquify_cu_indices): New functions
2966 (symbol_kind): New function.
2967 (write_psymtabs_to_index): Remove duplicate CU values.
2968 (write_psymtabs_to_index): Write .gdb_index version 7.
2970 2012-06-22 Joel Brobecker <brobecker@adacore.com>
2972 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
2973 * configure: Regenerate.
2975 2012-06-20 Yao Qi <yao@codesourcery.com>
2977 * python/py-inferior.c: Update comments of infpy_read_memory
2978 and infpy_write_memory.
2980 2012-06-19 Tom Tromey <tromey@redhat.com>
2983 * parser-defs.h (insert_type, insert_type_address_space): Declare.
2984 (push_type_address_space): Remove.
2985 * parse.c (insert_into_type_stack): New function.
2986 (insert_type): Likewise.
2987 (insert_type_address_space): Rename from push_type_address_space.
2988 Insert tp_space_identifier.
2989 * c-exp.y (ptr_operator): New production.
2990 (abs_decl): Use ptr_operator.
2991 (space_identifier): Call insert_type_address_space.
2992 (ptype): Don't use const_or_volatile_or_space_identifier.
2993 (const_or_volatile_noopt): Call insert_type.
2994 (conversion_type_id, conversion_declarator): New productions.
2995 (operator): Use conversion_type_id.
2997 2012-06-18 Doug Evans <dje@google.com>
2999 * symtab.h (minimal_symbol): New member created_by_gdb.
3000 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3002 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3003 (search_symbols): Call it instead of lookup_symbol.
3004 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3006 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3007 Adjust address for DW_OP_GNU_addr_index.
3008 * dwarf2expr.h (dwarf_expr_context): Update comment.
3009 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3010 all callers updated. Handle TLS vars described with
3011 DW_OP_GNU_const_index.
3012 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3013 and DW_OP_GNU_const_index.
3014 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3016 * block.c (find_block_in_blockvector): Make explicit the fact that we
3017 ignore GLOBAL_BLOCK.
3019 2012-06-18 Tom Tromey <tromey@redhat.com>
3021 * c-exp.y (operator): Remove trailing space after "delete" and
3024 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3025 Jan Kratochvil <jan.kratochvil@redhat.com>
3027 Switch i386 and derived targets to ON_STACK.
3028 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3029 (amd64_dicos_init_abi): Remove its installment.
3030 * dicos-tdep.c (dicos_init_abi): Remove the
3031 set_gdbarch_call_dummy_location call. Update the comment here.
3032 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3033 (i386_dicos_init_abi): Remove its installment.
3034 * i386-tdep.c (i386_push_dummy_code): New function.
3035 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3036 i386_push_dummy_code.
3038 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3040 Remove stale dummy frames.
3041 * breakpoint.c: Include dummy-frame.h.
3042 (longjmp_breakpoint_ops): New variable.
3043 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3044 bp_longjmp_call_dummy.
3045 (bpstat_what, bptype_string, print_one_breakpoint_location)
3046 (init_bp_location): Support bp_longjmp_call_dummy.
3047 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3048 (set_longjmp_breakpoint_for_call_dummy)
3049 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3051 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3052 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3053 FIXME comment and extend the other comment for bp_call_dummy.
3054 (set_longjmp_breakpoint_for_call_dummy)
3055 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3056 * dummy-frame.c: Include gdbthread.h.
3057 (pop_dummy_frame_bpt): New function.
3058 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3059 (dummy_frame_discard): New function.
3060 (cleanup_dummy_frames): Update the comment about longjmps.
3061 * dummy-frame.h (dummy_frame_discard): New declaration.
3062 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3063 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3064 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3065 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3066 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3067 keep_going if IS_LONGJMP and there is no other reason to stop.
3069 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3071 * remote-sim.c (sim_command_completer): Initialize
3074 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3076 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3077 * dwarf2loc.c (call_site_parameter_matches): Support
3078 CALL_SITE_PARAMETER_PARAM_OFFSET.
3079 (needs_dwarf_reg_entry_value): Push stub value.
3080 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3081 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3082 * gdbtypes.h (enum call_site_parameter_kind): New item
3083 CALL_SITE_PARAMETER_PARAM_OFFSET.
3084 (struct call_site.parameter.u): New field param_offset.
3086 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3088 Code cleanup: Generalize call_site.parameter key.
3089 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3090 variable dwarf_reg. New variable kind_u. Update parameters to
3091 push_dwarf_reg_entry_value.
3092 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3093 * dwarf2expr.h (enum call_site_parameter_kind)
3094 (union call_site_parameter_u): Forward declarations.
3095 (struct dwarf_expr_context_funcs): Update parameters and their
3096 description for push_dwarf_reg_entry_value.
3097 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3098 * dwarf2loc.c (call_site_parameter_matches): New function.
3099 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3100 description. Use call_site_parameter_matches.
3101 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3102 Update parameters and their description.
3103 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3104 New variable kind_u. Adjust the caller for updated parameters.
3105 (needs_dwarf_reg_entry_value): Update parameters.
3106 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3107 instead of attr. Update for the changed fields of struct
3108 call_site_parameter.
3109 * gdbtypes.h: Include dwarf2expr.h.
3110 (enum call_site_parameter_kind): New.
3111 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3112 fb_offset into new union u.
3114 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3116 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3117 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3120 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3122 * amd64-linux-nat.c (compat_x32_clock_t): New.
3123 (compat_x32_siginfo_t): Likewise.
3124 (compat_x32_siginfo_from_siginfo): Likewise.
3125 (siginfo_from_compat_x32_siginfo): Likewise.
3126 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3127 and siginfo_from_compat_x32_siginfo for x32.
3129 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3131 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3133 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3135 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3136 instead of gdbarch_ptr_bit.
3137 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3138 (amd64_supply_native_gregset): Likewise.
3139 (amd64_collect_native_gregset): Likewise.
3140 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3141 (amd64_supply_xsave): Likewise.
3142 (amd64_collect_fxsave): Likewise.
3143 (amd64_collect_xsave): Likewise.
3145 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3147 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3148 (amd64_linux_read_description): Check DS segment register for
3151 2012-06-15 Tom Tromey <tromey@redhat.com>
3153 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3154 init_cutu_and_read_dies.
3156 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3158 * MAINTAINERS (Write After Approval): Add myself to the list.
3160 2012-06-15 Tom Tromey <tromey@redhat.com>
3162 * valops.c (value_find_oload_method_list): Now static.
3163 * value.h (value_find_oload_method_list): Don't declare.
3165 2012-06-15 Tom Tromey <tromey@redhat.com>
3167 * valops.c (find_overload_match): Use value_ind.
3169 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3171 * infrun.c (handle_inferior_event): Correct indentation.
3173 2012-06-14 Doug Evans <dje@google.com>
3175 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3176 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3178 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3179 updated. Handle DEBUG_LOC_START_LENGTH.
3180 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3181 (loclist_describe_location): Ditto.
3183 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3186 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3187 after hiding inline functions.
3189 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3191 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3192 _initialize_inf_ttrace.
3194 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3196 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3197 _initialize_hppa_hpux_nat.
3199 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3201 * remote-sim.c (sim_command_completer): Change type of return
3202 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3204 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3205 Jan Kratochvil <jan.kratochvil@redhat.com>
3208 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3209 stack on a 16-byte boundary.
3211 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3213 * jit.c (finalize_symtab): Set function's return type to 'void' by
3216 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3217 H.J. Lu <hongjiu.lu@intel.com>
3219 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3220 Move bits common to both the classic LP64 and the new x32 ILP32
3222 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3223 (amd64_x32_linux_init_abi): New function.
3224 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3227 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3228 * i386-tdep.c (i386_pseudo_register_name): Make public.
3229 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3230 * amd64-tdep.c (amd64_dword_names): Add "eip".
3231 (amd64_x32_pseudo_register_type): New function
3232 (amd64_x32_init_abi): New function.
3234 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3237 * inferior.h (struct inferior_suspend_state): Comment out.
3238 (struct inferior): Comment out the field suspend.
3239 * infrun.c (struct infcall_suspend_state): Comment out the field
3241 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3244 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3246 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3247 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3248 function comment. Return ERROR for unresolved cases. Implement
3249 returning proper NAME.
3250 (yylex): Accept also NAME from classify_inner_name.
3251 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3252 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3254 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3256 2012-06-13 Tom Tromey <tromey@redhat.com>
3258 * breakpoint.c (condition_completer): New function.
3259 (_initialize_breakpoint): Use it.
3260 * value.c (complete_internalvar): New function.
3261 * value.h (complete_internalvar): Declare.
3263 2012-06-13 Tom Tromey <tromey@redhat.com>
3265 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3266 * breakpoint.c (catch_syscall_completer): Return a VEC.
3267 * cli/cli-cmds.c (complete_command): Update.
3268 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3269 (complete_on_enum): Likewise.
3270 * command.h: Include gdb_vecs.h.
3271 (completer_ftype): Change return type.
3272 (complete_on_cmdlist, complete_on_enum): Likewise.
3273 * completer.c (noop_completer, filename_completer)
3274 (location_completer): Return a VEC.
3275 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3277 (expression_completer, complete_line_internal, complete_line)
3278 (command_completer): Return a VEC.
3279 (gdb_completion_word_break_characters, line_completion_function):
3281 * completer.h: Include gdb_vecs.h.
3282 (complete_line, noop_completer, filename_completer)
3283 (expression_completer, location_completer, command_completer):
3285 * f-lang.c (f_word_break_characters): Return a VEC.
3286 * interps.c (interpreter_completer): Return a VEC.
3287 * language.h (struct language_defn)
3288 <la_make_symbol_completion_list>: Return a VEC.
3289 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3290 * symtab.c (free_completion_list): Take a VEC.
3291 (return_val_size, return_val_index): Remove.
3292 (return_val): Now a VEC.
3293 (completion_list_add_name): Update.
3294 (default_make_symbol_completion_list_break_on)
3295 (default_make_symbol_completion_list, make_symbol_completion_list)
3296 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3298 (add_filename_to_list): Update.
3299 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3301 (maybe_add_partial_symtab_filename): Update.
3302 (make_source_files_completion_list): Return a VEC.
3303 * symtab.h (default_make_symbol_completion_list_break_on)
3304 (default_make_symbol_completion_list, make_symbol_completion_list)
3305 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3306 (make_source_files_completion_list): Update.
3308 2012-06-13 Tom Tromey <tromey@redhat.com>
3310 * breakpoint.c (add_catch_command): Use completer_ftype.
3311 * breakpoint.h: Include command.h.
3312 (add_catch_command): Use completer_ftype.
3313 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3314 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3315 Use completer_ftype.
3316 * command.h (completer_ftype): New typedef.
3317 (set_cmd_completer): Use it.
3318 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3321 2012-06-13 Pedro Alves <palves@redhat.com>
3323 Partial revert of previous change.
3325 * serial.c (scb_base): New global.
3326 (serial_for_fd): New.
3327 (serial_open, serial_fdopen_ops): Link new serial in open serials
3329 (do_serial_close): Unlink serial from the open serials chain.
3331 2012-06-12 Pedro Alves <palves@redhat.com>
3333 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3335 (prepare_for_detach): No longer context switch here in non-stop
3337 (fetch_inferior_event): Ditto.
3338 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3339 to the event thread before removing breakpoints. Switch to the
3340 event thread before inserting breakpoints and resuming.
3341 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3342 event thread before resuming.
3343 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3344 Switch to the event thread before removing breakpoints.
3346 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3348 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3349 special characters correctly for the Windows shells. See
3350 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3352 [!__MINGW32__]: Remove extra double quote character from special
3355 2012-06-11 Stan Shebs <stan@codesourcery.com>
3357 * ui-out.h: Remove #if 0 declarations.
3358 * ui-out.c: Remove #if 0 functions.
3360 2012-06-11 Pedro Alves <palves@redhat.com>
3362 * ser-base.c (run_async_handler_and_reschedule): New.
3363 (fd_event, push_event): Use it.
3364 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3365 reference count to 1.
3366 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3368 (serial_is_open, serial_ref, serial_unref): New.
3369 * serial.h (serial_open): Adjust comment.
3370 (serial_is_open): Declare.
3371 (serial_close): Adjust comment.
3372 (serial_ref, serial_unref) Declare.
3373 (struct serial): New field 'refcnt'.
3375 2012-06-11 Pedro Alves <palves@redhat.com>
3377 Remove #if 0'd "connect" command, and unnecessary associated
3378 refcounting and serial reuse bits.
3380 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3381 * serial.c (last_serial_opened): Delete.
3383 (serial_open): Adjust.
3384 (serial_for_fd): Delete.
3385 (serial_fdopen_ops, do_serial_close): Adjust.
3386 (serial_fdopen_ops): Adjust.
3388 2012-06-11 Pedro Alves <palves@redhat.com>
3390 * serial.c (do_serial_close): Remove early return when SCB is
3393 2012-06-11 Tom Tromey <tromey@redhat.com>
3395 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3397 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3399 Fix regression by the "ambiguous linespec" series.
3400 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3401 get_last_displayed_symtab and get_last_displayed_line and depending
3404 2012-06-11 Tom Tromey <tromey@redhat.com>
3406 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3407 (dw2_find_symbol_file): Use it.
3409 2012-06-11 Michael Eager <eager@eagercon.com>
3411 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3412 * mips-linux-tdep.h (mips_signals): New
3414 2012-06-11 Tom Tromey <tromey@redhat.com>
3416 * infrun.c (handle_inferior_event)
3417 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3419 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3420 exception logic in all cases. Update comments.
3421 (insert_longjmp_resume_breakpoint): Set the exception resume
3424 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3426 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3428 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3430 * valarith.c (binop_types_user_defined_p): Fix a typo.
3432 2012-06-08 Yao Qi <yao@codesourcery.com>
3433 Chung-Lin Tang <cltang@codesourcery.com>
3435 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3436 * arch-utils.h: Declare.
3437 * gdbarch.sh: Add return_in_first_hidden_param_p.
3438 * gdbarch.c, gdbarch.h: Regenerated.
3439 * infcall.c (call_function_by_hand): Call
3440 gdbarch_return_in_first_hidden_param_p instead of
3441 language_pass_by_reference.
3443 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3444 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3445 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3446 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3447 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3448 `cplus_return_struct_by_reference'.
3449 (tic6x_return_value): Handle language cplusplus.
3450 (tic6x_return_in_first_hidden_param_p): New.
3451 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3453 2012-06-07 Doug Evans <dje@google.com>
3455 * dwarf2read.c (dwarf2_cu): Add comment.
3457 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3459 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3461 (mips_eabi_push_dummy_call): Likewise.
3462 (mips_n32n64_push_dummy_call): Likewise.
3463 (mips_o32_push_dummy_call): Likewise.
3464 (mips_o64_push_dummy_call): Likewise.
3466 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3468 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3470 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3472 * mips-tdep.c (mips_pseudo_register_type): Use
3473 mips_float_register_p.
3475 2012-06-06 Pedro Alves <palves@redhat.com>
3477 * infrun.c (handle_inferior_event): Remove calls to
3478 reinit_frame_cache that follow a context_switch call.
3480 2012-06-06 Pedro Alves <palves@redhat.com>
3482 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3483 context_switch and remove stale comment.
3485 2012-06-06 Pedro Alves <palves@redhat.com>
3487 * infrun.c (struct execution_control_state): Remove
3488 `new_thread_event' field.
3489 (handle_inferior_event): Simplify new threads handling; don't
3490 resume the inferior if we find a new thread.
3492 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3494 * NEWS: Document the deprecation of SH's 'regs' command.
3495 * inferior.h (all_registers_info): Add function declaration.
3496 * sh-tdep.c (sh_show_regs): Remove variable.
3497 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3498 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3499 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3500 (sh_show_regs_command): Remove functions.
3501 (sh_gdbarch_init): Don't set sh_show_regs.
3502 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3503 'info all-registers'.
3504 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3505 (sh64_show_regs): Remove functions.
3506 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3508 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3510 * configure.ac: Move development=true below AC_INIT.
3511 * configure: Regenerate.
3513 2012-06-05 Stan Shebs <stan@codesourcery.com>
3515 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3518 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3520 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3521 argument as ssize_t.
3522 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3523 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3524 * target.c (target_read_stack, target_write_memory)
3525 (target_write_raw_memory): Likewise.
3526 * target.h (target_read_stack, target_write_memory)
3527 (target_write_raw_memory): Likewise.
3529 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3531 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3532 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3533 * target.c (target_read_memory): Change LEN to ssize_t.
3534 * target.h (target_read_memory): Change LEN to ssize_t.
3536 2012-06-05 Pedro Alves <palves@redhat.com>
3540 * breakpoint.c (until_break_command): Only fetch the selected
3541 frame after decode_line_1.
3543 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3545 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3546 event breakpoint at _start, __start or main if a program
3547 interpreter is not found.
3549 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3551 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3553 * windows-tdep.c: #include "objfiles.h".
3554 (windows_iterate_over_objfiles_in_search_order): New function.
3555 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3556 iterate_over_objfiles_in_search_order gdbarch method to
3557 windows_iterate_over_objfiles_in_search_order.
3558 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3560 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3562 * gdbarch.sh: Add generation of
3563 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3564 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3565 (iterate_over_objfiles_in_search_order): New gdbarch method.
3566 * gdbarch.h, gdbarch.c: Regenerate.
3567 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3569 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3571 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3572 out of lookup_symbol_aux_symtabs.
3573 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3574 call to lookup_symbol_aux_objfile.
3575 (struct global_sym_lookup_data): New type.
3576 (lookup_symbol_global_iterator_cb): New function.
3577 (lookup_symbol_global): Search for symbol using
3578 gdbarch_iterate_over_objfiles_in_search_order and
3579 lookup_symbol_global_iterator_cb.
3580 * findvar.c (struct minsym_lookup_data): New type.
3581 (minsym_lookup_iterator_cb): New function.
3582 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3583 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3584 and minsym_lookup_iterator_cb.
3586 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3588 Revert the following patch:
3589 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3590 try locating the symbol in the symbol's own objfile first, before
3591 extending the search to all objfiles.
3592 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3593 out of lookup_symbol_aux_symtabs.
3594 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3595 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3596 Do not search EXCLUDE_OBJFILE.
3597 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3598 (lookup_symbol_global): Search for matches in the block's objfile
3599 first, before searching all other objfiles.
3601 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3603 * breakpoint.c (find_condition_and_thread): Stop parsing
3604 as soon as the first invalid keyword is found.
3606 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3608 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3610 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3612 * config/djgpp/djcheck.sh: Add copyright header.
3614 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3616 * copyright.py (update_files, main): Fix path to update-copyright
3619 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3621 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3622 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3623 for which a reminder to update by hand is printed.
3625 2012-06-04 Doug Evans <dje@google.com>
3627 * buildsym.c (make_blockvector): Add comment.
3629 2012-06-04 Pedro Alves <palves@redhat.com>
3631 * arch-utils.c (default_gdb_signal_from_target): Delete.
3632 * arch-utils.h (default_gdb_signal_from_target): Delete.
3633 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3634 gdbarch_gdb_signal_from_target_p.
3635 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3637 * gdbarch.h: Regenerate.
3638 * gdbarch.c: Regenerate.
3640 2012-06-04 Pedro Alves <palves@redhat.com>
3642 * gdbarch.sh (gdb_signal_from_target): Mention that the
3643 implementation of the method must be host independent.
3644 * gdbarch.h: Regenerate.
3646 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3648 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3650 (target_read_memory_bfd): New function.
3651 (symbol_file_add_from_memory): Use it.
3653 2012-06-03 Doug Evans <dje@google.com>
3655 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3657 (basic_lookup_transparent_type): Ditto.
3659 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3660 (ALL_PRIMARY_SYMTABS): Use it.
3661 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3662 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3663 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3664 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3665 (basic_lookup_transparent_type): Ditto.
3667 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3669 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3670 it to optimize resolution of demangled name.
3672 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3674 * configure.ac (development): Define new variable.
3675 Call AC_CHECK_LIB for mcheck if $development.
3676 (ERROR_ON_WARNING): Enable it by default only if $development.
3677 * config.in: Regenerate.
3678 * configure: Regenerate.
3680 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3682 * target.c (target_read_memory): Make LEN argument as size_t.
3683 * target.h (target_read_memory): Likewise.
3685 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3687 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3689 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3691 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3692 BookE interface for PowerPC server processors if not available
3693 in the Linux Kernel.
3695 2012-05-31 Keith Seitz <keiths@redhat.com>
3697 * linespec.c (decode_objc): Add cleanup to free
3699 (find_linespec_symbols): Add cleanup to free CLASSES.
3700 * symfile.c (find_separate_debug_file_by_debuglink): Add
3701 cleanup to free DEBUGLINK.
3702 * ui-out.c (clear_header_list): No need to check if
3703 HEADER_NEXT.COLHDR is NULL.
3704 Free HEADER_NEXT.COL_NAME.
3706 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3708 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3711 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3713 * configure.host (gdb_host_cpu): Handle tilegx*.
3714 (gdb_host): Handle tilegx-*-linux*.
3715 * tilegx-linux-nat.c: New file.
3716 * config/tilegx/linux.mh: New file.
3718 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3720 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3721 tilegx-linux-tdep.o.
3722 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3723 tilegx-linux-tdep.c.
3724 * configure.tgt: Handle tilegx-*-linux*.
3725 * tilegx-tdep.h: New file.
3726 * tilegx-tdep.c: New file.
3727 * tilegx-linux-tdep.c: New file.
3728 * regformats/reg-tilegx.dat: New file.
3730 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3732 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3733 accounting of hw watchpoints on ppc.
3735 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3737 * source.c (openp): Expand tilde in path entries.
3739 2012-05-29 Doug Evans <dje@google.com>
3741 * buildsym.c (block_compar): Fix comment.
3742 (end_symtab): Fix and clarify some comments.
3744 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3745 cleanup_undefined_types.
3746 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3747 All callers updated.
3749 2012-05-29 Tom Tromey <tromey@redhat.com>
3751 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3753 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3754 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3756 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3759 2012-05-29 Tristan Gingold <gingold@adacore.com>
3761 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3762 (struct darwin_info): ... New struct.
3763 (solib_darwin_pspace_data): New variable.
3764 (darwin_pspace_data_cleanup): New function.
3765 (get_darwin_info): Likewise.
3766 (darwin_dyld_version_ok, darwin_load_image_infos)
3767 (darwin_solib_get_all_image_info_addr_at_init)
3768 (darwin_solib_read_all_image_info_addr): Add info argument.
3770 (darwin_current_sos): Use per pspace structure.
3771 (darwin_solib_create_inferior_hook): Likewise.
3772 (darwin_clear_solib): Likewise.
3773 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3775 2012-05-28 Pedro Alves <palves@redhat.com>
3777 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3778 block that uses them. Clear ecss before handling each event.
3780 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3782 * solib-svr4.c (svr4_current_sos): New comment on
3783 svr4_current_sos_via_xfer_libraries fall back.
3785 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3787 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3788 it as a fallback for TYPE_IS_OPAQUE.
3789 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3790 symbols for lookup_symbol.
3792 2012-05-24 John Steele Scott <toojays@toojays.net>
3794 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3795 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3796 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3797 (check_producer): ... this new function, which also checks for ICC
3798 and caches the result.
3799 (producer_is_icc): New function.
3800 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3803 2012-05-24 Pedro Alves <palves@redhat.com>
3807 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3808 (default_gdb_signal_to_target): ... this. Add comment.
3809 (default_gdb_signal_from_host): Rename to ...
3810 (default_gdb_signal_from_target): ... this. Add comment.
3811 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3812 (default_gdb_signal_to_target): ... this.
3813 (default_gdb_signal_from_host): Rename to ...
3814 (default_gdb_signal_from_target): ... this.
3815 * corelow.c (core_open): Adjust to naming change. Replace comment.
3816 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3817 (gdb_signal_from_target): ... this. Adjust to
3818 default_gdb_signal_from_host naming change. Extend comment.
3819 (gdb_signal_to_host): Rename to ...
3820 (gdb_signal_to_target): ... this. Adjust to
3821 default_gdb_signal_to_host naming change.
3822 * gdbarch.h, gdbarch.c: Renegerate.
3824 2012-05-24 Pedro Alves <palves@redhat.com>
3828 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
3830 2012-05-24 Pedro Alves <palves@redhat.com>
3834 Replace target_signal with gdb_signal throughout.
3836 2012-05-24 Pedro Alves <palves@redhat.com>
3840 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3841 string, instead of reusing the va_list argument.
3843 2012-05-24 Tom Tromey <tromey@redhat.com>
3845 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3848 2012-05-23 Doug Evans <dje@google.com>
3850 * symtab.c (search_symbols): Formatting fixes.
3851 (print_symbol_info): Formatting fixes.
3853 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3854 int64_t change to leb128 API.
3855 (read_encoded_value, decode_frame_entry_1): Ditto.
3856 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3857 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3858 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3859 (execute_stack_op): Ditto.
3860 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3861 (safe_read_uleb128, safe_read_sleb128): Ditto.
3862 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3863 (dwarf2_compile_expr_to_ax): Ditto.
3864 (locexpr_describe_location_piece): Ditto.
3865 (disassemble_dwarf_expression): Ditto.
3866 (locexpr_describe_location_1): Ditto.
3868 2012-05-23 Stan Shebs <stan@codesourcery.com>
3869 Kwok Cheung Yeung <kcy@codesourcery.com>
3871 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
3872 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
3873 (mi-cmd-info.o): New rule.
3874 * osdata.h (info_osdata_command): New declaration.
3875 * osdata.c (info_osdata_command): Change to non-static.
3876 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
3877 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
3878 * mi/mi-cmd-info.c: New file.
3880 2012-05-23 Doug Evans <dje@google.com>
3882 * symtab.c (search_symbols): Pass NULL for file_matcher to
3883 expand_symtabs_matching if there are no files to match.
3885 * gdbtypes.c (lookup_typename): Simplify.
3887 2012-05-23 Pedro Alves <palves@redhat.com>
3889 * arch-utils.h (default_target_signal_to_host): Delete.
3890 * arch-utils.c (default_target_signal_to_host): Delete.
3891 * gdbarch.sh (target_signal_to_host): Remove.
3892 * gdbarch.h, gdbarch.c: Regenerate.
3894 2012-05-22 Doug Evans <dje@google.com>
3896 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
3898 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
3899 (execute_cfa_program): Update to match API of leb128 functions.
3900 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
3902 (read_unsigned_leb128, read_signed_leb128): Delete.
3903 (read_initial_length): Change type of buf argument to
3905 (read_encoded_value): Update to match API of leb128 functions.
3906 (decode_frame_entry): Change result to "const gdb_byte *", and
3907 similarly for "start" parameter.
3908 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
3909 (dwarf2_build_frame_info): Change local frame_ptr to
3911 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
3912 read_uleb128, read_sleb128. All callers updated.
3913 (safe_skip_leb128): New function.
3914 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
3915 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
3916 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
3917 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
3918 read_uleb128, read_sleb128.
3919 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3920 (execute_stack_op): Update to match API of leb128 functions.
3921 * dwarf2expr.h: #include "leb128.h".
3922 (read_uleb128, read_sleb128): Delete.
3923 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
3924 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
3925 * dwarf2loc.c (debug_loc_kind): New enum.
3926 (decode_debug_loc_addresses): New function.
3927 (decode_debug_loc_dwo_addresses): New function.
3928 (dwarf2_find_location_expression): Rewrite.
3929 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
3930 (locexpr_describe_location_piece): Ditto.
3931 (disassemble_dwarf_expression): Ditto.
3932 (locexpr_describe_location_1): Ditto.
3933 (loclist_describe_location): Rewrite.
3934 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
3935 * dwarf2read.c (die_reader_specs): New member "buffer_end".
3936 (dwarf2_section_buffer_overflow_complaint): Renamed from
3937 dwarf2_macros_too_long_complaint. All callers updated.
3938 (skip_leb128): Delete.
3939 (init_cu_die_reader): Initialize reader->buffer_end.
3940 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
3941 (skip_form_bytes): New arg buffer_end. All callers updated.
3942 Replace call to skip_leb128 with gdb_skip_leb128.
3943 (skip_unknown_opcode): New arg mac_end. All callers updated.
3944 (fill_in_loclist_baton): Initialize baton->from_dwo.
3946 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3948 * mips-linux-nat.c (mips_linux_read_description): Use a more
3949 verbose error message.
3951 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3953 * NEWS: Add MIPS/Linux DSP support.
3954 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
3955 (SIGCONTEXT_DSPCTL): New macro.
3956 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
3957 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
3958 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
3959 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
3960 (N64_SIGCONTEXT_HI3): Likewise.
3961 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
3962 (N64_SIGCONTEXT_LO3): Likewise.
3963 (N64_SIGCONTEXT_DSPCTL): Likewise.
3964 (N64_SIGCONTEXT_FPCSR): Clarify definition.
3965 (mips_linux_o32_sigframe_init): Handle DSP registers.
3966 (mips_linux_n32n64_sigframe_init): Likewise.
3968 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3970 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
3973 2012-05-22 Pedro Alves <palves@redhat.com>
3975 * target.h (store_waitstatus): Move declaration ...
3976 * inf-child.h (store_waitstatus): ... here.
3977 * target.c: Move inclusion of gdb_wait.h, and ...
3978 (store_waitstatus): ... this ...
3979 * inf-child.c: ... here.
3980 * linux-nat.c: Include inf-child.h.
3981 * rs6000-nat.c: Include inf-child.h.
3982 * spu-linux-nat.c: Include inf-child.h.
3984 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3986 * tracepoint.c (start_tracing): Add missing i18n markup.
3987 (stop_tracing, set_trace_user): Ditto.
3988 (set_trace_notes, set_trace_stop_notes): Ditto.
3990 2012-05-21 Tom Tromey <tromey@redhat.com>
3993 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
3995 * value.h (value_cast_pointers): Update.
3996 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
3997 (value_cast): Update.
3998 (update_search_result): New function.
3999 (do_search_struct_field): New, from search_struct_field. Check
4000 for ambiguous results.
4001 (search_struct_field): Rewrite.
4002 * infcall.c (value_arg_coerce): Update.
4003 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4004 value_cast_pointers.
4005 * ada-lang.c (ada_convert_actual): Update.
4007 2012-05-21 Tom Tromey <tromey@redhat.com>
4009 * macroexp.c (macro_stringify): Terminate the string.
4011 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4013 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4015 * auto-load.c (auto_load_expand_dir_vars): New function.
4016 (auto_load_safe_path_vec_update): Use it, remove the
4017 substitute_path_component call thanks to it.
4018 (auto_load_objfile_script): Remove the debug_file_directory processing.
4019 Use auto_load_expand_dir_vars, remove the substitute_path_component
4021 * configure: Regenerate.
4022 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4023 path. Escape $ also for $debugdir.
4024 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4025 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4027 2012-05-20 Doug Evans <dje@google.com>
4029 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4030 before use. Check for symtab->includes == NULL before scanning it.
4032 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4034 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4036 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4038 * NEWS: Add microMIPS support and "set mips compression",
4039 "show mips compression" commands.
4040 * mips-tdep.h (mips_isa): New enum.
4041 (gdbarch_tdep): Add mips_isa.
4042 (mips_pc_is_mips16): Update prototype.
4043 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4044 * mips-tdep.c (mips_compression_mips16): New variable.
4045 (mips_compression_micromips): Likewise.
4046 (mips_compression_strings): Likewise.
4047 (mips_compression_string): Likewise.
4048 (is_mips16_isa, is_micromips_isa): New functions.
4049 (is_mips16_addr): Rename to...
4050 (is_compact_addr): ... this.
4051 (unmake_mips16_addr): Likewise to...
4052 (unmake_compact_addr): ... this.
4053 (make_mips16_addr): Likewise to...
4054 (make_compact_addr): ... this.
4055 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4057 (mips_elf_make_msymbol_special): Handle microMIPS code.
4058 (msymbol_is_special): Rename to...
4059 (msymbol_is_mips16): ... this.
4060 (mips_make_symbol_special, mips_pc_is_mips16): Update
4062 (msymbol_is_mips, msymbol_is_micromips): New functions.
4063 (mips16_to_32_reg): Rename to...
4064 (mips_reg3_to_reg): ... this.
4065 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4066 (mips_pc_isa): Likewise.
4067 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4069 (mips_fetch_instruction): Pass return status instead of printing
4070 an error message if requested. Handle microMIPS code. Bail out
4072 (micromips_op): New macro.
4073 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4074 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4075 (b6s4_op, b7s3_reg): Likewise.
4076 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4077 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4078 (mips_insn_size): New function.
4079 (mips32_next_pc): Update mips_fetch_instruction call.
4080 (micromips_relative_offset7): New function.
4081 (micromips_relative_offset10): Likewise.
4082 (micromips_relative_offset16): Likewise.
4083 (micromips_pc_insn_size): Likewise.
4084 (micromips_bc1_pc): Likewise.
4085 (micromips_next_pc): Likewise.
4086 (unpack_mips16): Update mips_fetch_instruction call.
4087 (extended_mips16_next_pc): Update according to change to
4089 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4091 (mips16_scan_prologue): Update mips_fetch_instruction call.
4092 Update according to change to mips16_to_32_reg.
4093 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4094 (mips_insn16_frame_base_sniffer): Likewise.
4095 (micromips_decode_imm9): New function.
4096 (micromips_scan_prologue): Likewise.
4097 (mips_micro_frame_cache): Likewise.
4098 (mips_micro_frame_this_id): Likewise.
4099 (mips_micro_frame_prev_register): Likewise.
4100 (mips_micro_frame_sniffer): Likewise.
4101 (mips_micro_frame_unwind): New variable.
4102 (mips_micro_frame_base_address): New function.
4103 (mips_micro_frame_base): New variable.
4104 (mips_micro_frame_base_sniffer): New function.
4105 (mips32_scan_prologue): Update mips_fetch_instruction call.
4106 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4107 rather than for MIPS16.
4108 (mips_insn32_frame_base_sniffer): Likewise.
4109 (mips_addr_bits_remove): Handle microMIPS code.
4110 (deal_with_atomic_sequence): Rename to...
4111 (mips_deal_with_atomic_sequence): ... this. Update the type
4112 of the variable used to hold an instruction. Remove the ISA bit
4113 check. Update mips_fetch_instruction call.
4114 (micromips_deal_with_atomic_sequence): New function.
4115 (deal_with_atomic_sequence): Likewise.
4116 (mips_about_to_return): Handle microMIPS code. Update
4117 mips_fetch_instruction call.
4118 (heuristic_proc_start): Check for the standard MIPS ISA rather
4119 than for MIPS16. Update mips_pc_is_mips16 and
4120 mips_fetch_instruction calls. Handle microMIPS code.
4121 (mips_push_dummy_code): Handle microMIPS code.
4122 (mips_eabi_push_dummy_call): Likewise.
4123 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4124 (mips_o64_push_dummy_call): Handle microMIPS code.
4125 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4126 (is_delayed): Remove function.
4127 (mips_single_step_through_delay): Replace the call to is_delayed
4128 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4129 Handle microMIPS code.
4130 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4132 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4134 (micromips_in_function_epilogue_p): New function.
4135 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4137 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4139 (gdb_print_insn_mips): Likewise.
4140 (mips_breakpoint_from_pc): Likewise.
4141 (mips_remote_breakpoint_from_pc): New function.
4142 (mips32_instruction_has_delay_slot): Simplify making use of the
4143 updated mips_fetch_instruction interface.
4144 (micromips_instruction_has_delay_slot): New function.
4145 (mips16_instruction_has_delay_slot): Simplify making use of the
4146 updated mips_fetch_instruction interface.
4147 (mips_adjust_breakpoint_address): Check for the standard MIPS
4148 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4149 calls. Handle microMIPS code.
4150 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4151 (mips_skip_trampoline_code): Handle microMIPS code.
4152 (global_mips_compression): New function.
4153 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4154 file flags. Register the microMIPS remote breakpoint handler
4155 and heuristic frame unwinder.
4156 (show_mips_compression): New function.
4157 (_initialize_mips_tdep): Add the "set mips compression" and
4158 "show mips compression" commands.
4160 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4165 * amd64-darwin-tdep.c:
4166 * arm-symbian-tdep.c:
4170 * bfin-linux-tdep.c:
4177 * dwarf2-frame-tailcall.c:
4206 * microblaze-tdep.c:
4207 * mips-linux-tdep.c:
4215 * python/py-finishbreakpoint.c:
4216 * python/py-inferior.c:
4217 * python/py-infthread.c:
4221 * remote-m32r-sdi.c:
4225 * rs6000-aix-tdep.c:
4251 * amd64-darwin-tdep.c:
4252 * arm-symbian-tdep.c:
4253 * arm-tdep.c: Delete unused variables.
4255 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4257 Rename $ddir to $datadir.
4258 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4259 * auto-load.c (auto_load_safe_path_vec_update)
4260 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4261 * configure: Regenerate.
4262 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4263 Likewise. Remove the 'use $ddir' help string.
4265 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4267 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4268 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4270 2012-05-18 Tom Tromey <tromey@redhat.com>
4273 * valprint.h (struct value_print_options) <symbol_print>: New
4275 * valprint.c (user_print_options): Add default for symbol_print.
4276 (show_symbol_print): New function.
4277 (generic_val_print): Respect symbol_print.
4278 (_initialize_valprint): Add "print symbol" setting.
4279 * f-valprint.c (f_val_print): Respect symbol_print.
4280 * c-valprint.c (c_val_print): Respect symbol_print.
4282 * printcmd.c (print_address_symbolic): Return int. Ignore some
4284 (print_address_demangle): Return int.
4285 * defs.h: (print_address_symbolic): Return int.
4286 * value.h (print_address_demangle): Return int.
4288 2012-05-18 Tom Tromey <tromey@redhat.com>
4290 * valprint.c (val_print_string): Don't print leading space.
4291 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4292 print space before string or vtbl.
4293 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4295 * jv-valprint.c (java_value_print): Print space before string.
4296 * go-valprint.c (print_go_string): Print space before string.
4297 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4298 space before string.
4299 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4300 space before string or vtbl.
4301 * auxv.c (fprint_target_auxv): Print space after address.
4303 2012-05-18 Tom Tromey <tromey@redhat.com>
4305 * printcmd.c (print_address_demangle): Remove special case for 0.
4307 2012-05-18 Tom Tromey <tromey@redhat.com>
4309 * printcmd.c (print_address_demangle): Add 'opts' argument.
4310 * p-valprint.c (pascal_val_print): Update.
4311 * jv-valprint.c (java_val_print): Update.
4313 * valprint.c (generic_val_print): Update.
4314 (print_function_pointer_address): Add 'options' argument. Remove
4315 'addressprint' argument. Update.
4316 * m2-valprint.c (print_unpacked_pointer): Update.
4317 * gnu-v3-abi.c (print_one_vtable): Update.
4318 (gnuv3_print_method_ptr): Update.
4319 * f-valprint.c (f_val_print): Update.
4320 * cp-valprint.c (cp_print_value_fields): Update.
4321 * valprint.h (print_function_pointer_address): Update.
4322 * c-valprint.c (c_val_print): Update.
4324 2012-05-18 Tom Tromey <tromey@redhat.com>
4326 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4327 directly corresponding to the found psymtab.
4328 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4329 (dw2_find_pc_sect_symtab): Use it.
4330 * block.h (blockvector_contains_pc): Declare.
4331 * block.c (find_block_in_blockvector): New function.
4332 (blockvector_for_pc_sect): Use it.
4333 (blockvector_contains_pc): New function.
4335 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4337 * mips-tdep.h (mips_write_pc): New prototype.
4338 * mips-tdep.c (mips_write_pc): Make external, add description.
4339 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4342 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4344 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4346 (mips_unwind_pc, mips_write_pc): Likewise.
4347 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4350 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4352 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4353 proc_warn, proc_error, proc_get_status, proc_flags,
4354 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4355 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4356 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4357 proc_stop_process, proc_wait_for_stop, proc_run_process,
4358 proc_set_traced_signals, proc_set_traced_faults,
4359 proc_set_traced_sysentry, proc_set_traced_sysexit,
4360 proc_set_held_signals, proc_get_held_signals,
4361 proc_get_traced_signals, proc_get_traced_faults,
4362 proc_get_traced_sysentry, proc_get_traced_sysexit,
4363 proc_clear_current_fault, proc_set_current_signal,
4364 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4365 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4366 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4367 proc_get_current_thread, proc_get_current_thread,
4368 proc_get_current_thread, proc_update_threads,
4369 proc_update_threads, proc_update_threads, proc_update_threads,
4370 proc_iterate_over_threads, procfs_find_new_threads,
4371 procfs_pid_to_str): Make static. Remove advance declaration.
4372 (proc_cursig): Make static. Conditionalized defintion on
4373 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4374 (proc_syscall, proc_set_kill_on_last_close,
4375 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4376 proc_get_pending_signals, proc_get_signal_actions,
4377 proc_trace_signal, proc_ignore_signal): Delete.
4379 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4381 * coffread.c (cs_section_address): Passing proper argument for
4382 `bfd_get_section_vma'.
4383 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4384 `bfd_get_section_flags'.
4385 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4386 `bfd_get_section_vma'.
4388 2012-05-16 Tom Tromey <tromey@redhat.com>
4391 * macrotab.h: (macro_define_special): Declare.
4392 (enum macro_special_kind): New.
4393 (struct macro_definition) <argc, replacement>: Update comments.
4394 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4395 (macro_define_object_internal): New function.
4396 (macro_define_object): Use it.
4397 (macro_define_special): New function.
4398 (fixup_definition): New function.
4399 (macro_lookup_definition, foreach_macro_in_scope)
4400 (foreach_macro): Use fixup_definition.
4401 * macroexp.h (macro_stringify): Declare.
4402 * macroexp.c (free_buffer_return_text): New function.
4403 (stringify): Constify "arg".
4404 (macro_stringify): New function.
4405 * dwarf2read.c (macro_start_file): Call macro_define_special.
4407 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4408 Maciej W. Rozycki <macro@mips.com>
4410 * breakpoint.h (bp_location): Add related_address member.
4411 * inferior.h (get_return_value): Take a pointer to struct value
4412 instead of struct type for the function requested.
4413 * value.h (using_struct_return): Likewise.
4414 * gdbarch.sh (return_value): Take a pointer to struct value
4415 instead of struct type for the function requested.
4416 * breakpoint.c (set_breakpoint_location_function): Initialize
4417 related_address for bp_gnu_ifunc_resolver breakpoints.
4418 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4419 requested function's address to gdbarch_return_value.
4420 * eval.c (evaluate_subexp_standard): Pass the requested
4421 function's address to using_struct_return.
4422 * infcall.c (call_function_by_hand): Pass the requested
4423 function's address to using_struct_return and
4424 gdbarch_return_value.
4425 * infcmd.c (get_return_value): Take a pointer to struct value
4426 instead of struct type for the function requested.
4427 (print_return_value): Update accordingly.
4428 (finish_command_continuation): Likewise.
4429 * stack.c (return_command): Pass the requested function's
4430 address to using_struct_return and gdbarch_return_value.
4431 * value.c (using_struct_return): Take a pointer to struct value
4432 instead of struct type for the function requested. Pass the
4433 requested function's address to gdbarch_return_value.
4434 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4435 New function_value member, replacing function_type.
4436 (bpfinishpy_dealloc): Update accordingly.
4437 (bpfinishpy_pre_stop_hook): Likewise.
4438 (bpfinishpy_init): Likewise. Record the requested function's
4440 * mips-tdep.c (mips_fval_reg): New enum.
4441 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4442 words put in GP registers.
4443 (mips_o64_push_dummy_call): Update a comment.
4444 (mips_o32_return_value): Take a pointer to struct value instead
4445 of struct type for the function requested and use it to check if
4446 using the MIPS16 calling convention. Return the designated
4447 general purpose registers for floating-point values returned in
4449 (mips_o64_return_value): Likewise.
4450 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4451 (ppc_sysv_abi_broken_return_value): Likewise.
4452 (ppc64_sysv_abi_return_value): Likewise.
4453 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4454 value instead of struct type for the function requested.
4455 * amd64-tdep.c (amd64_return_value): Likewise.
4456 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4457 * arm-tdep.c (arm_return_value): Likewise.
4458 * avr-tdep.c (avr_return_value): Likewise.
4459 * bfin-tdep.c (bfin_return_value): Likewise.
4460 * cris-tdep.c (cris_return_value): Likewise.
4461 * frv-tdep.c (frv_return_value): Likewise.
4462 * h8300-tdep.c (h8300_return_value): Likewise.
4463 (h8300h_return_value): Likewise.
4464 * hppa-tdep.c (hppa32_return_value): Likewise.
4465 (hppa64_return_value): Likewise.
4466 * i386-tdep.c (i386_return_value): Likewise.
4467 * ia64-tdep.c (ia64_return_value): Likewise.
4468 * iq2000-tdep.c (iq2000_return_value): Likewise.
4469 * lm32-tdep.c (lm32_return_value): Likewise.
4470 * m32c-tdep.c (m32c_return_value): Likewise.
4471 * m32r-tdep.c (m32r_return_value): Likewise.
4472 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4473 * m68k-tdep.c (m68k_return_value): Likewise.
4474 (m68k_svr4_return_value): Likewise.
4475 * m88k-tdep.c (m88k_return_value): Likewise.
4476 * mep-tdep.c (mep_return_value): Likewise.
4477 * microblaze-tdep.c (microblaze_return_value): Likewise.
4478 * mn10300-tdep.c (mn10300_return_value): Likewise.
4479 * moxie-tdep.c (moxie_return_value): Likewise.
4480 * mt-tdep.c (mt_return_value): Likewise.
4481 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4482 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4483 (ppc_sysv_abi_broken_return_value): Likewise.
4484 (ppc64_sysv_abi_return_value): Likewise.
4485 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4486 * rl78-tdep.c (rl78_return_value): Likewise.
4487 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4488 * rx-tdep.c (rx_return_value): Likewise.
4489 * s390-tdep.c (s390_return_value): Likewise.
4490 * score-tdep.c (score_return_value): Likewise.
4491 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4492 (sh_return_value_fpu): Likewise.
4493 * sh64-tdep.c (sh64_return_value): Likewise.
4494 * sparc-tdep.c (sparc32_return_value): Likewise.
4495 * sparc64-tdep.c (sparc64_return_value): Likewise.
4496 * spu-tdep.c (spu_return_value): Likewise.
4497 * tic6x-tdep.c (tic6x_return_value): Likewise.
4498 * v850-tdep.c (v850_return_value): Likewise.
4499 * vax-tdep.c (vax_return_value): Likewise.
4500 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4501 * xtensa-tdep.c (xtensa_return_value): Likewise.
4502 * gdbarch.c: Regenerate.
4503 * gdbarch.h: Regenerate.
4505 2012-05-15 Tom Tromey <tromey@redhat.com>
4507 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4509 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4511 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4512 of command in two error message.
4514 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4516 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4518 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4520 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4522 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4524 * NEWS (show auto-load scripts-directory): Add forgotten command.
4526 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4528 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4531 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4533 * amd64-tdep.c: Include features/i386/x32.c and
4534 features/i386/x32-avx.c.
4535 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4536 initialize_tdesc_x32_avx.
4538 2012-05-14 Stan Shebs <stan@codesourcery.com>
4541 * breakpoint.h (enum bptype): New type bp_dprintf.
4542 (struct breakpoint): New field extra_string.
4543 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4544 (create_breakpoint): Add extra_string arg.
4545 * breakpoint.c (dprintf_breakpoint_ops): New.
4546 (is_breakpoint): Add bp_dprintf.
4547 (bpstat_what): Add dprintf case.
4548 (bptype_string): Ditto.
4549 (print_one_breakpoint_location): Ditto.
4550 (init_bp_location): Ditto.
4551 (bkpt_print_mention): Ditto.
4552 (dprintf_style_enums): New array.
4553 (dprintf_style): New global.
4554 (dprintf_function): New global.
4555 (dprintf_channel): New global.
4556 (update_dprintf_command_list): New function.
4557 (update_dprintf_commands): New function.
4558 (init_breakpoint_sal): Add extra_string argument, handle it.
4559 (create_breakpoint_sal): Add extra_string argument.
4560 (create_breakpoints_sal): Add extra_string argument, update callers.
4561 (find_condition_and_thread): Add extra argument.
4562 (create_breakpoint): Add extra_string argument, record it.
4563 (dprintf_command): New function.
4564 (break_command_1): Add arg to create_breakpoint call.
4565 (handle_gnu_v3_exceptions): Ditto.
4566 (trace_command): Ditto.
4567 (ftrace_command): Ditto.
4568 (strace_command): Ditto.
4569 (bkpt_print_mention): Add dprintf case.
4570 (create_breakpoint_sal_default): Add extra_string argument.
4571 (_initialize_breakpoint): Add new commands.
4572 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4573 * python/py-breakpoint.c (bppy_init): Ditto.
4574 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4576 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4578 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4580 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4582 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4585 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4587 Add a new function gdb.find_pc_line to the Python API.
4588 * NEWS (Python Scripting): Add entry about the new function.
4589 * python/python.c (gdbpy_find_pc_line): New function which
4590 implements gdb.find_pc_line.
4591 (GdbMethods): Add entry for the new function.
4593 2012-05-12 Pedro Alves <palves@redhat.com>
4595 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4596 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4598 2012-05-12 Eli Zaretskii <eliz@gnu.org>
4600 * inferior.c: Include completer.h
4601 (initialize_inferiors): Set completer of add-inferior to
4604 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4606 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4607 gdbarch_ptr_bit for x32 core dump.
4609 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4611 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4612 and features/i386/x32-avx-linux.c.
4614 2012-05-11 Stan Shebs <stan@codesourcery.com>
4615 Kwok Cheung Yeung <kcy@codesourcery.com>
4617 * NEWS: Describe new info os commands.
4618 * common/linux-osdata.c (PID_T, TIME_T): Define.
4619 (MAX_PID_T_STRLEN): New.
4620 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4622 (command_from_pid): Add comment. Change to use PID_T.
4623 (commandline_from_pid): Change to use PID_T.
4624 (user_from_pid): Add comment.
4625 (get_process_owner): Add comment. Change to use PID_T and
4627 (get_number_of_cpu_cores): Add comment.
4628 (get_cores_used_by_process): Add comment. Change to use PID_T and
4630 (linux_xfer_osdata_processes): Change to use PID_T and
4632 (compare_processes): New function.
4633 (linux_xfer_osdata_processgroups): New function.
4634 (linux_xfer_osdata_threads): Change to use PID_T.
4635 (linux_xfer_osdata_fds): New function.
4636 (format_socket_state, print_sockets): New functions.
4637 (union socket_addr): New union.
4638 (linux_xfer_osdata_isockets): New function.
4639 (time_from_time_t, group_from_gid): New functions.
4640 (linux_xfer_osdata_shm): New function.
4641 (linux_xfer_osdata_sem): New function.
4642 (linux_xfer_osdata_msg): New function.
4643 (linux_xfer_osdata_modules): New function.
4644 (osdata_table): Add new entries.
4645 * common/buffer.c (buffer_xml_printf): Add support for long and
4646 long long format specifiers.
4648 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4650 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4651 (tdesc_x32_avx_linux): Likewise.
4653 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4655 Implement multi-component --with-auto-load-dir.
4656 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4658 (--with-auto-load-safe-path): Update the default value description.
4659 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4661 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4662 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4663 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4664 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4665 "set auto-load scripts-directory".
4666 * config.in: Regenerate.
4667 * configure: Regenerate.
4668 * configure.ac (--with-auto-load-dir): New configure option.
4669 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4671 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4673 Provide $ddir substitution for --with-auto-load-safe-path.
4674 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4676 * auto-load.c: Include observer.h.
4677 (auto_load_safe_path_vec_update): Call substitute_path_component for
4678 each component. New variable ddir_subst.
4679 (auto_load_gdb_datadir_changed): New function.
4680 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4681 AUTO_LOAD_SAFE_PATH. New comment.
4682 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4683 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4684 * config.in: Regenerate.
4685 * configure: Regenerate.
4686 * configure.ac (--auto-load-safe-path): Rename
4687 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4688 GDB_DATADIR/auto-load.
4689 * defs.h (substitute_path_component): New declaration.
4690 * top.c: Include observer.h.
4691 (set_gdb_datadir): New function.
4692 (init_main): Install it for "set data-directory".
4693 * utils.c (substitute_path_component): New function.
4695 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4697 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4698 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4699 DEBUG_FILE_DIRECTORY. Handle multiple components of
4700 DEBUG_FILE_DIRECTORY.
4702 2012-05-10 Tom Tromey <tromey@redhat.com>
4704 * dwarf2read.c (recursively_write_psymbols): New function.
4705 (write_psymtabs_to_index): Use it.
4707 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4709 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4710 (load_partial_comp_unit): Update.
4711 (queue_comp_unit): Add argument 'pretend_language'.
4712 (process_queue): Update.
4713 (psymtab_to_symtab_1): Skip dependencies that have a user.
4714 (load_partial_comp_unit_reader): Give meaning to the 'data'
4716 (load_full_comp_unit): Add 'pretend_language' argument.
4717 (process_full_comp_unit): Add 'pretend_language' argument. Set
4719 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4721 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4722 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4724 (prepare_one_comp_unit): Add 'pretend_language' argument.
4726 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4727 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4728 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4729 (dw2_do_instantiate_symtab): Check whether symtab was read in
4731 (dw2_instantiate_symtab): Add assertion. Call
4732 process_cu_includes.
4733 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4734 (partial_symtab_p): New typedef.
4735 (set_partial_user): New function.
4736 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4737 (scan_partial_symbols): Add imported CU to imported_symtabs.
4738 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4739 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4740 (get_symtab, recursively_compute_inclusions)
4741 (compute_symtab_includes, process_cu_includes)
4742 (process_imported_unit_die): New functions.
4743 (process_die) <DW_TAG_imported_unit>: New case.
4744 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4746 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4748 (struct partial_die_info) <locdesc>: Remove.
4750 (process_psymtab_comp_unit): Add 'read_partial' argument.
4752 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4753 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4754 (add_partial_symbol): Update.
4755 (process_die): Handle DW_TAG_partial_unit.
4756 (read_file_scope): Update comment.
4757 (load_partial_dies): Handle DW_TAG_imported_unit.
4758 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4759 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4761 2012-05-10 Tom Tromey <tromey@redhat.com>
4763 * cc-with-dwz.sh: New file.
4765 2012-05-10 Tom Tromey <tromey@redhat.com>
4767 * symtab.h (struct symtab) <includes, user>: New fields.
4768 * block.h (struct block_iterator) <d, idx, which>: New fields.
4769 * block.c (initialize_block_iterator, find_iterator_symtab)
4770 (block_iterator_step, block_iter_name_step)
4771 (block_iter_match_step): New functions.
4772 (block_iterator_first, block_iterator_next)
4773 (block_iter_name_first, block_iter_name_next)
4774 (block_iter_match_first, block_iter_match_next): Rewrite.
4775 (get_block_symtab): New function.
4777 2012-05-10 Tom Tromey <tromey@redhat.com>
4779 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4781 * jit.c (finalize_symtab): Use allocate_global_block,
4783 * buildsym.c (finish_block_internal): New function, from old
4785 (finish_block): Rewrite.
4786 (end_symtab): Use finish_block_internal, set_block_symtab.
4787 * block.h (struct global_block): New.
4788 (allocate_global_block, set_block_symtab): Declare.
4789 * block.c (allocate_global_block, set_block_symtab): New
4792 2012-05-10 Tom Tromey <tromey@redhat.com>
4794 * psymtab.c (partial_map_expand_apply): Add assertion.
4795 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4796 (psymtab_to_symtab): Find unshared psymtab.
4797 (dump_psymtab): Print including psymtabs.
4798 (recursively_search_psymtabs): New function.
4799 (expand_symtabs_matching_via_partial): Use it.
4800 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4802 (enum psymtab_search_status): New.
4804 2012-05-10 Tom Tromey <tromey@redhat.com>
4806 * tracepoint.c (scope_info): Update.
4807 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4808 (find_pc_sect_symtab, search_symbols)
4809 (default_make_symbol_completion_list_break_on)
4810 (make_file_symbol_completion_list): Update.
4811 * symmisc.c (dump_symtab_1): Update.
4812 * stack.c (print_frame_args, iterate_over_block_locals)
4813 (print_frame_labels, iterate_over_block_arg_vars): Update.
4814 * python/py-block.c (block_object) <dict>: Remove.
4816 <iter>: Change type.
4817 (blpy_iter): Update.
4818 (blpy_block_syms_iternext): Update.
4819 * psymtab.c (map_block): Use block iterators.
4820 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4821 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4822 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4823 * infrun.c (check_exception_resume): Update.
4824 * cp-support.c (make_symbol_overload_list_block): Update.
4825 * coffread.c (patch_opaque_types): Update.
4826 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4827 * block.h (struct block_iterator): New.
4828 (block_iterator_first, block_iterator_next, block_iter_name_first)
4829 (block_iter_name_next, block_iter_match_first)
4830 (block_iter_match_next): Declare.
4831 (ALL_BLOCK_SYMBOLS): Redefine.
4832 * block.c (block_iterator_first, block_iterator_next)
4833 (block_iter_name_first, block_iter_name_next)
4834 (block_iter_match_first, block_iter_match_next): New functions.
4835 * ada-lang.c (ada_add_block_symbols)
4836 (ada_make_symbol_completion_list): Use block iterator.
4838 2012-05-10 Tom Tromey <tromey@redhat.com>
4840 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4841 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4842 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4843 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4844 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4847 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4849 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4850 print-file-var-lib2.c, print-file-var-main.c and
4851 print-file-var.exp (located in gdb/testsuite/gdb.base).
4853 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4855 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4856 try locating the symbol in the symbol's own objfile first, before
4857 extending the search to all objfiles.
4858 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4859 out of lookup_symbol_aux_symtabs.
4860 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4861 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4862 Do not search EXCLUDE_OBJFILE.
4863 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4864 (lookup_symbol_global): Search for matches in the block's objfile
4865 first, before searching all other objfiles.
4867 2012-05-10 Tristan Gingold <gingold@adacore.com>
4869 * printcmd.c (set_command): Add pre/post inc/dec.
4871 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
4873 * gdb.1: Document -ex option.
4875 2012-05-09 Joel Brobecker <brobecker@adacore.com>
4877 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
4878 * inferior.h (AT_SYMBOL): Delete.
4880 2012-05-09 Joel Brobecker <brobecker@adacore.com>
4882 * mips-tdep.c (mips_push_dummy_code): New function.
4883 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
4884 ON_STACK and install mips_push_dummy_code as our gdbarch
4885 push_dummy_code routine.
4887 2012-05-09 Pedro Alves <palves@redhat.com>
4889 * target.c (set_maintenance_target_async_permitted): Rename to ...
4890 (set_target_async_command): ... this.
4891 (show_maintenance_target_async_permitted): Rename to ...
4892 (show_target_async_command): ... this.
4893 (initialize_targets): Adjust.
4895 2012-05-08 Doug Evans <dje@google.com>
4897 * go-exp.y (classify_name): Add missing assignment of fields of
4900 2012-05-08 Eli Zaretskii <eliz@gnu.org>
4902 Display the ">" prompt in interactive mode while reading canned
4903 commands, even when the current interpreter is MI.
4905 * interps.c (interp_set_temp): New function.
4907 * interps.h (interp_set_temp): Add prototype.
4909 * cli/cli-script.c (restore_interp): New cleanup function.
4910 (read_command_lines): Temporarily override the current interpreter
4911 with CLI and arrange for restoring the original one.
4913 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
4915 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
4917 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4919 * probe.c (parse_probes): Move conditional to check for
4920 debuginfo files from here...
4921 * stap-probe.c (stap_get_probes): ... to here.
4923 2012-05-07 Mark Kettenis <kettenis@gnu.org>
4924 H.J. Lu <hongjiu.lu@intel.com>
4926 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
4927 `movl %esp, %ebp' for the X32 ABI.
4929 2012-05-07 Tom Tromey <tromey@redhat.com>
4931 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
4933 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
4934 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
4935 (dwarf_stack_op_name): Remove.
4936 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
4937 (decode_locdesc): Use get_DW_OP_name.
4938 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
4939 (dwarf2_compile_expr_to_ax): Likewise.
4940 (disassemble_dwarf_expression): Likewise.
4941 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
4943 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
4945 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
4946 (sh_linux_sigtramp_cache): New function.
4947 (sh_linux_sigreturn_init): New function.
4948 (sh_linux_rt_sigreturn_init): New function.
4949 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
4951 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
4953 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
4954 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
4955 (sh_linux_init_abi): Add init calls to register new tramp_frame
4956 definitions under 32-bit SH, update comments.
4958 2012-05-07 Pedro Alves <palves@redhat.com>
4962 * amd64-linux-tdep.c: Include glibc-tdep.h.
4963 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
4964 gdbarch_skip_solib_resolver callback.
4966 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4968 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
4969 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
4970 (show_auto_load_safe_path): Check any-directory by comparison with "/".
4971 (add_auto_load_safe_path): Change the error message.
4972 (_initialize_auto_load): Change the "safe-path" help text.
4973 * configure: Regenerate
4974 * configure.ac (--without-auto-load-safe-path): Set
4975 WITH_AUTO_LOAD_SAFE_PATH to /.
4977 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
4979 * stap-probe.h: Do not include unecessary `probe.h'.
4981 2012-05-05 Alan Modra <amodra@gmail.com>
4983 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
4984 bfd_und_section_ptr.
4985 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
4986 and bfd_com_section_ptr.
4988 2012-05-04 Joel Brobecker <brobecker@adacore.com>
4990 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
4992 2012-05-04 Joel Brobecker <brobecker@adacore.com>
4994 * windows-nat.h (segment_register_p_ftype): New typedef.
4995 (windows_set_segment_register_p): Add declaration.
4996 * windows-nat.c (segment_register_p): New static global.
4997 (windows_set_segment_register_p): New function.
4998 (do_windows_fetch_inferior_registers): Add special handling
4999 for segment registers.
5000 * amd64-windows-nat.c: #include "amd64-tdep.h".
5001 (amd64_windows_segment_register_p): New function.
5002 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5003 * i386-windows-nat.c: #include "i386-tdep.h".
5004 (i386_windows_segment_register_p): New function.
5005 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5007 2012-05-04 Tristan Gingold <gingold@adacore.com>
5009 * printcmd.c (set_command): Emit a warning if the expression is not
5012 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5014 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5017 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5019 * stap-probe.c (stap_is_operator): Change declaration.
5020 (stap_get_opcode): Change return value.
5021 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5022 `stap_parse_argument_1'.
5024 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5026 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5029 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5031 Add two new methods global_block and static_block to gdb.Symtab
5033 * NEWS (Python scripting): Add entry about the new methods.
5034 * python/py-symtab.c (stpy_global_block): New function which
5035 implements the gdb.Symtab.global_block() method.
5036 (stpy_static_block): New function which implements the
5037 gdb.Symtab.static_block() method.
5038 (symtab_object_methods): Add entries for the two new methods.
5040 2012-05-03 Doug Evans <dje@google.com>
5042 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5045 2012-05-03 Yao Qi <yao@codesourcery.com>
5047 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5049 (i386_process_record): Ditto.
5051 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5053 * infcall.c (unwind_on_signal_p): Make static.
5055 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5057 * sol-thread.c (solaris_pid_to_str): Make static.
5058 (_initialize_sol_thread): Add prototype.
5060 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5062 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5064 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5066 * MAINTAINERS: Remove myself.
5068 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5070 Fix --without-auto-load-safe-path for MS-Windows host platform.
5071 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5073 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5075 * gdb_curses.h: Undefine KEY_EVENT before including curses
5076 headers. Move "#undef MOUSE_MOVED" before any curses header
5079 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5081 * features/i386/i386-mmx-linux.c: Regenerate.
5082 * features/rs6000/powerpc-32.c: Likewise.
5083 * features/rs6000/powerpc-32l.c: Likewise.
5084 * features/rs6000/powerpc-403.c: Likewise.
5085 * features/rs6000/powerpc-403gc.c: Likewise.
5086 * features/rs6000/powerpc-405.c: Likewise.
5087 * features/rs6000/powerpc-505.c: Likewise.
5088 * features/rs6000/powerpc-601.c: Likewise.
5089 * features/rs6000/powerpc-602.c: Likewise.
5090 * features/rs6000/powerpc-603.c: Likewise.
5091 * features/rs6000/powerpc-604.c: Likewise.
5092 * features/rs6000/powerpc-64.c: Likewise.
5093 * features/rs6000/powerpc-64l.c: Likewise.
5094 * features/rs6000/powerpc-750.c: Likewise.
5095 * features/rs6000/powerpc-860.c: Likewise.
5096 * features/rs6000/powerpc-e500.c: Likewise.
5097 * features/rs6000/powerpc-e500l.c: Likewise.
5098 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5099 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5100 * features/rs6000/rs6000.c: Likewise.
5102 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5104 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5106 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5107 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5108 (stap_parse_argument) <e>: Likewise.
5109 (handle_stap_probe) <byte_order>: Likewise.
5111 2012-04-30 Doug Evans <dje@google.com>
5113 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5114 init_and_read_dies_worker. All callers updated.
5115 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5116 replaced with init_cutu_and_read_dies.
5117 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5118 (find_partial_die): Remove FIXME. Don't free current CU.
5120 2012-04-30 Sterling Augustine <saugustine@google.com>
5122 * contrib: New directory.
5123 * contrib/test_pubnames_and_indexes.py: New file.
5125 2012-04-30 Doug Evans <dje@google.com>
5127 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5128 All callers updated.
5129 (init_cu_die_reader): Verify the section is non-empty.
5130 (dwarf_decode_line_header): Don't dereference section->asection
5131 until we know the section is present.
5133 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5135 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5138 2012-04-29 Yao Qi <yao@codesourcery.com>
5140 * gdb-code-style.el: New hook gdb-markup-hook
5141 and gdb-comment-hook.
5143 2012-04-28 Doug Evans <dje@google.com>
5145 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5146 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5148 * symfile.h (dwarf2_debug_sections): New member addr.
5149 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5150 (ctx_no_get_addr_index): New function.
5151 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5152 (ctx_no_get_addr_index): Declare.
5153 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5154 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5155 (dwarf_expr_ctx_funcs): Update.
5156 (needs_get_addr_index): New function.
5157 (needs_frame_ctx_funcs): Update.
5158 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5159 * dwarf2read.c: #include "gdbcore.h".
5160 (dwarf2_per_objfile): New members addr, dwo_files.
5161 (dwarf2_elf_names): Add entry for addr.
5162 (struct dwo_section_names): New type.
5163 (dwo_section_names): New static global.
5164 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5165 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5166 old debug_types_section member updated to use this.
5167 Rename member debug_types_section to info_or_types_section,
5169 (signatured_type): Rename member type_offset to type_offset_in_tu,
5170 all uses updated. New member type_offset_in_section.
5171 (struct dwo_sections): New type.
5172 (struct dwo_unit): New type.
5173 (struct dwo_file): New type.
5174 (die_reader_specs): New member dwo_file.
5175 (dwarf2_locate_sections): Watch for .debug_addr.
5176 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5177 (dwarf2_read_section): Get bfd of section from bfd's asection,
5179 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5180 (create_signatured_type_table_from_index): Initialize
5181 sig_type->info_or_types_section.
5182 (dw2_get_file_names): Statement lists for type units with DWO files
5183 live in the DWO file.
5184 (create_debug_types_hash_table): New function.
5185 (create_all_type_units): Rewrite.
5186 (init_cu_die_reader): New arg dwo_file, all callers updated.
5187 (init_and_read_dies_worker): Get section from
5188 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5189 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5190 continue reading the CU/TU from there.
5191 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5192 updated. Get section from this_cu->info_or_types_section.
5193 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5194 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5195 DW_FORM_GNU_str_index.
5196 (hash_dwo_file, eq_dwo_file): New functions.
5197 (allocate_dwo_file_hash_table): New function.
5198 (hash_dwo_unit, eq_dwo_unit): New functions.
5199 (allocate_dwo_unit_table): New function.
5200 (dwarf2_locate_dwo_sections): New function.
5201 (struct create_dwo_info_table_data): New type.
5202 (create_debug_info_hash_table_reader): New function.
5203 (create_debug_info_hash_table): New function.
5204 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5205 (lookup_dwo_file): New function.
5206 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5207 (free_dwo_file, free_dwo_file_cleanup): New functions.
5208 (free_dwo_file_from_slot, free_dwo_files): New functions.
5209 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5210 (dwarf2_record_block_ranges): Ditto.
5211 (read_partial_die): Ditto.
5212 (process_enumeration_scope): Update to use type_offset_in_section.
5213 (read_full_die_1): New function.
5214 (read_full_die): Rewrite.
5215 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5216 DW_FORM_GNU_str_index.
5217 (read_addr_index_1, read_addr_index): New functions.
5218 (read_addr_index_from_leb128): New function.
5219 (struct dwarf2_read_addr_index_data): New type.
5220 (dwarf2_read_addr_index_reader): New function.
5221 (dwarf2_read_addr_index): New function.
5222 (read_str_index): New function.
5223 (leb128_size): New function.
5224 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5225 If processing a type unit from a DWO file, get the line section
5227 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5228 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5229 DW_FORM_GNU_str_index.
5230 (lookup_die_type): Check whether section offset of type's die is
5231 known before looking it up. Remove assert. Condition can
5232 legimately happen for inter-cu type references.
5233 (dwarf_attr_name): Handle Fission attributes.
5234 (dwarf_form_name): Handle Fission forms.
5235 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5236 DW_FORM_GNU_str_index.
5237 (follow_die_sig): Update to use type_offset_in_section.
5238 (decode_locdesc): New case DW_OP_GNU_addr_index.
5239 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5240 DW_FORM_GNU_str_index.
5241 (cu_debug_loc_section): New function.
5242 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5243 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5244 Free DWO files if present.
5245 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5247 Refactor DIE reading.
5248 * dwarf2read.c (dwarf2_per_objfile): Replace members
5249 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5250 (die_reader_specs): New member "die_section". Temporarily make
5251 member "buffer" non-const, pending constifying all info_ptr uses.
5252 (die_reader_func_ftype): New typedef.
5253 (dw2_get_file_names_reader): New function.
5254 (dw2_get_file_names): Rewrite.
5255 (read_and_check_type_unit_head): Rename arg type_offset to
5257 (create_all_type_units): Improve debugging message.
5258 Improve dummy type unit check.
5259 (init_cu_die_reader): New arg "section". All callers updated.
5260 (init_and_read_dies_worker): New function.
5261 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5262 (init_cutu_and_read_dies_no_follow): New function.
5263 (init_cutu_and_read_dies_simple): New function.
5264 (process_psymtab_comp_unit_reader): New function.
5265 (process_psymtab_comp_unit): Delete args section,
5266 is_debug_types_section. Rewrite. All callers updated.
5267 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5268 All callers updated. Rewrite.
5269 (load_partial_comp_unit_reader): New function.
5270 (load_partial_comp_unit): Rewrite.
5271 (skip_children): New arg reader. Delete args buffer, cu.
5272 All callers updated.
5273 (skip_one_die): New arg reader. Delete args buffer, cu.
5274 All callers updated.
5275 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5276 All callers updated.
5277 (load_full_comp_unit_reader): New function.
5278 (load_full_comp_unit): Rewrite.
5279 (read_comp_unit): Delete.
5280 (read_die_and_children_1): Delete, contents moved ...
5281 (read_die_and_children): ... here.
5282 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5283 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5284 All callers updated.
5285 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5286 All callers updated.
5287 (find_partial_die): Rewrite load_all_dies support.
5288 (read_attribute_value): New arg reader. Delete args abfd, cu.
5289 All callers updated.
5290 (read_attribute): New arg reader. Delete args abfd, cu.
5291 All callers updated.
5292 (load_full_type_unit): Add assert.
5293 (read_signatured_type_reader): New function.
5294 (read_signatured_type): Rewrite.
5295 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5296 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5297 All callers updated. Set per_cu->cu = NULL after freeing it.
5298 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5299 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5300 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5301 (set_die_type): Update.
5302 (get_die_type_at_offset): Update.
5303 (read_file_scope): Call prepare_one_comp_unit.
5304 (read_type_unit_scope): Ditto.
5305 (prepare_one_comp_unit): Set producer if present.
5307 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5309 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5310 gettext function on `error'.
5312 2012-04-27 Doug Evans <dje@google.com>
5314 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5317 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5318 Tom Tromey <tromey@redhat.com>
5320 * breakpoint.c (struct breakpoint_objfile_data)
5321 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5322 <exception_probes>: New fields.
5323 (free_breakpoint_probes): New function.
5324 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5325 `_Unwind_DebugHook'.
5326 (create_exception_master_breakpoint): Likewise.
5327 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5328 * infrun.c: Including necessary header files for handling SystemTap
5330 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5331 via SystemTap probes.
5332 (check_exception_resume): Remove `func' argument. Handle exception
5333 unwinding breakpoint set via a SystemTap probe.
5334 (insert_exception_resume_from_probe): New function.
5336 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5337 Tom Tromey <tromey@redhat.com>
5338 Jan Kratochvil <jan.kratochvil@redhat.com>
5340 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5341 (COMMON_OBS): Likewise.
5342 (HFILES_NO_SRCDIR): Add `probe'.
5343 * NEWS: Mention support for static and SystemTap probes.
5344 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5345 SystemTap probes' arguments parser.
5346 * arm-linux-tdep.c: Including headers needed to perform the parsing
5347 of SystemTap probes' arguments.
5348 (arm_stap_is_single_operand): New function.
5349 (arm_stap_parse_special_token): Likewise.
5350 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5351 probes' arguments parser.
5352 * ax-gdb.c (require_rvalue): Removing static declaration.
5353 (gen_expr): Likewise.
5354 * ax-gdb.h (gen_expr): Declaring function.
5355 (require_rvalue): Likewise.
5356 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5357 (bkpt_probe_breakpoint_ops): New variable.
5358 (momentary_breakpoint_from_master): Set the `probe' value.
5359 (add_location_to_breakpoint): Likewise.
5360 (break_command_1): Using proper breakpoint_ops according to the
5361 argument passed by the user in the command line.
5362 (bkpt_probe_insert_location): New function.
5363 (bkpt_probe_remove_location): Likewise.
5364 (bkpt_probe_create_sals_from_address): Likewise.
5365 (bkpt_probe_decode_linespec): Likewise.
5366 (tracepoint_probe_create_sals_from_address): Likewise.
5367 (tracepoint_probe_decode_linespec): Likewise.
5368 (tracepoint_probe_breakpoint_ops): New variable.
5369 (trace_command): Using proper breakpoint_ops according to the
5370 argument passed by the user in the command line.
5371 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5372 static probes on breakpoints and tracepoints.
5373 * breakpoint.h (struct bp_location) <probe>: New field.
5374 * cli-utils.c (skip_spaces_const): New function.
5375 (extract_arg): Likewise.
5376 * cli-utils.h (skip_spaces_const): Likewise.
5377 (extract_arg): Likewise.
5378 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5379 * configure.ac: Append `stap-probe.o' to be generated when ELF
5381 * configure: Regenerate.
5382 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5383 * elfread.c: Include `probe.h' and `arch-utils.h'.
5384 (probe_key): New variable.
5385 (elf_get_probes): New function.
5386 (elf_get_probe_argument_count): Likewise.
5387 (elf_evaluate_probe_argument): Likewise.
5388 (elf_compile_to_ax): Likewise.
5389 (elf_symfile_relocate_probe): Likewise.
5390 (stap_probe_key_free): Likewise.
5391 (elf_probe_fns): New variable.
5392 (elf_sym_fns): Add `sym_probe_fns' value.
5393 (elf_sym_fns_lazy_psyms): Likewise.
5394 (elf_sym_fns_gdb_index): Likewise.
5395 (_initialize_elfread): Initialize objfile cache for static
5397 * gdb_vecs.h (struct probe): New forward declaration.
5398 (probe_p): New VEC declaration.
5399 * gdbarch.c: Regenerate.
5400 * gdbarch.h: Regenerate.
5401 * gdbarch.sh (stap_integer_prefix): New variable.
5402 (stap_integer_suffix): Likewise.
5403 (stap_register_prefix): Likewise.
5404 (stap_register_suffix): Likewise.
5405 (stap_register_indirection_prefix): Likewise.
5406 (stap_register_indirection_suffix): Likewise.
5407 (stap_gdb_register_prefix): Likewise.
5408 (stap_gdb_register_suffix): Likewise.
5409 (stap_is_single_operand): New function.
5410 (stap_parse_special_token): Likewise.
5411 (struct stap_parse_info): Forward declaration.
5412 * i386-tdep.c: Including headers needed to perform the parsing
5413 of SystemTap probes' arguments.
5414 (i386_stap_is_single_operand): New function.
5415 (i386_stap_parse_special_token): Likewise.
5416 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5417 probes' arguments parser.
5418 * i386-tdep.h (i386_stap_is_single_operand): New function.
5419 (i386_stap_parse_special_token): Likewise.
5420 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5421 * mipsread.c (ecoff_sym_fns): Likewise.
5422 * objfiles.c (objfile_relocate1): Support relocation for static
5424 * parse.c (prefixify_expression): Remove static declaration.
5425 (initialize_expout): Likewise.
5426 (reallocate_expout): Likewise.
5427 * parser-defs.h (initialize_expout): Declare function.
5428 (reallocate_expout): Likewise.
5429 (prefixify_expression): Likewise.
5430 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5431 of SystemTap probes' arguments.
5432 (ppc_stap_is_single_operand): New function.
5433 (ppc_stap_parse_special_token): Likewise.
5434 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5435 probes' arguments parser.
5436 * probe.c: New file, for generic statically defined probe support.
5437 * probe.h: Likewise.
5438 * s390-tdep.c: Including headers needed to perform the parsing of
5439 SystemTap probes' arguments.
5440 (s390_stap_is_single_operand): New function.
5441 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5442 probes' arguments parser.
5443 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5444 * stap-probe.c: New file, for SystemTap probe support.
5445 * stap-probe.h: Likewise.
5446 * symfile.h: Include `gdb_vecs.h'.
5447 (struct sym_probe_fns): New struct.
5448 (struct sym_fns) <sym_probe_fns>: New field.
5449 * symtab.c (init_sal): Initialize `probe' field.
5450 * symtab.h (struct probe): Forward declaration.
5451 (struct symtab_and_line) <probe>: New field.
5452 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5454 (stop_tracing): Likewise.
5455 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5457 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5458 Tom Tromey <tromey@redhat.com>
5460 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5461 and to compile agent expressions.
5462 * infrun.c (siginfo_make_value): New argument `ignore'.
5463 (siginfo_funcs): New struct.
5464 (_initialize_infrun): New argument when calling
5465 `create_internalvar_type_lazy'.
5466 * thread.c (thread_id_make_value): New argument `ignore'.
5467 (thread_funcs): New struct.
5468 (_initialize_thread): New argument when calling
5469 `create_internalvar_type_lazy'.
5470 * tracepoint.c (sdata_make_value): New argument `ignore'.
5471 (sdata_funcs): New struct.
5472 (_initialize_tracepoint): New argument when calling
5473 `create_internalvar_type_lazy'.
5474 * value.c (make_value): New struct.
5475 (create_internalvar_type_lazy): New argument `data'.
5476 (compile_internalvar_to_ax): New function.
5477 (value_of_internalvar): Properly handling `make_value' case.
5478 (clear_internalvar): Likewise.
5479 (show_convenience): Adding `TRY_CATCH' block.
5480 * value.h (internalvar_make_value): Delete, replace by...
5481 (struct internalvar_funcs): ... this.
5482 (create_internalvar_type_lazy) <fun>: Delete argument.
5483 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5484 (compile_internalvar_to_ax): New function.
5485 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5486 (tlb_funcs): New struct.
5487 (_initialize_windows_tdep): New argument when calling
5488 `create_internalvar_type_lazy'.
5490 2012-04-27 Mark Wielaard <mjw@redhat.com>
5492 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5493 see whether it is an address or a constant offset from DW_AT_low_pc.
5494 (dwarf2_record_block_ranges): Likewise.
5495 (read_partial_die): Likewise.
5497 2012-04-26 Mark Wielaard <mjw@redhat.com>
5499 * MAINTAINERS (Write After Approval): Add myself to the list.
5501 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5503 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5504 (proc_prettyprint_signal): Likewise.
5505 (proc_prettyprint_faultset): Likewise.
5506 (proc_prettyprint_fault): Likewise.
5507 (proc_prettyprint_actionset): Likewise.
5508 (proc_prettyprint_flags): Move to new proc-flags.c section.
5509 (proc_prettyfprint_flags): New prototype.
5510 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5511 (proc_syscall, proc_cursig): Likewise.
5512 (proc_set_kill_on_last_close): Likewise.
5513 (proc_unset_kill_on_last_close): Likewise.
5514 (proc_set_watchpoint): Make static.
5515 (proc_delete_dead_threads): Likewise.
5516 (procfs_set_watchpoint): Likewise.
5517 (_initialize_procfs): Add prototype.
5518 * proc-events.c: Include proc-utils.h.
5519 (init_syscall_table): Make static.
5520 * proc-api.c (_initialize_proc_api): Add prototype.
5521 * proc-flags.c: Include proc-utils.h.
5523 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5525 * configure.ac: Add AC_ARG_PROGRAM.
5526 * configure: Regenerate.
5528 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5530 Fix DW_AT_lower_bound defaults for DWARF-4+.
5531 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5532 high. New variable low_default_is_valid. Implement DWARF-4+
5533 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5534 no default by the DWARF standard.
5536 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5537 Maciej W. Rozycki <macro@codesourcery.com>
5539 * infrun.c (handle_inferior_event): Move the check for return
5540 trampolines ahead of the check for function trampolines.
5541 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5542 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5543 (mips_str_mips16_ret_stub): Likewise.
5544 (mips_str_call_fp_stub): Likewise.
5545 (mips_str_call_stub): Likewise.
5546 (mips_str_fn_stub): Likewise.
5547 (mips_str_pic): Likewise.
5548 (mips_in_frame_stub): New function.
5549 (mips_unwind_pc): Return the return address rather than the PC
5550 if the PC of an intermediate frame is inside a call thunk.
5551 (mips_is_stub_suffix): New function.
5552 (mips_is_stub_mode): Likewise.
5553 (mips_get_mips16_fn_stub_pc): Likewise.
5554 (mips_skip_mips16_trampoline_code): Update to handle all the
5555 currently generated stub types. Don't recurse into __fn_stub
5556 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5557 Use cooked register accesses.
5558 (mips_in_return_stub): Reintroduce function.
5559 (mips_skip_trampoline_code): Traverse trampolines recursively.
5560 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5562 2012-04-26 Joel Brobecker <brobecker@adacore.com>
5566 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5568 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5569 * features/arm-with-m-vfp-d16.xml: New file. Describes
5570 Cortex-M with VFPv4-sp-d16 FPU register layout.
5571 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5572 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5573 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5574 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5575 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5577 2012-04-25 Doug Evans <dje@google.com>
5579 * cli/cli-decode.c (print_doc_line): Use stream instead of
5582 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5584 * features/arm-with-iwmmxt.c: Regenerate.
5585 * features/arm-with-m-fpa-layout.c: Likewise.
5586 * features/arm-with-m.c: Likewise.
5587 * features/arm-with-neon.c: Likewise.
5588 * features/arm-with-vfpv2.c: Likewise.
5589 * features/arm-with-vfpv3.c: Likewise.
5590 * features/mips-dsp-linux.c: Likewise.
5591 * features/mips-linux.c: Likewise.
5592 * features/mips64-dsp-linux.c: Likewise.
5593 * features/mips64-linux.c: Likewise.
5594 * features/s390-linux32.c: Likewise.
5595 * features/s390-linux32v1.c: Likewise.
5596 * features/s390-linux32v2.c: Likewise.
5597 * features/s390-linux64.c: Likewise.
5598 * features/s390-linux64v1.c: Likewise.
5599 * features/s390-linux64v2.c: Likewise.
5600 * features/s390x-linux64.c: Likewise.
5601 * features/s390x-linux64v1.c: Likewise.
5602 * features/s390x-linux64v2.c: Likewise.
5603 * features/tic6x-c62x-linux.c: Likewise.
5604 * features/tic6x-c62x.c: Likewise.
5605 * features/tic6x-c64x-linux.c: Likewise.
5606 * features/tic6x-c64x.c: Likewise.
5607 * features/tic6x-c64xp-linux.c: Likewise.
5608 * features/tic6x-c64xp.c: Likewise.
5609 * target-descriptions.c: Only generate `field_type' and `type'
5610 variables when needed.
5612 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5614 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5616 2012-04-25 Doug Evans <dje@google.com>
5618 Initial pass at Go language support.
5620 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5622 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5623 (YYFILES): Add go-exp.c.
5624 (YYOBJ): Add go-exp.o.
5625 (local-maintainer-clean): Delete go-exp.c.
5626 * defs.h (enum language): Add language_go.
5627 * dwarf2read.c: #include "go-lang.h".
5628 (fixup_go_packaging): New function.
5629 (process_full_comp_unit): Call it when processing Go CUs.
5630 (dwarf2_physname): Add Go support.
5631 (read_file_scope): Handle missing language spec for GNU Go.
5632 (set_cu_language): Handle DW_LANG_Go.
5633 * go-exp.y: New file.
5634 * go-lang.h: New file.
5635 * go-lang.c: New file.
5636 * go-typeprint.c: New file.
5637 * go-valprint.c: New file.
5638 * symtab.c: #include "go-lang.h".
5639 (symbol_set_language): Handle language_go.
5640 (symbol_find_demangled_name, symbol_set_names): Ditto.
5641 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5643 2012-04-24 Jim Meyering <meyering@redhat.com>
5645 avoid a few strncpy-induced buffer overruns
5646 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5647 fname and psargs before trying to concatenate.
5648 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5649 "name" before applying strchr.
5651 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5653 * CONTRIBUTE: Use unified diff instead of context diff when
5656 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5658 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5659 code. Handle JR.HB correctly.
5661 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5664 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5665 with the other MIPS16 helpers.
5667 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5669 * observer.sh: Conditionally declare `args', thus cleaning up
5670 unused instances of this variable.
5672 2012-04-24 Yao Qi <yao@codesourcery.com>
5674 Revert this patch to allow breakpoint always-inserted
5676 2011-12-05 Pedro Alves <pedro@codesourcery.com>
5677 * breakpoint.c: Include record.h.
5678 (breakpoints_always_inserted_mode): Return false when the record
5681 * breakpoint.c (iterate_over_bp_locations): New.
5682 * breakpoint.h: Declare.
5683 New typedef walk_bp_location_callback.
5684 * record.c (record_open): Call record_init_record_breakpoints.
5685 (record_sync_record_breakpoints): New.
5686 (record_init_record_breakpoints): New.
5687 * NEWS: Mention supporting breakpoint always-inserted mode in
5690 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5692 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5695 2012-04-24 Yao Qi <yao@codesourcery.com>
5697 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5698 (is_catchpoint): ... it.
5699 (print_one_breakpoint_location): Caller update.
5700 * breakpoint.h: Update declaration.
5702 2012-04-23 David S. Miller <davem@davemloft.net>
5704 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5706 2012-04-23 Tom Tromey <tromey@redhat.com>
5708 * buildsym.c (add_free_pendings): Remove.
5709 * buildsym.h (add_free_pendings): Remove.
5711 2012-04-23 Doug Evans <dje@google.com>
5713 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5714 attr.u.unsnd instead of attr.u.addr.
5715 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5716 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5718 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5719 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5721 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5723 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5725 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5726 (mips_o32_return_value): Likewise.
5727 (mips_o64_return_value): Likewise.
5729 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5731 * ada-lang.c (ada_evaluate_subexp): Add cases for
5732 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5733 their treatment in eval.c.
5735 2012-04-21 David S. Miller <davem@davemloft.net>
5737 * sparc-tdep.c (X_DISP10): Define.
5738 (sparc_analyze_control_transfer): Handle compare-and-branch.
5740 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5742 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5743 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5745 2012-04-20 Nigel Stephens <nigel@mips.com>
5746 Maciej W. Rozycki <macro@codesourcery.com>
5748 * mips-tdep.c (mips_float_register_p): New function.
5749 (mips_convert_register_float_case_p): Use mips_float_register_p.
5750 (mips_register_type): Likewise.
5751 (mips_print_register): Likewise.
5752 (print_gp_register_row): Likewise.
5753 (mips_print_registers_info): Likewise.
5755 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5757 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5760 2012-04-20 Andrew Pinski <apinski@cavium.com>
5762 * MAINTAINERS (Write After Approval): Add myself to the list.
5764 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5766 * MAINTAINERS: Update my e-mail address.
5768 2012-04-20 Pedro Alves <palves@redhat.com>
5770 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5772 * configure: Regenerate.
5774 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5776 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5778 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5780 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5782 Fix compilation compatibility with python-2.4
5783 * python/py-type.c (convert_field): Cast ADDRSTRING for
5784 PyObject_SetAttrString as non-const. New comment.
5786 2012-04-19 Tom Tromey <tromey@redhat.com>
5788 * top.c (quit_target): Use all_cleanups.
5789 * main.c (captured_command_loop): Use all_cleanups.
5790 * exceptions.c (throw_exception): Use all_cleanups.
5792 2012-04-19 Pedro Alves <palves@redhat.com>
5794 * Makefile.in (GNULIB_BUILDDIR): New.
5795 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5796 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5797 (CLEANDIRS). Remove gnulib/import.
5798 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5800 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5801 (gnulib/import/Makefile): Replace gnulib/import with
5802 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5803 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5804 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5805 acx_configure_dir.m4.
5806 * acinclude.m4: Include acx_configure_dir.m4.
5807 * acx_configure_dir.m4: New file.
5808 * aclocal.m4: Regenerate.
5809 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5810 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5811 (GNULIB): New variable.
5812 (GNULIB_STDINT_H): Adjust.
5813 (AC_OUTPUT): Don't output gnulib/Makefile.
5814 * gdb/defs.h: Include build-gnulib/config.h.
5815 * aclocal.m4: Regenerate.
5816 * config.in: Regenerate.
5817 * configure: Regenerate.
5819 * gnulib/Makefile.in: New file.
5820 * gnulib/configure.ac: New file.
5821 * gnulib/aclocal.m4: New file.
5822 * gnulib/config.in: New file.
5823 * gnulib/configure: New file.
5824 * gnulib/: Re-run gnulib-tool to adjust.
5826 2012-04-19 Doug Evans <dje@google.com>
5828 * cleanups.h (struct cleanup): Move to cleanups.c.
5829 (make_cleanup_dtor_ftype): New typedef.
5830 (make_cleanup_dtor): Use it.
5831 (ALL_CLEANUPS): Replace with ...
5832 (all_cleanups): ... this. Declare. All uses updated.
5833 * cleanups.c: #include "gdb_assert.h".
5834 (sentinel_cleanup): New static global.
5835 (SENTINEL_CLEANUP): Define.
5836 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5837 (make_my_cleanup2): Assert result is non-NULL.
5838 (all_cleanups): New function.
5839 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5842 2012-04-19 Pedro Alves <palves@redhat.com>
5844 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5845 Adjust paths to gnulib imported files.
5847 2012-04-19 Pedro Alves <palves@redhat.com>
5849 * gnulib/: Move whole directory ...
5850 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5851 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5852 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5853 (aclocal_m4_deps): Adjust.
5854 * aclocal.m4: Regenerate.
5855 * configure: Regenerate.
5856 * configure.ac: Adjust AC_OUTPUT output.
5858 2012-04-19 Yao Qi <yao@codesourcery.com>
5860 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5862 * vec.c: Move it ...
5863 * common/vec.c: ... here.
5864 * vec.h: Move it ...
5865 * common/vec.h: ... here.
5867 2012-04-19 Yao Qi <yao@codesourcery.com>
5869 * gdb-code-style.el: New.
5871 2012-04-18 Pedro Alves <palves@redhat.com>
5873 Update gnulib from latest git.
5874 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5876 * gnulib/Makefile.am: Update.
5877 * gnulib/dummy.c: Update.
5878 * gnulib/extra/arg-nonnull.h: Update.
5879 * gnulib/extra/c++defs.h: Update.
5880 * gnulib/extra/update-copyright: Update.
5881 * gnulib/extra/warn-on-use.h: Update.
5882 * gnulib/inttypes.in.h: Update.
5883 * gnulib/m4/00gnulib.m4: Update.
5884 * gnulib/m4/extensions.m4: Update.
5885 * gnulib/m4/gnulib-cache.m4: Update.
5886 * gnulib/m4/gnulib-common.m4: Update.
5887 * gnulib/m4/gnulib-comp.m4: Update.
5888 * gnulib/m4/gnulib-tool.m4: Update.
5889 * gnulib/m4/include_next.m4: Update.
5890 * gnulib/m4/inttypes-pri.m4: Update.
5891 * gnulib/m4/inttypes.m4: Update.
5892 * gnulib/m4/longlong.m4: Update.
5893 * gnulib/m4/memchr.m4: Update.
5894 * gnulib/m4/memmem.m4: Update.
5895 * gnulib/m4/mmap-anon.m4: Update.
5896 * gnulib/m4/multiarch.m4: Update.
5897 * gnulib/m4/onceonly.m4: Update.
5898 * gnulib/m4/stddef_h.m4: Update.
5899 * gnulib/m4/stdint.m4: Update.
5900 * gnulib/m4/string_h.m4: Update.
5901 * gnulib/m4/warn-on-use.m4: Update.
5902 * gnulib/m4/wchar_h.m4: Update.
5903 * gnulib/m4/wchar_t.m4: Update.
5904 * gnulib/m4/wint_t.m4: Update.
5905 * gnulib/memchr.c: Update.
5906 * gnulib/memmem.c: Update.
5907 * gnulib/stddef.in.h: Update.
5908 * gnulib/stdint.in.h: Update.
5909 * gnulib/str-two-way.h: Update.
5910 * gnulib/string.in.h: Update.
5911 * gnulib/wchar.in.h: Update.
5913 * gnulib/extra/arg-nonnull.h: Delete.
5914 * gnulib/extra/c++defs.h: Delete.
5915 * gnulib/extra/warn-on-use.h: Delete.
5916 * gnulib/m4/wchar_h.m4: Delete.
5917 * gnulib/m4/wint_t.m4: Delete.
5918 * gnulib/wchar.in.h: Delete.
5920 * gnulib/extra/snippets/arg-nonnull.h: New.
5921 * gnulib/extra/snippets/c++defs.h: New.
5922 * gnulib/extra/snippets/warn-on-use.h: New.
5924 * aclocal.m4: Regenerate.
5925 * config.in: Regenerate.
5926 * configure: Regenerate.
5927 * gnulib/Makefile.in: Regenerate.
5929 2012-04-18 Pedro Alves <palves@redhat.com>
5931 Reimport the update-copyright module from gnulib
5932 (250b80067c1e1d8faa0c42fb572f721975b929c5).
5934 * configure: Regenerate.
5935 * gnulib/Makefile.am: Update.
5936 * gnulib/Makefile.in: Regenerate.
5937 * gnulib/extra/update-copyright: Update.
5938 * gnulib/m4/gnulib-cache.m4: Update.
5939 * gnulib/m4/gnulib-comp.m4: Update.
5941 2012-04-18 Tristan Gingold <gingold@adacore.com>
5943 * configure.ac (aix): Put -lpthread into libs.
5944 * configure: Regenerate.
5946 2012-04-18 Tom Tromey <tromey@redhat.com>
5948 * linespec.c (convert_linespec_to_sals): Don't use
5950 (compare_msymbols): Arguments are minsym_and_objfile, not
5951 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
5953 2012-04-18 Pedro Alves <palves@redhat.com>
5955 Revert gnulib/ part of:
5956 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5957 Copyright year update in most files (performed by copyright.sh).
5959 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5961 Fix 64-bit constants on 32-bit hosts.
5962 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
5963 from unsigned long to ULONGEST.
5964 (read_signed_leb128): Change declaration return type from long to
5966 (dwarf2_const_value_attr): Change declaration parameter value from long
5968 (dwarf2_compute_name): Change variable value from long to LONGEST.
5969 (read_unsigned_leb128): Change return type, variable result and some
5970 casts from unsigned long to ULONGEST.
5971 (read_signed_leb128): Change return type, variable result and some
5972 casts from long to LONGEST.
5973 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
5974 value from long to LONGEST.
5975 (dwarf2_const_value): Change variable value from long to LONGEST.
5976 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
5977 plongest and hex_string.
5978 * symtab.h (struct general_symbol_info): Change ivalue from long to
5979 LONGEST, remove the comment.
5980 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
5981 Change SYMBOL_VALUE format strings to use plongest and hex_string.
5983 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
5986 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
5987 * ada-lang.c (ada_discrete_type_high_bound)
5988 (ada_discrete_type_low_bound): Fix function comment. Use
5989 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5990 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
5991 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5992 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
5993 Use TYPE_FIELD_ENUMVAL.
5994 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
5995 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5996 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
5997 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
5999 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6000 * dwarf2read.c (process_enumeration_scope): Likewise.
6001 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6003 (class StructMainTypePrettyPrinter): Support also
6004 FIELD_LOC_KIND_ENUMVAL.
6005 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6007 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6008 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6009 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6010 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6012 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6013 accommodate enumval.
6014 (struct call_site): Adjust loc_kind to accommodate enumval.
6015 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6016 (TYPE_FIELD_ENUMVAL): New macros.
6017 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6018 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6020 * p-typeprint.c (pascal_type_print_base): Likewise.
6021 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6023 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6024 * python/py-type.c (convert_field): New variable addrstring. Use
6025 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6026 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6027 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6028 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6030 * valprint.c (generic_val_print): Likewise.
6032 2012-04-17 Doug Evans <dje@google.com>
6034 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6036 * dwarf2read.c: Whitespace fixes.
6037 (lookup_signatured_type): Tweak comment.
6038 (get_die_type_at_offset): Fix comment.
6040 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6042 * xcoffread.c (xcoff_secnum_to_sections): New function.
6043 (secnum_to_section, secnum_to_bfd_section): Reimplement
6044 using xcoff_secnum_to_sections. Rename "secnum" parameter
6046 (RECORD_MINIMAL_SYMBOL): Delete.
6047 (record_minimal_symbol): New function.
6048 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6049 by call to record_minimal_symbol and set misc_func_recorded
6050 to 1. Set last_csect_sec to the XCOFF section index instead
6051 of GDB's section_offset index. Update calls to
6052 prim_record_minimal_symbol_and_info to pass the BFD section
6055 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6057 * xcoffread.c (read_xcoff_symtab): Delete variables
6058 last_csect_val and last_csect_sec and associated code.
6060 2012-04-17 Doug Evans <dje@google.com>
6062 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6063 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6064 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6065 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6067 * cleanups.h: New file.
6068 * cleanups.c: New file.
6069 * Makefile.in (SFILES): Add cleanups.c.
6070 (HFILES_NO_SRCDIR): Add cleanups.h.
6071 (COMMON_OBS): Add cleanups.o.
6072 * defs.h (struct cleanup): Moved to cleanups.h.
6073 (do_cleanups,do_final_cleanups): Ditto.
6074 (discard_cleanups,discard_final_cleanups): Ditto
6075 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6076 (save_cleanups,save_final_cleanups): Ditto.
6077 (restore_cleanups,restore_final_cleanups): Ditto.
6078 (null_cleanup): Ditto.
6079 (make_my_cleanup,make_my_cleanup2): Ditto.
6080 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6081 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6082 (do_cleanups,do_final_cleanups): Ditto.
6083 (discard_cleanups,discard_final_cleanups): Ditto
6084 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6085 (save_cleanups,save_final_cleanups): Ditto.
6086 (restore_cleanups,restore_final_cleanups): Ditto.
6087 (null_cleanup): Ditto.
6088 (make_my_cleanup,make_my_cleanup2): Ditto.
6089 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6091 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6093 (make_cleanup_dyn_string_delete): Ditto.
6094 (make_cleanup_ui_file_delete): Ditto.
6095 (make_cleanup_ui_out_redirect_pop): Ditto.
6096 (make_cleanup_free_section_addr_info): Ditto.
6097 (make_cleanup_restore_integer): Ditto.
6098 (make_cleanup_unpush_target): Ditto.
6099 (make_cleanup_value_free_to_mark): Ditto.
6100 (make_cleanup_value_free): Ditto.
6101 (make_cleanup_free_so): Ditto.
6103 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6105 New option "set debug auto-load".
6106 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6107 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6108 (auto_load_safe_path_vec_update)
6109 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6111 (file_is_auto_load_safe): New parameters debug_fmt and ....
6112 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6113 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6114 caller by explanatory string.
6115 (_initialize_auto_load): Register "set debug auto-load".
6116 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6118 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6119 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6120 by explanatory string.
6121 * main.c (captured_main): Likewise.
6122 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6123 (source_section_scripts): Likewise.
6125 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6127 New option "set auto-load safe-path".
6128 * NEWS: New commands "set auto-load safe-path"
6129 and "show auto-load safe-path".
6130 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6131 (auto_load_safe_path, auto_load_safe_path_vec)
6132 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6133 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6134 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6135 (source_gdb_script_for_objfile): New variable is_safe. Call
6136 file_is_auto_load_safe. Return if it is not.
6137 (struct loaded_script): New field loaded.
6138 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6139 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6140 output "Missing" to "No".
6141 (_initialize_auto_load): New variable cmd. Initialize
6142 auto_load_safe_path. Register "set auto-load safe-path",
6143 "show auto-load safe-path" and "add-auto-load-safe-path".
6144 * auto-load.h (maybe_add_script): Add parameter loaded.
6145 (file_is_auto_load_safe): New declaration.
6146 * config.in: Regenerate.
6147 * configure: Regenerate.
6148 * configure.ac: New parameters --with-auto-load-safe-path
6149 and --without-auto-load-safe-path.
6150 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6151 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6152 * main.c (captured_main): Check file_is_auto_load_safe for
6154 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6155 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6156 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6159 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6161 auto-load: Implementation.
6162 * NEWS: New descriptions for "info auto-load",
6163 "info auto-load gdb-scripts", "info auto-load python-scripts",
6164 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6165 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6166 and "show auto-load-scripts". New description for "set auto-load",
6167 "show auto-load", "set auto-load gdb-scripts",
6168 "show auto-load gdb-scripts", "set auto-load python-scripts",
6169 "show auto-load python-scripts", "set auto-load local-gdbinit",
6170 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6171 "show auto-load libthread-db".
6172 * auto-load.c: Remove include python/python-internal.h. Add includes
6173 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6175 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6176 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6177 (gdbpy_global_auto_load): Rename to ...
6178 (global_auto_load): ... here.
6179 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6180 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6181 (script_language_gdb, source_gdb_script_for_objfile): New.
6182 (struct loaded_script): New field language.
6183 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6185 (maybe_add_script): Add parameter language. Drop redundant
6186 entry.full_path initialization. Initialize entry.language and
6188 (auto_load_objfile_script): Change parameter suffix to language.
6189 Remove the call of maybe_add_script.
6190 Call language->source_script_for_objfile.
6191 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6193 (collect_matching_scripts): Adjust it for
6194 struct collect_matching_scripts_data.
6195 (auto_load_info_scripts_pattern_nl): New variable.
6196 (info_auto_load_scripts): Rename to ...
6197 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6198 for struct collect_matching_scripts_data.
6199 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6200 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6201 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6202 (auto_load_info_cmdlist_get): New.
6203 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6204 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6205 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6206 "info auto-load local-gdbinit".
6207 * auto-load.h (struct script_language): New.
6208 (gdbpy_global_auto_load): Rename to ...
6209 (global_auto_load): ... here.
6210 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6211 (auto_load_local_gdbinit_loaded): New declarations.
6212 (maybe_add_script): New parameter language.
6213 (auto_load_objfile_script): Change parameter suffix to language.
6214 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6215 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6216 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6218 * linux-thread-db.c: Include auto-load.h and ctype.h.
6219 (auto_load_thread_db, show_auto_load_thread_db): New.
6220 (struct thread_db_info): New field filename.
6221 (delete_thread_db_info): Call xfree for FILENAME.
6222 (try_thread_db_load): Initialize FILENAME.
6223 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6224 if !AUTO_LOAD_THREAD_DB.
6225 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6226 (_initialize_thread_db): Install auto_load_thread_db
6227 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6228 as "info auto-load libthread-db".
6229 * main.c (captured_main): Rename gdbpy_global_auto_load to
6230 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6231 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6232 (print_gdb_help): Extend the help for 'local init file'.
6233 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6234 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6235 (auto_load_scripts): Rename to ...
6236 (auto_load_python_scripts): ... here, update the comment.
6237 (gdbpy_load_auto_script_for_objfile): New declaration.
6238 (show_auto_load_python_scripts, script_language_python)
6239 (gdbpy_load_auto_script_for_objfile): New.
6240 (source_section_scripts): Refactor the code.
6241 (load_auto_scripts_for_objfile): Rename to ...
6242 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6243 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6244 (info_auto_load_python_scripts): New.
6245 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6246 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6247 Register "set auto-load-scripts" as its deprecated alias. Register
6248 "info auto-load python-scripts". Register "info auto-load-scripts" as
6249 its deprecated alias.
6250 (load_auto_scripts_for_objfile): Rename to ...
6251 (gdbpy_load_auto_scripts_for_objfile): ... here.
6252 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6253 (gdbpy_load_auto_scripts_for_objfile): ... here.
6255 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6257 auto-load: Move files.
6258 * Makefile.in (SFILES): Add auto-load.c.
6259 (HFILES_NO_SRCDIR): Add auto-load.h.
6260 (COMMON_OBS): Add auto-load.o.
6261 (distclean): Change .gdbinit for gdb-gdb.gdb.
6262 * auto-load.c: New file, with parts from python/py-auto-load.c.
6263 * auto-load.h: New file, with parts from python/python.h.
6264 * configure: Regenerate.
6265 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6266 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6267 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6268 * main.c: Include auto-load.h.
6269 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6270 command.h, observer.h and progspace.h to auto-load.c. Add include
6272 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6273 (struct loaded_script, auto_load_pspace_data)
6274 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6275 (hash_loaded_script_entry, eq_loaded_script_entry)
6276 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6277 (maybe_add_script): Move to auto-load.c.
6278 (source_section_scripts): Change maybe_add_script parameters passing,
6279 use script_not_found_warning_print.
6280 (clear_section_scripts, auto_load_objfile_script)
6281 (auto_load_new_objfile, loaded_script_ptr)
6282 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6283 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6284 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6285 auto_load_new_objfile and info_auto_load_scripts initizations to
6287 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6289 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6292 * charset.c (find_charset_names): Remove variables ix and elt.
6293 Use free_char_ptr_vec.
6294 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6295 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6296 debugdir_end. New variable debugdir_len.
6297 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6298 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6300 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6301 and elt. Use free_char_ptr_vec.
6302 * source.c (add_path): Remove variables argv, arg and argv_index.
6303 New variables dir_vec, back_to, ix and name.
6304 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6305 make_cleanup_freeargv. Remove variable separator. Simplify the code
6306 no longer expecting DIRNAME_SEPARATOR.
6307 (openp): Remove variable p, p1 and len. New variables dir_vec,
6308 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6309 no longer expecting DIRNAME_SEPARATOR.
6310 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6311 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6313 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6314 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6315 (dirnames_to_char_ptr_vec): New functions.
6317 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6320 * source.c (add_path): Remove always true conditional 'p == 0' and
6321 unindent its code block.
6323 2012-04-17 Pedro Alves <palves@redhat.com>
6325 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6326 (FIELD_BITPOS_LVAL): ... this.
6327 (FIELD_BITPOS): New.
6328 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6329 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6330 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6332 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6334 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6335 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6336 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6339 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6341 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6342 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6343 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6344 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6345 * jv-lang.c (java_link_class_type): Likewise, once.
6346 * stabsread.c (read_enum_type): Likewise.
6348 2012-04-16 Yao Qi <yao@codesourcery.com>
6350 * common/agent.c (agent_run_command): Add one more parameter `len'.
6352 * common/agent.h: Update declaration.
6353 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6355 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6357 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6360 * value.c (value_actual_type): New function.
6361 * value.h (value_actual_type): New declaration.
6362 * varobj.c (update_type_if_necessary): New function.
6363 (varobj_create): Call value_actual_type instead of
6365 (install_dynamic_child): distinct changed and type changed MI variable
6367 (update_dynamic_varobj_children): Updated for install_dynamic_child
6368 change. All callers updated.
6369 (varobj_update): Support for MI variable object type change if
6370 the value changed and RTTI is used to determine the type.
6371 (create_child_with_value): Call value_actual_type instead of
6373 (adjust_value_for_child_access): Extended with a new parameter which
6374 specify whether the given value should be casted to enclosing type.
6375 All callers updated.
6377 2012-04-14 Yao Qi <yao@codesourcery.com>
6379 Import gnulib module inttypes from git
6380 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6381 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6382 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6383 gnulib/m4/inttypes-pri.m4
6384 * aclocal.m4, config.in, configure: Regenerated.
6385 * gnulib/Makefile.am: Update.
6386 * gnulib/Makefile.in: Update.
6387 * gnulib/m4/gnulib-cache.m4: Update.
6388 * gnulib/m4/gnulib-comp.m4: Update.
6389 * gnulib/inttypes.in.h: New.
6390 * gnulib/m4/inttypes-pri.m4: New.
6391 * gnulib/m4/inttypes.m4: New.
6393 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6395 * infrun.c (resume): Update PC address to the real PC after
6396 preparing to do displaced stepping.
6398 2012-04-12 Doug Evans <dje@google.com>
6400 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6401 All callers updated.
6403 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6405 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6407 2012-04-12 Doug Evans <dje@google.com>
6409 * dwarf2read.c (create_all_type_units): Renamed from
6410 create_debug_types_hash_table. All callers updated.
6412 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6413 local type_sig to sig_type, type_offset to type_offset_in_tu.
6414 (hash_signatured_type): Renamed from hash_type_signature,
6415 all callers updated.
6416 (eq_signatured_type): Renamed from eq_type_signature,
6417 all callers updated.
6418 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6419 (process_enumeration_scope): Ditto.
6420 (lookup_signatured_type_at_offset): Ditto.
6421 (load_full_type_unit, read_signatured_type): Ditto.
6423 2012-04-12 Yao Qi <yao@codesourcery.com>
6425 * remote.c (async_remote_interrupt): Correct function name in
6427 (async_remote_interrupt_twice): Ditto.
6429 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6431 * source.c (find_and_open_source): Consistently pass resulting
6432 full path through xfullpath.
6434 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6436 Provide more specific displaced-stepping memory error message.
6437 * infrun.c (displaced_step_prepare): New variable status. Call
6438 target_read_memory instead of read_memory, provide more specific
6441 2012-04-11 Tristan Gingold <gingold@adacore.com>
6444 * darwin-nat.c (darwin_execvp): Revert previous patch.
6446 2012-04-11 Tristan Gingold <gingold@adacore.com>
6449 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6452 2012-04-11 Tristan Gingold <gingold@adacore.com>
6454 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6457 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6459 New command 'explore' which helps explore values and types in
6461 * NEWS: Add an entry about the new 'explore' command.
6462 * data-directory/Makefile.in: Add gdb/command/explore.py
6463 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6464 command using the GDB Python API.
6466 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6468 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6469 extension in jump target calculation.
6471 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6473 * mips-tdep.c (mips32_next_pc): Handle JALX.
6475 2012-04-10 Yao Qi <yao@codesourcery.com>
6477 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6479 2012-04-10 Yao Qi <yao@codesourcery.com>
6481 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6482 and gnulib/m4/gnulib-tool.m4.
6484 2012-04-10 Doug Evans <dje@google.com>
6486 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6487 (load_partial_dies): Clarify comment.
6488 (find_partial_die): Support rereading type units.
6489 Clarify CU handling, if we know offset is in CU, don't search for the
6490 containing CU. Add comment regarding memory waste.
6492 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6494 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6495 i386/x32-avx and i386/x32-avx-linux.
6496 (i386/x32-expedite): New.
6497 (i386/x32-linux-expedite): Likewise.
6498 (i386/x32-avx-expedite): Likewise.
6499 (i386/x32-avx-linux-expedite): Likewise.
6500 ($(outdir)/i386/x32.dat): Likewise.
6501 ($(outdir)/i386/x32-linux.dat): Likewise.
6502 ($(outdir)/i386/x32-avx.dat): Likewise.
6503 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6505 * features/i386/x32-avx-linux.xml: New file.
6506 * features/i386/x32-avx.xml: Likewise.
6507 * features/i386/x32-core.xml: Likewise.
6508 * features/i386/x32-linux.xml: Likewise.
6509 * features/i386/x32.xml: Likewise.
6511 * features/i386/x32-avx-linux.c: New. Generated.
6512 * features/i386/x32-avx.c: Likewise.
6513 * features/i386/x32-linux.c: Likewise.
6514 * features/i386/x32.c: Likewise.
6515 * regformats/i386/x32-avx-linux.dat: Likewise.
6516 * regformats/i386/x32-avx.dat: Likewise.
6517 * regformats/i386/x32-linux.dat: Likewise.
6518 * regformats/i386/x32.dat: Likewise.
6520 2012-04-10 Tristan Gingold <gingold@adacore.com>
6522 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6523 code to kill the inferior.
6525 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6527 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6529 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6531 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6532 (yyvsp): New defines.
6533 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6535 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6537 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6539 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6541 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6544 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6546 * sparc64-tdep.c (sparc64_store_arguments)
6547 (sparc64_store_arguments): Fix coding style.
6549 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6551 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6552 complex floats, adjust some related comments and tighten a related
6554 (sparc64_extract_return_value): Handle complex floats.
6556 2012-04-07 Doug Evans <dje@google.com>
6558 * dwarf2read.c (load_partial_dies): Change condition to assert.
6560 2012-04-06 Doug Evans <dje@google.com>
6562 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6565 2012-04-05 Kevin Buettner <kevinb@redhat.com>
6567 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6569 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6570 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6573 2012-04-05 Keith Seitz <keiths@redhat.com>
6575 * linespec.c (decode_compound): Remove.
6576 (enum offset_relative_sign): New enum.
6577 (struct line_offset): New struct.
6578 (struct linespec): New struct.
6579 (struct linespec_state): Move file_symtabs,
6580 user_filename, and user_function into struct linespec.
6581 Make result an anonymous struct holding vectors of
6582 symbolp and minsym_and_objfile_d.
6583 Add language member.
6584 (enum ls_token_type): New enum.
6585 (linespec_keywords): New array.
6586 (struct ls_token): New struct.
6587 (struct ls_parser): New struct.
6588 (linespec_lexer_lex_number): New function.
6589 (linespec_lexer_lex_keyword): New function.
6590 (is_ada_operator): New function.
6591 (skip_quote_char): New function.
6592 (copy_token_string): New function.
6593 (is_closing_quote_enclosed): New function.
6594 (find_parameter_list_end): New function.
6595 (linespec_lexer_lex_string): New function.
6596 (linespec_lexer_lex_one): New function.
6597 (linespec_lexer_consume_token): New function.
6598 (linespec_lexer_peek_token): New function.
6599 (cplusplus_error): Remove unused function.
6600 (find_methods): Update comment.
6601 (find_toplevel_char): Return const.
6602 (is_objc_method_format): Remove unused function.
6603 (find_toplevel_string): New function.
6604 (is_linespec_boundary): Remove.
6605 (symbol_not_found_error): New function.
6606 (find_method_overload_end): Remove function.
6607 (unexpected_linespec_error): New function.
6608 (keep_name_info): Remove.
6609 (linespec_parse_line_offset): New function.
6610 (linespec_parse_basic): New function.
6611 (canonicalize_linespec): New function.
6612 (decode_line_internal): Remove.
6613 (create_sals_line_offset): New function adapted from
6615 (convert_linespec_to_sals): New function.
6616 (parse_linespec): New function.
6617 (linespec_parser_new): New function.
6618 (linespec_state_destructor): Change parameter type to
6619 struct linespec_state *.
6620 Add language parameter.
6621 Remove freeing of moved members.
6622 (linespec_parser_delete): New function.
6623 (decode_line_full): Use parse_linespec and linespec_parser_new.
6624 (decode_line_1): Likewise.
6625 (decode_indirect): Rename to ...
6626 (linespec_expression_to_pc): ... this and rewrite
6627 to simply find CORE_ADDR, storing this result for later
6629 (locate_first_half): Remove.
6630 (deocde_objc): Add parameter LS.
6631 Initialize new struct collect_info members.
6632 Handle minimal symbols, too.
6633 (decode_compound): Delete.
6634 (lookup_prefix_sym): Rewrite.
6635 (compare_msymbols): New function.
6636 (find_method): Rewrite.
6637 Do not call cplusplus_error.
6638 (symtabs_from_filename): Rewrite.
6639 (collect_function_symbols): Delete.
6640 (find_function_symbols): Rewrite without ARGPTR-style
6642 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6643 (decode_dollar): Adapted and renamed to ...
6644 (linespec_parse_variable): ... this.
6645 (find_linespec_symbols): New function.
6646 (decode_label): Adapted and renamed to ...
6647 (find_label_symbols): ... this.
6648 (decode_digits_list_mode): Add and use LS argument.
6649 (decode_digits_ordinary): Likewise.
6650 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6651 If in list mode, allow any symbol class. Otherwise, only
6652 permit LOC_BLOCK symbols.
6653 (minsym_found): Update comments.
6654 (search_minsyms_for_name): Do not convert the matching symbol
6655 into a SAL. Simply push the symbol and objfile into the
6657 (decode_variable): Delete. Contents adapted into
6658 find_linespec_symbols.
6660 * cp-support.c (SKIP_SPACE): Remove.
6661 (operator_tokens): Remove unused global.
6662 (cp_validate_operator): Remove.
6663 * cp-support.h (cp_validate_operator): Remove declaration.
6665 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6667 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6668 for TYPE_VPTR_FIELDNO.
6669 * valprint.c (valprint_check_validity): Make it global, move the
6670 function comment ...
6671 * value.h (valprint_check_validity): ... to this new declaration.
6673 2012-04-02 Tristan Gingold <gingold@adacore.com>
6675 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6676 the STATE32 api for i386 state.
6677 (i386_darwin_store_inferior_registers): Likewise.
6679 2012-04-02 Tristan Gingold <gingold@adacore.com>
6681 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6683 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6686 2012-04-02 Tristan Gingold <gingold@adacore.com>
6689 * darwin-nat.c (darwin_execvp): Set binary preference.
6691 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6693 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6695 2012-03-30 Tom Tromey <tromey@redhat.com>
6697 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6698 of TRY_CATCH. Fix error handling.
6699 * python/py-value.c (convert_value_from_python): Move 'old'
6700 declaration to innermost scope.
6702 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6703 Andrey Smirnov <andrew.smirnov@gmail.com>
6705 -Wshadow warning fix.
6706 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6707 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6708 Adjust code accordingly.
6710 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6712 * ada-lang.c (symbol_completion_add): Rename parameter
6713 "encoded" into "encoded_p". Ajust code and documentation
6716 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6717 Andrey Smirnov <andrew.smirnov@gmail.com>
6719 -Wshadow warning fix.
6720 * ada-lang.c (symbol_completion_add): Rename parameter
6721 "wild_match" into wild_match_p. Update code and documentation
6724 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6726 * ada-lang.c (symbol_completion_match): Rename parameter
6727 "encoded" into "encoded_p". Ajust code and documentation
6730 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6731 Andrey Smirnov <andrew.smirnov@gmail.com>
6733 -Wshadow warning fix.
6734 * ada-lang.c (symbol_completion_match): Rename parameter
6735 "wild_match" into "wild_match_p". Adjust code and function
6736 documentation accordingly.
6738 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6739 Andrey Smirnov <andrew.smirnov@gmail.com>
6741 -Wshadow warning fix.
6742 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6743 "symbol_info" into "info". Adjust code accordingly.
6744 (ada_lookup_symbol): Likewise.
6746 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6748 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6749 of this function's documentation.
6751 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6752 Andrey Smirnov <andrew.smirnov@gmail.com>
6754 -Wshadow warning fix.
6755 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6756 variable into "wild_match_p". Adjust code accordingly.
6758 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6759 Andrey Smirnov <andrew.smirnov@gmail.com>
6761 -Wshadow warning fix.
6762 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6763 parameter into "wild_match_p". Adjust code accordingly.
6764 Document this parameter in the function description.
6766 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6767 Andrey Smirnov <andrew.smirnov@gmail.com>
6769 -Wshadow warning fix.
6770 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6771 "wild_match" parameter to "wild_match_p" (-Wshadow).
6773 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6775 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6776 in function documentation.
6778 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6779 Andrey Smirnov <andrew.smirnov@gmail.com>
6781 -Wshadow warning fix.
6782 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6783 variable into wild_match_p. Adjust code accordingly.
6785 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6786 Andrey Smirnov <andrew.smirnov@gmail.com>
6788 * ada-valprint.c (ada_val_print_1): Move the code handling
6789 TYPE_CODE_ENUM inside its own lexical block. Declare
6790 variables len and val there, instead of in the function's
6791 top level block. Avoid declaring deref_val again in a way
6792 that shadows another variable of the same name declared
6793 in one of the up-level blocks. Just re-use the up-level
6796 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6798 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6799 Replace block_found argument by symbol_info. Adjust
6800 implementation accordingly. Add function documentation.
6801 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6803 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6804 * ada-exp.y (write_object_renaming): Adjust to new
6805 ada_lookup_encoded_symbol API.
6807 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6809 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6812 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
6814 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6815 (v850_register_name): Add the mpu and fpu register names.
6816 (v850e_register_name): Add the mpu and fpu register names.
6817 (v850e2_register_name): New function.
6818 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
6821 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6823 * NEWS: Add entry for Ada varobj support.
6825 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6827 * varobj.c (default_value_is_changeable_p): New function,
6828 extracted from varobj_value_is_changeable_p. Add declaration.
6829 (ada_value_is_changeable_p): New function, extracted from
6830 varobj_value_is_changeable_p. Add declaration.
6831 (struct language_specific): New field "value_is_changeable_p".
6832 (languages): Add entries for new field.
6833 (varobj_create): Set language before calling install_new_value.
6834 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6835 "value_is_changeable_p" language callback.
6837 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6839 * ada-varobj.h, ada-varobj.c: New files.
6840 * Makefile.in (SFILES): Add ada-varobj.c.
6841 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6842 (COMMON_OBS): Add ada-varobj.o.
6844 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6846 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6847 (struct language_specific): New field "value_has_mutated".
6848 (languages): Set field "value_has_mutated" in each entry of array.
6849 (varobj_value_has_mutated): New function.
6850 (varobj_udpdate): Add handling of type mutation.
6851 (value_of_root): Add handling of type mutation.
6852 (ada_value_has_mutated): New function.
6854 2012-03-28 Pedro Alves <palves@redhat.com>
6856 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6857 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6859 2012-03-28 Tom Tromey <tromey@redhat.com>
6861 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6862 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6865 2012-03-28 Tom Tromey <tromey@redhat.com>
6867 * .dir-locals.el: New file.
6869 2012-03-28 Pedro Alves <palves@redhat.com>
6871 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
6873 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6875 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
6878 2012-03-27 Pedro Alves <palves@redhat.com>
6880 Eliminate struct ui_stream.
6882 * ui-out.h (struct ui_stream): Delete.
6883 (ui_out_field_stream): Adjust prototype.
6884 (ui_out_stream_new, ui_out_stream_delete)
6885 (make_cleanup_ui_out_stream_delete): Delete declarations.
6886 * ui-out.c (ui_out_field_stream): Change prototype to take a
6887 ui_file instead of a ui_stream. Adjust.
6888 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
6889 (make_cleanup_ui_out_stream_delete): Delete.
6890 * breakpoint.c (print_breakpoint_location)
6891 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
6892 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6893 * disasm.c (dump_insns): Ditto.
6894 (do_mixed_source_and_assembly, do_assembly_only): Adjust
6896 (gdb_disassembly): Use ui_file/mem_fileopen instead of
6897 ui_stream/ui_out_stream_new.
6898 * infcmd.c (print_return_value): Ditto.
6899 * osdata.c (info_osdata_command): Don't allocate a local
6901 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
6902 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6903 * tracepoint.c (print_one_static_tracepoint_marker): Don't
6904 allocate a local ui_stream.
6905 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
6906 instead of ui_stream/ui_out_stream_new.
6907 (list_args_or_locals): Don't allocate a local ui_stream.
6908 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
6909 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
6910 ui_stream/ui_out_stream_new.
6911 * cli/cli-setshow.c (do_setshow_command): Ditto.
6913 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
6915 * arm-linux-tdep.c (arm_linux_init_abi): Call
6916 set_gdbarch_process_record. Initialize `arm_swi_record' field.
6917 * arm-tdep.c (arm_process_record): New function.
6918 (deallocate_reg_mem): New function.
6919 (decode_insn): New function.
6920 (thumb_record_branch): New function.
6921 (thumb_record_ldm_stm_swi(): New function.
6922 (thumb_record_misc): New function.
6923 (thumb_record_ld_st_stack): New function.
6924 (thumb_record_ld_st_imm_offset): New function.
6925 (thumb_record_ld_st_reg_offset(): New function.
6926 (thumb_record_add_sub_cmp_mov): New function.
6927 (thumb_record_shift_add_sub): New function.
6928 (arm_record_coproc_data_proc): New function.
6929 (arm_record_coproc): New function.
6930 (arm_record_b_bl): New function.
6931 (arm_record_ld_st_multiple): New function.
6932 (arm_record_ld_st_reg_offset): New function.
6933 (arm_record_ld_st_imm_offset): New function.
6934 (arm_record_data_proc_imm): New function.
6935 (arm_record_data_proc_misc_ld_str): New function.
6936 (arm_record_extension_space): New function.
6937 (arm_record_strx): New function.
6938 (sbo_sbz): New function.
6939 (struct insn_decode_record): New structure for arm insn record.
6940 (REG_ALLOC): New macro for reg allocations.
6941 (MEM_ALLOC): New macro for memory allocations.
6942 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
6944 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
6946 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
6947 (store_register): Likewise.
6949 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
6951 * MAINTAINERS (Write After Approval): Add myself to the list.
6953 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6955 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
6956 Describe also the option "auto".
6958 2012-03-22 Richard Henderson <rth@redhat.com>
6960 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
6961 * sparc-nat.c (sparc_xfer_wcookie): Make static.
6963 2012-03-22 Richard Henderson <rth@redhat.com>
6965 * jit.c (jit_read_code_entry): Compute alignment and offset of
6966 int64_t member before computing entry_size.
6968 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6970 Python scripting: Add new method Value.referenced_value to
6971 gdb.Value which can dereference pointer as well as reference
6973 * NEWS: Add entry under 'Python scripting' about the new method
6974 Value.referenced_value on gdb.Value objects.
6975 * python/py-value.c (valpy_referenced_value): New function
6976 defining a new method on gdb.Value objects which can dereference
6977 pointer and reference values.
6979 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6981 * MAINTAINERS (Write After Approval): Add myself to the list.
6983 2012-03-21 Kevin Buettner <kevinb@redhat.com>
6985 * symtab.c (skip_prologue_sal): Change test to check for "main()"
6986 in addition to "main".
6988 2012-03-21 Joel Brobecker <brobecker@adacore.com>
6990 * expression.h (op_name): Add declaration.
6991 * expprint.c (op_name): Remove declaration. Make non-static.
6992 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
6994 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
6996 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
6998 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
6999 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7000 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7001 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7002 (linux_nat_get_siginfo): Likewise.
7003 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7004 (linux_nat_get_siginfo): Likewise.
7005 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7006 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7007 * procfs.c (gdb_siginfo_t): Likewise.
7009 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7011 * .gitignore: Ignore more files.
7013 2012-03-20 Pedro Alves <palves@redhat.com>
7015 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7018 2012-03-20 Yao Qi <yao@codesourcery.com>
7020 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7023 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7025 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7026 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7027 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7029 * dwarf2expr.h (cu_offset, sect_offset): New types.
7030 (struct dwarf_expr_context_funcs) <dwarf_call>
7031 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7033 (struct dwarf_expr_context) <len>: Improve the comment.
7034 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7035 cu_offset and sect_offset.
7036 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7037 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7038 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7039 * dwarf2loc.h: Include dwarf2expr.h.
7040 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7042 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7043 Improve the comment.
7044 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7045 (struct signatured_type, struct line_header, struct partial_die_info)
7046 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7047 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7048 (get_die_type_at_offset, create_cus_from_index)
7049 (create_signatured_type_table_from_index, dw2_get_file_names)
7050 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7051 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7052 (create_debug_types_hash_table, process_psymtab_comp_unit)
7053 (load_partial_comp_unit, create_all_comp_units)
7054 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7055 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7056 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7057 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7058 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7059 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7060 (find_partial_die, read_attribute_value, lookup_die_type)
7061 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7062 (is_ref_attr): New function comment.
7063 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7064 Use cu_offset and sect_offset.
7065 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7066 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7067 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7068 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7069 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7070 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7071 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7074 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7077 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7078 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7080 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7082 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7084 * NEWS: Describe new options --init-command=FILE, -ix and
7085 --init-eval-command=COMMAND, -iex.
7086 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7087 CMDARG_INIT_COMMAND.
7088 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7089 "init-command", "init-eval-command", "ix" and "iex" to the variable
7090 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7091 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7092 (print_gdb_help): Describe --init-command=FILE, -ix and
7093 --init-eval-command=COMMAND, -iex.
7095 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7098 * main.c (struct cmdarg): Move it here from main. Add more comments.
7099 (cmdarg_s, VEC (cmdarg_s)): New.
7100 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7101 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7102 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7103 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7106 2012-03-19 Tom Tromey <tromey@redhat.com>
7108 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7110 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7113 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7116 2012-03-16 Chris January <chris.january@allinea.com>
7118 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7121 2012-03-16 Chris January <chris.january@allinea.com>
7123 * source.c (add_path): Use memmove instead of strcpy because the
7126 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7128 * value.h (set_value_parent): Add declaration.
7129 * value.c (set_value_parent): New function.
7130 (value_address): If VALUE->PARENT is not NULL, then use it as
7131 the base address instead of VALUE->LOCATION.address.
7132 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7133 the same as OBJ's address. Adjust V's offset accordingly.
7136 2012-03-16 Gary Benson <gbenson@redhat.com>
7138 PR breakpoints/10738
7139 * dwarf2read.c (use_deprecated_index_sections): New global.
7140 (struct partial_die_info): New member may_be_inlined.
7141 (read_partial_die): Set may_be_inlined where appropriate.
7142 (add_partial_subprogram): Add partial symbols for partial
7143 DIEs that may be inlined.
7144 (new_symbol_full): Add inlined subroutines to the current
7146 (write_psymtabs_to_index): Bump version number.
7147 (dwarf2_read_index): Read only version 6 indices unless
7148 use_deprecated_index_sections is set.
7149 * linespec.c (symbol_and_data_callback): New structure.
7150 (iterate_inline_only): New function.
7151 (iterate_over_all_matching_symtabs): New argument
7152 "include_inline". If nonzero, also call the callback for
7153 symbols representing inlined subroutines.
7154 (lookup_prefix_sym): Pass extra argument to the above.
7155 (find_function_symbols): Likewise.
7156 (add_matching_symbols_to_info): Likewise.
7157 * NEWS: Mention that GDB can now set breakpoints on inlined
7160 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7162 * p-typeprint.c (pascal_type_print_method_args):
7163 Fix display of parameter of methods.
7165 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7167 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7168 Add missing prototype.
7170 2012-03-16 Yao Qi <yao@codesourcery.com>
7171 Jan Kratochvil <jan.kratochvil@redhat.com>
7173 Fix false compilation warning.
7174 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7176 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7177 Pedro Alves <pedro@codesourcery.com>
7179 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7180 (arm_register_g_packet_guesses): New function.
7181 (arm_gdbarch_init): Don't force a target description with
7182 registers when the executable is detected as M-profile. Instead
7183 set gdbarch->tdep->is_m. Register `g' packet guesses.
7184 (_initialize_arm_tdep): Initialize the new target description.
7185 * features/arm-with-m-fpa-layout.xml: New description.
7186 * features/arm-with-m-fpa-layout.c: New, generated.
7188 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7190 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7191 Update function description.
7192 (insert_bp_location): Do not wipe bl->target_info out.
7193 * mem-break.c: #include "gdb_string.h".
7194 (default_memory_insert_breakpoint): Do not call target_read_memory
7195 with a pointer to the breakpoint's shadow_contents buffer. Use
7196 a local buffer instead.
7197 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7199 2012-03-15 Tom Tromey <tromey@redhat.com>
7201 * NEWS: Mention "info vtbl", not "info vtable".
7202 * cp-support.c (info_vtbl_command): Fix comment.
7203 (_initialize_cp_support): Fix text.
7205 2012-03-15 Tom Tromey <tromey@redhat.com>
7207 * cp-valprint.c (cp_print_value_fields): Use
7208 print_function_pointer_address for vtable slot.
7210 2012-03-15 Tom Tromey <tromey@redhat.com>
7212 * gnu-v3-abi.c (struct value_and_voffset): New.
7213 (hash_value_and_voffset, eq_value_and_voffset)
7214 (compare_value_and_voffset, compute_vtable_size)
7215 (print_one_vtable, gnuv3_print_vtable): New functions.
7216 (init_gnuv3_ops): Initialize 'print_vtable' field.
7217 * cp-support.c (info_vtbl_command): New function.
7218 (_initialize_cp_support): Add "info vtbl".
7219 * cp-abi.h (cplus_print_vtable): Declare.
7220 (struct cp_abi_ops) <print_vtable>: New field.
7221 * cp-abi.c (cplus_print_vtable): New function.
7224 2012-03-15 Tom Tromey <tromey@redhat.com>
7226 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7227 iterate_over_symbols.
7229 2012-03-14 Doug Evans <dje@google.com>
7231 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7232 DW_OP_GNU_parameter_ref.
7234 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7236 Fix double prompt of 'interpreter-exec mi'.
7237 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7238 (mi_interpreter_resume): use it.
7239 (mi_execute_command_input_handler): New function.
7240 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7241 mi_execute_command_input_handler.
7243 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7245 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7247 (darwin_debug_port_info): Make static.
7248 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7249 * machoread.c (_initialize_machoread): Add prototype.
7250 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7251 (i386_darwin_set_control, i386_darwin_get_control)
7252 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7253 i386_darwin_get_status, i386_darwin_get_control):
7254 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7256 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7258 * ax-gdb.c (gen_usual_unary): Remove special handling of
7259 enum and bool types.
7261 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7263 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7265 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7267 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7269 2012-03-13 Chris January <chris.january@allinea.com>
7271 * aix-thread.c (fill_sprs): Store the floating point registers
7272 at the correct offsets into vals.
7274 2012-03-13 Doug Evans <dje@google.com>
7276 * NEWS: Mention symbol-reloading has been deleted.
7277 * symfile.c (symbol_reloading): Delete.
7278 (show_symbol_reloading): Delete.
7279 (_initialize_symfile): Delete set/show symbol-reloading.
7281 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7282 read_in_chain until we have successfully read it in.
7283 (load_full_comp_unit): Ditto.
7284 (read_signatured_type): Add comment.
7286 2012-03-13 Chris January <chris.january@allinea.com>
7288 * stabsread.c (fix_common_block): Change type of valu argument
7291 2012-03-13 Chris January <chris.january@allinea.com>
7293 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7296 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7298 * common/linux-procfs.c (linux_proc_get_int): New, from
7299 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7301 (linux_proc_get_tgid): Only call linux_proc_get_int.
7302 (linux_proc_get_tracerpid): New.
7303 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7304 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7305 linux_proc_pid_has_state.
7306 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7307 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7308 (linux_ptrace_attach_warnings): New.
7309 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7311 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7312 (linux_nat_attach): New variables ex, buffer, message and message_s.
7313 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7315 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7317 * Makefile.in (linux-ptrace.o): New.
7318 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7320 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7321 * common/linux-ptrace.c: New file.
7322 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7323 * config/arm/linux.mh: Likewise.
7324 * config/i386/linux.mh: Likewise.
7325 * config/i386/linux64.mh: Likewise.
7326 * config/ia64/linux.mh: Likewise.
7327 * config/m32r/linux.mh: Likewise.
7328 * config/m68k/linux.mh: Likewise.
7329 * config/mips/linux.mh: Likewise.
7330 * config/pa/linux.mh: Likewise.
7331 * config/powerpc/linux.mh: Likewise.
7332 * config/powerpc/ppc64-linux.mh: Likewise.
7333 * config/powerpc/spu-linux.mh: Likewise.
7334 * config/s390/s390.mh: Likewise.
7335 * config/sparc/linux.mh: Likewise.
7336 * config/sparc/linux64.mh: Likewise.
7337 * config/xtensa/linux.mh: Likewise.
7338 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7339 common/linux-procfs.c.
7340 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7342 2012-03-13 Hui Zhu <teawater@gmail.com>
7343 Pedro Alves <palves@redhat.com>
7345 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7346 CREATE_BREAKPOINT_FLAGS_INSERTED.
7347 (create_breakpoint_sal, create_breakpoints_sal)
7348 (base_breakpoint_create_breakpoints_sal)
7349 (tracepoint_create_breakpoints_sal)
7350 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7352 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7353 (ftrace_command, strace_command): Adjust.
7354 (create_tracepoint_from_upload): Pass
7355 CREATE_BREAKPOINT_FLAGS_INSERTED.
7356 * breakpoint.h (enum breakpoint_create_flags): New.
7357 (create_breakpoint): New flags parameter.
7358 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7359 * python/py-breakpoint.c (bppy_init): Adjust.
7360 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7361 * spu-tdep.c (spu_catch_start): Adjust.
7363 2012-03-13 Pedro Alves <palves@redhat.com>
7364 Hui Zhu <teawater@gmail.com>
7365 Yao Qi <yao@codesourcery.com>
7367 * remote.c (struct remote_state): New field `starting_up'.
7368 (remote_start_remote): Set and clear it.
7369 (remote_can_download_tracepoint): If starting up, return false.
7371 2012-03-13 Yao Qi <yao@codesourcery.com>
7373 * inferior.h (struct inferior): Remove fields any_syscall_count,
7374 syscalls_counts and total_syscalls_count. Move them to new
7375 struct catch_syscall_inferior_data in breakpoint.c.
7376 * breakpoint.c: Call DEF_VEC_I(int).
7377 (struct catch_syscall_inferior_data): New.
7378 (get_catch_syscall_inferior_data): New.
7379 (catch_syscall_inferior_data_cleanup): New.
7380 (insert_catch_syscall): Update to access data in
7381 struct catch_syscall_inferior_data.
7382 (insert_catch_syscall): Likewise.
7383 (remove_catch_syscall): Likewise.
7384 (remove_catch_syscall): Likewise.
7385 (is_syscall_catchpoint_enabled): Likewise.
7386 (add_catch_command): Likewise.
7387 (_initialize_breakpoint): Register cleanup.
7388 * breakpoint.h: Removed DEF_VEC_I(int).
7389 * dwarf2loc.c: Call DEF_VEC_I(int).
7390 * mi/mi-main.c: Likewise.
7392 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7394 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7396 2012-03-12 Chris January <chris.january@allinea.com>
7398 * aix-thread.c (_initialize_aix_thread): Add prototype.
7399 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7400 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7402 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7404 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7405 include of "amd64-nat.h".
7407 2012-03-12 Tom Tromey <tromey@redhat.com>
7409 * buildsym.c (record_pending_block): Now static.
7410 * buildsym.h: (record_pending_block): Remove.
7412 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7414 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7416 2012-03-09 Tom Tromey <tromey@redhat.com>
7418 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7419 producer_is_gxx_lt_4_6>: New fields.
7420 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7422 2012-03-09 Tom Tromey <tromey@redhat.com>
7424 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7426 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7428 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7431 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7433 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7435 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7437 Fix -Wmissing-prototypes build.
7438 * arm-linux-nat.c (get_thread_id): Make it static.
7439 * xtensa-linux-nat.c (get_thread_id): Likewise.
7441 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7443 * server.c (process_point_options): If a conditional expression
7444 is found, only print a message if remote_debug is nonzero.
7446 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7448 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7449 of internal error for unknown/unsupported types.
7451 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7453 Fix CU relative vs. absolute DIE offsets.
7454 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7455 offset to offset_in_cu.
7456 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7458 (dwarf2_fetch_die_location_block): Rename parameter offset to
7459 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7461 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7463 * libunwind-frame.c: Rename to ...
7464 * ia64-libunwind-tdep.c: ... here.
7465 * libunwind-frame.h: Rename to ...
7466 * ia64-libunwind-tdep.h: ... here.
7467 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7468 ia64-libunwind-tdep.h.
7469 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7470 * README (--with-libunwind): Rename to ...
7471 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7472 * config.in: Regenerate.
7473 * configure: Regenerate.
7474 * configure.ac: New option --with-libunwind-ia64, make the
7475 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7476 Remove AC_DEFINE for HAVE_LIBUNWIND.
7477 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7478 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7479 Rename libunwind-frame in the general comment.
7480 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7481 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7482 Move forward declarations inside #ifndef. Rename libunwind-frame in
7483 the general comment.
7484 * ia64-tdep.c: Rename libunwind-frame.h #include to
7485 ia64-libunwind-tdep.h.
7486 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7487 (ia64_libunwind_descr): Rename libunwind-frame to
7488 ia64-libunwind-tdep in these function comments.
7489 * ia64-tdep.h: Rename libunwind-frame.h #include to
7490 ia64-libunwind-tdep.h.
7491 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7492 ia64-libunwind-tdep in that data comment.
7494 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7496 * libunwind-frame.h (struct frame_unwind): New declaration.
7498 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7500 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7501 "set breakpoint condition-evaluation" command.
7503 2012-03-08 Tristan Gingold <gingold@adacore.com>
7505 * sparc-stub.c: Move to stubs/
7506 * sh-stub.c: Likewise.
7507 * m68k-stub.c: Likewise.
7508 * m32r-stub.c: Likewise.
7509 * i386-stub.c: Likewise.
7511 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7513 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7514 linux_get_siginfo_type.
7516 * m68klinux-nat.c: Include "gdb_proc_service.h".
7517 (PTRACE_GET_THREAD_AREA): Define.
7518 (ps_get_thread_area): New function.
7520 2012-03-08 Yao Qi <yao@codesourcery.com>
7522 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7524 (remote_query_attached): Likewise.
7525 (remote_static_tracepoint_marker_at): Likewise.
7526 (remote_set_permissions): Likewise.
7527 (remote_detach_1, extended_remote_attach_1): Likewise.
7528 (send_g_packet, remote_vkill): Likewise.
7529 (extended_remote_disable_randomization): Likewise.
7530 (remote_add_target_side_condition): Likewise.
7531 (remote_insert_breakpoint): Likewise.
7532 (remote_remove_breakpoint): Likewise.
7533 (remote_insert_watchpoint): Likewise.
7534 (remote_remove_watchpoint): Likewise.
7535 (remote_insert_hw_breakpoint): Likewise.
7536 (remote_insert_hw_breakpoint): Likewise.
7537 (remote_remove_hw_breakpoint): Likewise.
7538 (remote_download_command_source): Likewise.
7539 (remote_download_tracepoint): Likewise.
7540 (remote_download_trace_state_variable): Likewise.
7541 (remote_disable_tracepoint): Likewise.
7542 (remote_trace_set_readonly_regions): Likewise.
7543 (remote_get_tracepoint_status): Likewise.
7544 (remote_trace_find): Likewise.
7545 (remote_get_trace_state_variable_value): Likewise.
7546 (remote_set_disconnected_tracing): Likewise.
7547 (remote_set_circular_trace_buffer): Likewise.
7548 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7549 (remote_use_agent): Likewise.
7550 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7553 2012-03-07 Pedro Alves <palves@redhat.com>
7555 * NEWS: Mention QProgramSignals.
7556 * inferior.h (update_signals_program_target): Declare.
7557 * infrun.c: (update_signals_program_target): New.
7558 (handle_command): Update the target of the new program signals
7560 * remote.c (PACKET_QProgramSignals): New enum.
7561 (last_program_signals_packet): New global.
7562 (remote_program_signals): New.
7563 (remote_start_remote): Update the target with the program signals
7565 (remote_protocol_features): Add entry for QPassSignals.
7566 (remote_open_1): Free anc clear last_program_signals_packet.
7567 (init_remote_ops): Install remote_program_signals.
7568 * target.c (update_current_target): Adjust.
7569 (target_program_signals): New.
7570 * target.h (struct target_ops) <to_program_signals>: New field.
7571 (target_program_signals): Declare.
7573 2012-03-07 Pedro Alves <palves@redhat.com>
7575 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7578 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7580 * m68klinux-nat.c (getregs_supplies): Make static.
7581 (getfpregs_supplies): Likewise.
7582 (have_ptrace_getregs): Likewise.
7584 2012-03-06 Joel Brobecker <brobecker@adacore.com>
7586 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7587 in call to get_die_type_at_offset.
7589 2012-03-06 Stan Shebs <stan@codesourcery.com>
7591 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7592 * mi/mi-cmd-disas.c: Ditto.
7593 * mi/mi-cmd-env.c: Ditto.
7594 * mi/mi-cmd-file.c: Ditto.
7595 * mi/mi-cmd-stack.c: Ditto.
7596 * mi/mi-cmd-target.c: Ditto.
7597 * mi/mi-cmd-var.c: Ditto.
7598 * mi/mi-cmds.c: Ditto.
7599 * mi/mi-cmds.h: Ditto.
7600 * mi/mi-console.c: Ditto.
7601 * mi/mi-getopt.c: Ditto.
7602 * mi/mi-getopt.h: Ditto.
7603 * mi/mi-interp.c: Ditto.
7604 * mi/mi-main.c: Ditto.
7605 * mi/mi-out.c: Ditto.
7606 * mi/mi-parse.c: Ditto.
7607 * mi/mi-parse.h: Ditto.
7608 * mi/mi-symbol-cmds.c: Ditto.
7610 * mi/mi-getopt.h: Move mi_opt struct up.
7611 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7613 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7615 2012-03-06 Tom Tromey <tromey@redhat.com>
7617 * proc-service.c (ps_pglobal_lookup): Set the current program
7620 2012-03-06 Pedro Alves <palves@redhat.com>
7622 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7624 2012-03-05 Joel Brobecker <brobecker@adacore.com>
7626 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7628 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7631 * common/linux-osdata.c (linux_common_core_of_thread): New function
7633 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7634 call by linux_common_core_of_thread.
7635 (linux_nat_core_of_thread_1): Remove.
7636 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7637 * linux-thread-db.c: Include linux-osdata.h.
7638 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7639 linux_common_core_of_thread.
7641 2012-03-05 Tom Tromey <tromey@redhat.com>
7643 * value.c (value_primitive_field): Don't fetch contents for
7646 2012-03-05 Tom Tromey <tromey@redhat.com>
7648 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7650 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
7652 * s390-nat.c: Include "gregset.h".
7654 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7656 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7657 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7658 (libunwind_load): New variable so_error, use it for dlerror. Try to
7659 load also LIBUNWIND_SO_7.
7661 2012-03-05 Pedro Alves <palves@redhat.com>
7663 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7664 is not NULL, and remove resulting dead code.
7666 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7668 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7669 prologue to sh_analyze_prologue.
7670 (sh_analyze_prologue): Make better use of such an upper limit, and
7671 generally be more cautious about accessing memory.
7673 2012-03-05 Tom Tromey <tromey@redhat.com>
7675 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7676 _initialize_ia64_hpux_tdep.
7678 2012-03-05 Pedro Alves <palves@redhat.com>
7682 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7683 the register state is clear, supply explicit zero, instead of
7684 marking the register unavailable.
7686 2012-03-05 Tristan Gingold <gingold@adacore.com>
7688 * NEWS: Mention OpenVMS ia64 new target.
7690 2012-03-05 Tristan Gingold <gingold@adacore.com>
7692 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7693 (ia64_unw_accessors, ia64_unw_rse_accessors)
7694 (ia64_libunwind_descr): Declare.
7695 * ia64-vms-tdep.c: New file.
7696 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7697 (ia64_libunwind_descr): Make them public.
7698 * configure.tgt: Add ia64-*-*vms*.
7699 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7700 (ALLDEPFILES): Add ia64-vms-tdep.c
7702 2012-03-05 Tristan Gingold <gingold@adacore.com>
7704 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7705 * remote.c (PACKET_qXfer_uib): New enum value.
7706 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7707 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7708 (_initialize_remote): Call add_packet_config_cmd for
7711 2012-03-05 Tristan Gingold <gingold@adacore.com>
7713 * osabi.c (gdb_osabi_names): Add OpenVMS.
7714 (generic_elf_osabi_sniffer): Likewise.
7715 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
7717 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7719 Removed unused code.
7720 * libunwind-frame.c (libunwind_frame_unwind)
7721 (libunwind_frame_base_address): Remove.
7722 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7724 2012-03-04 Yao Qi <yao@codesourcery.com>
7726 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7727 remove trailing new line.
7728 (agent_run_command, agent_run_command): Add _ markup.
7729 (agent_capability_check): Likewise.
7731 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7733 * breakpoint.c (set_condition_evaluation_mode): Set
7734 CONDITION_EVALUATION_MODE unconditionally.
7736 2012-03-03 Yao Qi <yao@codesourcery.com>
7738 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7739 * common/agent.h: Update declaration.
7740 * inf-child.c (inf_child_use_agent): New.
7741 (inf_child_can_use_agent): New.
7742 (inf_child_target): Initialize fields `to_use_agent'
7743 and `to_can_use_agent'.
7744 * agent.c (agent_new_objfile): New.
7745 (_initialize_agent): Add agent_new_objfile to new_objfile
7748 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7750 (linux_target_install_ops): Initialize field
7751 `to_static_tracepoint_markers_by_strid'.
7752 * remote.c (free_current_marker): Move it to ...
7753 * tracepoint.c (free_current_marker): ... here. New.
7754 (cleanup_target_stop): New.
7755 * tracepoint.h: Declare free_current_marker.
7756 * NEWS: Add one entry about `info static-tracepoint-marker'.
7758 2012-03-03 Yao Qi <yao@codesourcery.com>
7760 * common/agent.c (agent_loaded_p): New.
7761 (agent_look_up_symbols): New global.
7762 * common/agent.h: Declare agent_loaded_p.
7764 2012-03-03 Yao Qi <yao@codesourcery.com>
7766 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7767 (agent_capability_check, agent_capability_invalidate): New.
7768 (symbol_list): New array element.
7769 * common/agent.h (enum agent_capa): New.
7770 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7772 2012-03-03 Yao Qi <yao@codesourcery.com>
7774 * target.h (struct target_ops) <to_use_agent>: New field.
7775 (struct target_ops) <to_can_use_agent>: New field.
7776 (target_use_agent, target_can_use_agent): New macro.
7777 * target.c (update_current_target): Update.
7778 * remote.c: New enum `PACKET_QAgent'.
7779 (remote_protocol_features): Add a new element.
7780 (remote_use_agent, remote_can_use_agent): New.
7781 (init_remote_ops): Initialize field `can_use_agent' with
7782 remote_can_use_agent. Intiailize field `use_agent' with
7784 * common/agent.c (use_agent): New global.
7785 * common/agent.h: Declare it.
7786 * tracepoint.c (info_static_tracepoint_markers_command): Add
7788 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7789 (COMMON_OBS): Add common/agent.o and agent.o
7790 (common-agent.o): New rule.
7793 2012-03-03 Yao Qi <yao@codesourcery.com>
7795 * common/agent.c: New.
7796 * common/agent.h: New.
7797 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7799 * configure, configh.in: Regenerated.
7801 2012-03-02 Kevin Buettner <kevinb@redhat.com>
7803 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7804 unless it exists for this architecture.
7806 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7808 * language.h (struct language_defn): New "method" la_read_var_value.
7809 * findvar.c: #include "language.h".
7810 (default_read_var_value): Renames read_var_value. Rewrite
7811 function description.
7812 (read_var_value): New function.
7813 * value.h (default_read_var_value): Add prototype.
7814 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7816 (ada_language_defn): Add entry for la_read_var_value.
7817 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7818 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7819 language_defn structures to add entry for new la_read_var_value
7822 2012-03-02 Tom Tromey <tromey@redhat.com>
7823 Pedro Alves <palves@redhat.com>
7825 PR breakpoints/13776:
7826 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7828 (delete_longjmp_breakpoint_at_next_stop): New.
7829 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7830 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7831 before deleting the inferior. Add comments.
7832 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7833 breakpoints immediately, but only on next stop. Move that code
7834 next to where we mark other breakpoints for deletion.
7836 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7838 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7840 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7843 2012-03-02 Pedro Alves <palves@redhat.com>
7845 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7847 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7849 Fix -Wmissing-prototypes build.
7850 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7851 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7852 (gdbsim_has_memory): Likewise.
7854 2012-03-02 Yao Qi <yao@codesourcery.com>
7856 Fix -Wmissing-prototypes build.
7857 * charset.c (phony_iconv_open): Make static.
7858 (phony_iconv_close, phony_iconv): Likewise.
7859 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7860 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7862 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7863 * ser-mingw.c (create_select_thread): Make static.
7864 * windows-termcap.c (tgetent): New prototype.
7865 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7867 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7869 Fix -Wmissing-prototypes build.
7870 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
7871 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
7872 (_initialize_loadable): New prototypes.
7874 2012-03-02 Doug Evans <dje@google.com>
7876 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
7877 abbrev table, read_comp_unit will do it.
7879 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7881 Fix -Wmissing-prototypes build.
7882 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
7883 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
7884 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
7885 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
7886 (_initialize_arm_symbian_tdep): New prototype.
7887 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
7888 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
7889 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
7891 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
7892 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
7894 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
7895 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
7896 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
7898 * moxie-tdep.c (moxie_process_record): Likewise.
7899 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
7900 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
7901 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
7902 (_initialize_rl78_tdep): New prototype.
7903 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
7904 (_initialize_rx_tdep): New prototype.
7905 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
7906 (_initialize_darwin_solib): New prototype.
7907 * solib-spu.c: Include solib-spu.h.
7908 (_initialize_spu_solib): New prototype.
7909 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
7910 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
7911 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
7912 (tic6x_software_single_step): Make it static.
7913 (_initialize_tic6x_tdep): New prototype.
7915 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7917 Fix -Wmissing-prototypes build.
7918 * cris-tdep.c (cris_can_use_hardware_watchpoint)
7919 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
7921 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7923 Fix -Wmissing-prototypes build.
7924 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
7925 (frv_have_stopped_data_address): Remove.
7927 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7929 Fix -Wmissing-prototypes build.
7930 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
7931 * sh-tdep.c: Include sh64-tdep.h.
7932 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
7933 * sh64-tdep.c: Include sh64-tdep.h.
7934 * sh64-tdep.h: New file.
7936 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7938 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
7940 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7942 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
7943 sp_regnum once the gdbarch_init_osabi hook has been called.
7945 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7947 * mips-tdep.c (mips32_bc1_pc): New function.
7948 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
7949 BPOSGE32 and BPOSGE64 instructions.
7950 (deal_with_atomic_sequence): Likewise.
7951 (mips32_instruction_has_delay_slot): Likewise.
7953 2012-03-01 Maciej W. Rozycki <macro@mips.com>
7954 Chris Dearman <chris@mips.com>
7955 Maciej W. Rozycki <macro@codesourcery.com>
7956 Joseph Myers <joseph@codesourcery.com>
7958 * features/mips-dsp.xml: New file.
7959 * features/mips64-dsp.xml: New file.
7960 * features/mips-dsp-linux.xml: New file.
7961 * features/mips64-dsp-linux.xml: New file.
7962 * features/Makefile (WHICH): Add mips-dsp-linux and
7964 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
7965 * features/mips-dsp-linux.c: New file.
7966 * features/mips64-dsp-linux.c: New file.
7967 * regformats/mips-dsp-linux.dat: New file.
7968 * regformats/mips64-dsp-linux.dat: New file.
7969 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
7971 (mips64_linux_register_addr): Likewise.
7972 (mips64_linux_regsets_fetch_registers): Likewise.
7973 (mips64_linux_regsets_store_registers): Likewise.
7974 (mips64_linux_fetch_registers): Update call to
7975 mips64_linux_regsets_fetch_registers.
7976 (mips64_linux_store_registers): Update call to
7977 mips64_linux_regsets_store_registers.
7978 (mips_linux_read_description): Probe for DSP registers.
7979 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
7980 and initialize_tdesc_mips64_dsp_linux.
7981 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
7982 Remove padding of no longer used embedded register slots.
7983 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
7984 (MIPS_RESTART_REGNUM): Redefine enum value.
7985 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
7987 (mips_tx39_reg_names): Likewise.
7988 (mips_linux_reg_names): New array of register names for Linux
7990 (mips_register_name): Check for a null pointer in
7991 mips_processor_reg_names and return an empty string.
7992 (mips_register_type): Exclude embedded registers for the IRIX
7994 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
7995 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
7997 (mips_stab_reg_to_regnum): Handle DSP accumulators.
7998 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
7999 (mips_gdbarch_init): Likewise. Initialize internal register
8000 indices for the Linux ABI. Use dynamic numbers to refer to
8001 registers, as applicable, while parsing the target description.
8002 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8004 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8006 * frame.h (read_frame_register_unsigned): Fix typo in function
8009 2012-03-01 Pedro Alves <palves@redhat.com>
8011 * jit-reader.in [!__cplusplus]
8012 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8014 2012-03-01 Pedro Alves <palves@redhat.com>
8016 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8017 * configure: Regenerate.
8019 2012-03-01 Pedro Alves <palves@redhat.com>
8021 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8022 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8023 (ftrace_command, strace_command): Make static.
8024 * d-lang.c (_initialize_d_language): Declare.
8025 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8026 * dwarf2loc.c (_initialize_dwarf2loc):
8027 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8028 * exec.c (exec_get_section_table): Make static.
8029 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8030 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8031 * inferior.c (remove_inferior_command, add_inferior_command)
8032 (clone_inferior_command): Make static.
8033 * linux-nat.c (linux_nat_thread_address_space)
8034 (linux_nat_core_of_thread): Make static.
8035 * linux-tdep.c (_initialize_linux_tdep): Declare.
8036 * objc-lang.c (_initialize_objc_lang): Declare.
8037 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8039 (_initialize_opencl_language): Declare.
8040 * record.c (_initialize_record): Declare.
8041 * remote.c (demand_private_info, remote_get_tib_address)
8042 (remote_supports_cond_tracepoints)
8043 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8045 * skip.c (_initialize_step_skip): Declare.
8046 * symtab.c (skip_prologue_using_lineinfo): Make static.
8047 * tracepoint.c (delete_trace_state_variable)
8048 (trace_variable_command, delete_trace_variable_command)
8049 (get_uploaded_tsv, find_matching_tracepoint_location)
8050 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8052 * value.c (pack_unsigned_long): Make static.
8053 * varobj.c (varobj_ensure_python_env): Make static.
8054 * windows-tdep.c (_initialize_windows_tdep): Declare.
8055 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8057 2012-03-01 Pedro Alves <palves@redhat.com>
8059 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8061 (linux_init_abi): Install it as has_shared_address_space gdbarch
8064 2012-03-01 Pedro Alves <palves@redhat.com>
8066 * observer.c (observer_test_first_notification_function)
8067 (observer_test_second_notification_function)
8068 (observer_test_third_notification_function): Add declarations.
8070 2012-03-01 Pedro Alves <palves@redhat.com>
8072 * common/signals.c (default_target_signal_to_host)
8073 (default_target_signal_from_host): Move ...
8074 * arch-utils.c: ... here.
8075 * arch-utils.h (default_target_signal_to_host)
8076 (default_target_signal_from_host): Declare.
8078 * common/signals.c (target_signal_from_command): Move ...
8079 * infrun.c: ... here.
8080 * inferior.h (target_signal_from_command): Declare.
8081 * target.h (target_signal_from_command)
8082 (default_target_signal_from_host, default_target_signal_to_host):
8083 Delete declarations.
8085 * common/signals.c (_initialize_signals): Delete.
8087 2012-03-01 Pedro Alves <palves@redhat.com>
8089 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8090 both __cplusplus and !__cplusplus.
8092 2012-03-01 Pedro Alves <palves@redhat.com>
8094 * psymtab.c (find_and_open_source): Delete declaration.
8095 * source.c (find_and_open_source): Move comment ...
8096 * source.h (find_and_open_source): ... to this new declaration.
8098 2012-03-01 Pedro Alves <palves@redhat.com>
8100 * inline-frame.c: Include inline-frame.h.
8102 2012-03-01 Pedro Alves <palves@redhat.com>
8104 * tui/tui-data.c (set_gen_win_origin): Delete.
8105 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8106 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8108 2012-03-01 Pedro Alves <palves@redhat.com>
8110 * remote.c (encode_actions): Delete declaration.
8111 * tracepoint.c (encode_actions): Make extern.
8112 * tracepoint.h (encode_actions): Declare.
8114 2012-03-01 Pedro Alves <palves@redhat.com>
8116 * python/py-breakpoint.c: Include python.h.
8117 * python/py-continueevent.c (create_continue_event_object): Make
8119 * python/py-lazy-string.c (stpy_get_type): Make static.
8120 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8122 * python/py-utils.c (unicode_to_target_python_string): Make
8124 * python/py-value.c: Include python.h.
8126 2012-03-01 Pedro Alves <palves@redhat.com>
8128 * inferior.c (delete_threads_of_inferior): Delete.
8130 2012-03-01 Pedro Alves <palves@redhat.com>
8132 Import fallback definitions from glibc.
8134 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8135 ps_prochandle): Forward declare.
8136 (ps_err_e): Use glibc's comments.
8137 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8138 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8139 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8140 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8141 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8142 (struct ps_prochandle): Adjust comment.
8144 2012-03-01 Pedro Alves <palves@redhat.com>
8146 * ada-lang.c (ada_modulus_from_name): Delete.
8147 * ada-lex.l (lexer_init): Make static.
8149 2012-03-01 Pedro Alves <palves@redhat.com>
8153 * frame.c (read_frame_register_unsigned): New.
8154 * frame.h (read_frame_register_unsigned): Declare.
8155 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8157 (print_i387_control_word): New parameter `control_p'. Handle it.
8158 (i387_print_float_info): Handle unavailable float registers.
8160 2012-03-01 Keith Seitz <keiths@redhat.com>
8162 * linespec.c (decode_line_2): Sort the list of methods
8163 alphabetically before presenting the user with a selection
8166 2012-03-01 Doug Evans <dje@google.com>
8168 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8170 (dwarf2_read_abbrevs): Remove corresponding initialization.
8172 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8174 * NEWS: Mention new python command class gdb.COMMAND_USER.
8175 * cli/cli-cmds.c (show_user): Print error when used on a python
8177 (init_cli_cmds): Update documentation strings for "show user" and
8178 "set/show max-user-call-depth" to clarify that it does not apply to
8180 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8182 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8184 * top.c (execute_command): Only execute a user-defined command as a
8185 legacy macro if c->user_commands is set.
8187 2012-03-01 Tom Tromey <tromey@redhat.com>
8189 * valprint.h (struct generic_val_print_decorations): New.
8190 (generic_val_print): Declare.
8191 * valprint.c (generic_val_print): New function.
8192 * p-valprint.c (p_decorations): New global.
8193 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8194 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8195 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8196 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8197 * m2-valprint.c (m2_decorations): New global.
8198 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8199 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8200 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8201 TYPE_CODE_ERROR>: Call generic_val_print.
8202 * f-valprint.c (f_decorations): New global.
8203 (f_val_print): Use print_function_pointer_address.
8204 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8205 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8206 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8208 * c-valprint.c (c_decorations): New global.
8209 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8210 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8211 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8212 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8213 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8214 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8217 2012-03-01 Tom Tromey <tromey@redhat.com>
8219 * valprint.c (val_print): Update.
8220 * p-valprint (pascal_val_print): Return void.
8221 * p-lang.h (pascal_val_print): Return void.
8222 * m2-valprint.c (m2_val_print): Return void.
8223 * m2-lang.h (m2_val_print): Return void.
8224 * language.h (struct language_defn) <la_val_print>: Return void.
8225 * language.c (unk_lang_val_print): Return void.
8226 * jv-valprint.c (java_val_print): Return void.
8227 * jv-lang.h (java_val_print): Return void.
8228 * f-valprint.c (f_val_print): Return void.
8229 * f-lang.h (f_val_print): Return void.
8230 * d-valprint.c (d_val_print): Return void.
8231 (dynamic_array_type): Update.
8232 * d-lang.h (d_val_print): Return void.
8233 * c-valprint.c (c_val_print): Return void.
8234 * c-lang.h (c_val_print): Return void.
8235 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8237 * ada-lang.h (ada_val_print): Return void.
8239 2012-03-01 Tom Tromey <tromey@redhat.com>
8241 * value.h (val_print): Return void.
8242 * valprint.c (val_print): Return void.
8244 2012-03-01 Tom Tromey <tromey@redhat.com>
8246 * value.h (common_val_print): Return void.
8247 * valprint.c (common_val_print): Return void.
8249 2012-03-01 Tom Tromey <tromey@redhat.com>
8251 * value.h (value_print): Return void.
8252 * valprint.c (value_print): Return void.
8253 * p-valprint.c (pascal_value_print): Return void.
8254 * p-lang.h (pascal_value_print): Return void.
8255 * language.h (struct language_defn) <la_value_print>: Return
8257 * language.c (unk_lang_value_print): Return void.
8258 * jv-valprint.c (java_value_print): Return void.
8259 * jv-lang.h (java_value_print): Return void.
8260 * f-valprint.c (c_value_print): Don't declare.
8262 * c-valprint.c (c_value_print): Return void.
8263 * c-lang.h (c_value_print): Return void.
8264 * ada-valprint.c (ada_value_print): Return void.
8265 * ada-lang.h (ada_value_print): Return void.
8267 2012-03-01 Tom Tromey <tromey@redhat.com>
8269 * value.c (value_primitive_field): Handle virtual base classes.
8271 2012-03-01 Tom Tromey <tromey@redhat.com>
8273 * gdbtypes.h (struct vbase): Remove.
8275 2012-03-01 Tom Tromey <tromey@redhat.com>
8277 * c-valprint.c (print_function_pointer_address): Move...
8278 * valprint.c: ... here. Make non-static.
8279 * m2-valprint.c (print_function_pointer_address): Remove.
8280 * valprint.h (print_function_pointer_address): Declare.
8282 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8284 * NEWS: Document the fact that one can provide a condition when
8285 creating an Ada exception catchpoint.
8287 2012-03-01 Tom Tromey <tromey@redhat.com>
8289 * valprint.c (val_print_type_code_flags): Fix placement of
8292 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8294 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8295 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8296 environment variable before calling update-copyright.
8298 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8300 * gnulib/extra/update-copyright: Update to the latest from
8301 gnulib's git repository.
8302 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8303 variable to 2 instead of 1.
8305 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8307 * varobj.c (c_value_of_variable): Remove dead code.
8309 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8311 * ada-lex.p (processId): Do not modify already encoded IDs.
8312 Update function documentation.
8314 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8316 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8317 "name" with "struct symbol *name_sym".
8318 * ada-exp.y (write_var_or_type): Update call to
8319 ada_find_renaming_symbol.
8320 "name" with "struct symbol *name_sym". Adjust Implementation
8321 accordingly. Adjust the function documentation.
8323 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8325 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8326 * ada-lang.c (ada_find_any_type): Add advance declaration.
8327 Make static. Replace ada_find_any_symbol by
8328 ada_find_any_type_symbol.
8329 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8330 Improve function description. Make static.
8331 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8332 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8334 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8336 * ada-lang.c (struct tag_args): Delete.
8337 (ada_get_tsd_type): Function body moved up in source file.
8338 (ada_tag_name_1, ada_tag_name_2): Delete.
8339 (ada_get_tsd_from_tag): New function.
8340 (ada_tag_name_from_tsd): New function.
8341 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8342 to determine the tag name.
8344 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8346 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8348 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8351 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8353 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8355 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8357 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8360 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8362 * ada-lang.c (constrained_packed_array_type): If there is a
8363 parallel XA type, use it to determine the array index type.
8365 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8367 * ada-valprint.c (ada_val_print_1): If our value is a reference
8368 to an array descriptor, dereference it before converting it
8371 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8373 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8374 creating fixed value.
8375 (ada_value_ind, ada_coerce_ref, assign_component)
8376 (ada_evaluate_subexp): Remove call to unwrap_value before
8377 call to ada_to_fixed_value.
8379 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8381 * ada-lang.c (to_fixed_array_type): Set result's type name.
8383 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8385 * ada-lang.c (catch_ada_exception_command_split): Add new
8386 argument cond_string. Add support for condition at end of
8387 "catch exception" commands.
8388 (ada_decode_exception_location): Add new argument cond_string.
8389 Update call to catch_ada_exception_command_split.
8390 (create_ada_exception_catchpoint): Add new argument cond_string.
8391 Set the breakpoint condition if needed.
8392 (catch_ada_exception_command): Update call to
8393 ada_decode_exception_location.
8394 (ada_decode_assert_location): Add function documentation.
8395 Add support for condition at end of "catch assert" command.
8396 (catch_assert_command): Update calls to ada_decode_assert_location
8397 and create_ada_exception_catchpoint.
8399 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8401 Fix disp-step-syscall.exp: fork: single step over fork.
8402 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8403 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8404 comment, change parameters gdbarch and ptid to regcache. Remove
8405 parameter regcache, initialize gdbarch from regcache here.
8406 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8408 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8410 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8411 'syscall'. Make the 'int' check more strict.
8413 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8415 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8416 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8417 (i386_linux_intx80_sysenter_syscall_record): ... here.
8418 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8419 Use the renamed function name.
8421 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8423 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8424 * breakpoint.c (until_break_command): Likewise.
8425 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8426 * infcall.c (call_function_by_hand): Likewise.
8427 * infcmd.c (finish_forward): Likewise.
8428 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8430 2012-02-28 Tristan Gingold <gingold@adacore.com>
8432 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8433 avoid variable assignments inside condition.
8435 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8437 Fix static analysis issue found by cppcheck.
8438 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8439 uninitialized BUF for size 2.
8441 2012-02-27 Chris Dearman <chris@mips.com>
8442 Nathan Froyd <froydnj@codesourcery.com>
8443 Maciej W. Rozycki <macro@codesourcery.com>
8445 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8446 (mips16_instruction_has_delay_slot): Likewise.
8447 (mips_segment_boundary): Likewise.
8448 (mips_adjust_breakpoint_address): Likewise.
8449 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8451 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8452 Maciej W. Rozycki <macro@codesourcery.com>
8454 * infrun.c (handle_inferior_event): Don't proceed through
8455 shared library trampolines if stepping at the machine
8458 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8460 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8463 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8465 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8466 (sh_stub_unwind_sniffer): New functions.
8467 (sh_stub_unwind): New variable.
8468 (sh_gdbarch_init): Wire everything.
8470 2012-02-27 Pedro Alves <palves@redhat.com>
8472 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8473 (linux_nat_post_attach_wait): Adjust to use
8474 linux_proc_pid_is_stopped.
8475 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8476 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8477 based on pid_is_stopped from both linux-nat.c and
8478 gdbserver/linux-low.c, and renamed.
8480 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8482 * remote.c (remote_watchpoint_addr_within_range): New function.
8483 (init_remote_ops): Use it.
8485 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8487 * target.h (target_watchpoint_addr_within_range): Document macro.
8489 2012-02-24 Pedro Alves <palves@redhat.com>
8491 * stack.c (set_last_displayed_sal): Issue internal_error instead
8492 of warning, and issue it after clearing the last displayed sal.
8494 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8495 Pedro Alves <palves@redhat.com>
8497 * breakpoint.c (until_break_command): Install breakpoints after
8498 all frame manipulations.
8500 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8502 * remote.c (remote_supports_cond_breakpoints): New forward
8504 (remote_add_target_side_condition): New function.
8505 (remote_insert_breakpoint): Add target-side breakpoint
8506 conditional if supported.
8507 (remote_insert_hw_breakpoint): Likewise.
8508 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8511 * target.c (update_current_target): Inherit
8512 to_supports_evaluation_of_breakpoint_conditions.
8513 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8515 * target.h (struct target_ops)
8516 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8517 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8519 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8520 (condition_evaluation_both, condition_evaluation_auto,
8521 condition_evaluation_host, condition_evaluation_target,
8522 condition_evaluation_enums, condition_evaluation_mode_1,
8523 condition_evaluation_mode): New static globals.
8524 (translate_condition_evaluation_mode): New function.
8525 (breakpoint_condition_evaluation_mode): New function.
8526 (gdb_evaluates_breakpoint_condition_p): New function.
8527 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8528 (mark_breakpoint_modified): New function.
8529 (mark_breakpoint_location_modified): New function.
8530 (set_condition_evaluation_mode): New function.
8531 (show_condition_evaluation_mode): New function.
8532 (bp_location_compare_addrs): New function.
8533 (get_first_location_gte_addr): New helper function.
8534 (set_breakpoint_condition): Free condition bytecode if locations
8535 has become unconditional. Call mark_breakpoint_modified (...).
8536 (condition_command): Call update_global_location_list (1) for
8538 (breakpoint_xfer_memory): Use is_breakpoint (...).
8539 (is_breakpoint): New function.
8540 (parse_cond_to_aexpr): New function.
8541 (build_target_condition_list): New function.
8542 (insert_bp_location): Handle target-side conditional
8543 breakpoints and call build_target_condition_list (...).
8544 (update_inserted_breakpoint_locations): New function.
8545 (insert_breakpoint_locations): Handle target-side conditional
8547 (bpstat_check_breakpoint_conditions): Add comment.
8548 (bp_condition_evaluator): New function.
8549 (bp_location_condition_evaluator): New function.
8550 (print_breakpoint_location): Print information on where the condition
8552 (print_one_breakpoint_location): Likewise.
8553 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8554 breakpoint location.
8555 (force_breakpoint_reinsertion): New functions.
8556 (update_global_location_list): Handle target-side breakpoint
8558 Reinsert locations that are already inserted if conditions have
8560 (bp_location_dtor): Free agent expression bytecode.
8561 (disable_breakpoint): Call mark_breakpoint_modified (...).
8562 Call update_global_location_list (...) with parameter 1 for breakpoints.
8563 (disable_command): Call mark_breakpoint_location_modified (...).
8564 Call update_global_location_list (...) with parameter 1 for breakpoints.
8565 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8566 (enable_command): mark_breakpoint_location_modified (...).
8567 (_initialize_breakpoint): Update documentation and add
8568 condition-evaluation breakpoint subcommand.
8570 * breakpoint.h: Include ax.h.
8571 (condition_list): New data structure.
8572 (condition_status): New enum.
8573 (bp_target_info) <cond_list>: New field.
8574 (bp_location) <condition_changed, cond_bytecode>: New fields.
8575 (is_breakpoint): New prototype.
8577 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8579 * remote.c (remote_state) <cond_breakpoints>: New field.
8580 (PACKET_ConditionalBreakpoints): New enum.
8581 (remote_cond_breakpoint_feature): New function.
8582 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8583 (remote_supports_cond_breakpoints): New function.
8584 (_initialize_remote): Add new packet configuration for
8585 target-side conditional breakpoints.
8587 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8589 * NEWS: Mention target-side conditional breakpoint support,
8590 new condition-evaluation breakpoint subcommand and remote
8593 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8595 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8598 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8600 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8601 (after_prologue): Remove.
8603 2012-02-23 Tom Tromey <tromey@redhat.com>
8605 * jv-valprint.c (java_val_print): Remove dead code.
8607 2012-02-23 Tristan Gingold <gingold@adacore.com>
8609 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8610 known_tasks_element and known_tasks_length fields.
8611 (read_known_tasks_array): Change argument type. Use pointer type
8612 and number of elements from DATA. Adjust.
8613 (read_known_tasks_list): Likewise.
8614 (get_known_tasks_addr): Remove.
8615 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8616 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8617 type and array length. Merge former get_known_tasks_addr code.
8619 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8622 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8623 it after set_momentary_breakpoint.
8625 2012-02-22 Sterling Augustine <saugustine@google.com>
8628 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8630 2012-02-22 Gary Benson <gbenson@redhat.com>
8632 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8633 (find_slot_in_mapped_hash): Likewise.
8635 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8638 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8639 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8640 * configure: Regenerate.
8642 2012-02-21 Tristan Gingold <gingold@adacore.com>
8643 Pedro Alves <palves@redhat.com>
8645 * ia64-tdep.c: Do not include libunwind-ia64.h.
8646 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8647 Include libunwind-ia64.h instead of libunwind.h.
8648 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8649 for libunwind.h existence.
8650 * configure, config.in: Regenerate.
8652 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8654 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8655 instead of value_rtti_target_type.
8656 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8657 instead of value_rtti_target_type.
8658 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8659 value_rtti_target_type.
8660 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8661 (value_rtti_target_type): Rename to ...
8662 (value_rtti_indirect_type): ... here and make it indirect. Update
8664 * value.c (readjust_indirect_value_type): New function.
8665 (coerce_ref): Support for enclosing type setting for references
8666 with readjust_indirect_value_type.
8667 * value.h (readjust_value_type): New declaration.
8668 (value_rtti_target_type): Rename to ...
8669 (value_rtti_indirect_type): ... here.
8671 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8673 * MAINTAINERS (Write After Approval): Add myself to the list.
8675 2012-02-20 Doug Evans <dje@google.com>
8677 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8678 Rename objfile_p_char parameter to objfilep.
8679 (build_objfile_section_table): Result is now void. All callers
8681 * objfiles.h (struct objfile): Tweak comments, whitespace.
8682 (build_objfile_section_table): Update.
8684 * elfread.c (elf_symfile_segments): Fix warning text.
8686 2012-02-20 Tom Tromey <tromey@redhat.com>
8689 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8690 particular set of file names once.
8691 (dw2_map_symbol_filenames): Likewise.
8693 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8696 * main.c (write_files): Remove the declaration.
8697 (external_editor_command): Move the declaration ...
8698 [GDBTK] (external_editor_command): ... here. Fix the comment.
8700 2012-02-20 Tom Tromey <tromey@redhat.com>
8702 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8705 2012-02-20 Tristan Gingold <gingold@adacore.com>
8707 * darwin-nat.h (enum darwin_msg_state): Add comments.
8709 2012-02-20 Tristan Gingold <gingold@adacore.com>
8711 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8714 2012-20-18 Joel Brobecker <brobecker@adacore.com>
8716 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8717 between function description and implementation.
8719 2012-02-17 Tom Tromey <tromey@redhat.com>
8722 * python/py-event.c (event_object_getset): New global.
8723 (event_object_type): Reference it.
8724 * python/py-type.c (field_object_getset): New global.
8725 (field_object_type): Reference it.
8726 * python/python-internal.h (gdb_py_generic_dict): Declare.
8727 * python/py-utils.c (gdb_py_generic_dict): New function.
8729 2012-02-17 Tristan Gingold <gingold@adacore.com>
8731 * solib-darwin.c (darwin_current_sos): Check magic and filetype
8733 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8735 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8736 TYPE_CALLING_CONVENTION annotation.
8738 2012-02-16 Kevin Buettner <kevinb@redhat.com>
8740 * MAINTAINERS: Add rx to target ISA section.
8741 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8742 (ALLDEPFILES): Add rx-tdep.c.
8744 2012-02-16 Tom Tromey <tromey@redhat.com>
8746 * symfile.c (symbol_file_add_main_1): Use inferior's
8748 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8749 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8751 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8753 (follow_exec): Use inferior's symfile_flags.
8754 * inferior.h (struct inferior) <symfile_flags>: New field.
8756 2012-02-16 Mike Frysinger <vapier@gentoo.org>
8759 * remote-sim.c (gdbsim_create_inferior): Call error() when
8760 sim_create_inferior() fails.
8762 2012-02-16 Josh Matthews <josh@joshmatthews.net>
8764 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8766 2012-02-16 Tom Tromey <tromey@redhat.com>
8769 * thread.c (struct current_thread_cleanup) <was_removable>: New
8771 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8772 (make_cleanup_restore_current_thread): Initialize new field.
8774 2012-02-15 Kevin Buettner <kevinb@redhat.com>
8776 * MAINTAINERS: Add rl78 to target ISA section.
8777 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8778 (ALLDEPFILES): Add rl78-tdep.c.
8779 * NEWS: Mention rl78 as a new target.
8781 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8783 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8785 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8787 2012-02-15 Tom Tromey <tromey@redhat.com>
8790 * infcmd.c (registers_info): Print just the current register's
8793 2012-02-15 Tom Tromey <tromey@redhat.com>
8795 * python/py-symbol.c (sympy_value): Use _().
8797 2012-02-15 Pedro Alves <palves@redhat.com>
8799 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8800 output to be like native targets'.
8801 (remote_pid_to_str): Special case the null ptid.
8803 2012-02-14 Stan Shebs <stan@codesourcery.com>
8805 * NEWS: Mention enable count command.
8806 * breakpoint.h (struct breakpoint): New field enable_count.
8807 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8808 (enable_breakpoint): Add arg to call.
8809 (struct disp_data): New struct.
8810 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8811 (do_map_enable_once_breakpoint): Create a struct and pass it.
8812 (do_map_enable_delete_breakpoint): Ditto.
8813 (do_map_enable_count_breakpoint): New function.
8814 (enable_count_command): New function.
8815 (bpstat_stop_status): Decrement enable_count.
8816 (print_one_breakpoint_location): Report enable count.
8817 (_initialize_breakpoint): Add enable count command.
8819 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8821 * rl78-tdep.c (reggroups.h): Include.
8822 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8823 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8824 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8825 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8826 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8827 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8828 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8829 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8830 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8831 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8832 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8833 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8834 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8835 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8836 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8837 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8838 beginning of register list.
8839 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8840 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8841 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8842 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8843 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8844 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8845 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8846 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8847 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8848 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8849 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8850 the pseudo registers. Rearrange other pseudo registers too so
8851 that the bank registers appear at the end.
8852 (rl78_register_type): Account for the fact that the byte sized
8853 bank registers are now pseudo-registers.
8854 (rl78_register_name): Rearrange the register name array. Make
8855 initial set of raw banked registers inaccessible.
8856 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8857 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8858 case for copying bytes back and forth between raw and pseudo
8859 versions of the banked registers. Update other cases to reflect
8861 (rl78_return_value): Update to account for changed names of
8863 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8864 rl78_register_sim_regno().
8866 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8868 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
8869 the name parameter being passed to find_pc_partial_function().
8871 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8873 * MAINTAINERS: Step down from being ia64 target maintainer.
8875 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8877 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
8878 compilation warning.
8880 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8882 Fix crash on loaded shlibs without loaded exec_bfd.
8883 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
8884 (set_section_command): Replace exec_bfd by p->bfd.
8886 2012-02-10 Tom Tromey <tromey@redhat.com>
8888 * linespec.c (decode_line_internal): Skip symtabs_from_filename
8889 when we have a C++ qualified name.
8891 2012-02-10 Pedro Alves <palves@redhat.com>
8893 * inferior.c (inferior_pid_to_str): New.
8894 (print_inferior, inferior_command): Use it.
8896 2012-02-10 Pedro Alves <palves@redhat.com>
8898 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
8900 * configure: Regenerate.
8902 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8904 * linespec.c (decode_line_internal): Fix comment correctness.
8906 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
8909 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
8910 * amd64bsd-nat.c: Add support for debug registers (adapted from
8912 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
8913 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
8914 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
8915 (amd64bsd_dr_get_control): New functions.
8916 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
8917 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
8918 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
8919 watchpoints initialization.
8920 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
8922 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8924 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
8926 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
8928 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8930 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
8932 2012-02-08 Joel Brobecker <brobecker@adacore.com>
8934 * language.h (symbol_name_cmp_ftype): Renames
8935 symbol_name_match_p_ftype.
8936 (struct language_defn)[la_get_symbol_name_cmp]: Renames
8937 la_get_symbol_name_match_p.
8938 * ada-lang.c (ada_get_symbol_name_cmp): Renames
8939 ada_get_symbol_name_match_p. Update comment.
8940 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
8941 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
8942 Renames symbol_name_match_p. Update field type.
8943 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
8944 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8945 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
8946 "la_get_symbol_name_cmp" in comments.
8947 * language.c: Likewise.
8949 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8951 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
8953 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
8954 (amd64_sol2_gregset32_reg_offs): Likewise.
8956 2012-02-08 Joel Brobecker <brobecker@adacore.com>
8958 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
8959 of the returned BFD is allocated by GDB.
8961 2012-02-07 Tom Tromey <tromey@redhat.com>
8964 * python/python-internal.h (frame_object_type): Declare.
8965 * python/py-symbol.c (sympy_needs_frame): New function.
8966 (sympy_value): New function.
8967 (symbol_object_getset): Add "needs_frame".
8968 (symbol_object_methods): Add "value".
8969 * python/py-frame.c (frame_object_type): No longer static.
8971 2012-02-07 Tom Tromey <tromey@redhat.com>
8974 * python/py-symbol.c (sympy_line): New function.
8975 (symbol_object_getset): Add "line".
8977 2012-02-07 Tom Tromey <tromey@redhat.com>
8979 * charset.c (find_charset_names): Check 'in' against NULL.
8981 2012-02-06 Doug Evans <dje@google.com>
8983 * gdbtypes.h (struct main_type): Change type of name,tag_name,
8984 and fields.name members from char * to const char *. All uses updated.
8985 (struct cplus_struct_type): Change type of fn_fieldlists.name member
8986 from char * to const char *. All uses updated.
8987 (type_name_no_tag): Update.
8988 (lookup_unsigned_typename, lookup_signed_typename): Update.
8989 * gdbtypes.c (type_name_no_tag): Change result type
8990 from char * to const char *. All callers updated.
8991 (lookup_unsigned_typename, lookup_signed_typename): Change type of
8992 name parameter from char * to const char *.
8993 * symtab.h (struct cplus_specific): Change type of demangled_name
8994 member from char * to const char *. All uses updated.
8995 (struct general_symbol_info): Change type of name and
8996 mangled_lang.demangled_name members from char * to const char *.
8998 (symbol_get_demangled_name, symbol_natural_name): Update.
8999 (symbol_demangled_name, symbol_search_name): Update.
9000 * symtab.c (symbol_get_demangled_name): Change result type
9001 from char * to const char *. All callers updated.
9002 (symbol_natural_name, symbol_demangled_name): Ditto.
9003 (symbol_search_name): Ditto.
9004 (completion_list_add_name): Change type of symname,sym_text,
9005 text,word parameters from char * to const char *.
9006 (completion_list_objc_symbol): Change type of sym_text,
9007 text,word parameters from char * to const char *.
9008 * ada-lang.c (find_struct_field): Change type of name parameter
9009 from char * to const char *.
9010 (encoded_ordered_before): Similarly for N0,N1 parameters.
9011 (old_renaming_is_invisible): Similarly for function_name parameter.
9012 (ada_type_name): Change result type from char * to const char *.
9013 All callers updated.
9014 * ada-lang.h (ada_type_name): Update.
9015 * buildsym.c (hashname): Change type of name parameter
9016 from char * to const char *.
9017 * buildsym.h (hashname): Update.
9018 * dbxread.c (end_psymtab): Change type of include_list parameter
9019 from char ** to const char **.
9020 * dwarf2read.c (determine_prefix): Change result type
9021 from char * to const char *. All callers updated.
9022 * f-lang.c (find_common_for_function): Change type of name, funcname
9023 parameters from char * to const char *.
9024 * f-lang.c (find_common_for_function): Update.
9025 * f-valprint.c (list_all_visible_commons): Change type of funcname
9026 parameters from char * to const char *.
9027 * gdbarch.sh (static_transform_name): Change type of name parameter
9028 and result from char * to const char *.
9029 * gdbarch.c: Regenerate.
9030 * gdbarch.h: Regenerate.
9031 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9032 of name parameter from char * to const char *.
9033 * jv-lang.c (java_primitive_type_from_name): Ditto.
9034 (java_demangled_signature_length): Similarly for signature parameter.
9035 (java_demangled_signature_copy): Ditto.
9036 (java_demangle_type_signature): Ditto.
9037 * jv-lang.h (java_primitive_type_from_name): Update.
9038 (java_demangle_type_signature): Update.
9039 * objc-lang.c (specialcmp): Change type of a,b parameters
9040 from char * to const char *.
9041 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9042 from char * to const char *. All callers updated.
9043 * p-lang.h (is_pascal_string_type): Update.
9044 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9045 of name parameter from char * to const char *.
9046 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9047 * utils.c (fprintf_symbol_filtered): Ditto.
9048 * defs.h (fprintf_symbol_filtered): Update.
9049 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9050 * stabsread.h (end_psymtab): Update.
9051 * stack.c (find_frame_funname): Change type of funname parameter
9052 from char ** to const char **.
9053 * stack.h (find_frame_funname): Update.
9054 * typeprint.c (type_print): Change type of varstring parameter
9055 from char * to const char *.
9056 * value.h (type_print): Update.
9057 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9058 from char * to const char *. All callers updated.
9059 (xcoff_end_psymtab): Change type of include_list parameter
9060 from char ** to const char **. All callers updated.
9061 (swap_sym): Similarly for name parameter. All callers updated.
9062 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9064 (process_coff_symbol): Use xstrdup.
9065 * stabsread.c (stabs_method_name_from_physname): Renamed from
9066 update_method_name_from_physname. Change result type from void
9067 to char *. All callers updated.
9068 (read_member_functions): In has_destructor case, store name in objfile
9069 obstack instead of malloc space. In !has_stub case, fix mem leak.
9071 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9073 * configure: Rebuild.
9074 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9077 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9079 * configure.tgt (rl78-*-elf): New target.
9080 * rl78-tdep.c: New file.
9082 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9084 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9085 and continue the loop. Add QUIT statement.
9087 2012-02-03 Tom Tromey <tromey@redhat.com>
9090 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9091 bfd_lookup_symbol_from_symtab.
9092 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9093 gdb_bfd_lookup_symbol_from_symtab.
9095 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9097 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9098 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9099 symbol. Add assertion that sym2 is never NULL.
9101 2012-02-02 Doug Evans <dje@google.com>
9103 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9104 "name" parameter to const char ** from char **. All callers updated.
9105 (find_pc_partial_function): Ditto.
9106 (cache_pc_function_name): Change type to const char * from char *.
9107 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9108 (find_pc_partial_function): Update.
9109 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9110 type of "name" parameter to const char * from char *.
9112 * arch-utils.c (generic_in_solib_return_trampoline): Change
9113 type of "name" parameter to const char * from char *.
9114 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9115 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9116 type of "name" parameter to const char * from char *.
9117 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9118 * gdbarch.c: Regenerate.
9119 * gdbarch.h: Regenerate.
9120 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9121 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9122 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9123 type of "name" parameter to const char * from char *.
9124 * skip.c (skip_function_pc): Ditto.
9125 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9126 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9127 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9128 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9129 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9130 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9131 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9132 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9133 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9135 2012-02-02 Pedro Alves <palves@redhat.com>
9137 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9138 the current inferior has no execution. Make sure the current
9139 remote process matches gdb's current inferior.
9141 2012-02-02 Tom Tromey <tromey@redhat.com>
9144 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9147 2012-02-02 Tom Tromey <tromey@redhat.com>
9150 * symtab.c (lookup_language_this): Set block_found.
9152 2012-02-01 Tom Tromey <tromey@redhat.com>
9155 * jit.c (struct jit_inferior_data): Rewrite.
9156 (struct jit_objfile_data): New.
9157 (get_jit_objfile_data): New function.
9158 (add_objfile_entry): Update.
9159 (jit_read_descriptor): Return int. Replace descriptor_addr
9160 argument with inf_data. Update. Don't call error.
9161 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9163 (jit_inferior_init): Don't look up descriptor. Don't call error.
9164 (jit_reset_inferior_data_and_breakpoints)
9165 (jit_inferior_created_observer): Remove.
9166 (jit_inferior_exit_hook): Update.
9167 (jit_executable_changed_observer): Remove.
9168 (jit_event_handler): Update.
9169 (free_objfile_data): Reset inferior data if needed.
9170 (_initialize_jit): Update.
9172 2012-02-01 Tom Tromey <tromey@redhat.com>
9174 * jit.c (bfd_open_from_target_memory): Move higher in file.
9176 2012-02-01 Tristan Gingold <gingold@adacore.com>
9178 * libunwind-frame.c (libunwind_load): Display message if dlopen
9181 2012-02-01 Gary Benson <gbenson@redhat.com>
9183 * symtab.h (symbol_found_callback_ftype): New typedef.
9184 (iterate_over_symbols): Use the above.
9185 * symtab.c (iterate_over_symbols): Likewise.
9186 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9187 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9188 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9189 (iterate_name_matcher): Document return values.
9190 (collect_one_symbol): Likewise.
9191 (collect_function_symbols): Likewise.
9192 (collect_symbols): Likewise.
9194 2012-02-01 Tom Tromey <tromey@redhat.com>
9196 * ada-lang.c (resolve_subexp): Update.
9197 (ada_lookup_symbol_list): Add 'full_search' argument.
9198 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9199 ada_lookup_symbol_list.
9200 (ada_lookup_encoded_symbol): Update.
9201 (get_var_value): Update.
9202 * ada-exp.y (block_lookup): Update.
9203 (write_var_or_type): Update.
9204 (write_name_assoc): Update.
9205 * ada-lang.h (ada_lookup_symbol_list): Update.
9207 2012-01-31 Tom Tromey <tromey@redhat.com>
9209 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9212 2012-01-31 Doug Evans <dje@google.com>
9214 * symtab.h: Remove outdated comment.
9215 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9217 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9219 Fix build error in Darwin port.
9220 * i386-darwin-nat.c: Include i386-nat.h.
9222 2012-01-30 Tom Tromey <tromey@redhat.com>
9224 PR breakpoints/13568:
9225 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9226 argument. Check for recursive includes.
9227 (dwarf_decode_macros): Create an include hash.
9229 2012-01-30 Michael Eager <eager@eagercon.com>
9231 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9232 * ppc-linux-tdep.c: Include glibc-tdep.h.
9233 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9234 (powerpc_linux_in_plt_stub): New function.
9235 (powerpc_linux_in_dynsym_resolve_code): New function.
9236 (ppc_skip_trampoline_code): New function.
9237 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9238 Use glibc_skip_solib_resolver.
9240 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9242 Code cleanup: Make 1440 bytes of data segment read-only.
9243 * arch-utils.c (endian_enum): Make it const char *const [].
9244 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9246 * breakpoint.c (always_inserted_enums): Likewise.
9247 * cli/cli-cmds.c (script_ext_enums): Likewise.
9248 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9249 enumlist parameter const char *const *.
9250 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9251 const char *const *.
9252 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9253 parameter const char *const *.
9254 * cris-tdep.c (cris_modes): Make it const char *const [].
9255 * filesystem.c (target_file_system_kinds): Likewise.
9256 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9257 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9258 (can_use_displaced_stepping_enum, scheduler_enums)
9259 (exec_direction_names): Likewise.
9260 * language.c (_initialize_language): Make the type_or_range_names and
9261 case_sensitive_names variables const char *const [].
9262 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9263 * python/python.c (python_excp_enums): Likewise.
9264 * remote.c (interrupt_sequence_modes): Likewise.
9265 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9266 * serial.c (logbase_enums): Likewise.
9267 * sh-tdep.c (sh_cc_enum): Likewise.
9268 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9270 * symtab.c (multiple_symbols_modes): Likewise.
9271 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9273 * utils.c (internal_problem_modes): Likewise.
9275 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9277 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9278 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9281 2012-01-27 Doug Evans <dje@google.com>
9283 * configure.ac (with_python): Fix absolute path handling for win32.
9284 * configure: Regenerate.
9286 2012-01-26 Doug Evans <dje@google.com>
9288 * symtab.c: Whitespace cleanup, no code changes.
9290 * symtab.c (lookup_symbol_in_language): Improve comment.
9291 (lookup_symbol_aux): Fix comment.
9293 * psymtab.c (add_psymbol_to_list): Result is now "void".
9294 * psympriv.h (add_psymbol_to_list): Update.
9296 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9298 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9300 Do not open script filenames twice.
9301 * cli/cli-cmds.c (source_script_from_stream): Pass to
9302 source_python_script also STREAM.
9303 * python/py-auto-load.c (source_section_scripts): Pass to
9304 source_python_script_for_objfile also STREAM.
9305 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9307 * python/python-internal.h (source_python_script_for_objfile): New
9308 parameter file, rename parameter file to filename.
9309 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9310 instead if !_WIN32. Update the function comment.
9311 (source_python_script, source_python_script_for_objfile)
9312 (source_python_script): New parameter file, rename parameter file to
9313 filename. Pass FILENAME to python_run_simple_file.
9314 * python/python.h (source_python_script): New parameter file, rename
9315 parameter file to filename.
9317 2012-01-26 Pedro Alves <palves@redhat.com>
9319 * corelow.c (core_has_fake_pid): Delete.
9320 (core_close): Delete references to `core_has_fake_pid'.
9321 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9322 (core_open): Delete references to `core_has_fake_pid'.
9323 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9326 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9328 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9329 Remove language parameter from name_matcher. Adjust the comment.
9330 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9331 Remove language parameter.
9332 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9333 * linespec.c (iterate_name_matcher): Likewise.
9334 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9335 name_matcher. Adjust call accordingly.
9336 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9337 (maintenance_check_symtabs): Adjust type of parameter "fun".
9338 * psymtab.h (maintenance_check_symtabs): Likewise.
9340 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9342 * language.h (symbol_name_match_p_ftype): New typedef.
9343 (struct language_defn): Replace field la_symbol_name_compare
9344 by la_get_symbol_name_match_p.
9345 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9346 (ada_language_defn): Use it.
9347 * linespec.c (struct symbol_matcher_data): New type.
9348 (iterate_name_matcher): Rewrite.
9349 (iterate_over_all_matching_symtabs): Pass a pointer to
9350 a symbol_matcher_data struct to expand_symtabs_matching
9351 instead of just the lookup name.
9352 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9353 opencl-lang.c, p-lang.c, language.c: Delete field
9354 la_symbol_name_compare, and replace by NULL for new field
9355 la_get_symbol_name_match_p.
9356 * symfile.h (struct quick_symbol_functions): Update comment.
9358 2012-01-25 Tom Tromey <tromey@redhat.com>
9360 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9363 2012-01-24 Tom Tromey <tromey@redhat.com>
9366 * solib.c (update_solib_list): Update the program space's
9367 added_solibs and deleted_solibs fields.
9368 * progspace.h (struct program_space) <added_solibs,
9369 deleted_solibs>: New fields.
9370 (clear_program_space_solib_cache): Declare.
9371 * progspace.c (release_program_space): Call
9372 clear_program_space_solib_cache.
9373 (clear_program_space_solib_cache): New function.
9374 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9375 bpstat_stop_status. Use handle_solib_event.
9376 * breakpoint.c: Include gdb_regex.h.
9377 (print_solib_event): New function.
9378 (bpstat_print): Use print_solib_event.
9379 (bpstat_stop_status): Add special case for bp_shlib_event.
9380 (handle_solib_event): New function.
9381 (bpstat_what): Use handle_solib_event.
9382 (struct solib_catchpoint): New.
9383 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9384 (breakpoint_hit_catch_solib, check_status_catch_solib)
9385 (print_it_catch_solib, print_one_catch_solib)
9386 (print_mention_catch_solib, print_recreate_catch_solib): New
9388 (catch_solib_breakpoint_ops): New global.
9389 (catch_load_or_unload, catch_load_command_1)
9390 (catch_unload_command_1): New functions.
9391 (internal_bkpt_check_status): Add special case for
9393 (internal_bkpt_print_it): Use print_solib_event.
9394 (initialize_breakpoint_ops): Initialize
9395 catch_solib_breakpoint_ops.
9396 (_initialize_breakpoint): Register "catch load" and "catch
9398 * breakpoint.h (handle_solib_event): Declare.
9399 * NEWS: Add entry for "catch load" and "catch unload".
9401 2012-01-24 Tom Tromey <tromey@redhat.com>
9403 * ada-lang.c: Include gdb_vecs.h.
9404 * charset.c: Include gdb_vecs.h.
9405 * tracepoint.h: Include gdb_vecs.h.
9406 * gdb_vecs.h: New file.
9408 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9410 * breakpoint.c (breakpoint_hit_catch_fork)
9411 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9412 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9413 * infrun.c (inferior_has_forked, inferior_has_vforked)
9414 (inferior_has_execd, inferior_has_called_syscall): Delete.
9415 (handle_syscall_event): Get syscall_number from the execution
9416 control state's wait status.
9417 (wait_for_inferior): Don't clear syscall_number.
9419 2012-01-24 Pedro Alves <palves@redhat.com>
9421 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9422 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9423 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9424 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9426 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9427 false for events other than TARGET_SIGNAL_TRAP.
9428 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9430 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9431 events other than TARGET_SIGNAL_TRAP.
9432 (tracepoint_breakpoint_hit): Add `ws' parameter.
9433 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9435 (bpstat_stop_status): Same.
9436 (pc_at_non_inline_function): Same.
9437 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9438 to pass the current event's waitstatus to bpstat_stop_status
9439 and pc_at_non_inline_function.
9441 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9444 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9445 Update the function comment for it.
9446 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9447 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9450 2012-01-24 Pedro Alves <palves@redhat.com>
9452 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9453 outside `bs->stop' block.
9454 (bpstat_what): Rework bp_shlib_event handling.
9455 (internal_bkpt_check_status): If the breakpoint is a
9456 bp_shlib_event, then set bs->stop and bs->print if
9457 stop_on_solib_events is set.
9459 2012-01-24 Gary Benson <gbenson@redhat.com>
9461 Delete #if 0'd out code.
9462 * stack.c (print_frame_label_vars): Remove.
9463 (catch_info): Likewise.
9464 (_initialize_stack): Remove "info catch" command.
9465 * NEWS: Mention the above.
9467 2012-01-24 Pedro Alves <palves@redhat.com>
9469 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9471 (remote_notice_new_inferior): If the remote end doesn't support
9472 the multiprocess extensions, then the PID is fake.
9473 (add_current_inferior_and_thread): New.
9474 (remote_start_remote): Use it.
9475 (extended_remote_attach_1): Adjust.
9476 (extended_remote_create_inferior_1): Use
9477 add_current_inferior_and_thread.
9479 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9481 Fix watchpoints to be specific for each inferior.
9482 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9483 current_program_space.
9484 * i386-nat.c (i386_inferior_data_cleanup): New.
9485 (i386_inferior_data_get): Replace variable inf_data_local by an
9487 (i386_use_watchpoints): Initialize i386_inferior_data.
9488 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9489 specific iterate_over_lwps.
9491 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9493 Fix watchpoints across inferior fork.
9494 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9495 comment for linux_nat_iterate_watchpoint_lwps.
9496 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9497 linux_nat_iterate_watchpoint_lwps.
9498 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9499 * i386-linux-nat.c (update_debug_registers_callback): Update the
9500 comment for linux_nat_iterate_watchpoint_lwps.
9501 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9502 linux_nat_iterate_watchpoint_lwps.
9503 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9504 * i386-nat.c: Include inferior.h.
9505 (dr_mirror): Remove.
9506 (i386_inferior_data, struct i386_inferior_data)
9507 (i386_inferior_data_get): New.
9508 (i386_debug_reg_state): Use i386_inferior_data_get.
9509 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9510 (i386_insert_watchpoint, i386_remove_watchpoint)
9511 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9512 (i386_remove_hw_breakpoint): New variable state, use
9513 i386_debug_reg_state instead of DR_MIRROR.
9514 * linux-nat.c (delete_lwp): New declaration.
9515 (num_lwps): Move here from downwards.
9516 (delete_lwp_cleanup): New.
9517 (linux_child_follow_fork): Create new child_lp, call
9518 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9520 (num_lwps): Move upwards.
9521 (linux_nat_iterate_watchpoint_lwps): New.
9522 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9523 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9525 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9529 2012-01-23 Pedro Alves <palves@redhat.com>
9531 * top.c (caution): Rename to ...
9532 (confirm): ... this.
9533 (show_caution): Rename to ...
9534 (show_confirm): ... this.
9535 (quit_cover): Adjust.
9536 (init_main): Adjust.
9537 * top.h (caution): Rename to ...
9538 (confirm): ... this.
9539 * utils.c (internal_vproblem, defaulted_query): Adjust.
9541 2012-01-23 Pedro Alves <palves@redhat.com>
9543 * top.c (caution): Update comment.
9544 (execute_command): Don't consider the current value of `caution'.
9546 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9548 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9550 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9552 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9553 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9554 * target.c (target_fileio_pwrite): Remove buffer address from
9556 (target_fileio_pread): Likewise.
9558 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9560 * NEWS: Document remote "info proc" and "generate-core-file".
9562 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9564 * gdbarch.sh (find_memory_regions): New callback.
9565 * gdbarch.c, gdbarch.h: Regenerate.
9567 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9568 callback before falling back to target method.
9570 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9571 (linux_target_install_ops): No longer install it.
9573 * linux-tdep.c (linux_find_memory_regions): New function.
9574 (linux_init_abi): Install it.
9576 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9578 * gdbarch.sh (make_corefile_notes): New architecture callback.
9579 * gdbarch.c: Regenerate.
9580 * gdbarch.h: Likewise.
9582 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9583 before target_make_corefile_notes. If NULL is returned, the
9584 target does not support core file generation.
9586 * linux-nat.c: Include "linux-tdep.h".
9587 (find_signalled_thread, find_stop_signal): Remove.
9588 (linux_nat_do_thread_registers): Likewise.
9589 (struct linux_nat_corefile_thread_data): Likewise.
9590 (linux_nat_corefile_thread_callback): Likewise.
9591 (iterate_over_spus): Likewise.
9592 (struct linux_spu_corefile_data): Likewise.
9593 (linux_spu_corefile_callback): Likewise.
9594 (linux_spu_make_corefile_notes): Likewise.
9595 (linux_nat_collect_thread_registers): New function.
9596 (linux_nat_make_corefile_notes): Replace contents by call to
9597 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9598 as native-only callback.
9600 * linux-tdep.h: Include "bfd.h".
9601 (struct regcache): Add forward declaration.
9602 (linux_collect_thread_registers_ftype): New typedef.
9603 (linux_make_corefile_notes): Add prototype.
9604 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9605 "regset.h", and "elf-bfd.h".
9606 (find_signalled_thread, find_stop_signal): New functions.
9607 (linux_spu_make_corefile_notes): Likewise.
9608 (linux_collect_thread_registers): Likewise.
9609 (struct linux_corefile_thread_data): New data structure.
9610 (linux_corefile_thread_callback): New funcion.
9611 (linux_make_corefile_notes): Likewise.
9612 (linux_make_corefile_notes_1): Likewise.
9613 (linux_init_abi): Install it.
9615 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9617 * gdbarch.sh (info_proc): New callback.
9618 * gdbarch.c, gdbarch.h: Regenerate.
9620 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9621 before falling back to the target info_proc callback.
9623 * linux-nat.c: Do not include "cli/cli-utils.h".
9624 (linux_nat_info_proc): Remove.
9625 (linux_target_install_ops): No longer install it.
9627 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9628 (read_mapping): New function.
9629 (linux_info_proc): Likewise.
9630 (linux_init_abi): Install it.
9632 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9634 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9635 * infcmd.c: (info_proc_cmd_1): New function.
9636 (info_proc_cmd): New function, moved here from equivalent routine
9637 orignally in linux-nat.c.
9638 (info_proc_cmd_mappings): Likewise.
9639 (info_proc_cmd_stat): Likewise.
9640 (info_proc_cmd_status): Likewise.
9641 (info_proc_cmd_cwd): Likewise.
9642 (info_proc_cmd_cmdline): Likewise.
9643 (info_proc_cmd_exe): Likewise.
9644 (info_proc_cmd_all): Likewise.
9645 (_initialize_infcmd): Install "info proc" command and subcommands.
9647 * target.h (struct target_ops): Add to_info_proc.
9648 (target_info_proc): Add prototype.
9649 * target.c (target_info_proc): New function.
9651 * procfs.c (procfs_info_proc): Add prototype.
9652 (info_proc_cmd): Rename into ...
9653 (procfs_info_proc): ... this. Update argument types as appropriate
9654 for a to_info_proc implementation. Handle "what" argument.
9655 (procfs_target): Install procfs_info_proc.
9656 (_initialize_procfs): No longer install "info proc" command.
9658 * linux-nat.c: (enum info_proc_what): Remove.
9659 (linux_nat_info_proc_cmd_1): Rename into ...
9660 (linux_nat_info_proc): ... this. Update argument types as appropriate
9661 for a to_info_proc implementation.
9662 (linux_nat_info_proc_cmd): Remove.
9663 (linux_nat_info_proc_cmd_mappings): Likewise.
9664 (linux_nat_info_proc_cmd_stat): Likewise.
9665 (linux_nat_info_proc_cmd_status): Likewise.
9666 (linux_nat_info_proc_cmd_cwd): Likewise.
9667 (linux_nat_info_proc_cmd_cmdline): Likewise.
9668 (linux_nat_info_proc_cmd_exe): Likewise.
9669 (linux_nat_info_proc_cmd_all): Likewise.
9670 (linux_target_install_ops): Install linux_nat_info_proc.
9671 (_initialize_linux_nat): No longer install "info proc" command
9674 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9676 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9677 * config.in, configure: Regenerate.
9679 * target.h (struct target_ops): Add to_fileio_readlink.
9680 (target_fileio_readlink): Add prototype.
9681 * target.c (target_fileio_readlink): New function.
9683 * inf-child.c: Conditionally include <sys/param.h>.
9684 (inf_child_fileio_readlink): New function.
9685 (inf_child_target): Install it.
9687 * remote.c (PACKET_vFile_readlink): New enum value.
9688 (remote_hostio_readlink): New function.
9689 (init_remote_ops): Install it.
9690 (_initialize_remote): Handle vFile:readlink packet type.
9692 2012-01-20 Pedro Alves <palves@redhat.com>
9693 Ulrich Weigand <ulrich.weigand@linaro.org>
9695 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9696 * config.in, configure: Regenerate.
9698 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9699 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9700 (target_fileio_open): Add prototype.
9701 (target_fileio_pwrite): Likewise.
9702 (target_fileio_pread): Likewise.
9703 (target_fileio_close): Likewise.
9704 (target_fileio_unlink): Likewise.
9705 (target_fileio_read_alloc): Likewise.
9706 (target_fileio_read_stralloc): Likewise.
9708 * target.c: Include "gdb/fileio.h".
9709 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9710 (default_fileio_target): New function.
9711 (target_fileio_open): Likewise.
9712 (target_fileio_pwrite): Likewise.
9713 (target_fileio_pread): Likewise.
9714 (target_fileio_close): Likewise.
9715 (target_fileio_unlink): Likewise.
9716 (target_fileio_close_cleanup): Likewise.
9717 (target_fileio_read_alloc_1): Likewise.
9718 (target_fileio_read_alloc): Likewise.
9719 (target_fileio_read_stralloc): Likewise.
9721 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9722 <fcntl.h>, and <unistd.h>.
9723 (inf_child_fileio_open_flags_to_host): New function.
9724 (inf_child_errno_to_fileio_error): Likewise.
9725 (inf_child_fileio_open): Likewise.
9726 (inf_child_fileio_pwrite): Likewise.
9727 (inf_child_fileio_pread): Likewise.
9728 (inf_child_fileio_close): Likewise.
9729 (inf_child_fileio_unlink): Likewise.
9730 (inf_child_target): Install to_fileio routines.
9732 * remote.c (init_remote_ops): Install to_fileio routines.
9734 2012-01-20 Pedro Alves <palves@redhat.com>
9735 Ulrich Weigand <ulrich.weigand@linaro.org>
9737 * remote.c (remote_multi_process_p): Only check for multi-process
9738 protocol feature, do not check for extended protocol.
9739 (remote_supports_multi_process): Check for extended protocol here.
9740 (set_general_process): Likewise.
9741 (extended_remote_kill): Likewise.
9742 (remote_pid_to_str): Likewise.
9743 (remote_query_supported): Always query multiprocess mode.
9745 2012-01-20 Pedro Alves <palves@redhat.com>
9746 Ulrich Weigand <ulrich.weigand@linaro.org>
9748 * inferior.h (struct inferior): Add fake_pid_p.
9749 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9750 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9751 magic_null_ptid since the remote side doesn't provide a real PID.
9753 2012-01-19 Tom Tromey <tromey@redhat.com>
9755 * NEWS: Combine the two Python sections.
9757 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9759 * target.h (target_close): Update comment on the target's unpush state.
9761 2012-01-19 Pedro Alves <palves@redhat.com>
9763 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9764 linux_nat_async directly instead of going through the target
9766 * target.c (unpush_target): Close target after unpushing it, not
9769 2012-01-19 Gary Benson <gbenson@redhat.com>
9771 * mdebugread.c (sort_blocks): Replace integer constants with ones
9772 derived from FIRST_LOCAL_BLOCK.
9774 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9775 Jan Kratochvil <jan.kratochvil@redhat.com>
9778 * symfile.c (find_separate_debug_file): New function.
9779 (terminate_after_last_dir_separator): Likewise.
9780 (find_separate_debug_file_by_debuglink): Also try realpath.
9781 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9782 * configure: Regenerate.
9783 * config.in: Regenerate.
9785 2012-01-18 Doug Evans <dje@google.com>
9787 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9788 (main.o): Remove rule.
9789 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9790 (--with-sysroot): Rewrite.
9791 * configure: Regenerate.
9792 * config.in: Regenerate.
9794 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9796 * parse.c (initialize_expout): New function.
9797 (reallocate_expout): Likewise.
9798 (parse_exp_in_context): Use `initialize_expout' and
9799 `reallocate_expout' when appropriate.
9801 2012-01-18 Pedro Alves <palves@redhat.com>
9803 * record.c (struct record_breakpoint, record_breakpoint_p)
9804 (record_breakpoints): New.
9805 (record_insert_breakpoint, record_remove_breakpoint): Manage
9806 record breakpoints list. Only remove breakpoints from the
9807 inferior if they had been inserted there in the first place.
9809 2012-01-17 Doug Evans <dje@google.com>
9811 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9812 if we know we don't have a file name to look for.
9814 2012-01-17 Pedro Alves <palves@redhat.com>
9816 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9817 the frame's stop reason is UNWIND_UNAVAILABLE.
9819 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9821 Fix compilation error.
9822 * m2-exp.y (yyerror): Use ANSI C prototype.
9824 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9826 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9827 (growbuf_by_size): Likewise.
9828 (yyerror): Likewise.
9829 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9830 (modblock): Remove variable (was #if 0'ed).
9831 (parse_number): Convert prototype from K&R to ANSI C.
9832 (yyerror): Likewise.
9833 * objc-exp.y (parse_number): Likewise.
9834 (yyerror): Likewise.
9835 (yylex): Remove #if 0'ed code.
9836 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9837 (yyerror): Likewise.
9839 2012-01-16 Tom Tromey <tromey@redhat.com>
9842 * symtab.h (compare_filenames_for_search): Declare.
9843 * symtab.c (compare_filenames_for_search): New function.
9844 (iterate_over_some_symtabs): Use it.
9845 * symfile.h (struct quick_symbol_functions)
9846 <map_symtabs_matching_filename>: Change spec.
9847 * psymtab.c (partial_map_symtabs_matching_filename): Use
9848 compare_filenames_for_search. Update for new spec.
9849 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9850 compare_filenames_for_search. Update for new spec.
9851 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9853 2012-01-16 Tom Tromey <tromey@redhat.com>
9856 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9857 (struct main_type) <flag_flag_enum>: New field.
9858 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9859 * NEWS: Add entries.
9860 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9862 * python/lib/gdb/printing.py (_EnumInstance): New class.
9863 (FlagEnumerationPrinter): Likewise.
9865 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9867 * breakpoint.c (create_sals_from_address_default): New function.
9868 (create_breakpoints_sal_default): Likewise.
9869 (decode_linespec_default): Likewise.
9870 (is_marker_spec): Removed.
9871 (strace_marker_p): New function.
9872 (init_breakpoint_sal): Using `strace_marker_p' instead of
9874 (create_breakpoint): Call method `create_sals_from_address' from
9875 breakpoint_ops, replacing code that created SALs conditionally
9876 on the type of the breakpoint. Call method `create_breakpoints_sal',
9877 replacing code that created breakpoints conditionally on the type
9879 (base_breakpoint_create_sals_from_address): New function.
9880 (base_breakpoint_create_breakpoints_sal): Likewise.
9881 (base_breakpoint_decode_linespec): Likewise.
9882 (base_breakpoint_ops): Add methods
9883 `base_breakpoint_create_sals_from_address',
9884 `base_breakpoint_create_breakpoints_sal' and
9885 `base_breakpoint_decode_linespec'.
9886 (bkpt_create_sals_from_address): New function.
9887 (bkpt_create_breakpoints_sal): Likewise.
9888 (bkpt_decode_linespec): Likewise.
9889 (tracepoint_create_sals_from_address): Likewise.
9890 (tracepoint_create_breakpoints_sal): Likewise.
9891 (tracepoint_decode_linespec): Likewise.
9892 (strace_marker_create_sals_from_address): Likewise.
9893 (strace_marker_create_breakpoints_sal): Likewise.
9894 (strace_marker_decode_linespec): Likewise.
9895 (strace_marker_breakpoint_ops): New variable.
9896 (addr_string_to_sals): Remove `marker_spec'. Call method
9897 `decode_linespec' from breakpoint_ops, replacing code that decoded
9898 an address string into a SAL. Use `strace_marker_p' instead of
9900 (strace_command): Decide whether we are dealing with a static
9901 tracepoint with marker or not. Use the appropriate breakpoint_ops.
9902 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
9903 * breakpoint.h (linespec_result, linespec_sals): New forward
9905 (breakpoint_ops) <create_sals_from_address>,
9906 <create_breakpoints_sal>, <decode_linespec>: New methods.
9908 2012-01-14 Doug Evans <dje@google.com>
9910 * NEWS: Update text for "maint set python print-stack".
9911 It is deprecated in gdb 7.4 and deleted in 7.5.
9913 2012-01-13 Eli Zaretskii <eliz@gnu.org>
9915 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
9918 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9920 * configure: Regenerate.
9921 * config.in: Regenerate.
9923 2012-01-12 Keith Seitz <keiths@redhat.com>
9926 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
9927 (ANONYMOUS_UNION_NAME): Define.
9928 (is_path_expr_parent): New function.
9929 (get_path_expr_parent): New function.
9930 (is_anonymous_child): New function.
9931 (create_child_with_value): If the child is anonymous and without
9932 a name, assign an object name to it.
9933 (c_describe_child): Use get_path_expr_parent to determine
9934 the parent expression.
9935 If there field represents an anonymous struct or union and
9936 has no name, set an appropriate display name and expression.
9937 (cplus_describe_child): Likewise.
9939 2012-01-12 Pedro Alves <palves@redhat.com>
9941 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
9942 available when %ebp is found to be zero (outermost).
9944 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
9946 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
9947 an internal gdb_static_assert.
9948 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
9950 2012-01-11 Tom Tromey <tromey@redhat.com>
9953 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
9954 catch" and "catch throw".
9956 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
9958 * blockframe.c (block_innermost_frame): Start search from selected
9959 frame, if present, or otherwise the current frame.
9961 * c-exp.y (variable): Update innermost_block for
9962 'block COLONCOLON NAME' clause.
9963 * m2-exp.y (variable): Ditto.
9964 * objc-exp.y (variable): Ditto.
9966 2012-01-10 Tom Tromey <tromey@redhat.com>
9969 * python/python.c (finish_python_initialization): Set sys.argv.
9971 2012-01-10 Doug Evans <dje@google.com>
9973 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
9974 "want_line_info". All callers updated.
9975 (dwarf_decode_lines_1): New function.
9976 (handle_DW_AT_stmt_list): Add function comment.
9977 New arg "want_line_info". All callers updated.
9978 (read_file_scope,read_type_unit_scope): Move comment from
9979 handle_DW_AT_stmt_list to here.
9981 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9983 Fix regression after libiberty/ update for GCC PR 6057 and others.
9984 * c-exp.y (operator) <OPERATOR DELETE>
9985 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9986 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
9987 (make_builtin_type, make_name): New variable i, add gdb_assert.
9988 (operator) <OPERATOR NEW>: Update ARGS to 3.
9989 (operator) <OPERATOR DELETE>: Add trailing space.
9990 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
9991 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9992 * cp-support.c (cp_canonicalize_string): Check NULL from
9993 cp_comp_to_string, call warning and return.
9995 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9997 Fix duplicate .o files after omitting libbfd.a.
9998 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
9999 (SFILES): Add corelow.c.
10000 (COMMON_OBS): Add corelow.o.
10001 (ALLDEPFILES): Remove corelow.c.
10002 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10003 * config/alpha/alpha-osf3.mh: Likewise.
10004 * config/alpha/fbsd.mh: Likewise.
10005 * config/arm/nbsdaout.mh: Likewise.
10006 * config/arm/nbsdelf.mh: Likewise.
10007 * config/i386/i386gnu.mh: Likewise.
10008 * config/ia64/hpux.mh: Likewise.
10009 * config/ia64/linux.mh: Likewise.
10010 * config/m32r/linux.mh: Likewise.
10011 * config/m68k/linux.mh: Likewise.
10012 * config/mips/irix5.mh: Likewise.
10013 * config/mips/irix6.mh: Likewise.
10014 * config/pa/hpux.mh: Likewise.
10015 * config/pa/linux.mh: Likewise.
10016 * config/powerpc/aix.mh: Likewise.
10017 * config/sparc/linux.mh: Likewise.
10018 * config/sparc/linux64.mh: Likewise.
10019 * config/sparc/sol2.mh: Likewise.
10020 * config/vax/vax.mh: Likewise.
10021 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10022 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10023 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10024 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10025 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10026 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10027 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10028 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10029 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10030 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10031 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10032 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10033 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10034 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10035 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10036 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10037 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10038 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10039 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10040 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10041 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10042 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10043 corelow.o from gdb_target_obs.
10044 * corefile.c (core_target): Update the comment on NULL value.
10045 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10046 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10047 MATCHES. Drop YUMMY set on NULL.
10048 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10049 reclaim CORE_DATA if it is already NULL.
10051 2012-01-09 Doug Evans <dje@google.com>
10053 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10054 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10056 2012-01-09 Keith Seitz <keiths@redhat.com>
10058 * breakpoint.c (wrapper.h): Don't include.
10060 2012-01-09 Keith Seitz <keiths@redhat.com>
10062 * Makefile.in (SFILES): Remove wrapper.c.
10063 (HFILES_NO_SRCDIR): Remove wrapper.h.
10064 (COMMON_OBS): Remove wrapper.o.
10065 * cli/cli-interp.c: Don't inlude wrapper.h.
10066 * corelow.c: Likewise.
10067 (core_open): Replace gdb_target_find_new_threads with
10068 TRY_CATCH around target_find_new_threads.
10069 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10070 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10071 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10072 evaluate_expression.
10073 (varobj_set_value): Likewise for evaluate_expression and
10075 (install_new_variable): Likewise for value_fetch_lazy.
10076 (adjust_value_for_child_access): Likewise for value_ind.
10077 (c_describe_child): Likewise for value_subscript and
10079 (c_value_of_root): Likewise for evaluate_expression.
10080 * wrapper.c: Remove.
10081 * wrapper.h: Remove.
10083 2012-01-09 Doug Evans <dje@google.com>
10085 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10086 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10087 "abfd" args with "section". All callers updated.
10088 Error checking code moved ...
10089 (error_check_comp_unit_head): ... here. New function.
10090 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10091 Delete arg "abfd". New arg "type_offset". All callers updated.
10092 (create_debug_types_hash_table): Simplify by using
10093 read_and_check_type_unit_head.
10095 * parser-defs.h (namecopy): Delete.
10096 * parse.c (namecopy, namecopy_size): Move into copy_name.
10098 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10100 Partially fix duplicate .o files after omitting libbfd.a.
10101 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10102 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10103 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10104 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10105 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10106 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10107 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10109 2012-01-09 Pedro Alves <palves@redhat.com>
10111 * MAINTAINERS: Update my email address.
10113 2012-01-08 Doug Evans <dje@google.com>
10115 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10116 n_type_units. Rename type_comp_units to all_type_units.
10118 (add_signatured_type_cu_to_table): Renamed from
10119 add_signatured_type_cu_to_list. All callers updated.
10121 * gdbtypes.h (struct cplus_struct_type): Delete member
10122 nfn_fields_total. All uses removed.
10124 2012-01-06 Doug Evans <dje@google.com>
10126 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10128 (dwarf2_find_comp_unit): Delete.
10129 (process_psymtab_comp_unit): Make result "void".
10130 Delete args buffer, info_ptr, buffer_size, and replace with
10131 "section". All callers updated.
10132 (dwarf2_build_psymtabs_hard): Simplify.
10134 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10135 Thiago Jung Bauermann <bauerman@br.ibm.com>
10137 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10138 before `struct gdb_exception'.
10139 * breakpoint.c (update_global_location_list_nothrow)
10140 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10141 * cp-abi.c (value_rtti_type): Likewise.
10142 * cp-support.c (cp_validate_operator): Likewise.
10143 * infrun.c (insert_exception_resume_breakpoint)
10144 (check_exception_resume, keep_going): Likewise.
10145 * mi-interp.c (mi_breakpoint_created)
10146 (mi_breakpoint_modified): Likewise.
10147 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10148 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10149 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10151 2012-01-05 Doug Evans <dje@google.com>
10153 * dwarf2read.c (statement_prologue): Delete, unused.
10155 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10156 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10158 * dwarf2read.c (comp_unit_header): Delete, unused.
10160 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10162 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10163 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10165 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10167 * infrun.c (normal_stop): Don't skip calling the normal_stop
10168 observers if the thread was doing a multi-step, but stopped for
10169 some reason other than stepping.
10171 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10173 * cli/cli-decode.h: Add comments.
10174 (CMD_LIST_AMBIGUOUS): Moved to command.h
10175 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10176 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10177 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10178 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10179 (add_com, add_com_alias, add_info, add_info_alias)
10180 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10182 * command.h: Add and adjust comments.
10183 (CMD_LIST_AMBIGUOUS): Moved here.
10184 (help_cmd, help_cmd_list): Delete declarations.
10186 2012-01-04 Doug Evans <dje@google.com>
10188 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10189 All callers updated.
10190 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10191 Replace all arguments with "per_cu". All callers updated.
10193 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10195 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10196 New arg "per_cu". All callers updated.
10198 Delete #if 0'd out code.
10199 * language.c (binop_result_type): Delete.
10200 (simple_type, ordered_type, same_type, integral_type): Delete.
10201 (numeric_type, character_type, string_type, boolean_type): Delete.
10202 (float_type, structured_type): Delete.
10203 * language.h: Update.
10205 2012-01-04 Tom Tromey <tromey@redhat.com>
10207 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10209 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10211 * corefile.c (close_exec_file): Delete.
10212 (reopen_exec_file): Remove commented out code that seems related
10213 to close_exec_file, which is being deleted here.
10214 * inferior.h (close_exec_file): Delete.
10215 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10217 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10219 * ada-lang.c: #include "cli/cli-utils.h".
10220 (get_selections): Use skip_spaces.
10221 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10222 (catch_ada_exception_command_split): Use skip_spaces.
10223 (ada_decode_assert_location): Likewise.
10225 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10227 * linespec.c (decode_line_internal): Check for C++ or Java
10228 compound constructs only if the current language is C, C++
10231 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10234 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10235 Joel Brobecker <brobecker@adacore.com>
10236 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10237 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10239 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10240 fall through into AT_ENTRY_POINT.
10241 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10242 DUMMY_ADDR with it.
10243 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10244 PPC_INSN_SIZE skip to 3 times.
10246 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10248 * linespec.c (add_minsym): Preserve function descriptors.
10250 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10252 * breakpoint.c (all_locations_are_pending): Consider locations
10253 in program spaces executing during startup pending as well.
10255 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10257 Copyright year update in most files of the GDB Project.
10259 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10261 * copyright.sh: Delete.
10262 * copyright.py: Rewrite.
10264 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10266 * gnulib/extra/update-copyright: New file, imported from gnulib.
10268 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10270 * README (Copyright and License Notices): New section.
10272 2012-01-03 Tom Tromey <tromey@redhat.com>
10275 * python/py-value.c (valpy_dereference, valpy_get_address
10276 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10277 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10278 (valpy_absolute, valpy_richcompare): Free intermediate values.
10280 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10282 * ada-lang.c: Reformat the copyright notice.
10284 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10286 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10287 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10288 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10289 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10290 Revert this part of:
10291 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10292 Build gdb directly from *.o files not using libgdb.a.
10293 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10295 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10297 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10298 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10299 Reformat the copyright header.
10301 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10303 Revert this part of:
10304 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10305 Remove the gdbtui binary.
10306 * gdb.c (main): Remove args.interpreter_p initialization.
10307 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10308 * main.h (struct captured_main_args): Remove interpreter_p.
10310 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10312 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10314 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10316 * top.c (print_gdb_version): Update copyright year.
10318 2012-01-02 Yao Qi <yao@codesourcery.com>
10320 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10322 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10323 Joel Brobecker <brobecker@adacore.com>
10325 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10326 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10328 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10329 fall through into AT_ENTRY_POINT.
10330 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10331 DUMMY_ADDR with it.
10332 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10333 PPC_INSN_SIZE skip to 3 times.
10335 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10337 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10339 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10341 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10343 Build gdb directly from *.o files not using libgdb.a.
10344 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10345 (COMMON_OBS): Remove solib-target.o.
10346 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10347 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10348 (LIBGDB_OBS, libgdb.a): Move it above.
10349 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10350 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10351 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10352 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10353 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10354 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10355 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10356 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10357 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10358 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10359 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10360 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10361 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10362 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10363 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10364 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10365 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10366 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10367 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10368 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10369 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10370 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10371 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10372 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10373 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10374 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10375 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10377 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10379 Remove the gdbtui binary.
10380 * .gitignore (/gdbtui): Remove.
10381 * Makefile.in (TUI): Remove.
10382 (SUBDIR_TUI_OBS): Remove tui-main.o.
10383 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10384 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10385 (tui-main.o): Remove.
10386 (all_object_files): Remove tui-main.o.
10387 * NEWS: New note for the gdbtui removal.
10388 * configure: Rebuilt.
10389 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10390 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10391 CONFIG_UNINSTALL respectively.
10392 * gdb.c (main): Remove args.interpreter_p initialization.
10393 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10394 * main.h (struct captured_main_args): Remove interpreter_p.
10395 * tui/tui-main.c: Remove.
10397 2012-01-01 Doug Evans <dje@google.com>
10399 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10400 (dwarf2_physname, read_import_statement): Ditto.
10401 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10402 (process_structure_scope read_subroutine_type): Ditto.
10403 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10404 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10405 (dwarf2_fetch_die_location_block): Ditto.
10406 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10408 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10409 All callers updated.
10410 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10411 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10412 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10414 * dwarf2read.c (load_cu): Move assert to more useful location.
10416 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10417 All callers updated.
10419 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10420 (dwarf2_elf_names): Minor reformat.
10421 (dwarf2_per_cu_data): Tweak comment.
10422 (dwarf2_read_section): Fix comment.
10423 (create_all_comp_units): Fix comment.
10424 (load_full_comp_unit): Fix comment.
10425 (process_full_comp_unit): Fix comment.
10426 (read_signatured_type): Fix comment.
10428 For older changes see ChangeLog-2011.
10434 version-control: never