1 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
3 * sh-tdep.c (sh_register_convert_to_virtual)
4 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
5 all callers. Just do a memcpy if not the little-endian case.
7 * h8300-tdep.c (h8300_gdbarch_init): Invoke
8 set_gdbarch_double_format and set_gdbarch_long_double_format.
9 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
10 set_gdbarch_double_format.
11 * sh-tdep.c (sh_gdbarch_init): Likewise.
13 * NEWS: Document the removal of SH's 'regs' command.
14 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
17 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
19 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
22 2012-09-18 Joel Brobecker <brobecker@adacore.com>
24 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
25 language when iterating over symbols.
27 2012-09-18 Yao Qi <yao@codesourcery.com>
29 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
30 (mi_interpreter_init): Call observer_attach_tsv_created and
31 observer_attach_tsv_deleted.
32 (mi_tsv_created, mi_tsv_deleted): New.
33 * tracepoint.c (delete_trace_state_variable): Call
34 observer_notify_tsv_deleted.
35 (trace_variable_command): Call observer_notify_tsv_created.
36 (delete_trace_variable_command): Call
37 observer_notify_tsv_deleted.
38 (create_tsv_from_upload): Call observer_notify_tsv_created.
41 2012-09-18 Yao Qi <yao@codesourcery.com>
43 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
44 if traceframe changed.
45 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
47 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
48 (mi_interpreter_init): Hook mi_traceframe_changed to observer
50 (mi_traceframe_changed): New.
51 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
53 * NEWS: Mention the new MI notification.
55 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
57 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
59 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
61 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
62 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
63 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
64 Extend code also for PaX support. Convert all gdb_assert to warning
67 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
69 Implement auto-load user conveniences suggested by Doug Evans.
70 * auto-load.c: Include top.h.
71 (file_is_auto_load_safe): New variable advice_printed. Print advice.
72 (_initialize_auto_load): New variable scripts_directory_help. Mention
73 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
74 scripts-directory. Document in online help one can use also files for
75 set auto-load safe-path.
76 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
77 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
79 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
81 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
84 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
86 * m2-valprint.c (m2_print_array_contents): Eliminate variable
87 ELTLEN and use TYPE_LENGTH directly.
88 (m2_val_print): Likewise.
89 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
90 variable LEN and use TYPE_LENGTH directly.
91 (m68k_svr4_store_return_value): Likewise.
92 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
93 ARGLEN and use TYPE_LENGTH directly.
94 (mips_o64_push_dummy_call): Likewise.
95 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
96 variable LENGTH and use TYPE_LENGTH directly.
97 (s390_function_arg_float): Likewise.
98 (s390_function_arg_integer): Likewise.
99 (s390_push_dummy_call): Likewise.
100 (s390_return_value_convention): Likewise.
101 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
102 TYPE_LENGTH directly.
104 2012-09-17 Yao Qi <yao@codesourcery.com>
106 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
107 Update comment to add_setshow_integer_cmd.
108 * cli/cli-setshow.c (do_set_command): Handle case
109 'var_zuinteger_unlimited'.
110 (do_show_command): Likewise.
111 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
112 for command 'remotetimeout'.
113 * command.h (enum var_types): New zuinteger_unlimited. Update comment
115 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
116 for command 'set listsize'.
118 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
120 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
123 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
126 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
127 (frame_pop): Drop also TAILCALL_FRAME frames.
128 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
130 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
131 Pedro Alves <palves@redhat.com>
134 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
135 function start if we are already at function start. Both for
136 reverse-next and for reverse-step into function without line number
139 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
141 Code cleanup - rename 'inline' depth to 'artificial' depth.
142 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
143 frame_id_artificial_p, extend the comment.
144 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
145 * frame.c (fprint_frame_id): Rename at a user, change debug output
146 text to "artificial=".
147 (skip_inlined_frames): Rename to ...
148 (skip_artificial_frames): ... here. Extend the comment.
149 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
150 (frame_id_inlined_p): Rename to ...
151 (frame_id_artificial_p): ... here. Rename at a user.
152 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
153 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
155 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
157 (frame_id_inlined_p): Rename to ...
158 (frame_id_artificial_p): ... here.
159 * inline-frame.c (inline_frame_this_id): Rename at a user.
161 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
163 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
164 vector variables using vector_size syntax rather than array
167 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
169 * valarith.c (value_concat): Replace unsafe ALLOCA with
172 2012-09-14 Pedro Alves <palves@redhat.com>
174 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
176 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
178 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
179 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
180 data-directory as appropriate.
182 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
184 * printcmd.c (ui_printf): Eliminate single-use variable
187 2012-09-14 Yao Qi <yao@codesourcery.com>
188 Pedro Alves <palves@redhat.com>
190 * valops.c (value_assign): Move observer_notify_target_changed
191 below to replace reinit_frame_cache.
193 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
195 Refactor Python "gdb" module into a proper Python package, by
196 introducing a new "_gdb" module for code implemented in C, and
197 using reload/__import__ instead of exec.
198 * python/lib/gdb/__init__.py: Import * from _gdb.
199 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
200 prompt_hook, sys.argv): Moved from finish_python_initialization.
201 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
202 (packages, auto_load_packages): New list and function replacing
203 module_dict and auto-loading code, using __file__ instead of
204 gdb.PYTHONDIR and reload/__import__ instead of exec.
205 (GdbSetPythonDirectory): Replacing function of the same name
206 from finish_python_initialization, using reload/__import__ instead
207 of exec, as well as call auto_load_packages.
208 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
209 gdb_python_module and not gdb_module.
210 * python/python-internal.h (gdb_python_module): Declare.
211 * python/python.c (gdb_python_module): New global.
212 (before_prompt_hook): Check gdb_python_module and not gdb_module.
213 (_initialize_python): Rename gdb module to _gdb.
214 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
215 (finish_python_initialization): Move Python code to
216 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
219 2012-09-13 Pedro Alves <palves@redhat.com>
221 * Makefile.in (COMMON_OBS): Add registry.o.
222 * registry.c: New file.
223 * registry.h (struct registry_container): Declare.
224 (registry_data_callback): New typedef.
225 (struct registry_data, struct registry_data_registration, struct
226 registry_data_registry): New type.
227 (register_data_with_cleanup, registry_alloc_data)
228 (registry_callback_adaptor, registry_clear_data)
229 (registry_container_free_data, registry_set_data, registry_data):
231 (DEFINE_REGISTRY): Refactor structures and functions as shims over
232 the new common structures and functions.
233 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
236 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
238 * remote.c (remote_insert_hw_breakpoint): Throw exception if
239 there is an error inserting hardware breakpoints and use the
240 error message from the target.
242 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
243 Catch this exception and print the error message contained within. Do not
244 print the default hardware error breakpoint message in this case.
246 2012-09-12 Doug Evans <dje@google.com>
248 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
251 2012-09-11 Doug Evans <dje@google.com>
253 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
254 .gdb_index symbol attributes if there are none.
256 2012-09-11 Joel Brobecker <brobecker@adacore.com>
258 * symtab.h (struct minimal_symbol) [has_size]: New field.
259 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
260 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
261 * printcmd.c (build_address_symbolic): Only filter out zero-sized
262 minimal symbols if the symbol's size is actually known.
263 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
264 of msymbol's size field. Add comment.
265 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
266 SET_MSYMBOL_SIZE to set the minimal symbol size.
268 2012-09-11 Joel Brobecker <brobecker@adacore.com>
270 * minsyms.c (install_minimal_symbols): Use memset to fill entire
271 minimal_symbol struct object, rather than setting some of its
274 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
276 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
277 passed_a_ptr flag when displaying typedef types.
279 2012-09-10 Joel Brobecker <brobecker@adacore.com>
281 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
282 the optimized_out flag is preserved.
284 2012-09-10 Anthony Green <green@moxielogic.com>
286 * moxie-tdep.c (moxie_analyze_prologue): Update for function
287 prologue changes in GCC.
289 2012-09-10 Keith Seitz <keiths@redhat.com>
292 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
293 (BOOL_CONVERSION_BADNESS): ... this.
294 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
295 (rank_one_type): Allow all boolean conversions
296 permitted by the standard.
298 2012-09-06 Tom Tromey <tromey@redhat.com>
300 * python/py-newobjfileevent.c (create_new_objfile_event_object):
301 Don't decref py_objfile.
303 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
305 Do not enable -lmcheck by default when Python is enabled with
307 * configure.ac: (python_has_threads) New variable, by testing
308 if WITH_THREAD is defined in Python.h.
309 Move --enable-lmcheck after --with-python.
310 Do not enable -lmcheck by default if python_has_threads=yes.
311 Warn if --enable-lmcheck and python_has_threads=yes.
312 * configure: Regenerate.
314 2012-08-31 Yao Qi <yao@codesourcery.com>
316 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
317 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
318 Update some commands.
319 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
320 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
323 2012-08-31 Yao Qi <yao@codesourcery.com>
325 * mi/mi-cmds.c (mi_cmds): Add 'static'.
327 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
329 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
331 2012-08-29 Doug Evans <dje@google.com>
333 * main.c (print_gdb_help): Remove reference to
334 --use-deprecated-index-sections.
336 2012-08-28 Yao Qi <yao@codesourcery.com>
338 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
339 (init_cmds): Call add_setshow_uinteger_cmd for command
340 'max-user-call-depth'.
341 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
342 declaration of 'max_user_call_depth'.
343 * frame.c (backtrace_limit): Add 'unsigned'.
344 (_initialize_frame): Call add_setshow_uinteger_cmd for command
346 * remote.c (remoteaddresssize): Add 'unsigned'.
347 (remote_address_masked): Change local var 'address_size' to
349 (_initialize_remote): Call add_setshow_uinteger_cmd for
351 * top.c (history_size): Add 'unsigned'.
352 (show_commands): Change local variables to 'unsigned'.
353 (set_history_size_command): Don't check history_size is negative.
354 Adjust the condition to call unstifle_history and set history_size
357 2012-08-28 Pedro Alves <palves@redhat.com>
361 * infcmd.c (default_print_one_register_info): New, factored out
362 from default_print_registers_info.
363 (default_print_registers_info): Use it. Mark value unavailable if
365 (registers_info): Print user registers with
366 default_print_one_register_info.
368 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
371 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
372 is not NULL before referencing it.
374 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
376 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
377 variable pc. Call find_pc_line instead of find_pc_overlay, restore
380 2012-08-27 Eli Zaretskii <eliz@gnu.org>
381 Jan Kratochvil <jan.kratochvil@redhat.com>
383 * auto-load.c (auto_load_objfile_script): Rename to ...
384 (auto_load_objfile_script_1): ... here, change variable realname to
385 parameter realname, document it, add return value, add variable retval.
386 (auto_load_objfile_script): New function.
388 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
390 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
391 followed by a whitespace.
393 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
396 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
397 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
398 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
401 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
403 * memattr.c (create_mem_region): Fix memory region overlapping
406 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
408 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
409 with xmalloc/cleanup.
410 * mt-tdep.c (mt_push_dummy_call): Likewise.
411 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
412 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
414 2012-08-24 Yao Qi <yao@codesourcery.com>
416 * jv-exp.y (push_expression_name): Add "." at the end of error
419 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
421 Document how to return from "python-interactive" to GDB.
422 * python/python.c (_initialize_python): Update documentation.
424 2012-08-23 Pedro Alves <palves@redhat.com>
426 * infrun.c (_initialize_infrun) <handle command help text>:
427 Mention that multiple signals are supported.
429 2012-08-23 Pedro Alves <palves@redhat.com>
431 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
434 2012-08-23 Yao Qi <yao@codesourcery.com>
436 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
437 (tfind_1): Don't call registers_changed, set_traceframe_num,
438 and clear_traceframe_info.
439 Call set_current_traceframe.
440 (set_current_traceframe): call set_traceframe_num.
442 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
444 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
445 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
447 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
449 Enable readline in Python in a GDB-specific way and block the
450 standard Python readline module to prevent conflicts with GDB.
451 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
452 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
453 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
454 * python/py-gdb-readline.c: New file.
455 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
457 * python/python.c (_initialize_python): Call
458 gdbpy_initialize_gdb_readline.
460 2012-08-22 Keith Seitz <keiths@redhat.com>
462 * defs.h: Include build-gnulib/config.h
464 2012-08-22 Joseph Myers <joseph@codesourcery.com>
466 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
469 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
471 Add a new "python-interactive" command that starts a standard
472 Python interactive prompt with "pi" as alias, and add "py" as
473 an alias to "python".
474 * NEWS: Mention the new commands.
475 * python/python.c (eval_python_command): New function.
476 (python_interactive_command): For "python-interactive" with
477 arguments, call eval_python_command. For "python-interactive"
478 without arguments, call PyRun_InteractiveLoop.
479 (_initialize_python): Add "python-interactive" command with
480 "pi" as alias, and add "py" as an alias to "python".
482 2012-08-22 Tom Tromey <tromey@redhat.com>
484 * defs.h (quit_flag): Don't declare.
485 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
486 (QUIT): Use new functions.
487 * event-top.c (command_handler): Use clear_quit_flag.
488 (handle_sigint): Use set_quit_flag.
489 (async_request_quit): Use check_quit_flag. Don't check
491 * exceptions.c (throw_exception): Use clear_quit_flag.
492 * main.c (captured_main): Use clear_quit_flag.
493 * python/python.c (clear_quit_flag, set_quit_flag)
494 (check_quit_flag): New functions.
495 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
497 * remote.c (remote_wait_as): Use check_quit_flag,
499 (remote_start_remote): Call QUIT.
500 * symfile.c (load_progress): Use check_quit_flag.
501 * top.c (command_loop): Use clear_quit_flag.
502 (command_line_input): Call QUIT.
503 * utils.c (quit_flag): Conditionally define.
504 (clear_quit_flag, check_quit_flag, set_quit_flag): New
506 (prompt_for_continue): Call QUIT. Use quit, not
508 * remote-mips.c (mips_expect_timeout): Call QUIT.
509 * monitor.c (monitor_expect): Call QUIT.
511 2012-08-22 Tom Tromey <tromey@redhat.com>
513 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
514 (async_init_signals): Update.
515 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
516 (SIGWINCH_HANDLER_BODY): Remove.
518 2012-08-22 Tom Tromey <tromey@redhat.com>
520 * jit.c (jit_object_close_impl): Don't malloc the objfile
522 * objfiles.c (allocate_objfile): Don't malloc the objfile
524 (free_objfile): Don't free the objfile name.
525 * objfiles.h (struct objfile) <name>: Update comment.
526 * symfile.c (reread_symbols): Fix reference counting. Don't
529 2012-08-22 Tom Tromey <tromey@redhat.com>
531 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
532 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
533 (symfile_bfd_open): Likewise.
534 (generic_load): Likewise.
535 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
536 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
538 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
540 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
541 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
542 (pmon_load_fast): Likewise.
543 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
544 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
545 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
546 (macho_check_dsym): Likewise.
547 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
548 (m32r_upload_command): Likewise.
549 * gdb_bfd.h (gdb_bfd_cache): Declare.
550 * gdb_bfd.c (struct gdb_bfd_data): New.
551 (gdb_bfd_cache): New global.
552 (struct gdb_bfd_cache_search): New.
553 (hash_bfd): New function.
555 (gdb_bfd_open): Likewise.
556 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
557 (gdb_bfd_unref): Remove closed BFD from cache. Update for
559 * exec.c (exec_file_attach): Use gdb_bfd_open.
560 * dsrec.c (load_srec): Use gdb_bfd_open.
562 2012-08-22 Tom Tromey <tromey@redhat.com>
564 * dwarf2read.c (macro_start_file): Update.
565 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
566 (free_objfile_per_bfd_storage): Destroy macro_cache.
567 (allocate_objfile, free_objfile): Update.
568 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
570 (struct objfile) <macro_cache>: Remove.
571 * symfile.c (reread_symbols): Update.
572 * symmisc.c (print_symbol_bcache_statistics): Update.
573 (print_objfile_statistics): Update.
575 2012-08-22 Tom Tromey <tromey@redhat.com>
577 * elfread.c (elf_symtab_read): Update.
578 * objfiles.c (objfiles_bfd_data): New global.
579 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
580 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
581 (allocate_objfile, free_objfile): Update.
582 (_initialize_objfiles): Initialize objfiles_bfd_data.
583 * objfiles.h (struct objfile_per_bfd_storage): New.
584 (struct objfile) <per_bfd>: New field.
585 <filename_cache>: Remove.
586 (set_objfile_per_bfd): Declare.
587 * symfile.c (reread_symbols): Update. Call
589 (allocate_symtab): Update.
590 * symmisc.c (print_symbol_bcache_statistics): Update.
591 (print_objfile_statistics): Print the size of the BFD obstack.
593 2012-08-22 Tom Tromey <tromey@redhat.com>
595 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
596 * gdb_bfd.c: Use DEFINE_REGISTRY.
597 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
598 (gdb_bfd_ref): Call bfd_alloc_data.
599 (gdb_bfd_unref): Call bfd_free_data.
601 2012-08-22 Tom Tromey <tromey@redhat.com>
603 * registry.h (struct registry_fields): New.
604 (REGISTRY_FIELDS): Redefine.
605 (REGISTRY_ACCESS_FIELD): New macro.
606 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
609 2012-08-22 Tom Tromey <tromey@redhat.com>
611 * auto-load.c (_initialize_auto_load): Update.
612 * solib-svr4.c (_initialize_svr4_solib): Update
613 * solib-dsbt.c (_initialize_dsbt_solib): Update.
614 * solib-darwin.c (_initialize_darwin_solib): Update.
615 * registry.h: New file.
616 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
617 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
618 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
619 (register_program_space_data_with_cleanup)
620 (register_program_space_data, program_space_alloc_data)
621 (clear_program_space_data, set_program_space_data)
622 (program_space_data): Don't declare.
623 * progspace.c: Use DEFINE_REGISTRY.
624 (struct program_space_data, struct
625 program_space_data_registration, struct
626 program_space_data_registry, program_space_data_registry)
627 (register_program_space_data_with_cleanup)
628 (register_program_space_data, program_space_alloc_data)
629 (program_space_free_data, clear_program_space_data)
630 (set_program_space_data, program_space_data): Remove.
631 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
632 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
633 (register_objfile_data_with_cleanup, register_objfile_data)
634 (clear_objfile_data, set_objfile_data, objfile_data): Don't
636 * objfiles.c: Use DEFINE_REGISTRY.
637 (struct objfile_data, struct objfile_data_registration, struct
638 objfile_data_registry, objfile_data_registry)
639 (register_objfile_data_with_cleanup, register_objfile_data)
640 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
641 (set_objfile_data, objfile_data): Remove.
642 (_initialize_objfiles): Update.
643 * jit.c (_initialize_jit): Update.
644 * inflow.c (_initialize_inflow): Update.
645 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
646 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
647 (register_inferior_data_with_cleanup, register_inferior_data)
648 (clear_inferior_data, set_inferior_data, inferior_data): Don't
650 * inferior.c: Use DEFINE_REGISTRY.
651 (struct inferior_data, struct inferior_data_registration, struct
652 inferior_data_registry, inferior_data_registry)
653 (register_inferior_data_with_cleanup, register_inferior_data)
654 (inferior_alloc_data, inferior_free_data clear_inferior_data)
655 (set_inferior_data, inferior_data): Remove.
656 * auxv.c (_initialize_auxv): Update.
657 * ada-lang.c (_initialize_ada_language): Update.
658 * breakpoint.c (_initialize_breakpoint): Update.
659 * i386-nat.c (i386_use_watchpoints): Update.
661 2012-08-22 Tom Tromey <tromey@redhat.com>
663 * exec.c (exec_close, exec_file_attach): Update.
664 (add_to_section_table): Initialize 'key' field.
665 (add_target_sections, remove_target_sections): Add 'key' argument.
666 * exec.h (add_target_sections, remove_target_sections): Add
668 * solib.c (solib_map_sections, update_solib_list, clear_solib)
669 (reload_shared_libraries_1): Update.
670 * target.h (struct target_section) <key>: New field.
672 2012-08-22 Tom Tromey <tromey@redhat.com>
674 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
676 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
678 * symfile.c (allocate_symtab): Use host_address_to_string
679 function instead of cast of pointer to long which is not
680 compatible with x86_64-w64-mingw32 build.
682 2012-08-19 Andrew Pinski <apinski@cavium.com>
684 * mips-tdep.c (is_octeon): New function.
685 (is_octeon_bbit_op): New function.
686 (mips32_next_pc): Handle Octeon's bbit instructions.
687 (mips32_instruction_has_delay_slot): Likewise.
689 2012-08-19 Andrew Pinski <apinski@cavium.com>
691 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
694 2012-08-19 Andrew Pinski <apinski@cavium.com>
696 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
698 2012-08-19 Keith Seitz <keiths@redhat.com>
701 * c-typeprint.c (c_type_print_varspec_prefix): Pass
702 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
704 2012-08-18 Eli Zaretskii <eliz@gnu.org>
706 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
707 The typo broke "make TAGS".
709 2012-08-17 Joel Brobecker <brobecker@adacore.com>
713 2012-08-17 Keith Seitz <keiths@redhat.com>
716 * gdbtypes.c (strict_type_checking): New variable.
717 (show_strict_type_checking): New function.
718 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
719 if strict type checking is disabled.
720 (_initialize_gdbtypes): Add "check type" subcommand.
721 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
723 2012-08-17 Keith Seitz <keiths@redhat.com>
725 * language.h (type_mode): Remove.
726 (type_check): Remove.
727 (struct language_defn): Remove la_type_check.
728 (STRICT_TYPE): Remove unused macro.
729 (type_error): Remove.
730 * language.c (set_type_range_case): Renamed to ...
731 (set_range_case): ... this. Update all callers.
732 Remove type_mode/type_check.
734 (type_check): Remove.
735 (show_type_command): Remove.
736 (set_type_command): Remove.
737 (language_info): Remove type checking output.
738 (type_error): Remove unused function.
739 (range_error): Update comment.
740 (unknown_language_defn): Remove la_type_check.
741 (auto_language_defn): Likewise.
742 (local_language_defn): Likewise.
743 (_initialize_language): Remove "check type" subcommand.
744 * ada-lang.c (ada_language_defn): Remove la_type_check.
745 * c-lang.c (c_language_defn): Likewise.
746 (cplus_language_defn): Likewise.
747 (asm_language_defn): Likewise.
748 (minimal_language_defn): Likewise.
749 * d-lang.c (d_language_defn): Likewise.
750 * f-lang.c (f_language_defn): Likewise.
751 * go-lang.c (go_language_defn): Likewise.
752 * jv-lang.c (java_language_defn): Likewise.
753 * m2-lang.c (m2_language_defn): Likewise.
754 * objc-lang.c (objc_language_defn): Likewise.
755 * opencl-lang.c (opencl_language_defn): Likewise.
756 * p-lang.c (pascal_language_defn): Likewise.
758 2012-08-16 Mike Frysinger <vapier@gentoo.org>
760 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
762 2012-08-16 Joel Brobecker <brobecker@adacore.com>
764 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
766 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
767 using the regache. Use ia64_hpux_get_register_from_save_state_t
768 to access the bsp and bspstore registers if not.
770 2012-08-16 Joel Brobecker <brobecker@adacore.com>
772 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
773 * breakpoint.c (detach_breakpoints): Change pid parameter into
774 a ptid. Adjust code accordingly.
775 * infrun.c (handle_inferior_event): Delete variable child_pid.
776 Update call to detach_breakpoints to pass the child ptid for
778 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
779 assert that inferior_ptid's lwp is zero.
780 (linux_handle_extended_wait): Update call to detach_breakpoints.
781 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
784 2012-08-16 Joel Brobecker <brobecker@adacore.com>
786 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
787 parent, only call detach_breakpoints if tts.tts_event ==
790 2012-08-16 Joel Brobecker <brobecker@adacore.com>
792 * dwarf2-frame.c (dwarf2_frame_cache): Use
793 get_frame_address_in_block instead of get_frame_pc as
794 the bound for executing the frame's FDE.
796 2012-08-16 Yao Qi <yao@codesourcery.com>
798 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
799 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
800 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
801 (c_type_print_varspec_suffix): Likewise.
802 * eval.c (evaluate_subexp_standard): Likewise.
803 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
804 (f_type_print_varspec_suffix): Likewise.
805 * gdbtypes.c (is_scalar_type): Likewise.
806 (recursive_dump_type): Likewise.
807 * infcall.c (value_arg_coerce): Likewise.
808 * m2-valprint.c (m2_val_print): Likewise.
809 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
810 (pascal_type_print_varspec_suffix): Likewise.
811 (pascal_type_print_base): Likewise.
812 * p-valprint.c (pascal_val_print): Likewise.
813 (pascal_val_print): Likewise.
814 * valops.c (value_slice): Likewise.
815 * valprint.c (scalar_type_p): Likewise.
816 * valarith.c (value_bitstring_subscript): Remove.
817 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
818 Remove comment on TYPE_CODE_BITSTRING.
820 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
823 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
826 2012-08-16 Yao Qi <yao@codesourcery.com>
828 * tracepoint.c (trace_find_none_command): Remove.
829 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
831 2012-08-16 Yao Qi <yao@codesourcery.com>
833 * remote.c (handle_notification): Remove parameter 'length'.
834 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
836 2012-08-15 Keith Seitz <keiths@redhat.com>
838 * gdbtypes.c (opaque_type_resolution): Make static.
840 (overload_debug): Add missing comment.
841 (show_opaque_type_resolution): Likewise.
842 (show_overload_debug): Likewise.
843 (print_bit_vector): Remove unnecessary forward declaration.
844 (print_arg_types): Likewise.
845 (dump_fn_fieldlists): Likewise.
846 (print_cplus_stuff): Likewise.
848 2012-08-15 Tom Tromey <tromey@redhat.com>
850 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
851 (gdb_bfd_ref): Initialize new field.
852 (gdb_bfd_unref): Unref the archive BFD.
853 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
856 2012-08-15 Tom Tromey <tromey@redhat.com>
859 * python/py-bpevent.c (create_breakpoint_event_object): Update
861 * python/py-event.c (evpy_add_attribute): Update comment.
862 * python/py-exitedevent.c (create_exited_event_object): Fix
863 reference counting and error handling.
864 * python/py-newobjfileevent.c (create_new_objfile_event_object):
865 Fix reference counting.
866 * python/py-signalevent.c (create_signal_event_object): Fix
867 reference counting and error handling.
868 * python/py-stopevent.c (emit_stop_event): Fix reference
870 * python/py-threadevent.c (get_event_thread): Return a
872 * python/py-type.c (convert_field): Fix reference counting.
874 2012-08-15 Tom Tromey <tromey@redhat.com>
876 * dwarf2read.c (dwarf_decode_macro_bytes)
877 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
880 2012-08-14 Mike Frysinger <vapier@gentoo.org>
882 * infcmd.c (_initialize_infcmd): Update help text for the signal,
883 stepi, nexti, finish, next, step, jump, and continue commands.
884 * infrun.c (_initialize_infrun): Update help text for the handle
887 2012-08-14 Doug Evans <dje@google.com>
889 * gdbtypes.c (struct extra): Delete, unused.
891 * gdbtypes.c: Whitespace cleanup.
892 (address_space_name_to_int): Remove "extern" from definition.
893 (_initialize_gdbtypes): Declare with initialize_file_ftype.
895 * gdbtypes.c (make_pointer_type): Remove redundant setting of
896 TYPE_POINTER_TYPE (type).
898 2012-08-14 Gary Benson <gbenson@redhat.com>
900 * solib-svr4.c (svr4_free_library_list): Use free_so.
902 2012-08-13 Mike Frysinger <vapier@gentoo.org>
904 * .gitignore: Add go-exp.c.
906 2012-08-13 Doug Evans <dje@google.com>
908 * value.c (show_convenience): Tweak comment.
909 (_initialize_values): Mention convenience functions in the help text
910 for "show convenience".
912 2012-08-13 Yao Qi <yao@codesourcery.com>
914 * std-operator.def: Remove TERNOP_SLICE_COUNT.
915 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
917 * eval.c (evaluate_subexp_standard): Likewise.
918 * expprint.c (print_subexp_standard): Likewise.
919 (dump_subexp_body_standard): Likewise.
920 * parse.c (operator_length_standard): Likewise.
922 2012-08-13 Yao Qi <yao@codesourcery.com>
924 * std-operator.def: Remove OP_BITSTRING.
925 * breakpoint.c (watchpoint_exp_is_const): Update.
926 * eval.c (evaluate_subexp_standard): Remove handling to
928 * expprint.c (print_subexp_standard): Likewise.
929 (dump_subexp_body_standard): Likewise.
930 * parse.c (operator_length_standard): Likewise.
931 * valops.c (value_bitstring): Remove.
932 * value.h: Remove the declaration of 'value_bitstring'.
934 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
936 * linespec.c (find_methods): Remove unused variables `i1' and
938 (decode_line_full): Likewise for `arg_start'.
940 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
942 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
943 (zlib_decompress_section): Likewise for `section_data'.
944 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
946 2012-08-10 Doug Evans <dje@google.com>
948 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
949 * NEWS: Document them.
950 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
952 * python/py-type.c (typy_array_1): New function.
953 (typy_array): Call it.
954 (typy_vector): New function.
955 (type_object_methods): Add "vector".
956 * python/lib/gdb/function/__init__.py: New file.
957 * python/lib/gdb/function/strfns.py: New file.
959 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
961 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
962 for TYPE_FIELD_BITPOS.
963 (typy_get_sizeof): Likewise for TYPE_LENGTH.
965 2012-08-10 Mike Frysinger <vapier@gentoo.org>
968 * common/vec.h (VEC_merge): Define.
969 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
970 (DEF_VEC_ALLOC_FUNC_P): Likewise.
971 (DEF_VEC_ALLOC_FUNC_O): Likewise.
972 * completer.c: Include gdb_signals.h.
973 (signal_completer): Define.
974 * completer.h (signal_completer): Add prototype.
975 * infcmd.c (_initialize_infcmd): Assign the command
976 completer for "signal" to handle_completer.
977 * infrun.c: Include completer.h.
978 (handle_completer): Define.
979 (_initialize_infrun): Declare a new local variable c. Store the
980 result of add_com("handle") to it. Assign the command
981 completer for "handle" to handle_completer.
983 2012-08-09 Yao Qi <yao@codesourcery.com>
985 * cli/cli-decode.c (set_cmd_prefix): New.
986 (lookup_cmd_for_prefixlist): New.
987 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
988 of each cmd_list_element in *prefixlist.
989 (add_setshow_cmd_full): set_cmd_prefix.
990 (add_alias_cmd): Likewise.
991 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
992 Declare 'auto_boolean_enums'.
993 * cli/cli-setshow.c: Include "observer.h".
994 (notify_command_param_changed_p): New.
995 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
997 (do_setshow_command): Split it to ...
998 (do_set_command, do_show_command): ... them. New.
999 (do_set_command): Call observer_notify_command_param_changed if
1000 notify_command_param_changed_p returns true.
1001 (cmd_show_list): Caller update.
1002 * auto-load.c (set_auto_load_cmd): Likewise.
1003 * remote.c (show_remote_cmd): Likewise.
1004 * cli/cli-setshow.h: Update declarations.
1005 * top.c (execute_command): Call do_set_command and do_show_command.
1007 * NEWS: Mention new MI notification.
1008 * mi/mi-interp.c: Declare mi_command_param_changed.
1009 (mi_interpreter_init): Attach mi_command_param_changed to
1010 observer command_param_changed.
1011 (mi_command_param_changed): New.
1012 Remove mi_suppress_breakpoint_notifications.
1013 Define global variable mi_suppress_notification.
1014 (mi_breakpoint_created): Update.
1015 (mi_breakpoint_deleted): Likewise.
1016 (mi_breakpoint_modified): Likewise.
1017 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1018 'gdb-set' and set mi_suppress_notification.
1019 * mi/mi-main.h: (mi_suppress_notification): New struct.
1021 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1022 Jan Kratochvil <jan.kratochvil@redhat.com>
1024 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1026 2012-08-09 Yao Qi <yao@codesourcery.com>
1028 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1029 (skiplist): Move it to skip.c.
1030 (init_cmd_lists): Remove code setting enablebreaklist and
1032 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1033 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1035 * gdbcmd.h: Likewise.
1036 * skip.c (_initialize_step_skip): Move 'skiplist' from
1039 2012-08-09 Yao Qi <yao@codesourcery.com>
1041 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1042 * gnu-nat.c, symfile.c: Likewise.
1044 2012-08-08 Aaron Gamble <agamble@google.com>
1046 * utils.c (prompt_for_continue_wait_time): New static global.
1047 (make_command_stats_cleanup): Initialize it.
1048 (report_command_stats): Subtract time waiting for user.
1049 (prompt_for_continue): Track time waiting for user.
1050 (defaulted_query): Track time waiting for user.
1052 2012-08-08 Doug Evans <dje@google.com>
1054 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1056 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1057 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1058 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1059 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1060 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1061 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1063 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1064 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1065 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1066 (dump_prefix_expression): Handle OP_TYPE.
1068 2012-08-08 Keith Seitz <keiths@redhat.com>
1070 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1073 2012-08-08 Doug Evans <dje@google.com>
1075 * linux-thread-db.c: #include "gdb_vecs.h".
1076 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1078 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1079 (thread_db_load_search): Use a vector to iterate over path elements.
1080 Handle text appearing after "$pdir".
1082 * gdb_string.h: Moved to ...
1083 * common/gdb_string.h: ... here.
1084 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1085 gdb_string.h and gdb_assert.h.
1087 2012-08-08 Yao Qi <yao@codesourcery.com>
1089 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1090 (tic6x_value_to_register): Likewise.
1091 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1092 and set_gdbarch_value_to_register.
1094 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1095 Jean-Marc Saffroy <saffroy@gmail.com>
1098 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1099 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1100 * gcore.c (gcore_create_callback): New function comment. Add modified
1101 parameter. Only write modified regions. Set SEC_READONLY exactly
1102 according to MODIFIED.
1103 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1104 the passed modified value to FUNC.
1105 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1106 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1107 first. New variables modified and has_anonymous. Parse the lines of
1108 smaps file. Add the passed MODIFIED value to FUNC.
1109 * procfs.c (find_memory_regions_callback): Add the passed modified
1112 2012-08-06 Tom Tromey <tromey@redhat.com>
1114 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1115 (dwarf2_frame_cache): Use it.
1116 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1117 cache initialization constraint.
1119 2012-08-06 Tom Tromey <tromey@redhat.com>
1122 * varobj.c (update_dynamic_varobj_children): Don't call
1125 2012-08-06 Tom Tromey <tromey@redhat.com>
1128 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1130 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1132 * NEWS: New entry for 'cd' default parameters.
1133 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1135 2012-08-03 Tom Tromey <tromey@redhat.com>
1137 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1140 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1142 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1143 to attempting lseek/write.
1144 (inf_child_fileio_pread): Likewise for pread.
1146 2012-08-02 Yao Qi <yao@codesourcery.com>
1148 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1149 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1150 add_setshow_zinteger_cmd.
1151 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1152 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1153 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1154 instead of add_setshow_zinteger_cmd.
1155 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1156 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1157 instead of add_setshow_zinteger_cmd.
1158 * frame.c (frame_debug): Add 'unsigned'.
1159 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1160 add_setshow_zinteger_cmd.
1161 * frame.h: Update the declaration of 'frame_debug'.
1162 * gdbtypes.c (overload_debug): Add 'unsigned'.
1163 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1164 add_setshow_zinteger_cmd.
1165 * inferior.h: Update declaration of 'debug_infrun'.
1166 * infrun.c (debug_infrun): Add 'unsigned'.
1167 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1168 add_setshow_zinteger_cmd.
1169 * jit.c (jit_debug): Add 'unsigned'.
1170 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1171 add_setshow_zinteger_cmd.
1172 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1173 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1174 instead of add_setshow_zinteger_cmd.
1175 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1176 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1177 add_setshow_zinteger_cmd.
1178 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1179 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1180 instead of add_setshow_zinteger_cmd.
1181 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1182 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1183 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1184 intead of add_setshow_zinteger_cmd.
1185 * mips-tdep.c (mips_debug): Add 'unsigned'.
1186 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1187 instead of add_setshow_zinteger_cmd.
1188 * monitor.c (monitor_debug): Add 'unsigned'.
1189 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1190 add_setshow_zinteger_cmd.
1191 * observer.c (observer_debug): Add 'unsigned'.
1192 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1193 add_setshow_zinteger_cmd.
1194 * parse.c (expressiondebug): Add 'unsigned'.
1195 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1196 add_setshow_zinteger_cmd.
1197 * record.c (record_debug): Add 'unsigned'.
1198 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1199 add_setshow_zinteger_cmd.
1200 * record.h: Update the declaration of 'record_debug'.
1201 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1202 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1203 add_setshow_zinteger_cmd.
1204 * serial.c (global_serial_debug_p): Add 'unsigned'.
1205 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1206 add_setshow_zinteger_cmd.
1207 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1208 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1209 add_setshow_zinteger_cmd.
1210 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1211 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1212 add_setshow_zinteger_cmd.
1213 * target.c (targetdebug): Add 'unsigned'.
1214 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1215 add_setshow_zinteger_cmd.
1216 * valops.c (overload_debug): Add 'unsigned'.
1217 * varobj.c (varobjdebug): Add 'unsigned'.
1218 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1219 add_setshow_zinteger_cmd.
1220 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1221 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1222 instead of add_setshow_zinteger_cmd.
1224 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1225 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1226 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1227 instead of add_setshow_zinteger_cmd.
1228 * gdbarch.c, gdbarch.h: Re-generated.
1230 2012-08-02 Yao Qi <yao@codesourcery.com>
1232 * nto-tdep.c: Don't include cli/cli-decode.h and
1234 (_initialize_nto_tdep): Remove.
1235 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1237 Remove macro nto_internal_debugging.
1239 2012-08-01 Richard Henderson <rth@redhat.com>
1241 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1242 (mep-*-*) [gdb_target_obs]: Likewise.
1244 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1246 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1247 linux_get_siginfo_type.
1249 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1251 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1253 (call_function_by_hand) <ON_STACK>: Call write_memory with
1254 gdbarch_breakpoint_from_pc, if possible.
1255 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1258 2012-07-31 Yao Qi <yao@codesourcery.com>
1260 * tracepoint.c: Add 'static' for some variables.
1262 2012-07-31 Yao Qi <yao@codesourcery.com>
1264 * go32-nat.c: Declare _initialize_go32_nat.
1265 * ser-go32.c: Declare _initialize_ser_dos.
1266 * top.c (do_chdir_cleanup): Add 'static'.
1268 2012-07-30 Keith Seitz <keiths@redhat.com>
1270 * linespec.c (linespec_lex_number): A number followed
1271 by quotes is a valid number, too.
1273 2012-07-30 Tom Tromey <tromey@redhat.com>
1275 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1277 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1279 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1280 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1282 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1284 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1285 invalid or reevaluated to prevent prevent references to possibly
1286 delete'd type objects being left in the varobj.
1288 2012-07-27 Tom Tromey <tromey@redhat.com>
1289 Jan Kratochvil <jan.kratochvil@redhat.com>
1291 * copying.awk: Print buffer-read-only and vi ro markers.
1292 * copying.c: Rebuild.
1293 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1294 * gdbarch.c, gdbarch.h: Rebuild.
1295 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1296 buffer-read-only and vi ro markers.
1297 * features/arm-with-iwmmxt.c: Rebuild.
1298 * features/arm-with-m-fpa-layout.c: Rebuild.
1299 * features/arm-with-m-vfp-d16.c: Rebuild.
1300 * features/arm-with-m.c: Rebuild.
1301 * features/arm-with-neon.c: Rebuild.
1302 * features/arm-with-vfpv2.c: Rebuild.
1303 * features/arm-with-vfpv3.c: Rebuild.
1304 * features/i386/amd64-avx-linux.c: Rebuild.
1305 * features/i386/amd64-avx.c: Rebuild.
1306 * features/i386/amd64-linux.c: Rebuild.
1307 * features/i386/amd64.c: Rebuild.
1308 * features/i386/i386-avx-linux.c: Rebuild.
1309 * features/i386/i386-avx.c: Rebuild.
1310 * features/i386/i386-linux.c: Rebuild.
1311 * features/i386/i386-mmx-linux.c: Rebuild.
1312 * features/i386/i386-mmx.c: Rebuild.
1313 * features/i386/i386.c: Rebuild.
1314 * features/i386/x32-avx-linux.c: Rebuild.
1315 * features/i386/x32-avx.c: Rebuild.
1316 * features/i386/x32-linux.c: Rebuild.
1317 * features/i386/x32.c: Rebuild.
1318 * features/mips-dsp-linux.c: Rebuild.
1319 * features/mips-linux.c: Rebuild.
1320 * features/mips64-dsp-linux.c: Rebuild.
1321 * features/mips64-linux.c: Rebuild.
1322 * features/rs6000/powerpc-32.c: Rebuild.
1323 * features/rs6000/powerpc-32l.c: Rebuild.
1324 * features/rs6000/powerpc-403.c: Rebuild.
1325 * features/rs6000/powerpc-403gc.c: Rebuild.
1326 * features/rs6000/powerpc-405.c: Rebuild.
1327 * features/rs6000/powerpc-505.c: Rebuild.
1328 * features/rs6000/powerpc-601.c: Rebuild.
1329 * features/rs6000/powerpc-602.c: Rebuild.
1330 * features/rs6000/powerpc-603.c: Rebuild.
1331 * features/rs6000/powerpc-604.c: Rebuild.
1332 * features/rs6000/powerpc-64.c: Rebuild.
1333 * features/rs6000/powerpc-64l.c: Rebuild.
1334 * features/rs6000/powerpc-7400.c: Rebuild.
1335 * features/rs6000/powerpc-750.c: Rebuild.
1336 * features/rs6000/powerpc-860.c: Rebuild.
1337 * features/rs6000/powerpc-altivec32.c: Rebuild.
1338 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1339 * features/rs6000/powerpc-altivec64.c: Rebuild.
1340 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1341 * features/rs6000/powerpc-cell32l.c: Rebuild.
1342 * features/rs6000/powerpc-cell64l.c: Rebuild.
1343 * features/rs6000/powerpc-e500.c: Rebuild.
1344 * features/rs6000/powerpc-e500l.c: Rebuild.
1345 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1346 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1347 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1348 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1349 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1350 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1351 * features/rs6000/powerpc-vsx32.c: Rebuild.
1352 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1353 * features/rs6000/powerpc-vsx64.c: Rebuild.
1354 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1355 * features/rs6000/rs6000.c: Rebuild.
1356 * features/s390-linux32.c: Rebuild.
1357 * features/s390-linux32v1.c: Rebuild.
1358 * features/s390-linux32v2.c: Rebuild.
1359 * features/s390-linux64.c: Rebuild.
1360 * features/s390-linux64v1.c: Rebuild.
1361 * features/s390-linux64v2.c: Rebuild.
1362 * features/s390x-linux64.c: Rebuild.
1363 * features/s390x-linux64v1.c: Rebuild.
1364 * features/s390x-linux64v2.c: Rebuild.
1365 * features/tic6x-c62x-linux.c: Rebuild.
1366 * features/tic6x-c62x.c: Rebuild.
1367 * features/tic6x-c64x-linux.c: Rebuild.
1368 * features/tic6x-c64x.c: Rebuild.
1369 * features/tic6x-c64xp-linux.c: Rebuild.
1370 * features/tic6x-c64xp.c: Rebuild.
1372 2012-07-27 Tom Tromey <tromey@redhat.com>
1374 * c-exp.y (classify_name): Avoid assignment in condition.
1376 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1378 * amd64-windows-tdep.c: Include "frame.h".
1379 (amd64_windows_skip_trampoline_code): New function.
1380 (amd64_windows_init_abi): Add trampoline registration.
1382 2012-07-27 Yao Qi <yao@codesourcery.com>
1384 * tracepoint.c (cur_traceframe_number): Remove.
1385 (set_tfile_traceframe): Remove.
1386 (tfile_trace_find, tfile_fetch_registers): Update callers.
1387 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1388 (tfile_open, tfile_trace_find): Likewise.
1390 2012-07-27 Yao Qi <yao@codesourcery.com>
1392 * thread.c (switch_to_thread): Don't call registers_changed.
1394 2012-07-26 Tom Tromey <tromey@redhat.com>
1396 * Makefile.in (SFILES): Remove objc-exp.y.
1397 (YYFILES): Remove objc-exp.c.
1398 (YYOBJ): Remove objc-exp.o.
1399 (local-maintainer-clean): Don't mention objc-exp.c.
1400 * c-exp.y: Include objc-lang.h.
1401 (%union) <class>: New field.
1402 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1403 (exp): Clone subscript production for OBJC_LBRAC. Add various
1404 Objective C productions.
1405 (msglist, msgarglist, msgarg): New productions.
1406 (array_mod, func_mod, operator): Clone productions for
1408 (parse_string_or_char): Handle '@' strings.
1409 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1410 (classify_name): Check la_name_of_this. Recognize ObjC class
1412 * objc-exp.y: Remove.
1413 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1414 * objc-lang.h (objc_parse, objc_error): Don't declare.
1416 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1418 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1420 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1422 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1425 2012-07-26 Tom Tromey <tromey@redhat.com>
1427 * copying.c: Rebuild.
1428 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1431 2012-07-26 Tom Tromey <tromey@redhat.com>
1433 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1435 (print_objfile_statistics): Likewise.
1436 (maintenance_print_symbols): Likewise.
1437 (maintenance_print_msymbols): Likewise.
1438 (maintenance_print_objfiles): Likewise.
1439 * psymtab.c (print_partial_symbols): Call QUIT.
1440 (maintenance_print_psymbols): Likewise. Don't modify
1442 * copying.c (show_copying_command): Don't modify immediate_quit.
1443 (show_warranty_command): Likewise.
1444 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1446 2012-07-26 Keith Seitz <keiths@redhat.com>
1448 * linespec.c (linespec_lexer_lex_number): The input
1449 is also a valid number if the next character is a comma
1452 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1454 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1457 2012-07-26 Tristan Gingold <gingold@adacore.com>
1459 * machoread.c: Include gdb_bfd.h.
1461 2012-07-26 Tristan Gingold <gingold@adacore.com>
1463 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1466 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1468 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1470 (dwarf2_evaluate_loc_desc): Likewise.
1471 (dwarf2_loc_desc_needs_frame): Likewise.
1472 (locexpr_describe_location_1): Likewise.
1473 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1475 (struct dwarf2_loclist_baton): Likewise.
1476 * dwarf2read.c (struct dwarf_block): Likewise.
1477 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1478 (decode_locdesc): Expand SIZE and I to size_t.
1480 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1482 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1484 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1486 * doublest.c (convert_doublest_to_floatformat): If the exponent
1487 is too small, treat the value as zero. If the exponent is too
1488 large, treat the value as infinity.
1490 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1492 * configure.ac: Add --enable-lmcheck configure option.
1493 * configure: Regenerate.
1495 2012-07-25 Tom Tromey <tromey@redhat.com>
1497 * NEWS: Mention maint info bfds.
1498 * gdb_bfd.c (all_bfds): New global.
1499 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1500 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1503 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1505 * configure.tgt: Add v850*-*-rtems*.
1507 2012-07-25 Tom Tromey <tromey@redhat.com>
1509 * macrotab.c (macro_bcache_str): Remove cast.
1511 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1513 * linespec.c (linespec_lexer_lex_number): Update comments,
1514 change the return and add check to make sure the input is
1515 the decimal numbers.
1516 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1517 false, call linespec_lexer_lex_string.
1519 2012-07-24 Tom Tromey <tromey@redhat.com>
1521 * symfile.c (symbol_file_add): Don't open BFD twice.
1523 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1525 * breakpoint.c (create_breakpoint): Store condition for pending
1528 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1530 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1531 (m68k_return_value): Handle complex types like structures.
1532 (m68k_svr4_return_value): Likewise.
1534 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1536 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1537 parameters to bfd_get_section_name.
1539 2012-07-24 Yao Qi <yao@codesourcery.com>
1541 * cli/cli-setshow.c: Handle case 'var_uinteger'
1542 and 'var_zuninteger' together. Handle case 'var_integer' and
1543 'var_zinteger' together.
1545 2012-07-23 Keith Seitz <keiths@redhat.com>
1547 * linespec.c (convert_linespec_to_sal): Don't add
1548 any symbols to the result vector if symbol_to_sal
1551 2012-07-23 Keith Seitz <keiths@redhat.com>
1553 * linespec.c (decode_objc): Record the function name
1556 2012-07-23 Tom Tromey <tromey@redhat.com>
1558 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1560 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1561 (map_vmap): Acquire a reference to the BFD.
1563 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1565 * p-valprint.c (pascal_object_print_value): Replace potentially
1566 unsafe alloca with xmalloc/xfree.
1567 * valops.c (search_struct_method): Likewise.
1569 2012-07-23 Tom Tromey <tromey@redhat.com>
1571 * solib-svr4.c (enable_break): Update.
1572 * bfd-target.h (target_bfd_reopen): Update documentation.
1574 2012-07-23 Tom Tromey <tromey@redhat.com>
1576 * symfile.c (separate_debug_file_exists): Update.
1577 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1578 (reread_symbols): Update.
1579 * elfread.c (build_id_verify): Update.
1580 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1581 bfd_open_maybe_remote.
1583 2012-07-23 Tom Tromey <tromey@redhat.com>
1585 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1587 2012-07-23 Tom Tromey <tromey@redhat.com>
1589 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1591 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1593 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1594 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1596 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1597 * objfiles.c (allocate_objfile): Acquire a new reference.
1598 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1599 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1600 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1601 a cleanup for 'nbfd'.
1602 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1604 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1605 make a cleanup for 'abfd'.
1606 (symbol_file_add): Make a BFD cleanup.
1608 2012-07-23 Tom Tromey <tromey@redhat.com>
1610 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1611 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1612 * corelow.c (core_open): Use gdb_bfd_fopen.
1613 * dsrec.c (load_srec): Use gdb_bfd_openr.
1614 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1615 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1616 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1617 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1618 (gdb_bfd_fdopenr): New functions.
1619 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1620 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1621 (gdb_bfd_fdopenr): Declare.
1622 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1623 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1624 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1625 gdb_bfd_openr_next_archived_file.
1626 (macho_check_dsym): Use gdb_bfd_openr.
1627 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1628 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1629 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1630 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1632 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1633 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1634 gdb_bfd_openr_next_archived_file.
1635 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1637 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1639 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1640 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1641 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1642 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1643 (symfile_bfd_open): Use gdb_bfd_fopen.
1644 (generic_load): Use gdb_bfd_openr.
1645 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1647 2012-07-23 Tom Tromey <tromey@redhat.com>
1649 * bfd-target.c (target_bfd_reopen): Update.
1650 * cli/cli-dump.c (bfd_openr_with_cleanup)
1651 (bfd_openw_with_cleanup): Update.
1652 * corelow.c (core_open): Update.
1653 * dsrec.c (load_srec): Update.
1654 * exec.c (exec_file_attach): Update.
1655 * gcore.c (create_gcore_bfd): Update.
1656 * gdb_bfd.c (gdb_bfd_ref): Return void.
1657 (gdb_bfd_open): Update.
1658 * gdb_bfd.h (gdb_bfd_ref): Return void.
1660 * jit.c (jit_bfd_try_read_symtab): Update.
1661 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1662 * machoread.c (macho_symfile_read_all_oso): Update.
1663 (macho_check_dsym): Update.
1664 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1665 * remote-m32r-sdi.c (m32r_load): Update.
1666 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1667 * rs6000-nat.c (add_vmap): Update.
1668 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1670 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1671 * solib-spu.c (spu_bfd_open): Update.
1672 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1673 * spu-linux-nat.c (spu_bfd_open): Update.
1674 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1675 (generic_load): Update.
1676 * windows-nat.c (windows_make_so): Update.
1678 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1680 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1682 2012-07-20 Jeff Kenton <jkenton@tilera.com>
1684 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1685 SIGTRAMP_FRAME unwinding.
1687 2012-07-20 Doug Evans <dje@google.com>
1689 * NEWS: Document new options "set/show use-deprecated-index-sections",
1690 and delete reference to --use-deprecated-index-sections.
1691 * symfile.h (use_deprecated_index_sections): Delete.
1692 * dwarf2read.c (use_deprecated_index_sections): Make static.
1693 (read_index_from_section): Update wording of how to load
1694 deprecated index sections.
1695 (_initialize_dwarf2_read): New options
1696 "set/show use-deprecated-index-sections".
1697 * main.c (captured_main): Delete --use-deprecated-index-sections.
1699 2012-07-20 Pedro Alves <palves@redhat.com>
1704 * infrun.c (handle_inferior_event) <new thread>: Don't special
1705 case minus_one_ptid.
1706 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1707 * linux-thread-db.c (thread_get_info_callback): Don't return early
1708 if the thread is zombie.
1709 (thread_from_lwp): Change return type to void. Rewrite stale
1711 (attach_thread): Don't return early if the thread is zombie,
1712 instead set its "dying" flag.
1713 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1714 (find_new_threads_callback): Don't return early if the thread is
1717 2012-07-20 Pedro Alves <palves@redhat.com>
1719 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1720 * target.c (target_wait): Likewise.
1721 (str_comma_list_concat_elem, do_option, target_options_to_string):
1723 * target.h (target_options_to_string): Declare.
1725 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1726 Tom Tromey <tromey@redhat.com>
1728 * dwarf2read.c (dwarf_decode_macros)
1729 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1730 DW_MACRO_GNU_transparent_include_alt>: New cases.
1731 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1732 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1734 2012-07-20 Tom Tromey <tromey@redhat.com>
1736 * dwarf2read.c (try_open_dwo_file): Don't call
1737 gdb_bfd_stash_filename.
1739 2012-07-20 Pedro Alves <palves@redhat.com>
1741 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1742 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1743 (i386_process_record): Tweak description comments.
1745 2012-07-20 Pedro Alves <palves@redhat.com>
1747 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1748 (i386_process_record): Use record_read_memory.
1749 * record.c (record_read_memory): New function.
1750 (record_arch_list_add_mem, record_exec_insn): Use
1752 * record.h (record_read_memory): Declare.
1754 2012-07-20 Yao Qi <yao@codesourcery.com>
1756 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1759 2012-07-19 Pedro Alves <palves@redhat.com>
1761 * record.c (record_resume): Ask the target beneath to report all
1764 2012-07-19 Doug Evans <dje@google.com>
1766 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1767 there's no section at address zero.
1768 (dwarf2_record_block_ranges): Ditto.
1770 2012-07-19 Yao Qi <yao@codesourcery.com>
1772 * command.h, remote.c: Fix a typo in comment.
1774 2012-07-19 Tom Tromey <tromey@redhat.com>
1777 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1778 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1779 OP_DECLTYPE>: New cases.
1780 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1781 (type_exp): Add new productions.
1782 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1784 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1786 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1787 OP_DECLTYPE>: New case.
1788 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1790 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1791 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1793 2012-07-19 Tom Tromey <tromey@redhat.com>
1795 * c-exp.y (enum token_flags): New.
1796 (struct token) <cxx_only>: Remove.
1798 (tokentab3, tokentab2, ident_tokens): Update.
1799 (lex_one_token): Update. Handle FLAG_SHADOW.
1801 2012-07-19 Tom Tromey <tromey@redhat.com>
1803 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1804 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1805 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1806 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1807 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1808 type_exp production where appropriate.
1809 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1810 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1811 <UNOP_MEMVAL_TYPE>: New case.
1812 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1813 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1814 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1815 <UNOP_MEMVAL_TYPE>: New case.
1816 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1817 UNOP_REINTERPRET_CAST>: Update.
1818 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1819 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1820 UNOP_REINTERPRET_CAST>: Update.
1821 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1822 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1823 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1826 2012-07-19 Yao Qi <yao@codesourcery.com>
1827 Jan Kratochvil <jan.kratochvil@redhat.com>
1829 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1830 and case 'var_optional_filename' together.
1831 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1832 instead of add_setshow_optional_filename_cmd for setshow command
1833 'args'. Set completer for 'set args'.
1835 2012-07-18 Doug Evans <dje@google.com>
1837 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1838 * common/gdb_vecs.c: New file, contents from utils.c.
1839 * common/host-defs.h: New file, contents from defs.h.
1840 * utils.h: New file, contents from defs.h.
1841 * defs.h: Move all declarations of objects defined in utils.c
1842 to utils.h (except QUIT() and related).
1843 #include "utils.h", "host-defs.h".
1844 * probe.h (probe_p): Move here from gdb_vecs.h.
1845 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1846 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1847 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1848 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1849 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1850 (COMMON_OBS): Add gdb_vecs.o.
1851 (gdb_vecs.o): New rule.
1853 2012-07-18 Keith Seitz <keiths@redhat.com>
1855 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1856 parameter. If non-zero, use SYMNAME as the canonical name
1859 (convert_linespec_to_sals): Use add_sal_to_sals for
1861 (decode_line_full): No need to "fill in missing canonical names"
1862 anymore. Simply make cleanups for the allocated names.
1864 2012-07-18 Keith Seitz <keiths@redhat.com>
1866 * linespec.c (struct linespec): Constify expression,
1867 source_filename, function_name, and label_name.
1868 (symbol_not_found_error): Make all parameters const.
1869 (linespec_parser_delete): No need to check for NULL
1870 when using xfree. Cast const char * to char * for xfree.
1872 2012-07-18 Keith Seitz <keiths@redhat.com>
1874 * breakpoint.c (invalid_thread_id_error): New function.
1875 (find_condition_and_thread): Use invalid_thread_id_error.
1876 (watch_command_1): Likewise.
1878 2012-07-18 Tom Tromey <tromey@redhat.com>
1880 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1881 * contrib/cc-with-tweaks.sh: New file.
1883 2012-07-18 Tom Tromey <tromey@redhat.com>
1885 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1886 (locate_dwz_sections): Recognize .gdb_index.
1887 (create_cus_from_index_list): New function.
1888 (create_cus_from_index): Use it. Handle .dwz data.
1889 (read_index_from_section): New function, extracted from
1891 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1894 2012-07-18 Tom Tromey <tromey@redhat.com>
1896 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1897 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1898 <is_dwz>: New field.
1899 (struct dwz_file): New.
1900 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1901 (locate_dwz_sections, dwarf2_get_dwz_file)
1902 (get_abbrev_section_for_cu): New functions.
1903 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1904 (read_and_check_type_unit_head): Add abbrev_section argument.
1905 (create_debug_types_hash_table): Update.
1906 (init_cutu_and_read_dies): Use proper abbrev section.
1907 (init_cutu_and_read_dies_no_follow): Likewise.
1908 (set_partial_user): Do nothing if PST==NULL.
1909 (read_comp_units_from_section): New function.
1910 (create_all_comp_units): Use it.
1911 (scan_partial_symbols, partial_die_parent_scope): Update.
1912 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1913 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1914 (find_partial_die): Add offset_in_dwz argument. Update.
1915 (guess_partial_die_structure_name, fixup_partial_die): Update.
1916 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1917 DW_FORM_GNU_strp_alt.
1918 (read_indirect_string_from_dwz): New function.
1919 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1920 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1921 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1922 (follow_die_offset): Add offset_in_dwz argument.
1923 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1924 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1925 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1926 Handle new macro forms.
1927 (dwarf_decode_macros): Update.
1928 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1929 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1930 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1931 (create_debug_types_hash_table): Use correct abbrev section.
1932 (get_debug_line_section): New function.
1933 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
1934 (process_full_comp_unit): Pass 'required' argument to
1935 end_symtab_get_static_block.
1936 * buildsym.h (end_symtab_get_static_block): Update.
1937 * buildsym.c (end_symtab_get_static_block): Add 'required'
1939 (end_symtab, end_expandable_symtab): Update.
1941 2012-07-18 Tom Tromey <tromey@redhat.com>
1943 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
1945 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
1946 (zlib_decompress_section): Remove.
1947 (dwarf2_read_section): Use gdb_bfd_map_section.
1948 (munmap_section_buffer): Remove.
1949 (free_dwo_file, dwarf2_per_objfile_free): Don't use
1950 munmap_section_buffer.
1951 * gdb_bfd.c: Include zlib.h, sys/mman.h.
1952 (struct gdb_bfd_section_data): New.
1953 (free_one_bfd_section): New function.
1954 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
1955 (get_section_descriptor, zlib_decompress_section)
1956 (gdb_bfd_map_section): New functions.
1957 * gdb_bfd.h (gdb_bfd_map_section): Declare.
1959 2012-07-18 Tom Tromey <tromey@redhat.com>
1961 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
1963 2012-07-18 Tom Tromey <tromey@redhat.com>
1965 * gdb_bfd.c (struct gdb_bfd_data): New.
1966 (gdb_bfd_cache): New global.
1967 (struct gdb_bfd_cache_search): New.
1968 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
1969 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
1970 * gdb_bfd.h (gdb_bfd_open): Declare.
1972 2012-07-18 Tom Tromey <tromey@redhat.com>
1974 * utils.c (make_cleanup_bfd_unref): Rename from
1975 make_cleanup_bfd_close.
1976 * defs.h (make_cleanup_bfd_unref): Rename from
1977 make_cleanup_bfd_close.
1978 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
1979 (bfd_openw_with_cleanup): Update.
1980 * corelow.c (core_open): Update.
1981 * dsrec.c (load_srec): Update.
1982 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1983 * remote-m32r-sdi.c (m32r_load): Update.
1984 * remote-mips.c (mips_load_srec): Update.
1985 (pmon_load_fast): Update.
1986 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1988 (darwin_bfd_open): Update.
1989 * solib.c (solib_bfd_fopen): Update.
1990 * symfile-mem.c (symbol_file_add_from_memory): Update.
1991 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
1992 (symfile_bfd_open): Update.
1993 (generic_load): Update.
1995 2012-07-18 Tom Tromey <tromey@redhat.com>
1997 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
1998 (pmon_load_fast): Likewise.
1999 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2000 (m32r_upload_command): Likewise.
2001 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2002 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2003 Use make_cleanup_bfd_close.
2005 2012-07-18 Tom Tromey <tromey@redhat.com>
2007 * symfile.c (symfile_bfd_open): Don't copy name. Call
2008 gdb_bfd_stash_filename.
2009 (load_command): Open the new BFD before freeing the old.
2010 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2011 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2012 Call gdb_bfd_stash_filename.
2013 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2014 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2015 gdb_bfd_stash_filename.
2016 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2017 Free found_pathname.
2018 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2019 gdb_bfd_stash_filename.
2020 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2021 * machoread.c (macho_add_oso_symfile): Call
2022 gdb_bfd_stash_filename.
2023 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2024 gdb_bfd_stash_filename.
2025 (macho_check_dsym): Don't copy filename. Call
2026 gdb_bfd_stash_filename.
2027 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2028 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2029 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2030 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2031 * exec.c (exec_close): Don't free the BFD's filename.
2032 (exec_file_attach): Don't copy the filename. Call
2033 gdb_bfd_stash_filename.
2034 * corelow.c (core_close): Don't free the BFD's filename.
2035 (core_open): Call gdb_bfd_stash_filename.
2036 * corefile.c (reopen_exec_file): Remove #if 0 code.
2037 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2039 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2041 2012-07-18 Tom Tromey <tromey@redhat.com>
2043 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2045 (free_dwo_file): Use gdb_bfd_unref.
2046 * cli/cli-dump.c: Include gdb_bfd.h.
2047 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2048 (bfd_openr_with_cleanup): Likewise.
2049 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2051 * utils.c: Include gdb_bfd.h.
2052 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2053 * symfile.c: Include gdb_bfd.h.
2054 (separate_debug_file_exists): Use gdb_bfd_unref.
2055 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2056 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2057 (generic_load): Use gdb_bfd_ref.
2058 (reread_symbols): Use gdb_bfd_unref.
2059 * symfile-mem.c: Include gdb_bfd.h.
2060 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2061 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2062 * solib.c: Include gdb_bfd.h.
2063 (solib_bfd_fopen): Use gdb_bfd_ref.
2064 (solib_bfd_open): Use gdb_bfd_unref.
2065 (free_so_symbols): Use gdb_bfd_unref.
2066 (reload_shared_libraries_1): Use gdb_bfd_unref.
2067 * solib-spu.c: Include gdb_bfd.h.
2068 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2069 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2071 * solib-frv.c: Include gdb_bfd.h.
2072 (enable_break2): Use gdb_bfd_unref.
2073 * solib-dsbt.c: Include gdb_bfd.h.
2074 (enable_break2): Use gdb_bfd_unref.
2075 * solib-darwin.c: Include gdb_bfd.h.
2076 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2078 (darwin_bfd_open): Use gdb_bfd_unref.
2079 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2080 * remote-mips.c: Include gdb_bfd.h.
2081 (mips_load_srec): Use gdb_bfd_ref.
2082 (pmon_load_fast): Use gdb_bfd_ref.
2083 * remote-m32r-sdi.c: Include gdb_bfd.h.
2084 (m32r_load): Use gdb_bfd_ref.
2085 * record.c: Include gdb_bfd.h.
2086 (record_save_cleanups): Use gdb_bfd_unref.
2087 (cmd_record_save): Use gdb_bfd_unref.
2088 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2090 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2091 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2092 * objfiles.c: Include gdb_bfd.h.
2093 (free_objfile): Use gdb_bfd_unref.
2094 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2096 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2097 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2098 (macho_check_dsym): Likewise.
2099 * m32r-rom.c: Include gdb_bfd.h.
2100 (m32r_load): Use gdb_bfd_ref.
2101 (m32r_upload_command): Use gdb_bfd_ref.
2102 * jit.c: Include gdb_bfd.h.
2103 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2104 * gdb_bfd.h: New file.
2105 * gdb_bfd.c: New file.
2106 * gcore.c: Include gdb_bfd.h.
2107 (create_gcore_bfd): Use gdb_bfd_ref.
2108 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2109 (gcore_command): Use gdb_bfd_unref.
2110 * exec.c: Include gdb_bfd.h.
2111 (exec_close): Use gdb_bfd_unref.
2112 (exec_close_1): Use gdb_bfd_unref.
2113 (exec_file_attach): Use gdb_bfd_ref.
2114 * elfread.c: Include gdb_bfd.h.
2115 (build_id_verify): Use gdb_bfd_unref.
2116 * dsrec.c: Include gdb_bfd.h.
2117 (load_srec): Use gdb_bfd_ref.
2118 * corelow.c: Include gdb_bfd.h.
2119 (core_close): Use gdb_bfd_unref.
2120 (core_open): Use gdb_bfd_ref.
2121 * bfd-target.c: Include gdb_bfd.h.
2122 (target_bfd_xclose): Use gdb_bfd_unref.
2123 (target_bfd_reopen): Use gdb_bfd_ref.
2124 * Makefile.in (SFILES): Add gdb_bfd.c.
2125 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2126 (COMMON_OBS): Add gdb_bfd.o.
2128 2012-07-18 Keith Seitz <keiths@redhat.com>
2130 * breakpoint.c (find_condition_and_thread): Initialize
2132 (create_breakpiont): find_condition_and_thread will now
2133 initialize COND_STRING, THREAD, and REST (and TASK).
2134 (addr_string_to_sals): Likewise.
2136 2012-07-18 Pedro Alves <palves@redhat.com>
2138 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2139 Pull the single step breakpoints out of the target.
2141 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2143 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2144 * stap-probe.c (compile_probe_arg): Likewise.
2146 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2148 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2149 (elf_compile_to_ax): Likewise.
2150 * infrun.c (insert_exception_resume_from_probe): Likewise.
2151 (check_exception_resume): Remove `objfile' variable.
2152 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2153 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2154 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2155 (compare_entries): Rename to...
2156 (compare_probes): ...this. Adjust function to work with
2157 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2159 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2161 (print_ui_out_info): Adjust argument to be `struct probe *'.
2162 (info_probes_for_ops): Adjust internal computations to use
2164 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2165 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2166 gen_info_probes_table_values>: Remove `objfile' argument.
2167 (struct probe) <objfile>: New field.
2168 (find_probe_by_pc): Remove `objfile' argument.
2169 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2170 (stap_get_probe_argument_count): Likewise.
2171 (stap_get_arg): Likewise.
2172 (stap_evaluate_probe_argument): Likewise.
2173 (stap_compile_to_ax): Likewise.
2174 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2175 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2176 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2177 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2178 sym_compile_to_ax>: Likewise.
2180 2012-07-18 Terry Guo <terry.guo@arm.com>
2183 * defs.h (GDB_MI_MSG_WIDTH): New.
2184 * ser_base (ser_base_read_error_fd): New function.
2185 (do_ser_base_readchar): Poll error file descriptor as well as
2187 (generic_readchar): Refactor error handling.
2189 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2191 * NEWS: Create a new section for the next release branch.
2192 Rename the section of the current branch, now that it has
2195 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2197 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2198 * version.in: Bump version to 7.5.50.20120718-cvs.
2200 2012-07-17 Keith Seitz <keiths@redhat.com>
2202 * linespec.c (linespec_parse_line_offset): Make parameter
2205 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2208 * f-valprint.c (info_common_command): New variable frame_id.
2209 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2210 * printcmd.c (print_variable_and_value): Extend function comment.
2211 Add comment for invalidated FRAME.
2212 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2213 FI form FRAME_ID after each print_frame_local_vars.
2214 (struct print_variable_and_value_data): Change frame to frame_id.
2215 (do_print_variable_and_value): New variable frame, initialize it from
2216 p->frame_id. Add comment for invalidated FRAME.
2217 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2218 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2219 for invalidated FRAME.
2221 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2222 Pedro Alves <palves@redhat.com>
2224 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2227 2012-07-16 Tom Tromey <tromey@redhat.com>
2229 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2231 2012-07-15 Doug Evans <dje@google.com>
2233 * dwarf2read.c (stmt_list_hash): New struct.
2234 (type_unit_group): Embed "per_cu" member, remove pointer.
2235 New union member "t", move member "tus" into it, all uses updated.
2236 New member "hash", replaces member "line_offset, all uses updated.
2237 (quick_file_names): Replace member "offset" with "hash", all uses
2239 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2240 (hash_file_name_entry, eq_file_name_entry): Call them.
2241 (hash_type_unit_group, eq_type_unit_group): Ditto.
2242 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2243 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2244 (dw2_get_file_names): Update.
2245 (create_type_unit_group): Replace "per_cu" arg with "cu".
2246 All callers updated. Fix "quick" (.gdb_index) handling.
2247 (get_type_unit_group): Replace "per_cu" arg with "cu".
2248 All callers updated.
2249 (build_type_unit_groups): Don't reset tu_stats.
2251 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2252 "tab_cur_size". Change member "tab" to be a htab_t.
2253 (create_filename_seen_cache): Update.
2254 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2255 (filename_seen): Update.
2257 2012-07-13 Doug Evans <dje@google.com>
2259 * symtab.c (filename_seen): Update comment.
2261 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2262 Doug Evans <dje@google.com>
2264 * buildsym.c (end_symtab_1): Split it to ...
2265 (end_symtab_get_static_block): ... this ...
2266 (end_symtab_from_static_block): ... and this function.
2267 (end_symtab, end_expandable_symtab): Call them.
2268 * buildsym.h (end_symtab_get_static_block)
2269 (end_symtab_from_static_block): New declarations.
2270 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2271 Set its valid CU ranges.
2273 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2275 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2276 DW_OP_GNU_parameter_ref.
2278 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2280 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2281 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2283 2012-07-13 Doug Evans <dje@google.com>
2285 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2286 (filename_seen_cache): New struct.
2287 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2288 (create_filename_seen_cache): New function.
2289 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2290 (filename_seen): Delete arg "first". New arg "cache". All callers
2292 (output_source_filename_data): New struct.
2293 (output_source_filename): Delete arg "first". New arg "data".
2294 All callers updated.
2295 (sources_info): Delete local "first". New locals "data", "cleanups".
2296 Rewrite to use filename_seen_cache.
2297 (add_partial_filename_data): Delete member "first". New member
2298 "filename_seen_cache". All uses updated.
2299 (make_source_files_completion_list): Rewrite to use
2300 filename_seen_cache.
2302 2012-07-12 Doug Evans <dje@google.com>
2304 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2306 2012-07-10 Doug Evans <dje@google.com>
2309 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2310 all_type_unit_groups, type_unit_groups, tu_stats.
2311 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2312 All uses updated. Add type_unit_group to union "s".
2313 (type_unit_group): New struct.
2314 (IS_TYPE_UNIT_GROUP): New macro.
2315 (abbrev_table): Delete unused member "section".
2316 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2317 (dw2_get_cu): Assert not used with type_unit_group.
2318 (dw2_get_primary_cu): New function.
2319 (dw2_build_type_unit_groups_reader): New function.
2320 (dw2_build_type_unit_groups): New function.
2321 (dw2_get_file_names): Assert not called on type units.
2322 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2323 Redo loop to iterate over type unit groups instead of type units.
2324 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2325 (read_abbrev_offset): New function.
2326 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2328 (create_partial_symtab): New function.
2329 (process_psymtab_comp_unit_reader): Assert not used with type units.
2330 Call create_partial_symtab.
2331 (process_psymtab_type_unit): Delete.
2332 (hash_type_unit_group, eq_type_unit_group): New functions.
2333 (allocate_type_unit_groups_table): New function.
2334 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2335 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2336 (create_type_unit_group, get_type_unit_group): New functions.
2337 (tu_abbrev_offset): New struct.
2338 (sort_tu_by_abbrev_offset): New function.
2339 (add_type_unit_group_to_table): New function.
2340 (build_type_unit_groups): New function.
2341 (build_type_psymtabs_reader): New function.
2342 (build_type_psymtab_dependencies): New function.
2343 (build_type_psymtabs): Rewrite.
2344 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2345 is seen in a type unit.
2346 (process_queue): Move symtab expansion debugging printfs here.
2347 Call process_full_type_unit for type units.
2348 (compute_symtab_includes): Assert not called for type units.
2349 (process_cu_includes): Don't call compute_symtab_includes for
2351 (process_full_type_unit): New function.
2352 (process_imported_unit_die): Flag an error if called for type units.
2353 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2354 updated. Assert not called for type units.
2355 (read_file_scope): Call dwarf2_start_symtab.
2356 (setup_type_unit_groups): New function.
2357 (read_type_unit_scope): Rewrite.
2358 (abbrev_table_read_table): Initialize abbrev_table->offset.
2359 (abbrev_table_free_cleanup): New function.
2360 (dwarf2_start_symtab): New function.
2361 (load_full_type_unit): Assert not called for type unit groups.
2362 * buildsym.c (finish_block_internal): New arg "expandable".
2363 All callers updated.
2364 (start_symtab): Move most contents to ...
2365 (restart_symtab): ... here. New function.
2366 (reset_symtab_globals): New function.
2367 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2368 Call reset_symtab_globals.
2369 (end_symtab, end_expandable_symtab): New functions.
2370 (set_missing_symtab, augment_type_symtab): New functions.
2371 * buildsym.h (end_expandable_symtab): Declare.
2372 (augment_type_symtab, restart_symtab): Declare.
2373 * psympriv.h (struct partial_symtab): New member "anonymous".
2374 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2376 (read_psymtabs_with_filename): Ditto.
2377 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2378 (expand_symtabs_matching_via_partial): Ditto.
2379 (dump_psymtab): Update.
2380 * dictionary.c (dict_add_pending): New function.
2381 * dictionary.h (dict_add_pending): Declare.
2383 2012-07-09 Doug Evans <dje@google.com>
2385 * buildsym.c (start_subfile): Remove unnecessary check for
2388 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2390 * dwarf2read.c (load_full_type_unit): Simplify.
2392 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2393 to struct signatured_type **. All uses updated.
2395 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2396 All callers updated.
2398 2012-07-09 Tom Tromey <tromey@redhat.com>
2400 * c-exp.y (check_parameter_typelist): New function.
2401 (parameter_typelist): Call it.
2402 * eval.c (make_params): Handle '(void)' case.
2403 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2406 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2408 * common/linux-ptrace.c: Include gdb_assert.h.
2409 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2410 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2412 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2414 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2415 * linux-nat.c (linux_child_post_attach)
2416 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2418 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2420 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2421 nptl <2.7 bug workaround for core files.
2423 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2425 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2427 (save_siginfo): Remove.
2428 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2430 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2431 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2432 * linux-nat.h (struct lwp_info): Remove field siginfo.
2434 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2436 Code cleanup for the next patch.
2437 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2438 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2440 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2441 (ia64_linux_stopped_data_address):
2442 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2444 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2445 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2446 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2449 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2452 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2453 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2455 2012-07-06 Tom Tromey <tromey@redhat.com>
2457 * c-exp.y (DOTDOTDOT): New token.
2458 (func_mod, exp): Use parameter_typelist.
2459 (parameter_typelist): New production.
2460 (tokentab3): Add "..." token.
2461 * eval.c (make_params): Handle varargs.
2462 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2465 2012-07-06 Tom Tromey <tromey@redhat.com>
2468 * c-exp.y (%union) <tvec>: Change type.
2469 (func_mod): Now uses <tvec> type.
2470 (exp): Update for tvec change.
2471 (direct_abs_decl): Push the typelist.
2472 (func_mod): Return a typelist.
2473 (nonempty_typelist): Update for tvec change.
2474 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2475 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2476 * parse.c (pop_type_list): New function.
2477 (push_typelist): New function.
2478 (follow_types): Handle tp_function_with_arguments.
2479 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2480 (enum type_pieces) <tp_function_with_arguments>: New constant.
2481 (union type_stack_elt) <typelist_val>: New field.
2482 (push_typelist): Declare.
2484 2012-07-06 Tom Tromey <tromey@redhat.com>
2486 * c-exp.y (%union) <type_stack>: New field.
2487 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2488 (ptr_operator_ts): New production.
2490 * parse.c (type_stack_reserve): New function.
2491 (check_type_stack_depth): Use it.
2492 (pop_type_stack, append_type_stack, push_type_stack)
2493 (get_type_stack, type_stack_cleanup): New functions.
2494 (follow_types): Handle tp_type_stack.
2495 (_initialize_parse): Simplify initialization.
2496 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2498 (union type_stack_elt) <stack_val>: New field.
2499 (get_type_stack, append_type_stack, push_type_stack)
2500 (type_stack_cleanup): Declare.
2502 2012-07-06 Tom Tromey <tromey@redhat.com>
2504 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2506 (struct type_stack): New.
2507 * parse.c (type_stack, type_stack_size, type_stack_depth):
2509 (type_stack): New global.
2510 (parse_exp_in_context, check_type_stack_depth)
2511 (insert_into_type_stack, insert_type, push_type, push_type_int)
2512 (insert_type_address_space, pop_type, pop_type_int)
2513 (_initialize_parse): Update.
2515 2012-07-06 Tom Tromey <tromey@redhat.com>
2517 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2520 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2522 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2524 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2525 Jan Kratochvil <jan.kratochvil@redhat.com>
2527 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2528 alloca with xmalloc/xfree.
2530 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2532 * MAINTAINERS (Write After Approval): Add myself to the list.
2534 2012-07-05 Doug Evans <dje@google.com>
2536 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2538 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2540 * ax-gdb.c (cli/cli-utils.h): New include.
2541 (linespec.h): Ditto.
2542 (agent_eval_command_one): New function.
2543 (agent_command_1): Ditto.
2544 (agent_command): Call function agent_command_1.
2545 (agent_eval_command): Ditto.
2546 (_initialize_ax_gdb): Change help for "maint agent"
2547 and "maint agent-eval".
2549 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2551 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2552 * cli/cli-utils.c (check_for_argument): New function.
2553 * cli/cli-utils.h (check_for_argument): Ditto.
2555 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2557 * NEWS: Mention x32 ABI support.
2559 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2561 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2562 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2564 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2565 and pc_regnum_from_eax to -1. Update SP regnum from
2566 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2569 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2572 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2574 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2575 * dwarf2expr.h: Include gdbtypes.h.
2576 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2577 these forward declarations.
2578 (cu_offset, sect_offset): Move these ...
2579 * gdbtypes.h: Remove include dwarf2expr.h.
2580 (cu_offset, sect_offset): ... here.
2582 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2584 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2585 (amd64_linux_sigtramp_code): This.
2586 (amd64_x32_linux_sigtramp_code): New.
2587 (LINUX_SIGTRAMP_LEN): Updated.
2588 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2590 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2592 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2594 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2596 * config.in: Regenerate.
2597 * configure: Regenerate.
2598 * configure.ac: Remove check for gnu/libc-version.h.
2599 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2601 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2602 variables libc_version, libc_major and libc_minor. Replace sscanf by
2603 inferior_has_bug. Extend the comment.
2605 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2607 * linux-thread-db.c (inferior_has_bug): New function.
2608 (thread_db_find_new_threads_silently): Return boolean as checked by
2609 inferior_has_bug, describe it in the comments.
2610 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2611 earlier. Abort the initialization if it returned non-zero.
2612 (thread_db_new_objfile): Exclude debug files.
2613 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2616 2012-07-02 Doug Evans <dje@google.com>
2618 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2619 related to queue management.
2621 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2622 instead of "debug dwarf2-die" in debugging printfs.
2623 (create_debug_info_hash_table_reader): Ditto.
2624 (create_debug_info_hash_table): Ditto.
2625 (init_dwo_file): Ditto.
2626 (init_cutu_and_read_dies): Add debugging printf.
2627 (init_cutu_and_read_dies_no_follow): Ditto.
2628 (process_psymtab_comp_unit_reader): Ditto.
2630 2012-07-02 Stan Shebs <stan@codesourcery.com>
2632 Add target-side support for dynamic printf.
2633 * NEWS: Mention the additional style.
2634 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2635 (struct bp_location): New field cmd_bytecode.
2636 * breakpoint.c: Include format.h.
2637 (disconnected_dprintf): New global.
2638 (parse_cmd_to_aexpr): New function.
2639 (build_target_command_list): New function.
2640 (insert_bp_location): Call it.
2641 (remove_breakpoints_pid): Skip dprintf breakpoints.
2642 (print_one_breakpoint_location): Ditto.
2643 (dprintf_style_agent): New global.
2644 (dprintf_style_enums): Add dprintf_style_agent.
2645 (update_dprintf_command_list): Add agent case.
2646 (agent_printf_command): New function.
2647 (_initialize_breakpoint): Add new commands.
2648 * common/ax.def (printf): New bytecode.
2649 * ax.h (ax_string): Declare.
2650 * ax-gdb.h (gen_printf): Declare.
2651 * ax-gdb.c: Include cli-utils.h, format.h.
2652 (gen_printf): New function.
2653 (maint_agent_print_command): New function.
2654 (_initialize_ax_gdb): Add maint agent-printf command.
2655 * ax-general.c (ax_string): New function.
2656 (ax_print): Add printf disassembly.
2657 * Makefile.in (SFILES): Add format.c
2658 (COMMON_OBS): Add format.o.
2659 * common/format.h: New file.
2660 * common/format.c: New file.
2661 * printcmd.c: Include format.h.
2662 (ui_printf): Call parse_format_string.
2663 * remote.c (remote_state): New field breakpoint_commands.
2664 (PACKET_BreakpointCommands): New enum.
2665 (remote_breakpoint_commands_feature): New function.
2666 (remote_protocol_features): Add new BreakpointCommands entry.
2667 (remote_can_run_breakpoint_commands): New function.
2668 (remote_add_target_side_commands): New function.
2669 (remote_insert_breakpoint): Call it.
2670 (remote_insert_hw_breakpoint): Ditto.
2671 (_initialize_remote): Add new packet configuration for
2672 target-side breakpoint commands.
2673 * target.h (struct target_ops): New field
2674 to_can_run_breakpoint_commands.
2675 (target_can_run_breakpoint_commands): New macro.
2676 * target.c (update_current_target): Handle
2677 to_can_run_breakpoint_commands.
2679 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2681 Execute -ix and -iex only after system and user gdbinit files.
2682 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2683 processing down after gdbinit files.
2685 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2687 Add fnmatch-gnu module.
2688 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2689 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2690 * gnulib/aclocal.m4: Regenerate.
2691 * gnulib/config.in: Regenerate.
2692 * gnulib/configure: Regenerate.
2693 * gnulib/import/dummy.c: Remove.
2694 * gnulib/import/Makefile.am: Regenerate.
2695 * gnulib/import/Makefile.in: Likewise.
2696 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2697 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2698 * gnulib/import/alloca.c: New file.
2699 * gnulib/import/alloca.in.h: Likewise.
2700 * gnulib/import/config.charset: Likewise.
2701 * gnulib/import/fnmatch.c: Likewise.
2702 * gnulib/import/fnmatch.in.h: Likewise.
2703 * gnulib/import/fnmatch_loop.c: Likewise.
2704 * gnulib/import/localcharset.c: Likewise.
2705 * gnulib/import/localcharset.h: Likewise.
2706 * gnulib/import/m4/alloca.m4: Likewise.
2707 * gnulib/import/m4/codeset.m4: Likewise.
2708 * gnulib/import/m4/configmake.m4: Likewise.
2709 * gnulib/import/m4/fcntl-o.m4: Likewise.
2710 * gnulib/import/m4/fnmatch.m4: Likewise.
2711 * gnulib/import/m4/glibc21.m4: Likewise.
2712 * gnulib/import/m4/localcharset.m4: Likewise.
2713 * gnulib/import/m4/locale-fr.m4: Likewise.
2714 * gnulib/import/m4/locale-ja.m4: Likewise.
2715 * gnulib/import/m4/locale-zh.m4: Likewise.
2716 * gnulib/import/m4/mbrtowc.m4: Likewise.
2717 * gnulib/import/m4/mbsinit.m4: Likewise.
2718 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2719 * gnulib/import/m4/mbstate_t.m4: Likewise.
2720 * gnulib/import/m4/stdbool.m4: Likewise.
2721 * gnulib/import/m4/wchar_h.m4: Likewise.
2722 * gnulib/import/m4/wctype_h.m4: Likewise.
2723 * gnulib/import/m4/wint_t.m4: Likewise.
2724 * gnulib/import/mbrtowc.c: Likewise.
2725 * gnulib/import/mbsinit.c: Likewise.
2726 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2727 * gnulib/import/mbsrtowcs-state.c: Likewise.
2728 * gnulib/import/mbsrtowcs.c: Likewise.
2729 * gnulib/import/ref-add.sin: Likewise.
2730 * gnulib/import/ref-del.sin: Likewise.
2731 * gnulib/import/stdbool.in.h: Likewise.
2732 * gnulib/import/streq.h: Likewise.
2733 * gnulib/import/strnlen1.c: Likewise.
2734 * gnulib/import/strnlen1.h: Likewise.
2735 * gnulib/import/verify.h: Likewise.
2736 * gnulib/import/wchar.in.h: Likewise.
2737 * gnulib/import/wctype.in.h: Likewise.
2739 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2741 Support shell wildcards for 'set auto-load safe-path'.
2742 * auto-load.c: Include fnmatch.h.
2743 (filename_is_in_dir): Rename to ...
2744 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2745 it. Update function comment. Rename dir_len to pattern_len. New
2746 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2747 messages. Use gdb_filename_fnmatch.
2748 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2750 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2751 * defs.h (gdb_filename_fnmatch): New declaration.
2752 * utils.c: Include fnmatch.h.
2753 (gdb_filename_fnmatch): New function.
2755 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2757 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2758 `-probe' and `-probe-stap' options.
2760 2012-07-01 Yao Qi <yao@codesourcery.com>
2762 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2763 always_inserted_off, and always_inserted_enums.
2764 Change always_inserted_mode's type to 'enum auto_boolean'.
2765 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2767 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2768 of add_setshow_enum_cmd.
2769 * infrun.c: Remove can_use_displaced_stepping_auto,
2770 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2771 can_use_displaced_stepping_enum.
2772 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2773 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2774 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2775 add_setshow_enum_cmd.
2777 2012-06-30 Doug Evans <dje@google.com>
2779 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2780 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2781 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2783 2012-06-29 Doug Evans <dje@google.com>
2785 * linespec.c: #include "stack.h".
2786 (decode_line_with_current_source): Moved here from symtab.c and
2787 renamed from decode_line_spec. All callers updated.
2788 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2789 renamed from decode_line_spec_1. All callers updated.
2790 * linespec.h (decode_line_with_current_source): Move declaration here
2791 from symtab.h and renamed from decode_line_spec.
2792 (decode_line_with_last_displayed): Move declaration here from symtab.h
2793 and renamed from decode_line_spec_1.
2794 * macrocmd.c: #include "linespec.h".
2795 * symtab.c: Remove #include "linespec.h".
2797 2012-06-28 Doug Evans <dje@google.com>
2799 * dwarf2read.c (get_cu_length): New function.
2800 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2801 (create_debug_types_hash_table): Ditto.
2802 (init_cutu_and_read_dies): Ditto.
2803 (init_cutu_and_read_dies_no_follow): Ditto.
2805 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2807 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2808 (struct abbrev_table): Define.
2809 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2811 (init_cutu_and_read_dies): Update.
2812 (abbrev_table_alloc_abbrev): New function. Replaces
2813 dwarf_alloc_abbrev. All callers updated.
2814 (abbrev_table_add_abbrev): New function.
2815 (abbrev_table_lookup_abbrev): New function. Replaces
2816 dwarf2_lookup_abbrev. All callers updated.
2817 (abbrev_table_read_table): New function. Contents moved here from
2818 dwarf2_read_abbrevs.
2819 (dwarf2_read_abbrevs): Call it.
2820 (abbrev_table_free): New function.
2821 (dwarf2_free_abbrev_table): Call it.
2823 2012-06-28 Stan Shebs <stan@codesourcery.com>
2825 * osdata.c (info_osdata_command): Filter out "Title" columns
2827 * common/linux-osdata.c (struct osdata_type): Add title field.
2828 (osdata_table): Add titles to each entry.
2829 (linux_command_xfer_osdata): Add a column for title data.
2831 2012-06-28 Stan Shebs <stan@codesourcery.com>
2833 Make logging work for MI.
2835 * interps.h (interp_set_logging_ftype): New typedef.
2836 (struct interp_procs): New field set_logging_proc.
2837 (current_interp_set_logging): Declare.
2838 * interps.c (current_interp_set_logging): New function.
2839 * cli/cli-logging.c: Include interps.h.
2840 (set_logging_redirect): Call current_interp_set_logging.
2841 (pop_output_files): Ditto.
2842 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2843 * mi/mi-console.h (mi_console_set_raw): Declare.
2844 * mi/mi-console.c (mi_console_set_raw): New function.
2845 * mi/mi-interp.c (saved_raw_stdout): New global.
2846 (mi_set_logging): New function.
2847 (_initialize_mi_interp): Add it to interp procs.
2849 2012-06-28 Doug Evans <dje@google.com>
2851 * symtab.c (lookup_symbol_aux_objfile): Use
2852 ALL_OBJFILE_PRIMARY_SYMTABS.
2854 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2856 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2858 * common/buffer.c: Include inttypes.h and stdint.h.
2859 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2861 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2862 Pedro Alves <palves@redhat.com>
2864 * gdbthread.h (ALL_THREADS): New macro.
2865 (thread_list): Declare.
2866 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2867 going, but instead fall through to the stepping handling.
2868 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2869 the passed in signal. Adjust debug output.
2870 (resume_callback): Rename to ...
2871 (linux_nat_resume_callback): ... this. Pass the thread's last
2872 stop signal, if in "pass" state.
2873 (linux_nat_resume): Adjust to rename.
2874 (stop_wait_callback): New assertion. Don't respawn signals;
2875 instead let the LWP remain with SIGNALLED set.
2876 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2877 * remote.c (append_pending_thread_resumptions): New.
2878 (remote_vcont_resume): Call it.
2879 * target.h (target_resume): Extend comment.
2881 2012-06-28 Iain Sandoe <iain@codesourcery.com>
2883 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2885 2012-06-27 Doug Evans <dje@google.com>
2887 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2888 Delete have_addr_base, unused. All uses updated.
2889 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2890 (dwarf2_get_pc_bounds): Add ranges_base.
2891 (dwarf2_record_block_ranges): Ditto.
2893 2012-06-27 Tom Tromey <tromey@redhat.com>
2896 * varobj.c (varobj_create): Update.
2897 (varobj_set_value): Update.
2898 * tracepoint.c (validate_actionline): Update.
2899 (encode_actions_1): Update.
2900 * parse.c (parse_exp_1): Add 'pc' argument.
2901 (parse_exp_in_context): Add 'pc' argument. Change how
2902 expression_context_pc is set.
2903 (parse_expression): Update.
2904 (parse_field_expression): Update.
2905 * expression.h (parse_exp_1): Update.
2906 * eval.c (parse_to_comma_and_eval): Update.
2907 * breakpoint.c (set_breakpoint_condition): Update.
2908 (update_watchpoint): Update.
2909 (init_breakpoint_sal): Update
2910 (find_condition_and_thread): Update.
2911 (watch_command_1): Update.
2912 (update_breakpoint_locations): Update.
2913 * ada-lang.c (ada_read_renaming_var_value): Update.
2914 (create_excep_cond_exprs): Update.
2916 2012-06-27 Doug Evans <dje@google.com>
2918 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2921 2012-06-26 Doug Evans <dje@google.com>
2923 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2925 (error_check_comp_unit_head): New arg abbrev_section. All callers
2927 (read_and_check_comp_unit_head): Ditto.
2928 (read_and_check_type_unit_head): Ditto.
2930 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2932 New attribute 'last' for gdb.Symtab_and_line.
2933 * NEWS (Python Scripting): Add entry about the new attribute.
2934 * python/py-symtab.c (salpy_get_last): New function which
2935 implements the get method for the 'last' attribute of
2936 gdb.Symtab_and_line.
2937 (sal_object_getset): Add entry for the 'last' attribute.
2939 2012-06-26 Doug Evans <dje@google.com>
2941 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
2942 (dwo_sections): Add macinfo, macro.
2943 (dwarf2_locate_dwo_sections): Watch for macro sections.
2944 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
2945 All callers updated. Handle DWO files.
2947 * NEWS: Mention new options "set debug dwarf2-read" and
2948 "set debug symtab-create".
2949 * dwarf2read.c (dwarf2_read_debug): New static global.
2950 (dwarf2_build_psymtabs_hard): Add debugging printfs.
2951 (process_queue): Ditto.
2952 (process_full_comp_unit): Ditto.
2953 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
2954 * elfread.c (elf_symfile_read): Add debugging printf.
2955 * minsyms.c (install_minimal_symbols): Ditto.
2956 * psymtab.c (allocate_psymtab): Ditto.
2957 * symfile.c (allocate_symtab): Ditto.
2958 * symtab.c (symtab_create_debug): New global.
2959 (_initialize_symtab): Add new option "set debug symtab-create".
2960 * symtab.h (symtab_create_debug): Declare.
2962 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
2963 (lookup_dwo_type_unit): Ditto.
2965 2012-06-26 Roland McGrath <roland@hack.frob.com>
2966 H.J. Lu <hongjiu.lu@intel.com>
2968 * amd64-linux-nat.c: Include <sys/user.h>.
2969 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
2970 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
2971 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
2973 * configure.ac: Check if the fs_base and gs_base members of
2974 `struct user_regs_struct' exist.
2975 * config.in: Regenerated.
2976 * configure: Likewise.
2978 2012-06-25 Michael Eager <eager@eagercon.com>
2981 * python/python.c (gdbpy_write): Check for interrupted output.
2983 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
2985 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
2986 register as a stack alignment in ARM mode.
2988 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2990 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
2991 * gnulib/config.in: Regenerate.
2992 * gnulib/configure: Likewise.
2993 * gnulib/import/m4/extensions.m4: Update it.
2994 * gnulib/import/m4/gnulib-common.m4: Likewise.
2995 * gnulib/import/m4/memmem.m4: Likewise.
2996 * gnulib/import/m4/mmap-anon.m4: Likewise.
2997 * gnulib/import/m4/multiarch.m4: Likewise.
2998 * gnulib/import/stdint.in.h: Likewise.
3000 2012-06-24 Yao Qi <yao@codesourcery.com>
3002 * corefile.c (write_memory_with_notification): New.
3003 * gdbcore.h: Declare write_memory_with_notification.
3004 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3005 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3006 * valops.c (value_assign): Likewise.
3007 * python/py-inferior.c (infpy_write_memory): Call
3008 'write_memory_with_notification'.
3010 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3012 * cc-with-index.sh: Use also -ex "set auto-load no".
3014 2012-06-23 Doug Evans <dje@google.com>
3017 * NEWS: Document additions to .gdb_index.
3018 * dwarf2read.c: #include "gdb/gdb-index.h".
3019 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3020 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3021 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3022 (dwarf2_read_index): Recognize version 7.
3023 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3024 block_kind, domain): All callers updated.
3025 (dw2_find_symbol_file): Handle new index CU values.
3026 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3027 (add_index_entry): New args is_static, kind. All callers updated.
3028 (offset_type_compare, uniquify_cu_indices): New functions
3029 (symbol_kind): New function.
3030 (write_psymtabs_to_index): Remove duplicate CU values.
3031 (write_psymtabs_to_index): Write .gdb_index version 7.
3033 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3035 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3036 * configure: Regenerate.
3038 2012-06-20 Yao Qi <yao@codesourcery.com>
3040 * python/py-inferior.c: Update comments of infpy_read_memory
3041 and infpy_write_memory.
3043 2012-06-19 Tom Tromey <tromey@redhat.com>
3046 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3047 (push_type_address_space): Remove.
3048 * parse.c (insert_into_type_stack): New function.
3049 (insert_type): Likewise.
3050 (insert_type_address_space): Rename from push_type_address_space.
3051 Insert tp_space_identifier.
3052 * c-exp.y (ptr_operator): New production.
3053 (abs_decl): Use ptr_operator.
3054 (space_identifier): Call insert_type_address_space.
3055 (ptype): Don't use const_or_volatile_or_space_identifier.
3056 (const_or_volatile_noopt): Call insert_type.
3057 (conversion_type_id, conversion_declarator): New productions.
3058 (operator): Use conversion_type_id.
3060 2012-06-18 Doug Evans <dje@google.com>
3062 * symtab.h (minimal_symbol): New member created_by_gdb.
3063 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3065 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3066 (search_symbols): Call it instead of lookup_symbol.
3067 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3069 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3070 Adjust address for DW_OP_GNU_addr_index.
3071 * dwarf2expr.h (dwarf_expr_context): Update comment.
3072 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3073 all callers updated. Handle TLS vars described with
3074 DW_OP_GNU_const_index.
3075 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3076 and DW_OP_GNU_const_index.
3077 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3079 * block.c (find_block_in_blockvector): Make explicit the fact that we
3080 ignore GLOBAL_BLOCK.
3082 2012-06-18 Tom Tromey <tromey@redhat.com>
3084 * c-exp.y (operator): Remove trailing space after "delete" and
3087 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3088 Jan Kratochvil <jan.kratochvil@redhat.com>
3090 Switch i386 and derived targets to ON_STACK.
3091 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3092 (amd64_dicos_init_abi): Remove its installment.
3093 * dicos-tdep.c (dicos_init_abi): Remove the
3094 set_gdbarch_call_dummy_location call. Update the comment here.
3095 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3096 (i386_dicos_init_abi): Remove its installment.
3097 * i386-tdep.c (i386_push_dummy_code): New function.
3098 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3099 i386_push_dummy_code.
3101 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3103 Remove stale dummy frames.
3104 * breakpoint.c: Include dummy-frame.h.
3105 (longjmp_breakpoint_ops): New variable.
3106 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3107 bp_longjmp_call_dummy.
3108 (bpstat_what, bptype_string, print_one_breakpoint_location)
3109 (init_bp_location): Support bp_longjmp_call_dummy.
3110 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3111 (set_longjmp_breakpoint_for_call_dummy)
3112 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3114 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3115 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3116 FIXME comment and extend the other comment for bp_call_dummy.
3117 (set_longjmp_breakpoint_for_call_dummy)
3118 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3119 * dummy-frame.c: Include gdbthread.h.
3120 (pop_dummy_frame_bpt): New function.
3121 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3122 (dummy_frame_discard): New function.
3123 (cleanup_dummy_frames): Update the comment about longjmps.
3124 * dummy-frame.h (dummy_frame_discard): New declaration.
3125 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3126 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3127 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3128 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3129 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3130 keep_going if IS_LONGJMP and there is no other reason to stop.
3132 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3134 * remote-sim.c (sim_command_completer): Initialize
3137 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3139 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3140 * dwarf2loc.c (call_site_parameter_matches): Support
3141 CALL_SITE_PARAMETER_PARAM_OFFSET.
3142 (needs_dwarf_reg_entry_value): Push stub value.
3143 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3144 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3145 * gdbtypes.h (enum call_site_parameter_kind): New item
3146 CALL_SITE_PARAMETER_PARAM_OFFSET.
3147 (struct call_site.parameter.u): New field param_offset.
3149 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3151 Code cleanup: Generalize call_site.parameter key.
3152 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3153 variable dwarf_reg. New variable kind_u. Update parameters to
3154 push_dwarf_reg_entry_value.
3155 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3156 * dwarf2expr.h (enum call_site_parameter_kind)
3157 (union call_site_parameter_u): Forward declarations.
3158 (struct dwarf_expr_context_funcs): Update parameters and their
3159 description for push_dwarf_reg_entry_value.
3160 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3161 * dwarf2loc.c (call_site_parameter_matches): New function.
3162 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3163 description. Use call_site_parameter_matches.
3164 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3165 Update parameters and their description.
3166 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3167 New variable kind_u. Adjust the caller for updated parameters.
3168 (needs_dwarf_reg_entry_value): Update parameters.
3169 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3170 instead of attr. Update for the changed fields of struct
3171 call_site_parameter.
3172 * gdbtypes.h: Include dwarf2expr.h.
3173 (enum call_site_parameter_kind): New.
3174 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3175 fb_offset into new union u.
3177 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3179 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3180 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3183 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3185 * amd64-linux-nat.c (compat_x32_clock_t): New.
3186 (compat_x32_siginfo_t): Likewise.
3187 (compat_x32_siginfo_from_siginfo): Likewise.
3188 (siginfo_from_compat_x32_siginfo): Likewise.
3189 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3190 and siginfo_from_compat_x32_siginfo for x32.
3192 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3194 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3196 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3198 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3199 instead of gdbarch_ptr_bit.
3200 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3201 (amd64_supply_native_gregset): Likewise.
3202 (amd64_collect_native_gregset): Likewise.
3203 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3204 (amd64_supply_xsave): Likewise.
3205 (amd64_collect_fxsave): Likewise.
3206 (amd64_collect_xsave): Likewise.
3208 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3210 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3211 (amd64_linux_read_description): Check DS segment register for
3214 2012-06-15 Tom Tromey <tromey@redhat.com>
3216 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3217 init_cutu_and_read_dies.
3219 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3221 * MAINTAINERS (Write After Approval): Add myself to the list.
3223 2012-06-15 Tom Tromey <tromey@redhat.com>
3225 * valops.c (value_find_oload_method_list): Now static.
3226 * value.h (value_find_oload_method_list): Don't declare.
3228 2012-06-15 Tom Tromey <tromey@redhat.com>
3230 * valops.c (find_overload_match): Use value_ind.
3232 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3234 * infrun.c (handle_inferior_event): Correct indentation.
3236 2012-06-14 Doug Evans <dje@google.com>
3238 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3239 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3241 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3242 updated. Handle DEBUG_LOC_START_LENGTH.
3243 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3244 (loclist_describe_location): Ditto.
3246 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3249 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3250 after hiding inline functions.
3252 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3254 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3255 _initialize_inf_ttrace.
3257 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3259 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3260 _initialize_hppa_hpux_nat.
3262 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3264 * remote-sim.c (sim_command_completer): Change type of return
3265 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3267 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3268 Jan Kratochvil <jan.kratochvil@redhat.com>
3271 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3272 stack on a 16-byte boundary.
3274 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3276 * jit.c (finalize_symtab): Set function's return type to 'void' by
3279 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3280 H.J. Lu <hongjiu.lu@intel.com>
3282 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3283 Move bits common to both the classic LP64 and the new x32 ILP32
3285 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3286 (amd64_x32_linux_init_abi): New function.
3287 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3290 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3291 * i386-tdep.c (i386_pseudo_register_name): Make public.
3292 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3293 * amd64-tdep.c (amd64_dword_names): Add "eip".
3294 (amd64_x32_pseudo_register_type): New function
3295 (amd64_x32_init_abi): New function.
3297 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3300 * inferior.h (struct inferior_suspend_state): Comment out.
3301 (struct inferior): Comment out the field suspend.
3302 * infrun.c (struct infcall_suspend_state): Comment out the field
3304 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3307 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3309 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3310 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3311 function comment. Return ERROR for unresolved cases. Implement
3312 returning proper NAME.
3313 (yylex): Accept also NAME from classify_inner_name.
3314 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3315 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3317 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3319 2012-06-13 Tom Tromey <tromey@redhat.com>
3321 * breakpoint.c (condition_completer): New function.
3322 (_initialize_breakpoint): Use it.
3323 * value.c (complete_internalvar): New function.
3324 * value.h (complete_internalvar): Declare.
3326 2012-06-13 Tom Tromey <tromey@redhat.com>
3328 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3329 * breakpoint.c (catch_syscall_completer): Return a VEC.
3330 * cli/cli-cmds.c (complete_command): Update.
3331 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3332 (complete_on_enum): Likewise.
3333 * command.h: Include gdb_vecs.h.
3334 (completer_ftype): Change return type.
3335 (complete_on_cmdlist, complete_on_enum): Likewise.
3336 * completer.c (noop_completer, filename_completer)
3337 (location_completer): Return a VEC.
3338 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3340 (expression_completer, complete_line_internal, complete_line)
3341 (command_completer): Return a VEC.
3342 (gdb_completion_word_break_characters, line_completion_function):
3344 * completer.h: Include gdb_vecs.h.
3345 (complete_line, noop_completer, filename_completer)
3346 (expression_completer, location_completer, command_completer):
3348 * f-lang.c (f_word_break_characters): Return a VEC.
3349 * interps.c (interpreter_completer): Return a VEC.
3350 * language.h (struct language_defn)
3351 <la_make_symbol_completion_list>: Return a VEC.
3352 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3353 * symtab.c (free_completion_list): Take a VEC.
3354 (return_val_size, return_val_index): Remove.
3355 (return_val): Now a VEC.
3356 (completion_list_add_name): Update.
3357 (default_make_symbol_completion_list_break_on)
3358 (default_make_symbol_completion_list, make_symbol_completion_list)
3359 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3361 (add_filename_to_list): Update.
3362 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3364 (maybe_add_partial_symtab_filename): Update.
3365 (make_source_files_completion_list): Return a VEC.
3366 * symtab.h (default_make_symbol_completion_list_break_on)
3367 (default_make_symbol_completion_list, make_symbol_completion_list)
3368 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3369 (make_source_files_completion_list): Update.
3371 2012-06-13 Tom Tromey <tromey@redhat.com>
3373 * breakpoint.c (add_catch_command): Use completer_ftype.
3374 * breakpoint.h: Include command.h.
3375 (add_catch_command): Use completer_ftype.
3376 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3377 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3378 Use completer_ftype.
3379 * command.h (completer_ftype): New typedef.
3380 (set_cmd_completer): Use it.
3381 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3384 2012-06-13 Pedro Alves <palves@redhat.com>
3386 Partial revert of previous change.
3388 * serial.c (scb_base): New global.
3389 (serial_for_fd): New.
3390 (serial_open, serial_fdopen_ops): Link new serial in open serials
3392 (do_serial_close): Unlink serial from the open serials chain.
3394 2012-06-12 Pedro Alves <palves@redhat.com>
3396 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3398 (prepare_for_detach): No longer context switch here in non-stop
3400 (fetch_inferior_event): Ditto.
3401 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3402 to the event thread before removing breakpoints. Switch to the
3403 event thread before inserting breakpoints and resuming.
3404 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3405 event thread before resuming.
3406 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3407 Switch to the event thread before removing breakpoints.
3409 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3411 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3412 special characters correctly for the Windows shells. See
3413 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3415 [!__MINGW32__]: Remove extra double quote character from special
3418 2012-06-11 Stan Shebs <stan@codesourcery.com>
3420 * ui-out.h: Remove #if 0 declarations.
3421 * ui-out.c: Remove #if 0 functions.
3423 2012-06-11 Pedro Alves <palves@redhat.com>
3425 * ser-base.c (run_async_handler_and_reschedule): New.
3426 (fd_event, push_event): Use it.
3427 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3428 reference count to 1.
3429 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3431 (serial_is_open, serial_ref, serial_unref): New.
3432 * serial.h (serial_open): Adjust comment.
3433 (serial_is_open): Declare.
3434 (serial_close): Adjust comment.
3435 (serial_ref, serial_unref) Declare.
3436 (struct serial): New field 'refcnt'.
3438 2012-06-11 Pedro Alves <palves@redhat.com>
3440 Remove #if 0'd "connect" command, and unnecessary associated
3441 refcounting and serial reuse bits.
3443 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3444 * serial.c (last_serial_opened): Delete.
3446 (serial_open): Adjust.
3447 (serial_for_fd): Delete.
3448 (serial_fdopen_ops, do_serial_close): Adjust.
3449 (serial_fdopen_ops): Adjust.
3451 2012-06-11 Pedro Alves <palves@redhat.com>
3453 * serial.c (do_serial_close): Remove early return when SCB is
3456 2012-06-11 Tom Tromey <tromey@redhat.com>
3458 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3460 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3462 Fix regression by the "ambiguous linespec" series.
3463 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3464 get_last_displayed_symtab and get_last_displayed_line and depending
3467 2012-06-11 Tom Tromey <tromey@redhat.com>
3469 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3470 (dw2_find_symbol_file): Use it.
3472 2012-06-11 Michael Eager <eager@eagercon.com>
3474 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3475 * mips-linux-tdep.h (mips_signals): New
3477 2012-06-11 Tom Tromey <tromey@redhat.com>
3479 * infrun.c (handle_inferior_event)
3480 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3482 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3483 exception logic in all cases. Update comments.
3484 (insert_longjmp_resume_breakpoint): Set the exception resume
3487 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3489 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3491 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3493 * valarith.c (binop_types_user_defined_p): Fix a typo.
3495 2012-06-08 Yao Qi <yao@codesourcery.com>
3496 Chung-Lin Tang <cltang@codesourcery.com>
3498 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3499 * arch-utils.h: Declare.
3500 * gdbarch.sh: Add return_in_first_hidden_param_p.
3501 * gdbarch.c, gdbarch.h: Regenerated.
3502 * infcall.c (call_function_by_hand): Call
3503 gdbarch_return_in_first_hidden_param_p instead of
3504 language_pass_by_reference.
3506 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3507 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3508 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3509 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3510 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3511 `cplus_return_struct_by_reference'.
3512 (tic6x_return_value): Handle language cplusplus.
3513 (tic6x_return_in_first_hidden_param_p): New.
3514 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3516 2012-06-07 Doug Evans <dje@google.com>
3518 * dwarf2read.c (dwarf2_cu): Add comment.
3520 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3522 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3524 (mips_eabi_push_dummy_call): Likewise.
3525 (mips_n32n64_push_dummy_call): Likewise.
3526 (mips_o32_push_dummy_call): Likewise.
3527 (mips_o64_push_dummy_call): Likewise.
3529 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3531 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3533 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3535 * mips-tdep.c (mips_pseudo_register_type): Use
3536 mips_float_register_p.
3538 2012-06-06 Pedro Alves <palves@redhat.com>
3540 * infrun.c (handle_inferior_event): Remove calls to
3541 reinit_frame_cache that follow a context_switch call.
3543 2012-06-06 Pedro Alves <palves@redhat.com>
3545 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3546 context_switch and remove stale comment.
3548 2012-06-06 Pedro Alves <palves@redhat.com>
3550 * infrun.c (struct execution_control_state): Remove
3551 `new_thread_event' field.
3552 (handle_inferior_event): Simplify new threads handling; don't
3553 resume the inferior if we find a new thread.
3555 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3557 * NEWS: Document the deprecation of SH's 'regs' command.
3558 * inferior.h (all_registers_info): Add function declaration.
3559 * sh-tdep.c (sh_show_regs): Remove variable.
3560 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3561 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3562 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3563 (sh_show_regs_command): Remove functions.
3564 (sh_gdbarch_init): Don't set sh_show_regs.
3565 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3566 'info all-registers'.
3567 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3568 (sh64_show_regs): Remove functions.
3569 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3571 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3573 * configure.ac: Move development=true below AC_INIT.
3574 * configure: Regenerate.
3576 2012-06-05 Stan Shebs <stan@codesourcery.com>
3578 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3581 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3583 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3584 argument as ssize_t.
3585 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3586 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3587 * target.c (target_read_stack, target_write_memory)
3588 (target_write_raw_memory): Likewise.
3589 * target.h (target_read_stack, target_write_memory)
3590 (target_write_raw_memory): Likewise.
3592 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3594 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3595 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3596 * target.c (target_read_memory): Change LEN to ssize_t.
3597 * target.h (target_read_memory): Change LEN to ssize_t.
3599 2012-06-05 Pedro Alves <palves@redhat.com>
3603 * breakpoint.c (until_break_command): Only fetch the selected
3604 frame after decode_line_1.
3606 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3608 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3609 event breakpoint at _start, __start or main if a program
3610 interpreter is not found.
3612 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3614 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3616 * windows-tdep.c: #include "objfiles.h".
3617 (windows_iterate_over_objfiles_in_search_order): New function.
3618 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3619 iterate_over_objfiles_in_search_order gdbarch method to
3620 windows_iterate_over_objfiles_in_search_order.
3621 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3623 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3625 * gdbarch.sh: Add generation of
3626 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3627 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3628 (iterate_over_objfiles_in_search_order): New gdbarch method.
3629 * gdbarch.h, gdbarch.c: Regenerate.
3630 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3632 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3634 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3635 out of lookup_symbol_aux_symtabs.
3636 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3637 call to lookup_symbol_aux_objfile.
3638 (struct global_sym_lookup_data): New type.
3639 (lookup_symbol_global_iterator_cb): New function.
3640 (lookup_symbol_global): Search for symbol using
3641 gdbarch_iterate_over_objfiles_in_search_order and
3642 lookup_symbol_global_iterator_cb.
3643 * findvar.c (struct minsym_lookup_data): New type.
3644 (minsym_lookup_iterator_cb): New function.
3645 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3646 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3647 and minsym_lookup_iterator_cb.
3649 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3651 Revert the following patch:
3652 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3653 try locating the symbol in the symbol's own objfile first, before
3654 extending the search to all objfiles.
3655 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3656 out of lookup_symbol_aux_symtabs.
3657 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3658 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3659 Do not search EXCLUDE_OBJFILE.
3660 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3661 (lookup_symbol_global): Search for matches in the block's objfile
3662 first, before searching all other objfiles.
3664 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3666 * breakpoint.c (find_condition_and_thread): Stop parsing
3667 as soon as the first invalid keyword is found.
3669 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3671 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3673 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3675 * config/djgpp/djcheck.sh: Add copyright header.
3677 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3679 * copyright.py (update_files, main): Fix path to update-copyright
3682 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3684 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3685 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3686 for which a reminder to update by hand is printed.
3688 2012-06-04 Doug Evans <dje@google.com>
3690 * buildsym.c (make_blockvector): Add comment.
3692 2012-06-04 Pedro Alves <palves@redhat.com>
3694 * arch-utils.c (default_gdb_signal_from_target): Delete.
3695 * arch-utils.h (default_gdb_signal_from_target): Delete.
3696 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3697 gdbarch_gdb_signal_from_target_p.
3698 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3700 * gdbarch.h: Regenerate.
3701 * gdbarch.c: Regenerate.
3703 2012-06-04 Pedro Alves <palves@redhat.com>
3705 * gdbarch.sh (gdb_signal_from_target): Mention that the
3706 implementation of the method must be host independent.
3707 * gdbarch.h: Regenerate.
3709 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3711 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3713 (target_read_memory_bfd): New function.
3714 (symbol_file_add_from_memory): Use it.
3716 2012-06-03 Doug Evans <dje@google.com>
3718 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3720 (basic_lookup_transparent_type): Ditto.
3722 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3723 (ALL_PRIMARY_SYMTABS): Use it.
3724 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3725 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3726 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3727 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3728 (basic_lookup_transparent_type): Ditto.
3730 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3732 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3733 it to optimize resolution of demangled name.
3735 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3737 * configure.ac (development): Define new variable.
3738 Call AC_CHECK_LIB for mcheck if $development.
3739 (ERROR_ON_WARNING): Enable it by default only if $development.
3740 * config.in: Regenerate.
3741 * configure: Regenerate.
3743 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3745 * target.c (target_read_memory): Make LEN argument as size_t.
3746 * target.h (target_read_memory): Likewise.
3748 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3750 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3752 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3754 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3755 BookE interface for PowerPC server processors if not available
3756 in the Linux Kernel.
3758 2012-05-31 Keith Seitz <keiths@redhat.com>
3760 * linespec.c (decode_objc): Add cleanup to free
3762 (find_linespec_symbols): Add cleanup to free CLASSES.
3763 * symfile.c (find_separate_debug_file_by_debuglink): Add
3764 cleanup to free DEBUGLINK.
3765 * ui-out.c (clear_header_list): No need to check if
3766 HEADER_NEXT.COLHDR is NULL.
3767 Free HEADER_NEXT.COL_NAME.
3769 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3771 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3774 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3776 * configure.host (gdb_host_cpu): Handle tilegx*.
3777 (gdb_host): Handle tilegx-*-linux*.
3778 * tilegx-linux-nat.c: New file.
3779 * config/tilegx/linux.mh: New file.
3781 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3783 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3784 tilegx-linux-tdep.o.
3785 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3786 tilegx-linux-tdep.c.
3787 * configure.tgt: Handle tilegx-*-linux*.
3788 * tilegx-tdep.h: New file.
3789 * tilegx-tdep.c: New file.
3790 * tilegx-linux-tdep.c: New file.
3791 * regformats/reg-tilegx.dat: New file.
3793 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3795 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3796 accounting of hw watchpoints on ppc.
3798 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3800 * source.c (openp): Expand tilde in path entries.
3802 2012-05-29 Doug Evans <dje@google.com>
3804 * buildsym.c (block_compar): Fix comment.
3805 (end_symtab): Fix and clarify some comments.
3807 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3808 cleanup_undefined_types.
3809 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3810 All callers updated.
3812 2012-05-29 Tom Tromey <tromey@redhat.com>
3814 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3816 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3817 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3819 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3822 2012-05-29 Tristan Gingold <gingold@adacore.com>
3824 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3825 (struct darwin_info): ... New struct.
3826 (solib_darwin_pspace_data): New variable.
3827 (darwin_pspace_data_cleanup): New function.
3828 (get_darwin_info): Likewise.
3829 (darwin_dyld_version_ok, darwin_load_image_infos)
3830 (darwin_solib_get_all_image_info_addr_at_init)
3831 (darwin_solib_read_all_image_info_addr): Add info argument.
3833 (darwin_current_sos): Use per pspace structure.
3834 (darwin_solib_create_inferior_hook): Likewise.
3835 (darwin_clear_solib): Likewise.
3836 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3838 2012-05-28 Pedro Alves <palves@redhat.com>
3840 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3841 block that uses them. Clear ecss before handling each event.
3843 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3845 * solib-svr4.c (svr4_current_sos): New comment on
3846 svr4_current_sos_via_xfer_libraries fall back.
3848 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3850 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3851 it as a fallback for TYPE_IS_OPAQUE.
3852 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3853 symbols for lookup_symbol.
3855 2012-05-24 John Steele Scott <toojays@toojays.net>
3857 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3858 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3859 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3860 (check_producer): ... this new function, which also checks for ICC
3861 and caches the result.
3862 (producer_is_icc): New function.
3863 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3866 2012-05-24 Pedro Alves <palves@redhat.com>
3870 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3871 (default_gdb_signal_to_target): ... this. Add comment.
3872 (default_gdb_signal_from_host): Rename to ...
3873 (default_gdb_signal_from_target): ... this. Add comment.
3874 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3875 (default_gdb_signal_to_target): ... this.
3876 (default_gdb_signal_from_host): Rename to ...
3877 (default_gdb_signal_from_target): ... this.
3878 * corelow.c (core_open): Adjust to naming change. Replace comment.
3879 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3880 (gdb_signal_from_target): ... this. Adjust to
3881 default_gdb_signal_from_host naming change. Extend comment.
3882 (gdb_signal_to_host): Rename to ...
3883 (gdb_signal_to_target): ... this. Adjust to
3884 default_gdb_signal_to_host naming change.
3885 * gdbarch.h, gdbarch.c: Renegerate.
3887 2012-05-24 Pedro Alves <palves@redhat.com>
3891 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
3893 2012-05-24 Pedro Alves <palves@redhat.com>
3897 Replace target_signal with gdb_signal throughout.
3899 2012-05-24 Pedro Alves <palves@redhat.com>
3903 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3904 string, instead of reusing the va_list argument.
3906 2012-05-24 Tom Tromey <tromey@redhat.com>
3908 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3911 2012-05-23 Doug Evans <dje@google.com>
3913 * symtab.c (search_symbols): Formatting fixes.
3914 (print_symbol_info): Formatting fixes.
3916 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3917 int64_t change to leb128 API.
3918 (read_encoded_value, decode_frame_entry_1): Ditto.
3919 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3920 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3921 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3922 (execute_stack_op): Ditto.
3923 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3924 (safe_read_uleb128, safe_read_sleb128): Ditto.
3925 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3926 (dwarf2_compile_expr_to_ax): Ditto.
3927 (locexpr_describe_location_piece): Ditto.
3928 (disassemble_dwarf_expression): Ditto.
3929 (locexpr_describe_location_1): Ditto.
3931 2012-05-23 Stan Shebs <stan@codesourcery.com>
3932 Kwok Cheung Yeung <kcy@codesourcery.com>
3934 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
3935 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
3936 (mi-cmd-info.o): New rule.
3937 * osdata.h (info_osdata_command): New declaration.
3938 * osdata.c (info_osdata_command): Change to non-static.
3939 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
3940 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
3941 * mi/mi-cmd-info.c: New file.
3943 2012-05-23 Doug Evans <dje@google.com>
3945 * symtab.c (search_symbols): Pass NULL for file_matcher to
3946 expand_symtabs_matching if there are no files to match.
3948 * gdbtypes.c (lookup_typename): Simplify.
3950 2012-05-23 Pedro Alves <palves@redhat.com>
3952 * arch-utils.h (default_target_signal_to_host): Delete.
3953 * arch-utils.c (default_target_signal_to_host): Delete.
3954 * gdbarch.sh (target_signal_to_host): Remove.
3955 * gdbarch.h, gdbarch.c: Regenerate.
3957 2012-05-22 Doug Evans <dje@google.com>
3959 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
3961 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
3962 (execute_cfa_program): Update to match API of leb128 functions.
3963 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
3965 (read_unsigned_leb128, read_signed_leb128): Delete.
3966 (read_initial_length): Change type of buf argument to
3968 (read_encoded_value): Update to match API of leb128 functions.
3969 (decode_frame_entry): Change result to "const gdb_byte *", and
3970 similarly for "start" parameter.
3971 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
3972 (dwarf2_build_frame_info): Change local frame_ptr to
3974 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
3975 read_uleb128, read_sleb128. All callers updated.
3976 (safe_skip_leb128): New function.
3977 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
3978 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
3979 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
3980 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
3981 read_uleb128, read_sleb128.
3982 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3983 (execute_stack_op): Update to match API of leb128 functions.
3984 * dwarf2expr.h: #include "leb128.h".
3985 (read_uleb128, read_sleb128): Delete.
3986 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
3987 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
3988 * dwarf2loc.c (debug_loc_kind): New enum.
3989 (decode_debug_loc_addresses): New function.
3990 (decode_debug_loc_dwo_addresses): New function.
3991 (dwarf2_find_location_expression): Rewrite.
3992 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
3993 (locexpr_describe_location_piece): Ditto.
3994 (disassemble_dwarf_expression): Ditto.
3995 (locexpr_describe_location_1): Ditto.
3996 (loclist_describe_location): Rewrite.
3997 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
3998 * dwarf2read.c (die_reader_specs): New member "buffer_end".
3999 (dwarf2_section_buffer_overflow_complaint): Renamed from
4000 dwarf2_macros_too_long_complaint. All callers updated.
4001 (skip_leb128): Delete.
4002 (init_cu_die_reader): Initialize reader->buffer_end.
4003 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4004 (skip_form_bytes): New arg buffer_end. All callers updated.
4005 Replace call to skip_leb128 with gdb_skip_leb128.
4006 (skip_unknown_opcode): New arg mac_end. All callers updated.
4007 (fill_in_loclist_baton): Initialize baton->from_dwo.
4009 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4011 * mips-linux-nat.c (mips_linux_read_description): Use a more
4012 verbose error message.
4014 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4016 * NEWS: Add MIPS/Linux DSP support.
4017 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4018 (SIGCONTEXT_DSPCTL): New macro.
4019 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4020 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4021 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4022 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4023 (N64_SIGCONTEXT_HI3): Likewise.
4024 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4025 (N64_SIGCONTEXT_LO3): Likewise.
4026 (N64_SIGCONTEXT_DSPCTL): Likewise.
4027 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4028 (mips_linux_o32_sigframe_init): Handle DSP registers.
4029 (mips_linux_n32n64_sigframe_init): Likewise.
4031 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4033 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4036 2012-05-22 Pedro Alves <palves@redhat.com>
4038 * target.h (store_waitstatus): Move declaration ...
4039 * inf-child.h (store_waitstatus): ... here.
4040 * target.c: Move inclusion of gdb_wait.h, and ...
4041 (store_waitstatus): ... this ...
4042 * inf-child.c: ... here.
4043 * linux-nat.c: Include inf-child.h.
4044 * rs6000-nat.c: Include inf-child.h.
4045 * spu-linux-nat.c: Include inf-child.h.
4047 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4049 * tracepoint.c (start_tracing): Add missing i18n markup.
4050 (stop_tracing, set_trace_user): Ditto.
4051 (set_trace_notes, set_trace_stop_notes): Ditto.
4053 2012-05-21 Tom Tromey <tromey@redhat.com>
4056 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4058 * value.h (value_cast_pointers): Update.
4059 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4060 (value_cast): Update.
4061 (update_search_result): New function.
4062 (do_search_struct_field): New, from search_struct_field. Check
4063 for ambiguous results.
4064 (search_struct_field): Rewrite.
4065 * infcall.c (value_arg_coerce): Update.
4066 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4067 value_cast_pointers.
4068 * ada-lang.c (ada_convert_actual): Update.
4070 2012-05-21 Tom Tromey <tromey@redhat.com>
4072 * macroexp.c (macro_stringify): Terminate the string.
4074 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4076 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4078 * auto-load.c (auto_load_expand_dir_vars): New function.
4079 (auto_load_safe_path_vec_update): Use it, remove the
4080 substitute_path_component call thanks to it.
4081 (auto_load_objfile_script): Remove the debug_file_directory processing.
4082 Use auto_load_expand_dir_vars, remove the substitute_path_component
4084 * configure: Regenerate.
4085 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4086 path. Escape $ also for $debugdir.
4087 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4088 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4090 2012-05-20 Doug Evans <dje@google.com>
4092 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4093 before use. Check for symtab->includes == NULL before scanning it.
4095 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4097 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4099 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4101 * NEWS: Add microMIPS support and "set mips compression",
4102 "show mips compression" commands.
4103 * mips-tdep.h (mips_isa): New enum.
4104 (gdbarch_tdep): Add mips_isa.
4105 (mips_pc_is_mips16): Update prototype.
4106 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4107 * mips-tdep.c (mips_compression_mips16): New variable.
4108 (mips_compression_micromips): Likewise.
4109 (mips_compression_strings): Likewise.
4110 (mips_compression_string): Likewise.
4111 (is_mips16_isa, is_micromips_isa): New functions.
4112 (is_mips16_addr): Rename to...
4113 (is_compact_addr): ... this.
4114 (unmake_mips16_addr): Likewise to...
4115 (unmake_compact_addr): ... this.
4116 (make_mips16_addr): Likewise to...
4117 (make_compact_addr): ... this.
4118 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4120 (mips_elf_make_msymbol_special): Handle microMIPS code.
4121 (msymbol_is_special): Rename to...
4122 (msymbol_is_mips16): ... this.
4123 (mips_make_symbol_special, mips_pc_is_mips16): Update
4125 (msymbol_is_mips, msymbol_is_micromips): New functions.
4126 (mips16_to_32_reg): Rename to...
4127 (mips_reg3_to_reg): ... this.
4128 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4129 (mips_pc_isa): Likewise.
4130 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4132 (mips_fetch_instruction): Pass return status instead of printing
4133 an error message if requested. Handle microMIPS code. Bail out
4135 (micromips_op): New macro.
4136 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4137 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4138 (b6s4_op, b7s3_reg): Likewise.
4139 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4140 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4141 (mips_insn_size): New function.
4142 (mips32_next_pc): Update mips_fetch_instruction call.
4143 (micromips_relative_offset7): New function.
4144 (micromips_relative_offset10): Likewise.
4145 (micromips_relative_offset16): Likewise.
4146 (micromips_pc_insn_size): Likewise.
4147 (micromips_bc1_pc): Likewise.
4148 (micromips_next_pc): Likewise.
4149 (unpack_mips16): Update mips_fetch_instruction call.
4150 (extended_mips16_next_pc): Update according to change to
4152 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4154 (mips16_scan_prologue): Update mips_fetch_instruction call.
4155 Update according to change to mips16_to_32_reg.
4156 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4157 (mips_insn16_frame_base_sniffer): Likewise.
4158 (micromips_decode_imm9): New function.
4159 (micromips_scan_prologue): Likewise.
4160 (mips_micro_frame_cache): Likewise.
4161 (mips_micro_frame_this_id): Likewise.
4162 (mips_micro_frame_prev_register): Likewise.
4163 (mips_micro_frame_sniffer): Likewise.
4164 (mips_micro_frame_unwind): New variable.
4165 (mips_micro_frame_base_address): New function.
4166 (mips_micro_frame_base): New variable.
4167 (mips_micro_frame_base_sniffer): New function.
4168 (mips32_scan_prologue): Update mips_fetch_instruction call.
4169 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4170 rather than for MIPS16.
4171 (mips_insn32_frame_base_sniffer): Likewise.
4172 (mips_addr_bits_remove): Handle microMIPS code.
4173 (deal_with_atomic_sequence): Rename to...
4174 (mips_deal_with_atomic_sequence): ... this. Update the type
4175 of the variable used to hold an instruction. Remove the ISA bit
4176 check. Update mips_fetch_instruction call.
4177 (micromips_deal_with_atomic_sequence): New function.
4178 (deal_with_atomic_sequence): Likewise.
4179 (mips_about_to_return): Handle microMIPS code. Update
4180 mips_fetch_instruction call.
4181 (heuristic_proc_start): Check for the standard MIPS ISA rather
4182 than for MIPS16. Update mips_pc_is_mips16 and
4183 mips_fetch_instruction calls. Handle microMIPS code.
4184 (mips_push_dummy_code): Handle microMIPS code.
4185 (mips_eabi_push_dummy_call): Likewise.
4186 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4187 (mips_o64_push_dummy_call): Handle microMIPS code.
4188 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4189 (is_delayed): Remove function.
4190 (mips_single_step_through_delay): Replace the call to is_delayed
4191 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4192 Handle microMIPS code.
4193 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4195 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4197 (micromips_in_function_epilogue_p): New function.
4198 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4200 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4202 (gdb_print_insn_mips): Likewise.
4203 (mips_breakpoint_from_pc): Likewise.
4204 (mips_remote_breakpoint_from_pc): New function.
4205 (mips32_instruction_has_delay_slot): Simplify making use of the
4206 updated mips_fetch_instruction interface.
4207 (micromips_instruction_has_delay_slot): New function.
4208 (mips16_instruction_has_delay_slot): Simplify making use of the
4209 updated mips_fetch_instruction interface.
4210 (mips_adjust_breakpoint_address): Check for the standard MIPS
4211 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4212 calls. Handle microMIPS code.
4213 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4214 (mips_skip_trampoline_code): Handle microMIPS code.
4215 (global_mips_compression): New function.
4216 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4217 file flags. Register the microMIPS remote breakpoint handler
4218 and heuristic frame unwinder.
4219 (show_mips_compression): New function.
4220 (_initialize_mips_tdep): Add the "set mips compression" and
4221 "show mips compression" commands.
4223 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4228 * amd64-darwin-tdep.c:
4229 * arm-symbian-tdep.c:
4233 * bfin-linux-tdep.c:
4240 * dwarf2-frame-tailcall.c:
4269 * microblaze-tdep.c:
4270 * mips-linux-tdep.c:
4278 * python/py-finishbreakpoint.c:
4279 * python/py-inferior.c:
4280 * python/py-infthread.c:
4284 * remote-m32r-sdi.c:
4288 * rs6000-aix-tdep.c:
4314 * amd64-darwin-tdep.c:
4315 * arm-symbian-tdep.c:
4316 * arm-tdep.c: Delete unused variables.
4318 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4320 Rename $ddir to $datadir.
4321 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4322 * auto-load.c (auto_load_safe_path_vec_update)
4323 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4324 * configure: Regenerate.
4325 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4326 Likewise. Remove the 'use $ddir' help string.
4328 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4330 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4331 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4333 2012-05-18 Tom Tromey <tromey@redhat.com>
4336 * valprint.h (struct value_print_options) <symbol_print>: New
4338 * valprint.c (user_print_options): Add default for symbol_print.
4339 (show_symbol_print): New function.
4340 (generic_val_print): Respect symbol_print.
4341 (_initialize_valprint): Add "print symbol" setting.
4342 * f-valprint.c (f_val_print): Respect symbol_print.
4343 * c-valprint.c (c_val_print): Respect symbol_print.
4345 * printcmd.c (print_address_symbolic): Return int. Ignore some
4347 (print_address_demangle): Return int.
4348 * defs.h: (print_address_symbolic): Return int.
4349 * value.h (print_address_demangle): Return int.
4351 2012-05-18 Tom Tromey <tromey@redhat.com>
4353 * valprint.c (val_print_string): Don't print leading space.
4354 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4355 print space before string or vtbl.
4356 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4358 * jv-valprint.c (java_value_print): Print space before string.
4359 * go-valprint.c (print_go_string): Print space before string.
4360 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4361 space before string.
4362 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4363 space before string or vtbl.
4364 * auxv.c (fprint_target_auxv): Print space after address.
4366 2012-05-18 Tom Tromey <tromey@redhat.com>
4368 * printcmd.c (print_address_demangle): Remove special case for 0.
4370 2012-05-18 Tom Tromey <tromey@redhat.com>
4372 * printcmd.c (print_address_demangle): Add 'opts' argument.
4373 * p-valprint.c (pascal_val_print): Update.
4374 * jv-valprint.c (java_val_print): Update.
4376 * valprint.c (generic_val_print): Update.
4377 (print_function_pointer_address): Add 'options' argument. Remove
4378 'addressprint' argument. Update.
4379 * m2-valprint.c (print_unpacked_pointer): Update.
4380 * gnu-v3-abi.c (print_one_vtable): Update.
4381 (gnuv3_print_method_ptr): Update.
4382 * f-valprint.c (f_val_print): Update.
4383 * cp-valprint.c (cp_print_value_fields): Update.
4384 * valprint.h (print_function_pointer_address): Update.
4385 * c-valprint.c (c_val_print): Update.
4387 2012-05-18 Tom Tromey <tromey@redhat.com>
4389 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4390 directly corresponding to the found psymtab.
4391 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4392 (dw2_find_pc_sect_symtab): Use it.
4393 * block.h (blockvector_contains_pc): Declare.
4394 * block.c (find_block_in_blockvector): New function.
4395 (blockvector_for_pc_sect): Use it.
4396 (blockvector_contains_pc): New function.
4398 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4400 * mips-tdep.h (mips_write_pc): New prototype.
4401 * mips-tdep.c (mips_write_pc): Make external, add description.
4402 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4405 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4407 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4409 (mips_unwind_pc, mips_write_pc): Likewise.
4410 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4413 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4415 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4416 proc_warn, proc_error, proc_get_status, proc_flags,
4417 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4418 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4419 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4420 proc_stop_process, proc_wait_for_stop, proc_run_process,
4421 proc_set_traced_signals, proc_set_traced_faults,
4422 proc_set_traced_sysentry, proc_set_traced_sysexit,
4423 proc_set_held_signals, proc_get_held_signals,
4424 proc_get_traced_signals, proc_get_traced_faults,
4425 proc_get_traced_sysentry, proc_get_traced_sysexit,
4426 proc_clear_current_fault, proc_set_current_signal,
4427 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4428 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4429 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4430 proc_get_current_thread, proc_get_current_thread,
4431 proc_get_current_thread, proc_update_threads,
4432 proc_update_threads, proc_update_threads, proc_update_threads,
4433 proc_iterate_over_threads, procfs_find_new_threads,
4434 procfs_pid_to_str): Make static. Remove advance declaration.
4435 (proc_cursig): Make static. Conditionalized defintion on
4436 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4437 (proc_syscall, proc_set_kill_on_last_close,
4438 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4439 proc_get_pending_signals, proc_get_signal_actions,
4440 proc_trace_signal, proc_ignore_signal): Delete.
4442 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4444 * coffread.c (cs_section_address): Passing proper argument for
4445 `bfd_get_section_vma'.
4446 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4447 `bfd_get_section_flags'.
4448 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4449 `bfd_get_section_vma'.
4451 2012-05-16 Tom Tromey <tromey@redhat.com>
4454 * macrotab.h: (macro_define_special): Declare.
4455 (enum macro_special_kind): New.
4456 (struct macro_definition) <argc, replacement>: Update comments.
4457 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4458 (macro_define_object_internal): New function.
4459 (macro_define_object): Use it.
4460 (macro_define_special): New function.
4461 (fixup_definition): New function.
4462 (macro_lookup_definition, foreach_macro_in_scope)
4463 (foreach_macro): Use fixup_definition.
4464 * macroexp.h (macro_stringify): Declare.
4465 * macroexp.c (free_buffer_return_text): New function.
4466 (stringify): Constify "arg".
4467 (macro_stringify): New function.
4468 * dwarf2read.c (macro_start_file): Call macro_define_special.
4470 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4471 Maciej W. Rozycki <macro@mips.com>
4473 * breakpoint.h (bp_location): Add related_address member.
4474 * inferior.h (get_return_value): Take a pointer to struct value
4475 instead of struct type for the function requested.
4476 * value.h (using_struct_return): Likewise.
4477 * gdbarch.sh (return_value): Take a pointer to struct value
4478 instead of struct type for the function requested.
4479 * breakpoint.c (set_breakpoint_location_function): Initialize
4480 related_address for bp_gnu_ifunc_resolver breakpoints.
4481 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4482 requested function's address to gdbarch_return_value.
4483 * eval.c (evaluate_subexp_standard): Pass the requested
4484 function's address to using_struct_return.
4485 * infcall.c (call_function_by_hand): Pass the requested
4486 function's address to using_struct_return and
4487 gdbarch_return_value.
4488 * infcmd.c (get_return_value): Take a pointer to struct value
4489 instead of struct type for the function requested.
4490 (print_return_value): Update accordingly.
4491 (finish_command_continuation): Likewise.
4492 * stack.c (return_command): Pass the requested function's
4493 address to using_struct_return and gdbarch_return_value.
4494 * value.c (using_struct_return): Take a pointer to struct value
4495 instead of struct type for the function requested. Pass the
4496 requested function's address to gdbarch_return_value.
4497 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4498 New function_value member, replacing function_type.
4499 (bpfinishpy_dealloc): Update accordingly.
4500 (bpfinishpy_pre_stop_hook): Likewise.
4501 (bpfinishpy_init): Likewise. Record the requested function's
4503 * mips-tdep.c (mips_fval_reg): New enum.
4504 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4505 words put in GP registers.
4506 (mips_o64_push_dummy_call): Update a comment.
4507 (mips_o32_return_value): Take a pointer to struct value instead
4508 of struct type for the function requested and use it to check if
4509 using the MIPS16 calling convention. Return the designated
4510 general purpose registers for floating-point values returned in
4512 (mips_o64_return_value): Likewise.
4513 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4514 (ppc_sysv_abi_broken_return_value): Likewise.
4515 (ppc64_sysv_abi_return_value): Likewise.
4516 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4517 value instead of struct type for the function requested.
4518 * amd64-tdep.c (amd64_return_value): Likewise.
4519 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4520 * arm-tdep.c (arm_return_value): Likewise.
4521 * avr-tdep.c (avr_return_value): Likewise.
4522 * bfin-tdep.c (bfin_return_value): Likewise.
4523 * cris-tdep.c (cris_return_value): Likewise.
4524 * frv-tdep.c (frv_return_value): Likewise.
4525 * h8300-tdep.c (h8300_return_value): Likewise.
4526 (h8300h_return_value): Likewise.
4527 * hppa-tdep.c (hppa32_return_value): Likewise.
4528 (hppa64_return_value): Likewise.
4529 * i386-tdep.c (i386_return_value): Likewise.
4530 * ia64-tdep.c (ia64_return_value): Likewise.
4531 * iq2000-tdep.c (iq2000_return_value): Likewise.
4532 * lm32-tdep.c (lm32_return_value): Likewise.
4533 * m32c-tdep.c (m32c_return_value): Likewise.
4534 * m32r-tdep.c (m32r_return_value): Likewise.
4535 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4536 * m68k-tdep.c (m68k_return_value): Likewise.
4537 (m68k_svr4_return_value): Likewise.
4538 * m88k-tdep.c (m88k_return_value): Likewise.
4539 * mep-tdep.c (mep_return_value): Likewise.
4540 * microblaze-tdep.c (microblaze_return_value): Likewise.
4541 * mn10300-tdep.c (mn10300_return_value): Likewise.
4542 * moxie-tdep.c (moxie_return_value): Likewise.
4543 * mt-tdep.c (mt_return_value): Likewise.
4544 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4545 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4546 (ppc_sysv_abi_broken_return_value): Likewise.
4547 (ppc64_sysv_abi_return_value): Likewise.
4548 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4549 * rl78-tdep.c (rl78_return_value): Likewise.
4550 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4551 * rx-tdep.c (rx_return_value): Likewise.
4552 * s390-tdep.c (s390_return_value): Likewise.
4553 * score-tdep.c (score_return_value): Likewise.
4554 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4555 (sh_return_value_fpu): Likewise.
4556 * sh64-tdep.c (sh64_return_value): Likewise.
4557 * sparc-tdep.c (sparc32_return_value): Likewise.
4558 * sparc64-tdep.c (sparc64_return_value): Likewise.
4559 * spu-tdep.c (spu_return_value): Likewise.
4560 * tic6x-tdep.c (tic6x_return_value): Likewise.
4561 * v850-tdep.c (v850_return_value): Likewise.
4562 * vax-tdep.c (vax_return_value): Likewise.
4563 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4564 * xtensa-tdep.c (xtensa_return_value): Likewise.
4565 * gdbarch.c: Regenerate.
4566 * gdbarch.h: Regenerate.
4568 2012-05-15 Tom Tromey <tromey@redhat.com>
4570 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4572 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4574 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4575 of command in two error message.
4577 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4579 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4581 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4583 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4585 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4587 * NEWS (show auto-load scripts-directory): Add forgotten command.
4589 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4591 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4594 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4596 * amd64-tdep.c: Include features/i386/x32.c and
4597 features/i386/x32-avx.c.
4598 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4599 initialize_tdesc_x32_avx.
4601 2012-05-14 Stan Shebs <stan@codesourcery.com>
4604 * breakpoint.h (enum bptype): New type bp_dprintf.
4605 (struct breakpoint): New field extra_string.
4606 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4607 (create_breakpoint): Add extra_string arg.
4608 * breakpoint.c (dprintf_breakpoint_ops): New.
4609 (is_breakpoint): Add bp_dprintf.
4610 (bpstat_what): Add dprintf case.
4611 (bptype_string): Ditto.
4612 (print_one_breakpoint_location): Ditto.
4613 (init_bp_location): Ditto.
4614 (bkpt_print_mention): Ditto.
4615 (dprintf_style_enums): New array.
4616 (dprintf_style): New global.
4617 (dprintf_function): New global.
4618 (dprintf_channel): New global.
4619 (update_dprintf_command_list): New function.
4620 (update_dprintf_commands): New function.
4621 (init_breakpoint_sal): Add extra_string argument, handle it.
4622 (create_breakpoint_sal): Add extra_string argument.
4623 (create_breakpoints_sal): Add extra_string argument, update callers.
4624 (find_condition_and_thread): Add extra argument.
4625 (create_breakpoint): Add extra_string argument, record it.
4626 (dprintf_command): New function.
4627 (break_command_1): Add arg to create_breakpoint call.
4628 (handle_gnu_v3_exceptions): Ditto.
4629 (trace_command): Ditto.
4630 (ftrace_command): Ditto.
4631 (strace_command): Ditto.
4632 (bkpt_print_mention): Add dprintf case.
4633 (create_breakpoint_sal_default): Add extra_string argument.
4634 (_initialize_breakpoint): Add new commands.
4635 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4636 * python/py-breakpoint.c (bppy_init): Ditto.
4637 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4639 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4641 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4643 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4645 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4648 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4650 Add a new function gdb.find_pc_line to the Python API.
4651 * NEWS (Python Scripting): Add entry about the new function.
4652 * python/python.c (gdbpy_find_pc_line): New function which
4653 implements gdb.find_pc_line.
4654 (GdbMethods): Add entry for the new function.
4656 2012-05-12 Pedro Alves <palves@redhat.com>
4658 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4659 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4661 2012-05-12 Eli Zaretskii <eliz@gnu.org>
4663 * inferior.c: Include completer.h
4664 (initialize_inferiors): Set completer of add-inferior to
4667 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4669 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4670 gdbarch_ptr_bit for x32 core dump.
4672 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4674 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4675 and features/i386/x32-avx-linux.c.
4677 2012-05-11 Stan Shebs <stan@codesourcery.com>
4678 Kwok Cheung Yeung <kcy@codesourcery.com>
4680 * NEWS: Describe new info os commands.
4681 * common/linux-osdata.c (PID_T, TIME_T): Define.
4682 (MAX_PID_T_STRLEN): New.
4683 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4685 (command_from_pid): Add comment. Change to use PID_T.
4686 (commandline_from_pid): Change to use PID_T.
4687 (user_from_pid): Add comment.
4688 (get_process_owner): Add comment. Change to use PID_T and
4690 (get_number_of_cpu_cores): Add comment.
4691 (get_cores_used_by_process): Add comment. Change to use PID_T and
4693 (linux_xfer_osdata_processes): Change to use PID_T and
4695 (compare_processes): New function.
4696 (linux_xfer_osdata_processgroups): New function.
4697 (linux_xfer_osdata_threads): Change to use PID_T.
4698 (linux_xfer_osdata_fds): New function.
4699 (format_socket_state, print_sockets): New functions.
4700 (union socket_addr): New union.
4701 (linux_xfer_osdata_isockets): New function.
4702 (time_from_time_t, group_from_gid): New functions.
4703 (linux_xfer_osdata_shm): New function.
4704 (linux_xfer_osdata_sem): New function.
4705 (linux_xfer_osdata_msg): New function.
4706 (linux_xfer_osdata_modules): New function.
4707 (osdata_table): Add new entries.
4708 * common/buffer.c (buffer_xml_printf): Add support for long and
4709 long long format specifiers.
4711 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4713 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4714 (tdesc_x32_avx_linux): Likewise.
4716 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4718 Implement multi-component --with-auto-load-dir.
4719 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4721 (--with-auto-load-safe-path): Update the default value description.
4722 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4724 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4725 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4726 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4727 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4728 "set auto-load scripts-directory".
4729 * config.in: Regenerate.
4730 * configure: Regenerate.
4731 * configure.ac (--with-auto-load-dir): New configure option.
4732 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4734 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4736 Provide $ddir substitution for --with-auto-load-safe-path.
4737 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4739 * auto-load.c: Include observer.h.
4740 (auto_load_safe_path_vec_update): Call substitute_path_component for
4741 each component. New variable ddir_subst.
4742 (auto_load_gdb_datadir_changed): New function.
4743 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4744 AUTO_LOAD_SAFE_PATH. New comment.
4745 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4746 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4747 * config.in: Regenerate.
4748 * configure: Regenerate.
4749 * configure.ac (--auto-load-safe-path): Rename
4750 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4751 GDB_DATADIR/auto-load.
4752 * defs.h (substitute_path_component): New declaration.
4753 * top.c: Include observer.h.
4754 (set_gdb_datadir): New function.
4755 (init_main): Install it for "set data-directory".
4756 * utils.c (substitute_path_component): New function.
4758 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4760 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4761 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4762 DEBUG_FILE_DIRECTORY. Handle multiple components of
4763 DEBUG_FILE_DIRECTORY.
4765 2012-05-10 Tom Tromey <tromey@redhat.com>
4767 * dwarf2read.c (recursively_write_psymbols): New function.
4768 (write_psymtabs_to_index): Use it.
4770 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4772 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4773 (load_partial_comp_unit): Update.
4774 (queue_comp_unit): Add argument 'pretend_language'.
4775 (process_queue): Update.
4776 (psymtab_to_symtab_1): Skip dependencies that have a user.
4777 (load_partial_comp_unit_reader): Give meaning to the 'data'
4779 (load_full_comp_unit): Add 'pretend_language' argument.
4780 (process_full_comp_unit): Add 'pretend_language' argument. Set
4782 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4784 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4785 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4787 (prepare_one_comp_unit): Add 'pretend_language' argument.
4789 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4790 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4791 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4792 (dw2_do_instantiate_symtab): Check whether symtab was read in
4794 (dw2_instantiate_symtab): Add assertion. Call
4795 process_cu_includes.
4796 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4797 (partial_symtab_p): New typedef.
4798 (set_partial_user): New function.
4799 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4800 (scan_partial_symbols): Add imported CU to imported_symtabs.
4801 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4802 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4803 (get_symtab, recursively_compute_inclusions)
4804 (compute_symtab_includes, process_cu_includes)
4805 (process_imported_unit_die): New functions.
4806 (process_die) <DW_TAG_imported_unit>: New case.
4807 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4809 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4811 (struct partial_die_info) <locdesc>: Remove.
4813 (process_psymtab_comp_unit): Add 'read_partial' argument.
4815 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4816 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4817 (add_partial_symbol): Update.
4818 (process_die): Handle DW_TAG_partial_unit.
4819 (read_file_scope): Update comment.
4820 (load_partial_dies): Handle DW_TAG_imported_unit.
4821 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4822 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4824 2012-05-10 Tom Tromey <tromey@redhat.com>
4826 * cc-with-dwz.sh: New file.
4828 2012-05-10 Tom Tromey <tromey@redhat.com>
4830 * symtab.h (struct symtab) <includes, user>: New fields.
4831 * block.h (struct block_iterator) <d, idx, which>: New fields.
4832 * block.c (initialize_block_iterator, find_iterator_symtab)
4833 (block_iterator_step, block_iter_name_step)
4834 (block_iter_match_step): New functions.
4835 (block_iterator_first, block_iterator_next)
4836 (block_iter_name_first, block_iter_name_next)
4837 (block_iter_match_first, block_iter_match_next): Rewrite.
4838 (get_block_symtab): New function.
4840 2012-05-10 Tom Tromey <tromey@redhat.com>
4842 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4844 * jit.c (finalize_symtab): Use allocate_global_block,
4846 * buildsym.c (finish_block_internal): New function, from old
4848 (finish_block): Rewrite.
4849 (end_symtab): Use finish_block_internal, set_block_symtab.
4850 * block.h (struct global_block): New.
4851 (allocate_global_block, set_block_symtab): Declare.
4852 * block.c (allocate_global_block, set_block_symtab): New
4855 2012-05-10 Tom Tromey <tromey@redhat.com>
4857 * psymtab.c (partial_map_expand_apply): Add assertion.
4858 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4859 (psymtab_to_symtab): Find unshared psymtab.
4860 (dump_psymtab): Print including psymtabs.
4861 (recursively_search_psymtabs): New function.
4862 (expand_symtabs_matching_via_partial): Use it.
4863 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4865 (enum psymtab_search_status): New.
4867 2012-05-10 Tom Tromey <tromey@redhat.com>
4869 * tracepoint.c (scope_info): Update.
4870 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4871 (find_pc_sect_symtab, search_symbols)
4872 (default_make_symbol_completion_list_break_on)
4873 (make_file_symbol_completion_list): Update.
4874 * symmisc.c (dump_symtab_1): Update.
4875 * stack.c (print_frame_args, iterate_over_block_locals)
4876 (print_frame_labels, iterate_over_block_arg_vars): Update.
4877 * python/py-block.c (block_object) <dict>: Remove.
4879 <iter>: Change type.
4880 (blpy_iter): Update.
4881 (blpy_block_syms_iternext): Update.
4882 * psymtab.c (map_block): Use block iterators.
4883 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4884 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4885 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4886 * infrun.c (check_exception_resume): Update.
4887 * cp-support.c (make_symbol_overload_list_block): Update.
4888 * coffread.c (patch_opaque_types): Update.
4889 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4890 * block.h (struct block_iterator): New.
4891 (block_iterator_first, block_iterator_next, block_iter_name_first)
4892 (block_iter_name_next, block_iter_match_first)
4893 (block_iter_match_next): Declare.
4894 (ALL_BLOCK_SYMBOLS): Redefine.
4895 * block.c (block_iterator_first, block_iterator_next)
4896 (block_iter_name_first, block_iter_name_next)
4897 (block_iter_match_first, block_iter_match_next): New functions.
4898 * ada-lang.c (ada_add_block_symbols)
4899 (ada_make_symbol_completion_list): Use block iterator.
4901 2012-05-10 Tom Tromey <tromey@redhat.com>
4903 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4904 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4905 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4906 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4907 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4910 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4912 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4913 print-file-var-lib2.c, print-file-var-main.c and
4914 print-file-var.exp (located in gdb/testsuite/gdb.base).
4916 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4918 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4919 try locating the symbol in the symbol's own objfile first, before
4920 extending the search to all objfiles.
4921 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4922 out of lookup_symbol_aux_symtabs.
4923 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4924 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4925 Do not search EXCLUDE_OBJFILE.
4926 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4927 (lookup_symbol_global): Search for matches in the block's objfile
4928 first, before searching all other objfiles.
4930 2012-05-10 Tristan Gingold <gingold@adacore.com>
4932 * printcmd.c (set_command): Add pre/post inc/dec.
4934 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
4936 * gdb.1: Document -ex option.
4938 2012-05-09 Joel Brobecker <brobecker@adacore.com>
4940 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
4941 * inferior.h (AT_SYMBOL): Delete.
4943 2012-05-09 Joel Brobecker <brobecker@adacore.com>
4945 * mips-tdep.c (mips_push_dummy_code): New function.
4946 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
4947 ON_STACK and install mips_push_dummy_code as our gdbarch
4948 push_dummy_code routine.
4950 2012-05-09 Pedro Alves <palves@redhat.com>
4952 * target.c (set_maintenance_target_async_permitted): Rename to ...
4953 (set_target_async_command): ... this.
4954 (show_maintenance_target_async_permitted): Rename to ...
4955 (show_target_async_command): ... this.
4956 (initialize_targets): Adjust.
4958 2012-05-08 Doug Evans <dje@google.com>
4960 * go-exp.y (classify_name): Add missing assignment of fields of
4963 2012-05-08 Eli Zaretskii <eliz@gnu.org>
4965 Display the ">" prompt in interactive mode while reading canned
4966 commands, even when the current interpreter is MI.
4968 * interps.c (interp_set_temp): New function.
4970 * interps.h (interp_set_temp): Add prototype.
4972 * cli/cli-script.c (restore_interp): New cleanup function.
4973 (read_command_lines): Temporarily override the current interpreter
4974 with CLI and arrange for restoring the original one.
4976 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
4978 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
4980 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4982 * probe.c (parse_probes): Move conditional to check for
4983 debuginfo files from here...
4984 * stap-probe.c (stap_get_probes): ... to here.
4986 2012-05-07 Mark Kettenis <kettenis@gnu.org>
4987 H.J. Lu <hongjiu.lu@intel.com>
4989 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
4990 `movl %esp, %ebp' for the X32 ABI.
4992 2012-05-07 Tom Tromey <tromey@redhat.com>
4994 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
4996 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
4997 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
4998 (dwarf_stack_op_name): Remove.
4999 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5000 (decode_locdesc): Use get_DW_OP_name.
5001 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5002 (dwarf2_compile_expr_to_ax): Likewise.
5003 (disassemble_dwarf_expression): Likewise.
5004 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5006 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5008 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5009 (sh_linux_sigtramp_cache): New function.
5010 (sh_linux_sigreturn_init): New function.
5011 (sh_linux_rt_sigreturn_init): New function.
5012 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5014 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5016 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5017 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5018 (sh_linux_init_abi): Add init calls to register new tramp_frame
5019 definitions under 32-bit SH, update comments.
5021 2012-05-07 Pedro Alves <palves@redhat.com>
5025 * amd64-linux-tdep.c: Include glibc-tdep.h.
5026 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5027 gdbarch_skip_solib_resolver callback.
5029 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5031 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5032 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5033 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5034 (add_auto_load_safe_path): Change the error message.
5035 (_initialize_auto_load): Change the "safe-path" help text.
5036 * configure: Regenerate
5037 * configure.ac (--without-auto-load-safe-path): Set
5038 WITH_AUTO_LOAD_SAFE_PATH to /.
5040 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5042 * stap-probe.h: Do not include unecessary `probe.h'.
5044 2012-05-05 Alan Modra <amodra@gmail.com>
5046 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5047 bfd_und_section_ptr.
5048 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5049 and bfd_com_section_ptr.
5051 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5053 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5055 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5057 * windows-nat.h (segment_register_p_ftype): New typedef.
5058 (windows_set_segment_register_p): Add declaration.
5059 * windows-nat.c (segment_register_p): New static global.
5060 (windows_set_segment_register_p): New function.
5061 (do_windows_fetch_inferior_registers): Add special handling
5062 for segment registers.
5063 * amd64-windows-nat.c: #include "amd64-tdep.h".
5064 (amd64_windows_segment_register_p): New function.
5065 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5066 * i386-windows-nat.c: #include "i386-tdep.h".
5067 (i386_windows_segment_register_p): New function.
5068 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5070 2012-05-04 Tristan Gingold <gingold@adacore.com>
5072 * printcmd.c (set_command): Emit a warning if the expression is not
5075 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5077 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5080 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5082 * stap-probe.c (stap_is_operator): Change declaration.
5083 (stap_get_opcode): Change return value.
5084 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5085 `stap_parse_argument_1'.
5087 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5089 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5092 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5094 Add two new methods global_block and static_block to gdb.Symtab
5096 * NEWS (Python scripting): Add entry about the new methods.
5097 * python/py-symtab.c (stpy_global_block): New function which
5098 implements the gdb.Symtab.global_block() method.
5099 (stpy_static_block): New function which implements the
5100 gdb.Symtab.static_block() method.
5101 (symtab_object_methods): Add entries for the two new methods.
5103 2012-05-03 Doug Evans <dje@google.com>
5105 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5108 2012-05-03 Yao Qi <yao@codesourcery.com>
5110 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5112 (i386_process_record): Ditto.
5114 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5116 * infcall.c (unwind_on_signal_p): Make static.
5118 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5120 * sol-thread.c (solaris_pid_to_str): Make static.
5121 (_initialize_sol_thread): Add prototype.
5123 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5125 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5127 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5129 * MAINTAINERS: Remove myself.
5131 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5133 Fix --without-auto-load-safe-path for MS-Windows host platform.
5134 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5136 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5138 * gdb_curses.h: Undefine KEY_EVENT before including curses
5139 headers. Move "#undef MOUSE_MOVED" before any curses header
5142 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5144 * features/i386/i386-mmx-linux.c: Regenerate.
5145 * features/rs6000/powerpc-32.c: Likewise.
5146 * features/rs6000/powerpc-32l.c: Likewise.
5147 * features/rs6000/powerpc-403.c: Likewise.
5148 * features/rs6000/powerpc-403gc.c: Likewise.
5149 * features/rs6000/powerpc-405.c: Likewise.
5150 * features/rs6000/powerpc-505.c: Likewise.
5151 * features/rs6000/powerpc-601.c: Likewise.
5152 * features/rs6000/powerpc-602.c: Likewise.
5153 * features/rs6000/powerpc-603.c: Likewise.
5154 * features/rs6000/powerpc-604.c: Likewise.
5155 * features/rs6000/powerpc-64.c: Likewise.
5156 * features/rs6000/powerpc-64l.c: Likewise.
5157 * features/rs6000/powerpc-750.c: Likewise.
5158 * features/rs6000/powerpc-860.c: Likewise.
5159 * features/rs6000/powerpc-e500.c: Likewise.
5160 * features/rs6000/powerpc-e500l.c: Likewise.
5161 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5162 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5163 * features/rs6000/rs6000.c: Likewise.
5165 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5167 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5169 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5170 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5171 (stap_parse_argument) <e>: Likewise.
5172 (handle_stap_probe) <byte_order>: Likewise.
5174 2012-04-30 Doug Evans <dje@google.com>
5176 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5177 init_and_read_dies_worker. All callers updated.
5178 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5179 replaced with init_cutu_and_read_dies.
5180 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5181 (find_partial_die): Remove FIXME. Don't free current CU.
5183 2012-04-30 Sterling Augustine <saugustine@google.com>
5185 * contrib: New directory.
5186 * contrib/test_pubnames_and_indexes.py: New file.
5188 2012-04-30 Doug Evans <dje@google.com>
5190 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5191 All callers updated.
5192 (init_cu_die_reader): Verify the section is non-empty.
5193 (dwarf_decode_line_header): Don't dereference section->asection
5194 until we know the section is present.
5196 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5198 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5201 2012-04-29 Yao Qi <yao@codesourcery.com>
5203 * gdb-code-style.el: New hook gdb-markup-hook
5204 and gdb-comment-hook.
5206 2012-04-28 Doug Evans <dje@google.com>
5208 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5209 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5211 * symfile.h (dwarf2_debug_sections): New member addr.
5212 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5213 (ctx_no_get_addr_index): New function.
5214 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5215 (ctx_no_get_addr_index): Declare.
5216 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5217 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5218 (dwarf_expr_ctx_funcs): Update.
5219 (needs_get_addr_index): New function.
5220 (needs_frame_ctx_funcs): Update.
5221 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5222 * dwarf2read.c: #include "gdbcore.h".
5223 (dwarf2_per_objfile): New members addr, dwo_files.
5224 (dwarf2_elf_names): Add entry for addr.
5225 (struct dwo_section_names): New type.
5226 (dwo_section_names): New static global.
5227 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5228 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5229 old debug_types_section member updated to use this.
5230 Rename member debug_types_section to info_or_types_section,
5232 (signatured_type): Rename member type_offset to type_offset_in_tu,
5233 all uses updated. New member type_offset_in_section.
5234 (struct dwo_sections): New type.
5235 (struct dwo_unit): New type.
5236 (struct dwo_file): New type.
5237 (die_reader_specs): New member dwo_file.
5238 (dwarf2_locate_sections): Watch for .debug_addr.
5239 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5240 (dwarf2_read_section): Get bfd of section from bfd's asection,
5242 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5243 (create_signatured_type_table_from_index): Initialize
5244 sig_type->info_or_types_section.
5245 (dw2_get_file_names): Statement lists for type units with DWO files
5246 live in the DWO file.
5247 (create_debug_types_hash_table): New function.
5248 (create_all_type_units): Rewrite.
5249 (init_cu_die_reader): New arg dwo_file, all callers updated.
5250 (init_and_read_dies_worker): Get section from
5251 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5252 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5253 continue reading the CU/TU from there.
5254 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5255 updated. Get section from this_cu->info_or_types_section.
5256 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5257 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5258 DW_FORM_GNU_str_index.
5259 (hash_dwo_file, eq_dwo_file): New functions.
5260 (allocate_dwo_file_hash_table): New function.
5261 (hash_dwo_unit, eq_dwo_unit): New functions.
5262 (allocate_dwo_unit_table): New function.
5263 (dwarf2_locate_dwo_sections): New function.
5264 (struct create_dwo_info_table_data): New type.
5265 (create_debug_info_hash_table_reader): New function.
5266 (create_debug_info_hash_table): New function.
5267 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5268 (lookup_dwo_file): New function.
5269 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5270 (free_dwo_file, free_dwo_file_cleanup): New functions.
5271 (free_dwo_file_from_slot, free_dwo_files): New functions.
5272 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5273 (dwarf2_record_block_ranges): Ditto.
5274 (read_partial_die): Ditto.
5275 (process_enumeration_scope): Update to use type_offset_in_section.
5276 (read_full_die_1): New function.
5277 (read_full_die): Rewrite.
5278 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5279 DW_FORM_GNU_str_index.
5280 (read_addr_index_1, read_addr_index): New functions.
5281 (read_addr_index_from_leb128): New function.
5282 (struct dwarf2_read_addr_index_data): New type.
5283 (dwarf2_read_addr_index_reader): New function.
5284 (dwarf2_read_addr_index): New function.
5285 (read_str_index): New function.
5286 (leb128_size): New function.
5287 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5288 If processing a type unit from a DWO file, get the line section
5290 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5291 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5292 DW_FORM_GNU_str_index.
5293 (lookup_die_type): Check whether section offset of type's die is
5294 known before looking it up. Remove assert. Condition can
5295 legimately happen for inter-cu type references.
5296 (dwarf_attr_name): Handle Fission attributes.
5297 (dwarf_form_name): Handle Fission forms.
5298 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5299 DW_FORM_GNU_str_index.
5300 (follow_die_sig): Update to use type_offset_in_section.
5301 (decode_locdesc): New case DW_OP_GNU_addr_index.
5302 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5303 DW_FORM_GNU_str_index.
5304 (cu_debug_loc_section): New function.
5305 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5306 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5307 Free DWO files if present.
5308 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5310 Refactor DIE reading.
5311 * dwarf2read.c (dwarf2_per_objfile): Replace members
5312 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5313 (die_reader_specs): New member "die_section". Temporarily make
5314 member "buffer" non-const, pending constifying all info_ptr uses.
5315 (die_reader_func_ftype): New typedef.
5316 (dw2_get_file_names_reader): New function.
5317 (dw2_get_file_names): Rewrite.
5318 (read_and_check_type_unit_head): Rename arg type_offset to
5320 (create_all_type_units): Improve debugging message.
5321 Improve dummy type unit check.
5322 (init_cu_die_reader): New arg "section". All callers updated.
5323 (init_and_read_dies_worker): New function.
5324 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5325 (init_cutu_and_read_dies_no_follow): New function.
5326 (init_cutu_and_read_dies_simple): New function.
5327 (process_psymtab_comp_unit_reader): New function.
5328 (process_psymtab_comp_unit): Delete args section,
5329 is_debug_types_section. Rewrite. All callers updated.
5330 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5331 All callers updated. Rewrite.
5332 (load_partial_comp_unit_reader): New function.
5333 (load_partial_comp_unit): Rewrite.
5334 (skip_children): New arg reader. Delete args buffer, cu.
5335 All callers updated.
5336 (skip_one_die): New arg reader. Delete args buffer, cu.
5337 All callers updated.
5338 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5339 All callers updated.
5340 (load_full_comp_unit_reader): New function.
5341 (load_full_comp_unit): Rewrite.
5342 (read_comp_unit): Delete.
5343 (read_die_and_children_1): Delete, contents moved ...
5344 (read_die_and_children): ... here.
5345 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5346 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5347 All callers updated.
5348 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5349 All callers updated.
5350 (find_partial_die): Rewrite load_all_dies support.
5351 (read_attribute_value): New arg reader. Delete args abfd, cu.
5352 All callers updated.
5353 (read_attribute): New arg reader. Delete args abfd, cu.
5354 All callers updated.
5355 (load_full_type_unit): Add assert.
5356 (read_signatured_type_reader): New function.
5357 (read_signatured_type): Rewrite.
5358 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5359 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5360 All callers updated. Set per_cu->cu = NULL after freeing it.
5361 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5362 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5363 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5364 (set_die_type): Update.
5365 (get_die_type_at_offset): Update.
5366 (read_file_scope): Call prepare_one_comp_unit.
5367 (read_type_unit_scope): Ditto.
5368 (prepare_one_comp_unit): Set producer if present.
5370 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5372 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5373 gettext function on `error'.
5375 2012-04-27 Doug Evans <dje@google.com>
5377 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5380 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5381 Tom Tromey <tromey@redhat.com>
5383 * breakpoint.c (struct breakpoint_objfile_data)
5384 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5385 <exception_probes>: New fields.
5386 (free_breakpoint_probes): New function.
5387 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5388 `_Unwind_DebugHook'.
5389 (create_exception_master_breakpoint): Likewise.
5390 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5391 * infrun.c: Including necessary header files for handling SystemTap
5393 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5394 via SystemTap probes.
5395 (check_exception_resume): Remove `func' argument. Handle exception
5396 unwinding breakpoint set via a SystemTap probe.
5397 (insert_exception_resume_from_probe): New function.
5399 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5400 Tom Tromey <tromey@redhat.com>
5401 Jan Kratochvil <jan.kratochvil@redhat.com>
5403 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5404 (COMMON_OBS): Likewise.
5405 (HFILES_NO_SRCDIR): Add `probe'.
5406 * NEWS: Mention support for static and SystemTap probes.
5407 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5408 SystemTap probes' arguments parser.
5409 * arm-linux-tdep.c: Including headers needed to perform the parsing
5410 of SystemTap probes' arguments.
5411 (arm_stap_is_single_operand): New function.
5412 (arm_stap_parse_special_token): Likewise.
5413 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5414 probes' arguments parser.
5415 * ax-gdb.c (require_rvalue): Removing static declaration.
5416 (gen_expr): Likewise.
5417 * ax-gdb.h (gen_expr): Declaring function.
5418 (require_rvalue): Likewise.
5419 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5420 (bkpt_probe_breakpoint_ops): New variable.
5421 (momentary_breakpoint_from_master): Set the `probe' value.
5422 (add_location_to_breakpoint): Likewise.
5423 (break_command_1): Using proper breakpoint_ops according to the
5424 argument passed by the user in the command line.
5425 (bkpt_probe_insert_location): New function.
5426 (bkpt_probe_remove_location): Likewise.
5427 (bkpt_probe_create_sals_from_address): Likewise.
5428 (bkpt_probe_decode_linespec): Likewise.
5429 (tracepoint_probe_create_sals_from_address): Likewise.
5430 (tracepoint_probe_decode_linespec): Likewise.
5431 (tracepoint_probe_breakpoint_ops): New variable.
5432 (trace_command): Using proper breakpoint_ops according to the
5433 argument passed by the user in the command line.
5434 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5435 static probes on breakpoints and tracepoints.
5436 * breakpoint.h (struct bp_location) <probe>: New field.
5437 * cli-utils.c (skip_spaces_const): New function.
5438 (extract_arg): Likewise.
5439 * cli-utils.h (skip_spaces_const): Likewise.
5440 (extract_arg): Likewise.
5441 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5442 * configure.ac: Append `stap-probe.o' to be generated when ELF
5444 * configure: Regenerate.
5445 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5446 * elfread.c: Include `probe.h' and `arch-utils.h'.
5447 (probe_key): New variable.
5448 (elf_get_probes): New function.
5449 (elf_get_probe_argument_count): Likewise.
5450 (elf_evaluate_probe_argument): Likewise.
5451 (elf_compile_to_ax): Likewise.
5452 (elf_symfile_relocate_probe): Likewise.
5453 (stap_probe_key_free): Likewise.
5454 (elf_probe_fns): New variable.
5455 (elf_sym_fns): Add `sym_probe_fns' value.
5456 (elf_sym_fns_lazy_psyms): Likewise.
5457 (elf_sym_fns_gdb_index): Likewise.
5458 (_initialize_elfread): Initialize objfile cache for static
5460 * gdb_vecs.h (struct probe): New forward declaration.
5461 (probe_p): New VEC declaration.
5462 * gdbarch.c: Regenerate.
5463 * gdbarch.h: Regenerate.
5464 * gdbarch.sh (stap_integer_prefix): New variable.
5465 (stap_integer_suffix): Likewise.
5466 (stap_register_prefix): Likewise.
5467 (stap_register_suffix): Likewise.
5468 (stap_register_indirection_prefix): Likewise.
5469 (stap_register_indirection_suffix): Likewise.
5470 (stap_gdb_register_prefix): Likewise.
5471 (stap_gdb_register_suffix): Likewise.
5472 (stap_is_single_operand): New function.
5473 (stap_parse_special_token): Likewise.
5474 (struct stap_parse_info): Forward declaration.
5475 * i386-tdep.c: Including headers needed to perform the parsing
5476 of SystemTap probes' arguments.
5477 (i386_stap_is_single_operand): New function.
5478 (i386_stap_parse_special_token): Likewise.
5479 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5480 probes' arguments parser.
5481 * i386-tdep.h (i386_stap_is_single_operand): New function.
5482 (i386_stap_parse_special_token): Likewise.
5483 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5484 * mipsread.c (ecoff_sym_fns): Likewise.
5485 * objfiles.c (objfile_relocate1): Support relocation for static
5487 * parse.c (prefixify_expression): Remove static declaration.
5488 (initialize_expout): Likewise.
5489 (reallocate_expout): Likewise.
5490 * parser-defs.h (initialize_expout): Declare function.
5491 (reallocate_expout): Likewise.
5492 (prefixify_expression): Likewise.
5493 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5494 of SystemTap probes' arguments.
5495 (ppc_stap_is_single_operand): New function.
5496 (ppc_stap_parse_special_token): Likewise.
5497 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5498 probes' arguments parser.
5499 * probe.c: New file, for generic statically defined probe support.
5500 * probe.h: Likewise.
5501 * s390-tdep.c: Including headers needed to perform the parsing of
5502 SystemTap probes' arguments.
5503 (s390_stap_is_single_operand): New function.
5504 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5505 probes' arguments parser.
5506 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5507 * stap-probe.c: New file, for SystemTap probe support.
5508 * stap-probe.h: Likewise.
5509 * symfile.h: Include `gdb_vecs.h'.
5510 (struct sym_probe_fns): New struct.
5511 (struct sym_fns) <sym_probe_fns>: New field.
5512 * symtab.c (init_sal): Initialize `probe' field.
5513 * symtab.h (struct probe): Forward declaration.
5514 (struct symtab_and_line) <probe>: New field.
5515 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5517 (stop_tracing): Likewise.
5518 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5520 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5521 Tom Tromey <tromey@redhat.com>
5523 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5524 and to compile agent expressions.
5525 * infrun.c (siginfo_make_value): New argument `ignore'.
5526 (siginfo_funcs): New struct.
5527 (_initialize_infrun): New argument when calling
5528 `create_internalvar_type_lazy'.
5529 * thread.c (thread_id_make_value): New argument `ignore'.
5530 (thread_funcs): New struct.
5531 (_initialize_thread): New argument when calling
5532 `create_internalvar_type_lazy'.
5533 * tracepoint.c (sdata_make_value): New argument `ignore'.
5534 (sdata_funcs): New struct.
5535 (_initialize_tracepoint): New argument when calling
5536 `create_internalvar_type_lazy'.
5537 * value.c (make_value): New struct.
5538 (create_internalvar_type_lazy): New argument `data'.
5539 (compile_internalvar_to_ax): New function.
5540 (value_of_internalvar): Properly handling `make_value' case.
5541 (clear_internalvar): Likewise.
5542 (show_convenience): Adding `TRY_CATCH' block.
5543 * value.h (internalvar_make_value): Delete, replace by...
5544 (struct internalvar_funcs): ... this.
5545 (create_internalvar_type_lazy) <fun>: Delete argument.
5546 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5547 (compile_internalvar_to_ax): New function.
5548 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5549 (tlb_funcs): New struct.
5550 (_initialize_windows_tdep): New argument when calling
5551 `create_internalvar_type_lazy'.
5553 2012-04-27 Mark Wielaard <mjw@redhat.com>
5555 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5556 see whether it is an address or a constant offset from DW_AT_low_pc.
5557 (dwarf2_record_block_ranges): Likewise.
5558 (read_partial_die): Likewise.
5560 2012-04-26 Mark Wielaard <mjw@redhat.com>
5562 * MAINTAINERS (Write After Approval): Add myself to the list.
5564 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5566 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5567 (proc_prettyprint_signal): Likewise.
5568 (proc_prettyprint_faultset): Likewise.
5569 (proc_prettyprint_fault): Likewise.
5570 (proc_prettyprint_actionset): Likewise.
5571 (proc_prettyprint_flags): Move to new proc-flags.c section.
5572 (proc_prettyfprint_flags): New prototype.
5573 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5574 (proc_syscall, proc_cursig): Likewise.
5575 (proc_set_kill_on_last_close): Likewise.
5576 (proc_unset_kill_on_last_close): Likewise.
5577 (proc_set_watchpoint): Make static.
5578 (proc_delete_dead_threads): Likewise.
5579 (procfs_set_watchpoint): Likewise.
5580 (_initialize_procfs): Add prototype.
5581 * proc-events.c: Include proc-utils.h.
5582 (init_syscall_table): Make static.
5583 * proc-api.c (_initialize_proc_api): Add prototype.
5584 * proc-flags.c: Include proc-utils.h.
5586 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5588 * configure.ac: Add AC_ARG_PROGRAM.
5589 * configure: Regenerate.
5591 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5593 Fix DW_AT_lower_bound defaults for DWARF-4+.
5594 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5595 high. New variable low_default_is_valid. Implement DWARF-4+
5596 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5597 no default by the DWARF standard.
5599 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5600 Maciej W. Rozycki <macro@codesourcery.com>
5602 * infrun.c (handle_inferior_event): Move the check for return
5603 trampolines ahead of the check for function trampolines.
5604 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5605 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5606 (mips_str_mips16_ret_stub): Likewise.
5607 (mips_str_call_fp_stub): Likewise.
5608 (mips_str_call_stub): Likewise.
5609 (mips_str_fn_stub): Likewise.
5610 (mips_str_pic): Likewise.
5611 (mips_in_frame_stub): New function.
5612 (mips_unwind_pc): Return the return address rather than the PC
5613 if the PC of an intermediate frame is inside a call thunk.
5614 (mips_is_stub_suffix): New function.
5615 (mips_is_stub_mode): Likewise.
5616 (mips_get_mips16_fn_stub_pc): Likewise.
5617 (mips_skip_mips16_trampoline_code): Update to handle all the
5618 currently generated stub types. Don't recurse into __fn_stub
5619 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5620 Use cooked register accesses.
5621 (mips_in_return_stub): Reintroduce function.
5622 (mips_skip_trampoline_code): Traverse trampolines recursively.
5623 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5625 2012-04-26 Joel Brobecker <brobecker@adacore.com>
5629 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5631 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5632 * features/arm-with-m-vfp-d16.xml: New file. Describes
5633 Cortex-M with VFPv4-sp-d16 FPU register layout.
5634 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5635 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5636 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5637 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5638 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5640 2012-04-25 Doug Evans <dje@google.com>
5642 * cli/cli-decode.c (print_doc_line): Use stream instead of
5645 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5647 * features/arm-with-iwmmxt.c: Regenerate.
5648 * features/arm-with-m-fpa-layout.c: Likewise.
5649 * features/arm-with-m.c: Likewise.
5650 * features/arm-with-neon.c: Likewise.
5651 * features/arm-with-vfpv2.c: Likewise.
5652 * features/arm-with-vfpv3.c: Likewise.
5653 * features/mips-dsp-linux.c: Likewise.
5654 * features/mips-linux.c: Likewise.
5655 * features/mips64-dsp-linux.c: Likewise.
5656 * features/mips64-linux.c: Likewise.
5657 * features/s390-linux32.c: Likewise.
5658 * features/s390-linux32v1.c: Likewise.
5659 * features/s390-linux32v2.c: Likewise.
5660 * features/s390-linux64.c: Likewise.
5661 * features/s390-linux64v1.c: Likewise.
5662 * features/s390-linux64v2.c: Likewise.
5663 * features/s390x-linux64.c: Likewise.
5664 * features/s390x-linux64v1.c: Likewise.
5665 * features/s390x-linux64v2.c: Likewise.
5666 * features/tic6x-c62x-linux.c: Likewise.
5667 * features/tic6x-c62x.c: Likewise.
5668 * features/tic6x-c64x-linux.c: Likewise.
5669 * features/tic6x-c64x.c: Likewise.
5670 * features/tic6x-c64xp-linux.c: Likewise.
5671 * features/tic6x-c64xp.c: Likewise.
5672 * target-descriptions.c: Only generate `field_type' and `type'
5673 variables when needed.
5675 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5677 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5679 2012-04-25 Doug Evans <dje@google.com>
5681 Initial pass at Go language support.
5683 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5685 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5686 (YYFILES): Add go-exp.c.
5687 (YYOBJ): Add go-exp.o.
5688 (local-maintainer-clean): Delete go-exp.c.
5689 * defs.h (enum language): Add language_go.
5690 * dwarf2read.c: #include "go-lang.h".
5691 (fixup_go_packaging): New function.
5692 (process_full_comp_unit): Call it when processing Go CUs.
5693 (dwarf2_physname): Add Go support.
5694 (read_file_scope): Handle missing language spec for GNU Go.
5695 (set_cu_language): Handle DW_LANG_Go.
5696 * go-exp.y: New file.
5697 * go-lang.h: New file.
5698 * go-lang.c: New file.
5699 * go-typeprint.c: New file.
5700 * go-valprint.c: New file.
5701 * symtab.c: #include "go-lang.h".
5702 (symbol_set_language): Handle language_go.
5703 (symbol_find_demangled_name, symbol_set_names): Ditto.
5704 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5706 2012-04-24 Jim Meyering <meyering@redhat.com>
5708 avoid a few strncpy-induced buffer overruns
5709 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5710 fname and psargs before trying to concatenate.
5711 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5712 "name" before applying strchr.
5714 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5716 * CONTRIBUTE: Use unified diff instead of context diff when
5719 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5721 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5722 code. Handle JR.HB correctly.
5724 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5727 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5728 with the other MIPS16 helpers.
5730 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5732 * observer.sh: Conditionally declare `args', thus cleaning up
5733 unused instances of this variable.
5735 2012-04-24 Yao Qi <yao@codesourcery.com>
5737 Revert this patch to allow breakpoint always-inserted
5739 2011-12-05 Pedro Alves <pedro@codesourcery.com>
5740 * breakpoint.c: Include record.h.
5741 (breakpoints_always_inserted_mode): Return false when the record
5744 * breakpoint.c (iterate_over_bp_locations): New.
5745 * breakpoint.h: Declare.
5746 New typedef walk_bp_location_callback.
5747 * record.c (record_open): Call record_init_record_breakpoints.
5748 (record_sync_record_breakpoints): New.
5749 (record_init_record_breakpoints): New.
5750 * NEWS: Mention supporting breakpoint always-inserted mode in
5753 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5755 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5758 2012-04-24 Yao Qi <yao@codesourcery.com>
5760 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5761 (is_catchpoint): ... it.
5762 (print_one_breakpoint_location): Caller update.
5763 * breakpoint.h: Update declaration.
5765 2012-04-23 David S. Miller <davem@davemloft.net>
5767 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5769 2012-04-23 Tom Tromey <tromey@redhat.com>
5771 * buildsym.c (add_free_pendings): Remove.
5772 * buildsym.h (add_free_pendings): Remove.
5774 2012-04-23 Doug Evans <dje@google.com>
5776 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5777 attr.u.unsnd instead of attr.u.addr.
5778 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5779 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5781 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5782 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5784 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5786 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5788 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5789 (mips_o32_return_value): Likewise.
5790 (mips_o64_return_value): Likewise.
5792 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5794 * ada-lang.c (ada_evaluate_subexp): Add cases for
5795 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5796 their treatment in eval.c.
5798 2012-04-21 David S. Miller <davem@davemloft.net>
5800 * sparc-tdep.c (X_DISP10): Define.
5801 (sparc_analyze_control_transfer): Handle compare-and-branch.
5803 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5805 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5806 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5808 2012-04-20 Nigel Stephens <nigel@mips.com>
5809 Maciej W. Rozycki <macro@codesourcery.com>
5811 * mips-tdep.c (mips_float_register_p): New function.
5812 (mips_convert_register_float_case_p): Use mips_float_register_p.
5813 (mips_register_type): Likewise.
5814 (mips_print_register): Likewise.
5815 (print_gp_register_row): Likewise.
5816 (mips_print_registers_info): Likewise.
5818 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5820 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5823 2012-04-20 Andrew Pinski <apinski@cavium.com>
5825 * MAINTAINERS (Write After Approval): Add myself to the list.
5827 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5829 * MAINTAINERS: Update my e-mail address.
5831 2012-04-20 Pedro Alves <palves@redhat.com>
5833 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5835 * configure: Regenerate.
5837 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5839 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5841 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5843 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5845 Fix compilation compatibility with python-2.4
5846 * python/py-type.c (convert_field): Cast ADDRSTRING for
5847 PyObject_SetAttrString as non-const. New comment.
5849 2012-04-19 Tom Tromey <tromey@redhat.com>
5851 * top.c (quit_target): Use all_cleanups.
5852 * main.c (captured_command_loop): Use all_cleanups.
5853 * exceptions.c (throw_exception): Use all_cleanups.
5855 2012-04-19 Pedro Alves <palves@redhat.com>
5857 * Makefile.in (GNULIB_BUILDDIR): New.
5858 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5859 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5860 (CLEANDIRS). Remove gnulib/import.
5861 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5863 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5864 (gnulib/import/Makefile): Replace gnulib/import with
5865 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5866 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5867 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5868 acx_configure_dir.m4.
5869 * acinclude.m4: Include acx_configure_dir.m4.
5870 * acx_configure_dir.m4: New file.
5871 * aclocal.m4: Regenerate.
5872 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5873 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5874 (GNULIB): New variable.
5875 (GNULIB_STDINT_H): Adjust.
5876 (AC_OUTPUT): Don't output gnulib/Makefile.
5877 * gdb/defs.h: Include build-gnulib/config.h.
5878 * aclocal.m4: Regenerate.
5879 * config.in: Regenerate.
5880 * configure: Regenerate.
5882 * gnulib/Makefile.in: New file.
5883 * gnulib/configure.ac: New file.
5884 * gnulib/aclocal.m4: New file.
5885 * gnulib/config.in: New file.
5886 * gnulib/configure: New file.
5887 * gnulib/: Re-run gnulib-tool to adjust.
5889 2012-04-19 Doug Evans <dje@google.com>
5891 * cleanups.h (struct cleanup): Move to cleanups.c.
5892 (make_cleanup_dtor_ftype): New typedef.
5893 (make_cleanup_dtor): Use it.
5894 (ALL_CLEANUPS): Replace with ...
5895 (all_cleanups): ... this. Declare. All uses updated.
5896 * cleanups.c: #include "gdb_assert.h".
5897 (sentinel_cleanup): New static global.
5898 (SENTINEL_CLEANUP): Define.
5899 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5900 (make_my_cleanup2): Assert result is non-NULL.
5901 (all_cleanups): New function.
5902 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5905 2012-04-19 Pedro Alves <palves@redhat.com>
5907 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5908 Adjust paths to gnulib imported files.
5910 2012-04-19 Pedro Alves <palves@redhat.com>
5912 * gnulib/: Move whole directory ...
5913 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5914 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5915 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5916 (aclocal_m4_deps): Adjust.
5917 * aclocal.m4: Regenerate.
5918 * configure: Regenerate.
5919 * configure.ac: Adjust AC_OUTPUT output.
5921 2012-04-19 Yao Qi <yao@codesourcery.com>
5923 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5925 * vec.c: Move it ...
5926 * common/vec.c: ... here.
5927 * vec.h: Move it ...
5928 * common/vec.h: ... here.
5930 2012-04-19 Yao Qi <yao@codesourcery.com>
5932 * gdb-code-style.el: New.
5934 2012-04-18 Pedro Alves <palves@redhat.com>
5936 Update gnulib from latest git.
5937 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5939 * gnulib/Makefile.am: Update.
5940 * gnulib/dummy.c: Update.
5941 * gnulib/extra/arg-nonnull.h: Update.
5942 * gnulib/extra/c++defs.h: Update.
5943 * gnulib/extra/update-copyright: Update.
5944 * gnulib/extra/warn-on-use.h: Update.
5945 * gnulib/inttypes.in.h: Update.
5946 * gnulib/m4/00gnulib.m4: Update.
5947 * gnulib/m4/extensions.m4: Update.
5948 * gnulib/m4/gnulib-cache.m4: Update.
5949 * gnulib/m4/gnulib-common.m4: Update.
5950 * gnulib/m4/gnulib-comp.m4: Update.
5951 * gnulib/m4/gnulib-tool.m4: Update.
5952 * gnulib/m4/include_next.m4: Update.
5953 * gnulib/m4/inttypes-pri.m4: Update.
5954 * gnulib/m4/inttypes.m4: Update.
5955 * gnulib/m4/longlong.m4: Update.
5956 * gnulib/m4/memchr.m4: Update.
5957 * gnulib/m4/memmem.m4: Update.
5958 * gnulib/m4/mmap-anon.m4: Update.
5959 * gnulib/m4/multiarch.m4: Update.
5960 * gnulib/m4/onceonly.m4: Update.
5961 * gnulib/m4/stddef_h.m4: Update.
5962 * gnulib/m4/stdint.m4: Update.
5963 * gnulib/m4/string_h.m4: Update.
5964 * gnulib/m4/warn-on-use.m4: Update.
5965 * gnulib/m4/wchar_h.m4: Update.
5966 * gnulib/m4/wchar_t.m4: Update.
5967 * gnulib/m4/wint_t.m4: Update.
5968 * gnulib/memchr.c: Update.
5969 * gnulib/memmem.c: Update.
5970 * gnulib/stddef.in.h: Update.
5971 * gnulib/stdint.in.h: Update.
5972 * gnulib/str-two-way.h: Update.
5973 * gnulib/string.in.h: Update.
5974 * gnulib/wchar.in.h: Update.
5976 * gnulib/extra/arg-nonnull.h: Delete.
5977 * gnulib/extra/c++defs.h: Delete.
5978 * gnulib/extra/warn-on-use.h: Delete.
5979 * gnulib/m4/wchar_h.m4: Delete.
5980 * gnulib/m4/wint_t.m4: Delete.
5981 * gnulib/wchar.in.h: Delete.
5983 * gnulib/extra/snippets/arg-nonnull.h: New.
5984 * gnulib/extra/snippets/c++defs.h: New.
5985 * gnulib/extra/snippets/warn-on-use.h: New.
5987 * aclocal.m4: Regenerate.
5988 * config.in: Regenerate.
5989 * configure: Regenerate.
5990 * gnulib/Makefile.in: Regenerate.
5992 2012-04-18 Pedro Alves <palves@redhat.com>
5994 Reimport the update-copyright module from gnulib
5995 (250b80067c1e1d8faa0c42fb572f721975b929c5).
5997 * configure: Regenerate.
5998 * gnulib/Makefile.am: Update.
5999 * gnulib/Makefile.in: Regenerate.
6000 * gnulib/extra/update-copyright: Update.
6001 * gnulib/m4/gnulib-cache.m4: Update.
6002 * gnulib/m4/gnulib-comp.m4: Update.
6004 2012-04-18 Tristan Gingold <gingold@adacore.com>
6006 * configure.ac (aix): Put -lpthread into libs.
6007 * configure: Regenerate.
6009 2012-04-18 Tom Tromey <tromey@redhat.com>
6011 * linespec.c (convert_linespec_to_sals): Don't use
6013 (compare_msymbols): Arguments are minsym_and_objfile, not
6014 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6016 2012-04-18 Pedro Alves <palves@redhat.com>
6018 Revert gnulib/ part of:
6019 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6020 Copyright year update in most files (performed by copyright.sh).
6022 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6024 Fix 64-bit constants on 32-bit hosts.
6025 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6026 from unsigned long to ULONGEST.
6027 (read_signed_leb128): Change declaration return type from long to
6029 (dwarf2_const_value_attr): Change declaration parameter value from long
6031 (dwarf2_compute_name): Change variable value from long to LONGEST.
6032 (read_unsigned_leb128): Change return type, variable result and some
6033 casts from unsigned long to ULONGEST.
6034 (read_signed_leb128): Change return type, variable result and some
6035 casts from long to LONGEST.
6036 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6037 value from long to LONGEST.
6038 (dwarf2_const_value): Change variable value from long to LONGEST.
6039 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6040 plongest and hex_string.
6041 * symtab.h (struct general_symbol_info): Change ivalue from long to
6042 LONGEST, remove the comment.
6043 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6044 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6046 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6049 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6050 * ada-lang.c (ada_discrete_type_high_bound)
6051 (ada_discrete_type_low_bound): Fix function comment. Use
6052 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6053 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6054 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6055 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6056 Use TYPE_FIELD_ENUMVAL.
6057 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6058 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6059 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6060 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6062 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6063 * dwarf2read.c (process_enumeration_scope): Likewise.
6064 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6066 (class StructMainTypePrettyPrinter): Support also
6067 FIELD_LOC_KIND_ENUMVAL.
6068 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6070 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6071 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6072 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6073 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6075 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6076 accommodate enumval.
6077 (struct call_site): Adjust loc_kind to accommodate enumval.
6078 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6079 (TYPE_FIELD_ENUMVAL): New macros.
6080 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6081 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6083 * p-typeprint.c (pascal_type_print_base): Likewise.
6084 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6086 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6087 * python/py-type.c (convert_field): New variable addrstring. Use
6088 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6089 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6090 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6091 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6093 * valprint.c (generic_val_print): Likewise.
6095 2012-04-17 Doug Evans <dje@google.com>
6097 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6099 * dwarf2read.c: Whitespace fixes.
6100 (lookup_signatured_type): Tweak comment.
6101 (get_die_type_at_offset): Fix comment.
6103 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6105 * xcoffread.c (xcoff_secnum_to_sections): New function.
6106 (secnum_to_section, secnum_to_bfd_section): Reimplement
6107 using xcoff_secnum_to_sections. Rename "secnum" parameter
6109 (RECORD_MINIMAL_SYMBOL): Delete.
6110 (record_minimal_symbol): New function.
6111 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6112 by call to record_minimal_symbol and set misc_func_recorded
6113 to 1. Set last_csect_sec to the XCOFF section index instead
6114 of GDB's section_offset index. Update calls to
6115 prim_record_minimal_symbol_and_info to pass the BFD section
6118 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6120 * xcoffread.c (read_xcoff_symtab): Delete variables
6121 last_csect_val and last_csect_sec and associated code.
6123 2012-04-17 Doug Evans <dje@google.com>
6125 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6126 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6127 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6128 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6130 * cleanups.h: New file.
6131 * cleanups.c: New file.
6132 * Makefile.in (SFILES): Add cleanups.c.
6133 (HFILES_NO_SRCDIR): Add cleanups.h.
6134 (COMMON_OBS): Add cleanups.o.
6135 * defs.h (struct cleanup): Moved to cleanups.h.
6136 (do_cleanups,do_final_cleanups): Ditto.
6137 (discard_cleanups,discard_final_cleanups): Ditto
6138 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6139 (save_cleanups,save_final_cleanups): Ditto.
6140 (restore_cleanups,restore_final_cleanups): Ditto.
6141 (null_cleanup): Ditto.
6142 (make_my_cleanup,make_my_cleanup2): Ditto.
6143 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6144 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6145 (do_cleanups,do_final_cleanups): Ditto.
6146 (discard_cleanups,discard_final_cleanups): Ditto
6147 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6148 (save_cleanups,save_final_cleanups): Ditto.
6149 (restore_cleanups,restore_final_cleanups): Ditto.
6150 (null_cleanup): Ditto.
6151 (make_my_cleanup,make_my_cleanup2): Ditto.
6152 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6154 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6156 (make_cleanup_dyn_string_delete): Ditto.
6157 (make_cleanup_ui_file_delete): Ditto.
6158 (make_cleanup_ui_out_redirect_pop): Ditto.
6159 (make_cleanup_free_section_addr_info): Ditto.
6160 (make_cleanup_restore_integer): Ditto.
6161 (make_cleanup_unpush_target): Ditto.
6162 (make_cleanup_value_free_to_mark): Ditto.
6163 (make_cleanup_value_free): Ditto.
6164 (make_cleanup_free_so): Ditto.
6166 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6168 New option "set debug auto-load".
6169 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6170 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6171 (auto_load_safe_path_vec_update)
6172 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6174 (file_is_auto_load_safe): New parameters debug_fmt and ....
6175 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6176 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6177 caller by explanatory string.
6178 (_initialize_auto_load): Register "set debug auto-load".
6179 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6181 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6182 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6183 by explanatory string.
6184 * main.c (captured_main): Likewise.
6185 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6186 (source_section_scripts): Likewise.
6188 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6190 New option "set auto-load safe-path".
6191 * NEWS: New commands "set auto-load safe-path"
6192 and "show auto-load safe-path".
6193 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6194 (auto_load_safe_path, auto_load_safe_path_vec)
6195 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6196 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6197 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6198 (source_gdb_script_for_objfile): New variable is_safe. Call
6199 file_is_auto_load_safe. Return if it is not.
6200 (struct loaded_script): New field loaded.
6201 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6202 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6203 output "Missing" to "No".
6204 (_initialize_auto_load): New variable cmd. Initialize
6205 auto_load_safe_path. Register "set auto-load safe-path",
6206 "show auto-load safe-path" and "add-auto-load-safe-path".
6207 * auto-load.h (maybe_add_script): Add parameter loaded.
6208 (file_is_auto_load_safe): New declaration.
6209 * config.in: Regenerate.
6210 * configure: Regenerate.
6211 * configure.ac: New parameters --with-auto-load-safe-path
6212 and --without-auto-load-safe-path.
6213 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6214 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6215 * main.c (captured_main): Check file_is_auto_load_safe for
6217 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6218 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6219 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6222 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6224 auto-load: Implementation.
6225 * NEWS: New descriptions for "info auto-load",
6226 "info auto-load gdb-scripts", "info auto-load python-scripts",
6227 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6228 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6229 and "show auto-load-scripts". New description for "set auto-load",
6230 "show auto-load", "set auto-load gdb-scripts",
6231 "show auto-load gdb-scripts", "set auto-load python-scripts",
6232 "show auto-load python-scripts", "set auto-load local-gdbinit",
6233 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6234 "show auto-load libthread-db".
6235 * auto-load.c: Remove include python/python-internal.h. Add includes
6236 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6238 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6239 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6240 (gdbpy_global_auto_load): Rename to ...
6241 (global_auto_load): ... here.
6242 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6243 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6244 (script_language_gdb, source_gdb_script_for_objfile): New.
6245 (struct loaded_script): New field language.
6246 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6248 (maybe_add_script): Add parameter language. Drop redundant
6249 entry.full_path initialization. Initialize entry.language and
6251 (auto_load_objfile_script): Change parameter suffix to language.
6252 Remove the call of maybe_add_script.
6253 Call language->source_script_for_objfile.
6254 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6256 (collect_matching_scripts): Adjust it for
6257 struct collect_matching_scripts_data.
6258 (auto_load_info_scripts_pattern_nl): New variable.
6259 (info_auto_load_scripts): Rename to ...
6260 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6261 for struct collect_matching_scripts_data.
6262 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6263 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6264 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6265 (auto_load_info_cmdlist_get): New.
6266 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6267 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6268 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6269 "info auto-load local-gdbinit".
6270 * auto-load.h (struct script_language): New.
6271 (gdbpy_global_auto_load): Rename to ...
6272 (global_auto_load): ... here.
6273 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6274 (auto_load_local_gdbinit_loaded): New declarations.
6275 (maybe_add_script): New parameter language.
6276 (auto_load_objfile_script): Change parameter suffix to language.
6277 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6278 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6279 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6281 * linux-thread-db.c: Include auto-load.h and ctype.h.
6282 (auto_load_thread_db, show_auto_load_thread_db): New.
6283 (struct thread_db_info): New field filename.
6284 (delete_thread_db_info): Call xfree for FILENAME.
6285 (try_thread_db_load): Initialize FILENAME.
6286 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6287 if !AUTO_LOAD_THREAD_DB.
6288 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6289 (_initialize_thread_db): Install auto_load_thread_db
6290 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6291 as "info auto-load libthread-db".
6292 * main.c (captured_main): Rename gdbpy_global_auto_load to
6293 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6294 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6295 (print_gdb_help): Extend the help for 'local init file'.
6296 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6297 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6298 (auto_load_scripts): Rename to ...
6299 (auto_load_python_scripts): ... here, update the comment.
6300 (gdbpy_load_auto_script_for_objfile): New declaration.
6301 (show_auto_load_python_scripts, script_language_python)
6302 (gdbpy_load_auto_script_for_objfile): New.
6303 (source_section_scripts): Refactor the code.
6304 (load_auto_scripts_for_objfile): Rename to ...
6305 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6306 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6307 (info_auto_load_python_scripts): New.
6308 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6309 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6310 Register "set auto-load-scripts" as its deprecated alias. Register
6311 "info auto-load python-scripts". Register "info auto-load-scripts" as
6312 its deprecated alias.
6313 (load_auto_scripts_for_objfile): Rename to ...
6314 (gdbpy_load_auto_scripts_for_objfile): ... here.
6315 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6316 (gdbpy_load_auto_scripts_for_objfile): ... here.
6318 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6320 auto-load: Move files.
6321 * Makefile.in (SFILES): Add auto-load.c.
6322 (HFILES_NO_SRCDIR): Add auto-load.h.
6323 (COMMON_OBS): Add auto-load.o.
6324 (distclean): Change .gdbinit for gdb-gdb.gdb.
6325 * auto-load.c: New file, with parts from python/py-auto-load.c.
6326 * auto-load.h: New file, with parts from python/python.h.
6327 * configure: Regenerate.
6328 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6329 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6330 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6331 * main.c: Include auto-load.h.
6332 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6333 command.h, observer.h and progspace.h to auto-load.c. Add include
6335 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6336 (struct loaded_script, auto_load_pspace_data)
6337 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6338 (hash_loaded_script_entry, eq_loaded_script_entry)
6339 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6340 (maybe_add_script): Move to auto-load.c.
6341 (source_section_scripts): Change maybe_add_script parameters passing,
6342 use script_not_found_warning_print.
6343 (clear_section_scripts, auto_load_objfile_script)
6344 (auto_load_new_objfile, loaded_script_ptr)
6345 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6346 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6347 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6348 auto_load_new_objfile and info_auto_load_scripts initizations to
6350 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6352 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6355 * charset.c (find_charset_names): Remove variables ix and elt.
6356 Use free_char_ptr_vec.
6357 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6358 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6359 debugdir_end. New variable debugdir_len.
6360 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6361 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6363 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6364 and elt. Use free_char_ptr_vec.
6365 * source.c (add_path): Remove variables argv, arg and argv_index.
6366 New variables dir_vec, back_to, ix and name.
6367 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6368 make_cleanup_freeargv. Remove variable separator. Simplify the code
6369 no longer expecting DIRNAME_SEPARATOR.
6370 (openp): Remove variable p, p1 and len. New variables dir_vec,
6371 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6372 no longer expecting DIRNAME_SEPARATOR.
6373 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6374 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6376 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6377 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6378 (dirnames_to_char_ptr_vec): New functions.
6380 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6383 * source.c (add_path): Remove always true conditional 'p == 0' and
6384 unindent its code block.
6386 2012-04-17 Pedro Alves <palves@redhat.com>
6388 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6389 (FIELD_BITPOS_LVAL): ... this.
6390 (FIELD_BITPOS): New.
6391 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6392 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6393 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6395 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6397 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6398 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6399 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6402 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6404 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6405 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6406 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6407 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6408 * jv-lang.c (java_link_class_type): Likewise, once.
6409 * stabsread.c (read_enum_type): Likewise.
6411 2012-04-16 Yao Qi <yao@codesourcery.com>
6413 * common/agent.c (agent_run_command): Add one more parameter `len'.
6415 * common/agent.h: Update declaration.
6416 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6418 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6420 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6423 * value.c (value_actual_type): New function.
6424 * value.h (value_actual_type): New declaration.
6425 * varobj.c (update_type_if_necessary): New function.
6426 (varobj_create): Call value_actual_type instead of
6428 (install_dynamic_child): distinct changed and type changed MI variable
6430 (update_dynamic_varobj_children): Updated for install_dynamic_child
6431 change. All callers updated.
6432 (varobj_update): Support for MI variable object type change if
6433 the value changed and RTTI is used to determine the type.
6434 (create_child_with_value): Call value_actual_type instead of
6436 (adjust_value_for_child_access): Extended with a new parameter which
6437 specify whether the given value should be casted to enclosing type.
6438 All callers updated.
6440 2012-04-14 Yao Qi <yao@codesourcery.com>
6442 Import gnulib module inttypes from git
6443 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6444 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6445 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6446 gnulib/m4/inttypes-pri.m4
6447 * aclocal.m4, config.in, configure: Regenerated.
6448 * gnulib/Makefile.am: Update.
6449 * gnulib/Makefile.in: Update.
6450 * gnulib/m4/gnulib-cache.m4: Update.
6451 * gnulib/m4/gnulib-comp.m4: Update.
6452 * gnulib/inttypes.in.h: New.
6453 * gnulib/m4/inttypes-pri.m4: New.
6454 * gnulib/m4/inttypes.m4: New.
6456 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6458 * infrun.c (resume): Update PC address to the real PC after
6459 preparing to do displaced stepping.
6461 2012-04-12 Doug Evans <dje@google.com>
6463 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6464 All callers updated.
6466 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6468 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6470 2012-04-12 Doug Evans <dje@google.com>
6472 * dwarf2read.c (create_all_type_units): Renamed from
6473 create_debug_types_hash_table. All callers updated.
6475 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6476 local type_sig to sig_type, type_offset to type_offset_in_tu.
6477 (hash_signatured_type): Renamed from hash_type_signature,
6478 all callers updated.
6479 (eq_signatured_type): Renamed from eq_type_signature,
6480 all callers updated.
6481 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6482 (process_enumeration_scope): Ditto.
6483 (lookup_signatured_type_at_offset): Ditto.
6484 (load_full_type_unit, read_signatured_type): Ditto.
6486 2012-04-12 Yao Qi <yao@codesourcery.com>
6488 * remote.c (async_remote_interrupt): Correct function name in
6490 (async_remote_interrupt_twice): Ditto.
6492 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6494 * source.c (find_and_open_source): Consistently pass resulting
6495 full path through xfullpath.
6497 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6499 Provide more specific displaced-stepping memory error message.
6500 * infrun.c (displaced_step_prepare): New variable status. Call
6501 target_read_memory instead of read_memory, provide more specific
6504 2012-04-11 Tristan Gingold <gingold@adacore.com>
6507 * darwin-nat.c (darwin_execvp): Revert previous patch.
6509 2012-04-11 Tristan Gingold <gingold@adacore.com>
6512 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6515 2012-04-11 Tristan Gingold <gingold@adacore.com>
6517 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6520 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6522 New command 'explore' which helps explore values and types in
6524 * NEWS: Add an entry about the new 'explore' command.
6525 * data-directory/Makefile.in: Add gdb/command/explore.py
6526 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6527 command using the GDB Python API.
6529 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6531 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6532 extension in jump target calculation.
6534 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6536 * mips-tdep.c (mips32_next_pc): Handle JALX.
6538 2012-04-10 Yao Qi <yao@codesourcery.com>
6540 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6542 2012-04-10 Yao Qi <yao@codesourcery.com>
6544 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6545 and gnulib/m4/gnulib-tool.m4.
6547 2012-04-10 Doug Evans <dje@google.com>
6549 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6550 (load_partial_dies): Clarify comment.
6551 (find_partial_die): Support rereading type units.
6552 Clarify CU handling, if we know offset is in CU, don't search for the
6553 containing CU. Add comment regarding memory waste.
6555 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6557 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6558 i386/x32-avx and i386/x32-avx-linux.
6559 (i386/x32-expedite): New.
6560 (i386/x32-linux-expedite): Likewise.
6561 (i386/x32-avx-expedite): Likewise.
6562 (i386/x32-avx-linux-expedite): Likewise.
6563 ($(outdir)/i386/x32.dat): Likewise.
6564 ($(outdir)/i386/x32-linux.dat): Likewise.
6565 ($(outdir)/i386/x32-avx.dat): Likewise.
6566 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6568 * features/i386/x32-avx-linux.xml: New file.
6569 * features/i386/x32-avx.xml: Likewise.
6570 * features/i386/x32-core.xml: Likewise.
6571 * features/i386/x32-linux.xml: Likewise.
6572 * features/i386/x32.xml: Likewise.
6574 * features/i386/x32-avx-linux.c: New. Generated.
6575 * features/i386/x32-avx.c: Likewise.
6576 * features/i386/x32-linux.c: Likewise.
6577 * features/i386/x32.c: Likewise.
6578 * regformats/i386/x32-avx-linux.dat: Likewise.
6579 * regformats/i386/x32-avx.dat: Likewise.
6580 * regformats/i386/x32-linux.dat: Likewise.
6581 * regformats/i386/x32.dat: Likewise.
6583 2012-04-10 Tristan Gingold <gingold@adacore.com>
6585 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6586 code to kill the inferior.
6588 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6590 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6592 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6594 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6595 (yyvsp): New defines.
6596 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6598 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6600 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6602 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6604 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6607 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6609 * sparc64-tdep.c (sparc64_store_arguments)
6610 (sparc64_store_arguments): Fix coding style.
6612 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6614 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6615 complex floats, adjust some related comments and tighten a related
6617 (sparc64_extract_return_value): Handle complex floats.
6619 2012-04-07 Doug Evans <dje@google.com>
6621 * dwarf2read.c (load_partial_dies): Change condition to assert.
6623 2012-04-06 Doug Evans <dje@google.com>
6625 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6628 2012-04-05 Kevin Buettner <kevinb@redhat.com>
6630 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6632 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6633 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6636 2012-04-05 Keith Seitz <keiths@redhat.com>
6638 * linespec.c (decode_compound): Remove.
6639 (enum offset_relative_sign): New enum.
6640 (struct line_offset): New struct.
6641 (struct linespec): New struct.
6642 (struct linespec_state): Move file_symtabs,
6643 user_filename, and user_function into struct linespec.
6644 Make result an anonymous struct holding vectors of
6645 symbolp and minsym_and_objfile_d.
6646 Add language member.
6647 (enum ls_token_type): New enum.
6648 (linespec_keywords): New array.
6649 (struct ls_token): New struct.
6650 (struct ls_parser): New struct.
6651 (linespec_lexer_lex_number): New function.
6652 (linespec_lexer_lex_keyword): New function.
6653 (is_ada_operator): New function.
6654 (skip_quote_char): New function.
6655 (copy_token_string): New function.
6656 (is_closing_quote_enclosed): New function.
6657 (find_parameter_list_end): New function.
6658 (linespec_lexer_lex_string): New function.
6659 (linespec_lexer_lex_one): New function.
6660 (linespec_lexer_consume_token): New function.
6661 (linespec_lexer_peek_token): New function.
6662 (cplusplus_error): Remove unused function.
6663 (find_methods): Update comment.
6664 (find_toplevel_char): Return const.
6665 (is_objc_method_format): Remove unused function.
6666 (find_toplevel_string): New function.
6667 (is_linespec_boundary): Remove.
6668 (symbol_not_found_error): New function.
6669 (find_method_overload_end): Remove function.
6670 (unexpected_linespec_error): New function.
6671 (keep_name_info): Remove.
6672 (linespec_parse_line_offset): New function.
6673 (linespec_parse_basic): New function.
6674 (canonicalize_linespec): New function.
6675 (decode_line_internal): Remove.
6676 (create_sals_line_offset): New function adapted from
6678 (convert_linespec_to_sals): New function.
6679 (parse_linespec): New function.
6680 (linespec_parser_new): New function.
6681 (linespec_state_destructor): Change parameter type to
6682 struct linespec_state *.
6683 Add language parameter.
6684 Remove freeing of moved members.
6685 (linespec_parser_delete): New function.
6686 (decode_line_full): Use parse_linespec and linespec_parser_new.
6687 (decode_line_1): Likewise.
6688 (decode_indirect): Rename to ...
6689 (linespec_expression_to_pc): ... this and rewrite
6690 to simply find CORE_ADDR, storing this result for later
6692 (locate_first_half): Remove.
6693 (deocde_objc): Add parameter LS.
6694 Initialize new struct collect_info members.
6695 Handle minimal symbols, too.
6696 (decode_compound): Delete.
6697 (lookup_prefix_sym): Rewrite.
6698 (compare_msymbols): New function.
6699 (find_method): Rewrite.
6700 Do not call cplusplus_error.
6701 (symtabs_from_filename): Rewrite.
6702 (collect_function_symbols): Delete.
6703 (find_function_symbols): Rewrite without ARGPTR-style
6705 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6706 (decode_dollar): Adapted and renamed to ...
6707 (linespec_parse_variable): ... this.
6708 (find_linespec_symbols): New function.
6709 (decode_label): Adapted and renamed to ...
6710 (find_label_symbols): ... this.
6711 (decode_digits_list_mode): Add and use LS argument.
6712 (decode_digits_ordinary): Likewise.
6713 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6714 If in list mode, allow any symbol class. Otherwise, only
6715 permit LOC_BLOCK symbols.
6716 (minsym_found): Update comments.
6717 (search_minsyms_for_name): Do not convert the matching symbol
6718 into a SAL. Simply push the symbol and objfile into the
6720 (decode_variable): Delete. Contents adapted into
6721 find_linespec_symbols.
6723 * cp-support.c (SKIP_SPACE): Remove.
6724 (operator_tokens): Remove unused global.
6725 (cp_validate_operator): Remove.
6726 * cp-support.h (cp_validate_operator): Remove declaration.
6728 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6730 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6731 for TYPE_VPTR_FIELDNO.
6732 * valprint.c (valprint_check_validity): Make it global, move the
6733 function comment ...
6734 * value.h (valprint_check_validity): ... to this new declaration.
6736 2012-04-02 Tristan Gingold <gingold@adacore.com>
6738 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6739 the STATE32 api for i386 state.
6740 (i386_darwin_store_inferior_registers): Likewise.
6742 2012-04-02 Tristan Gingold <gingold@adacore.com>
6744 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6746 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6749 2012-04-02 Tristan Gingold <gingold@adacore.com>
6752 * darwin-nat.c (darwin_execvp): Set binary preference.
6754 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6756 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6758 2012-03-30 Tom Tromey <tromey@redhat.com>
6760 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6761 of TRY_CATCH. Fix error handling.
6762 * python/py-value.c (convert_value_from_python): Move 'old'
6763 declaration to innermost scope.
6765 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6766 Andrey Smirnov <andrew.smirnov@gmail.com>
6768 -Wshadow warning fix.
6769 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6770 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6771 Adjust code accordingly.
6773 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6775 * ada-lang.c (symbol_completion_add): Rename parameter
6776 "encoded" into "encoded_p". Ajust code and documentation
6779 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6780 Andrey Smirnov <andrew.smirnov@gmail.com>
6782 -Wshadow warning fix.
6783 * ada-lang.c (symbol_completion_add): Rename parameter
6784 "wild_match" into wild_match_p. Update code and documentation
6787 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6789 * ada-lang.c (symbol_completion_match): Rename parameter
6790 "encoded" into "encoded_p". Ajust code and documentation
6793 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6794 Andrey Smirnov <andrew.smirnov@gmail.com>
6796 -Wshadow warning fix.
6797 * ada-lang.c (symbol_completion_match): Rename parameter
6798 "wild_match" into "wild_match_p". Adjust code and function
6799 documentation accordingly.
6801 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6802 Andrey Smirnov <andrew.smirnov@gmail.com>
6804 -Wshadow warning fix.
6805 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6806 "symbol_info" into "info". Adjust code accordingly.
6807 (ada_lookup_symbol): Likewise.
6809 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6811 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6812 of this function's documentation.
6814 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6815 Andrey Smirnov <andrew.smirnov@gmail.com>
6817 -Wshadow warning fix.
6818 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6819 variable into "wild_match_p". Adjust code accordingly.
6821 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6822 Andrey Smirnov <andrew.smirnov@gmail.com>
6824 -Wshadow warning fix.
6825 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6826 parameter into "wild_match_p". Adjust code accordingly.
6827 Document this parameter in the function description.
6829 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6830 Andrey Smirnov <andrew.smirnov@gmail.com>
6832 -Wshadow warning fix.
6833 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6834 "wild_match" parameter to "wild_match_p" (-Wshadow).
6836 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6838 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6839 in function documentation.
6841 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6842 Andrey Smirnov <andrew.smirnov@gmail.com>
6844 -Wshadow warning fix.
6845 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6846 variable into wild_match_p. Adjust code accordingly.
6848 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6849 Andrey Smirnov <andrew.smirnov@gmail.com>
6851 * ada-valprint.c (ada_val_print_1): Move the code handling
6852 TYPE_CODE_ENUM inside its own lexical block. Declare
6853 variables len and val there, instead of in the function's
6854 top level block. Avoid declaring deref_val again in a way
6855 that shadows another variable of the same name declared
6856 in one of the up-level blocks. Just re-use the up-level
6859 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6861 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6862 Replace block_found argument by symbol_info. Adjust
6863 implementation accordingly. Add function documentation.
6864 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6866 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6867 * ada-exp.y (write_object_renaming): Adjust to new
6868 ada_lookup_encoded_symbol API.
6870 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6872 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6875 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
6877 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6878 (v850_register_name): Add the mpu and fpu register names.
6879 (v850e_register_name): Add the mpu and fpu register names.
6880 (v850e2_register_name): New function.
6881 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
6884 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6886 * NEWS: Add entry for Ada varobj support.
6888 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6890 * varobj.c (default_value_is_changeable_p): New function,
6891 extracted from varobj_value_is_changeable_p. Add declaration.
6892 (ada_value_is_changeable_p): New function, extracted from
6893 varobj_value_is_changeable_p. Add declaration.
6894 (struct language_specific): New field "value_is_changeable_p".
6895 (languages): Add entries for new field.
6896 (varobj_create): Set language before calling install_new_value.
6897 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6898 "value_is_changeable_p" language callback.
6900 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6902 * ada-varobj.h, ada-varobj.c: New files.
6903 * Makefile.in (SFILES): Add ada-varobj.c.
6904 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6905 (COMMON_OBS): Add ada-varobj.o.
6907 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6909 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6910 (struct language_specific): New field "value_has_mutated".
6911 (languages): Set field "value_has_mutated" in each entry of array.
6912 (varobj_value_has_mutated): New function.
6913 (varobj_udpdate): Add handling of type mutation.
6914 (value_of_root): Add handling of type mutation.
6915 (ada_value_has_mutated): New function.
6917 2012-03-28 Pedro Alves <palves@redhat.com>
6919 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6920 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6922 2012-03-28 Tom Tromey <tromey@redhat.com>
6924 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6925 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6928 2012-03-28 Tom Tromey <tromey@redhat.com>
6930 * .dir-locals.el: New file.
6932 2012-03-28 Pedro Alves <palves@redhat.com>
6934 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
6936 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6938 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
6941 2012-03-27 Pedro Alves <palves@redhat.com>
6943 Eliminate struct ui_stream.
6945 * ui-out.h (struct ui_stream): Delete.
6946 (ui_out_field_stream): Adjust prototype.
6947 (ui_out_stream_new, ui_out_stream_delete)
6948 (make_cleanup_ui_out_stream_delete): Delete declarations.
6949 * ui-out.c (ui_out_field_stream): Change prototype to take a
6950 ui_file instead of a ui_stream. Adjust.
6951 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
6952 (make_cleanup_ui_out_stream_delete): Delete.
6953 * breakpoint.c (print_breakpoint_location)
6954 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
6955 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6956 * disasm.c (dump_insns): Ditto.
6957 (do_mixed_source_and_assembly, do_assembly_only): Adjust
6959 (gdb_disassembly): Use ui_file/mem_fileopen instead of
6960 ui_stream/ui_out_stream_new.
6961 * infcmd.c (print_return_value): Ditto.
6962 * osdata.c (info_osdata_command): Don't allocate a local
6964 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
6965 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6966 * tracepoint.c (print_one_static_tracepoint_marker): Don't
6967 allocate a local ui_stream.
6968 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
6969 instead of ui_stream/ui_out_stream_new.
6970 (list_args_or_locals): Don't allocate a local ui_stream.
6971 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
6972 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
6973 ui_stream/ui_out_stream_new.
6974 * cli/cli-setshow.c (do_setshow_command): Ditto.
6976 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
6978 * arm-linux-tdep.c (arm_linux_init_abi): Call
6979 set_gdbarch_process_record. Initialize `arm_swi_record' field.
6980 * arm-tdep.c (arm_process_record): New function.
6981 (deallocate_reg_mem): New function.
6982 (decode_insn): New function.
6983 (thumb_record_branch): New function.
6984 (thumb_record_ldm_stm_swi(): New function.
6985 (thumb_record_misc): New function.
6986 (thumb_record_ld_st_stack): New function.
6987 (thumb_record_ld_st_imm_offset): New function.
6988 (thumb_record_ld_st_reg_offset(): New function.
6989 (thumb_record_add_sub_cmp_mov): New function.
6990 (thumb_record_shift_add_sub): New function.
6991 (arm_record_coproc_data_proc): New function.
6992 (arm_record_coproc): New function.
6993 (arm_record_b_bl): New function.
6994 (arm_record_ld_st_multiple): New function.
6995 (arm_record_ld_st_reg_offset): New function.
6996 (arm_record_ld_st_imm_offset): New function.
6997 (arm_record_data_proc_imm): New function.
6998 (arm_record_data_proc_misc_ld_str): New function.
6999 (arm_record_extension_space): New function.
7000 (arm_record_strx): New function.
7001 (sbo_sbz): New function.
7002 (struct insn_decode_record): New structure for arm insn record.
7003 (REG_ALLOC): New macro for reg allocations.
7004 (MEM_ALLOC): New macro for memory allocations.
7005 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7007 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7009 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7010 (store_register): Likewise.
7012 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7014 * MAINTAINERS (Write After Approval): Add myself to the list.
7016 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7018 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7019 Describe also the option "auto".
7021 2012-03-22 Richard Henderson <rth@redhat.com>
7023 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7024 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7026 2012-03-22 Richard Henderson <rth@redhat.com>
7028 * jit.c (jit_read_code_entry): Compute alignment and offset of
7029 int64_t member before computing entry_size.
7031 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7033 Python scripting: Add new method Value.referenced_value to
7034 gdb.Value which can dereference pointer as well as reference
7036 * NEWS: Add entry under 'Python scripting' about the new method
7037 Value.referenced_value on gdb.Value objects.
7038 * python/py-value.c (valpy_referenced_value): New function
7039 defining a new method on gdb.Value objects which can dereference
7040 pointer and reference values.
7042 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7044 * MAINTAINERS (Write After Approval): Add myself to the list.
7046 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7048 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7049 in addition to "main".
7051 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7053 * expression.h (op_name): Add declaration.
7054 * expprint.c (op_name): Remove declaration. Make non-static.
7055 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7057 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7059 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7061 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7062 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7063 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7064 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7065 (linux_nat_get_siginfo): Likewise.
7066 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7067 (linux_nat_get_siginfo): Likewise.
7068 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7069 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7070 * procfs.c (gdb_siginfo_t): Likewise.
7072 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7074 * .gitignore: Ignore more files.
7076 2012-03-20 Pedro Alves <palves@redhat.com>
7078 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7081 2012-03-20 Yao Qi <yao@codesourcery.com>
7083 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7086 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7088 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7089 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7090 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7092 * dwarf2expr.h (cu_offset, sect_offset): New types.
7093 (struct dwarf_expr_context_funcs) <dwarf_call>
7094 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7096 (struct dwarf_expr_context) <len>: Improve the comment.
7097 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7098 cu_offset and sect_offset.
7099 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7100 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7101 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7102 * dwarf2loc.h: Include dwarf2expr.h.
7103 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7105 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7106 Improve the comment.
7107 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7108 (struct signatured_type, struct line_header, struct partial_die_info)
7109 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7110 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7111 (get_die_type_at_offset, create_cus_from_index)
7112 (create_signatured_type_table_from_index, dw2_get_file_names)
7113 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7114 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7115 (create_debug_types_hash_table, process_psymtab_comp_unit)
7116 (load_partial_comp_unit, create_all_comp_units)
7117 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7118 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7119 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7120 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7121 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7122 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7123 (find_partial_die, read_attribute_value, lookup_die_type)
7124 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7125 (is_ref_attr): New function comment.
7126 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7127 Use cu_offset and sect_offset.
7128 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7129 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7130 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7131 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7132 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7133 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7134 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7137 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7140 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7141 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7143 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7145 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7147 * NEWS: Describe new options --init-command=FILE, -ix and
7148 --init-eval-command=COMMAND, -iex.
7149 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7150 CMDARG_INIT_COMMAND.
7151 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7152 "init-command", "init-eval-command", "ix" and "iex" to the variable
7153 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7154 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7155 (print_gdb_help): Describe --init-command=FILE, -ix and
7156 --init-eval-command=COMMAND, -iex.
7158 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7161 * main.c (struct cmdarg): Move it here from main. Add more comments.
7162 (cmdarg_s, VEC (cmdarg_s)): New.
7163 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7164 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7165 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7166 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7169 2012-03-19 Tom Tromey <tromey@redhat.com>
7171 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7173 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7176 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7179 2012-03-16 Chris January <chris.january@allinea.com>
7181 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7184 2012-03-16 Chris January <chris.january@allinea.com>
7186 * source.c (add_path): Use memmove instead of strcpy because the
7189 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7191 * value.h (set_value_parent): Add declaration.
7192 * value.c (set_value_parent): New function.
7193 (value_address): If VALUE->PARENT is not NULL, then use it as
7194 the base address instead of VALUE->LOCATION.address.
7195 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7196 the same as OBJ's address. Adjust V's offset accordingly.
7199 2012-03-16 Gary Benson <gbenson@redhat.com>
7201 PR breakpoints/10738
7202 * dwarf2read.c (use_deprecated_index_sections): New global.
7203 (struct partial_die_info): New member may_be_inlined.
7204 (read_partial_die): Set may_be_inlined where appropriate.
7205 (add_partial_subprogram): Add partial symbols for partial
7206 DIEs that may be inlined.
7207 (new_symbol_full): Add inlined subroutines to the current
7209 (write_psymtabs_to_index): Bump version number.
7210 (dwarf2_read_index): Read only version 6 indices unless
7211 use_deprecated_index_sections is set.
7212 * linespec.c (symbol_and_data_callback): New structure.
7213 (iterate_inline_only): New function.
7214 (iterate_over_all_matching_symtabs): New argument
7215 "include_inline". If nonzero, also call the callback for
7216 symbols representing inlined subroutines.
7217 (lookup_prefix_sym): Pass extra argument to the above.
7218 (find_function_symbols): Likewise.
7219 (add_matching_symbols_to_info): Likewise.
7220 * NEWS: Mention that GDB can now set breakpoints on inlined
7223 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7225 * p-typeprint.c (pascal_type_print_method_args):
7226 Fix display of parameter of methods.
7228 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7230 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7231 Add missing prototype.
7233 2012-03-16 Yao Qi <yao@codesourcery.com>
7234 Jan Kratochvil <jan.kratochvil@redhat.com>
7236 Fix false compilation warning.
7237 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7239 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7240 Pedro Alves <pedro@codesourcery.com>
7242 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7243 (arm_register_g_packet_guesses): New function.
7244 (arm_gdbarch_init): Don't force a target description with
7245 registers when the executable is detected as M-profile. Instead
7246 set gdbarch->tdep->is_m. Register `g' packet guesses.
7247 (_initialize_arm_tdep): Initialize the new target description.
7248 * features/arm-with-m-fpa-layout.xml: New description.
7249 * features/arm-with-m-fpa-layout.c: New, generated.
7251 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7253 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7254 Update function description.
7255 (insert_bp_location): Do not wipe bl->target_info out.
7256 * mem-break.c: #include "gdb_string.h".
7257 (default_memory_insert_breakpoint): Do not call target_read_memory
7258 with a pointer to the breakpoint's shadow_contents buffer. Use
7259 a local buffer instead.
7260 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7262 2012-03-15 Tom Tromey <tromey@redhat.com>
7264 * NEWS: Mention "info vtbl", not "info vtable".
7265 * cp-support.c (info_vtbl_command): Fix comment.
7266 (_initialize_cp_support): Fix text.
7268 2012-03-15 Tom Tromey <tromey@redhat.com>
7270 * cp-valprint.c (cp_print_value_fields): Use
7271 print_function_pointer_address for vtable slot.
7273 2012-03-15 Tom Tromey <tromey@redhat.com>
7275 * gnu-v3-abi.c (struct value_and_voffset): New.
7276 (hash_value_and_voffset, eq_value_and_voffset)
7277 (compare_value_and_voffset, compute_vtable_size)
7278 (print_one_vtable, gnuv3_print_vtable): New functions.
7279 (init_gnuv3_ops): Initialize 'print_vtable' field.
7280 * cp-support.c (info_vtbl_command): New function.
7281 (_initialize_cp_support): Add "info vtbl".
7282 * cp-abi.h (cplus_print_vtable): Declare.
7283 (struct cp_abi_ops) <print_vtable>: New field.
7284 * cp-abi.c (cplus_print_vtable): New function.
7287 2012-03-15 Tom Tromey <tromey@redhat.com>
7289 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7290 iterate_over_symbols.
7292 2012-03-14 Doug Evans <dje@google.com>
7294 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7295 DW_OP_GNU_parameter_ref.
7297 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7299 Fix double prompt of 'interpreter-exec mi'.
7300 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7301 (mi_interpreter_resume): use it.
7302 (mi_execute_command_input_handler): New function.
7303 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7304 mi_execute_command_input_handler.
7306 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7308 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7310 (darwin_debug_port_info): Make static.
7311 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7312 * machoread.c (_initialize_machoread): Add prototype.
7313 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7314 (i386_darwin_set_control, i386_darwin_get_control)
7315 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7316 i386_darwin_get_status, i386_darwin_get_control):
7317 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7319 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7321 * ax-gdb.c (gen_usual_unary): Remove special handling of
7322 enum and bool types.
7324 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7326 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7328 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7330 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7332 2012-03-13 Chris January <chris.january@allinea.com>
7334 * aix-thread.c (fill_sprs): Store the floating point registers
7335 at the correct offsets into vals.
7337 2012-03-13 Doug Evans <dje@google.com>
7339 * NEWS: Mention symbol-reloading has been deleted.
7340 * symfile.c (symbol_reloading): Delete.
7341 (show_symbol_reloading): Delete.
7342 (_initialize_symfile): Delete set/show symbol-reloading.
7344 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7345 read_in_chain until we have successfully read it in.
7346 (load_full_comp_unit): Ditto.
7347 (read_signatured_type): Add comment.
7349 2012-03-13 Chris January <chris.january@allinea.com>
7351 * stabsread.c (fix_common_block): Change type of valu argument
7354 2012-03-13 Chris January <chris.january@allinea.com>
7356 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7359 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7361 * common/linux-procfs.c (linux_proc_get_int): New, from
7362 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7364 (linux_proc_get_tgid): Only call linux_proc_get_int.
7365 (linux_proc_get_tracerpid): New.
7366 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7367 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7368 linux_proc_pid_has_state.
7369 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7370 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7371 (linux_ptrace_attach_warnings): New.
7372 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7374 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7375 (linux_nat_attach): New variables ex, buffer, message and message_s.
7376 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7378 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7380 * Makefile.in (linux-ptrace.o): New.
7381 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7383 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7384 * common/linux-ptrace.c: New file.
7385 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7386 * config/arm/linux.mh: Likewise.
7387 * config/i386/linux.mh: Likewise.
7388 * config/i386/linux64.mh: Likewise.
7389 * config/ia64/linux.mh: Likewise.
7390 * config/m32r/linux.mh: Likewise.
7391 * config/m68k/linux.mh: Likewise.
7392 * config/mips/linux.mh: Likewise.
7393 * config/pa/linux.mh: Likewise.
7394 * config/powerpc/linux.mh: Likewise.
7395 * config/powerpc/ppc64-linux.mh: Likewise.
7396 * config/powerpc/spu-linux.mh: Likewise.
7397 * config/s390/s390.mh: Likewise.
7398 * config/sparc/linux.mh: Likewise.
7399 * config/sparc/linux64.mh: Likewise.
7400 * config/xtensa/linux.mh: Likewise.
7401 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7402 common/linux-procfs.c.
7403 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7405 2012-03-13 Hui Zhu <teawater@gmail.com>
7406 Pedro Alves <palves@redhat.com>
7408 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7409 CREATE_BREAKPOINT_FLAGS_INSERTED.
7410 (create_breakpoint_sal, create_breakpoints_sal)
7411 (base_breakpoint_create_breakpoints_sal)
7412 (tracepoint_create_breakpoints_sal)
7413 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7415 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7416 (ftrace_command, strace_command): Adjust.
7417 (create_tracepoint_from_upload): Pass
7418 CREATE_BREAKPOINT_FLAGS_INSERTED.
7419 * breakpoint.h (enum breakpoint_create_flags): New.
7420 (create_breakpoint): New flags parameter.
7421 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7422 * python/py-breakpoint.c (bppy_init): Adjust.
7423 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7424 * spu-tdep.c (spu_catch_start): Adjust.
7426 2012-03-13 Pedro Alves <palves@redhat.com>
7427 Hui Zhu <teawater@gmail.com>
7428 Yao Qi <yao@codesourcery.com>
7430 * remote.c (struct remote_state): New field `starting_up'.
7431 (remote_start_remote): Set and clear it.
7432 (remote_can_download_tracepoint): If starting up, return false.
7434 2012-03-13 Yao Qi <yao@codesourcery.com>
7436 * inferior.h (struct inferior): Remove fields any_syscall_count,
7437 syscalls_counts and total_syscalls_count. Move them to new
7438 struct catch_syscall_inferior_data in breakpoint.c.
7439 * breakpoint.c: Call DEF_VEC_I(int).
7440 (struct catch_syscall_inferior_data): New.
7441 (get_catch_syscall_inferior_data): New.
7442 (catch_syscall_inferior_data_cleanup): New.
7443 (insert_catch_syscall): Update to access data in
7444 struct catch_syscall_inferior_data.
7445 (insert_catch_syscall): Likewise.
7446 (remove_catch_syscall): Likewise.
7447 (remove_catch_syscall): Likewise.
7448 (is_syscall_catchpoint_enabled): Likewise.
7449 (add_catch_command): Likewise.
7450 (_initialize_breakpoint): Register cleanup.
7451 * breakpoint.h: Removed DEF_VEC_I(int).
7452 * dwarf2loc.c: Call DEF_VEC_I(int).
7453 * mi/mi-main.c: Likewise.
7455 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7457 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7459 2012-03-12 Chris January <chris.january@allinea.com>
7461 * aix-thread.c (_initialize_aix_thread): Add prototype.
7462 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7463 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7465 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7467 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7468 include of "amd64-nat.h".
7470 2012-03-12 Tom Tromey <tromey@redhat.com>
7472 * buildsym.c (record_pending_block): Now static.
7473 * buildsym.h: (record_pending_block): Remove.
7475 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7477 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7479 2012-03-09 Tom Tromey <tromey@redhat.com>
7481 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7482 producer_is_gxx_lt_4_6>: New fields.
7483 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7485 2012-03-09 Tom Tromey <tromey@redhat.com>
7487 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7489 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7491 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7494 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7496 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7498 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7500 Fix -Wmissing-prototypes build.
7501 * arm-linux-nat.c (get_thread_id): Make it static.
7502 * xtensa-linux-nat.c (get_thread_id): Likewise.
7504 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7506 * server.c (process_point_options): If a conditional expression
7507 is found, only print a message if remote_debug is nonzero.
7509 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7511 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7512 of internal error for unknown/unsupported types.
7514 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7516 Fix CU relative vs. absolute DIE offsets.
7517 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7518 offset to offset_in_cu.
7519 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7521 (dwarf2_fetch_die_location_block): Rename parameter offset to
7522 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7524 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7526 * libunwind-frame.c: Rename to ...
7527 * ia64-libunwind-tdep.c: ... here.
7528 * libunwind-frame.h: Rename to ...
7529 * ia64-libunwind-tdep.h: ... here.
7530 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7531 ia64-libunwind-tdep.h.
7532 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7533 * README (--with-libunwind): Rename to ...
7534 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7535 * config.in: Regenerate.
7536 * configure: Regenerate.
7537 * configure.ac: New option --with-libunwind-ia64, make the
7538 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7539 Remove AC_DEFINE for HAVE_LIBUNWIND.
7540 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7541 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7542 Rename libunwind-frame in the general comment.
7543 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7544 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7545 Move forward declarations inside #ifndef. Rename libunwind-frame in
7546 the general comment.
7547 * ia64-tdep.c: Rename libunwind-frame.h #include to
7548 ia64-libunwind-tdep.h.
7549 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7550 (ia64_libunwind_descr): Rename libunwind-frame to
7551 ia64-libunwind-tdep in these function comments.
7552 * ia64-tdep.h: Rename libunwind-frame.h #include to
7553 ia64-libunwind-tdep.h.
7554 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7555 ia64-libunwind-tdep in that data comment.
7557 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7559 * libunwind-frame.h (struct frame_unwind): New declaration.
7561 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7563 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7564 "set breakpoint condition-evaluation" command.
7566 2012-03-08 Tristan Gingold <gingold@adacore.com>
7568 * sparc-stub.c: Move to stubs/
7569 * sh-stub.c: Likewise.
7570 * m68k-stub.c: Likewise.
7571 * m32r-stub.c: Likewise.
7572 * i386-stub.c: Likewise.
7574 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7576 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7577 linux_get_siginfo_type.
7579 * m68klinux-nat.c: Include "gdb_proc_service.h".
7580 (PTRACE_GET_THREAD_AREA): Define.
7581 (ps_get_thread_area): New function.
7583 2012-03-08 Yao Qi <yao@codesourcery.com>
7585 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7587 (remote_query_attached): Likewise.
7588 (remote_static_tracepoint_marker_at): Likewise.
7589 (remote_set_permissions): Likewise.
7590 (remote_detach_1, extended_remote_attach_1): Likewise.
7591 (send_g_packet, remote_vkill): Likewise.
7592 (extended_remote_disable_randomization): Likewise.
7593 (remote_add_target_side_condition): Likewise.
7594 (remote_insert_breakpoint): Likewise.
7595 (remote_remove_breakpoint): Likewise.
7596 (remote_insert_watchpoint): Likewise.
7597 (remote_remove_watchpoint): Likewise.
7598 (remote_insert_hw_breakpoint): Likewise.
7599 (remote_insert_hw_breakpoint): Likewise.
7600 (remote_remove_hw_breakpoint): Likewise.
7601 (remote_download_command_source): Likewise.
7602 (remote_download_tracepoint): Likewise.
7603 (remote_download_trace_state_variable): Likewise.
7604 (remote_disable_tracepoint): Likewise.
7605 (remote_trace_set_readonly_regions): Likewise.
7606 (remote_get_tracepoint_status): Likewise.
7607 (remote_trace_find): Likewise.
7608 (remote_get_trace_state_variable_value): Likewise.
7609 (remote_set_disconnected_tracing): Likewise.
7610 (remote_set_circular_trace_buffer): Likewise.
7611 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7612 (remote_use_agent): Likewise.
7613 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7616 2012-03-07 Pedro Alves <palves@redhat.com>
7618 * NEWS: Mention QProgramSignals.
7619 * inferior.h (update_signals_program_target): Declare.
7620 * infrun.c: (update_signals_program_target): New.
7621 (handle_command): Update the target of the new program signals
7623 * remote.c (PACKET_QProgramSignals): New enum.
7624 (last_program_signals_packet): New global.
7625 (remote_program_signals): New.
7626 (remote_start_remote): Update the target with the program signals
7628 (remote_protocol_features): Add entry for QPassSignals.
7629 (remote_open_1): Free anc clear last_program_signals_packet.
7630 (init_remote_ops): Install remote_program_signals.
7631 * target.c (update_current_target): Adjust.
7632 (target_program_signals): New.
7633 * target.h (struct target_ops) <to_program_signals>: New field.
7634 (target_program_signals): Declare.
7636 2012-03-07 Pedro Alves <palves@redhat.com>
7638 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7641 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7643 * m68klinux-nat.c (getregs_supplies): Make static.
7644 (getfpregs_supplies): Likewise.
7645 (have_ptrace_getregs): Likewise.
7647 2012-03-06 Joel Brobecker <brobecker@adacore.com>
7649 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7650 in call to get_die_type_at_offset.
7652 2012-03-06 Stan Shebs <stan@codesourcery.com>
7654 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7655 * mi/mi-cmd-disas.c: Ditto.
7656 * mi/mi-cmd-env.c: Ditto.
7657 * mi/mi-cmd-file.c: Ditto.
7658 * mi/mi-cmd-stack.c: Ditto.
7659 * mi/mi-cmd-target.c: Ditto.
7660 * mi/mi-cmd-var.c: Ditto.
7661 * mi/mi-cmds.c: Ditto.
7662 * mi/mi-cmds.h: Ditto.
7663 * mi/mi-console.c: Ditto.
7664 * mi/mi-getopt.c: Ditto.
7665 * mi/mi-getopt.h: Ditto.
7666 * mi/mi-interp.c: Ditto.
7667 * mi/mi-main.c: Ditto.
7668 * mi/mi-out.c: Ditto.
7669 * mi/mi-parse.c: Ditto.
7670 * mi/mi-parse.h: Ditto.
7671 * mi/mi-symbol-cmds.c: Ditto.
7673 * mi/mi-getopt.h: Move mi_opt struct up.
7674 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7676 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7678 2012-03-06 Tom Tromey <tromey@redhat.com>
7680 * proc-service.c (ps_pglobal_lookup): Set the current program
7683 2012-03-06 Pedro Alves <palves@redhat.com>
7685 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7687 2012-03-05 Joel Brobecker <brobecker@adacore.com>
7689 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7691 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7694 * common/linux-osdata.c (linux_common_core_of_thread): New function
7696 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7697 call by linux_common_core_of_thread.
7698 (linux_nat_core_of_thread_1): Remove.
7699 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7700 * linux-thread-db.c: Include linux-osdata.h.
7701 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7702 linux_common_core_of_thread.
7704 2012-03-05 Tom Tromey <tromey@redhat.com>
7706 * value.c (value_primitive_field): Don't fetch contents for
7709 2012-03-05 Tom Tromey <tromey@redhat.com>
7711 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7713 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
7715 * s390-nat.c: Include "gregset.h".
7717 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7719 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7720 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7721 (libunwind_load): New variable so_error, use it for dlerror. Try to
7722 load also LIBUNWIND_SO_7.
7724 2012-03-05 Pedro Alves <palves@redhat.com>
7726 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7727 is not NULL, and remove resulting dead code.
7729 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7731 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7732 prologue to sh_analyze_prologue.
7733 (sh_analyze_prologue): Make better use of such an upper limit, and
7734 generally be more cautious about accessing memory.
7736 2012-03-05 Tom Tromey <tromey@redhat.com>
7738 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7739 _initialize_ia64_hpux_tdep.
7741 2012-03-05 Pedro Alves <palves@redhat.com>
7745 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7746 the register state is clear, supply explicit zero, instead of
7747 marking the register unavailable.
7749 2012-03-05 Tristan Gingold <gingold@adacore.com>
7751 * NEWS: Mention OpenVMS ia64 new target.
7753 2012-03-05 Tristan Gingold <gingold@adacore.com>
7755 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7756 (ia64_unw_accessors, ia64_unw_rse_accessors)
7757 (ia64_libunwind_descr): Declare.
7758 * ia64-vms-tdep.c: New file.
7759 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7760 (ia64_libunwind_descr): Make them public.
7761 * configure.tgt: Add ia64-*-*vms*.
7762 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7763 (ALLDEPFILES): Add ia64-vms-tdep.c
7765 2012-03-05 Tristan Gingold <gingold@adacore.com>
7767 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7768 * remote.c (PACKET_qXfer_uib): New enum value.
7769 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7770 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7771 (_initialize_remote): Call add_packet_config_cmd for
7774 2012-03-05 Tristan Gingold <gingold@adacore.com>
7776 * osabi.c (gdb_osabi_names): Add OpenVMS.
7777 (generic_elf_osabi_sniffer): Likewise.
7778 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
7780 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7782 Removed unused code.
7783 * libunwind-frame.c (libunwind_frame_unwind)
7784 (libunwind_frame_base_address): Remove.
7785 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7787 2012-03-04 Yao Qi <yao@codesourcery.com>
7789 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7790 remove trailing new line.
7791 (agent_run_command, agent_run_command): Add _ markup.
7792 (agent_capability_check): Likewise.
7794 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7796 * breakpoint.c (set_condition_evaluation_mode): Set
7797 CONDITION_EVALUATION_MODE unconditionally.
7799 2012-03-03 Yao Qi <yao@codesourcery.com>
7801 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7802 * common/agent.h: Update declaration.
7803 * inf-child.c (inf_child_use_agent): New.
7804 (inf_child_can_use_agent): New.
7805 (inf_child_target): Initialize fields `to_use_agent'
7806 and `to_can_use_agent'.
7807 * agent.c (agent_new_objfile): New.
7808 (_initialize_agent): Add agent_new_objfile to new_objfile
7811 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7813 (linux_target_install_ops): Initialize field
7814 `to_static_tracepoint_markers_by_strid'.
7815 * remote.c (free_current_marker): Move it to ...
7816 * tracepoint.c (free_current_marker): ... here. New.
7817 (cleanup_target_stop): New.
7818 * tracepoint.h: Declare free_current_marker.
7819 * NEWS: Add one entry about `info static-tracepoint-marker'.
7821 2012-03-03 Yao Qi <yao@codesourcery.com>
7823 * common/agent.c (agent_loaded_p): New.
7824 (agent_look_up_symbols): New global.
7825 * common/agent.h: Declare agent_loaded_p.
7827 2012-03-03 Yao Qi <yao@codesourcery.com>
7829 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7830 (agent_capability_check, agent_capability_invalidate): New.
7831 (symbol_list): New array element.
7832 * common/agent.h (enum agent_capa): New.
7833 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7835 2012-03-03 Yao Qi <yao@codesourcery.com>
7837 * target.h (struct target_ops) <to_use_agent>: New field.
7838 (struct target_ops) <to_can_use_agent>: New field.
7839 (target_use_agent, target_can_use_agent): New macro.
7840 * target.c (update_current_target): Update.
7841 * remote.c: New enum `PACKET_QAgent'.
7842 (remote_protocol_features): Add a new element.
7843 (remote_use_agent, remote_can_use_agent): New.
7844 (init_remote_ops): Initialize field `can_use_agent' with
7845 remote_can_use_agent. Intiailize field `use_agent' with
7847 * common/agent.c (use_agent): New global.
7848 * common/agent.h: Declare it.
7849 * tracepoint.c (info_static_tracepoint_markers_command): Add
7851 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7852 (COMMON_OBS): Add common/agent.o and agent.o
7853 (common-agent.o): New rule.
7856 2012-03-03 Yao Qi <yao@codesourcery.com>
7858 * common/agent.c: New.
7859 * common/agent.h: New.
7860 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7862 * configure, configh.in: Regenerated.
7864 2012-03-02 Kevin Buettner <kevinb@redhat.com>
7866 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7867 unless it exists for this architecture.
7869 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7871 * language.h (struct language_defn): New "method" la_read_var_value.
7872 * findvar.c: #include "language.h".
7873 (default_read_var_value): Renames read_var_value. Rewrite
7874 function description.
7875 (read_var_value): New function.
7876 * value.h (default_read_var_value): Add prototype.
7877 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7879 (ada_language_defn): Add entry for la_read_var_value.
7880 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7881 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7882 language_defn structures to add entry for new la_read_var_value
7885 2012-03-02 Tom Tromey <tromey@redhat.com>
7886 Pedro Alves <palves@redhat.com>
7888 PR breakpoints/13776:
7889 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7891 (delete_longjmp_breakpoint_at_next_stop): New.
7892 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7893 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7894 before deleting the inferior. Add comments.
7895 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7896 breakpoints immediately, but only on next stop. Move that code
7897 next to where we mark other breakpoints for deletion.
7899 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7901 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7903 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7906 2012-03-02 Pedro Alves <palves@redhat.com>
7908 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7910 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7912 Fix -Wmissing-prototypes build.
7913 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7914 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7915 (gdbsim_has_memory): Likewise.
7917 2012-03-02 Yao Qi <yao@codesourcery.com>
7919 Fix -Wmissing-prototypes build.
7920 * charset.c (phony_iconv_open): Make static.
7921 (phony_iconv_close, phony_iconv): Likewise.
7922 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7923 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7925 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7926 * ser-mingw.c (create_select_thread): Make static.
7927 * windows-termcap.c (tgetent): New prototype.
7928 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7930 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7932 Fix -Wmissing-prototypes build.
7933 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
7934 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
7935 (_initialize_loadable): New prototypes.
7937 2012-03-02 Doug Evans <dje@google.com>
7939 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
7940 abbrev table, read_comp_unit will do it.
7942 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7944 Fix -Wmissing-prototypes build.
7945 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
7946 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
7947 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
7948 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
7949 (_initialize_arm_symbian_tdep): New prototype.
7950 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
7951 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
7952 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
7954 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
7955 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
7957 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
7958 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
7959 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
7961 * moxie-tdep.c (moxie_process_record): Likewise.
7962 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
7963 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
7964 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
7965 (_initialize_rl78_tdep): New prototype.
7966 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
7967 (_initialize_rx_tdep): New prototype.
7968 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
7969 (_initialize_darwin_solib): New prototype.
7970 * solib-spu.c: Include solib-spu.h.
7971 (_initialize_spu_solib): New prototype.
7972 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
7973 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
7974 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
7975 (tic6x_software_single_step): Make it static.
7976 (_initialize_tic6x_tdep): New prototype.
7978 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7980 Fix -Wmissing-prototypes build.
7981 * cris-tdep.c (cris_can_use_hardware_watchpoint)
7982 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
7984 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7986 Fix -Wmissing-prototypes build.
7987 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
7988 (frv_have_stopped_data_address): Remove.
7990 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7992 Fix -Wmissing-prototypes build.
7993 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
7994 * sh-tdep.c: Include sh64-tdep.h.
7995 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
7996 * sh64-tdep.c: Include sh64-tdep.h.
7997 * sh64-tdep.h: New file.
7999 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8001 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8003 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8005 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8006 sp_regnum once the gdbarch_init_osabi hook has been called.
8008 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8010 * mips-tdep.c (mips32_bc1_pc): New function.
8011 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8012 BPOSGE32 and BPOSGE64 instructions.
8013 (deal_with_atomic_sequence): Likewise.
8014 (mips32_instruction_has_delay_slot): Likewise.
8016 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8017 Chris Dearman <chris@mips.com>
8018 Maciej W. Rozycki <macro@codesourcery.com>
8019 Joseph Myers <joseph@codesourcery.com>
8021 * features/mips-dsp.xml: New file.
8022 * features/mips64-dsp.xml: New file.
8023 * features/mips-dsp-linux.xml: New file.
8024 * features/mips64-dsp-linux.xml: New file.
8025 * features/Makefile (WHICH): Add mips-dsp-linux and
8027 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8028 * features/mips-dsp-linux.c: New file.
8029 * features/mips64-dsp-linux.c: New file.
8030 * regformats/mips-dsp-linux.dat: New file.
8031 * regformats/mips64-dsp-linux.dat: New file.
8032 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8034 (mips64_linux_register_addr): Likewise.
8035 (mips64_linux_regsets_fetch_registers): Likewise.
8036 (mips64_linux_regsets_store_registers): Likewise.
8037 (mips64_linux_fetch_registers): Update call to
8038 mips64_linux_regsets_fetch_registers.
8039 (mips64_linux_store_registers): Update call to
8040 mips64_linux_regsets_store_registers.
8041 (mips_linux_read_description): Probe for DSP registers.
8042 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8043 and initialize_tdesc_mips64_dsp_linux.
8044 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8045 Remove padding of no longer used embedded register slots.
8046 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8047 (MIPS_RESTART_REGNUM): Redefine enum value.
8048 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8050 (mips_tx39_reg_names): Likewise.
8051 (mips_linux_reg_names): New array of register names for Linux
8053 (mips_register_name): Check for a null pointer in
8054 mips_processor_reg_names and return an empty string.
8055 (mips_register_type): Exclude embedded registers for the IRIX
8057 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8058 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8060 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8061 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8062 (mips_gdbarch_init): Likewise. Initialize internal register
8063 indices for the Linux ABI. Use dynamic numbers to refer to
8064 registers, as applicable, while parsing the target description.
8065 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8067 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8069 * frame.h (read_frame_register_unsigned): Fix typo in function
8072 2012-03-01 Pedro Alves <palves@redhat.com>
8074 * jit-reader.in [!__cplusplus]
8075 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8077 2012-03-01 Pedro Alves <palves@redhat.com>
8079 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8080 * configure: Regenerate.
8082 2012-03-01 Pedro Alves <palves@redhat.com>
8084 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8085 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8086 (ftrace_command, strace_command): Make static.
8087 * d-lang.c (_initialize_d_language): Declare.
8088 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8089 * dwarf2loc.c (_initialize_dwarf2loc):
8090 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8091 * exec.c (exec_get_section_table): Make static.
8092 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8093 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8094 * inferior.c (remove_inferior_command, add_inferior_command)
8095 (clone_inferior_command): Make static.
8096 * linux-nat.c (linux_nat_thread_address_space)
8097 (linux_nat_core_of_thread): Make static.
8098 * linux-tdep.c (_initialize_linux_tdep): Declare.
8099 * objc-lang.c (_initialize_objc_lang): Declare.
8100 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8102 (_initialize_opencl_language): Declare.
8103 * record.c (_initialize_record): Declare.
8104 * remote.c (demand_private_info, remote_get_tib_address)
8105 (remote_supports_cond_tracepoints)
8106 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8108 * skip.c (_initialize_step_skip): Declare.
8109 * symtab.c (skip_prologue_using_lineinfo): Make static.
8110 * tracepoint.c (delete_trace_state_variable)
8111 (trace_variable_command, delete_trace_variable_command)
8112 (get_uploaded_tsv, find_matching_tracepoint_location)
8113 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8115 * value.c (pack_unsigned_long): Make static.
8116 * varobj.c (varobj_ensure_python_env): Make static.
8117 * windows-tdep.c (_initialize_windows_tdep): Declare.
8118 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8120 2012-03-01 Pedro Alves <palves@redhat.com>
8122 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8124 (linux_init_abi): Install it as has_shared_address_space gdbarch
8127 2012-03-01 Pedro Alves <palves@redhat.com>
8129 * observer.c (observer_test_first_notification_function)
8130 (observer_test_second_notification_function)
8131 (observer_test_third_notification_function): Add declarations.
8133 2012-03-01 Pedro Alves <palves@redhat.com>
8135 * common/signals.c (default_target_signal_to_host)
8136 (default_target_signal_from_host): Move ...
8137 * arch-utils.c: ... here.
8138 * arch-utils.h (default_target_signal_to_host)
8139 (default_target_signal_from_host): Declare.
8141 * common/signals.c (target_signal_from_command): Move ...
8142 * infrun.c: ... here.
8143 * inferior.h (target_signal_from_command): Declare.
8144 * target.h (target_signal_from_command)
8145 (default_target_signal_from_host, default_target_signal_to_host):
8146 Delete declarations.
8148 * common/signals.c (_initialize_signals): Delete.
8150 2012-03-01 Pedro Alves <palves@redhat.com>
8152 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8153 both __cplusplus and !__cplusplus.
8155 2012-03-01 Pedro Alves <palves@redhat.com>
8157 * psymtab.c (find_and_open_source): Delete declaration.
8158 * source.c (find_and_open_source): Move comment ...
8159 * source.h (find_and_open_source): ... to this new declaration.
8161 2012-03-01 Pedro Alves <palves@redhat.com>
8163 * inline-frame.c: Include inline-frame.h.
8165 2012-03-01 Pedro Alves <palves@redhat.com>
8167 * tui/tui-data.c (set_gen_win_origin): Delete.
8168 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8169 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8171 2012-03-01 Pedro Alves <palves@redhat.com>
8173 * remote.c (encode_actions): Delete declaration.
8174 * tracepoint.c (encode_actions): Make extern.
8175 * tracepoint.h (encode_actions): Declare.
8177 2012-03-01 Pedro Alves <palves@redhat.com>
8179 * python/py-breakpoint.c: Include python.h.
8180 * python/py-continueevent.c (create_continue_event_object): Make
8182 * python/py-lazy-string.c (stpy_get_type): Make static.
8183 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8185 * python/py-utils.c (unicode_to_target_python_string): Make
8187 * python/py-value.c: Include python.h.
8189 2012-03-01 Pedro Alves <palves@redhat.com>
8191 * inferior.c (delete_threads_of_inferior): Delete.
8193 2012-03-01 Pedro Alves <palves@redhat.com>
8195 Import fallback definitions from glibc.
8197 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8198 ps_prochandle): Forward declare.
8199 (ps_err_e): Use glibc's comments.
8200 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8201 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8202 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8203 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8204 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8205 (struct ps_prochandle): Adjust comment.
8207 2012-03-01 Pedro Alves <palves@redhat.com>
8209 * ada-lang.c (ada_modulus_from_name): Delete.
8210 * ada-lex.l (lexer_init): Make static.
8212 2012-03-01 Pedro Alves <palves@redhat.com>
8216 * frame.c (read_frame_register_unsigned): New.
8217 * frame.h (read_frame_register_unsigned): Declare.
8218 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8220 (print_i387_control_word): New parameter `control_p'. Handle it.
8221 (i387_print_float_info): Handle unavailable float registers.
8223 2012-03-01 Keith Seitz <keiths@redhat.com>
8225 * linespec.c (decode_line_2): Sort the list of methods
8226 alphabetically before presenting the user with a selection
8229 2012-03-01 Doug Evans <dje@google.com>
8231 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8233 (dwarf2_read_abbrevs): Remove corresponding initialization.
8235 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8237 * NEWS: Mention new python command class gdb.COMMAND_USER.
8238 * cli/cli-cmds.c (show_user): Print error when used on a python
8240 (init_cli_cmds): Update documentation strings for "show user" and
8241 "set/show max-user-call-depth" to clarify that it does not apply to
8243 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8245 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8247 * top.c (execute_command): Only execute a user-defined command as a
8248 legacy macro if c->user_commands is set.
8250 2012-03-01 Tom Tromey <tromey@redhat.com>
8252 * valprint.h (struct generic_val_print_decorations): New.
8253 (generic_val_print): Declare.
8254 * valprint.c (generic_val_print): New function.
8255 * p-valprint.c (p_decorations): New global.
8256 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8257 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8258 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8259 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8260 * m2-valprint.c (m2_decorations): New global.
8261 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8262 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8263 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8264 TYPE_CODE_ERROR>: Call generic_val_print.
8265 * f-valprint.c (f_decorations): New global.
8266 (f_val_print): Use print_function_pointer_address.
8267 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8268 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8269 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8271 * c-valprint.c (c_decorations): New global.
8272 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8273 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8274 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8275 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8276 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8277 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8280 2012-03-01 Tom Tromey <tromey@redhat.com>
8282 * valprint.c (val_print): Update.
8283 * p-valprint (pascal_val_print): Return void.
8284 * p-lang.h (pascal_val_print): Return void.
8285 * m2-valprint.c (m2_val_print): Return void.
8286 * m2-lang.h (m2_val_print): Return void.
8287 * language.h (struct language_defn) <la_val_print>: Return void.
8288 * language.c (unk_lang_val_print): Return void.
8289 * jv-valprint.c (java_val_print): Return void.
8290 * jv-lang.h (java_val_print): Return void.
8291 * f-valprint.c (f_val_print): Return void.
8292 * f-lang.h (f_val_print): Return void.
8293 * d-valprint.c (d_val_print): Return void.
8294 (dynamic_array_type): Update.
8295 * d-lang.h (d_val_print): Return void.
8296 * c-valprint.c (c_val_print): Return void.
8297 * c-lang.h (c_val_print): Return void.
8298 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8300 * ada-lang.h (ada_val_print): Return void.
8302 2012-03-01 Tom Tromey <tromey@redhat.com>
8304 * value.h (val_print): Return void.
8305 * valprint.c (val_print): Return void.
8307 2012-03-01 Tom Tromey <tromey@redhat.com>
8309 * value.h (common_val_print): Return void.
8310 * valprint.c (common_val_print): Return void.
8312 2012-03-01 Tom Tromey <tromey@redhat.com>
8314 * value.h (value_print): Return void.
8315 * valprint.c (value_print): Return void.
8316 * p-valprint.c (pascal_value_print): Return void.
8317 * p-lang.h (pascal_value_print): Return void.
8318 * language.h (struct language_defn) <la_value_print>: Return
8320 * language.c (unk_lang_value_print): Return void.
8321 * jv-valprint.c (java_value_print): Return void.
8322 * jv-lang.h (java_value_print): Return void.
8323 * f-valprint.c (c_value_print): Don't declare.
8325 * c-valprint.c (c_value_print): Return void.
8326 * c-lang.h (c_value_print): Return void.
8327 * ada-valprint.c (ada_value_print): Return void.
8328 * ada-lang.h (ada_value_print): Return void.
8330 2012-03-01 Tom Tromey <tromey@redhat.com>
8332 * value.c (value_primitive_field): Handle virtual base classes.
8334 2012-03-01 Tom Tromey <tromey@redhat.com>
8336 * gdbtypes.h (struct vbase): Remove.
8338 2012-03-01 Tom Tromey <tromey@redhat.com>
8340 * c-valprint.c (print_function_pointer_address): Move...
8341 * valprint.c: ... here. Make non-static.
8342 * m2-valprint.c (print_function_pointer_address): Remove.
8343 * valprint.h (print_function_pointer_address): Declare.
8345 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8347 * NEWS: Document the fact that one can provide a condition when
8348 creating an Ada exception catchpoint.
8350 2012-03-01 Tom Tromey <tromey@redhat.com>
8352 * valprint.c (val_print_type_code_flags): Fix placement of
8355 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8357 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8358 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8359 environment variable before calling update-copyright.
8361 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8363 * gnulib/extra/update-copyright: Update to the latest from
8364 gnulib's git repository.
8365 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8366 variable to 2 instead of 1.
8368 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8370 * varobj.c (c_value_of_variable): Remove dead code.
8372 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8374 * ada-lex.p (processId): Do not modify already encoded IDs.
8375 Update function documentation.
8377 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8379 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8380 "name" with "struct symbol *name_sym".
8381 * ada-exp.y (write_var_or_type): Update call to
8382 ada_find_renaming_symbol.
8383 "name" with "struct symbol *name_sym". Adjust Implementation
8384 accordingly. Adjust the function documentation.
8386 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8388 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8389 * ada-lang.c (ada_find_any_type): Add advance declaration.
8390 Make static. Replace ada_find_any_symbol by
8391 ada_find_any_type_symbol.
8392 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8393 Improve function description. Make static.
8394 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8395 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8397 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8399 * ada-lang.c (struct tag_args): Delete.
8400 (ada_get_tsd_type): Function body moved up in source file.
8401 (ada_tag_name_1, ada_tag_name_2): Delete.
8402 (ada_get_tsd_from_tag): New function.
8403 (ada_tag_name_from_tsd): New function.
8404 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8405 to determine the tag name.
8407 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8409 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8411 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8414 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8416 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8418 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8420 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8423 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8425 * ada-lang.c (constrained_packed_array_type): If there is a
8426 parallel XA type, use it to determine the array index type.
8428 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8430 * ada-valprint.c (ada_val_print_1): If our value is a reference
8431 to an array descriptor, dereference it before converting it
8434 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8436 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8437 creating fixed value.
8438 (ada_value_ind, ada_coerce_ref, assign_component)
8439 (ada_evaluate_subexp): Remove call to unwrap_value before
8440 call to ada_to_fixed_value.
8442 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8444 * ada-lang.c (to_fixed_array_type): Set result's type name.
8446 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8448 * ada-lang.c (catch_ada_exception_command_split): Add new
8449 argument cond_string. Add support for condition at end of
8450 "catch exception" commands.
8451 (ada_decode_exception_location): Add new argument cond_string.
8452 Update call to catch_ada_exception_command_split.
8453 (create_ada_exception_catchpoint): Add new argument cond_string.
8454 Set the breakpoint condition if needed.
8455 (catch_ada_exception_command): Update call to
8456 ada_decode_exception_location.
8457 (ada_decode_assert_location): Add function documentation.
8458 Add support for condition at end of "catch assert" command.
8459 (catch_assert_command): Update calls to ada_decode_assert_location
8460 and create_ada_exception_catchpoint.
8462 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8464 Fix disp-step-syscall.exp: fork: single step over fork.
8465 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8466 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8467 comment, change parameters gdbarch and ptid to regcache. Remove
8468 parameter regcache, initialize gdbarch from regcache here.
8469 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8471 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8473 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8474 'syscall'. Make the 'int' check more strict.
8476 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8478 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8479 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8480 (i386_linux_intx80_sysenter_syscall_record): ... here.
8481 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8482 Use the renamed function name.
8484 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8486 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8487 * breakpoint.c (until_break_command): Likewise.
8488 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8489 * infcall.c (call_function_by_hand): Likewise.
8490 * infcmd.c (finish_forward): Likewise.
8491 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8493 2012-02-28 Tristan Gingold <gingold@adacore.com>
8495 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8496 avoid variable assignments inside condition.
8498 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8500 Fix static analysis issue found by cppcheck.
8501 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8502 uninitialized BUF for size 2.
8504 2012-02-27 Chris Dearman <chris@mips.com>
8505 Nathan Froyd <froydnj@codesourcery.com>
8506 Maciej W. Rozycki <macro@codesourcery.com>
8508 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8509 (mips16_instruction_has_delay_slot): Likewise.
8510 (mips_segment_boundary): Likewise.
8511 (mips_adjust_breakpoint_address): Likewise.
8512 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8514 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8515 Maciej W. Rozycki <macro@codesourcery.com>
8517 * infrun.c (handle_inferior_event): Don't proceed through
8518 shared library trampolines if stepping at the machine
8521 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8523 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8526 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8528 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8529 (sh_stub_unwind_sniffer): New functions.
8530 (sh_stub_unwind): New variable.
8531 (sh_gdbarch_init): Wire everything.
8533 2012-02-27 Pedro Alves <palves@redhat.com>
8535 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8536 (linux_nat_post_attach_wait): Adjust to use
8537 linux_proc_pid_is_stopped.
8538 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8539 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8540 based on pid_is_stopped from both linux-nat.c and
8541 gdbserver/linux-low.c, and renamed.
8543 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8545 * remote.c (remote_watchpoint_addr_within_range): New function.
8546 (init_remote_ops): Use it.
8548 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8550 * target.h (target_watchpoint_addr_within_range): Document macro.
8552 2012-02-24 Pedro Alves <palves@redhat.com>
8554 * stack.c (set_last_displayed_sal): Issue internal_error instead
8555 of warning, and issue it after clearing the last displayed sal.
8557 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8558 Pedro Alves <palves@redhat.com>
8560 * breakpoint.c (until_break_command): Install breakpoints after
8561 all frame manipulations.
8563 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8565 * remote.c (remote_supports_cond_breakpoints): New forward
8567 (remote_add_target_side_condition): New function.
8568 (remote_insert_breakpoint): Add target-side breakpoint
8569 conditional if supported.
8570 (remote_insert_hw_breakpoint): Likewise.
8571 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8574 * target.c (update_current_target): Inherit
8575 to_supports_evaluation_of_breakpoint_conditions.
8576 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8578 * target.h (struct target_ops)
8579 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8580 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8582 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8583 (condition_evaluation_both, condition_evaluation_auto,
8584 condition_evaluation_host, condition_evaluation_target,
8585 condition_evaluation_enums, condition_evaluation_mode_1,
8586 condition_evaluation_mode): New static globals.
8587 (translate_condition_evaluation_mode): New function.
8588 (breakpoint_condition_evaluation_mode): New function.
8589 (gdb_evaluates_breakpoint_condition_p): New function.
8590 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8591 (mark_breakpoint_modified): New function.
8592 (mark_breakpoint_location_modified): New function.
8593 (set_condition_evaluation_mode): New function.
8594 (show_condition_evaluation_mode): New function.
8595 (bp_location_compare_addrs): New function.
8596 (get_first_location_gte_addr): New helper function.
8597 (set_breakpoint_condition): Free condition bytecode if locations
8598 has become unconditional. Call mark_breakpoint_modified (...).
8599 (condition_command): Call update_global_location_list (1) for
8601 (breakpoint_xfer_memory): Use is_breakpoint (...).
8602 (is_breakpoint): New function.
8603 (parse_cond_to_aexpr): New function.
8604 (build_target_condition_list): New function.
8605 (insert_bp_location): Handle target-side conditional
8606 breakpoints and call build_target_condition_list (...).
8607 (update_inserted_breakpoint_locations): New function.
8608 (insert_breakpoint_locations): Handle target-side conditional
8610 (bpstat_check_breakpoint_conditions): Add comment.
8611 (bp_condition_evaluator): New function.
8612 (bp_location_condition_evaluator): New function.
8613 (print_breakpoint_location): Print information on where the condition
8615 (print_one_breakpoint_location): Likewise.
8616 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8617 breakpoint location.
8618 (force_breakpoint_reinsertion): New functions.
8619 (update_global_location_list): Handle target-side breakpoint
8621 Reinsert locations that are already inserted if conditions have
8623 (bp_location_dtor): Free agent expression bytecode.
8624 (disable_breakpoint): Call mark_breakpoint_modified (...).
8625 Call update_global_location_list (...) with parameter 1 for breakpoints.
8626 (disable_command): Call mark_breakpoint_location_modified (...).
8627 Call update_global_location_list (...) with parameter 1 for breakpoints.
8628 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8629 (enable_command): mark_breakpoint_location_modified (...).
8630 (_initialize_breakpoint): Update documentation and add
8631 condition-evaluation breakpoint subcommand.
8633 * breakpoint.h: Include ax.h.
8634 (condition_list): New data structure.
8635 (condition_status): New enum.
8636 (bp_target_info) <cond_list>: New field.
8637 (bp_location) <condition_changed, cond_bytecode>: New fields.
8638 (is_breakpoint): New prototype.
8640 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8642 * remote.c (remote_state) <cond_breakpoints>: New field.
8643 (PACKET_ConditionalBreakpoints): New enum.
8644 (remote_cond_breakpoint_feature): New function.
8645 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8646 (remote_supports_cond_breakpoints): New function.
8647 (_initialize_remote): Add new packet configuration for
8648 target-side conditional breakpoints.
8650 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8652 * NEWS: Mention target-side conditional breakpoint support,
8653 new condition-evaluation breakpoint subcommand and remote
8656 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8658 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8661 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8663 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8664 (after_prologue): Remove.
8666 2012-02-23 Tom Tromey <tromey@redhat.com>
8668 * jv-valprint.c (java_val_print): Remove dead code.
8670 2012-02-23 Tristan Gingold <gingold@adacore.com>
8672 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8673 known_tasks_element and known_tasks_length fields.
8674 (read_known_tasks_array): Change argument type. Use pointer type
8675 and number of elements from DATA. Adjust.
8676 (read_known_tasks_list): Likewise.
8677 (get_known_tasks_addr): Remove.
8678 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8679 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8680 type and array length. Merge former get_known_tasks_addr code.
8682 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8685 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8686 it after set_momentary_breakpoint.
8688 2012-02-22 Sterling Augustine <saugustine@google.com>
8691 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8693 2012-02-22 Gary Benson <gbenson@redhat.com>
8695 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8696 (find_slot_in_mapped_hash): Likewise.
8698 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8701 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8702 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8703 * configure: Regenerate.
8705 2012-02-21 Tristan Gingold <gingold@adacore.com>
8706 Pedro Alves <palves@redhat.com>
8708 * ia64-tdep.c: Do not include libunwind-ia64.h.
8709 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8710 Include libunwind-ia64.h instead of libunwind.h.
8711 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8712 for libunwind.h existence.
8713 * configure, config.in: Regenerate.
8715 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8717 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8718 instead of value_rtti_target_type.
8719 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8720 instead of value_rtti_target_type.
8721 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8722 value_rtti_target_type.
8723 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8724 (value_rtti_target_type): Rename to ...
8725 (value_rtti_indirect_type): ... here and make it indirect. Update
8727 * value.c (readjust_indirect_value_type): New function.
8728 (coerce_ref): Support for enclosing type setting for references
8729 with readjust_indirect_value_type.
8730 * value.h (readjust_value_type): New declaration.
8731 (value_rtti_target_type): Rename to ...
8732 (value_rtti_indirect_type): ... here.
8734 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8736 * MAINTAINERS (Write After Approval): Add myself to the list.
8738 2012-02-20 Doug Evans <dje@google.com>
8740 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8741 Rename objfile_p_char parameter to objfilep.
8742 (build_objfile_section_table): Result is now void. All callers
8744 * objfiles.h (struct objfile): Tweak comments, whitespace.
8745 (build_objfile_section_table): Update.
8747 * elfread.c (elf_symfile_segments): Fix warning text.
8749 2012-02-20 Tom Tromey <tromey@redhat.com>
8752 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8753 particular set of file names once.
8754 (dw2_map_symbol_filenames): Likewise.
8756 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8759 * main.c (write_files): Remove the declaration.
8760 (external_editor_command): Move the declaration ...
8761 [GDBTK] (external_editor_command): ... here. Fix the comment.
8763 2012-02-20 Tom Tromey <tromey@redhat.com>
8765 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8768 2012-02-20 Tristan Gingold <gingold@adacore.com>
8770 * darwin-nat.h (enum darwin_msg_state): Add comments.
8772 2012-02-20 Tristan Gingold <gingold@adacore.com>
8774 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8777 2012-20-18 Joel Brobecker <brobecker@adacore.com>
8779 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8780 between function description and implementation.
8782 2012-02-17 Tom Tromey <tromey@redhat.com>
8785 * python/py-event.c (event_object_getset): New global.
8786 (event_object_type): Reference it.
8787 * python/py-type.c (field_object_getset): New global.
8788 (field_object_type): Reference it.
8789 * python/python-internal.h (gdb_py_generic_dict): Declare.
8790 * python/py-utils.c (gdb_py_generic_dict): New function.
8792 2012-02-17 Tristan Gingold <gingold@adacore.com>
8794 * solib-darwin.c (darwin_current_sos): Check magic and filetype
8796 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8798 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8799 TYPE_CALLING_CONVENTION annotation.
8801 2012-02-16 Kevin Buettner <kevinb@redhat.com>
8803 * MAINTAINERS: Add rx to target ISA section.
8804 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8805 (ALLDEPFILES): Add rx-tdep.c.
8807 2012-02-16 Tom Tromey <tromey@redhat.com>
8809 * symfile.c (symbol_file_add_main_1): Use inferior's
8811 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8812 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8814 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8816 (follow_exec): Use inferior's symfile_flags.
8817 * inferior.h (struct inferior) <symfile_flags>: New field.
8819 2012-02-16 Mike Frysinger <vapier@gentoo.org>
8822 * remote-sim.c (gdbsim_create_inferior): Call error() when
8823 sim_create_inferior() fails.
8825 2012-02-16 Josh Matthews <josh@joshmatthews.net>
8827 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8829 2012-02-16 Tom Tromey <tromey@redhat.com>
8832 * thread.c (struct current_thread_cleanup) <was_removable>: New
8834 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8835 (make_cleanup_restore_current_thread): Initialize new field.
8837 2012-02-15 Kevin Buettner <kevinb@redhat.com>
8839 * MAINTAINERS: Add rl78 to target ISA section.
8840 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8841 (ALLDEPFILES): Add rl78-tdep.c.
8842 * NEWS: Mention rl78 as a new target.
8844 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8846 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8848 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8850 2012-02-15 Tom Tromey <tromey@redhat.com>
8853 * infcmd.c (registers_info): Print just the current register's
8856 2012-02-15 Tom Tromey <tromey@redhat.com>
8858 * python/py-symbol.c (sympy_value): Use _().
8860 2012-02-15 Pedro Alves <palves@redhat.com>
8862 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8863 output to be like native targets'.
8864 (remote_pid_to_str): Special case the null ptid.
8866 2012-02-14 Stan Shebs <stan@codesourcery.com>
8868 * NEWS: Mention enable count command.
8869 * breakpoint.h (struct breakpoint): New field enable_count.
8870 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8871 (enable_breakpoint): Add arg to call.
8872 (struct disp_data): New struct.
8873 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8874 (do_map_enable_once_breakpoint): Create a struct and pass it.
8875 (do_map_enable_delete_breakpoint): Ditto.
8876 (do_map_enable_count_breakpoint): New function.
8877 (enable_count_command): New function.
8878 (bpstat_stop_status): Decrement enable_count.
8879 (print_one_breakpoint_location): Report enable count.
8880 (_initialize_breakpoint): Add enable count command.
8882 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8884 * rl78-tdep.c (reggroups.h): Include.
8885 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8886 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8887 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8888 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8889 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8890 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8891 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8892 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8893 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8894 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8895 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8896 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8897 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8898 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8899 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8900 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8901 beginning of register list.
8902 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8903 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8904 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8905 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8906 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8907 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8908 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8909 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8910 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8911 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8912 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8913 the pseudo registers. Rearrange other pseudo registers too so
8914 that the bank registers appear at the end.
8915 (rl78_register_type): Account for the fact that the byte sized
8916 bank registers are now pseudo-registers.
8917 (rl78_register_name): Rearrange the register name array. Make
8918 initial set of raw banked registers inaccessible.
8919 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8920 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8921 case for copying bytes back and forth between raw and pseudo
8922 versions of the banked registers. Update other cases to reflect
8924 (rl78_return_value): Update to account for changed names of
8926 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8927 rl78_register_sim_regno().
8929 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8931 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
8932 the name parameter being passed to find_pc_partial_function().
8934 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8936 * MAINTAINERS: Step down from being ia64 target maintainer.
8938 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8940 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
8941 compilation warning.
8943 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8945 Fix crash on loaded shlibs without loaded exec_bfd.
8946 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
8947 (set_section_command): Replace exec_bfd by p->bfd.
8949 2012-02-10 Tom Tromey <tromey@redhat.com>
8951 * linespec.c (decode_line_internal): Skip symtabs_from_filename
8952 when we have a C++ qualified name.
8954 2012-02-10 Pedro Alves <palves@redhat.com>
8956 * inferior.c (inferior_pid_to_str): New.
8957 (print_inferior, inferior_command): Use it.
8959 2012-02-10 Pedro Alves <palves@redhat.com>
8961 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
8963 * configure: Regenerate.
8965 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8967 * linespec.c (decode_line_internal): Fix comment correctness.
8969 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
8972 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
8973 * amd64bsd-nat.c: Add support for debug registers (adapted from
8975 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
8976 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
8977 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
8978 (amd64bsd_dr_get_control): New functions.
8979 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
8980 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
8981 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
8982 watchpoints initialization.
8983 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
8985 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8987 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
8989 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
8991 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8993 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
8995 2012-02-08 Joel Brobecker <brobecker@adacore.com>
8997 * language.h (symbol_name_cmp_ftype): Renames
8998 symbol_name_match_p_ftype.
8999 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9000 la_get_symbol_name_match_p.
9001 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9002 ada_get_symbol_name_match_p. Update comment.
9003 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9004 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9005 Renames symbol_name_match_p. Update field type.
9006 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9007 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9008 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9009 "la_get_symbol_name_cmp" in comments.
9010 * language.c: Likewise.
9012 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9014 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9016 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9017 (amd64_sol2_gregset32_reg_offs): Likewise.
9019 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9021 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9022 of the returned BFD is allocated by GDB.
9024 2012-02-07 Tom Tromey <tromey@redhat.com>
9027 * python/python-internal.h (frame_object_type): Declare.
9028 * python/py-symbol.c (sympy_needs_frame): New function.
9029 (sympy_value): New function.
9030 (symbol_object_getset): Add "needs_frame".
9031 (symbol_object_methods): Add "value".
9032 * python/py-frame.c (frame_object_type): No longer static.
9034 2012-02-07 Tom Tromey <tromey@redhat.com>
9037 * python/py-symbol.c (sympy_line): New function.
9038 (symbol_object_getset): Add "line".
9040 2012-02-07 Tom Tromey <tromey@redhat.com>
9042 * charset.c (find_charset_names): Check 'in' against NULL.
9044 2012-02-06 Doug Evans <dje@google.com>
9046 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9047 and fields.name members from char * to const char *. All uses updated.
9048 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9049 from char * to const char *. All uses updated.
9050 (type_name_no_tag): Update.
9051 (lookup_unsigned_typename, lookup_signed_typename): Update.
9052 * gdbtypes.c (type_name_no_tag): Change result type
9053 from char * to const char *. All callers updated.
9054 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9055 name parameter from char * to const char *.
9056 * symtab.h (struct cplus_specific): Change type of demangled_name
9057 member from char * to const char *. All uses updated.
9058 (struct general_symbol_info): Change type of name and
9059 mangled_lang.demangled_name members from char * to const char *.
9061 (symbol_get_demangled_name, symbol_natural_name): Update.
9062 (symbol_demangled_name, symbol_search_name): Update.
9063 * symtab.c (symbol_get_demangled_name): Change result type
9064 from char * to const char *. All callers updated.
9065 (symbol_natural_name, symbol_demangled_name): Ditto.
9066 (symbol_search_name): Ditto.
9067 (completion_list_add_name): Change type of symname,sym_text,
9068 text,word parameters from char * to const char *.
9069 (completion_list_objc_symbol): Change type of sym_text,
9070 text,word parameters from char * to const char *.
9071 * ada-lang.c (find_struct_field): Change type of name parameter
9072 from char * to const char *.
9073 (encoded_ordered_before): Similarly for N0,N1 parameters.
9074 (old_renaming_is_invisible): Similarly for function_name parameter.
9075 (ada_type_name): Change result type from char * to const char *.
9076 All callers updated.
9077 * ada-lang.h (ada_type_name): Update.
9078 * buildsym.c (hashname): Change type of name parameter
9079 from char * to const char *.
9080 * buildsym.h (hashname): Update.
9081 * dbxread.c (end_psymtab): Change type of include_list parameter
9082 from char ** to const char **.
9083 * dwarf2read.c (determine_prefix): Change result type
9084 from char * to const char *. All callers updated.
9085 * f-lang.c (find_common_for_function): Change type of name, funcname
9086 parameters from char * to const char *.
9087 * f-lang.c (find_common_for_function): Update.
9088 * f-valprint.c (list_all_visible_commons): Change type of funcname
9089 parameters from char * to const char *.
9090 * gdbarch.sh (static_transform_name): Change type of name parameter
9091 and result from char * to const char *.
9092 * gdbarch.c: Regenerate.
9093 * gdbarch.h: Regenerate.
9094 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9095 of name parameter from char * to const char *.
9096 * jv-lang.c (java_primitive_type_from_name): Ditto.
9097 (java_demangled_signature_length): Similarly for signature parameter.
9098 (java_demangled_signature_copy): Ditto.
9099 (java_demangle_type_signature): Ditto.
9100 * jv-lang.h (java_primitive_type_from_name): Update.
9101 (java_demangle_type_signature): Update.
9102 * objc-lang.c (specialcmp): Change type of a,b parameters
9103 from char * to const char *.
9104 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9105 from char * to const char *. All callers updated.
9106 * p-lang.h (is_pascal_string_type): Update.
9107 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9108 of name parameter from char * to const char *.
9109 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9110 * utils.c (fprintf_symbol_filtered): Ditto.
9111 * defs.h (fprintf_symbol_filtered): Update.
9112 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9113 * stabsread.h (end_psymtab): Update.
9114 * stack.c (find_frame_funname): Change type of funname parameter
9115 from char ** to const char **.
9116 * stack.h (find_frame_funname): Update.
9117 * typeprint.c (type_print): Change type of varstring parameter
9118 from char * to const char *.
9119 * value.h (type_print): Update.
9120 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9121 from char * to const char *. All callers updated.
9122 (xcoff_end_psymtab): Change type of include_list parameter
9123 from char ** to const char **. All callers updated.
9124 (swap_sym): Similarly for name parameter. All callers updated.
9125 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9127 (process_coff_symbol): Use xstrdup.
9128 * stabsread.c (stabs_method_name_from_physname): Renamed from
9129 update_method_name_from_physname. Change result type from void
9130 to char *. All callers updated.
9131 (read_member_functions): In has_destructor case, store name in objfile
9132 obstack instead of malloc space. In !has_stub case, fix mem leak.
9134 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9136 * configure: Rebuild.
9137 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9140 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9142 * configure.tgt (rl78-*-elf): New target.
9143 * rl78-tdep.c: New file.
9145 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9147 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9148 and continue the loop. Add QUIT statement.
9150 2012-02-03 Tom Tromey <tromey@redhat.com>
9153 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9154 bfd_lookup_symbol_from_symtab.
9155 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9156 gdb_bfd_lookup_symbol_from_symtab.
9158 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9160 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9161 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9162 symbol. Add assertion that sym2 is never NULL.
9164 2012-02-02 Doug Evans <dje@google.com>
9166 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9167 "name" parameter to const char ** from char **. All callers updated.
9168 (find_pc_partial_function): Ditto.
9169 (cache_pc_function_name): Change type to const char * from char *.
9170 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9171 (find_pc_partial_function): Update.
9172 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9173 type of "name" parameter to const char * from char *.
9175 * arch-utils.c (generic_in_solib_return_trampoline): Change
9176 type of "name" parameter to const char * from char *.
9177 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9178 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9179 type of "name" parameter to const char * from char *.
9180 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9181 * gdbarch.c: Regenerate.
9182 * gdbarch.h: Regenerate.
9183 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9184 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9185 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9186 type of "name" parameter to const char * from char *.
9187 * skip.c (skip_function_pc): Ditto.
9188 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9189 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9190 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9191 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9192 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9193 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9194 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9195 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9196 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9198 2012-02-02 Pedro Alves <palves@redhat.com>
9200 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9201 the current inferior has no execution. Make sure the current
9202 remote process matches gdb's current inferior.
9204 2012-02-02 Tom Tromey <tromey@redhat.com>
9207 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9210 2012-02-02 Tom Tromey <tromey@redhat.com>
9213 * symtab.c (lookup_language_this): Set block_found.
9215 2012-02-01 Tom Tromey <tromey@redhat.com>
9218 * jit.c (struct jit_inferior_data): Rewrite.
9219 (struct jit_objfile_data): New.
9220 (get_jit_objfile_data): New function.
9221 (add_objfile_entry): Update.
9222 (jit_read_descriptor): Return int. Replace descriptor_addr
9223 argument with inf_data. Update. Don't call error.
9224 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9226 (jit_inferior_init): Don't look up descriptor. Don't call error.
9227 (jit_reset_inferior_data_and_breakpoints)
9228 (jit_inferior_created_observer): Remove.
9229 (jit_inferior_exit_hook): Update.
9230 (jit_executable_changed_observer): Remove.
9231 (jit_event_handler): Update.
9232 (free_objfile_data): Reset inferior data if needed.
9233 (_initialize_jit): Update.
9235 2012-02-01 Tom Tromey <tromey@redhat.com>
9237 * jit.c (bfd_open_from_target_memory): Move higher in file.
9239 2012-02-01 Tristan Gingold <gingold@adacore.com>
9241 * libunwind-frame.c (libunwind_load): Display message if dlopen
9244 2012-02-01 Gary Benson <gbenson@redhat.com>
9246 * symtab.h (symbol_found_callback_ftype): New typedef.
9247 (iterate_over_symbols): Use the above.
9248 * symtab.c (iterate_over_symbols): Likewise.
9249 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9250 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9251 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9252 (iterate_name_matcher): Document return values.
9253 (collect_one_symbol): Likewise.
9254 (collect_function_symbols): Likewise.
9255 (collect_symbols): Likewise.
9257 2012-02-01 Tom Tromey <tromey@redhat.com>
9259 * ada-lang.c (resolve_subexp): Update.
9260 (ada_lookup_symbol_list): Add 'full_search' argument.
9261 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9262 ada_lookup_symbol_list.
9263 (ada_lookup_encoded_symbol): Update.
9264 (get_var_value): Update.
9265 * ada-exp.y (block_lookup): Update.
9266 (write_var_or_type): Update.
9267 (write_name_assoc): Update.
9268 * ada-lang.h (ada_lookup_symbol_list): Update.
9270 2012-01-31 Tom Tromey <tromey@redhat.com>
9272 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9275 2012-01-31 Doug Evans <dje@google.com>
9277 * symtab.h: Remove outdated comment.
9278 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9280 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9282 Fix build error in Darwin port.
9283 * i386-darwin-nat.c: Include i386-nat.h.
9285 2012-01-30 Tom Tromey <tromey@redhat.com>
9287 PR breakpoints/13568:
9288 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9289 argument. Check for recursive includes.
9290 (dwarf_decode_macros): Create an include hash.
9292 2012-01-30 Michael Eager <eager@eagercon.com>
9294 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9295 * ppc-linux-tdep.c: Include glibc-tdep.h.
9296 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9297 (powerpc_linux_in_plt_stub): New function.
9298 (powerpc_linux_in_dynsym_resolve_code): New function.
9299 (ppc_skip_trampoline_code): New function.
9300 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9301 Use glibc_skip_solib_resolver.
9303 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9305 Code cleanup: Make 1440 bytes of data segment read-only.
9306 * arch-utils.c (endian_enum): Make it const char *const [].
9307 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9309 * breakpoint.c (always_inserted_enums): Likewise.
9310 * cli/cli-cmds.c (script_ext_enums): Likewise.
9311 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9312 enumlist parameter const char *const *.
9313 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9314 const char *const *.
9315 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9316 parameter const char *const *.
9317 * cris-tdep.c (cris_modes): Make it const char *const [].
9318 * filesystem.c (target_file_system_kinds): Likewise.
9319 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9320 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9321 (can_use_displaced_stepping_enum, scheduler_enums)
9322 (exec_direction_names): Likewise.
9323 * language.c (_initialize_language): Make the type_or_range_names and
9324 case_sensitive_names variables const char *const [].
9325 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9326 * python/python.c (python_excp_enums): Likewise.
9327 * remote.c (interrupt_sequence_modes): Likewise.
9328 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9329 * serial.c (logbase_enums): Likewise.
9330 * sh-tdep.c (sh_cc_enum): Likewise.
9331 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9333 * symtab.c (multiple_symbols_modes): Likewise.
9334 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9336 * utils.c (internal_problem_modes): Likewise.
9338 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9340 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9341 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9344 2012-01-27 Doug Evans <dje@google.com>
9346 * configure.ac (with_python): Fix absolute path handling for win32.
9347 * configure: Regenerate.
9349 2012-01-26 Doug Evans <dje@google.com>
9351 * symtab.c: Whitespace cleanup, no code changes.
9353 * symtab.c (lookup_symbol_in_language): Improve comment.
9354 (lookup_symbol_aux): Fix comment.
9356 * psymtab.c (add_psymbol_to_list): Result is now "void".
9357 * psympriv.h (add_psymbol_to_list): Update.
9359 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9361 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9363 Do not open script filenames twice.
9364 * cli/cli-cmds.c (source_script_from_stream): Pass to
9365 source_python_script also STREAM.
9366 * python/py-auto-load.c (source_section_scripts): Pass to
9367 source_python_script_for_objfile also STREAM.
9368 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9370 * python/python-internal.h (source_python_script_for_objfile): New
9371 parameter file, rename parameter file to filename.
9372 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9373 instead if !_WIN32. Update the function comment.
9374 (source_python_script, source_python_script_for_objfile)
9375 (source_python_script): New parameter file, rename parameter file to
9376 filename. Pass FILENAME to python_run_simple_file.
9377 * python/python.h (source_python_script): New parameter file, rename
9378 parameter file to filename.
9380 2012-01-26 Pedro Alves <palves@redhat.com>
9382 * corelow.c (core_has_fake_pid): Delete.
9383 (core_close): Delete references to `core_has_fake_pid'.
9384 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9385 (core_open): Delete references to `core_has_fake_pid'.
9386 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9389 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9391 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9392 Remove language parameter from name_matcher. Adjust the comment.
9393 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9394 Remove language parameter.
9395 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9396 * linespec.c (iterate_name_matcher): Likewise.
9397 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9398 name_matcher. Adjust call accordingly.
9399 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9400 (maintenance_check_symtabs): Adjust type of parameter "fun".
9401 * psymtab.h (maintenance_check_symtabs): Likewise.
9403 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9405 * language.h (symbol_name_match_p_ftype): New typedef.
9406 (struct language_defn): Replace field la_symbol_name_compare
9407 by la_get_symbol_name_match_p.
9408 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9409 (ada_language_defn): Use it.
9410 * linespec.c (struct symbol_matcher_data): New type.
9411 (iterate_name_matcher): Rewrite.
9412 (iterate_over_all_matching_symtabs): Pass a pointer to
9413 a symbol_matcher_data struct to expand_symtabs_matching
9414 instead of just the lookup name.
9415 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9416 opencl-lang.c, p-lang.c, language.c: Delete field
9417 la_symbol_name_compare, and replace by NULL for new field
9418 la_get_symbol_name_match_p.
9419 * symfile.h (struct quick_symbol_functions): Update comment.
9421 2012-01-25 Tom Tromey <tromey@redhat.com>
9423 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9426 2012-01-24 Tom Tromey <tromey@redhat.com>
9429 * solib.c (update_solib_list): Update the program space's
9430 added_solibs and deleted_solibs fields.
9431 * progspace.h (struct program_space) <added_solibs,
9432 deleted_solibs>: New fields.
9433 (clear_program_space_solib_cache): Declare.
9434 * progspace.c (release_program_space): Call
9435 clear_program_space_solib_cache.
9436 (clear_program_space_solib_cache): New function.
9437 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9438 bpstat_stop_status. Use handle_solib_event.
9439 * breakpoint.c: Include gdb_regex.h.
9440 (print_solib_event): New function.
9441 (bpstat_print): Use print_solib_event.
9442 (bpstat_stop_status): Add special case for bp_shlib_event.
9443 (handle_solib_event): New function.
9444 (bpstat_what): Use handle_solib_event.
9445 (struct solib_catchpoint): New.
9446 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9447 (breakpoint_hit_catch_solib, check_status_catch_solib)
9448 (print_it_catch_solib, print_one_catch_solib)
9449 (print_mention_catch_solib, print_recreate_catch_solib): New
9451 (catch_solib_breakpoint_ops): New global.
9452 (catch_load_or_unload, catch_load_command_1)
9453 (catch_unload_command_1): New functions.
9454 (internal_bkpt_check_status): Add special case for
9456 (internal_bkpt_print_it): Use print_solib_event.
9457 (initialize_breakpoint_ops): Initialize
9458 catch_solib_breakpoint_ops.
9459 (_initialize_breakpoint): Register "catch load" and "catch
9461 * breakpoint.h (handle_solib_event): Declare.
9462 * NEWS: Add entry for "catch load" and "catch unload".
9464 2012-01-24 Tom Tromey <tromey@redhat.com>
9466 * ada-lang.c: Include gdb_vecs.h.
9467 * charset.c: Include gdb_vecs.h.
9468 * tracepoint.h: Include gdb_vecs.h.
9469 * gdb_vecs.h: New file.
9471 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9473 * breakpoint.c (breakpoint_hit_catch_fork)
9474 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9475 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9476 * infrun.c (inferior_has_forked, inferior_has_vforked)
9477 (inferior_has_execd, inferior_has_called_syscall): Delete.
9478 (handle_syscall_event): Get syscall_number from the execution
9479 control state's wait status.
9480 (wait_for_inferior): Don't clear syscall_number.
9482 2012-01-24 Pedro Alves <palves@redhat.com>
9484 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9485 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9486 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9487 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9489 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9490 false for events other than TARGET_SIGNAL_TRAP.
9491 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9493 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9494 events other than TARGET_SIGNAL_TRAP.
9495 (tracepoint_breakpoint_hit): Add `ws' parameter.
9496 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9498 (bpstat_stop_status): Same.
9499 (pc_at_non_inline_function): Same.
9500 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9501 to pass the current event's waitstatus to bpstat_stop_status
9502 and pc_at_non_inline_function.
9504 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9507 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9508 Update the function comment for it.
9509 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9510 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9513 2012-01-24 Pedro Alves <palves@redhat.com>
9515 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9516 outside `bs->stop' block.
9517 (bpstat_what): Rework bp_shlib_event handling.
9518 (internal_bkpt_check_status): If the breakpoint is a
9519 bp_shlib_event, then set bs->stop and bs->print if
9520 stop_on_solib_events is set.
9522 2012-01-24 Gary Benson <gbenson@redhat.com>
9524 Delete #if 0'd out code.
9525 * stack.c (print_frame_label_vars): Remove.
9526 (catch_info): Likewise.
9527 (_initialize_stack): Remove "info catch" command.
9528 * NEWS: Mention the above.
9530 2012-01-24 Pedro Alves <palves@redhat.com>
9532 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9534 (remote_notice_new_inferior): If the remote end doesn't support
9535 the multiprocess extensions, then the PID is fake.
9536 (add_current_inferior_and_thread): New.
9537 (remote_start_remote): Use it.
9538 (extended_remote_attach_1): Adjust.
9539 (extended_remote_create_inferior_1): Use
9540 add_current_inferior_and_thread.
9542 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9544 Fix watchpoints to be specific for each inferior.
9545 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9546 current_program_space.
9547 * i386-nat.c (i386_inferior_data_cleanup): New.
9548 (i386_inferior_data_get): Replace variable inf_data_local by an
9550 (i386_use_watchpoints): Initialize i386_inferior_data.
9551 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9552 specific iterate_over_lwps.
9554 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9556 Fix watchpoints across inferior fork.
9557 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9558 comment for linux_nat_iterate_watchpoint_lwps.
9559 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9560 linux_nat_iterate_watchpoint_lwps.
9561 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9562 * i386-linux-nat.c (update_debug_registers_callback): Update the
9563 comment for linux_nat_iterate_watchpoint_lwps.
9564 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9565 linux_nat_iterate_watchpoint_lwps.
9566 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9567 * i386-nat.c: Include inferior.h.
9568 (dr_mirror): Remove.
9569 (i386_inferior_data, struct i386_inferior_data)
9570 (i386_inferior_data_get): New.
9571 (i386_debug_reg_state): Use i386_inferior_data_get.
9572 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9573 (i386_insert_watchpoint, i386_remove_watchpoint)
9574 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9575 (i386_remove_hw_breakpoint): New variable state, use
9576 i386_debug_reg_state instead of DR_MIRROR.
9577 * linux-nat.c (delete_lwp): New declaration.
9578 (num_lwps): Move here from downwards.
9579 (delete_lwp_cleanup): New.
9580 (linux_child_follow_fork): Create new child_lp, call
9581 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9583 (num_lwps): Move upwards.
9584 (linux_nat_iterate_watchpoint_lwps): New.
9585 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9586 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9588 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9592 2012-01-23 Pedro Alves <palves@redhat.com>
9594 * top.c (caution): Rename to ...
9595 (confirm): ... this.
9596 (show_caution): Rename to ...
9597 (show_confirm): ... this.
9598 (quit_cover): Adjust.
9599 (init_main): Adjust.
9600 * top.h (caution): Rename to ...
9601 (confirm): ... this.
9602 * utils.c (internal_vproblem, defaulted_query): Adjust.
9604 2012-01-23 Pedro Alves <palves@redhat.com>
9606 * top.c (caution): Update comment.
9607 (execute_command): Don't consider the current value of `caution'.
9609 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9611 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9613 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9615 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9616 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9617 * target.c (target_fileio_pwrite): Remove buffer address from
9619 (target_fileio_pread): Likewise.
9621 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9623 * NEWS: Document remote "info proc" and "generate-core-file".
9625 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9627 * gdbarch.sh (find_memory_regions): New callback.
9628 * gdbarch.c, gdbarch.h: Regenerate.
9630 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9631 callback before falling back to target method.
9633 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9634 (linux_target_install_ops): No longer install it.
9636 * linux-tdep.c (linux_find_memory_regions): New function.
9637 (linux_init_abi): Install it.
9639 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9641 * gdbarch.sh (make_corefile_notes): New architecture callback.
9642 * gdbarch.c: Regenerate.
9643 * gdbarch.h: Likewise.
9645 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9646 before target_make_corefile_notes. If NULL is returned, the
9647 target does not support core file generation.
9649 * linux-nat.c: Include "linux-tdep.h".
9650 (find_signalled_thread, find_stop_signal): Remove.
9651 (linux_nat_do_thread_registers): Likewise.
9652 (struct linux_nat_corefile_thread_data): Likewise.
9653 (linux_nat_corefile_thread_callback): Likewise.
9654 (iterate_over_spus): Likewise.
9655 (struct linux_spu_corefile_data): Likewise.
9656 (linux_spu_corefile_callback): Likewise.
9657 (linux_spu_make_corefile_notes): Likewise.
9658 (linux_nat_collect_thread_registers): New function.
9659 (linux_nat_make_corefile_notes): Replace contents by call to
9660 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9661 as native-only callback.
9663 * linux-tdep.h: Include "bfd.h".
9664 (struct regcache): Add forward declaration.
9665 (linux_collect_thread_registers_ftype): New typedef.
9666 (linux_make_corefile_notes): Add prototype.
9667 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9668 "regset.h", and "elf-bfd.h".
9669 (find_signalled_thread, find_stop_signal): New functions.
9670 (linux_spu_make_corefile_notes): Likewise.
9671 (linux_collect_thread_registers): Likewise.
9672 (struct linux_corefile_thread_data): New data structure.
9673 (linux_corefile_thread_callback): New funcion.
9674 (linux_make_corefile_notes): Likewise.
9675 (linux_make_corefile_notes_1): Likewise.
9676 (linux_init_abi): Install it.
9678 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9680 * gdbarch.sh (info_proc): New callback.
9681 * gdbarch.c, gdbarch.h: Regenerate.
9683 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9684 before falling back to the target info_proc callback.
9686 * linux-nat.c: Do not include "cli/cli-utils.h".
9687 (linux_nat_info_proc): Remove.
9688 (linux_target_install_ops): No longer install it.
9690 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9691 (read_mapping): New function.
9692 (linux_info_proc): Likewise.
9693 (linux_init_abi): Install it.
9695 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9697 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9698 * infcmd.c: (info_proc_cmd_1): New function.
9699 (info_proc_cmd): New function, moved here from equivalent routine
9700 orignally in linux-nat.c.
9701 (info_proc_cmd_mappings): Likewise.
9702 (info_proc_cmd_stat): Likewise.
9703 (info_proc_cmd_status): Likewise.
9704 (info_proc_cmd_cwd): Likewise.
9705 (info_proc_cmd_cmdline): Likewise.
9706 (info_proc_cmd_exe): Likewise.
9707 (info_proc_cmd_all): Likewise.
9708 (_initialize_infcmd): Install "info proc" command and subcommands.
9710 * target.h (struct target_ops): Add to_info_proc.
9711 (target_info_proc): Add prototype.
9712 * target.c (target_info_proc): New function.
9714 * procfs.c (procfs_info_proc): Add prototype.
9715 (info_proc_cmd): Rename into ...
9716 (procfs_info_proc): ... this. Update argument types as appropriate
9717 for a to_info_proc implementation. Handle "what" argument.
9718 (procfs_target): Install procfs_info_proc.
9719 (_initialize_procfs): No longer install "info proc" command.
9721 * linux-nat.c: (enum info_proc_what): Remove.
9722 (linux_nat_info_proc_cmd_1): Rename into ...
9723 (linux_nat_info_proc): ... this. Update argument types as appropriate
9724 for a to_info_proc implementation.
9725 (linux_nat_info_proc_cmd): Remove.
9726 (linux_nat_info_proc_cmd_mappings): Likewise.
9727 (linux_nat_info_proc_cmd_stat): Likewise.
9728 (linux_nat_info_proc_cmd_status): Likewise.
9729 (linux_nat_info_proc_cmd_cwd): Likewise.
9730 (linux_nat_info_proc_cmd_cmdline): Likewise.
9731 (linux_nat_info_proc_cmd_exe): Likewise.
9732 (linux_nat_info_proc_cmd_all): Likewise.
9733 (linux_target_install_ops): Install linux_nat_info_proc.
9734 (_initialize_linux_nat): No longer install "info proc" command
9737 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9739 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9740 * config.in, configure: Regenerate.
9742 * target.h (struct target_ops): Add to_fileio_readlink.
9743 (target_fileio_readlink): Add prototype.
9744 * target.c (target_fileio_readlink): New function.
9746 * inf-child.c: Conditionally include <sys/param.h>.
9747 (inf_child_fileio_readlink): New function.
9748 (inf_child_target): Install it.
9750 * remote.c (PACKET_vFile_readlink): New enum value.
9751 (remote_hostio_readlink): New function.
9752 (init_remote_ops): Install it.
9753 (_initialize_remote): Handle vFile:readlink packet type.
9755 2012-01-20 Pedro Alves <palves@redhat.com>
9756 Ulrich Weigand <ulrich.weigand@linaro.org>
9758 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9759 * config.in, configure: Regenerate.
9761 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9762 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9763 (target_fileio_open): Add prototype.
9764 (target_fileio_pwrite): Likewise.
9765 (target_fileio_pread): Likewise.
9766 (target_fileio_close): Likewise.
9767 (target_fileio_unlink): Likewise.
9768 (target_fileio_read_alloc): Likewise.
9769 (target_fileio_read_stralloc): Likewise.
9771 * target.c: Include "gdb/fileio.h".
9772 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9773 (default_fileio_target): New function.
9774 (target_fileio_open): Likewise.
9775 (target_fileio_pwrite): Likewise.
9776 (target_fileio_pread): Likewise.
9777 (target_fileio_close): Likewise.
9778 (target_fileio_unlink): Likewise.
9779 (target_fileio_close_cleanup): Likewise.
9780 (target_fileio_read_alloc_1): Likewise.
9781 (target_fileio_read_alloc): Likewise.
9782 (target_fileio_read_stralloc): Likewise.
9784 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9785 <fcntl.h>, and <unistd.h>.
9786 (inf_child_fileio_open_flags_to_host): New function.
9787 (inf_child_errno_to_fileio_error): Likewise.
9788 (inf_child_fileio_open): Likewise.
9789 (inf_child_fileio_pwrite): Likewise.
9790 (inf_child_fileio_pread): Likewise.
9791 (inf_child_fileio_close): Likewise.
9792 (inf_child_fileio_unlink): Likewise.
9793 (inf_child_target): Install to_fileio routines.
9795 * remote.c (init_remote_ops): Install to_fileio routines.
9797 2012-01-20 Pedro Alves <palves@redhat.com>
9798 Ulrich Weigand <ulrich.weigand@linaro.org>
9800 * remote.c (remote_multi_process_p): Only check for multi-process
9801 protocol feature, do not check for extended protocol.
9802 (remote_supports_multi_process): Check for extended protocol here.
9803 (set_general_process): Likewise.
9804 (extended_remote_kill): Likewise.
9805 (remote_pid_to_str): Likewise.
9806 (remote_query_supported): Always query multiprocess mode.
9808 2012-01-20 Pedro Alves <palves@redhat.com>
9809 Ulrich Weigand <ulrich.weigand@linaro.org>
9811 * inferior.h (struct inferior): Add fake_pid_p.
9812 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9813 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9814 magic_null_ptid since the remote side doesn't provide a real PID.
9816 2012-01-19 Tom Tromey <tromey@redhat.com>
9818 * NEWS: Combine the two Python sections.
9820 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9822 * target.h (target_close): Update comment on the target's unpush state.
9824 2012-01-19 Pedro Alves <palves@redhat.com>
9826 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9827 linux_nat_async directly instead of going through the target
9829 * target.c (unpush_target): Close target after unpushing it, not
9832 2012-01-19 Gary Benson <gbenson@redhat.com>
9834 * mdebugread.c (sort_blocks): Replace integer constants with ones
9835 derived from FIRST_LOCAL_BLOCK.
9837 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9838 Jan Kratochvil <jan.kratochvil@redhat.com>
9841 * symfile.c (find_separate_debug_file): New function.
9842 (terminate_after_last_dir_separator): Likewise.
9843 (find_separate_debug_file_by_debuglink): Also try realpath.
9844 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9845 * configure: Regenerate.
9846 * config.in: Regenerate.
9848 2012-01-18 Doug Evans <dje@google.com>
9850 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9851 (main.o): Remove rule.
9852 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9853 (--with-sysroot): Rewrite.
9854 * configure: Regenerate.
9855 * config.in: Regenerate.
9857 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9859 * parse.c (initialize_expout): New function.
9860 (reallocate_expout): Likewise.
9861 (parse_exp_in_context): Use `initialize_expout' and
9862 `reallocate_expout' when appropriate.
9864 2012-01-18 Pedro Alves <palves@redhat.com>
9866 * record.c (struct record_breakpoint, record_breakpoint_p)
9867 (record_breakpoints): New.
9868 (record_insert_breakpoint, record_remove_breakpoint): Manage
9869 record breakpoints list. Only remove breakpoints from the
9870 inferior if they had been inserted there in the first place.
9872 2012-01-17 Doug Evans <dje@google.com>
9874 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9875 if we know we don't have a file name to look for.
9877 2012-01-17 Pedro Alves <palves@redhat.com>
9879 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9880 the frame's stop reason is UNWIND_UNAVAILABLE.
9882 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9884 Fix compilation error.
9885 * m2-exp.y (yyerror): Use ANSI C prototype.
9887 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9889 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9890 (growbuf_by_size): Likewise.
9891 (yyerror): Likewise.
9892 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9893 (modblock): Remove variable (was #if 0'ed).
9894 (parse_number): Convert prototype from K&R to ANSI C.
9895 (yyerror): Likewise.
9896 * objc-exp.y (parse_number): Likewise.
9897 (yyerror): Likewise.
9898 (yylex): Remove #if 0'ed code.
9899 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9900 (yyerror): Likewise.
9902 2012-01-16 Tom Tromey <tromey@redhat.com>
9905 * symtab.h (compare_filenames_for_search): Declare.
9906 * symtab.c (compare_filenames_for_search): New function.
9907 (iterate_over_some_symtabs): Use it.
9908 * symfile.h (struct quick_symbol_functions)
9909 <map_symtabs_matching_filename>: Change spec.
9910 * psymtab.c (partial_map_symtabs_matching_filename): Use
9911 compare_filenames_for_search. Update for new spec.
9912 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9913 compare_filenames_for_search. Update for new spec.
9914 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9916 2012-01-16 Tom Tromey <tromey@redhat.com>
9919 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9920 (struct main_type) <flag_flag_enum>: New field.
9921 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9922 * NEWS: Add entries.
9923 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9925 * python/lib/gdb/printing.py (_EnumInstance): New class.
9926 (FlagEnumerationPrinter): Likewise.
9928 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9930 * breakpoint.c (create_sals_from_address_default): New function.
9931 (create_breakpoints_sal_default): Likewise.
9932 (decode_linespec_default): Likewise.
9933 (is_marker_spec): Removed.
9934 (strace_marker_p): New function.
9935 (init_breakpoint_sal): Using `strace_marker_p' instead of
9937 (create_breakpoint): Call method `create_sals_from_address' from
9938 breakpoint_ops, replacing code that created SALs conditionally
9939 on the type of the breakpoint. Call method `create_breakpoints_sal',
9940 replacing code that created breakpoints conditionally on the type
9942 (base_breakpoint_create_sals_from_address): New function.
9943 (base_breakpoint_create_breakpoints_sal): Likewise.
9944 (base_breakpoint_decode_linespec): Likewise.
9945 (base_breakpoint_ops): Add methods
9946 `base_breakpoint_create_sals_from_address',
9947 `base_breakpoint_create_breakpoints_sal' and
9948 `base_breakpoint_decode_linespec'.
9949 (bkpt_create_sals_from_address): New function.
9950 (bkpt_create_breakpoints_sal): Likewise.
9951 (bkpt_decode_linespec): Likewise.
9952 (tracepoint_create_sals_from_address): Likewise.
9953 (tracepoint_create_breakpoints_sal): Likewise.
9954 (tracepoint_decode_linespec): Likewise.
9955 (strace_marker_create_sals_from_address): Likewise.
9956 (strace_marker_create_breakpoints_sal): Likewise.
9957 (strace_marker_decode_linespec): Likewise.
9958 (strace_marker_breakpoint_ops): New variable.
9959 (addr_string_to_sals): Remove `marker_spec'. Call method
9960 `decode_linespec' from breakpoint_ops, replacing code that decoded
9961 an address string into a SAL. Use `strace_marker_p' instead of
9963 (strace_command): Decide whether we are dealing with a static
9964 tracepoint with marker or not. Use the appropriate breakpoint_ops.
9965 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
9966 * breakpoint.h (linespec_result, linespec_sals): New forward
9968 (breakpoint_ops) <create_sals_from_address>,
9969 <create_breakpoints_sal>, <decode_linespec>: New methods.
9971 2012-01-14 Doug Evans <dje@google.com>
9973 * NEWS: Update text for "maint set python print-stack".
9974 It is deprecated in gdb 7.4 and deleted in 7.5.
9976 2012-01-13 Eli Zaretskii <eliz@gnu.org>
9978 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
9981 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9983 * configure: Regenerate.
9984 * config.in: Regenerate.
9986 2012-01-12 Keith Seitz <keiths@redhat.com>
9989 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
9990 (ANONYMOUS_UNION_NAME): Define.
9991 (is_path_expr_parent): New function.
9992 (get_path_expr_parent): New function.
9993 (is_anonymous_child): New function.
9994 (create_child_with_value): If the child is anonymous and without
9995 a name, assign an object name to it.
9996 (c_describe_child): Use get_path_expr_parent to determine
9997 the parent expression.
9998 If there field represents an anonymous struct or union and
9999 has no name, set an appropriate display name and expression.
10000 (cplus_describe_child): Likewise.
10002 2012-01-12 Pedro Alves <palves@redhat.com>
10004 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10005 available when %ebp is found to be zero (outermost).
10007 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10009 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10010 an internal gdb_static_assert.
10011 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10013 2012-01-11 Tom Tromey <tromey@redhat.com>
10016 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10017 catch" and "catch throw".
10019 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10021 * blockframe.c (block_innermost_frame): Start search from selected
10022 frame, if present, or otherwise the current frame.
10024 * c-exp.y (variable): Update innermost_block for
10025 'block COLONCOLON NAME' clause.
10026 * m2-exp.y (variable): Ditto.
10027 * objc-exp.y (variable): Ditto.
10029 2012-01-10 Tom Tromey <tromey@redhat.com>
10032 * python/python.c (finish_python_initialization): Set sys.argv.
10034 2012-01-10 Doug Evans <dje@google.com>
10036 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10037 "want_line_info". All callers updated.
10038 (dwarf_decode_lines_1): New function.
10039 (handle_DW_AT_stmt_list): Add function comment.
10040 New arg "want_line_info". All callers updated.
10041 (read_file_scope,read_type_unit_scope): Move comment from
10042 handle_DW_AT_stmt_list to here.
10044 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10046 Fix regression after libiberty/ update for GCC PR 6057 and others.
10047 * c-exp.y (operator) <OPERATOR DELETE>
10048 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10049 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10050 (make_builtin_type, make_name): New variable i, add gdb_assert.
10051 (operator) <OPERATOR NEW>: Update ARGS to 3.
10052 (operator) <OPERATOR DELETE>: Add trailing space.
10053 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10054 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10055 * cp-support.c (cp_canonicalize_string): Check NULL from
10056 cp_comp_to_string, call warning and return.
10058 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10060 Fix duplicate .o files after omitting libbfd.a.
10061 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10062 (SFILES): Add corelow.c.
10063 (COMMON_OBS): Add corelow.o.
10064 (ALLDEPFILES): Remove corelow.c.
10065 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10066 * config/alpha/alpha-osf3.mh: Likewise.
10067 * config/alpha/fbsd.mh: Likewise.
10068 * config/arm/nbsdaout.mh: Likewise.
10069 * config/arm/nbsdelf.mh: Likewise.
10070 * config/i386/i386gnu.mh: Likewise.
10071 * config/ia64/hpux.mh: Likewise.
10072 * config/ia64/linux.mh: Likewise.
10073 * config/m32r/linux.mh: Likewise.
10074 * config/m68k/linux.mh: Likewise.
10075 * config/mips/irix5.mh: Likewise.
10076 * config/mips/irix6.mh: Likewise.
10077 * config/pa/hpux.mh: Likewise.
10078 * config/pa/linux.mh: Likewise.
10079 * config/powerpc/aix.mh: Likewise.
10080 * config/sparc/linux.mh: Likewise.
10081 * config/sparc/linux64.mh: Likewise.
10082 * config/sparc/sol2.mh: Likewise.
10083 * config/vax/vax.mh: Likewise.
10084 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10085 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10086 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10087 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10088 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10089 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10090 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10091 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10092 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10093 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10094 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10095 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10096 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10097 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10098 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10099 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10100 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10101 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10102 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10103 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10104 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10105 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10106 corelow.o from gdb_target_obs.
10107 * corefile.c (core_target): Update the comment on NULL value.
10108 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10109 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10110 MATCHES. Drop YUMMY set on NULL.
10111 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10112 reclaim CORE_DATA if it is already NULL.
10114 2012-01-09 Doug Evans <dje@google.com>
10116 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10117 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10119 2012-01-09 Keith Seitz <keiths@redhat.com>
10121 * breakpoint.c (wrapper.h): Don't include.
10123 2012-01-09 Keith Seitz <keiths@redhat.com>
10125 * Makefile.in (SFILES): Remove wrapper.c.
10126 (HFILES_NO_SRCDIR): Remove wrapper.h.
10127 (COMMON_OBS): Remove wrapper.o.
10128 * cli/cli-interp.c: Don't inlude wrapper.h.
10129 * corelow.c: Likewise.
10130 (core_open): Replace gdb_target_find_new_threads with
10131 TRY_CATCH around target_find_new_threads.
10132 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10133 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10134 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10135 evaluate_expression.
10136 (varobj_set_value): Likewise for evaluate_expression and
10138 (install_new_variable): Likewise for value_fetch_lazy.
10139 (adjust_value_for_child_access): Likewise for value_ind.
10140 (c_describe_child): Likewise for value_subscript and
10142 (c_value_of_root): Likewise for evaluate_expression.
10143 * wrapper.c: Remove.
10144 * wrapper.h: Remove.
10146 2012-01-09 Doug Evans <dje@google.com>
10148 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10149 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10150 "abfd" args with "section". All callers updated.
10151 Error checking code moved ...
10152 (error_check_comp_unit_head): ... here. New function.
10153 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10154 Delete arg "abfd". New arg "type_offset". All callers updated.
10155 (create_debug_types_hash_table): Simplify by using
10156 read_and_check_type_unit_head.
10158 * parser-defs.h (namecopy): Delete.
10159 * parse.c (namecopy, namecopy_size): Move into copy_name.
10161 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10163 Partially fix duplicate .o files after omitting libbfd.a.
10164 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10165 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10166 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10167 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10168 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10169 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10170 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10172 2012-01-09 Pedro Alves <palves@redhat.com>
10174 * MAINTAINERS: Update my email address.
10176 2012-01-08 Doug Evans <dje@google.com>
10178 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10179 n_type_units. Rename type_comp_units to all_type_units.
10181 (add_signatured_type_cu_to_table): Renamed from
10182 add_signatured_type_cu_to_list. All callers updated.
10184 * gdbtypes.h (struct cplus_struct_type): Delete member
10185 nfn_fields_total. All uses removed.
10187 2012-01-06 Doug Evans <dje@google.com>
10189 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10191 (dwarf2_find_comp_unit): Delete.
10192 (process_psymtab_comp_unit): Make result "void".
10193 Delete args buffer, info_ptr, buffer_size, and replace with
10194 "section". All callers updated.
10195 (dwarf2_build_psymtabs_hard): Simplify.
10197 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10198 Thiago Jung Bauermann <bauerman@br.ibm.com>
10200 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10201 before `struct gdb_exception'.
10202 * breakpoint.c (update_global_location_list_nothrow)
10203 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10204 * cp-abi.c (value_rtti_type): Likewise.
10205 * cp-support.c (cp_validate_operator): Likewise.
10206 * infrun.c (insert_exception_resume_breakpoint)
10207 (check_exception_resume, keep_going): Likewise.
10208 * mi-interp.c (mi_breakpoint_created)
10209 (mi_breakpoint_modified): Likewise.
10210 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10211 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10212 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10214 2012-01-05 Doug Evans <dje@google.com>
10216 * dwarf2read.c (statement_prologue): Delete, unused.
10218 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10219 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10221 * dwarf2read.c (comp_unit_header): Delete, unused.
10223 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10225 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10226 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10228 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10230 * infrun.c (normal_stop): Don't skip calling the normal_stop
10231 observers if the thread was doing a multi-step, but stopped for
10232 some reason other than stepping.
10234 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10236 * cli/cli-decode.h: Add comments.
10237 (CMD_LIST_AMBIGUOUS): Moved to command.h
10238 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10239 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10240 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10241 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10242 (add_com, add_com_alias, add_info, add_info_alias)
10243 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10245 * command.h: Add and adjust comments.
10246 (CMD_LIST_AMBIGUOUS): Moved here.
10247 (help_cmd, help_cmd_list): Delete declarations.
10249 2012-01-04 Doug Evans <dje@google.com>
10251 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10252 All callers updated.
10253 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10254 Replace all arguments with "per_cu". All callers updated.
10256 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10258 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10259 New arg "per_cu". All callers updated.
10261 Delete #if 0'd out code.
10262 * language.c (binop_result_type): Delete.
10263 (simple_type, ordered_type, same_type, integral_type): Delete.
10264 (numeric_type, character_type, string_type, boolean_type): Delete.
10265 (float_type, structured_type): Delete.
10266 * language.h: Update.
10268 2012-01-04 Tom Tromey <tromey@redhat.com>
10270 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10272 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10274 * corefile.c (close_exec_file): Delete.
10275 (reopen_exec_file): Remove commented out code that seems related
10276 to close_exec_file, which is being deleted here.
10277 * inferior.h (close_exec_file): Delete.
10278 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10280 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10282 * ada-lang.c: #include "cli/cli-utils.h".
10283 (get_selections): Use skip_spaces.
10284 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10285 (catch_ada_exception_command_split): Use skip_spaces.
10286 (ada_decode_assert_location): Likewise.
10288 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10290 * linespec.c (decode_line_internal): Check for C++ or Java
10291 compound constructs only if the current language is C, C++
10294 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10297 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10298 Joel Brobecker <brobecker@adacore.com>
10299 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10300 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10302 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10303 fall through into AT_ENTRY_POINT.
10304 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10305 DUMMY_ADDR with it.
10306 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10307 PPC_INSN_SIZE skip to 3 times.
10309 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10311 * linespec.c (add_minsym): Preserve function descriptors.
10313 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10315 * breakpoint.c (all_locations_are_pending): Consider locations
10316 in program spaces executing during startup pending as well.
10318 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10320 Copyright year update in most files of the GDB Project.
10322 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10324 * copyright.sh: Delete.
10325 * copyright.py: Rewrite.
10327 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10329 * gnulib/extra/update-copyright: New file, imported from gnulib.
10331 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10333 * README (Copyright and License Notices): New section.
10335 2012-01-03 Tom Tromey <tromey@redhat.com>
10338 * python/py-value.c (valpy_dereference, valpy_get_address
10339 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10340 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10341 (valpy_absolute, valpy_richcompare): Free intermediate values.
10343 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10345 * ada-lang.c: Reformat the copyright notice.
10347 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10349 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10350 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10351 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10352 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10353 Revert this part of:
10354 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10355 Build gdb directly from *.o files not using libgdb.a.
10356 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10358 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10360 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10361 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10362 Reformat the copyright header.
10364 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10366 Revert this part of:
10367 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10368 Remove the gdbtui binary.
10369 * gdb.c (main): Remove args.interpreter_p initialization.
10370 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10371 * main.h (struct captured_main_args): Remove interpreter_p.
10373 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10375 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10377 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10379 * top.c (print_gdb_version): Update copyright year.
10381 2012-01-02 Yao Qi <yao@codesourcery.com>
10383 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10385 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10386 Joel Brobecker <brobecker@adacore.com>
10388 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10389 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10391 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10392 fall through into AT_ENTRY_POINT.
10393 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10394 DUMMY_ADDR with it.
10395 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10396 PPC_INSN_SIZE skip to 3 times.
10398 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10400 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10402 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10404 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10406 Build gdb directly from *.o files not using libgdb.a.
10407 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10408 (COMMON_OBS): Remove solib-target.o.
10409 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10410 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10411 (LIBGDB_OBS, libgdb.a): Move it above.
10412 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10413 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10414 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10415 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10416 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10417 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10418 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10419 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10420 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10421 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10422 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10423 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10424 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10425 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10426 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10427 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10428 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10429 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10430 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10431 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10432 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10433 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10434 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10435 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10436 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10437 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10438 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10440 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10442 Remove the gdbtui binary.
10443 * .gitignore (/gdbtui): Remove.
10444 * Makefile.in (TUI): Remove.
10445 (SUBDIR_TUI_OBS): Remove tui-main.o.
10446 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10447 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10448 (tui-main.o): Remove.
10449 (all_object_files): Remove tui-main.o.
10450 * NEWS: New note for the gdbtui removal.
10451 * configure: Rebuilt.
10452 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10453 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10454 CONFIG_UNINSTALL respectively.
10455 * gdb.c (main): Remove args.interpreter_p initialization.
10456 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10457 * main.h (struct captured_main_args): Remove interpreter_p.
10458 * tui/tui-main.c: Remove.
10460 2012-01-01 Doug Evans <dje@google.com>
10462 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10463 (dwarf2_physname, read_import_statement): Ditto.
10464 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10465 (process_structure_scope read_subroutine_type): Ditto.
10466 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10467 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10468 (dwarf2_fetch_die_location_block): Ditto.
10469 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10471 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10472 All callers updated.
10473 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10474 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10475 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10477 * dwarf2read.c (load_cu): Move assert to more useful location.
10479 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10480 All callers updated.
10482 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10483 (dwarf2_elf_names): Minor reformat.
10484 (dwarf2_per_cu_data): Tweak comment.
10485 (dwarf2_read_section): Fix comment.
10486 (create_all_comp_units): Fix comment.
10487 (load_full_comp_unit): Fix comment.
10488 (process_full_comp_unit): Fix comment.
10489 (read_signatured_type): Fix comment.
10491 For older changes see ChangeLog-2011.
10497 version-control: never