1 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
3 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
5 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
7 * eval.c (evaluate_subexp_standard): Eliminate single-use
10 2012-09-21 Yao Qi <yao@codesourcery.com>
12 * mi/mi-interp.c: Declare mi_record_changed.
13 (mi_interpreter_init): Call observer_attach_record_changed.
14 (mi_record_changed): New.
15 * record.c (record_open): Call observer_notify_record_changed.
16 (cmd_record_stop): Call observer_notify_record_changed.
19 2012-09-20 Tom Tromey <tromey@redhat.com>
22 * python/python.c (finalize_python): New function.
23 (_initialize_python): Make a final cleanup.
25 2012-09-19 Doug Evans <dje@google.com>
27 * buildsym.h (param_symbols): Delete, unused.
28 (context_stack): Delete member "params", unused.
29 * buildsym.c (push_context): Update.
30 * dwarf2read.c (read_func_scope): Update.
32 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
34 * sh-tdep.c (sh_register_convert_to_virtual)
35 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
36 all callers. Just do a memcpy if not the little-endian case.
38 * h8300-tdep.c (h8300_gdbarch_init): Invoke
39 set_gdbarch_double_format and set_gdbarch_long_double_format.
40 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
41 set_gdbarch_double_format.
42 * sh-tdep.c (sh_gdbarch_init): Likewise.
44 * NEWS: Document the removal of SH's 'regs' command.
45 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
48 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
50 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
53 2012-09-18 Joel Brobecker <brobecker@adacore.com>
55 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
56 language when iterating over symbols.
58 2012-09-18 Yao Qi <yao@codesourcery.com>
60 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
61 (mi_interpreter_init): Call observer_attach_tsv_created and
62 observer_attach_tsv_deleted.
63 (mi_tsv_created, mi_tsv_deleted): New.
64 * tracepoint.c (delete_trace_state_variable): Call
65 observer_notify_tsv_deleted.
66 (trace_variable_command): Call observer_notify_tsv_created.
67 (delete_trace_variable_command): Call
68 observer_notify_tsv_deleted.
69 (create_tsv_from_upload): Call observer_notify_tsv_created.
72 2012-09-18 Yao Qi <yao@codesourcery.com>
74 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
75 if traceframe changed.
76 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
78 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
79 (mi_interpreter_init): Hook mi_traceframe_changed to observer
81 (mi_traceframe_changed): New.
82 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
84 * NEWS: Mention the new MI notification.
86 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
88 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
90 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
92 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
93 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
94 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
95 Extend code also for PaX support. Convert all gdb_assert to warning
98 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
100 Implement auto-load user conveniences suggested by Doug Evans.
101 * auto-load.c: Include top.h.
102 (file_is_auto_load_safe): New variable advice_printed. Print advice.
103 (_initialize_auto_load): New variable scripts_directory_help. Mention
104 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
105 scripts-directory. Document in online help one can use also files for
106 set auto-load safe-path.
107 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
108 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
110 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
112 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
115 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
117 * m2-valprint.c (m2_print_array_contents): Eliminate variable
118 ELTLEN and use TYPE_LENGTH directly.
119 (m2_val_print): Likewise.
120 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
121 variable LEN and use TYPE_LENGTH directly.
122 (m68k_svr4_store_return_value): Likewise.
123 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
124 ARGLEN and use TYPE_LENGTH directly.
125 (mips_o64_push_dummy_call): Likewise.
126 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
127 variable LENGTH and use TYPE_LENGTH directly.
128 (s390_function_arg_float): Likewise.
129 (s390_function_arg_integer): Likewise.
130 (s390_push_dummy_call): Likewise.
131 (s390_return_value_convention): Likewise.
132 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
133 TYPE_LENGTH directly.
135 2012-09-17 Yao Qi <yao@codesourcery.com>
137 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
138 Update comment to add_setshow_integer_cmd.
139 * cli/cli-setshow.c (do_set_command): Handle case
140 'var_zuinteger_unlimited'.
141 (do_show_command): Likewise.
142 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
143 for command 'remotetimeout'.
144 * command.h (enum var_types): New zuinteger_unlimited. Update comment
146 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
147 for command 'set listsize'.
149 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
151 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
154 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
157 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
158 (frame_pop): Drop also TAILCALL_FRAME frames.
159 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
161 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
162 Pedro Alves <palves@redhat.com>
165 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
166 function start if we are already at function start. Both for
167 reverse-next and for reverse-step into function without line number
170 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
172 Code cleanup - rename 'inline' depth to 'artificial' depth.
173 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
174 frame_id_artificial_p, extend the comment.
175 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
176 * frame.c (fprint_frame_id): Rename at a user, change debug output
177 text to "artificial=".
178 (skip_inlined_frames): Rename to ...
179 (skip_artificial_frames): ... here. Extend the comment.
180 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
181 (frame_id_inlined_p): Rename to ...
182 (frame_id_artificial_p): ... here. Rename at a user.
183 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
184 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
186 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
188 (frame_id_inlined_p): Rename to ...
189 (frame_id_artificial_p): ... here.
190 * inline-frame.c (inline_frame_this_id): Rename at a user.
192 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
194 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
195 vector variables using vector_size syntax rather than array
198 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
200 * valarith.c (value_concat): Replace unsafe ALLOCA with
203 2012-09-14 Pedro Alves <palves@redhat.com>
205 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
207 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
209 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
210 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
211 data-directory as appropriate.
213 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
215 * printcmd.c (ui_printf): Eliminate single-use variable
218 2012-09-14 Yao Qi <yao@codesourcery.com>
219 Pedro Alves <palves@redhat.com>
221 * valops.c (value_assign): Move observer_notify_target_changed
222 below to replace reinit_frame_cache.
224 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
226 Refactor Python "gdb" module into a proper Python package, by
227 introducing a new "_gdb" module for code implemented in C, and
228 using reload/__import__ instead of exec.
229 * python/lib/gdb/__init__.py: Import * from _gdb.
230 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
231 prompt_hook, sys.argv): Moved from finish_python_initialization.
232 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
233 (packages, auto_load_packages): New list and function replacing
234 module_dict and auto-loading code, using __file__ instead of
235 gdb.PYTHONDIR and reload/__import__ instead of exec.
236 (GdbSetPythonDirectory): Replacing function of the same name
237 from finish_python_initialization, using reload/__import__ instead
238 of exec, as well as call auto_load_packages.
239 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
240 gdb_python_module and not gdb_module.
241 * python/python-internal.h (gdb_python_module): Declare.
242 * python/python.c (gdb_python_module): New global.
243 (before_prompt_hook): Check gdb_python_module and not gdb_module.
244 (_initialize_python): Rename gdb module to _gdb.
245 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
246 (finish_python_initialization): Move Python code to
247 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
250 2012-09-13 Pedro Alves <palves@redhat.com>
252 * Makefile.in (COMMON_OBS): Add registry.o.
253 * registry.c: New file.
254 * registry.h (struct registry_container): Declare.
255 (registry_data_callback): New typedef.
256 (struct registry_data, struct registry_data_registration, struct
257 registry_data_registry): New type.
258 (register_data_with_cleanup, registry_alloc_data)
259 (registry_callback_adaptor, registry_clear_data)
260 (registry_container_free_data, registry_set_data, registry_data):
262 (DEFINE_REGISTRY): Refactor structures and functions as shims over
263 the new common structures and functions.
264 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
267 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
269 * remote.c (remote_insert_hw_breakpoint): Throw exception if
270 there is an error inserting hardware breakpoints and use the
271 error message from the target.
273 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
274 Catch this exception and print the error message contained within. Do not
275 print the default hardware error breakpoint message in this case.
277 2012-09-12 Doug Evans <dje@google.com>
279 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
282 2012-09-11 Doug Evans <dje@google.com>
284 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
285 .gdb_index symbol attributes if there are none.
287 2012-09-11 Joel Brobecker <brobecker@adacore.com>
289 * symtab.h (struct minimal_symbol) [has_size]: New field.
290 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
291 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
292 * printcmd.c (build_address_symbolic): Only filter out zero-sized
293 minimal symbols if the symbol's size is actually known.
294 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
295 of msymbol's size field. Add comment.
296 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
297 SET_MSYMBOL_SIZE to set the minimal symbol size.
299 2012-09-11 Joel Brobecker <brobecker@adacore.com>
301 * minsyms.c (install_minimal_symbols): Use memset to fill entire
302 minimal_symbol struct object, rather than setting some of its
305 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
307 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
308 passed_a_ptr flag when displaying typedef types.
310 2012-09-10 Joel Brobecker <brobecker@adacore.com>
312 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
313 the optimized_out flag is preserved.
315 2012-09-10 Anthony Green <green@moxielogic.com>
317 * moxie-tdep.c (moxie_analyze_prologue): Update for function
318 prologue changes in GCC.
320 2012-09-10 Keith Seitz <keiths@redhat.com>
323 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
324 (BOOL_CONVERSION_BADNESS): ... this.
325 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
326 (rank_one_type): Allow all boolean conversions
327 permitted by the standard.
329 2012-09-06 Tom Tromey <tromey@redhat.com>
331 * python/py-newobjfileevent.c (create_new_objfile_event_object):
332 Don't decref py_objfile.
334 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
336 Do not enable -lmcheck by default when Python is enabled with
338 * configure.ac: (python_has_threads) New variable, by testing
339 if WITH_THREAD is defined in Python.h.
340 Move --enable-lmcheck after --with-python.
341 Do not enable -lmcheck by default if python_has_threads=yes.
342 Warn if --enable-lmcheck and python_has_threads=yes.
343 * configure: Regenerate.
345 2012-08-31 Yao Qi <yao@codesourcery.com>
347 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
348 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
349 Update some commands.
350 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
351 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
354 2012-08-31 Yao Qi <yao@codesourcery.com>
356 * mi/mi-cmds.c (mi_cmds): Add 'static'.
358 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
360 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
362 2012-08-29 Doug Evans <dje@google.com>
364 * main.c (print_gdb_help): Remove reference to
365 --use-deprecated-index-sections.
367 2012-08-28 Yao Qi <yao@codesourcery.com>
369 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
370 (init_cmds): Call add_setshow_uinteger_cmd for command
371 'max-user-call-depth'.
372 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
373 declaration of 'max_user_call_depth'.
374 * frame.c (backtrace_limit): Add 'unsigned'.
375 (_initialize_frame): Call add_setshow_uinteger_cmd for command
377 * remote.c (remoteaddresssize): Add 'unsigned'.
378 (remote_address_masked): Change local var 'address_size' to
380 (_initialize_remote): Call add_setshow_uinteger_cmd for
382 * top.c (history_size): Add 'unsigned'.
383 (show_commands): Change local variables to 'unsigned'.
384 (set_history_size_command): Don't check history_size is negative.
385 Adjust the condition to call unstifle_history and set history_size
388 2012-08-28 Pedro Alves <palves@redhat.com>
392 * infcmd.c (default_print_one_register_info): New, factored out
393 from default_print_registers_info.
394 (default_print_registers_info): Use it. Mark value unavailable if
396 (registers_info): Print user registers with
397 default_print_one_register_info.
399 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
402 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
403 is not NULL before referencing it.
405 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
407 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
408 variable pc. Call find_pc_line instead of find_pc_overlay, restore
411 2012-08-27 Eli Zaretskii <eliz@gnu.org>
412 Jan Kratochvil <jan.kratochvil@redhat.com>
414 * auto-load.c (auto_load_objfile_script): Rename to ...
415 (auto_load_objfile_script_1): ... here, change variable realname to
416 parameter realname, document it, add return value, add variable retval.
417 (auto_load_objfile_script): New function.
419 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
421 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
422 followed by a whitespace.
424 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
427 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
428 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
429 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
432 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
434 * memattr.c (create_mem_region): Fix memory region overlapping
437 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
439 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
440 with xmalloc/cleanup.
441 * mt-tdep.c (mt_push_dummy_call): Likewise.
442 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
443 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
445 2012-08-24 Yao Qi <yao@codesourcery.com>
447 * jv-exp.y (push_expression_name): Add "." at the end of error
450 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
452 Document how to return from "python-interactive" to GDB.
453 * python/python.c (_initialize_python): Update documentation.
455 2012-08-23 Pedro Alves <palves@redhat.com>
457 * infrun.c (_initialize_infrun) <handle command help text>:
458 Mention that multiple signals are supported.
460 2012-08-23 Pedro Alves <palves@redhat.com>
462 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
465 2012-08-23 Yao Qi <yao@codesourcery.com>
467 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
468 (tfind_1): Don't call registers_changed, set_traceframe_num,
469 and clear_traceframe_info.
470 Call set_current_traceframe.
471 (set_current_traceframe): call set_traceframe_num.
473 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
475 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
476 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
478 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
480 Enable readline in Python in a GDB-specific way and block the
481 standard Python readline module to prevent conflicts with GDB.
482 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
483 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
484 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
485 * python/py-gdb-readline.c: New file.
486 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
488 * python/python.c (_initialize_python): Call
489 gdbpy_initialize_gdb_readline.
491 2012-08-22 Keith Seitz <keiths@redhat.com>
493 * defs.h: Include build-gnulib/config.h
495 2012-08-22 Joseph Myers <joseph@codesourcery.com>
497 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
500 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
502 Add a new "python-interactive" command that starts a standard
503 Python interactive prompt with "pi" as alias, and add "py" as
504 an alias to "python".
505 * NEWS: Mention the new commands.
506 * python/python.c (eval_python_command): New function.
507 (python_interactive_command): For "python-interactive" with
508 arguments, call eval_python_command. For "python-interactive"
509 without arguments, call PyRun_InteractiveLoop.
510 (_initialize_python): Add "python-interactive" command with
511 "pi" as alias, and add "py" as an alias to "python".
513 2012-08-22 Tom Tromey <tromey@redhat.com>
515 * defs.h (quit_flag): Don't declare.
516 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
517 (QUIT): Use new functions.
518 * event-top.c (command_handler): Use clear_quit_flag.
519 (handle_sigint): Use set_quit_flag.
520 (async_request_quit): Use check_quit_flag. Don't check
522 * exceptions.c (throw_exception): Use clear_quit_flag.
523 * main.c (captured_main): Use clear_quit_flag.
524 * python/python.c (clear_quit_flag, set_quit_flag)
525 (check_quit_flag): New functions.
526 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
528 * remote.c (remote_wait_as): Use check_quit_flag,
530 (remote_start_remote): Call QUIT.
531 * symfile.c (load_progress): Use check_quit_flag.
532 * top.c (command_loop): Use clear_quit_flag.
533 (command_line_input): Call QUIT.
534 * utils.c (quit_flag): Conditionally define.
535 (clear_quit_flag, check_quit_flag, set_quit_flag): New
537 (prompt_for_continue): Call QUIT. Use quit, not
539 * remote-mips.c (mips_expect_timeout): Call QUIT.
540 * monitor.c (monitor_expect): Call QUIT.
542 2012-08-22 Tom Tromey <tromey@redhat.com>
544 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
545 (async_init_signals): Update.
546 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
547 (SIGWINCH_HANDLER_BODY): Remove.
549 2012-08-22 Tom Tromey <tromey@redhat.com>
551 * jit.c (jit_object_close_impl): Don't malloc the objfile
553 * objfiles.c (allocate_objfile): Don't malloc the objfile
555 (free_objfile): Don't free the objfile name.
556 * objfiles.h (struct objfile) <name>: Update comment.
557 * symfile.c (reread_symbols): Fix reference counting. Don't
560 2012-08-22 Tom Tromey <tromey@redhat.com>
562 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
563 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
564 (symfile_bfd_open): Likewise.
565 (generic_load): Likewise.
566 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
567 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
569 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
571 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
572 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
573 (pmon_load_fast): Likewise.
574 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
575 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
576 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
577 (macho_check_dsym): Likewise.
578 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
579 (m32r_upload_command): Likewise.
580 * gdb_bfd.h (gdb_bfd_cache): Declare.
581 * gdb_bfd.c (struct gdb_bfd_data): New.
582 (gdb_bfd_cache): New global.
583 (struct gdb_bfd_cache_search): New.
584 (hash_bfd): New function.
586 (gdb_bfd_open): Likewise.
587 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
588 (gdb_bfd_unref): Remove closed BFD from cache. Update for
590 * exec.c (exec_file_attach): Use gdb_bfd_open.
591 * dsrec.c (load_srec): Use gdb_bfd_open.
593 2012-08-22 Tom Tromey <tromey@redhat.com>
595 * dwarf2read.c (macro_start_file): Update.
596 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
597 (free_objfile_per_bfd_storage): Destroy macro_cache.
598 (allocate_objfile, free_objfile): Update.
599 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
601 (struct objfile) <macro_cache>: Remove.
602 * symfile.c (reread_symbols): Update.
603 * symmisc.c (print_symbol_bcache_statistics): Update.
604 (print_objfile_statistics): Update.
606 2012-08-22 Tom Tromey <tromey@redhat.com>
608 * elfread.c (elf_symtab_read): Update.
609 * objfiles.c (objfiles_bfd_data): New global.
610 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
611 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
612 (allocate_objfile, free_objfile): Update.
613 (_initialize_objfiles): Initialize objfiles_bfd_data.
614 * objfiles.h (struct objfile_per_bfd_storage): New.
615 (struct objfile) <per_bfd>: New field.
616 <filename_cache>: Remove.
617 (set_objfile_per_bfd): Declare.
618 * symfile.c (reread_symbols): Update. Call
620 (allocate_symtab): Update.
621 * symmisc.c (print_symbol_bcache_statistics): Update.
622 (print_objfile_statistics): Print the size of the BFD obstack.
624 2012-08-22 Tom Tromey <tromey@redhat.com>
626 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
627 * gdb_bfd.c: Use DEFINE_REGISTRY.
628 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
629 (gdb_bfd_ref): Call bfd_alloc_data.
630 (gdb_bfd_unref): Call bfd_free_data.
632 2012-08-22 Tom Tromey <tromey@redhat.com>
634 * registry.h (struct registry_fields): New.
635 (REGISTRY_FIELDS): Redefine.
636 (REGISTRY_ACCESS_FIELD): New macro.
637 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
640 2012-08-22 Tom Tromey <tromey@redhat.com>
642 * auto-load.c (_initialize_auto_load): Update.
643 * solib-svr4.c (_initialize_svr4_solib): Update
644 * solib-dsbt.c (_initialize_dsbt_solib): Update.
645 * solib-darwin.c (_initialize_darwin_solib): Update.
646 * registry.h: New file.
647 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
648 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
649 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
650 (register_program_space_data_with_cleanup)
651 (register_program_space_data, program_space_alloc_data)
652 (clear_program_space_data, set_program_space_data)
653 (program_space_data): Don't declare.
654 * progspace.c: Use DEFINE_REGISTRY.
655 (struct program_space_data, struct
656 program_space_data_registration, struct
657 program_space_data_registry, program_space_data_registry)
658 (register_program_space_data_with_cleanup)
659 (register_program_space_data, program_space_alloc_data)
660 (program_space_free_data, clear_program_space_data)
661 (set_program_space_data, program_space_data): Remove.
662 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
663 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
664 (register_objfile_data_with_cleanup, register_objfile_data)
665 (clear_objfile_data, set_objfile_data, objfile_data): Don't
667 * objfiles.c: Use DEFINE_REGISTRY.
668 (struct objfile_data, struct objfile_data_registration, struct
669 objfile_data_registry, objfile_data_registry)
670 (register_objfile_data_with_cleanup, register_objfile_data)
671 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
672 (set_objfile_data, objfile_data): Remove.
673 (_initialize_objfiles): Update.
674 * jit.c (_initialize_jit): Update.
675 * inflow.c (_initialize_inflow): Update.
676 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
677 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
678 (register_inferior_data_with_cleanup, register_inferior_data)
679 (clear_inferior_data, set_inferior_data, inferior_data): Don't
681 * inferior.c: Use DEFINE_REGISTRY.
682 (struct inferior_data, struct inferior_data_registration, struct
683 inferior_data_registry, inferior_data_registry)
684 (register_inferior_data_with_cleanup, register_inferior_data)
685 (inferior_alloc_data, inferior_free_data clear_inferior_data)
686 (set_inferior_data, inferior_data): Remove.
687 * auxv.c (_initialize_auxv): Update.
688 * ada-lang.c (_initialize_ada_language): Update.
689 * breakpoint.c (_initialize_breakpoint): Update.
690 * i386-nat.c (i386_use_watchpoints): Update.
692 2012-08-22 Tom Tromey <tromey@redhat.com>
694 * exec.c (exec_close, exec_file_attach): Update.
695 (add_to_section_table): Initialize 'key' field.
696 (add_target_sections, remove_target_sections): Add 'key' argument.
697 * exec.h (add_target_sections, remove_target_sections): Add
699 * solib.c (solib_map_sections, update_solib_list, clear_solib)
700 (reload_shared_libraries_1): Update.
701 * target.h (struct target_section) <key>: New field.
703 2012-08-22 Tom Tromey <tromey@redhat.com>
705 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
707 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
709 * symfile.c (allocate_symtab): Use host_address_to_string
710 function instead of cast of pointer to long which is not
711 compatible with x86_64-w64-mingw32 build.
713 2012-08-19 Andrew Pinski <apinski@cavium.com>
715 * mips-tdep.c (is_octeon): New function.
716 (is_octeon_bbit_op): New function.
717 (mips32_next_pc): Handle Octeon's bbit instructions.
718 (mips32_instruction_has_delay_slot): Likewise.
720 2012-08-19 Andrew Pinski <apinski@cavium.com>
722 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
725 2012-08-19 Andrew Pinski <apinski@cavium.com>
727 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
729 2012-08-19 Keith Seitz <keiths@redhat.com>
732 * c-typeprint.c (c_type_print_varspec_prefix): Pass
733 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
735 2012-08-18 Eli Zaretskii <eliz@gnu.org>
737 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
738 The typo broke "make TAGS".
740 2012-08-17 Joel Brobecker <brobecker@adacore.com>
744 2012-08-17 Keith Seitz <keiths@redhat.com>
747 * gdbtypes.c (strict_type_checking): New variable.
748 (show_strict_type_checking): New function.
749 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
750 if strict type checking is disabled.
751 (_initialize_gdbtypes): Add "check type" subcommand.
752 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
754 2012-08-17 Keith Seitz <keiths@redhat.com>
756 * language.h (type_mode): Remove.
757 (type_check): Remove.
758 (struct language_defn): Remove la_type_check.
759 (STRICT_TYPE): Remove unused macro.
760 (type_error): Remove.
761 * language.c (set_type_range_case): Renamed to ...
762 (set_range_case): ... this. Update all callers.
763 Remove type_mode/type_check.
765 (type_check): Remove.
766 (show_type_command): Remove.
767 (set_type_command): Remove.
768 (language_info): Remove type checking output.
769 (type_error): Remove unused function.
770 (range_error): Update comment.
771 (unknown_language_defn): Remove la_type_check.
772 (auto_language_defn): Likewise.
773 (local_language_defn): Likewise.
774 (_initialize_language): Remove "check type" subcommand.
775 * ada-lang.c (ada_language_defn): Remove la_type_check.
776 * c-lang.c (c_language_defn): Likewise.
777 (cplus_language_defn): Likewise.
778 (asm_language_defn): Likewise.
779 (minimal_language_defn): Likewise.
780 * d-lang.c (d_language_defn): Likewise.
781 * f-lang.c (f_language_defn): Likewise.
782 * go-lang.c (go_language_defn): Likewise.
783 * jv-lang.c (java_language_defn): Likewise.
784 * m2-lang.c (m2_language_defn): Likewise.
785 * objc-lang.c (objc_language_defn): Likewise.
786 * opencl-lang.c (opencl_language_defn): Likewise.
787 * p-lang.c (pascal_language_defn): Likewise.
789 2012-08-16 Mike Frysinger <vapier@gentoo.org>
791 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
793 2012-08-16 Joel Brobecker <brobecker@adacore.com>
795 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
797 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
798 using the regache. Use ia64_hpux_get_register_from_save_state_t
799 to access the bsp and bspstore registers if not.
801 2012-08-16 Joel Brobecker <brobecker@adacore.com>
803 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
804 * breakpoint.c (detach_breakpoints): Change pid parameter into
805 a ptid. Adjust code accordingly.
806 * infrun.c (handle_inferior_event): Delete variable child_pid.
807 Update call to detach_breakpoints to pass the child ptid for
809 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
810 assert that inferior_ptid's lwp is zero.
811 (linux_handle_extended_wait): Update call to detach_breakpoints.
812 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
815 2012-08-16 Joel Brobecker <brobecker@adacore.com>
817 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
818 parent, only call detach_breakpoints if tts.tts_event ==
821 2012-08-16 Joel Brobecker <brobecker@adacore.com>
823 * dwarf2-frame.c (dwarf2_frame_cache): Use
824 get_frame_address_in_block instead of get_frame_pc as
825 the bound for executing the frame's FDE.
827 2012-08-16 Yao Qi <yao@codesourcery.com>
829 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
830 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
831 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
832 (c_type_print_varspec_suffix): Likewise.
833 * eval.c (evaluate_subexp_standard): Likewise.
834 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
835 (f_type_print_varspec_suffix): Likewise.
836 * gdbtypes.c (is_scalar_type): Likewise.
837 (recursive_dump_type): Likewise.
838 * infcall.c (value_arg_coerce): Likewise.
839 * m2-valprint.c (m2_val_print): Likewise.
840 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
841 (pascal_type_print_varspec_suffix): Likewise.
842 (pascal_type_print_base): Likewise.
843 * p-valprint.c (pascal_val_print): Likewise.
844 (pascal_val_print): Likewise.
845 * valops.c (value_slice): Likewise.
846 * valprint.c (scalar_type_p): Likewise.
847 * valarith.c (value_bitstring_subscript): Remove.
848 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
849 Remove comment on TYPE_CODE_BITSTRING.
851 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
854 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
857 2012-08-16 Yao Qi <yao@codesourcery.com>
859 * tracepoint.c (trace_find_none_command): Remove.
860 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
862 2012-08-16 Yao Qi <yao@codesourcery.com>
864 * remote.c (handle_notification): Remove parameter 'length'.
865 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
867 2012-08-15 Keith Seitz <keiths@redhat.com>
869 * gdbtypes.c (opaque_type_resolution): Make static.
871 (overload_debug): Add missing comment.
872 (show_opaque_type_resolution): Likewise.
873 (show_overload_debug): Likewise.
874 (print_bit_vector): Remove unnecessary forward declaration.
875 (print_arg_types): Likewise.
876 (dump_fn_fieldlists): Likewise.
877 (print_cplus_stuff): Likewise.
879 2012-08-15 Tom Tromey <tromey@redhat.com>
881 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
882 (gdb_bfd_ref): Initialize new field.
883 (gdb_bfd_unref): Unref the archive BFD.
884 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
887 2012-08-15 Tom Tromey <tromey@redhat.com>
890 * python/py-bpevent.c (create_breakpoint_event_object): Update
892 * python/py-event.c (evpy_add_attribute): Update comment.
893 * python/py-exitedevent.c (create_exited_event_object): Fix
894 reference counting and error handling.
895 * python/py-newobjfileevent.c (create_new_objfile_event_object):
896 Fix reference counting.
897 * python/py-signalevent.c (create_signal_event_object): Fix
898 reference counting and error handling.
899 * python/py-stopevent.c (emit_stop_event): Fix reference
901 * python/py-threadevent.c (get_event_thread): Return a
903 * python/py-type.c (convert_field): Fix reference counting.
905 2012-08-15 Tom Tromey <tromey@redhat.com>
907 * dwarf2read.c (dwarf_decode_macro_bytes)
908 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
911 2012-08-14 Mike Frysinger <vapier@gentoo.org>
913 * infcmd.c (_initialize_infcmd): Update help text for the signal,
914 stepi, nexti, finish, next, step, jump, and continue commands.
915 * infrun.c (_initialize_infrun): Update help text for the handle
918 2012-08-14 Doug Evans <dje@google.com>
920 * gdbtypes.c (struct extra): Delete, unused.
922 * gdbtypes.c: Whitespace cleanup.
923 (address_space_name_to_int): Remove "extern" from definition.
924 (_initialize_gdbtypes): Declare with initialize_file_ftype.
926 * gdbtypes.c (make_pointer_type): Remove redundant setting of
927 TYPE_POINTER_TYPE (type).
929 2012-08-14 Gary Benson <gbenson@redhat.com>
931 * solib-svr4.c (svr4_free_library_list): Use free_so.
933 2012-08-13 Mike Frysinger <vapier@gentoo.org>
935 * .gitignore: Add go-exp.c.
937 2012-08-13 Doug Evans <dje@google.com>
939 * value.c (show_convenience): Tweak comment.
940 (_initialize_values): Mention convenience functions in the help text
941 for "show convenience".
943 2012-08-13 Yao Qi <yao@codesourcery.com>
945 * std-operator.def: Remove TERNOP_SLICE_COUNT.
946 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
948 * eval.c (evaluate_subexp_standard): Likewise.
949 * expprint.c (print_subexp_standard): Likewise.
950 (dump_subexp_body_standard): Likewise.
951 * parse.c (operator_length_standard): Likewise.
953 2012-08-13 Yao Qi <yao@codesourcery.com>
955 * std-operator.def: Remove OP_BITSTRING.
956 * breakpoint.c (watchpoint_exp_is_const): Update.
957 * eval.c (evaluate_subexp_standard): Remove handling to
959 * expprint.c (print_subexp_standard): Likewise.
960 (dump_subexp_body_standard): Likewise.
961 * parse.c (operator_length_standard): Likewise.
962 * valops.c (value_bitstring): Remove.
963 * value.h: Remove the declaration of 'value_bitstring'.
965 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
967 * linespec.c (find_methods): Remove unused variables `i1' and
969 (decode_line_full): Likewise for `arg_start'.
971 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
973 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
974 (zlib_decompress_section): Likewise for `section_data'.
975 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
977 2012-08-10 Doug Evans <dje@google.com>
979 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
980 * NEWS: Document them.
981 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
983 * python/py-type.c (typy_array_1): New function.
984 (typy_array): Call it.
985 (typy_vector): New function.
986 (type_object_methods): Add "vector".
987 * python/lib/gdb/function/__init__.py: New file.
988 * python/lib/gdb/function/strfns.py: New file.
990 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
992 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
993 for TYPE_FIELD_BITPOS.
994 (typy_get_sizeof): Likewise for TYPE_LENGTH.
996 2012-08-10 Mike Frysinger <vapier@gentoo.org>
999 * common/vec.h (VEC_merge): Define.
1000 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1001 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1002 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1003 * completer.c: Include gdb_signals.h.
1004 (signal_completer): Define.
1005 * completer.h (signal_completer): Add prototype.
1006 * infcmd.c (_initialize_infcmd): Assign the command
1007 completer for "signal" to handle_completer.
1008 * infrun.c: Include completer.h.
1009 (handle_completer): Define.
1010 (_initialize_infrun): Declare a new local variable c. Store the
1011 result of add_com("handle") to it. Assign the command
1012 completer for "handle" to handle_completer.
1014 2012-08-09 Yao Qi <yao@codesourcery.com>
1016 * cli/cli-decode.c (set_cmd_prefix): New.
1017 (lookup_cmd_for_prefixlist): New.
1018 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1019 of each cmd_list_element in *prefixlist.
1020 (add_setshow_cmd_full): set_cmd_prefix.
1021 (add_alias_cmd): Likewise.
1022 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1023 Declare 'auto_boolean_enums'.
1024 * cli/cli-setshow.c: Include "observer.h".
1025 (notify_command_param_changed_p): New.
1026 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1028 (do_setshow_command): Split it to ...
1029 (do_set_command, do_show_command): ... them. New.
1030 (do_set_command): Call observer_notify_command_param_changed if
1031 notify_command_param_changed_p returns true.
1032 (cmd_show_list): Caller update.
1033 * auto-load.c (set_auto_load_cmd): Likewise.
1034 * remote.c (show_remote_cmd): Likewise.
1035 * cli/cli-setshow.h: Update declarations.
1036 * top.c (execute_command): Call do_set_command and do_show_command.
1038 * NEWS: Mention new MI notification.
1039 * mi/mi-interp.c: Declare mi_command_param_changed.
1040 (mi_interpreter_init): Attach mi_command_param_changed to
1041 observer command_param_changed.
1042 (mi_command_param_changed): New.
1043 Remove mi_suppress_breakpoint_notifications.
1044 Define global variable mi_suppress_notification.
1045 (mi_breakpoint_created): Update.
1046 (mi_breakpoint_deleted): Likewise.
1047 (mi_breakpoint_modified): Likewise.
1048 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1049 'gdb-set' and set mi_suppress_notification.
1050 * mi/mi-main.h: (mi_suppress_notification): New struct.
1052 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1053 Jan Kratochvil <jan.kratochvil@redhat.com>
1055 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1057 2012-08-09 Yao Qi <yao@codesourcery.com>
1059 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1060 (skiplist): Move it to skip.c.
1061 (init_cmd_lists): Remove code setting enablebreaklist and
1063 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1064 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1066 * gdbcmd.h: Likewise.
1067 * skip.c (_initialize_step_skip): Move 'skiplist' from
1070 2012-08-09 Yao Qi <yao@codesourcery.com>
1072 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1073 * gnu-nat.c, symfile.c: Likewise.
1075 2012-08-08 Aaron Gamble <agamble@google.com>
1077 * utils.c (prompt_for_continue_wait_time): New static global.
1078 (make_command_stats_cleanup): Initialize it.
1079 (report_command_stats): Subtract time waiting for user.
1080 (prompt_for_continue): Track time waiting for user.
1081 (defaulted_query): Track time waiting for user.
1083 2012-08-08 Doug Evans <dje@google.com>
1085 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1087 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1088 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1089 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1090 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1091 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1092 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1094 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1095 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1096 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1097 (dump_prefix_expression): Handle OP_TYPE.
1099 2012-08-08 Keith Seitz <keiths@redhat.com>
1101 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1104 2012-08-08 Doug Evans <dje@google.com>
1106 * linux-thread-db.c: #include "gdb_vecs.h".
1107 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1109 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1110 (thread_db_load_search): Use a vector to iterate over path elements.
1111 Handle text appearing after "$pdir".
1113 * gdb_string.h: Moved to ...
1114 * common/gdb_string.h: ... here.
1115 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1116 gdb_string.h and gdb_assert.h.
1118 2012-08-08 Yao Qi <yao@codesourcery.com>
1120 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1121 (tic6x_value_to_register): Likewise.
1122 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1123 and set_gdbarch_value_to_register.
1125 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1126 Jean-Marc Saffroy <saffroy@gmail.com>
1129 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1130 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1131 * gcore.c (gcore_create_callback): New function comment. Add modified
1132 parameter. Only write modified regions. Set SEC_READONLY exactly
1133 according to MODIFIED.
1134 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1135 the passed modified value to FUNC.
1136 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1137 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1138 first. New variables modified and has_anonymous. Parse the lines of
1139 smaps file. Add the passed MODIFIED value to FUNC.
1140 * procfs.c (find_memory_regions_callback): Add the passed modified
1143 2012-08-06 Tom Tromey <tromey@redhat.com>
1145 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1146 (dwarf2_frame_cache): Use it.
1147 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1148 cache initialization constraint.
1150 2012-08-06 Tom Tromey <tromey@redhat.com>
1153 * varobj.c (update_dynamic_varobj_children): Don't call
1156 2012-08-06 Tom Tromey <tromey@redhat.com>
1159 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1161 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1163 * NEWS: New entry for 'cd' default parameters.
1164 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1166 2012-08-03 Tom Tromey <tromey@redhat.com>
1168 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1171 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1173 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1174 to attempting lseek/write.
1175 (inf_child_fileio_pread): Likewise for pread.
1177 2012-08-02 Yao Qi <yao@codesourcery.com>
1179 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1180 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1181 add_setshow_zinteger_cmd.
1182 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1183 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1184 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1185 instead of add_setshow_zinteger_cmd.
1186 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1187 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1188 instead of add_setshow_zinteger_cmd.
1189 * frame.c (frame_debug): Add 'unsigned'.
1190 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1191 add_setshow_zinteger_cmd.
1192 * frame.h: Update the declaration of 'frame_debug'.
1193 * gdbtypes.c (overload_debug): Add 'unsigned'.
1194 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1195 add_setshow_zinteger_cmd.
1196 * inferior.h: Update declaration of 'debug_infrun'.
1197 * infrun.c (debug_infrun): Add 'unsigned'.
1198 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1199 add_setshow_zinteger_cmd.
1200 * jit.c (jit_debug): Add 'unsigned'.
1201 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1202 add_setshow_zinteger_cmd.
1203 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1204 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1205 instead of add_setshow_zinteger_cmd.
1206 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1207 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1208 add_setshow_zinteger_cmd.
1209 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1210 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1211 instead of add_setshow_zinteger_cmd.
1212 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1213 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1214 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1215 intead of add_setshow_zinteger_cmd.
1216 * mips-tdep.c (mips_debug): Add 'unsigned'.
1217 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1218 instead of add_setshow_zinteger_cmd.
1219 * monitor.c (monitor_debug): Add 'unsigned'.
1220 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1221 add_setshow_zinteger_cmd.
1222 * observer.c (observer_debug): Add 'unsigned'.
1223 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1224 add_setshow_zinteger_cmd.
1225 * parse.c (expressiondebug): Add 'unsigned'.
1226 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1227 add_setshow_zinteger_cmd.
1228 * record.c (record_debug): Add 'unsigned'.
1229 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1230 add_setshow_zinteger_cmd.
1231 * record.h: Update the declaration of 'record_debug'.
1232 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1233 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1234 add_setshow_zinteger_cmd.
1235 * serial.c (global_serial_debug_p): Add 'unsigned'.
1236 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1237 add_setshow_zinteger_cmd.
1238 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1239 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1240 add_setshow_zinteger_cmd.
1241 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1242 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1243 add_setshow_zinteger_cmd.
1244 * target.c (targetdebug): Add 'unsigned'.
1245 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1246 add_setshow_zinteger_cmd.
1247 * valops.c (overload_debug): Add 'unsigned'.
1248 * varobj.c (varobjdebug): Add 'unsigned'.
1249 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1250 add_setshow_zinteger_cmd.
1251 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1252 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1253 instead of add_setshow_zinteger_cmd.
1255 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1256 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1257 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1258 instead of add_setshow_zinteger_cmd.
1259 * gdbarch.c, gdbarch.h: Re-generated.
1261 2012-08-02 Yao Qi <yao@codesourcery.com>
1263 * nto-tdep.c: Don't include cli/cli-decode.h and
1265 (_initialize_nto_tdep): Remove.
1266 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1268 Remove macro nto_internal_debugging.
1270 2012-08-01 Richard Henderson <rth@redhat.com>
1272 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1273 (mep-*-*) [gdb_target_obs]: Likewise.
1275 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1277 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1278 linux_get_siginfo_type.
1280 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1282 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1284 (call_function_by_hand) <ON_STACK>: Call write_memory with
1285 gdbarch_breakpoint_from_pc, if possible.
1286 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1289 2012-07-31 Yao Qi <yao@codesourcery.com>
1291 * tracepoint.c: Add 'static' for some variables.
1293 2012-07-31 Yao Qi <yao@codesourcery.com>
1295 * go32-nat.c: Declare _initialize_go32_nat.
1296 * ser-go32.c: Declare _initialize_ser_dos.
1297 * top.c (do_chdir_cleanup): Add 'static'.
1299 2012-07-30 Keith Seitz <keiths@redhat.com>
1301 * linespec.c (linespec_lex_number): A number followed
1302 by quotes is a valid number, too.
1304 2012-07-30 Tom Tromey <tromey@redhat.com>
1306 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1308 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1310 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1311 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1313 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1315 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1316 invalid or reevaluated to prevent prevent references to possibly
1317 delete'd type objects being left in the varobj.
1319 2012-07-27 Tom Tromey <tromey@redhat.com>
1320 Jan Kratochvil <jan.kratochvil@redhat.com>
1322 * copying.awk: Print buffer-read-only and vi ro markers.
1323 * copying.c: Rebuild.
1324 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1325 * gdbarch.c, gdbarch.h: Rebuild.
1326 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1327 buffer-read-only and vi ro markers.
1328 * features/arm-with-iwmmxt.c: Rebuild.
1329 * features/arm-with-m-fpa-layout.c: Rebuild.
1330 * features/arm-with-m-vfp-d16.c: Rebuild.
1331 * features/arm-with-m.c: Rebuild.
1332 * features/arm-with-neon.c: Rebuild.
1333 * features/arm-with-vfpv2.c: Rebuild.
1334 * features/arm-with-vfpv3.c: Rebuild.
1335 * features/i386/amd64-avx-linux.c: Rebuild.
1336 * features/i386/amd64-avx.c: Rebuild.
1337 * features/i386/amd64-linux.c: Rebuild.
1338 * features/i386/amd64.c: Rebuild.
1339 * features/i386/i386-avx-linux.c: Rebuild.
1340 * features/i386/i386-avx.c: Rebuild.
1341 * features/i386/i386-linux.c: Rebuild.
1342 * features/i386/i386-mmx-linux.c: Rebuild.
1343 * features/i386/i386-mmx.c: Rebuild.
1344 * features/i386/i386.c: Rebuild.
1345 * features/i386/x32-avx-linux.c: Rebuild.
1346 * features/i386/x32-avx.c: Rebuild.
1347 * features/i386/x32-linux.c: Rebuild.
1348 * features/i386/x32.c: Rebuild.
1349 * features/mips-dsp-linux.c: Rebuild.
1350 * features/mips-linux.c: Rebuild.
1351 * features/mips64-dsp-linux.c: Rebuild.
1352 * features/mips64-linux.c: Rebuild.
1353 * features/rs6000/powerpc-32.c: Rebuild.
1354 * features/rs6000/powerpc-32l.c: Rebuild.
1355 * features/rs6000/powerpc-403.c: Rebuild.
1356 * features/rs6000/powerpc-403gc.c: Rebuild.
1357 * features/rs6000/powerpc-405.c: Rebuild.
1358 * features/rs6000/powerpc-505.c: Rebuild.
1359 * features/rs6000/powerpc-601.c: Rebuild.
1360 * features/rs6000/powerpc-602.c: Rebuild.
1361 * features/rs6000/powerpc-603.c: Rebuild.
1362 * features/rs6000/powerpc-604.c: Rebuild.
1363 * features/rs6000/powerpc-64.c: Rebuild.
1364 * features/rs6000/powerpc-64l.c: Rebuild.
1365 * features/rs6000/powerpc-7400.c: Rebuild.
1366 * features/rs6000/powerpc-750.c: Rebuild.
1367 * features/rs6000/powerpc-860.c: Rebuild.
1368 * features/rs6000/powerpc-altivec32.c: Rebuild.
1369 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1370 * features/rs6000/powerpc-altivec64.c: Rebuild.
1371 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1372 * features/rs6000/powerpc-cell32l.c: Rebuild.
1373 * features/rs6000/powerpc-cell64l.c: Rebuild.
1374 * features/rs6000/powerpc-e500.c: Rebuild.
1375 * features/rs6000/powerpc-e500l.c: Rebuild.
1376 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1377 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1378 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1379 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1380 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1381 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1382 * features/rs6000/powerpc-vsx32.c: Rebuild.
1383 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1384 * features/rs6000/powerpc-vsx64.c: Rebuild.
1385 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1386 * features/rs6000/rs6000.c: Rebuild.
1387 * features/s390-linux32.c: Rebuild.
1388 * features/s390-linux32v1.c: Rebuild.
1389 * features/s390-linux32v2.c: Rebuild.
1390 * features/s390-linux64.c: Rebuild.
1391 * features/s390-linux64v1.c: Rebuild.
1392 * features/s390-linux64v2.c: Rebuild.
1393 * features/s390x-linux64.c: Rebuild.
1394 * features/s390x-linux64v1.c: Rebuild.
1395 * features/s390x-linux64v2.c: Rebuild.
1396 * features/tic6x-c62x-linux.c: Rebuild.
1397 * features/tic6x-c62x.c: Rebuild.
1398 * features/tic6x-c64x-linux.c: Rebuild.
1399 * features/tic6x-c64x.c: Rebuild.
1400 * features/tic6x-c64xp-linux.c: Rebuild.
1401 * features/tic6x-c64xp.c: Rebuild.
1403 2012-07-27 Tom Tromey <tromey@redhat.com>
1405 * c-exp.y (classify_name): Avoid assignment in condition.
1407 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1409 * amd64-windows-tdep.c: Include "frame.h".
1410 (amd64_windows_skip_trampoline_code): New function.
1411 (amd64_windows_init_abi): Add trampoline registration.
1413 2012-07-27 Yao Qi <yao@codesourcery.com>
1415 * tracepoint.c (cur_traceframe_number): Remove.
1416 (set_tfile_traceframe): Remove.
1417 (tfile_trace_find, tfile_fetch_registers): Update callers.
1418 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1419 (tfile_open, tfile_trace_find): Likewise.
1421 2012-07-27 Yao Qi <yao@codesourcery.com>
1423 * thread.c (switch_to_thread): Don't call registers_changed.
1425 2012-07-26 Tom Tromey <tromey@redhat.com>
1427 * Makefile.in (SFILES): Remove objc-exp.y.
1428 (YYFILES): Remove objc-exp.c.
1429 (YYOBJ): Remove objc-exp.o.
1430 (local-maintainer-clean): Don't mention objc-exp.c.
1431 * c-exp.y: Include objc-lang.h.
1432 (%union) <class>: New field.
1433 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1434 (exp): Clone subscript production for OBJC_LBRAC. Add various
1435 Objective C productions.
1436 (msglist, msgarglist, msgarg): New productions.
1437 (array_mod, func_mod, operator): Clone productions for
1439 (parse_string_or_char): Handle '@' strings.
1440 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1441 (classify_name): Check la_name_of_this. Recognize ObjC class
1443 * objc-exp.y: Remove.
1444 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1445 * objc-lang.h (objc_parse, objc_error): Don't declare.
1447 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1449 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1451 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1453 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1456 2012-07-26 Tom Tromey <tromey@redhat.com>
1458 * copying.c: Rebuild.
1459 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1462 2012-07-26 Tom Tromey <tromey@redhat.com>
1464 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1466 (print_objfile_statistics): Likewise.
1467 (maintenance_print_symbols): Likewise.
1468 (maintenance_print_msymbols): Likewise.
1469 (maintenance_print_objfiles): Likewise.
1470 * psymtab.c (print_partial_symbols): Call QUIT.
1471 (maintenance_print_psymbols): Likewise. Don't modify
1473 * copying.c (show_copying_command): Don't modify immediate_quit.
1474 (show_warranty_command): Likewise.
1475 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1477 2012-07-26 Keith Seitz <keiths@redhat.com>
1479 * linespec.c (linespec_lexer_lex_number): The input
1480 is also a valid number if the next character is a comma
1483 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1485 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1488 2012-07-26 Tristan Gingold <gingold@adacore.com>
1490 * machoread.c: Include gdb_bfd.h.
1492 2012-07-26 Tristan Gingold <gingold@adacore.com>
1494 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1497 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1499 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1501 (dwarf2_evaluate_loc_desc): Likewise.
1502 (dwarf2_loc_desc_needs_frame): Likewise.
1503 (locexpr_describe_location_1): Likewise.
1504 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1506 (struct dwarf2_loclist_baton): Likewise.
1507 * dwarf2read.c (struct dwarf_block): Likewise.
1508 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1509 (decode_locdesc): Expand SIZE and I to size_t.
1511 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1513 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1515 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1517 * doublest.c (convert_doublest_to_floatformat): If the exponent
1518 is too small, treat the value as zero. If the exponent is too
1519 large, treat the value as infinity.
1521 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1523 * configure.ac: Add --enable-lmcheck configure option.
1524 * configure: Regenerate.
1526 2012-07-25 Tom Tromey <tromey@redhat.com>
1528 * NEWS: Mention maint info bfds.
1529 * gdb_bfd.c (all_bfds): New global.
1530 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1531 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1534 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1536 * configure.tgt: Add v850*-*-rtems*.
1538 2012-07-25 Tom Tromey <tromey@redhat.com>
1540 * macrotab.c (macro_bcache_str): Remove cast.
1542 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1544 * linespec.c (linespec_lexer_lex_number): Update comments,
1545 change the return and add check to make sure the input is
1546 the decimal numbers.
1547 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1548 false, call linespec_lexer_lex_string.
1550 2012-07-24 Tom Tromey <tromey@redhat.com>
1552 * symfile.c (symbol_file_add): Don't open BFD twice.
1554 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1556 * breakpoint.c (create_breakpoint): Store condition for pending
1559 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1561 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1562 (m68k_return_value): Handle complex types like structures.
1563 (m68k_svr4_return_value): Likewise.
1565 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1567 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1568 parameters to bfd_get_section_name.
1570 2012-07-24 Yao Qi <yao@codesourcery.com>
1572 * cli/cli-setshow.c: Handle case 'var_uinteger'
1573 and 'var_zuninteger' together. Handle case 'var_integer' and
1574 'var_zinteger' together.
1576 2012-07-23 Keith Seitz <keiths@redhat.com>
1578 * linespec.c (convert_linespec_to_sal): Don't add
1579 any symbols to the result vector if symbol_to_sal
1582 2012-07-23 Keith Seitz <keiths@redhat.com>
1584 * linespec.c (decode_objc): Record the function name
1587 2012-07-23 Tom Tromey <tromey@redhat.com>
1589 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1591 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1592 (map_vmap): Acquire a reference to the BFD.
1594 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1596 * p-valprint.c (pascal_object_print_value): Replace potentially
1597 unsafe alloca with xmalloc/xfree.
1598 * valops.c (search_struct_method): Likewise.
1600 2012-07-23 Tom Tromey <tromey@redhat.com>
1602 * solib-svr4.c (enable_break): Update.
1603 * bfd-target.h (target_bfd_reopen): Update documentation.
1605 2012-07-23 Tom Tromey <tromey@redhat.com>
1607 * symfile.c (separate_debug_file_exists): Update.
1608 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1609 (reread_symbols): Update.
1610 * elfread.c (build_id_verify): Update.
1611 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1612 bfd_open_maybe_remote.
1614 2012-07-23 Tom Tromey <tromey@redhat.com>
1616 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1618 2012-07-23 Tom Tromey <tromey@redhat.com>
1620 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1622 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1624 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1625 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1627 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1628 * objfiles.c (allocate_objfile): Acquire a new reference.
1629 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1630 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1631 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1632 a cleanup for 'nbfd'.
1633 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1635 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1636 make a cleanup for 'abfd'.
1637 (symbol_file_add): Make a BFD cleanup.
1639 2012-07-23 Tom Tromey <tromey@redhat.com>
1641 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1642 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1643 * corelow.c (core_open): Use gdb_bfd_fopen.
1644 * dsrec.c (load_srec): Use gdb_bfd_openr.
1645 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1646 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1647 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1648 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1649 (gdb_bfd_fdopenr): New functions.
1650 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1651 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1652 (gdb_bfd_fdopenr): Declare.
1653 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1654 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1655 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1656 gdb_bfd_openr_next_archived_file.
1657 (macho_check_dsym): Use gdb_bfd_openr.
1658 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1659 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1660 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1661 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1663 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1664 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1665 gdb_bfd_openr_next_archived_file.
1666 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1668 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1670 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1671 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1672 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1673 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1674 (symfile_bfd_open): Use gdb_bfd_fopen.
1675 (generic_load): Use gdb_bfd_openr.
1676 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1678 2012-07-23 Tom Tromey <tromey@redhat.com>
1680 * bfd-target.c (target_bfd_reopen): Update.
1681 * cli/cli-dump.c (bfd_openr_with_cleanup)
1682 (bfd_openw_with_cleanup): Update.
1683 * corelow.c (core_open): Update.
1684 * dsrec.c (load_srec): Update.
1685 * exec.c (exec_file_attach): Update.
1686 * gcore.c (create_gcore_bfd): Update.
1687 * gdb_bfd.c (gdb_bfd_ref): Return void.
1688 (gdb_bfd_open): Update.
1689 * gdb_bfd.h (gdb_bfd_ref): Return void.
1691 * jit.c (jit_bfd_try_read_symtab): Update.
1692 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1693 * machoread.c (macho_symfile_read_all_oso): Update.
1694 (macho_check_dsym): Update.
1695 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1696 * remote-m32r-sdi.c (m32r_load): Update.
1697 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1698 * rs6000-nat.c (add_vmap): Update.
1699 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1701 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1702 * solib-spu.c (spu_bfd_open): Update.
1703 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1704 * spu-linux-nat.c (spu_bfd_open): Update.
1705 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1706 (generic_load): Update.
1707 * windows-nat.c (windows_make_so): Update.
1709 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1711 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1713 2012-07-20 Jeff Kenton <jkenton@tilera.com>
1715 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1716 SIGTRAMP_FRAME unwinding.
1718 2012-07-20 Doug Evans <dje@google.com>
1720 * NEWS: Document new options "set/show use-deprecated-index-sections",
1721 and delete reference to --use-deprecated-index-sections.
1722 * symfile.h (use_deprecated_index_sections): Delete.
1723 * dwarf2read.c (use_deprecated_index_sections): Make static.
1724 (read_index_from_section): Update wording of how to load
1725 deprecated index sections.
1726 (_initialize_dwarf2_read): New options
1727 "set/show use-deprecated-index-sections".
1728 * main.c (captured_main): Delete --use-deprecated-index-sections.
1730 2012-07-20 Pedro Alves <palves@redhat.com>
1735 * infrun.c (handle_inferior_event) <new thread>: Don't special
1736 case minus_one_ptid.
1737 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1738 * linux-thread-db.c (thread_get_info_callback): Don't return early
1739 if the thread is zombie.
1740 (thread_from_lwp): Change return type to void. Rewrite stale
1742 (attach_thread): Don't return early if the thread is zombie,
1743 instead set its "dying" flag.
1744 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1745 (find_new_threads_callback): Don't return early if the thread is
1748 2012-07-20 Pedro Alves <palves@redhat.com>
1750 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1751 * target.c (target_wait): Likewise.
1752 (str_comma_list_concat_elem, do_option, target_options_to_string):
1754 * target.h (target_options_to_string): Declare.
1756 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1757 Tom Tromey <tromey@redhat.com>
1759 * dwarf2read.c (dwarf_decode_macros)
1760 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1761 DW_MACRO_GNU_transparent_include_alt>: New cases.
1762 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1763 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1765 2012-07-20 Tom Tromey <tromey@redhat.com>
1767 * dwarf2read.c (try_open_dwo_file): Don't call
1768 gdb_bfd_stash_filename.
1770 2012-07-20 Pedro Alves <palves@redhat.com>
1772 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1773 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1774 (i386_process_record): Tweak description comments.
1776 2012-07-20 Pedro Alves <palves@redhat.com>
1778 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1779 (i386_process_record): Use record_read_memory.
1780 * record.c (record_read_memory): New function.
1781 (record_arch_list_add_mem, record_exec_insn): Use
1783 * record.h (record_read_memory): Declare.
1785 2012-07-20 Yao Qi <yao@codesourcery.com>
1787 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1790 2012-07-19 Pedro Alves <palves@redhat.com>
1792 * record.c (record_resume): Ask the target beneath to report all
1795 2012-07-19 Doug Evans <dje@google.com>
1797 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1798 there's no section at address zero.
1799 (dwarf2_record_block_ranges): Ditto.
1801 2012-07-19 Yao Qi <yao@codesourcery.com>
1803 * command.h, remote.c: Fix a typo in comment.
1805 2012-07-19 Tom Tromey <tromey@redhat.com>
1808 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1809 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1810 OP_DECLTYPE>: New cases.
1811 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1812 (type_exp): Add new productions.
1813 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1815 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1817 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1818 OP_DECLTYPE>: New case.
1819 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1821 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1822 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1824 2012-07-19 Tom Tromey <tromey@redhat.com>
1826 * c-exp.y (enum token_flags): New.
1827 (struct token) <cxx_only>: Remove.
1829 (tokentab3, tokentab2, ident_tokens): Update.
1830 (lex_one_token): Update. Handle FLAG_SHADOW.
1832 2012-07-19 Tom Tromey <tromey@redhat.com>
1834 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1835 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1836 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1837 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1838 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1839 type_exp production where appropriate.
1840 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1841 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1842 <UNOP_MEMVAL_TYPE>: New case.
1843 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1844 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1845 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1846 <UNOP_MEMVAL_TYPE>: New case.
1847 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1848 UNOP_REINTERPRET_CAST>: Update.
1849 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1850 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1851 UNOP_REINTERPRET_CAST>: Update.
1852 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1853 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1854 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1857 2012-07-19 Yao Qi <yao@codesourcery.com>
1858 Jan Kratochvil <jan.kratochvil@redhat.com>
1860 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1861 and case 'var_optional_filename' together.
1862 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1863 instead of add_setshow_optional_filename_cmd for setshow command
1864 'args'. Set completer for 'set args'.
1866 2012-07-18 Doug Evans <dje@google.com>
1868 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1869 * common/gdb_vecs.c: New file, contents from utils.c.
1870 * common/host-defs.h: New file, contents from defs.h.
1871 * utils.h: New file, contents from defs.h.
1872 * defs.h: Move all declarations of objects defined in utils.c
1873 to utils.h (except QUIT() and related).
1874 #include "utils.h", "host-defs.h".
1875 * probe.h (probe_p): Move here from gdb_vecs.h.
1876 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1877 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1878 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1879 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1880 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1881 (COMMON_OBS): Add gdb_vecs.o.
1882 (gdb_vecs.o): New rule.
1884 2012-07-18 Keith Seitz <keiths@redhat.com>
1886 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1887 parameter. If non-zero, use SYMNAME as the canonical name
1890 (convert_linespec_to_sals): Use add_sal_to_sals for
1892 (decode_line_full): No need to "fill in missing canonical names"
1893 anymore. Simply make cleanups for the allocated names.
1895 2012-07-18 Keith Seitz <keiths@redhat.com>
1897 * linespec.c (struct linespec): Constify expression,
1898 source_filename, function_name, and label_name.
1899 (symbol_not_found_error): Make all parameters const.
1900 (linespec_parser_delete): No need to check for NULL
1901 when using xfree. Cast const char * to char * for xfree.
1903 2012-07-18 Keith Seitz <keiths@redhat.com>
1905 * breakpoint.c (invalid_thread_id_error): New function.
1906 (find_condition_and_thread): Use invalid_thread_id_error.
1907 (watch_command_1): Likewise.
1909 2012-07-18 Tom Tromey <tromey@redhat.com>
1911 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1912 * contrib/cc-with-tweaks.sh: New file.
1914 2012-07-18 Tom Tromey <tromey@redhat.com>
1916 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1917 (locate_dwz_sections): Recognize .gdb_index.
1918 (create_cus_from_index_list): New function.
1919 (create_cus_from_index): Use it. Handle .dwz data.
1920 (read_index_from_section): New function, extracted from
1922 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1925 2012-07-18 Tom Tromey <tromey@redhat.com>
1927 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1928 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1929 <is_dwz>: New field.
1930 (struct dwz_file): New.
1931 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1932 (locate_dwz_sections, dwarf2_get_dwz_file)
1933 (get_abbrev_section_for_cu): New functions.
1934 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1935 (read_and_check_type_unit_head): Add abbrev_section argument.
1936 (create_debug_types_hash_table): Update.
1937 (init_cutu_and_read_dies): Use proper abbrev section.
1938 (init_cutu_and_read_dies_no_follow): Likewise.
1939 (set_partial_user): Do nothing if PST==NULL.
1940 (read_comp_units_from_section): New function.
1941 (create_all_comp_units): Use it.
1942 (scan_partial_symbols, partial_die_parent_scope): Update.
1943 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1944 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1945 (find_partial_die): Add offset_in_dwz argument. Update.
1946 (guess_partial_die_structure_name, fixup_partial_die): Update.
1947 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1948 DW_FORM_GNU_strp_alt.
1949 (read_indirect_string_from_dwz): New function.
1950 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1951 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1952 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1953 (follow_die_offset): Add offset_in_dwz argument.
1954 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1955 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1956 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1957 Handle new macro forms.
1958 (dwarf_decode_macros): Update.
1959 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1960 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1961 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1962 (create_debug_types_hash_table): Use correct abbrev section.
1963 (get_debug_line_section): New function.
1964 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
1965 (process_full_comp_unit): Pass 'required' argument to
1966 end_symtab_get_static_block.
1967 * buildsym.h (end_symtab_get_static_block): Update.
1968 * buildsym.c (end_symtab_get_static_block): Add 'required'
1970 (end_symtab, end_expandable_symtab): Update.
1972 2012-07-18 Tom Tromey <tromey@redhat.com>
1974 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
1976 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
1977 (zlib_decompress_section): Remove.
1978 (dwarf2_read_section): Use gdb_bfd_map_section.
1979 (munmap_section_buffer): Remove.
1980 (free_dwo_file, dwarf2_per_objfile_free): Don't use
1981 munmap_section_buffer.
1982 * gdb_bfd.c: Include zlib.h, sys/mman.h.
1983 (struct gdb_bfd_section_data): New.
1984 (free_one_bfd_section): New function.
1985 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
1986 (get_section_descriptor, zlib_decompress_section)
1987 (gdb_bfd_map_section): New functions.
1988 * gdb_bfd.h (gdb_bfd_map_section): Declare.
1990 2012-07-18 Tom Tromey <tromey@redhat.com>
1992 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
1994 2012-07-18 Tom Tromey <tromey@redhat.com>
1996 * gdb_bfd.c (struct gdb_bfd_data): New.
1997 (gdb_bfd_cache): New global.
1998 (struct gdb_bfd_cache_search): New.
1999 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2000 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2001 * gdb_bfd.h (gdb_bfd_open): Declare.
2003 2012-07-18 Tom Tromey <tromey@redhat.com>
2005 * utils.c (make_cleanup_bfd_unref): Rename from
2006 make_cleanup_bfd_close.
2007 * defs.h (make_cleanup_bfd_unref): Rename from
2008 make_cleanup_bfd_close.
2009 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2010 (bfd_openw_with_cleanup): Update.
2011 * corelow.c (core_open): Update.
2012 * dsrec.c (load_srec): Update.
2013 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2014 * remote-m32r-sdi.c (m32r_load): Update.
2015 * remote-mips.c (mips_load_srec): Update.
2016 (pmon_load_fast): Update.
2017 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2019 (darwin_bfd_open): Update.
2020 * solib.c (solib_bfd_fopen): Update.
2021 * symfile-mem.c (symbol_file_add_from_memory): Update.
2022 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2023 (symfile_bfd_open): Update.
2024 (generic_load): Update.
2026 2012-07-18 Tom Tromey <tromey@redhat.com>
2028 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2029 (pmon_load_fast): Likewise.
2030 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2031 (m32r_upload_command): Likewise.
2032 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2033 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2034 Use make_cleanup_bfd_close.
2036 2012-07-18 Tom Tromey <tromey@redhat.com>
2038 * symfile.c (symfile_bfd_open): Don't copy name. Call
2039 gdb_bfd_stash_filename.
2040 (load_command): Open the new BFD before freeing the old.
2041 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2042 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2043 Call gdb_bfd_stash_filename.
2044 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2045 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2046 gdb_bfd_stash_filename.
2047 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2048 Free found_pathname.
2049 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2050 gdb_bfd_stash_filename.
2051 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2052 * machoread.c (macho_add_oso_symfile): Call
2053 gdb_bfd_stash_filename.
2054 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2055 gdb_bfd_stash_filename.
2056 (macho_check_dsym): Don't copy filename. Call
2057 gdb_bfd_stash_filename.
2058 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2059 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2060 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2061 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2062 * exec.c (exec_close): Don't free the BFD's filename.
2063 (exec_file_attach): Don't copy the filename. Call
2064 gdb_bfd_stash_filename.
2065 * corelow.c (core_close): Don't free the BFD's filename.
2066 (core_open): Call gdb_bfd_stash_filename.
2067 * corefile.c (reopen_exec_file): Remove #if 0 code.
2068 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2070 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2072 2012-07-18 Tom Tromey <tromey@redhat.com>
2074 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2076 (free_dwo_file): Use gdb_bfd_unref.
2077 * cli/cli-dump.c: Include gdb_bfd.h.
2078 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2079 (bfd_openr_with_cleanup): Likewise.
2080 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2082 * utils.c: Include gdb_bfd.h.
2083 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2084 * symfile.c: Include gdb_bfd.h.
2085 (separate_debug_file_exists): Use gdb_bfd_unref.
2086 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2087 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2088 (generic_load): Use gdb_bfd_ref.
2089 (reread_symbols): Use gdb_bfd_unref.
2090 * symfile-mem.c: Include gdb_bfd.h.
2091 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2092 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2093 * solib.c: Include gdb_bfd.h.
2094 (solib_bfd_fopen): Use gdb_bfd_ref.
2095 (solib_bfd_open): Use gdb_bfd_unref.
2096 (free_so_symbols): Use gdb_bfd_unref.
2097 (reload_shared_libraries_1): Use gdb_bfd_unref.
2098 * solib-spu.c: Include gdb_bfd.h.
2099 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2100 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2102 * solib-frv.c: Include gdb_bfd.h.
2103 (enable_break2): Use gdb_bfd_unref.
2104 * solib-dsbt.c: Include gdb_bfd.h.
2105 (enable_break2): Use gdb_bfd_unref.
2106 * solib-darwin.c: Include gdb_bfd.h.
2107 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2109 (darwin_bfd_open): Use gdb_bfd_unref.
2110 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2111 * remote-mips.c: Include gdb_bfd.h.
2112 (mips_load_srec): Use gdb_bfd_ref.
2113 (pmon_load_fast): Use gdb_bfd_ref.
2114 * remote-m32r-sdi.c: Include gdb_bfd.h.
2115 (m32r_load): Use gdb_bfd_ref.
2116 * record.c: Include gdb_bfd.h.
2117 (record_save_cleanups): Use gdb_bfd_unref.
2118 (cmd_record_save): Use gdb_bfd_unref.
2119 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2121 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2122 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2123 * objfiles.c: Include gdb_bfd.h.
2124 (free_objfile): Use gdb_bfd_unref.
2125 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2127 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2128 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2129 (macho_check_dsym): Likewise.
2130 * m32r-rom.c: Include gdb_bfd.h.
2131 (m32r_load): Use gdb_bfd_ref.
2132 (m32r_upload_command): Use gdb_bfd_ref.
2133 * jit.c: Include gdb_bfd.h.
2134 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2135 * gdb_bfd.h: New file.
2136 * gdb_bfd.c: New file.
2137 * gcore.c: Include gdb_bfd.h.
2138 (create_gcore_bfd): Use gdb_bfd_ref.
2139 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2140 (gcore_command): Use gdb_bfd_unref.
2141 * exec.c: Include gdb_bfd.h.
2142 (exec_close): Use gdb_bfd_unref.
2143 (exec_close_1): Use gdb_bfd_unref.
2144 (exec_file_attach): Use gdb_bfd_ref.
2145 * elfread.c: Include gdb_bfd.h.
2146 (build_id_verify): Use gdb_bfd_unref.
2147 * dsrec.c: Include gdb_bfd.h.
2148 (load_srec): Use gdb_bfd_ref.
2149 * corelow.c: Include gdb_bfd.h.
2150 (core_close): Use gdb_bfd_unref.
2151 (core_open): Use gdb_bfd_ref.
2152 * bfd-target.c: Include gdb_bfd.h.
2153 (target_bfd_xclose): Use gdb_bfd_unref.
2154 (target_bfd_reopen): Use gdb_bfd_ref.
2155 * Makefile.in (SFILES): Add gdb_bfd.c.
2156 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2157 (COMMON_OBS): Add gdb_bfd.o.
2159 2012-07-18 Keith Seitz <keiths@redhat.com>
2161 * breakpoint.c (find_condition_and_thread): Initialize
2163 (create_breakpiont): find_condition_and_thread will now
2164 initialize COND_STRING, THREAD, and REST (and TASK).
2165 (addr_string_to_sals): Likewise.
2167 2012-07-18 Pedro Alves <palves@redhat.com>
2169 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2170 Pull the single step breakpoints out of the target.
2172 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2174 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2175 * stap-probe.c (compile_probe_arg): Likewise.
2177 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2179 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2180 (elf_compile_to_ax): Likewise.
2181 * infrun.c (insert_exception_resume_from_probe): Likewise.
2182 (check_exception_resume): Remove `objfile' variable.
2183 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2184 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2185 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2186 (compare_entries): Rename to...
2187 (compare_probes): ...this. Adjust function to work with
2188 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2190 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2192 (print_ui_out_info): Adjust argument to be `struct probe *'.
2193 (info_probes_for_ops): Adjust internal computations to use
2195 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2196 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2197 gen_info_probes_table_values>: Remove `objfile' argument.
2198 (struct probe) <objfile>: New field.
2199 (find_probe_by_pc): Remove `objfile' argument.
2200 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2201 (stap_get_probe_argument_count): Likewise.
2202 (stap_get_arg): Likewise.
2203 (stap_evaluate_probe_argument): Likewise.
2204 (stap_compile_to_ax): Likewise.
2205 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2206 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2207 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2208 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2209 sym_compile_to_ax>: Likewise.
2211 2012-07-18 Terry Guo <terry.guo@arm.com>
2214 * defs.h (GDB_MI_MSG_WIDTH): New.
2215 * ser_base (ser_base_read_error_fd): New function.
2216 (do_ser_base_readchar): Poll error file descriptor as well as
2218 (generic_readchar): Refactor error handling.
2220 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2222 * NEWS: Create a new section for the next release branch.
2223 Rename the section of the current branch, now that it has
2226 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2228 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2229 * version.in: Bump version to 7.5.50.20120718-cvs.
2231 2012-07-17 Keith Seitz <keiths@redhat.com>
2233 * linespec.c (linespec_parse_line_offset): Make parameter
2236 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2239 * f-valprint.c (info_common_command): New variable frame_id.
2240 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2241 * printcmd.c (print_variable_and_value): Extend function comment.
2242 Add comment for invalidated FRAME.
2243 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2244 FI form FRAME_ID after each print_frame_local_vars.
2245 (struct print_variable_and_value_data): Change frame to frame_id.
2246 (do_print_variable_and_value): New variable frame, initialize it from
2247 p->frame_id. Add comment for invalidated FRAME.
2248 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2249 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2250 for invalidated FRAME.
2252 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2253 Pedro Alves <palves@redhat.com>
2255 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2258 2012-07-16 Tom Tromey <tromey@redhat.com>
2260 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2262 2012-07-15 Doug Evans <dje@google.com>
2264 * dwarf2read.c (stmt_list_hash): New struct.
2265 (type_unit_group): Embed "per_cu" member, remove pointer.
2266 New union member "t", move member "tus" into it, all uses updated.
2267 New member "hash", replaces member "line_offset, all uses updated.
2268 (quick_file_names): Replace member "offset" with "hash", all uses
2270 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2271 (hash_file_name_entry, eq_file_name_entry): Call them.
2272 (hash_type_unit_group, eq_type_unit_group): Ditto.
2273 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2274 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2275 (dw2_get_file_names): Update.
2276 (create_type_unit_group): Replace "per_cu" arg with "cu".
2277 All callers updated. Fix "quick" (.gdb_index) handling.
2278 (get_type_unit_group): Replace "per_cu" arg with "cu".
2279 All callers updated.
2280 (build_type_unit_groups): Don't reset tu_stats.
2282 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2283 "tab_cur_size". Change member "tab" to be a htab_t.
2284 (create_filename_seen_cache): Update.
2285 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2286 (filename_seen): Update.
2288 2012-07-13 Doug Evans <dje@google.com>
2290 * symtab.c (filename_seen): Update comment.
2292 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2293 Doug Evans <dje@google.com>
2295 * buildsym.c (end_symtab_1): Split it to ...
2296 (end_symtab_get_static_block): ... this ...
2297 (end_symtab_from_static_block): ... and this function.
2298 (end_symtab, end_expandable_symtab): Call them.
2299 * buildsym.h (end_symtab_get_static_block)
2300 (end_symtab_from_static_block): New declarations.
2301 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2302 Set its valid CU ranges.
2304 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2306 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2307 DW_OP_GNU_parameter_ref.
2309 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2311 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2312 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2314 2012-07-13 Doug Evans <dje@google.com>
2316 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2317 (filename_seen_cache): New struct.
2318 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2319 (create_filename_seen_cache): New function.
2320 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2321 (filename_seen): Delete arg "first". New arg "cache". All callers
2323 (output_source_filename_data): New struct.
2324 (output_source_filename): Delete arg "first". New arg "data".
2325 All callers updated.
2326 (sources_info): Delete local "first". New locals "data", "cleanups".
2327 Rewrite to use filename_seen_cache.
2328 (add_partial_filename_data): Delete member "first". New member
2329 "filename_seen_cache". All uses updated.
2330 (make_source_files_completion_list): Rewrite to use
2331 filename_seen_cache.
2333 2012-07-12 Doug Evans <dje@google.com>
2335 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2337 2012-07-10 Doug Evans <dje@google.com>
2340 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2341 all_type_unit_groups, type_unit_groups, tu_stats.
2342 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2343 All uses updated. Add type_unit_group to union "s".
2344 (type_unit_group): New struct.
2345 (IS_TYPE_UNIT_GROUP): New macro.
2346 (abbrev_table): Delete unused member "section".
2347 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2348 (dw2_get_cu): Assert not used with type_unit_group.
2349 (dw2_get_primary_cu): New function.
2350 (dw2_build_type_unit_groups_reader): New function.
2351 (dw2_build_type_unit_groups): New function.
2352 (dw2_get_file_names): Assert not called on type units.
2353 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2354 Redo loop to iterate over type unit groups instead of type units.
2355 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2356 (read_abbrev_offset): New function.
2357 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2359 (create_partial_symtab): New function.
2360 (process_psymtab_comp_unit_reader): Assert not used with type units.
2361 Call create_partial_symtab.
2362 (process_psymtab_type_unit): Delete.
2363 (hash_type_unit_group, eq_type_unit_group): New functions.
2364 (allocate_type_unit_groups_table): New function.
2365 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2366 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2367 (create_type_unit_group, get_type_unit_group): New functions.
2368 (tu_abbrev_offset): New struct.
2369 (sort_tu_by_abbrev_offset): New function.
2370 (add_type_unit_group_to_table): New function.
2371 (build_type_unit_groups): New function.
2372 (build_type_psymtabs_reader): New function.
2373 (build_type_psymtab_dependencies): New function.
2374 (build_type_psymtabs): Rewrite.
2375 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2376 is seen in a type unit.
2377 (process_queue): Move symtab expansion debugging printfs here.
2378 Call process_full_type_unit for type units.
2379 (compute_symtab_includes): Assert not called for type units.
2380 (process_cu_includes): Don't call compute_symtab_includes for
2382 (process_full_type_unit): New function.
2383 (process_imported_unit_die): Flag an error if called for type units.
2384 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2385 updated. Assert not called for type units.
2386 (read_file_scope): Call dwarf2_start_symtab.
2387 (setup_type_unit_groups): New function.
2388 (read_type_unit_scope): Rewrite.
2389 (abbrev_table_read_table): Initialize abbrev_table->offset.
2390 (abbrev_table_free_cleanup): New function.
2391 (dwarf2_start_symtab): New function.
2392 (load_full_type_unit): Assert not called for type unit groups.
2393 * buildsym.c (finish_block_internal): New arg "expandable".
2394 All callers updated.
2395 (start_symtab): Move most contents to ...
2396 (restart_symtab): ... here. New function.
2397 (reset_symtab_globals): New function.
2398 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2399 Call reset_symtab_globals.
2400 (end_symtab, end_expandable_symtab): New functions.
2401 (set_missing_symtab, augment_type_symtab): New functions.
2402 * buildsym.h (end_expandable_symtab): Declare.
2403 (augment_type_symtab, restart_symtab): Declare.
2404 * psympriv.h (struct partial_symtab): New member "anonymous".
2405 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2407 (read_psymtabs_with_filename): Ditto.
2408 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2409 (expand_symtabs_matching_via_partial): Ditto.
2410 (dump_psymtab): Update.
2411 * dictionary.c (dict_add_pending): New function.
2412 * dictionary.h (dict_add_pending): Declare.
2414 2012-07-09 Doug Evans <dje@google.com>
2416 * buildsym.c (start_subfile): Remove unnecessary check for
2419 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2421 * dwarf2read.c (load_full_type_unit): Simplify.
2423 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2424 to struct signatured_type **. All uses updated.
2426 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2427 All callers updated.
2429 2012-07-09 Tom Tromey <tromey@redhat.com>
2431 * c-exp.y (check_parameter_typelist): New function.
2432 (parameter_typelist): Call it.
2433 * eval.c (make_params): Handle '(void)' case.
2434 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2437 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2439 * common/linux-ptrace.c: Include gdb_assert.h.
2440 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2441 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2443 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2445 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2446 * linux-nat.c (linux_child_post_attach)
2447 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2449 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2451 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2452 nptl <2.7 bug workaround for core files.
2454 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2456 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2458 (save_siginfo): Remove.
2459 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2461 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2462 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2463 * linux-nat.h (struct lwp_info): Remove field siginfo.
2465 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2467 Code cleanup for the next patch.
2468 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2469 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2471 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2472 (ia64_linux_stopped_data_address):
2473 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2475 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2476 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2477 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2480 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2483 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2484 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2486 2012-07-06 Tom Tromey <tromey@redhat.com>
2488 * c-exp.y (DOTDOTDOT): New token.
2489 (func_mod, exp): Use parameter_typelist.
2490 (parameter_typelist): New production.
2491 (tokentab3): Add "..." token.
2492 * eval.c (make_params): Handle varargs.
2493 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2496 2012-07-06 Tom Tromey <tromey@redhat.com>
2499 * c-exp.y (%union) <tvec>: Change type.
2500 (func_mod): Now uses <tvec> type.
2501 (exp): Update for tvec change.
2502 (direct_abs_decl): Push the typelist.
2503 (func_mod): Return a typelist.
2504 (nonempty_typelist): Update for tvec change.
2505 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2506 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2507 * parse.c (pop_type_list): New function.
2508 (push_typelist): New function.
2509 (follow_types): Handle tp_function_with_arguments.
2510 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2511 (enum type_pieces) <tp_function_with_arguments>: New constant.
2512 (union type_stack_elt) <typelist_val>: New field.
2513 (push_typelist): Declare.
2515 2012-07-06 Tom Tromey <tromey@redhat.com>
2517 * c-exp.y (%union) <type_stack>: New field.
2518 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2519 (ptr_operator_ts): New production.
2521 * parse.c (type_stack_reserve): New function.
2522 (check_type_stack_depth): Use it.
2523 (pop_type_stack, append_type_stack, push_type_stack)
2524 (get_type_stack, type_stack_cleanup): New functions.
2525 (follow_types): Handle tp_type_stack.
2526 (_initialize_parse): Simplify initialization.
2527 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2529 (union type_stack_elt) <stack_val>: New field.
2530 (get_type_stack, append_type_stack, push_type_stack)
2531 (type_stack_cleanup): Declare.
2533 2012-07-06 Tom Tromey <tromey@redhat.com>
2535 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2537 (struct type_stack): New.
2538 * parse.c (type_stack, type_stack_size, type_stack_depth):
2540 (type_stack): New global.
2541 (parse_exp_in_context, check_type_stack_depth)
2542 (insert_into_type_stack, insert_type, push_type, push_type_int)
2543 (insert_type_address_space, pop_type, pop_type_int)
2544 (_initialize_parse): Update.
2546 2012-07-06 Tom Tromey <tromey@redhat.com>
2548 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2551 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2553 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2555 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2556 Jan Kratochvil <jan.kratochvil@redhat.com>
2558 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2559 alloca with xmalloc/xfree.
2561 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2563 * MAINTAINERS (Write After Approval): Add myself to the list.
2565 2012-07-05 Doug Evans <dje@google.com>
2567 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2569 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2571 * ax-gdb.c (cli/cli-utils.h): New include.
2572 (linespec.h): Ditto.
2573 (agent_eval_command_one): New function.
2574 (agent_command_1): Ditto.
2575 (agent_command): Call function agent_command_1.
2576 (agent_eval_command): Ditto.
2577 (_initialize_ax_gdb): Change help for "maint agent"
2578 and "maint agent-eval".
2580 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2582 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2583 * cli/cli-utils.c (check_for_argument): New function.
2584 * cli/cli-utils.h (check_for_argument): Ditto.
2586 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2588 * NEWS: Mention x32 ABI support.
2590 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2592 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2593 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2595 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2596 and pc_regnum_from_eax to -1. Update SP regnum from
2597 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2600 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2603 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2605 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2606 * dwarf2expr.h: Include gdbtypes.h.
2607 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2608 these forward declarations.
2609 (cu_offset, sect_offset): Move these ...
2610 * gdbtypes.h: Remove include dwarf2expr.h.
2611 (cu_offset, sect_offset): ... here.
2613 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2615 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2616 (amd64_linux_sigtramp_code): This.
2617 (amd64_x32_linux_sigtramp_code): New.
2618 (LINUX_SIGTRAMP_LEN): Updated.
2619 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2621 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2623 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2625 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2627 * config.in: Regenerate.
2628 * configure: Regenerate.
2629 * configure.ac: Remove check for gnu/libc-version.h.
2630 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2632 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2633 variables libc_version, libc_major and libc_minor. Replace sscanf by
2634 inferior_has_bug. Extend the comment.
2636 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2638 * linux-thread-db.c (inferior_has_bug): New function.
2639 (thread_db_find_new_threads_silently): Return boolean as checked by
2640 inferior_has_bug, describe it in the comments.
2641 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2642 earlier. Abort the initialization if it returned non-zero.
2643 (thread_db_new_objfile): Exclude debug files.
2644 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2647 2012-07-02 Doug Evans <dje@google.com>
2649 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2650 related to queue management.
2652 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2653 instead of "debug dwarf2-die" in debugging printfs.
2654 (create_debug_info_hash_table_reader): Ditto.
2655 (create_debug_info_hash_table): Ditto.
2656 (init_dwo_file): Ditto.
2657 (init_cutu_and_read_dies): Add debugging printf.
2658 (init_cutu_and_read_dies_no_follow): Ditto.
2659 (process_psymtab_comp_unit_reader): Ditto.
2661 2012-07-02 Stan Shebs <stan@codesourcery.com>
2663 Add target-side support for dynamic printf.
2664 * NEWS: Mention the additional style.
2665 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2666 (struct bp_location): New field cmd_bytecode.
2667 * breakpoint.c: Include format.h.
2668 (disconnected_dprintf): New global.
2669 (parse_cmd_to_aexpr): New function.
2670 (build_target_command_list): New function.
2671 (insert_bp_location): Call it.
2672 (remove_breakpoints_pid): Skip dprintf breakpoints.
2673 (print_one_breakpoint_location): Ditto.
2674 (dprintf_style_agent): New global.
2675 (dprintf_style_enums): Add dprintf_style_agent.
2676 (update_dprintf_command_list): Add agent case.
2677 (agent_printf_command): New function.
2678 (_initialize_breakpoint): Add new commands.
2679 * common/ax.def (printf): New bytecode.
2680 * ax.h (ax_string): Declare.
2681 * ax-gdb.h (gen_printf): Declare.
2682 * ax-gdb.c: Include cli-utils.h, format.h.
2683 (gen_printf): New function.
2684 (maint_agent_print_command): New function.
2685 (_initialize_ax_gdb): Add maint agent-printf command.
2686 * ax-general.c (ax_string): New function.
2687 (ax_print): Add printf disassembly.
2688 * Makefile.in (SFILES): Add format.c
2689 (COMMON_OBS): Add format.o.
2690 * common/format.h: New file.
2691 * common/format.c: New file.
2692 * printcmd.c: Include format.h.
2693 (ui_printf): Call parse_format_string.
2694 * remote.c (remote_state): New field breakpoint_commands.
2695 (PACKET_BreakpointCommands): New enum.
2696 (remote_breakpoint_commands_feature): New function.
2697 (remote_protocol_features): Add new BreakpointCommands entry.
2698 (remote_can_run_breakpoint_commands): New function.
2699 (remote_add_target_side_commands): New function.
2700 (remote_insert_breakpoint): Call it.
2701 (remote_insert_hw_breakpoint): Ditto.
2702 (_initialize_remote): Add new packet configuration for
2703 target-side breakpoint commands.
2704 * target.h (struct target_ops): New field
2705 to_can_run_breakpoint_commands.
2706 (target_can_run_breakpoint_commands): New macro.
2707 * target.c (update_current_target): Handle
2708 to_can_run_breakpoint_commands.
2710 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2712 Execute -ix and -iex only after system and user gdbinit files.
2713 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2714 processing down after gdbinit files.
2716 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2718 Add fnmatch-gnu module.
2719 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2720 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2721 * gnulib/aclocal.m4: Regenerate.
2722 * gnulib/config.in: Regenerate.
2723 * gnulib/configure: Regenerate.
2724 * gnulib/import/dummy.c: Remove.
2725 * gnulib/import/Makefile.am: Regenerate.
2726 * gnulib/import/Makefile.in: Likewise.
2727 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2728 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2729 * gnulib/import/alloca.c: New file.
2730 * gnulib/import/alloca.in.h: Likewise.
2731 * gnulib/import/config.charset: Likewise.
2732 * gnulib/import/fnmatch.c: Likewise.
2733 * gnulib/import/fnmatch.in.h: Likewise.
2734 * gnulib/import/fnmatch_loop.c: Likewise.
2735 * gnulib/import/localcharset.c: Likewise.
2736 * gnulib/import/localcharset.h: Likewise.
2737 * gnulib/import/m4/alloca.m4: Likewise.
2738 * gnulib/import/m4/codeset.m4: Likewise.
2739 * gnulib/import/m4/configmake.m4: Likewise.
2740 * gnulib/import/m4/fcntl-o.m4: Likewise.
2741 * gnulib/import/m4/fnmatch.m4: Likewise.
2742 * gnulib/import/m4/glibc21.m4: Likewise.
2743 * gnulib/import/m4/localcharset.m4: Likewise.
2744 * gnulib/import/m4/locale-fr.m4: Likewise.
2745 * gnulib/import/m4/locale-ja.m4: Likewise.
2746 * gnulib/import/m4/locale-zh.m4: Likewise.
2747 * gnulib/import/m4/mbrtowc.m4: Likewise.
2748 * gnulib/import/m4/mbsinit.m4: Likewise.
2749 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2750 * gnulib/import/m4/mbstate_t.m4: Likewise.
2751 * gnulib/import/m4/stdbool.m4: Likewise.
2752 * gnulib/import/m4/wchar_h.m4: Likewise.
2753 * gnulib/import/m4/wctype_h.m4: Likewise.
2754 * gnulib/import/m4/wint_t.m4: Likewise.
2755 * gnulib/import/mbrtowc.c: Likewise.
2756 * gnulib/import/mbsinit.c: Likewise.
2757 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2758 * gnulib/import/mbsrtowcs-state.c: Likewise.
2759 * gnulib/import/mbsrtowcs.c: Likewise.
2760 * gnulib/import/ref-add.sin: Likewise.
2761 * gnulib/import/ref-del.sin: Likewise.
2762 * gnulib/import/stdbool.in.h: Likewise.
2763 * gnulib/import/streq.h: Likewise.
2764 * gnulib/import/strnlen1.c: Likewise.
2765 * gnulib/import/strnlen1.h: Likewise.
2766 * gnulib/import/verify.h: Likewise.
2767 * gnulib/import/wchar.in.h: Likewise.
2768 * gnulib/import/wctype.in.h: Likewise.
2770 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2772 Support shell wildcards for 'set auto-load safe-path'.
2773 * auto-load.c: Include fnmatch.h.
2774 (filename_is_in_dir): Rename to ...
2775 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2776 it. Update function comment. Rename dir_len to pattern_len. New
2777 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2778 messages. Use gdb_filename_fnmatch.
2779 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2781 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2782 * defs.h (gdb_filename_fnmatch): New declaration.
2783 * utils.c: Include fnmatch.h.
2784 (gdb_filename_fnmatch): New function.
2786 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2788 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2789 `-probe' and `-probe-stap' options.
2791 2012-07-01 Yao Qi <yao@codesourcery.com>
2793 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2794 always_inserted_off, and always_inserted_enums.
2795 Change always_inserted_mode's type to 'enum auto_boolean'.
2796 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2798 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2799 of add_setshow_enum_cmd.
2800 * infrun.c: Remove can_use_displaced_stepping_auto,
2801 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2802 can_use_displaced_stepping_enum.
2803 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2804 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2805 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2806 add_setshow_enum_cmd.
2808 2012-06-30 Doug Evans <dje@google.com>
2810 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2811 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2812 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2814 2012-06-29 Doug Evans <dje@google.com>
2816 * linespec.c: #include "stack.h".
2817 (decode_line_with_current_source): Moved here from symtab.c and
2818 renamed from decode_line_spec. All callers updated.
2819 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2820 renamed from decode_line_spec_1. All callers updated.
2821 * linespec.h (decode_line_with_current_source): Move declaration here
2822 from symtab.h and renamed from decode_line_spec.
2823 (decode_line_with_last_displayed): Move declaration here from symtab.h
2824 and renamed from decode_line_spec_1.
2825 * macrocmd.c: #include "linespec.h".
2826 * symtab.c: Remove #include "linespec.h".
2828 2012-06-28 Doug Evans <dje@google.com>
2830 * dwarf2read.c (get_cu_length): New function.
2831 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2832 (create_debug_types_hash_table): Ditto.
2833 (init_cutu_and_read_dies): Ditto.
2834 (init_cutu_and_read_dies_no_follow): Ditto.
2836 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2838 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2839 (struct abbrev_table): Define.
2840 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2842 (init_cutu_and_read_dies): Update.
2843 (abbrev_table_alloc_abbrev): New function. Replaces
2844 dwarf_alloc_abbrev. All callers updated.
2845 (abbrev_table_add_abbrev): New function.
2846 (abbrev_table_lookup_abbrev): New function. Replaces
2847 dwarf2_lookup_abbrev. All callers updated.
2848 (abbrev_table_read_table): New function. Contents moved here from
2849 dwarf2_read_abbrevs.
2850 (dwarf2_read_abbrevs): Call it.
2851 (abbrev_table_free): New function.
2852 (dwarf2_free_abbrev_table): Call it.
2854 2012-06-28 Stan Shebs <stan@codesourcery.com>
2856 * osdata.c (info_osdata_command): Filter out "Title" columns
2858 * common/linux-osdata.c (struct osdata_type): Add title field.
2859 (osdata_table): Add titles to each entry.
2860 (linux_command_xfer_osdata): Add a column for title data.
2862 2012-06-28 Stan Shebs <stan@codesourcery.com>
2864 Make logging work for MI.
2866 * interps.h (interp_set_logging_ftype): New typedef.
2867 (struct interp_procs): New field set_logging_proc.
2868 (current_interp_set_logging): Declare.
2869 * interps.c (current_interp_set_logging): New function.
2870 * cli/cli-logging.c: Include interps.h.
2871 (set_logging_redirect): Call current_interp_set_logging.
2872 (pop_output_files): Ditto.
2873 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2874 * mi/mi-console.h (mi_console_set_raw): Declare.
2875 * mi/mi-console.c (mi_console_set_raw): New function.
2876 * mi/mi-interp.c (saved_raw_stdout): New global.
2877 (mi_set_logging): New function.
2878 (_initialize_mi_interp): Add it to interp procs.
2880 2012-06-28 Doug Evans <dje@google.com>
2882 * symtab.c (lookup_symbol_aux_objfile): Use
2883 ALL_OBJFILE_PRIMARY_SYMTABS.
2885 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2887 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2889 * common/buffer.c: Include inttypes.h and stdint.h.
2890 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2892 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2893 Pedro Alves <palves@redhat.com>
2895 * gdbthread.h (ALL_THREADS): New macro.
2896 (thread_list): Declare.
2897 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2898 going, but instead fall through to the stepping handling.
2899 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2900 the passed in signal. Adjust debug output.
2901 (resume_callback): Rename to ...
2902 (linux_nat_resume_callback): ... this. Pass the thread's last
2903 stop signal, if in "pass" state.
2904 (linux_nat_resume): Adjust to rename.
2905 (stop_wait_callback): New assertion. Don't respawn signals;
2906 instead let the LWP remain with SIGNALLED set.
2907 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2908 * remote.c (append_pending_thread_resumptions): New.
2909 (remote_vcont_resume): Call it.
2910 * target.h (target_resume): Extend comment.
2912 2012-06-28 Iain Sandoe <iain@codesourcery.com>
2914 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2916 2012-06-27 Doug Evans <dje@google.com>
2918 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2919 Delete have_addr_base, unused. All uses updated.
2920 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2921 (dwarf2_get_pc_bounds): Add ranges_base.
2922 (dwarf2_record_block_ranges): Ditto.
2924 2012-06-27 Tom Tromey <tromey@redhat.com>
2927 * varobj.c (varobj_create): Update.
2928 (varobj_set_value): Update.
2929 * tracepoint.c (validate_actionline): Update.
2930 (encode_actions_1): Update.
2931 * parse.c (parse_exp_1): Add 'pc' argument.
2932 (parse_exp_in_context): Add 'pc' argument. Change how
2933 expression_context_pc is set.
2934 (parse_expression): Update.
2935 (parse_field_expression): Update.
2936 * expression.h (parse_exp_1): Update.
2937 * eval.c (parse_to_comma_and_eval): Update.
2938 * breakpoint.c (set_breakpoint_condition): Update.
2939 (update_watchpoint): Update.
2940 (init_breakpoint_sal): Update
2941 (find_condition_and_thread): Update.
2942 (watch_command_1): Update.
2943 (update_breakpoint_locations): Update.
2944 * ada-lang.c (ada_read_renaming_var_value): Update.
2945 (create_excep_cond_exprs): Update.
2947 2012-06-27 Doug Evans <dje@google.com>
2949 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2952 2012-06-26 Doug Evans <dje@google.com>
2954 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2956 (error_check_comp_unit_head): New arg abbrev_section. All callers
2958 (read_and_check_comp_unit_head): Ditto.
2959 (read_and_check_type_unit_head): Ditto.
2961 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2963 New attribute 'last' for gdb.Symtab_and_line.
2964 * NEWS (Python Scripting): Add entry about the new attribute.
2965 * python/py-symtab.c (salpy_get_last): New function which
2966 implements the get method for the 'last' attribute of
2967 gdb.Symtab_and_line.
2968 (sal_object_getset): Add entry for the 'last' attribute.
2970 2012-06-26 Doug Evans <dje@google.com>
2972 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
2973 (dwo_sections): Add macinfo, macro.
2974 (dwarf2_locate_dwo_sections): Watch for macro sections.
2975 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
2976 All callers updated. Handle DWO files.
2978 * NEWS: Mention new options "set debug dwarf2-read" and
2979 "set debug symtab-create".
2980 * dwarf2read.c (dwarf2_read_debug): New static global.
2981 (dwarf2_build_psymtabs_hard): Add debugging printfs.
2982 (process_queue): Ditto.
2983 (process_full_comp_unit): Ditto.
2984 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
2985 * elfread.c (elf_symfile_read): Add debugging printf.
2986 * minsyms.c (install_minimal_symbols): Ditto.
2987 * psymtab.c (allocate_psymtab): Ditto.
2988 * symfile.c (allocate_symtab): Ditto.
2989 * symtab.c (symtab_create_debug): New global.
2990 (_initialize_symtab): Add new option "set debug symtab-create".
2991 * symtab.h (symtab_create_debug): Declare.
2993 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
2994 (lookup_dwo_type_unit): Ditto.
2996 2012-06-26 Roland McGrath <roland@hack.frob.com>
2997 H.J. Lu <hongjiu.lu@intel.com>
2999 * amd64-linux-nat.c: Include <sys/user.h>.
3000 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3001 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3002 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3004 * configure.ac: Check if the fs_base and gs_base members of
3005 `struct user_regs_struct' exist.
3006 * config.in: Regenerated.
3007 * configure: Likewise.
3009 2012-06-25 Michael Eager <eager@eagercon.com>
3012 * python/python.c (gdbpy_write): Check for interrupted output.
3014 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3016 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3017 register as a stack alignment in ARM mode.
3019 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3021 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3022 * gnulib/config.in: Regenerate.
3023 * gnulib/configure: Likewise.
3024 * gnulib/import/m4/extensions.m4: Update it.
3025 * gnulib/import/m4/gnulib-common.m4: Likewise.
3026 * gnulib/import/m4/memmem.m4: Likewise.
3027 * gnulib/import/m4/mmap-anon.m4: Likewise.
3028 * gnulib/import/m4/multiarch.m4: Likewise.
3029 * gnulib/import/stdint.in.h: Likewise.
3031 2012-06-24 Yao Qi <yao@codesourcery.com>
3033 * corefile.c (write_memory_with_notification): New.
3034 * gdbcore.h: Declare write_memory_with_notification.
3035 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3036 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3037 * valops.c (value_assign): Likewise.
3038 * python/py-inferior.c (infpy_write_memory): Call
3039 'write_memory_with_notification'.
3041 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3043 * cc-with-index.sh: Use also -ex "set auto-load no".
3045 2012-06-23 Doug Evans <dje@google.com>
3048 * NEWS: Document additions to .gdb_index.
3049 * dwarf2read.c: #include "gdb/gdb-index.h".
3050 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3051 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3052 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3053 (dwarf2_read_index): Recognize version 7.
3054 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3055 block_kind, domain): All callers updated.
3056 (dw2_find_symbol_file): Handle new index CU values.
3057 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3058 (add_index_entry): New args is_static, kind. All callers updated.
3059 (offset_type_compare, uniquify_cu_indices): New functions
3060 (symbol_kind): New function.
3061 (write_psymtabs_to_index): Remove duplicate CU values.
3062 (write_psymtabs_to_index): Write .gdb_index version 7.
3064 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3066 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3067 * configure: Regenerate.
3069 2012-06-20 Yao Qi <yao@codesourcery.com>
3071 * python/py-inferior.c: Update comments of infpy_read_memory
3072 and infpy_write_memory.
3074 2012-06-19 Tom Tromey <tromey@redhat.com>
3077 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3078 (push_type_address_space): Remove.
3079 * parse.c (insert_into_type_stack): New function.
3080 (insert_type): Likewise.
3081 (insert_type_address_space): Rename from push_type_address_space.
3082 Insert tp_space_identifier.
3083 * c-exp.y (ptr_operator): New production.
3084 (abs_decl): Use ptr_operator.
3085 (space_identifier): Call insert_type_address_space.
3086 (ptype): Don't use const_or_volatile_or_space_identifier.
3087 (const_or_volatile_noopt): Call insert_type.
3088 (conversion_type_id, conversion_declarator): New productions.
3089 (operator): Use conversion_type_id.
3091 2012-06-18 Doug Evans <dje@google.com>
3093 * symtab.h (minimal_symbol): New member created_by_gdb.
3094 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3096 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3097 (search_symbols): Call it instead of lookup_symbol.
3098 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3100 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3101 Adjust address for DW_OP_GNU_addr_index.
3102 * dwarf2expr.h (dwarf_expr_context): Update comment.
3103 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3104 all callers updated. Handle TLS vars described with
3105 DW_OP_GNU_const_index.
3106 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3107 and DW_OP_GNU_const_index.
3108 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3110 * block.c (find_block_in_blockvector): Make explicit the fact that we
3111 ignore GLOBAL_BLOCK.
3113 2012-06-18 Tom Tromey <tromey@redhat.com>
3115 * c-exp.y (operator): Remove trailing space after "delete" and
3118 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3119 Jan Kratochvil <jan.kratochvil@redhat.com>
3121 Switch i386 and derived targets to ON_STACK.
3122 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3123 (amd64_dicos_init_abi): Remove its installment.
3124 * dicos-tdep.c (dicos_init_abi): Remove the
3125 set_gdbarch_call_dummy_location call. Update the comment here.
3126 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3127 (i386_dicos_init_abi): Remove its installment.
3128 * i386-tdep.c (i386_push_dummy_code): New function.
3129 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3130 i386_push_dummy_code.
3132 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3134 Remove stale dummy frames.
3135 * breakpoint.c: Include dummy-frame.h.
3136 (longjmp_breakpoint_ops): New variable.
3137 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3138 bp_longjmp_call_dummy.
3139 (bpstat_what, bptype_string, print_one_breakpoint_location)
3140 (init_bp_location): Support bp_longjmp_call_dummy.
3141 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3142 (set_longjmp_breakpoint_for_call_dummy)
3143 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3145 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3146 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3147 FIXME comment and extend the other comment for bp_call_dummy.
3148 (set_longjmp_breakpoint_for_call_dummy)
3149 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3150 * dummy-frame.c: Include gdbthread.h.
3151 (pop_dummy_frame_bpt): New function.
3152 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3153 (dummy_frame_discard): New function.
3154 (cleanup_dummy_frames): Update the comment about longjmps.
3155 * dummy-frame.h (dummy_frame_discard): New declaration.
3156 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3157 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3158 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3159 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3160 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3161 keep_going if IS_LONGJMP and there is no other reason to stop.
3163 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3165 * remote-sim.c (sim_command_completer): Initialize
3168 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3170 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3171 * dwarf2loc.c (call_site_parameter_matches): Support
3172 CALL_SITE_PARAMETER_PARAM_OFFSET.
3173 (needs_dwarf_reg_entry_value): Push stub value.
3174 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3175 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3176 * gdbtypes.h (enum call_site_parameter_kind): New item
3177 CALL_SITE_PARAMETER_PARAM_OFFSET.
3178 (struct call_site.parameter.u): New field param_offset.
3180 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3182 Code cleanup: Generalize call_site.parameter key.
3183 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3184 variable dwarf_reg. New variable kind_u. Update parameters to
3185 push_dwarf_reg_entry_value.
3186 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3187 * dwarf2expr.h (enum call_site_parameter_kind)
3188 (union call_site_parameter_u): Forward declarations.
3189 (struct dwarf_expr_context_funcs): Update parameters and their
3190 description for push_dwarf_reg_entry_value.
3191 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3192 * dwarf2loc.c (call_site_parameter_matches): New function.
3193 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3194 description. Use call_site_parameter_matches.
3195 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3196 Update parameters and their description.
3197 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3198 New variable kind_u. Adjust the caller for updated parameters.
3199 (needs_dwarf_reg_entry_value): Update parameters.
3200 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3201 instead of attr. Update for the changed fields of struct
3202 call_site_parameter.
3203 * gdbtypes.h: Include dwarf2expr.h.
3204 (enum call_site_parameter_kind): New.
3205 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3206 fb_offset into new union u.
3208 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3210 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3211 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3214 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3216 * amd64-linux-nat.c (compat_x32_clock_t): New.
3217 (compat_x32_siginfo_t): Likewise.
3218 (compat_x32_siginfo_from_siginfo): Likewise.
3219 (siginfo_from_compat_x32_siginfo): Likewise.
3220 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3221 and siginfo_from_compat_x32_siginfo for x32.
3223 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3225 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3227 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3229 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3230 instead of gdbarch_ptr_bit.
3231 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3232 (amd64_supply_native_gregset): Likewise.
3233 (amd64_collect_native_gregset): Likewise.
3234 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3235 (amd64_supply_xsave): Likewise.
3236 (amd64_collect_fxsave): Likewise.
3237 (amd64_collect_xsave): Likewise.
3239 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3241 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3242 (amd64_linux_read_description): Check DS segment register for
3245 2012-06-15 Tom Tromey <tromey@redhat.com>
3247 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3248 init_cutu_and_read_dies.
3250 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3252 * MAINTAINERS (Write After Approval): Add myself to the list.
3254 2012-06-15 Tom Tromey <tromey@redhat.com>
3256 * valops.c (value_find_oload_method_list): Now static.
3257 * value.h (value_find_oload_method_list): Don't declare.
3259 2012-06-15 Tom Tromey <tromey@redhat.com>
3261 * valops.c (find_overload_match): Use value_ind.
3263 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3265 * infrun.c (handle_inferior_event): Correct indentation.
3267 2012-06-14 Doug Evans <dje@google.com>
3269 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3270 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3272 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3273 updated. Handle DEBUG_LOC_START_LENGTH.
3274 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3275 (loclist_describe_location): Ditto.
3277 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3280 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3281 after hiding inline functions.
3283 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3285 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3286 _initialize_inf_ttrace.
3288 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3290 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3291 _initialize_hppa_hpux_nat.
3293 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3295 * remote-sim.c (sim_command_completer): Change type of return
3296 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3298 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3299 Jan Kratochvil <jan.kratochvil@redhat.com>
3302 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3303 stack on a 16-byte boundary.
3305 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3307 * jit.c (finalize_symtab): Set function's return type to 'void' by
3310 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3311 H.J. Lu <hongjiu.lu@intel.com>
3313 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3314 Move bits common to both the classic LP64 and the new x32 ILP32
3316 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3317 (amd64_x32_linux_init_abi): New function.
3318 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3321 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3322 * i386-tdep.c (i386_pseudo_register_name): Make public.
3323 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3324 * amd64-tdep.c (amd64_dword_names): Add "eip".
3325 (amd64_x32_pseudo_register_type): New function
3326 (amd64_x32_init_abi): New function.
3328 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3331 * inferior.h (struct inferior_suspend_state): Comment out.
3332 (struct inferior): Comment out the field suspend.
3333 * infrun.c (struct infcall_suspend_state): Comment out the field
3335 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3338 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3340 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3341 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3342 function comment. Return ERROR for unresolved cases. Implement
3343 returning proper NAME.
3344 (yylex): Accept also NAME from classify_inner_name.
3345 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3346 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3348 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3350 2012-06-13 Tom Tromey <tromey@redhat.com>
3352 * breakpoint.c (condition_completer): New function.
3353 (_initialize_breakpoint): Use it.
3354 * value.c (complete_internalvar): New function.
3355 * value.h (complete_internalvar): Declare.
3357 2012-06-13 Tom Tromey <tromey@redhat.com>
3359 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3360 * breakpoint.c (catch_syscall_completer): Return a VEC.
3361 * cli/cli-cmds.c (complete_command): Update.
3362 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3363 (complete_on_enum): Likewise.
3364 * command.h: Include gdb_vecs.h.
3365 (completer_ftype): Change return type.
3366 (complete_on_cmdlist, complete_on_enum): Likewise.
3367 * completer.c (noop_completer, filename_completer)
3368 (location_completer): Return a VEC.
3369 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3371 (expression_completer, complete_line_internal, complete_line)
3372 (command_completer): Return a VEC.
3373 (gdb_completion_word_break_characters, line_completion_function):
3375 * completer.h: Include gdb_vecs.h.
3376 (complete_line, noop_completer, filename_completer)
3377 (expression_completer, location_completer, command_completer):
3379 * f-lang.c (f_word_break_characters): Return a VEC.
3380 * interps.c (interpreter_completer): Return a VEC.
3381 * language.h (struct language_defn)
3382 <la_make_symbol_completion_list>: Return a VEC.
3383 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3384 * symtab.c (free_completion_list): Take a VEC.
3385 (return_val_size, return_val_index): Remove.
3386 (return_val): Now a VEC.
3387 (completion_list_add_name): Update.
3388 (default_make_symbol_completion_list_break_on)
3389 (default_make_symbol_completion_list, make_symbol_completion_list)
3390 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3392 (add_filename_to_list): Update.
3393 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3395 (maybe_add_partial_symtab_filename): Update.
3396 (make_source_files_completion_list): Return a VEC.
3397 * symtab.h (default_make_symbol_completion_list_break_on)
3398 (default_make_symbol_completion_list, make_symbol_completion_list)
3399 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3400 (make_source_files_completion_list): Update.
3402 2012-06-13 Tom Tromey <tromey@redhat.com>
3404 * breakpoint.c (add_catch_command): Use completer_ftype.
3405 * breakpoint.h: Include command.h.
3406 (add_catch_command): Use completer_ftype.
3407 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3408 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3409 Use completer_ftype.
3410 * command.h (completer_ftype): New typedef.
3411 (set_cmd_completer): Use it.
3412 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3415 2012-06-13 Pedro Alves <palves@redhat.com>
3417 Partial revert of previous change.
3419 * serial.c (scb_base): New global.
3420 (serial_for_fd): New.
3421 (serial_open, serial_fdopen_ops): Link new serial in open serials
3423 (do_serial_close): Unlink serial from the open serials chain.
3425 2012-06-12 Pedro Alves <palves@redhat.com>
3427 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3429 (prepare_for_detach): No longer context switch here in non-stop
3431 (fetch_inferior_event): Ditto.
3432 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3433 to the event thread before removing breakpoints. Switch to the
3434 event thread before inserting breakpoints and resuming.
3435 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3436 event thread before resuming.
3437 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3438 Switch to the event thread before removing breakpoints.
3440 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3442 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3443 special characters correctly for the Windows shells. See
3444 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3446 [!__MINGW32__]: Remove extra double quote character from special
3449 2012-06-11 Stan Shebs <stan@codesourcery.com>
3451 * ui-out.h: Remove #if 0 declarations.
3452 * ui-out.c: Remove #if 0 functions.
3454 2012-06-11 Pedro Alves <palves@redhat.com>
3456 * ser-base.c (run_async_handler_and_reschedule): New.
3457 (fd_event, push_event): Use it.
3458 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3459 reference count to 1.
3460 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3462 (serial_is_open, serial_ref, serial_unref): New.
3463 * serial.h (serial_open): Adjust comment.
3464 (serial_is_open): Declare.
3465 (serial_close): Adjust comment.
3466 (serial_ref, serial_unref) Declare.
3467 (struct serial): New field 'refcnt'.
3469 2012-06-11 Pedro Alves <palves@redhat.com>
3471 Remove #if 0'd "connect" command, and unnecessary associated
3472 refcounting and serial reuse bits.
3474 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3475 * serial.c (last_serial_opened): Delete.
3477 (serial_open): Adjust.
3478 (serial_for_fd): Delete.
3479 (serial_fdopen_ops, do_serial_close): Adjust.
3480 (serial_fdopen_ops): Adjust.
3482 2012-06-11 Pedro Alves <palves@redhat.com>
3484 * serial.c (do_serial_close): Remove early return when SCB is
3487 2012-06-11 Tom Tromey <tromey@redhat.com>
3489 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3491 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3493 Fix regression by the "ambiguous linespec" series.
3494 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3495 get_last_displayed_symtab and get_last_displayed_line and depending
3498 2012-06-11 Tom Tromey <tromey@redhat.com>
3500 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3501 (dw2_find_symbol_file): Use it.
3503 2012-06-11 Michael Eager <eager@eagercon.com>
3505 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3506 * mips-linux-tdep.h (mips_signals): New
3508 2012-06-11 Tom Tromey <tromey@redhat.com>
3510 * infrun.c (handle_inferior_event)
3511 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3513 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3514 exception logic in all cases. Update comments.
3515 (insert_longjmp_resume_breakpoint): Set the exception resume
3518 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3520 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3522 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3524 * valarith.c (binop_types_user_defined_p): Fix a typo.
3526 2012-06-08 Yao Qi <yao@codesourcery.com>
3527 Chung-Lin Tang <cltang@codesourcery.com>
3529 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3530 * arch-utils.h: Declare.
3531 * gdbarch.sh: Add return_in_first_hidden_param_p.
3532 * gdbarch.c, gdbarch.h: Regenerated.
3533 * infcall.c (call_function_by_hand): Call
3534 gdbarch_return_in_first_hidden_param_p instead of
3535 language_pass_by_reference.
3537 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3538 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3539 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3540 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3541 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3542 `cplus_return_struct_by_reference'.
3543 (tic6x_return_value): Handle language cplusplus.
3544 (tic6x_return_in_first_hidden_param_p): New.
3545 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3547 2012-06-07 Doug Evans <dje@google.com>
3549 * dwarf2read.c (dwarf2_cu): Add comment.
3551 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3553 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3555 (mips_eabi_push_dummy_call): Likewise.
3556 (mips_n32n64_push_dummy_call): Likewise.
3557 (mips_o32_push_dummy_call): Likewise.
3558 (mips_o64_push_dummy_call): Likewise.
3560 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3562 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3564 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3566 * mips-tdep.c (mips_pseudo_register_type): Use
3567 mips_float_register_p.
3569 2012-06-06 Pedro Alves <palves@redhat.com>
3571 * infrun.c (handle_inferior_event): Remove calls to
3572 reinit_frame_cache that follow a context_switch call.
3574 2012-06-06 Pedro Alves <palves@redhat.com>
3576 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3577 context_switch and remove stale comment.
3579 2012-06-06 Pedro Alves <palves@redhat.com>
3581 * infrun.c (struct execution_control_state): Remove
3582 `new_thread_event' field.
3583 (handle_inferior_event): Simplify new threads handling; don't
3584 resume the inferior if we find a new thread.
3586 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3588 * NEWS: Document the deprecation of SH's 'regs' command.
3589 * inferior.h (all_registers_info): Add function declaration.
3590 * sh-tdep.c (sh_show_regs): Remove variable.
3591 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3592 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3593 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3594 (sh_show_regs_command): Remove functions.
3595 (sh_gdbarch_init): Don't set sh_show_regs.
3596 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3597 'info all-registers'.
3598 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3599 (sh64_show_regs): Remove functions.
3600 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3602 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3604 * configure.ac: Move development=true below AC_INIT.
3605 * configure: Regenerate.
3607 2012-06-05 Stan Shebs <stan@codesourcery.com>
3609 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3612 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3614 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3615 argument as ssize_t.
3616 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3617 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3618 * target.c (target_read_stack, target_write_memory)
3619 (target_write_raw_memory): Likewise.
3620 * target.h (target_read_stack, target_write_memory)
3621 (target_write_raw_memory): Likewise.
3623 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3625 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3626 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3627 * target.c (target_read_memory): Change LEN to ssize_t.
3628 * target.h (target_read_memory): Change LEN to ssize_t.
3630 2012-06-05 Pedro Alves <palves@redhat.com>
3634 * breakpoint.c (until_break_command): Only fetch the selected
3635 frame after decode_line_1.
3637 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3639 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3640 event breakpoint at _start, __start or main if a program
3641 interpreter is not found.
3643 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3645 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3647 * windows-tdep.c: #include "objfiles.h".
3648 (windows_iterate_over_objfiles_in_search_order): New function.
3649 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3650 iterate_over_objfiles_in_search_order gdbarch method to
3651 windows_iterate_over_objfiles_in_search_order.
3652 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3654 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3656 * gdbarch.sh: Add generation of
3657 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3658 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3659 (iterate_over_objfiles_in_search_order): New gdbarch method.
3660 * gdbarch.h, gdbarch.c: Regenerate.
3661 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3663 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3665 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3666 out of lookup_symbol_aux_symtabs.
3667 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3668 call to lookup_symbol_aux_objfile.
3669 (struct global_sym_lookup_data): New type.
3670 (lookup_symbol_global_iterator_cb): New function.
3671 (lookup_symbol_global): Search for symbol using
3672 gdbarch_iterate_over_objfiles_in_search_order and
3673 lookup_symbol_global_iterator_cb.
3674 * findvar.c (struct minsym_lookup_data): New type.
3675 (minsym_lookup_iterator_cb): New function.
3676 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3677 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3678 and minsym_lookup_iterator_cb.
3680 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3682 Revert the following patch:
3683 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3684 try locating the symbol in the symbol's own objfile first, before
3685 extending the search to all objfiles.
3686 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3687 out of lookup_symbol_aux_symtabs.
3688 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3689 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3690 Do not search EXCLUDE_OBJFILE.
3691 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3692 (lookup_symbol_global): Search for matches in the block's objfile
3693 first, before searching all other objfiles.
3695 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3697 * breakpoint.c (find_condition_and_thread): Stop parsing
3698 as soon as the first invalid keyword is found.
3700 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3702 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3704 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3706 * config/djgpp/djcheck.sh: Add copyright header.
3708 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3710 * copyright.py (update_files, main): Fix path to update-copyright
3713 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3715 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3716 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3717 for which a reminder to update by hand is printed.
3719 2012-06-04 Doug Evans <dje@google.com>
3721 * buildsym.c (make_blockvector): Add comment.
3723 2012-06-04 Pedro Alves <palves@redhat.com>
3725 * arch-utils.c (default_gdb_signal_from_target): Delete.
3726 * arch-utils.h (default_gdb_signal_from_target): Delete.
3727 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3728 gdbarch_gdb_signal_from_target_p.
3729 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3731 * gdbarch.h: Regenerate.
3732 * gdbarch.c: Regenerate.
3734 2012-06-04 Pedro Alves <palves@redhat.com>
3736 * gdbarch.sh (gdb_signal_from_target): Mention that the
3737 implementation of the method must be host independent.
3738 * gdbarch.h: Regenerate.
3740 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3742 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3744 (target_read_memory_bfd): New function.
3745 (symbol_file_add_from_memory): Use it.
3747 2012-06-03 Doug Evans <dje@google.com>
3749 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3751 (basic_lookup_transparent_type): Ditto.
3753 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3754 (ALL_PRIMARY_SYMTABS): Use it.
3755 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3756 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3757 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3758 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3759 (basic_lookup_transparent_type): Ditto.
3761 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3763 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3764 it to optimize resolution of demangled name.
3766 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3768 * configure.ac (development): Define new variable.
3769 Call AC_CHECK_LIB for mcheck if $development.
3770 (ERROR_ON_WARNING): Enable it by default only if $development.
3771 * config.in: Regenerate.
3772 * configure: Regenerate.
3774 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3776 * target.c (target_read_memory): Make LEN argument as size_t.
3777 * target.h (target_read_memory): Likewise.
3779 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3781 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3783 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3785 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3786 BookE interface for PowerPC server processors if not available
3787 in the Linux Kernel.
3789 2012-05-31 Keith Seitz <keiths@redhat.com>
3791 * linespec.c (decode_objc): Add cleanup to free
3793 (find_linespec_symbols): Add cleanup to free CLASSES.
3794 * symfile.c (find_separate_debug_file_by_debuglink): Add
3795 cleanup to free DEBUGLINK.
3796 * ui-out.c (clear_header_list): No need to check if
3797 HEADER_NEXT.COLHDR is NULL.
3798 Free HEADER_NEXT.COL_NAME.
3800 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3802 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3805 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3807 * configure.host (gdb_host_cpu): Handle tilegx*.
3808 (gdb_host): Handle tilegx-*-linux*.
3809 * tilegx-linux-nat.c: New file.
3810 * config/tilegx/linux.mh: New file.
3812 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3814 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3815 tilegx-linux-tdep.o.
3816 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3817 tilegx-linux-tdep.c.
3818 * configure.tgt: Handle tilegx-*-linux*.
3819 * tilegx-tdep.h: New file.
3820 * tilegx-tdep.c: New file.
3821 * tilegx-linux-tdep.c: New file.
3822 * regformats/reg-tilegx.dat: New file.
3824 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3826 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3827 accounting of hw watchpoints on ppc.
3829 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3831 * source.c (openp): Expand tilde in path entries.
3833 2012-05-29 Doug Evans <dje@google.com>
3835 * buildsym.c (block_compar): Fix comment.
3836 (end_symtab): Fix and clarify some comments.
3838 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3839 cleanup_undefined_types.
3840 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3841 All callers updated.
3843 2012-05-29 Tom Tromey <tromey@redhat.com>
3845 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3847 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3848 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3850 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3853 2012-05-29 Tristan Gingold <gingold@adacore.com>
3855 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3856 (struct darwin_info): ... New struct.
3857 (solib_darwin_pspace_data): New variable.
3858 (darwin_pspace_data_cleanup): New function.
3859 (get_darwin_info): Likewise.
3860 (darwin_dyld_version_ok, darwin_load_image_infos)
3861 (darwin_solib_get_all_image_info_addr_at_init)
3862 (darwin_solib_read_all_image_info_addr): Add info argument.
3864 (darwin_current_sos): Use per pspace structure.
3865 (darwin_solib_create_inferior_hook): Likewise.
3866 (darwin_clear_solib): Likewise.
3867 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3869 2012-05-28 Pedro Alves <palves@redhat.com>
3871 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3872 block that uses them. Clear ecss before handling each event.
3874 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3876 * solib-svr4.c (svr4_current_sos): New comment on
3877 svr4_current_sos_via_xfer_libraries fall back.
3879 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3881 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3882 it as a fallback for TYPE_IS_OPAQUE.
3883 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3884 symbols for lookup_symbol.
3886 2012-05-24 John Steele Scott <toojays@toojays.net>
3888 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3889 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3890 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3891 (check_producer): ... this new function, which also checks for ICC
3892 and caches the result.
3893 (producer_is_icc): New function.
3894 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3897 2012-05-24 Pedro Alves <palves@redhat.com>
3901 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3902 (default_gdb_signal_to_target): ... this. Add comment.
3903 (default_gdb_signal_from_host): Rename to ...
3904 (default_gdb_signal_from_target): ... this. Add comment.
3905 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3906 (default_gdb_signal_to_target): ... this.
3907 (default_gdb_signal_from_host): Rename to ...
3908 (default_gdb_signal_from_target): ... this.
3909 * corelow.c (core_open): Adjust to naming change. Replace comment.
3910 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3911 (gdb_signal_from_target): ... this. Adjust to
3912 default_gdb_signal_from_host naming change. Extend comment.
3913 (gdb_signal_to_host): Rename to ...
3914 (gdb_signal_to_target): ... this. Adjust to
3915 default_gdb_signal_to_host naming change.
3916 * gdbarch.h, gdbarch.c: Renegerate.
3918 2012-05-24 Pedro Alves <palves@redhat.com>
3922 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
3924 2012-05-24 Pedro Alves <palves@redhat.com>
3928 Replace target_signal with gdb_signal throughout.
3930 2012-05-24 Pedro Alves <palves@redhat.com>
3934 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3935 string, instead of reusing the va_list argument.
3937 2012-05-24 Tom Tromey <tromey@redhat.com>
3939 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3942 2012-05-23 Doug Evans <dje@google.com>
3944 * symtab.c (search_symbols): Formatting fixes.
3945 (print_symbol_info): Formatting fixes.
3947 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3948 int64_t change to leb128 API.
3949 (read_encoded_value, decode_frame_entry_1): Ditto.
3950 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3951 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3952 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3953 (execute_stack_op): Ditto.
3954 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3955 (safe_read_uleb128, safe_read_sleb128): Ditto.
3956 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3957 (dwarf2_compile_expr_to_ax): Ditto.
3958 (locexpr_describe_location_piece): Ditto.
3959 (disassemble_dwarf_expression): Ditto.
3960 (locexpr_describe_location_1): Ditto.
3962 2012-05-23 Stan Shebs <stan@codesourcery.com>
3963 Kwok Cheung Yeung <kcy@codesourcery.com>
3965 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
3966 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
3967 (mi-cmd-info.o): New rule.
3968 * osdata.h (info_osdata_command): New declaration.
3969 * osdata.c (info_osdata_command): Change to non-static.
3970 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
3971 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
3972 * mi/mi-cmd-info.c: New file.
3974 2012-05-23 Doug Evans <dje@google.com>
3976 * symtab.c (search_symbols): Pass NULL for file_matcher to
3977 expand_symtabs_matching if there are no files to match.
3979 * gdbtypes.c (lookup_typename): Simplify.
3981 2012-05-23 Pedro Alves <palves@redhat.com>
3983 * arch-utils.h (default_target_signal_to_host): Delete.
3984 * arch-utils.c (default_target_signal_to_host): Delete.
3985 * gdbarch.sh (target_signal_to_host): Remove.
3986 * gdbarch.h, gdbarch.c: Regenerate.
3988 2012-05-22 Doug Evans <dje@google.com>
3990 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
3992 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
3993 (execute_cfa_program): Update to match API of leb128 functions.
3994 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
3996 (read_unsigned_leb128, read_signed_leb128): Delete.
3997 (read_initial_length): Change type of buf argument to
3999 (read_encoded_value): Update to match API of leb128 functions.
4000 (decode_frame_entry): Change result to "const gdb_byte *", and
4001 similarly for "start" parameter.
4002 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4003 (dwarf2_build_frame_info): Change local frame_ptr to
4005 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4006 read_uleb128, read_sleb128. All callers updated.
4007 (safe_skip_leb128): New function.
4008 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4009 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4010 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4011 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4012 read_uleb128, read_sleb128.
4013 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4014 (execute_stack_op): Update to match API of leb128 functions.
4015 * dwarf2expr.h: #include "leb128.h".
4016 (read_uleb128, read_sleb128): Delete.
4017 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4018 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4019 * dwarf2loc.c (debug_loc_kind): New enum.
4020 (decode_debug_loc_addresses): New function.
4021 (decode_debug_loc_dwo_addresses): New function.
4022 (dwarf2_find_location_expression): Rewrite.
4023 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4024 (locexpr_describe_location_piece): Ditto.
4025 (disassemble_dwarf_expression): Ditto.
4026 (locexpr_describe_location_1): Ditto.
4027 (loclist_describe_location): Rewrite.
4028 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4029 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4030 (dwarf2_section_buffer_overflow_complaint): Renamed from
4031 dwarf2_macros_too_long_complaint. All callers updated.
4032 (skip_leb128): Delete.
4033 (init_cu_die_reader): Initialize reader->buffer_end.
4034 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4035 (skip_form_bytes): New arg buffer_end. All callers updated.
4036 Replace call to skip_leb128 with gdb_skip_leb128.
4037 (skip_unknown_opcode): New arg mac_end. All callers updated.
4038 (fill_in_loclist_baton): Initialize baton->from_dwo.
4040 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4042 * mips-linux-nat.c (mips_linux_read_description): Use a more
4043 verbose error message.
4045 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4047 * NEWS: Add MIPS/Linux DSP support.
4048 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4049 (SIGCONTEXT_DSPCTL): New macro.
4050 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4051 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4052 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4053 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4054 (N64_SIGCONTEXT_HI3): Likewise.
4055 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4056 (N64_SIGCONTEXT_LO3): Likewise.
4057 (N64_SIGCONTEXT_DSPCTL): Likewise.
4058 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4059 (mips_linux_o32_sigframe_init): Handle DSP registers.
4060 (mips_linux_n32n64_sigframe_init): Likewise.
4062 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4064 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4067 2012-05-22 Pedro Alves <palves@redhat.com>
4069 * target.h (store_waitstatus): Move declaration ...
4070 * inf-child.h (store_waitstatus): ... here.
4071 * target.c: Move inclusion of gdb_wait.h, and ...
4072 (store_waitstatus): ... this ...
4073 * inf-child.c: ... here.
4074 * linux-nat.c: Include inf-child.h.
4075 * rs6000-nat.c: Include inf-child.h.
4076 * spu-linux-nat.c: Include inf-child.h.
4078 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4080 * tracepoint.c (start_tracing): Add missing i18n markup.
4081 (stop_tracing, set_trace_user): Ditto.
4082 (set_trace_notes, set_trace_stop_notes): Ditto.
4084 2012-05-21 Tom Tromey <tromey@redhat.com>
4087 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4089 * value.h (value_cast_pointers): Update.
4090 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4091 (value_cast): Update.
4092 (update_search_result): New function.
4093 (do_search_struct_field): New, from search_struct_field. Check
4094 for ambiguous results.
4095 (search_struct_field): Rewrite.
4096 * infcall.c (value_arg_coerce): Update.
4097 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4098 value_cast_pointers.
4099 * ada-lang.c (ada_convert_actual): Update.
4101 2012-05-21 Tom Tromey <tromey@redhat.com>
4103 * macroexp.c (macro_stringify): Terminate the string.
4105 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4107 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4109 * auto-load.c (auto_load_expand_dir_vars): New function.
4110 (auto_load_safe_path_vec_update): Use it, remove the
4111 substitute_path_component call thanks to it.
4112 (auto_load_objfile_script): Remove the debug_file_directory processing.
4113 Use auto_load_expand_dir_vars, remove the substitute_path_component
4115 * configure: Regenerate.
4116 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4117 path. Escape $ also for $debugdir.
4118 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4119 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4121 2012-05-20 Doug Evans <dje@google.com>
4123 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4124 before use. Check for symtab->includes == NULL before scanning it.
4126 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4128 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4130 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4132 * NEWS: Add microMIPS support and "set mips compression",
4133 "show mips compression" commands.
4134 * mips-tdep.h (mips_isa): New enum.
4135 (gdbarch_tdep): Add mips_isa.
4136 (mips_pc_is_mips16): Update prototype.
4137 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4138 * mips-tdep.c (mips_compression_mips16): New variable.
4139 (mips_compression_micromips): Likewise.
4140 (mips_compression_strings): Likewise.
4141 (mips_compression_string): Likewise.
4142 (is_mips16_isa, is_micromips_isa): New functions.
4143 (is_mips16_addr): Rename to...
4144 (is_compact_addr): ... this.
4145 (unmake_mips16_addr): Likewise to...
4146 (unmake_compact_addr): ... this.
4147 (make_mips16_addr): Likewise to...
4148 (make_compact_addr): ... this.
4149 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4151 (mips_elf_make_msymbol_special): Handle microMIPS code.
4152 (msymbol_is_special): Rename to...
4153 (msymbol_is_mips16): ... this.
4154 (mips_make_symbol_special, mips_pc_is_mips16): Update
4156 (msymbol_is_mips, msymbol_is_micromips): New functions.
4157 (mips16_to_32_reg): Rename to...
4158 (mips_reg3_to_reg): ... this.
4159 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4160 (mips_pc_isa): Likewise.
4161 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4163 (mips_fetch_instruction): Pass return status instead of printing
4164 an error message if requested. Handle microMIPS code. Bail out
4166 (micromips_op): New macro.
4167 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4168 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4169 (b6s4_op, b7s3_reg): Likewise.
4170 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4171 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4172 (mips_insn_size): New function.
4173 (mips32_next_pc): Update mips_fetch_instruction call.
4174 (micromips_relative_offset7): New function.
4175 (micromips_relative_offset10): Likewise.
4176 (micromips_relative_offset16): Likewise.
4177 (micromips_pc_insn_size): Likewise.
4178 (micromips_bc1_pc): Likewise.
4179 (micromips_next_pc): Likewise.
4180 (unpack_mips16): Update mips_fetch_instruction call.
4181 (extended_mips16_next_pc): Update according to change to
4183 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4185 (mips16_scan_prologue): Update mips_fetch_instruction call.
4186 Update according to change to mips16_to_32_reg.
4187 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4188 (mips_insn16_frame_base_sniffer): Likewise.
4189 (micromips_decode_imm9): New function.
4190 (micromips_scan_prologue): Likewise.
4191 (mips_micro_frame_cache): Likewise.
4192 (mips_micro_frame_this_id): Likewise.
4193 (mips_micro_frame_prev_register): Likewise.
4194 (mips_micro_frame_sniffer): Likewise.
4195 (mips_micro_frame_unwind): New variable.
4196 (mips_micro_frame_base_address): New function.
4197 (mips_micro_frame_base): New variable.
4198 (mips_micro_frame_base_sniffer): New function.
4199 (mips32_scan_prologue): Update mips_fetch_instruction call.
4200 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4201 rather than for MIPS16.
4202 (mips_insn32_frame_base_sniffer): Likewise.
4203 (mips_addr_bits_remove): Handle microMIPS code.
4204 (deal_with_atomic_sequence): Rename to...
4205 (mips_deal_with_atomic_sequence): ... this. Update the type
4206 of the variable used to hold an instruction. Remove the ISA bit
4207 check. Update mips_fetch_instruction call.
4208 (micromips_deal_with_atomic_sequence): New function.
4209 (deal_with_atomic_sequence): Likewise.
4210 (mips_about_to_return): Handle microMIPS code. Update
4211 mips_fetch_instruction call.
4212 (heuristic_proc_start): Check for the standard MIPS ISA rather
4213 than for MIPS16. Update mips_pc_is_mips16 and
4214 mips_fetch_instruction calls. Handle microMIPS code.
4215 (mips_push_dummy_code): Handle microMIPS code.
4216 (mips_eabi_push_dummy_call): Likewise.
4217 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4218 (mips_o64_push_dummy_call): Handle microMIPS code.
4219 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4220 (is_delayed): Remove function.
4221 (mips_single_step_through_delay): Replace the call to is_delayed
4222 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4223 Handle microMIPS code.
4224 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4226 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4228 (micromips_in_function_epilogue_p): New function.
4229 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4231 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4233 (gdb_print_insn_mips): Likewise.
4234 (mips_breakpoint_from_pc): Likewise.
4235 (mips_remote_breakpoint_from_pc): New function.
4236 (mips32_instruction_has_delay_slot): Simplify making use of the
4237 updated mips_fetch_instruction interface.
4238 (micromips_instruction_has_delay_slot): New function.
4239 (mips16_instruction_has_delay_slot): Simplify making use of the
4240 updated mips_fetch_instruction interface.
4241 (mips_adjust_breakpoint_address): Check for the standard MIPS
4242 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4243 calls. Handle microMIPS code.
4244 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4245 (mips_skip_trampoline_code): Handle microMIPS code.
4246 (global_mips_compression): New function.
4247 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4248 file flags. Register the microMIPS remote breakpoint handler
4249 and heuristic frame unwinder.
4250 (show_mips_compression): New function.
4251 (_initialize_mips_tdep): Add the "set mips compression" and
4252 "show mips compression" commands.
4254 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4259 * amd64-darwin-tdep.c:
4260 * arm-symbian-tdep.c:
4264 * bfin-linux-tdep.c:
4271 * dwarf2-frame-tailcall.c:
4300 * microblaze-tdep.c:
4301 * mips-linux-tdep.c:
4309 * python/py-finishbreakpoint.c:
4310 * python/py-inferior.c:
4311 * python/py-infthread.c:
4315 * remote-m32r-sdi.c:
4319 * rs6000-aix-tdep.c:
4345 * amd64-darwin-tdep.c:
4346 * arm-symbian-tdep.c:
4347 * arm-tdep.c: Delete unused variables.
4349 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4351 Rename $ddir to $datadir.
4352 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4353 * auto-load.c (auto_load_safe_path_vec_update)
4354 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4355 * configure: Regenerate.
4356 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4357 Likewise. Remove the 'use $ddir' help string.
4359 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4361 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4362 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4364 2012-05-18 Tom Tromey <tromey@redhat.com>
4367 * valprint.h (struct value_print_options) <symbol_print>: New
4369 * valprint.c (user_print_options): Add default for symbol_print.
4370 (show_symbol_print): New function.
4371 (generic_val_print): Respect symbol_print.
4372 (_initialize_valprint): Add "print symbol" setting.
4373 * f-valprint.c (f_val_print): Respect symbol_print.
4374 * c-valprint.c (c_val_print): Respect symbol_print.
4376 * printcmd.c (print_address_symbolic): Return int. Ignore some
4378 (print_address_demangle): Return int.
4379 * defs.h: (print_address_symbolic): Return int.
4380 * value.h (print_address_demangle): Return int.
4382 2012-05-18 Tom Tromey <tromey@redhat.com>
4384 * valprint.c (val_print_string): Don't print leading space.
4385 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4386 print space before string or vtbl.
4387 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4389 * jv-valprint.c (java_value_print): Print space before string.
4390 * go-valprint.c (print_go_string): Print space before string.
4391 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4392 space before string.
4393 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4394 space before string or vtbl.
4395 * auxv.c (fprint_target_auxv): Print space after address.
4397 2012-05-18 Tom Tromey <tromey@redhat.com>
4399 * printcmd.c (print_address_demangle): Remove special case for 0.
4401 2012-05-18 Tom Tromey <tromey@redhat.com>
4403 * printcmd.c (print_address_demangle): Add 'opts' argument.
4404 * p-valprint.c (pascal_val_print): Update.
4405 * jv-valprint.c (java_val_print): Update.
4407 * valprint.c (generic_val_print): Update.
4408 (print_function_pointer_address): Add 'options' argument. Remove
4409 'addressprint' argument. Update.
4410 * m2-valprint.c (print_unpacked_pointer): Update.
4411 * gnu-v3-abi.c (print_one_vtable): Update.
4412 (gnuv3_print_method_ptr): Update.
4413 * f-valprint.c (f_val_print): Update.
4414 * cp-valprint.c (cp_print_value_fields): Update.
4415 * valprint.h (print_function_pointer_address): Update.
4416 * c-valprint.c (c_val_print): Update.
4418 2012-05-18 Tom Tromey <tromey@redhat.com>
4420 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4421 directly corresponding to the found psymtab.
4422 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4423 (dw2_find_pc_sect_symtab): Use it.
4424 * block.h (blockvector_contains_pc): Declare.
4425 * block.c (find_block_in_blockvector): New function.
4426 (blockvector_for_pc_sect): Use it.
4427 (blockvector_contains_pc): New function.
4429 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4431 * mips-tdep.h (mips_write_pc): New prototype.
4432 * mips-tdep.c (mips_write_pc): Make external, add description.
4433 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4436 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4438 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4440 (mips_unwind_pc, mips_write_pc): Likewise.
4441 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4444 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4446 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4447 proc_warn, proc_error, proc_get_status, proc_flags,
4448 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4449 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4450 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4451 proc_stop_process, proc_wait_for_stop, proc_run_process,
4452 proc_set_traced_signals, proc_set_traced_faults,
4453 proc_set_traced_sysentry, proc_set_traced_sysexit,
4454 proc_set_held_signals, proc_get_held_signals,
4455 proc_get_traced_signals, proc_get_traced_faults,
4456 proc_get_traced_sysentry, proc_get_traced_sysexit,
4457 proc_clear_current_fault, proc_set_current_signal,
4458 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4459 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4460 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4461 proc_get_current_thread, proc_get_current_thread,
4462 proc_get_current_thread, proc_update_threads,
4463 proc_update_threads, proc_update_threads, proc_update_threads,
4464 proc_iterate_over_threads, procfs_find_new_threads,
4465 procfs_pid_to_str): Make static. Remove advance declaration.
4466 (proc_cursig): Make static. Conditionalized defintion on
4467 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4468 (proc_syscall, proc_set_kill_on_last_close,
4469 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4470 proc_get_pending_signals, proc_get_signal_actions,
4471 proc_trace_signal, proc_ignore_signal): Delete.
4473 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4475 * coffread.c (cs_section_address): Passing proper argument for
4476 `bfd_get_section_vma'.
4477 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4478 `bfd_get_section_flags'.
4479 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4480 `bfd_get_section_vma'.
4482 2012-05-16 Tom Tromey <tromey@redhat.com>
4485 * macrotab.h: (macro_define_special): Declare.
4486 (enum macro_special_kind): New.
4487 (struct macro_definition) <argc, replacement>: Update comments.
4488 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4489 (macro_define_object_internal): New function.
4490 (macro_define_object): Use it.
4491 (macro_define_special): New function.
4492 (fixup_definition): New function.
4493 (macro_lookup_definition, foreach_macro_in_scope)
4494 (foreach_macro): Use fixup_definition.
4495 * macroexp.h (macro_stringify): Declare.
4496 * macroexp.c (free_buffer_return_text): New function.
4497 (stringify): Constify "arg".
4498 (macro_stringify): New function.
4499 * dwarf2read.c (macro_start_file): Call macro_define_special.
4501 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4502 Maciej W. Rozycki <macro@mips.com>
4504 * breakpoint.h (bp_location): Add related_address member.
4505 * inferior.h (get_return_value): Take a pointer to struct value
4506 instead of struct type for the function requested.
4507 * value.h (using_struct_return): Likewise.
4508 * gdbarch.sh (return_value): Take a pointer to struct value
4509 instead of struct type for the function requested.
4510 * breakpoint.c (set_breakpoint_location_function): Initialize
4511 related_address for bp_gnu_ifunc_resolver breakpoints.
4512 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4513 requested function's address to gdbarch_return_value.
4514 * eval.c (evaluate_subexp_standard): Pass the requested
4515 function's address to using_struct_return.
4516 * infcall.c (call_function_by_hand): Pass the requested
4517 function's address to using_struct_return and
4518 gdbarch_return_value.
4519 * infcmd.c (get_return_value): Take a pointer to struct value
4520 instead of struct type for the function requested.
4521 (print_return_value): Update accordingly.
4522 (finish_command_continuation): Likewise.
4523 * stack.c (return_command): Pass the requested function's
4524 address to using_struct_return and gdbarch_return_value.
4525 * value.c (using_struct_return): Take a pointer to struct value
4526 instead of struct type for the function requested. Pass the
4527 requested function's address to gdbarch_return_value.
4528 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4529 New function_value member, replacing function_type.
4530 (bpfinishpy_dealloc): Update accordingly.
4531 (bpfinishpy_pre_stop_hook): Likewise.
4532 (bpfinishpy_init): Likewise. Record the requested function's
4534 * mips-tdep.c (mips_fval_reg): New enum.
4535 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4536 words put in GP registers.
4537 (mips_o64_push_dummy_call): Update a comment.
4538 (mips_o32_return_value): Take a pointer to struct value instead
4539 of struct type for the function requested and use it to check if
4540 using the MIPS16 calling convention. Return the designated
4541 general purpose registers for floating-point values returned in
4543 (mips_o64_return_value): Likewise.
4544 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4545 (ppc_sysv_abi_broken_return_value): Likewise.
4546 (ppc64_sysv_abi_return_value): Likewise.
4547 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4548 value instead of struct type for the function requested.
4549 * amd64-tdep.c (amd64_return_value): Likewise.
4550 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4551 * arm-tdep.c (arm_return_value): Likewise.
4552 * avr-tdep.c (avr_return_value): Likewise.
4553 * bfin-tdep.c (bfin_return_value): Likewise.
4554 * cris-tdep.c (cris_return_value): Likewise.
4555 * frv-tdep.c (frv_return_value): Likewise.
4556 * h8300-tdep.c (h8300_return_value): Likewise.
4557 (h8300h_return_value): Likewise.
4558 * hppa-tdep.c (hppa32_return_value): Likewise.
4559 (hppa64_return_value): Likewise.
4560 * i386-tdep.c (i386_return_value): Likewise.
4561 * ia64-tdep.c (ia64_return_value): Likewise.
4562 * iq2000-tdep.c (iq2000_return_value): Likewise.
4563 * lm32-tdep.c (lm32_return_value): Likewise.
4564 * m32c-tdep.c (m32c_return_value): Likewise.
4565 * m32r-tdep.c (m32r_return_value): Likewise.
4566 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4567 * m68k-tdep.c (m68k_return_value): Likewise.
4568 (m68k_svr4_return_value): Likewise.
4569 * m88k-tdep.c (m88k_return_value): Likewise.
4570 * mep-tdep.c (mep_return_value): Likewise.
4571 * microblaze-tdep.c (microblaze_return_value): Likewise.
4572 * mn10300-tdep.c (mn10300_return_value): Likewise.
4573 * moxie-tdep.c (moxie_return_value): Likewise.
4574 * mt-tdep.c (mt_return_value): Likewise.
4575 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4576 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4577 (ppc_sysv_abi_broken_return_value): Likewise.
4578 (ppc64_sysv_abi_return_value): Likewise.
4579 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4580 * rl78-tdep.c (rl78_return_value): Likewise.
4581 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4582 * rx-tdep.c (rx_return_value): Likewise.
4583 * s390-tdep.c (s390_return_value): Likewise.
4584 * score-tdep.c (score_return_value): Likewise.
4585 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4586 (sh_return_value_fpu): Likewise.
4587 * sh64-tdep.c (sh64_return_value): Likewise.
4588 * sparc-tdep.c (sparc32_return_value): Likewise.
4589 * sparc64-tdep.c (sparc64_return_value): Likewise.
4590 * spu-tdep.c (spu_return_value): Likewise.
4591 * tic6x-tdep.c (tic6x_return_value): Likewise.
4592 * v850-tdep.c (v850_return_value): Likewise.
4593 * vax-tdep.c (vax_return_value): Likewise.
4594 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4595 * xtensa-tdep.c (xtensa_return_value): Likewise.
4596 * gdbarch.c: Regenerate.
4597 * gdbarch.h: Regenerate.
4599 2012-05-15 Tom Tromey <tromey@redhat.com>
4601 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4603 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4605 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4606 of command in two error message.
4608 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4610 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4612 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4614 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4616 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4618 * NEWS (show auto-load scripts-directory): Add forgotten command.
4620 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4622 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4625 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4627 * amd64-tdep.c: Include features/i386/x32.c and
4628 features/i386/x32-avx.c.
4629 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4630 initialize_tdesc_x32_avx.
4632 2012-05-14 Stan Shebs <stan@codesourcery.com>
4635 * breakpoint.h (enum bptype): New type bp_dprintf.
4636 (struct breakpoint): New field extra_string.
4637 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4638 (create_breakpoint): Add extra_string arg.
4639 * breakpoint.c (dprintf_breakpoint_ops): New.
4640 (is_breakpoint): Add bp_dprintf.
4641 (bpstat_what): Add dprintf case.
4642 (bptype_string): Ditto.
4643 (print_one_breakpoint_location): Ditto.
4644 (init_bp_location): Ditto.
4645 (bkpt_print_mention): Ditto.
4646 (dprintf_style_enums): New array.
4647 (dprintf_style): New global.
4648 (dprintf_function): New global.
4649 (dprintf_channel): New global.
4650 (update_dprintf_command_list): New function.
4651 (update_dprintf_commands): New function.
4652 (init_breakpoint_sal): Add extra_string argument, handle it.
4653 (create_breakpoint_sal): Add extra_string argument.
4654 (create_breakpoints_sal): Add extra_string argument, update callers.
4655 (find_condition_and_thread): Add extra argument.
4656 (create_breakpoint): Add extra_string argument, record it.
4657 (dprintf_command): New function.
4658 (break_command_1): Add arg to create_breakpoint call.
4659 (handle_gnu_v3_exceptions): Ditto.
4660 (trace_command): Ditto.
4661 (ftrace_command): Ditto.
4662 (strace_command): Ditto.
4663 (bkpt_print_mention): Add dprintf case.
4664 (create_breakpoint_sal_default): Add extra_string argument.
4665 (_initialize_breakpoint): Add new commands.
4666 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4667 * python/py-breakpoint.c (bppy_init): Ditto.
4668 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4670 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4672 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4674 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4676 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4679 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4681 Add a new function gdb.find_pc_line to the Python API.
4682 * NEWS (Python Scripting): Add entry about the new function.
4683 * python/python.c (gdbpy_find_pc_line): New function which
4684 implements gdb.find_pc_line.
4685 (GdbMethods): Add entry for the new function.
4687 2012-05-12 Pedro Alves <palves@redhat.com>
4689 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4690 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4692 2012-05-12 Eli Zaretskii <eliz@gnu.org>
4694 * inferior.c: Include completer.h
4695 (initialize_inferiors): Set completer of add-inferior to
4698 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4700 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4701 gdbarch_ptr_bit for x32 core dump.
4703 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4705 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4706 and features/i386/x32-avx-linux.c.
4708 2012-05-11 Stan Shebs <stan@codesourcery.com>
4709 Kwok Cheung Yeung <kcy@codesourcery.com>
4711 * NEWS: Describe new info os commands.
4712 * common/linux-osdata.c (PID_T, TIME_T): Define.
4713 (MAX_PID_T_STRLEN): New.
4714 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4716 (command_from_pid): Add comment. Change to use PID_T.
4717 (commandline_from_pid): Change to use PID_T.
4718 (user_from_pid): Add comment.
4719 (get_process_owner): Add comment. Change to use PID_T and
4721 (get_number_of_cpu_cores): Add comment.
4722 (get_cores_used_by_process): Add comment. Change to use PID_T and
4724 (linux_xfer_osdata_processes): Change to use PID_T and
4726 (compare_processes): New function.
4727 (linux_xfer_osdata_processgroups): New function.
4728 (linux_xfer_osdata_threads): Change to use PID_T.
4729 (linux_xfer_osdata_fds): New function.
4730 (format_socket_state, print_sockets): New functions.
4731 (union socket_addr): New union.
4732 (linux_xfer_osdata_isockets): New function.
4733 (time_from_time_t, group_from_gid): New functions.
4734 (linux_xfer_osdata_shm): New function.
4735 (linux_xfer_osdata_sem): New function.
4736 (linux_xfer_osdata_msg): New function.
4737 (linux_xfer_osdata_modules): New function.
4738 (osdata_table): Add new entries.
4739 * common/buffer.c (buffer_xml_printf): Add support for long and
4740 long long format specifiers.
4742 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4744 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4745 (tdesc_x32_avx_linux): Likewise.
4747 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4749 Implement multi-component --with-auto-load-dir.
4750 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4752 (--with-auto-load-safe-path): Update the default value description.
4753 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4755 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4756 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4757 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4758 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4759 "set auto-load scripts-directory".
4760 * config.in: Regenerate.
4761 * configure: Regenerate.
4762 * configure.ac (--with-auto-load-dir): New configure option.
4763 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4765 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4767 Provide $ddir substitution for --with-auto-load-safe-path.
4768 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4770 * auto-load.c: Include observer.h.
4771 (auto_load_safe_path_vec_update): Call substitute_path_component for
4772 each component. New variable ddir_subst.
4773 (auto_load_gdb_datadir_changed): New function.
4774 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4775 AUTO_LOAD_SAFE_PATH. New comment.
4776 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4777 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4778 * config.in: Regenerate.
4779 * configure: Regenerate.
4780 * configure.ac (--auto-load-safe-path): Rename
4781 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4782 GDB_DATADIR/auto-load.
4783 * defs.h (substitute_path_component): New declaration.
4784 * top.c: Include observer.h.
4785 (set_gdb_datadir): New function.
4786 (init_main): Install it for "set data-directory".
4787 * utils.c (substitute_path_component): New function.
4789 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4791 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4792 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4793 DEBUG_FILE_DIRECTORY. Handle multiple components of
4794 DEBUG_FILE_DIRECTORY.
4796 2012-05-10 Tom Tromey <tromey@redhat.com>
4798 * dwarf2read.c (recursively_write_psymbols): New function.
4799 (write_psymtabs_to_index): Use it.
4801 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4803 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4804 (load_partial_comp_unit): Update.
4805 (queue_comp_unit): Add argument 'pretend_language'.
4806 (process_queue): Update.
4807 (psymtab_to_symtab_1): Skip dependencies that have a user.
4808 (load_partial_comp_unit_reader): Give meaning to the 'data'
4810 (load_full_comp_unit): Add 'pretend_language' argument.
4811 (process_full_comp_unit): Add 'pretend_language' argument. Set
4813 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4815 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4816 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4818 (prepare_one_comp_unit): Add 'pretend_language' argument.
4820 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4821 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4822 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4823 (dw2_do_instantiate_symtab): Check whether symtab was read in
4825 (dw2_instantiate_symtab): Add assertion. Call
4826 process_cu_includes.
4827 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4828 (partial_symtab_p): New typedef.
4829 (set_partial_user): New function.
4830 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4831 (scan_partial_symbols): Add imported CU to imported_symtabs.
4832 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4833 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4834 (get_symtab, recursively_compute_inclusions)
4835 (compute_symtab_includes, process_cu_includes)
4836 (process_imported_unit_die): New functions.
4837 (process_die) <DW_TAG_imported_unit>: New case.
4838 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4840 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4842 (struct partial_die_info) <locdesc>: Remove.
4844 (process_psymtab_comp_unit): Add 'read_partial' argument.
4846 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4847 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4848 (add_partial_symbol): Update.
4849 (process_die): Handle DW_TAG_partial_unit.
4850 (read_file_scope): Update comment.
4851 (load_partial_dies): Handle DW_TAG_imported_unit.
4852 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4853 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4855 2012-05-10 Tom Tromey <tromey@redhat.com>
4857 * cc-with-dwz.sh: New file.
4859 2012-05-10 Tom Tromey <tromey@redhat.com>
4861 * symtab.h (struct symtab) <includes, user>: New fields.
4862 * block.h (struct block_iterator) <d, idx, which>: New fields.
4863 * block.c (initialize_block_iterator, find_iterator_symtab)
4864 (block_iterator_step, block_iter_name_step)
4865 (block_iter_match_step): New functions.
4866 (block_iterator_first, block_iterator_next)
4867 (block_iter_name_first, block_iter_name_next)
4868 (block_iter_match_first, block_iter_match_next): Rewrite.
4869 (get_block_symtab): New function.
4871 2012-05-10 Tom Tromey <tromey@redhat.com>
4873 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4875 * jit.c (finalize_symtab): Use allocate_global_block,
4877 * buildsym.c (finish_block_internal): New function, from old
4879 (finish_block): Rewrite.
4880 (end_symtab): Use finish_block_internal, set_block_symtab.
4881 * block.h (struct global_block): New.
4882 (allocate_global_block, set_block_symtab): Declare.
4883 * block.c (allocate_global_block, set_block_symtab): New
4886 2012-05-10 Tom Tromey <tromey@redhat.com>
4888 * psymtab.c (partial_map_expand_apply): Add assertion.
4889 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4890 (psymtab_to_symtab): Find unshared psymtab.
4891 (dump_psymtab): Print including psymtabs.
4892 (recursively_search_psymtabs): New function.
4893 (expand_symtabs_matching_via_partial): Use it.
4894 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4896 (enum psymtab_search_status): New.
4898 2012-05-10 Tom Tromey <tromey@redhat.com>
4900 * tracepoint.c (scope_info): Update.
4901 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4902 (find_pc_sect_symtab, search_symbols)
4903 (default_make_symbol_completion_list_break_on)
4904 (make_file_symbol_completion_list): Update.
4905 * symmisc.c (dump_symtab_1): Update.
4906 * stack.c (print_frame_args, iterate_over_block_locals)
4907 (print_frame_labels, iterate_over_block_arg_vars): Update.
4908 * python/py-block.c (block_object) <dict>: Remove.
4910 <iter>: Change type.
4911 (blpy_iter): Update.
4912 (blpy_block_syms_iternext): Update.
4913 * psymtab.c (map_block): Use block iterators.
4914 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4915 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4916 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4917 * infrun.c (check_exception_resume): Update.
4918 * cp-support.c (make_symbol_overload_list_block): Update.
4919 * coffread.c (patch_opaque_types): Update.
4920 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4921 * block.h (struct block_iterator): New.
4922 (block_iterator_first, block_iterator_next, block_iter_name_first)
4923 (block_iter_name_next, block_iter_match_first)
4924 (block_iter_match_next): Declare.
4925 (ALL_BLOCK_SYMBOLS): Redefine.
4926 * block.c (block_iterator_first, block_iterator_next)
4927 (block_iter_name_first, block_iter_name_next)
4928 (block_iter_match_first, block_iter_match_next): New functions.
4929 * ada-lang.c (ada_add_block_symbols)
4930 (ada_make_symbol_completion_list): Use block iterator.
4932 2012-05-10 Tom Tromey <tromey@redhat.com>
4934 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4935 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4936 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4937 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4938 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4941 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4943 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4944 print-file-var-lib2.c, print-file-var-main.c and
4945 print-file-var.exp (located in gdb/testsuite/gdb.base).
4947 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4949 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4950 try locating the symbol in the symbol's own objfile first, before
4951 extending the search to all objfiles.
4952 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4953 out of lookup_symbol_aux_symtabs.
4954 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4955 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4956 Do not search EXCLUDE_OBJFILE.
4957 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4958 (lookup_symbol_global): Search for matches in the block's objfile
4959 first, before searching all other objfiles.
4961 2012-05-10 Tristan Gingold <gingold@adacore.com>
4963 * printcmd.c (set_command): Add pre/post inc/dec.
4965 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
4967 * gdb.1: Document -ex option.
4969 2012-05-09 Joel Brobecker <brobecker@adacore.com>
4971 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
4972 * inferior.h (AT_SYMBOL): Delete.
4974 2012-05-09 Joel Brobecker <brobecker@adacore.com>
4976 * mips-tdep.c (mips_push_dummy_code): New function.
4977 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
4978 ON_STACK and install mips_push_dummy_code as our gdbarch
4979 push_dummy_code routine.
4981 2012-05-09 Pedro Alves <palves@redhat.com>
4983 * target.c (set_maintenance_target_async_permitted): Rename to ...
4984 (set_target_async_command): ... this.
4985 (show_maintenance_target_async_permitted): Rename to ...
4986 (show_target_async_command): ... this.
4987 (initialize_targets): Adjust.
4989 2012-05-08 Doug Evans <dje@google.com>
4991 * go-exp.y (classify_name): Add missing assignment of fields of
4994 2012-05-08 Eli Zaretskii <eliz@gnu.org>
4996 Display the ">" prompt in interactive mode while reading canned
4997 commands, even when the current interpreter is MI.
4999 * interps.c (interp_set_temp): New function.
5001 * interps.h (interp_set_temp): Add prototype.
5003 * cli/cli-script.c (restore_interp): New cleanup function.
5004 (read_command_lines): Temporarily override the current interpreter
5005 with CLI and arrange for restoring the original one.
5007 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5009 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5011 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5013 * probe.c (parse_probes): Move conditional to check for
5014 debuginfo files from here...
5015 * stap-probe.c (stap_get_probes): ... to here.
5017 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5018 H.J. Lu <hongjiu.lu@intel.com>
5020 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5021 `movl %esp, %ebp' for the X32 ABI.
5023 2012-05-07 Tom Tromey <tromey@redhat.com>
5025 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5027 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5028 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5029 (dwarf_stack_op_name): Remove.
5030 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5031 (decode_locdesc): Use get_DW_OP_name.
5032 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5033 (dwarf2_compile_expr_to_ax): Likewise.
5034 (disassemble_dwarf_expression): Likewise.
5035 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5037 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5039 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5040 (sh_linux_sigtramp_cache): New function.
5041 (sh_linux_sigreturn_init): New function.
5042 (sh_linux_rt_sigreturn_init): New function.
5043 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5045 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5047 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5048 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5049 (sh_linux_init_abi): Add init calls to register new tramp_frame
5050 definitions under 32-bit SH, update comments.
5052 2012-05-07 Pedro Alves <palves@redhat.com>
5056 * amd64-linux-tdep.c: Include glibc-tdep.h.
5057 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5058 gdbarch_skip_solib_resolver callback.
5060 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5062 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5063 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5064 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5065 (add_auto_load_safe_path): Change the error message.
5066 (_initialize_auto_load): Change the "safe-path" help text.
5067 * configure: Regenerate
5068 * configure.ac (--without-auto-load-safe-path): Set
5069 WITH_AUTO_LOAD_SAFE_PATH to /.
5071 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5073 * stap-probe.h: Do not include unecessary `probe.h'.
5075 2012-05-05 Alan Modra <amodra@gmail.com>
5077 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5078 bfd_und_section_ptr.
5079 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5080 and bfd_com_section_ptr.
5082 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5084 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5086 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5088 * windows-nat.h (segment_register_p_ftype): New typedef.
5089 (windows_set_segment_register_p): Add declaration.
5090 * windows-nat.c (segment_register_p): New static global.
5091 (windows_set_segment_register_p): New function.
5092 (do_windows_fetch_inferior_registers): Add special handling
5093 for segment registers.
5094 * amd64-windows-nat.c: #include "amd64-tdep.h".
5095 (amd64_windows_segment_register_p): New function.
5096 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5097 * i386-windows-nat.c: #include "i386-tdep.h".
5098 (i386_windows_segment_register_p): New function.
5099 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5101 2012-05-04 Tristan Gingold <gingold@adacore.com>
5103 * printcmd.c (set_command): Emit a warning if the expression is not
5106 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5108 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5111 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5113 * stap-probe.c (stap_is_operator): Change declaration.
5114 (stap_get_opcode): Change return value.
5115 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5116 `stap_parse_argument_1'.
5118 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5120 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5123 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5125 Add two new methods global_block and static_block to gdb.Symtab
5127 * NEWS (Python scripting): Add entry about the new methods.
5128 * python/py-symtab.c (stpy_global_block): New function which
5129 implements the gdb.Symtab.global_block() method.
5130 (stpy_static_block): New function which implements the
5131 gdb.Symtab.static_block() method.
5132 (symtab_object_methods): Add entries for the two new methods.
5134 2012-05-03 Doug Evans <dje@google.com>
5136 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5139 2012-05-03 Yao Qi <yao@codesourcery.com>
5141 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5143 (i386_process_record): Ditto.
5145 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5147 * infcall.c (unwind_on_signal_p): Make static.
5149 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5151 * sol-thread.c (solaris_pid_to_str): Make static.
5152 (_initialize_sol_thread): Add prototype.
5154 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5156 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5158 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5160 * MAINTAINERS: Remove myself.
5162 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5164 Fix --without-auto-load-safe-path for MS-Windows host platform.
5165 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5167 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5169 * gdb_curses.h: Undefine KEY_EVENT before including curses
5170 headers. Move "#undef MOUSE_MOVED" before any curses header
5173 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5175 * features/i386/i386-mmx-linux.c: Regenerate.
5176 * features/rs6000/powerpc-32.c: Likewise.
5177 * features/rs6000/powerpc-32l.c: Likewise.
5178 * features/rs6000/powerpc-403.c: Likewise.
5179 * features/rs6000/powerpc-403gc.c: Likewise.
5180 * features/rs6000/powerpc-405.c: Likewise.
5181 * features/rs6000/powerpc-505.c: Likewise.
5182 * features/rs6000/powerpc-601.c: Likewise.
5183 * features/rs6000/powerpc-602.c: Likewise.
5184 * features/rs6000/powerpc-603.c: Likewise.
5185 * features/rs6000/powerpc-604.c: Likewise.
5186 * features/rs6000/powerpc-64.c: Likewise.
5187 * features/rs6000/powerpc-64l.c: Likewise.
5188 * features/rs6000/powerpc-750.c: Likewise.
5189 * features/rs6000/powerpc-860.c: Likewise.
5190 * features/rs6000/powerpc-e500.c: Likewise.
5191 * features/rs6000/powerpc-e500l.c: Likewise.
5192 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5193 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5194 * features/rs6000/rs6000.c: Likewise.
5196 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5198 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5200 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5201 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5202 (stap_parse_argument) <e>: Likewise.
5203 (handle_stap_probe) <byte_order>: Likewise.
5205 2012-04-30 Doug Evans <dje@google.com>
5207 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5208 init_and_read_dies_worker. All callers updated.
5209 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5210 replaced with init_cutu_and_read_dies.
5211 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5212 (find_partial_die): Remove FIXME. Don't free current CU.
5214 2012-04-30 Sterling Augustine <saugustine@google.com>
5216 * contrib: New directory.
5217 * contrib/test_pubnames_and_indexes.py: New file.
5219 2012-04-30 Doug Evans <dje@google.com>
5221 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5222 All callers updated.
5223 (init_cu_die_reader): Verify the section is non-empty.
5224 (dwarf_decode_line_header): Don't dereference section->asection
5225 until we know the section is present.
5227 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5229 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5232 2012-04-29 Yao Qi <yao@codesourcery.com>
5234 * gdb-code-style.el: New hook gdb-markup-hook
5235 and gdb-comment-hook.
5237 2012-04-28 Doug Evans <dje@google.com>
5239 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5240 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5242 * symfile.h (dwarf2_debug_sections): New member addr.
5243 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5244 (ctx_no_get_addr_index): New function.
5245 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5246 (ctx_no_get_addr_index): Declare.
5247 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5248 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5249 (dwarf_expr_ctx_funcs): Update.
5250 (needs_get_addr_index): New function.
5251 (needs_frame_ctx_funcs): Update.
5252 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5253 * dwarf2read.c: #include "gdbcore.h".
5254 (dwarf2_per_objfile): New members addr, dwo_files.
5255 (dwarf2_elf_names): Add entry for addr.
5256 (struct dwo_section_names): New type.
5257 (dwo_section_names): New static global.
5258 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5259 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5260 old debug_types_section member updated to use this.
5261 Rename member debug_types_section to info_or_types_section,
5263 (signatured_type): Rename member type_offset to type_offset_in_tu,
5264 all uses updated. New member type_offset_in_section.
5265 (struct dwo_sections): New type.
5266 (struct dwo_unit): New type.
5267 (struct dwo_file): New type.
5268 (die_reader_specs): New member dwo_file.
5269 (dwarf2_locate_sections): Watch for .debug_addr.
5270 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5271 (dwarf2_read_section): Get bfd of section from bfd's asection,
5273 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5274 (create_signatured_type_table_from_index): Initialize
5275 sig_type->info_or_types_section.
5276 (dw2_get_file_names): Statement lists for type units with DWO files
5277 live in the DWO file.
5278 (create_debug_types_hash_table): New function.
5279 (create_all_type_units): Rewrite.
5280 (init_cu_die_reader): New arg dwo_file, all callers updated.
5281 (init_and_read_dies_worker): Get section from
5282 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5283 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5284 continue reading the CU/TU from there.
5285 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5286 updated. Get section from this_cu->info_or_types_section.
5287 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5288 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5289 DW_FORM_GNU_str_index.
5290 (hash_dwo_file, eq_dwo_file): New functions.
5291 (allocate_dwo_file_hash_table): New function.
5292 (hash_dwo_unit, eq_dwo_unit): New functions.
5293 (allocate_dwo_unit_table): New function.
5294 (dwarf2_locate_dwo_sections): New function.
5295 (struct create_dwo_info_table_data): New type.
5296 (create_debug_info_hash_table_reader): New function.
5297 (create_debug_info_hash_table): New function.
5298 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5299 (lookup_dwo_file): New function.
5300 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5301 (free_dwo_file, free_dwo_file_cleanup): New functions.
5302 (free_dwo_file_from_slot, free_dwo_files): New functions.
5303 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5304 (dwarf2_record_block_ranges): Ditto.
5305 (read_partial_die): Ditto.
5306 (process_enumeration_scope): Update to use type_offset_in_section.
5307 (read_full_die_1): New function.
5308 (read_full_die): Rewrite.
5309 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5310 DW_FORM_GNU_str_index.
5311 (read_addr_index_1, read_addr_index): New functions.
5312 (read_addr_index_from_leb128): New function.
5313 (struct dwarf2_read_addr_index_data): New type.
5314 (dwarf2_read_addr_index_reader): New function.
5315 (dwarf2_read_addr_index): New function.
5316 (read_str_index): New function.
5317 (leb128_size): New function.
5318 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5319 If processing a type unit from a DWO file, get the line section
5321 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5322 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5323 DW_FORM_GNU_str_index.
5324 (lookup_die_type): Check whether section offset of type's die is
5325 known before looking it up. Remove assert. Condition can
5326 legimately happen for inter-cu type references.
5327 (dwarf_attr_name): Handle Fission attributes.
5328 (dwarf_form_name): Handle Fission forms.
5329 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5330 DW_FORM_GNU_str_index.
5331 (follow_die_sig): Update to use type_offset_in_section.
5332 (decode_locdesc): New case DW_OP_GNU_addr_index.
5333 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5334 DW_FORM_GNU_str_index.
5335 (cu_debug_loc_section): New function.
5336 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5337 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5338 Free DWO files if present.
5339 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5341 Refactor DIE reading.
5342 * dwarf2read.c (dwarf2_per_objfile): Replace members
5343 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5344 (die_reader_specs): New member "die_section". Temporarily make
5345 member "buffer" non-const, pending constifying all info_ptr uses.
5346 (die_reader_func_ftype): New typedef.
5347 (dw2_get_file_names_reader): New function.
5348 (dw2_get_file_names): Rewrite.
5349 (read_and_check_type_unit_head): Rename arg type_offset to
5351 (create_all_type_units): Improve debugging message.
5352 Improve dummy type unit check.
5353 (init_cu_die_reader): New arg "section". All callers updated.
5354 (init_and_read_dies_worker): New function.
5355 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5356 (init_cutu_and_read_dies_no_follow): New function.
5357 (init_cutu_and_read_dies_simple): New function.
5358 (process_psymtab_comp_unit_reader): New function.
5359 (process_psymtab_comp_unit): Delete args section,
5360 is_debug_types_section. Rewrite. All callers updated.
5361 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5362 All callers updated. Rewrite.
5363 (load_partial_comp_unit_reader): New function.
5364 (load_partial_comp_unit): Rewrite.
5365 (skip_children): New arg reader. Delete args buffer, cu.
5366 All callers updated.
5367 (skip_one_die): New arg reader. Delete args buffer, cu.
5368 All callers updated.
5369 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5370 All callers updated.
5371 (load_full_comp_unit_reader): New function.
5372 (load_full_comp_unit): Rewrite.
5373 (read_comp_unit): Delete.
5374 (read_die_and_children_1): Delete, contents moved ...
5375 (read_die_and_children): ... here.
5376 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5377 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5378 All callers updated.
5379 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5380 All callers updated.
5381 (find_partial_die): Rewrite load_all_dies support.
5382 (read_attribute_value): New arg reader. Delete args abfd, cu.
5383 All callers updated.
5384 (read_attribute): New arg reader. Delete args abfd, cu.
5385 All callers updated.
5386 (load_full_type_unit): Add assert.
5387 (read_signatured_type_reader): New function.
5388 (read_signatured_type): Rewrite.
5389 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5390 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5391 All callers updated. Set per_cu->cu = NULL after freeing it.
5392 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5393 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5394 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5395 (set_die_type): Update.
5396 (get_die_type_at_offset): Update.
5397 (read_file_scope): Call prepare_one_comp_unit.
5398 (read_type_unit_scope): Ditto.
5399 (prepare_one_comp_unit): Set producer if present.
5401 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5403 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5404 gettext function on `error'.
5406 2012-04-27 Doug Evans <dje@google.com>
5408 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5411 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5412 Tom Tromey <tromey@redhat.com>
5414 * breakpoint.c (struct breakpoint_objfile_data)
5415 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5416 <exception_probes>: New fields.
5417 (free_breakpoint_probes): New function.
5418 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5419 `_Unwind_DebugHook'.
5420 (create_exception_master_breakpoint): Likewise.
5421 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5422 * infrun.c: Including necessary header files for handling SystemTap
5424 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5425 via SystemTap probes.
5426 (check_exception_resume): Remove `func' argument. Handle exception
5427 unwinding breakpoint set via a SystemTap probe.
5428 (insert_exception_resume_from_probe): New function.
5430 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5431 Tom Tromey <tromey@redhat.com>
5432 Jan Kratochvil <jan.kratochvil@redhat.com>
5434 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5435 (COMMON_OBS): Likewise.
5436 (HFILES_NO_SRCDIR): Add `probe'.
5437 * NEWS: Mention support for static and SystemTap probes.
5438 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5439 SystemTap probes' arguments parser.
5440 * arm-linux-tdep.c: Including headers needed to perform the parsing
5441 of SystemTap probes' arguments.
5442 (arm_stap_is_single_operand): New function.
5443 (arm_stap_parse_special_token): Likewise.
5444 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5445 probes' arguments parser.
5446 * ax-gdb.c (require_rvalue): Removing static declaration.
5447 (gen_expr): Likewise.
5448 * ax-gdb.h (gen_expr): Declaring function.
5449 (require_rvalue): Likewise.
5450 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5451 (bkpt_probe_breakpoint_ops): New variable.
5452 (momentary_breakpoint_from_master): Set the `probe' value.
5453 (add_location_to_breakpoint): Likewise.
5454 (break_command_1): Using proper breakpoint_ops according to the
5455 argument passed by the user in the command line.
5456 (bkpt_probe_insert_location): New function.
5457 (bkpt_probe_remove_location): Likewise.
5458 (bkpt_probe_create_sals_from_address): Likewise.
5459 (bkpt_probe_decode_linespec): Likewise.
5460 (tracepoint_probe_create_sals_from_address): Likewise.
5461 (tracepoint_probe_decode_linespec): Likewise.
5462 (tracepoint_probe_breakpoint_ops): New variable.
5463 (trace_command): Using proper breakpoint_ops according to the
5464 argument passed by the user in the command line.
5465 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5466 static probes on breakpoints and tracepoints.
5467 * breakpoint.h (struct bp_location) <probe>: New field.
5468 * cli-utils.c (skip_spaces_const): New function.
5469 (extract_arg): Likewise.
5470 * cli-utils.h (skip_spaces_const): Likewise.
5471 (extract_arg): Likewise.
5472 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5473 * configure.ac: Append `stap-probe.o' to be generated when ELF
5475 * configure: Regenerate.
5476 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5477 * elfread.c: Include `probe.h' and `arch-utils.h'.
5478 (probe_key): New variable.
5479 (elf_get_probes): New function.
5480 (elf_get_probe_argument_count): Likewise.
5481 (elf_evaluate_probe_argument): Likewise.
5482 (elf_compile_to_ax): Likewise.
5483 (elf_symfile_relocate_probe): Likewise.
5484 (stap_probe_key_free): Likewise.
5485 (elf_probe_fns): New variable.
5486 (elf_sym_fns): Add `sym_probe_fns' value.
5487 (elf_sym_fns_lazy_psyms): Likewise.
5488 (elf_sym_fns_gdb_index): Likewise.
5489 (_initialize_elfread): Initialize objfile cache for static
5491 * gdb_vecs.h (struct probe): New forward declaration.
5492 (probe_p): New VEC declaration.
5493 * gdbarch.c: Regenerate.
5494 * gdbarch.h: Regenerate.
5495 * gdbarch.sh (stap_integer_prefix): New variable.
5496 (stap_integer_suffix): Likewise.
5497 (stap_register_prefix): Likewise.
5498 (stap_register_suffix): Likewise.
5499 (stap_register_indirection_prefix): Likewise.
5500 (stap_register_indirection_suffix): Likewise.
5501 (stap_gdb_register_prefix): Likewise.
5502 (stap_gdb_register_suffix): Likewise.
5503 (stap_is_single_operand): New function.
5504 (stap_parse_special_token): Likewise.
5505 (struct stap_parse_info): Forward declaration.
5506 * i386-tdep.c: Including headers needed to perform the parsing
5507 of SystemTap probes' arguments.
5508 (i386_stap_is_single_operand): New function.
5509 (i386_stap_parse_special_token): Likewise.
5510 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5511 probes' arguments parser.
5512 * i386-tdep.h (i386_stap_is_single_operand): New function.
5513 (i386_stap_parse_special_token): Likewise.
5514 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5515 * mipsread.c (ecoff_sym_fns): Likewise.
5516 * objfiles.c (objfile_relocate1): Support relocation for static
5518 * parse.c (prefixify_expression): Remove static declaration.
5519 (initialize_expout): Likewise.
5520 (reallocate_expout): Likewise.
5521 * parser-defs.h (initialize_expout): Declare function.
5522 (reallocate_expout): Likewise.
5523 (prefixify_expression): Likewise.
5524 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5525 of SystemTap probes' arguments.
5526 (ppc_stap_is_single_operand): New function.
5527 (ppc_stap_parse_special_token): Likewise.
5528 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5529 probes' arguments parser.
5530 * probe.c: New file, for generic statically defined probe support.
5531 * probe.h: Likewise.
5532 * s390-tdep.c: Including headers needed to perform the parsing of
5533 SystemTap probes' arguments.
5534 (s390_stap_is_single_operand): New function.
5535 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5536 probes' arguments parser.
5537 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5538 * stap-probe.c: New file, for SystemTap probe support.
5539 * stap-probe.h: Likewise.
5540 * symfile.h: Include `gdb_vecs.h'.
5541 (struct sym_probe_fns): New struct.
5542 (struct sym_fns) <sym_probe_fns>: New field.
5543 * symtab.c (init_sal): Initialize `probe' field.
5544 * symtab.h (struct probe): Forward declaration.
5545 (struct symtab_and_line) <probe>: New field.
5546 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5548 (stop_tracing): Likewise.
5549 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5551 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5552 Tom Tromey <tromey@redhat.com>
5554 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5555 and to compile agent expressions.
5556 * infrun.c (siginfo_make_value): New argument `ignore'.
5557 (siginfo_funcs): New struct.
5558 (_initialize_infrun): New argument when calling
5559 `create_internalvar_type_lazy'.
5560 * thread.c (thread_id_make_value): New argument `ignore'.
5561 (thread_funcs): New struct.
5562 (_initialize_thread): New argument when calling
5563 `create_internalvar_type_lazy'.
5564 * tracepoint.c (sdata_make_value): New argument `ignore'.
5565 (sdata_funcs): New struct.
5566 (_initialize_tracepoint): New argument when calling
5567 `create_internalvar_type_lazy'.
5568 * value.c (make_value): New struct.
5569 (create_internalvar_type_lazy): New argument `data'.
5570 (compile_internalvar_to_ax): New function.
5571 (value_of_internalvar): Properly handling `make_value' case.
5572 (clear_internalvar): Likewise.
5573 (show_convenience): Adding `TRY_CATCH' block.
5574 * value.h (internalvar_make_value): Delete, replace by...
5575 (struct internalvar_funcs): ... this.
5576 (create_internalvar_type_lazy) <fun>: Delete argument.
5577 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5578 (compile_internalvar_to_ax): New function.
5579 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5580 (tlb_funcs): New struct.
5581 (_initialize_windows_tdep): New argument when calling
5582 `create_internalvar_type_lazy'.
5584 2012-04-27 Mark Wielaard <mjw@redhat.com>
5586 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5587 see whether it is an address or a constant offset from DW_AT_low_pc.
5588 (dwarf2_record_block_ranges): Likewise.
5589 (read_partial_die): Likewise.
5591 2012-04-26 Mark Wielaard <mjw@redhat.com>
5593 * MAINTAINERS (Write After Approval): Add myself to the list.
5595 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5597 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5598 (proc_prettyprint_signal): Likewise.
5599 (proc_prettyprint_faultset): Likewise.
5600 (proc_prettyprint_fault): Likewise.
5601 (proc_prettyprint_actionset): Likewise.
5602 (proc_prettyprint_flags): Move to new proc-flags.c section.
5603 (proc_prettyfprint_flags): New prototype.
5604 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5605 (proc_syscall, proc_cursig): Likewise.
5606 (proc_set_kill_on_last_close): Likewise.
5607 (proc_unset_kill_on_last_close): Likewise.
5608 (proc_set_watchpoint): Make static.
5609 (proc_delete_dead_threads): Likewise.
5610 (procfs_set_watchpoint): Likewise.
5611 (_initialize_procfs): Add prototype.
5612 * proc-events.c: Include proc-utils.h.
5613 (init_syscall_table): Make static.
5614 * proc-api.c (_initialize_proc_api): Add prototype.
5615 * proc-flags.c: Include proc-utils.h.
5617 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5619 * configure.ac: Add AC_ARG_PROGRAM.
5620 * configure: Regenerate.
5622 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5624 Fix DW_AT_lower_bound defaults for DWARF-4+.
5625 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5626 high. New variable low_default_is_valid. Implement DWARF-4+
5627 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5628 no default by the DWARF standard.
5630 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5631 Maciej W. Rozycki <macro@codesourcery.com>
5633 * infrun.c (handle_inferior_event): Move the check for return
5634 trampolines ahead of the check for function trampolines.
5635 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5636 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5637 (mips_str_mips16_ret_stub): Likewise.
5638 (mips_str_call_fp_stub): Likewise.
5639 (mips_str_call_stub): Likewise.
5640 (mips_str_fn_stub): Likewise.
5641 (mips_str_pic): Likewise.
5642 (mips_in_frame_stub): New function.
5643 (mips_unwind_pc): Return the return address rather than the PC
5644 if the PC of an intermediate frame is inside a call thunk.
5645 (mips_is_stub_suffix): New function.
5646 (mips_is_stub_mode): Likewise.
5647 (mips_get_mips16_fn_stub_pc): Likewise.
5648 (mips_skip_mips16_trampoline_code): Update to handle all the
5649 currently generated stub types. Don't recurse into __fn_stub
5650 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5651 Use cooked register accesses.
5652 (mips_in_return_stub): Reintroduce function.
5653 (mips_skip_trampoline_code): Traverse trampolines recursively.
5654 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5656 2012-04-26 Joel Brobecker <brobecker@adacore.com>
5660 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5662 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5663 * features/arm-with-m-vfp-d16.xml: New file. Describes
5664 Cortex-M with VFPv4-sp-d16 FPU register layout.
5665 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5666 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5667 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5668 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5669 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5671 2012-04-25 Doug Evans <dje@google.com>
5673 * cli/cli-decode.c (print_doc_line): Use stream instead of
5676 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5678 * features/arm-with-iwmmxt.c: Regenerate.
5679 * features/arm-with-m-fpa-layout.c: Likewise.
5680 * features/arm-with-m.c: Likewise.
5681 * features/arm-with-neon.c: Likewise.
5682 * features/arm-with-vfpv2.c: Likewise.
5683 * features/arm-with-vfpv3.c: Likewise.
5684 * features/mips-dsp-linux.c: Likewise.
5685 * features/mips-linux.c: Likewise.
5686 * features/mips64-dsp-linux.c: Likewise.
5687 * features/mips64-linux.c: Likewise.
5688 * features/s390-linux32.c: Likewise.
5689 * features/s390-linux32v1.c: Likewise.
5690 * features/s390-linux32v2.c: Likewise.
5691 * features/s390-linux64.c: Likewise.
5692 * features/s390-linux64v1.c: Likewise.
5693 * features/s390-linux64v2.c: Likewise.
5694 * features/s390x-linux64.c: Likewise.
5695 * features/s390x-linux64v1.c: Likewise.
5696 * features/s390x-linux64v2.c: Likewise.
5697 * features/tic6x-c62x-linux.c: Likewise.
5698 * features/tic6x-c62x.c: Likewise.
5699 * features/tic6x-c64x-linux.c: Likewise.
5700 * features/tic6x-c64x.c: Likewise.
5701 * features/tic6x-c64xp-linux.c: Likewise.
5702 * features/tic6x-c64xp.c: Likewise.
5703 * target-descriptions.c: Only generate `field_type' and `type'
5704 variables when needed.
5706 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5708 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5710 2012-04-25 Doug Evans <dje@google.com>
5712 Initial pass at Go language support.
5714 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5716 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5717 (YYFILES): Add go-exp.c.
5718 (YYOBJ): Add go-exp.o.
5719 (local-maintainer-clean): Delete go-exp.c.
5720 * defs.h (enum language): Add language_go.
5721 * dwarf2read.c: #include "go-lang.h".
5722 (fixup_go_packaging): New function.
5723 (process_full_comp_unit): Call it when processing Go CUs.
5724 (dwarf2_physname): Add Go support.
5725 (read_file_scope): Handle missing language spec for GNU Go.
5726 (set_cu_language): Handle DW_LANG_Go.
5727 * go-exp.y: New file.
5728 * go-lang.h: New file.
5729 * go-lang.c: New file.
5730 * go-typeprint.c: New file.
5731 * go-valprint.c: New file.
5732 * symtab.c: #include "go-lang.h".
5733 (symbol_set_language): Handle language_go.
5734 (symbol_find_demangled_name, symbol_set_names): Ditto.
5735 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5737 2012-04-24 Jim Meyering <meyering@redhat.com>
5739 avoid a few strncpy-induced buffer overruns
5740 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5741 fname and psargs before trying to concatenate.
5742 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5743 "name" before applying strchr.
5745 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5747 * CONTRIBUTE: Use unified diff instead of context diff when
5750 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5752 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5753 code. Handle JR.HB correctly.
5755 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5758 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5759 with the other MIPS16 helpers.
5761 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5763 * observer.sh: Conditionally declare `args', thus cleaning up
5764 unused instances of this variable.
5766 2012-04-24 Yao Qi <yao@codesourcery.com>
5768 Revert this patch to allow breakpoint always-inserted
5770 2011-12-05 Pedro Alves <pedro@codesourcery.com>
5771 * breakpoint.c: Include record.h.
5772 (breakpoints_always_inserted_mode): Return false when the record
5775 * breakpoint.c (iterate_over_bp_locations): New.
5776 * breakpoint.h: Declare.
5777 New typedef walk_bp_location_callback.
5778 * record.c (record_open): Call record_init_record_breakpoints.
5779 (record_sync_record_breakpoints): New.
5780 (record_init_record_breakpoints): New.
5781 * NEWS: Mention supporting breakpoint always-inserted mode in
5784 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5786 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5789 2012-04-24 Yao Qi <yao@codesourcery.com>
5791 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5792 (is_catchpoint): ... it.
5793 (print_one_breakpoint_location): Caller update.
5794 * breakpoint.h: Update declaration.
5796 2012-04-23 David S. Miller <davem@davemloft.net>
5798 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5800 2012-04-23 Tom Tromey <tromey@redhat.com>
5802 * buildsym.c (add_free_pendings): Remove.
5803 * buildsym.h (add_free_pendings): Remove.
5805 2012-04-23 Doug Evans <dje@google.com>
5807 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5808 attr.u.unsnd instead of attr.u.addr.
5809 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5810 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5812 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5813 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5815 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5817 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5819 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5820 (mips_o32_return_value): Likewise.
5821 (mips_o64_return_value): Likewise.
5823 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5825 * ada-lang.c (ada_evaluate_subexp): Add cases for
5826 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5827 their treatment in eval.c.
5829 2012-04-21 David S. Miller <davem@davemloft.net>
5831 * sparc-tdep.c (X_DISP10): Define.
5832 (sparc_analyze_control_transfer): Handle compare-and-branch.
5834 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5836 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5837 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5839 2012-04-20 Nigel Stephens <nigel@mips.com>
5840 Maciej W. Rozycki <macro@codesourcery.com>
5842 * mips-tdep.c (mips_float_register_p): New function.
5843 (mips_convert_register_float_case_p): Use mips_float_register_p.
5844 (mips_register_type): Likewise.
5845 (mips_print_register): Likewise.
5846 (print_gp_register_row): Likewise.
5847 (mips_print_registers_info): Likewise.
5849 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5851 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5854 2012-04-20 Andrew Pinski <apinski@cavium.com>
5856 * MAINTAINERS (Write After Approval): Add myself to the list.
5858 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5860 * MAINTAINERS: Update my e-mail address.
5862 2012-04-20 Pedro Alves <palves@redhat.com>
5864 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5866 * configure: Regenerate.
5868 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5870 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5872 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5874 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5876 Fix compilation compatibility with python-2.4
5877 * python/py-type.c (convert_field): Cast ADDRSTRING for
5878 PyObject_SetAttrString as non-const. New comment.
5880 2012-04-19 Tom Tromey <tromey@redhat.com>
5882 * top.c (quit_target): Use all_cleanups.
5883 * main.c (captured_command_loop): Use all_cleanups.
5884 * exceptions.c (throw_exception): Use all_cleanups.
5886 2012-04-19 Pedro Alves <palves@redhat.com>
5888 * Makefile.in (GNULIB_BUILDDIR): New.
5889 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5890 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5891 (CLEANDIRS). Remove gnulib/import.
5892 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5894 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5895 (gnulib/import/Makefile): Replace gnulib/import with
5896 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5897 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5898 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5899 acx_configure_dir.m4.
5900 * acinclude.m4: Include acx_configure_dir.m4.
5901 * acx_configure_dir.m4: New file.
5902 * aclocal.m4: Regenerate.
5903 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5904 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5905 (GNULIB): New variable.
5906 (GNULIB_STDINT_H): Adjust.
5907 (AC_OUTPUT): Don't output gnulib/Makefile.
5908 * gdb/defs.h: Include build-gnulib/config.h.
5909 * aclocal.m4: Regenerate.
5910 * config.in: Regenerate.
5911 * configure: Regenerate.
5913 * gnulib/Makefile.in: New file.
5914 * gnulib/configure.ac: New file.
5915 * gnulib/aclocal.m4: New file.
5916 * gnulib/config.in: New file.
5917 * gnulib/configure: New file.
5918 * gnulib/: Re-run gnulib-tool to adjust.
5920 2012-04-19 Doug Evans <dje@google.com>
5922 * cleanups.h (struct cleanup): Move to cleanups.c.
5923 (make_cleanup_dtor_ftype): New typedef.
5924 (make_cleanup_dtor): Use it.
5925 (ALL_CLEANUPS): Replace with ...
5926 (all_cleanups): ... this. Declare. All uses updated.
5927 * cleanups.c: #include "gdb_assert.h".
5928 (sentinel_cleanup): New static global.
5929 (SENTINEL_CLEANUP): Define.
5930 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5931 (make_my_cleanup2): Assert result is non-NULL.
5932 (all_cleanups): New function.
5933 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5936 2012-04-19 Pedro Alves <palves@redhat.com>
5938 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5939 Adjust paths to gnulib imported files.
5941 2012-04-19 Pedro Alves <palves@redhat.com>
5943 * gnulib/: Move whole directory ...
5944 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5945 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5946 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5947 (aclocal_m4_deps): Adjust.
5948 * aclocal.m4: Regenerate.
5949 * configure: Regenerate.
5950 * configure.ac: Adjust AC_OUTPUT output.
5952 2012-04-19 Yao Qi <yao@codesourcery.com>
5954 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5956 * vec.c: Move it ...
5957 * common/vec.c: ... here.
5958 * vec.h: Move it ...
5959 * common/vec.h: ... here.
5961 2012-04-19 Yao Qi <yao@codesourcery.com>
5963 * gdb-code-style.el: New.
5965 2012-04-18 Pedro Alves <palves@redhat.com>
5967 Update gnulib from latest git.
5968 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5970 * gnulib/Makefile.am: Update.
5971 * gnulib/dummy.c: Update.
5972 * gnulib/extra/arg-nonnull.h: Update.
5973 * gnulib/extra/c++defs.h: Update.
5974 * gnulib/extra/update-copyright: Update.
5975 * gnulib/extra/warn-on-use.h: Update.
5976 * gnulib/inttypes.in.h: Update.
5977 * gnulib/m4/00gnulib.m4: Update.
5978 * gnulib/m4/extensions.m4: Update.
5979 * gnulib/m4/gnulib-cache.m4: Update.
5980 * gnulib/m4/gnulib-common.m4: Update.
5981 * gnulib/m4/gnulib-comp.m4: Update.
5982 * gnulib/m4/gnulib-tool.m4: Update.
5983 * gnulib/m4/include_next.m4: Update.
5984 * gnulib/m4/inttypes-pri.m4: Update.
5985 * gnulib/m4/inttypes.m4: Update.
5986 * gnulib/m4/longlong.m4: Update.
5987 * gnulib/m4/memchr.m4: Update.
5988 * gnulib/m4/memmem.m4: Update.
5989 * gnulib/m4/mmap-anon.m4: Update.
5990 * gnulib/m4/multiarch.m4: Update.
5991 * gnulib/m4/onceonly.m4: Update.
5992 * gnulib/m4/stddef_h.m4: Update.
5993 * gnulib/m4/stdint.m4: Update.
5994 * gnulib/m4/string_h.m4: Update.
5995 * gnulib/m4/warn-on-use.m4: Update.
5996 * gnulib/m4/wchar_h.m4: Update.
5997 * gnulib/m4/wchar_t.m4: Update.
5998 * gnulib/m4/wint_t.m4: Update.
5999 * gnulib/memchr.c: Update.
6000 * gnulib/memmem.c: Update.
6001 * gnulib/stddef.in.h: Update.
6002 * gnulib/stdint.in.h: Update.
6003 * gnulib/str-two-way.h: Update.
6004 * gnulib/string.in.h: Update.
6005 * gnulib/wchar.in.h: Update.
6007 * gnulib/extra/arg-nonnull.h: Delete.
6008 * gnulib/extra/c++defs.h: Delete.
6009 * gnulib/extra/warn-on-use.h: Delete.
6010 * gnulib/m4/wchar_h.m4: Delete.
6011 * gnulib/m4/wint_t.m4: Delete.
6012 * gnulib/wchar.in.h: Delete.
6014 * gnulib/extra/snippets/arg-nonnull.h: New.
6015 * gnulib/extra/snippets/c++defs.h: New.
6016 * gnulib/extra/snippets/warn-on-use.h: New.
6018 * aclocal.m4: Regenerate.
6019 * config.in: Regenerate.
6020 * configure: Regenerate.
6021 * gnulib/Makefile.in: Regenerate.
6023 2012-04-18 Pedro Alves <palves@redhat.com>
6025 Reimport the update-copyright module from gnulib
6026 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6028 * configure: Regenerate.
6029 * gnulib/Makefile.am: Update.
6030 * gnulib/Makefile.in: Regenerate.
6031 * gnulib/extra/update-copyright: Update.
6032 * gnulib/m4/gnulib-cache.m4: Update.
6033 * gnulib/m4/gnulib-comp.m4: Update.
6035 2012-04-18 Tristan Gingold <gingold@adacore.com>
6037 * configure.ac (aix): Put -lpthread into libs.
6038 * configure: Regenerate.
6040 2012-04-18 Tom Tromey <tromey@redhat.com>
6042 * linespec.c (convert_linespec_to_sals): Don't use
6044 (compare_msymbols): Arguments are minsym_and_objfile, not
6045 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6047 2012-04-18 Pedro Alves <palves@redhat.com>
6049 Revert gnulib/ part of:
6050 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6051 Copyright year update in most files (performed by copyright.sh).
6053 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6055 Fix 64-bit constants on 32-bit hosts.
6056 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6057 from unsigned long to ULONGEST.
6058 (read_signed_leb128): Change declaration return type from long to
6060 (dwarf2_const_value_attr): Change declaration parameter value from long
6062 (dwarf2_compute_name): Change variable value from long to LONGEST.
6063 (read_unsigned_leb128): Change return type, variable result and some
6064 casts from unsigned long to ULONGEST.
6065 (read_signed_leb128): Change return type, variable result and some
6066 casts from long to LONGEST.
6067 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6068 value from long to LONGEST.
6069 (dwarf2_const_value): Change variable value from long to LONGEST.
6070 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6071 plongest and hex_string.
6072 * symtab.h (struct general_symbol_info): Change ivalue from long to
6073 LONGEST, remove the comment.
6074 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6075 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6077 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6080 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6081 * ada-lang.c (ada_discrete_type_high_bound)
6082 (ada_discrete_type_low_bound): Fix function comment. Use
6083 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6084 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6085 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6086 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6087 Use TYPE_FIELD_ENUMVAL.
6088 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6089 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6090 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6091 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6093 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6094 * dwarf2read.c (process_enumeration_scope): Likewise.
6095 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6097 (class StructMainTypePrettyPrinter): Support also
6098 FIELD_LOC_KIND_ENUMVAL.
6099 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6101 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6102 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6103 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6104 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6106 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6107 accommodate enumval.
6108 (struct call_site): Adjust loc_kind to accommodate enumval.
6109 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6110 (TYPE_FIELD_ENUMVAL): New macros.
6111 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6112 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6114 * p-typeprint.c (pascal_type_print_base): Likewise.
6115 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6117 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6118 * python/py-type.c (convert_field): New variable addrstring. Use
6119 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6120 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6121 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6122 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6124 * valprint.c (generic_val_print): Likewise.
6126 2012-04-17 Doug Evans <dje@google.com>
6128 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6130 * dwarf2read.c: Whitespace fixes.
6131 (lookup_signatured_type): Tweak comment.
6132 (get_die_type_at_offset): Fix comment.
6134 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6136 * xcoffread.c (xcoff_secnum_to_sections): New function.
6137 (secnum_to_section, secnum_to_bfd_section): Reimplement
6138 using xcoff_secnum_to_sections. Rename "secnum" parameter
6140 (RECORD_MINIMAL_SYMBOL): Delete.
6141 (record_minimal_symbol): New function.
6142 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6143 by call to record_minimal_symbol and set misc_func_recorded
6144 to 1. Set last_csect_sec to the XCOFF section index instead
6145 of GDB's section_offset index. Update calls to
6146 prim_record_minimal_symbol_and_info to pass the BFD section
6149 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6151 * xcoffread.c (read_xcoff_symtab): Delete variables
6152 last_csect_val and last_csect_sec and associated code.
6154 2012-04-17 Doug Evans <dje@google.com>
6156 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6157 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6158 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6159 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6161 * cleanups.h: New file.
6162 * cleanups.c: New file.
6163 * Makefile.in (SFILES): Add cleanups.c.
6164 (HFILES_NO_SRCDIR): Add cleanups.h.
6165 (COMMON_OBS): Add cleanups.o.
6166 * defs.h (struct cleanup): Moved to cleanups.h.
6167 (do_cleanups,do_final_cleanups): Ditto.
6168 (discard_cleanups,discard_final_cleanups): Ditto
6169 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6170 (save_cleanups,save_final_cleanups): Ditto.
6171 (restore_cleanups,restore_final_cleanups): Ditto.
6172 (null_cleanup): Ditto.
6173 (make_my_cleanup,make_my_cleanup2): Ditto.
6174 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6175 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6176 (do_cleanups,do_final_cleanups): Ditto.
6177 (discard_cleanups,discard_final_cleanups): Ditto
6178 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6179 (save_cleanups,save_final_cleanups): Ditto.
6180 (restore_cleanups,restore_final_cleanups): Ditto.
6181 (null_cleanup): Ditto.
6182 (make_my_cleanup,make_my_cleanup2): Ditto.
6183 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6185 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6187 (make_cleanup_dyn_string_delete): Ditto.
6188 (make_cleanup_ui_file_delete): Ditto.
6189 (make_cleanup_ui_out_redirect_pop): Ditto.
6190 (make_cleanup_free_section_addr_info): Ditto.
6191 (make_cleanup_restore_integer): Ditto.
6192 (make_cleanup_unpush_target): Ditto.
6193 (make_cleanup_value_free_to_mark): Ditto.
6194 (make_cleanup_value_free): Ditto.
6195 (make_cleanup_free_so): Ditto.
6197 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6199 New option "set debug auto-load".
6200 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6201 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6202 (auto_load_safe_path_vec_update)
6203 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6205 (file_is_auto_load_safe): New parameters debug_fmt and ....
6206 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6207 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6208 caller by explanatory string.
6209 (_initialize_auto_load): Register "set debug auto-load".
6210 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6212 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6213 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6214 by explanatory string.
6215 * main.c (captured_main): Likewise.
6216 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6217 (source_section_scripts): Likewise.
6219 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6221 New option "set auto-load safe-path".
6222 * NEWS: New commands "set auto-load safe-path"
6223 and "show auto-load safe-path".
6224 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6225 (auto_load_safe_path, auto_load_safe_path_vec)
6226 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6227 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6228 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6229 (source_gdb_script_for_objfile): New variable is_safe. Call
6230 file_is_auto_load_safe. Return if it is not.
6231 (struct loaded_script): New field loaded.
6232 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6233 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6234 output "Missing" to "No".
6235 (_initialize_auto_load): New variable cmd. Initialize
6236 auto_load_safe_path. Register "set auto-load safe-path",
6237 "show auto-load safe-path" and "add-auto-load-safe-path".
6238 * auto-load.h (maybe_add_script): Add parameter loaded.
6239 (file_is_auto_load_safe): New declaration.
6240 * config.in: Regenerate.
6241 * configure: Regenerate.
6242 * configure.ac: New parameters --with-auto-load-safe-path
6243 and --without-auto-load-safe-path.
6244 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6245 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6246 * main.c (captured_main): Check file_is_auto_load_safe for
6248 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6249 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6250 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6253 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6255 auto-load: Implementation.
6256 * NEWS: New descriptions for "info auto-load",
6257 "info auto-load gdb-scripts", "info auto-load python-scripts",
6258 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6259 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6260 and "show auto-load-scripts". New description for "set auto-load",
6261 "show auto-load", "set auto-load gdb-scripts",
6262 "show auto-load gdb-scripts", "set auto-load python-scripts",
6263 "show auto-load python-scripts", "set auto-load local-gdbinit",
6264 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6265 "show auto-load libthread-db".
6266 * auto-load.c: Remove include python/python-internal.h. Add includes
6267 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6269 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6270 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): 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, show_auto_load_local_gdbinit)
6275 (script_language_gdb, source_gdb_script_for_objfile): New.
6276 (struct loaded_script): New field language.
6277 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6279 (maybe_add_script): Add parameter language. Drop redundant
6280 entry.full_path initialization. Initialize entry.language and
6282 (auto_load_objfile_script): Change parameter suffix to language.
6283 Remove the call of maybe_add_script.
6284 Call language->source_script_for_objfile.
6285 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6287 (collect_matching_scripts): Adjust it for
6288 struct collect_matching_scripts_data.
6289 (auto_load_info_scripts_pattern_nl): New variable.
6290 (info_auto_load_scripts): Rename to ...
6291 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6292 for struct collect_matching_scripts_data.
6293 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6294 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6295 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6296 (auto_load_info_cmdlist_get): New.
6297 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6298 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6299 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6300 "info auto-load local-gdbinit".
6301 * auto-load.h (struct script_language): New.
6302 (gdbpy_global_auto_load): Rename to ...
6303 (global_auto_load): ... here.
6304 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6305 (auto_load_local_gdbinit_loaded): New declarations.
6306 (maybe_add_script): New parameter language.
6307 (auto_load_objfile_script): Change parameter suffix to language.
6308 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6309 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6310 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6312 * linux-thread-db.c: Include auto-load.h and ctype.h.
6313 (auto_load_thread_db, show_auto_load_thread_db): New.
6314 (struct thread_db_info): New field filename.
6315 (delete_thread_db_info): Call xfree for FILENAME.
6316 (try_thread_db_load): Initialize FILENAME.
6317 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6318 if !AUTO_LOAD_THREAD_DB.
6319 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6320 (_initialize_thread_db): Install auto_load_thread_db
6321 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6322 as "info auto-load libthread-db".
6323 * main.c (captured_main): Rename gdbpy_global_auto_load to
6324 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6325 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6326 (print_gdb_help): Extend the help for 'local init file'.
6327 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6328 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6329 (auto_load_scripts): Rename to ...
6330 (auto_load_python_scripts): ... here, update the comment.
6331 (gdbpy_load_auto_script_for_objfile): New declaration.
6332 (show_auto_load_python_scripts, script_language_python)
6333 (gdbpy_load_auto_script_for_objfile): New.
6334 (source_section_scripts): Refactor the code.
6335 (load_auto_scripts_for_objfile): Rename to ...
6336 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6337 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6338 (info_auto_load_python_scripts): New.
6339 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6340 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6341 Register "set auto-load-scripts" as its deprecated alias. Register
6342 "info auto-load python-scripts". Register "info auto-load-scripts" as
6343 its deprecated alias.
6344 (load_auto_scripts_for_objfile): Rename to ...
6345 (gdbpy_load_auto_scripts_for_objfile): ... here.
6346 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6347 (gdbpy_load_auto_scripts_for_objfile): ... here.
6349 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6351 auto-load: Move files.
6352 * Makefile.in (SFILES): Add auto-load.c.
6353 (HFILES_NO_SRCDIR): Add auto-load.h.
6354 (COMMON_OBS): Add auto-load.o.
6355 (distclean): Change .gdbinit for gdb-gdb.gdb.
6356 * auto-load.c: New file, with parts from python/py-auto-load.c.
6357 * auto-load.h: New file, with parts from python/python.h.
6358 * configure: Regenerate.
6359 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6360 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6361 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6362 * main.c: Include auto-load.h.
6363 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6364 command.h, observer.h and progspace.h to auto-load.c. Add include
6366 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6367 (struct loaded_script, auto_load_pspace_data)
6368 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6369 (hash_loaded_script_entry, eq_loaded_script_entry)
6370 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6371 (maybe_add_script): Move to auto-load.c.
6372 (source_section_scripts): Change maybe_add_script parameters passing,
6373 use script_not_found_warning_print.
6374 (clear_section_scripts, auto_load_objfile_script)
6375 (auto_load_new_objfile, loaded_script_ptr)
6376 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6377 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6378 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6379 auto_load_new_objfile and info_auto_load_scripts initizations to
6381 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6383 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6386 * charset.c (find_charset_names): Remove variables ix and elt.
6387 Use free_char_ptr_vec.
6388 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6389 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6390 debugdir_end. New variable debugdir_len.
6391 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6392 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6394 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6395 and elt. Use free_char_ptr_vec.
6396 * source.c (add_path): Remove variables argv, arg and argv_index.
6397 New variables dir_vec, back_to, ix and name.
6398 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6399 make_cleanup_freeargv. Remove variable separator. Simplify the code
6400 no longer expecting DIRNAME_SEPARATOR.
6401 (openp): Remove variable p, p1 and len. New variables dir_vec,
6402 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6403 no longer expecting DIRNAME_SEPARATOR.
6404 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6405 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6407 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6408 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6409 (dirnames_to_char_ptr_vec): New functions.
6411 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6414 * source.c (add_path): Remove always true conditional 'p == 0' and
6415 unindent its code block.
6417 2012-04-17 Pedro Alves <palves@redhat.com>
6419 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6420 (FIELD_BITPOS_LVAL): ... this.
6421 (FIELD_BITPOS): New.
6422 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6423 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6424 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6426 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6428 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6429 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6430 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6433 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6435 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6436 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6437 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6438 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6439 * jv-lang.c (java_link_class_type): Likewise, once.
6440 * stabsread.c (read_enum_type): Likewise.
6442 2012-04-16 Yao Qi <yao@codesourcery.com>
6444 * common/agent.c (agent_run_command): Add one more parameter `len'.
6446 * common/agent.h: Update declaration.
6447 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6449 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6451 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6454 * value.c (value_actual_type): New function.
6455 * value.h (value_actual_type): New declaration.
6456 * varobj.c (update_type_if_necessary): New function.
6457 (varobj_create): Call value_actual_type instead of
6459 (install_dynamic_child): distinct changed and type changed MI variable
6461 (update_dynamic_varobj_children): Updated for install_dynamic_child
6462 change. All callers updated.
6463 (varobj_update): Support for MI variable object type change if
6464 the value changed and RTTI is used to determine the type.
6465 (create_child_with_value): Call value_actual_type instead of
6467 (adjust_value_for_child_access): Extended with a new parameter which
6468 specify whether the given value should be casted to enclosing type.
6469 All callers updated.
6471 2012-04-14 Yao Qi <yao@codesourcery.com>
6473 Import gnulib module inttypes from git
6474 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6475 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6476 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6477 gnulib/m4/inttypes-pri.m4
6478 * aclocal.m4, config.in, configure: Regenerated.
6479 * gnulib/Makefile.am: Update.
6480 * gnulib/Makefile.in: Update.
6481 * gnulib/m4/gnulib-cache.m4: Update.
6482 * gnulib/m4/gnulib-comp.m4: Update.
6483 * gnulib/inttypes.in.h: New.
6484 * gnulib/m4/inttypes-pri.m4: New.
6485 * gnulib/m4/inttypes.m4: New.
6487 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6489 * infrun.c (resume): Update PC address to the real PC after
6490 preparing to do displaced stepping.
6492 2012-04-12 Doug Evans <dje@google.com>
6494 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6495 All callers updated.
6497 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6499 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6501 2012-04-12 Doug Evans <dje@google.com>
6503 * dwarf2read.c (create_all_type_units): Renamed from
6504 create_debug_types_hash_table. All callers updated.
6506 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6507 local type_sig to sig_type, type_offset to type_offset_in_tu.
6508 (hash_signatured_type): Renamed from hash_type_signature,
6509 all callers updated.
6510 (eq_signatured_type): Renamed from eq_type_signature,
6511 all callers updated.
6512 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6513 (process_enumeration_scope): Ditto.
6514 (lookup_signatured_type_at_offset): Ditto.
6515 (load_full_type_unit, read_signatured_type): Ditto.
6517 2012-04-12 Yao Qi <yao@codesourcery.com>
6519 * remote.c (async_remote_interrupt): Correct function name in
6521 (async_remote_interrupt_twice): Ditto.
6523 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6525 * source.c (find_and_open_source): Consistently pass resulting
6526 full path through xfullpath.
6528 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6530 Provide more specific displaced-stepping memory error message.
6531 * infrun.c (displaced_step_prepare): New variable status. Call
6532 target_read_memory instead of read_memory, provide more specific
6535 2012-04-11 Tristan Gingold <gingold@adacore.com>
6538 * darwin-nat.c (darwin_execvp): Revert previous patch.
6540 2012-04-11 Tristan Gingold <gingold@adacore.com>
6543 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6546 2012-04-11 Tristan Gingold <gingold@adacore.com>
6548 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6551 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6553 New command 'explore' which helps explore values and types in
6555 * NEWS: Add an entry about the new 'explore' command.
6556 * data-directory/Makefile.in: Add gdb/command/explore.py
6557 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6558 command using the GDB Python API.
6560 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6562 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6563 extension in jump target calculation.
6565 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6567 * mips-tdep.c (mips32_next_pc): Handle JALX.
6569 2012-04-10 Yao Qi <yao@codesourcery.com>
6571 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6573 2012-04-10 Yao Qi <yao@codesourcery.com>
6575 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6576 and gnulib/m4/gnulib-tool.m4.
6578 2012-04-10 Doug Evans <dje@google.com>
6580 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6581 (load_partial_dies): Clarify comment.
6582 (find_partial_die): Support rereading type units.
6583 Clarify CU handling, if we know offset is in CU, don't search for the
6584 containing CU. Add comment regarding memory waste.
6586 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6588 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6589 i386/x32-avx and i386/x32-avx-linux.
6590 (i386/x32-expedite): New.
6591 (i386/x32-linux-expedite): Likewise.
6592 (i386/x32-avx-expedite): Likewise.
6593 (i386/x32-avx-linux-expedite): Likewise.
6594 ($(outdir)/i386/x32.dat): Likewise.
6595 ($(outdir)/i386/x32-linux.dat): Likewise.
6596 ($(outdir)/i386/x32-avx.dat): Likewise.
6597 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6599 * features/i386/x32-avx-linux.xml: New file.
6600 * features/i386/x32-avx.xml: Likewise.
6601 * features/i386/x32-core.xml: Likewise.
6602 * features/i386/x32-linux.xml: Likewise.
6603 * features/i386/x32.xml: Likewise.
6605 * features/i386/x32-avx-linux.c: New. Generated.
6606 * features/i386/x32-avx.c: Likewise.
6607 * features/i386/x32-linux.c: Likewise.
6608 * features/i386/x32.c: Likewise.
6609 * regformats/i386/x32-avx-linux.dat: Likewise.
6610 * regformats/i386/x32-avx.dat: Likewise.
6611 * regformats/i386/x32-linux.dat: Likewise.
6612 * regformats/i386/x32.dat: Likewise.
6614 2012-04-10 Tristan Gingold <gingold@adacore.com>
6616 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6617 code to kill the inferior.
6619 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6621 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6623 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6625 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6626 (yyvsp): New defines.
6627 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6629 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6631 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6633 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6635 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6638 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6640 * sparc64-tdep.c (sparc64_store_arguments)
6641 (sparc64_store_arguments): Fix coding style.
6643 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6645 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6646 complex floats, adjust some related comments and tighten a related
6648 (sparc64_extract_return_value): Handle complex floats.
6650 2012-04-07 Doug Evans <dje@google.com>
6652 * dwarf2read.c (load_partial_dies): Change condition to assert.
6654 2012-04-06 Doug Evans <dje@google.com>
6656 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6659 2012-04-05 Kevin Buettner <kevinb@redhat.com>
6661 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6663 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6664 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6667 2012-04-05 Keith Seitz <keiths@redhat.com>
6669 * linespec.c (decode_compound): Remove.
6670 (enum offset_relative_sign): New enum.
6671 (struct line_offset): New struct.
6672 (struct linespec): New struct.
6673 (struct linespec_state): Move file_symtabs,
6674 user_filename, and user_function into struct linespec.
6675 Make result an anonymous struct holding vectors of
6676 symbolp and minsym_and_objfile_d.
6677 Add language member.
6678 (enum ls_token_type): New enum.
6679 (linespec_keywords): New array.
6680 (struct ls_token): New struct.
6681 (struct ls_parser): New struct.
6682 (linespec_lexer_lex_number): New function.
6683 (linespec_lexer_lex_keyword): New function.
6684 (is_ada_operator): New function.
6685 (skip_quote_char): New function.
6686 (copy_token_string): New function.
6687 (is_closing_quote_enclosed): New function.
6688 (find_parameter_list_end): New function.
6689 (linespec_lexer_lex_string): New function.
6690 (linespec_lexer_lex_one): New function.
6691 (linespec_lexer_consume_token): New function.
6692 (linespec_lexer_peek_token): New function.
6693 (cplusplus_error): Remove unused function.
6694 (find_methods): Update comment.
6695 (find_toplevel_char): Return const.
6696 (is_objc_method_format): Remove unused function.
6697 (find_toplevel_string): New function.
6698 (is_linespec_boundary): Remove.
6699 (symbol_not_found_error): New function.
6700 (find_method_overload_end): Remove function.
6701 (unexpected_linespec_error): New function.
6702 (keep_name_info): Remove.
6703 (linespec_parse_line_offset): New function.
6704 (linespec_parse_basic): New function.
6705 (canonicalize_linespec): New function.
6706 (decode_line_internal): Remove.
6707 (create_sals_line_offset): New function adapted from
6709 (convert_linespec_to_sals): New function.
6710 (parse_linespec): New function.
6711 (linespec_parser_new): New function.
6712 (linespec_state_destructor): Change parameter type to
6713 struct linespec_state *.
6714 Add language parameter.
6715 Remove freeing of moved members.
6716 (linespec_parser_delete): New function.
6717 (decode_line_full): Use parse_linespec and linespec_parser_new.
6718 (decode_line_1): Likewise.
6719 (decode_indirect): Rename to ...
6720 (linespec_expression_to_pc): ... this and rewrite
6721 to simply find CORE_ADDR, storing this result for later
6723 (locate_first_half): Remove.
6724 (deocde_objc): Add parameter LS.
6725 Initialize new struct collect_info members.
6726 Handle minimal symbols, too.
6727 (decode_compound): Delete.
6728 (lookup_prefix_sym): Rewrite.
6729 (compare_msymbols): New function.
6730 (find_method): Rewrite.
6731 Do not call cplusplus_error.
6732 (symtabs_from_filename): Rewrite.
6733 (collect_function_symbols): Delete.
6734 (find_function_symbols): Rewrite without ARGPTR-style
6736 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6737 (decode_dollar): Adapted and renamed to ...
6738 (linespec_parse_variable): ... this.
6739 (find_linespec_symbols): New function.
6740 (decode_label): Adapted and renamed to ...
6741 (find_label_symbols): ... this.
6742 (decode_digits_list_mode): Add and use LS argument.
6743 (decode_digits_ordinary): Likewise.
6744 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6745 If in list mode, allow any symbol class. Otherwise, only
6746 permit LOC_BLOCK symbols.
6747 (minsym_found): Update comments.
6748 (search_minsyms_for_name): Do not convert the matching symbol
6749 into a SAL. Simply push the symbol and objfile into the
6751 (decode_variable): Delete. Contents adapted into
6752 find_linespec_symbols.
6754 * cp-support.c (SKIP_SPACE): Remove.
6755 (operator_tokens): Remove unused global.
6756 (cp_validate_operator): Remove.
6757 * cp-support.h (cp_validate_operator): Remove declaration.
6759 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6761 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6762 for TYPE_VPTR_FIELDNO.
6763 * valprint.c (valprint_check_validity): Make it global, move the
6764 function comment ...
6765 * value.h (valprint_check_validity): ... to this new declaration.
6767 2012-04-02 Tristan Gingold <gingold@adacore.com>
6769 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6770 the STATE32 api for i386 state.
6771 (i386_darwin_store_inferior_registers): Likewise.
6773 2012-04-02 Tristan Gingold <gingold@adacore.com>
6775 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6777 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6780 2012-04-02 Tristan Gingold <gingold@adacore.com>
6783 * darwin-nat.c (darwin_execvp): Set binary preference.
6785 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6787 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6789 2012-03-30 Tom Tromey <tromey@redhat.com>
6791 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6792 of TRY_CATCH. Fix error handling.
6793 * python/py-value.c (convert_value_from_python): Move 'old'
6794 declaration to innermost scope.
6796 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6797 Andrey Smirnov <andrew.smirnov@gmail.com>
6799 -Wshadow warning fix.
6800 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6801 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6802 Adjust code accordingly.
6804 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6806 * ada-lang.c (symbol_completion_add): Rename parameter
6807 "encoded" into "encoded_p". Ajust code and documentation
6810 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6811 Andrey Smirnov <andrew.smirnov@gmail.com>
6813 -Wshadow warning fix.
6814 * ada-lang.c (symbol_completion_add): Rename parameter
6815 "wild_match" into wild_match_p. Update code and documentation
6818 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6820 * ada-lang.c (symbol_completion_match): Rename parameter
6821 "encoded" into "encoded_p". Ajust code and documentation
6824 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6825 Andrey Smirnov <andrew.smirnov@gmail.com>
6827 -Wshadow warning fix.
6828 * ada-lang.c (symbol_completion_match): Rename parameter
6829 "wild_match" into "wild_match_p". Adjust code and function
6830 documentation accordingly.
6832 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6833 Andrey Smirnov <andrew.smirnov@gmail.com>
6835 -Wshadow warning fix.
6836 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6837 "symbol_info" into "info". Adjust code accordingly.
6838 (ada_lookup_symbol): Likewise.
6840 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6842 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6843 of this function's documentation.
6845 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6846 Andrey Smirnov <andrew.smirnov@gmail.com>
6848 -Wshadow warning fix.
6849 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6850 variable into "wild_match_p". Adjust code accordingly.
6852 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6853 Andrey Smirnov <andrew.smirnov@gmail.com>
6855 -Wshadow warning fix.
6856 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6857 parameter into "wild_match_p". Adjust code accordingly.
6858 Document this parameter in the function description.
6860 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6861 Andrey Smirnov <andrew.smirnov@gmail.com>
6863 -Wshadow warning fix.
6864 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6865 "wild_match" parameter to "wild_match_p" (-Wshadow).
6867 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6869 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6870 in function documentation.
6872 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6873 Andrey Smirnov <andrew.smirnov@gmail.com>
6875 -Wshadow warning fix.
6876 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6877 variable into wild_match_p. Adjust code accordingly.
6879 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6880 Andrey Smirnov <andrew.smirnov@gmail.com>
6882 * ada-valprint.c (ada_val_print_1): Move the code handling
6883 TYPE_CODE_ENUM inside its own lexical block. Declare
6884 variables len and val there, instead of in the function's
6885 top level block. Avoid declaring deref_val again in a way
6886 that shadows another variable of the same name declared
6887 in one of the up-level blocks. Just re-use the up-level
6890 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6892 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6893 Replace block_found argument by symbol_info. Adjust
6894 implementation accordingly. Add function documentation.
6895 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6897 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6898 * ada-exp.y (write_object_renaming): Adjust to new
6899 ada_lookup_encoded_symbol API.
6901 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6903 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6906 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
6908 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6909 (v850_register_name): Add the mpu and fpu register names.
6910 (v850e_register_name): Add the mpu and fpu register names.
6911 (v850e2_register_name): New function.
6912 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
6915 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6917 * NEWS: Add entry for Ada varobj support.
6919 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6921 * varobj.c (default_value_is_changeable_p): New function,
6922 extracted from varobj_value_is_changeable_p. Add declaration.
6923 (ada_value_is_changeable_p): New function, extracted from
6924 varobj_value_is_changeable_p. Add declaration.
6925 (struct language_specific): New field "value_is_changeable_p".
6926 (languages): Add entries for new field.
6927 (varobj_create): Set language before calling install_new_value.
6928 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6929 "value_is_changeable_p" language callback.
6931 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6933 * ada-varobj.h, ada-varobj.c: New files.
6934 * Makefile.in (SFILES): Add ada-varobj.c.
6935 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6936 (COMMON_OBS): Add ada-varobj.o.
6938 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6940 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6941 (struct language_specific): New field "value_has_mutated".
6942 (languages): Set field "value_has_mutated" in each entry of array.
6943 (varobj_value_has_mutated): New function.
6944 (varobj_udpdate): Add handling of type mutation.
6945 (value_of_root): Add handling of type mutation.
6946 (ada_value_has_mutated): New function.
6948 2012-03-28 Pedro Alves <palves@redhat.com>
6950 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6951 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6953 2012-03-28 Tom Tromey <tromey@redhat.com>
6955 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6956 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6959 2012-03-28 Tom Tromey <tromey@redhat.com>
6961 * .dir-locals.el: New file.
6963 2012-03-28 Pedro Alves <palves@redhat.com>
6965 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
6967 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6969 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
6972 2012-03-27 Pedro Alves <palves@redhat.com>
6974 Eliminate struct ui_stream.
6976 * ui-out.h (struct ui_stream): Delete.
6977 (ui_out_field_stream): Adjust prototype.
6978 (ui_out_stream_new, ui_out_stream_delete)
6979 (make_cleanup_ui_out_stream_delete): Delete declarations.
6980 * ui-out.c (ui_out_field_stream): Change prototype to take a
6981 ui_file instead of a ui_stream. Adjust.
6982 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
6983 (make_cleanup_ui_out_stream_delete): Delete.
6984 * breakpoint.c (print_breakpoint_location)
6985 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
6986 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6987 * disasm.c (dump_insns): Ditto.
6988 (do_mixed_source_and_assembly, do_assembly_only): Adjust
6990 (gdb_disassembly): Use ui_file/mem_fileopen instead of
6991 ui_stream/ui_out_stream_new.
6992 * infcmd.c (print_return_value): Ditto.
6993 * osdata.c (info_osdata_command): Don't allocate a local
6995 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
6996 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6997 * tracepoint.c (print_one_static_tracepoint_marker): Don't
6998 allocate a local ui_stream.
6999 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7000 instead of ui_stream/ui_out_stream_new.
7001 (list_args_or_locals): Don't allocate a local ui_stream.
7002 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7003 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7004 ui_stream/ui_out_stream_new.
7005 * cli/cli-setshow.c (do_setshow_command): Ditto.
7007 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7009 * arm-linux-tdep.c (arm_linux_init_abi): Call
7010 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7011 * arm-tdep.c (arm_process_record): New function.
7012 (deallocate_reg_mem): New function.
7013 (decode_insn): New function.
7014 (thumb_record_branch): New function.
7015 (thumb_record_ldm_stm_swi(): New function.
7016 (thumb_record_misc): New function.
7017 (thumb_record_ld_st_stack): New function.
7018 (thumb_record_ld_st_imm_offset): New function.
7019 (thumb_record_ld_st_reg_offset(): New function.
7020 (thumb_record_add_sub_cmp_mov): New function.
7021 (thumb_record_shift_add_sub): New function.
7022 (arm_record_coproc_data_proc): New function.
7023 (arm_record_coproc): New function.
7024 (arm_record_b_bl): New function.
7025 (arm_record_ld_st_multiple): New function.
7026 (arm_record_ld_st_reg_offset): New function.
7027 (arm_record_ld_st_imm_offset): New function.
7028 (arm_record_data_proc_imm): New function.
7029 (arm_record_data_proc_misc_ld_str): New function.
7030 (arm_record_extension_space): New function.
7031 (arm_record_strx): New function.
7032 (sbo_sbz): New function.
7033 (struct insn_decode_record): New structure for arm insn record.
7034 (REG_ALLOC): New macro for reg allocations.
7035 (MEM_ALLOC): New macro for memory allocations.
7036 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7038 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7040 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7041 (store_register): Likewise.
7043 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7045 * MAINTAINERS (Write After Approval): Add myself to the list.
7047 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7049 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7050 Describe also the option "auto".
7052 2012-03-22 Richard Henderson <rth@redhat.com>
7054 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7055 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7057 2012-03-22 Richard Henderson <rth@redhat.com>
7059 * jit.c (jit_read_code_entry): Compute alignment and offset of
7060 int64_t member before computing entry_size.
7062 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7064 Python scripting: Add new method Value.referenced_value to
7065 gdb.Value which can dereference pointer as well as reference
7067 * NEWS: Add entry under 'Python scripting' about the new method
7068 Value.referenced_value on gdb.Value objects.
7069 * python/py-value.c (valpy_referenced_value): New function
7070 defining a new method on gdb.Value objects which can dereference
7071 pointer and reference values.
7073 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7075 * MAINTAINERS (Write After Approval): Add myself to the list.
7077 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7079 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7080 in addition to "main".
7082 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7084 * expression.h (op_name): Add declaration.
7085 * expprint.c (op_name): Remove declaration. Make non-static.
7086 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7088 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7090 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7092 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7093 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7094 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7095 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7096 (linux_nat_get_siginfo): Likewise.
7097 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7098 (linux_nat_get_siginfo): Likewise.
7099 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7100 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7101 * procfs.c (gdb_siginfo_t): Likewise.
7103 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7105 * .gitignore: Ignore more files.
7107 2012-03-20 Pedro Alves <palves@redhat.com>
7109 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7112 2012-03-20 Yao Qi <yao@codesourcery.com>
7114 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7117 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7119 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7120 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7121 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7123 * dwarf2expr.h (cu_offset, sect_offset): New types.
7124 (struct dwarf_expr_context_funcs) <dwarf_call>
7125 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7127 (struct dwarf_expr_context) <len>: Improve the comment.
7128 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7129 cu_offset and sect_offset.
7130 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7131 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7132 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7133 * dwarf2loc.h: Include dwarf2expr.h.
7134 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7136 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7137 Improve the comment.
7138 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7139 (struct signatured_type, struct line_header, struct partial_die_info)
7140 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7141 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7142 (get_die_type_at_offset, create_cus_from_index)
7143 (create_signatured_type_table_from_index, dw2_get_file_names)
7144 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7145 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7146 (create_debug_types_hash_table, process_psymtab_comp_unit)
7147 (load_partial_comp_unit, create_all_comp_units)
7148 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7149 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7150 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7151 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7152 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7153 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7154 (find_partial_die, read_attribute_value, lookup_die_type)
7155 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7156 (is_ref_attr): New function comment.
7157 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7158 Use cu_offset and sect_offset.
7159 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7160 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7161 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7162 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7163 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7164 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7165 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7168 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7171 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7172 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7174 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7176 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7178 * NEWS: Describe new options --init-command=FILE, -ix and
7179 --init-eval-command=COMMAND, -iex.
7180 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7181 CMDARG_INIT_COMMAND.
7182 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7183 "init-command", "init-eval-command", "ix" and "iex" to the variable
7184 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7185 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7186 (print_gdb_help): Describe --init-command=FILE, -ix and
7187 --init-eval-command=COMMAND, -iex.
7189 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7192 * main.c (struct cmdarg): Move it here from main. Add more comments.
7193 (cmdarg_s, VEC (cmdarg_s)): New.
7194 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7195 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7196 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7197 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7200 2012-03-19 Tom Tromey <tromey@redhat.com>
7202 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7204 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7207 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7210 2012-03-16 Chris January <chris.january@allinea.com>
7212 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7215 2012-03-16 Chris January <chris.january@allinea.com>
7217 * source.c (add_path): Use memmove instead of strcpy because the
7220 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7222 * value.h (set_value_parent): Add declaration.
7223 * value.c (set_value_parent): New function.
7224 (value_address): If VALUE->PARENT is not NULL, then use it as
7225 the base address instead of VALUE->LOCATION.address.
7226 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7227 the same as OBJ's address. Adjust V's offset accordingly.
7230 2012-03-16 Gary Benson <gbenson@redhat.com>
7232 PR breakpoints/10738
7233 * dwarf2read.c (use_deprecated_index_sections): New global.
7234 (struct partial_die_info): New member may_be_inlined.
7235 (read_partial_die): Set may_be_inlined where appropriate.
7236 (add_partial_subprogram): Add partial symbols for partial
7237 DIEs that may be inlined.
7238 (new_symbol_full): Add inlined subroutines to the current
7240 (write_psymtabs_to_index): Bump version number.
7241 (dwarf2_read_index): Read only version 6 indices unless
7242 use_deprecated_index_sections is set.
7243 * linespec.c (symbol_and_data_callback): New structure.
7244 (iterate_inline_only): New function.
7245 (iterate_over_all_matching_symtabs): New argument
7246 "include_inline". If nonzero, also call the callback for
7247 symbols representing inlined subroutines.
7248 (lookup_prefix_sym): Pass extra argument to the above.
7249 (find_function_symbols): Likewise.
7250 (add_matching_symbols_to_info): Likewise.
7251 * NEWS: Mention that GDB can now set breakpoints on inlined
7254 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7256 * p-typeprint.c (pascal_type_print_method_args):
7257 Fix display of parameter of methods.
7259 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7261 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7262 Add missing prototype.
7264 2012-03-16 Yao Qi <yao@codesourcery.com>
7265 Jan Kratochvil <jan.kratochvil@redhat.com>
7267 Fix false compilation warning.
7268 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7270 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7271 Pedro Alves <pedro@codesourcery.com>
7273 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7274 (arm_register_g_packet_guesses): New function.
7275 (arm_gdbarch_init): Don't force a target description with
7276 registers when the executable is detected as M-profile. Instead
7277 set gdbarch->tdep->is_m. Register `g' packet guesses.
7278 (_initialize_arm_tdep): Initialize the new target description.
7279 * features/arm-with-m-fpa-layout.xml: New description.
7280 * features/arm-with-m-fpa-layout.c: New, generated.
7282 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7284 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7285 Update function description.
7286 (insert_bp_location): Do not wipe bl->target_info out.
7287 * mem-break.c: #include "gdb_string.h".
7288 (default_memory_insert_breakpoint): Do not call target_read_memory
7289 with a pointer to the breakpoint's shadow_contents buffer. Use
7290 a local buffer instead.
7291 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7293 2012-03-15 Tom Tromey <tromey@redhat.com>
7295 * NEWS: Mention "info vtbl", not "info vtable".
7296 * cp-support.c (info_vtbl_command): Fix comment.
7297 (_initialize_cp_support): Fix text.
7299 2012-03-15 Tom Tromey <tromey@redhat.com>
7301 * cp-valprint.c (cp_print_value_fields): Use
7302 print_function_pointer_address for vtable slot.
7304 2012-03-15 Tom Tromey <tromey@redhat.com>
7306 * gnu-v3-abi.c (struct value_and_voffset): New.
7307 (hash_value_and_voffset, eq_value_and_voffset)
7308 (compare_value_and_voffset, compute_vtable_size)
7309 (print_one_vtable, gnuv3_print_vtable): New functions.
7310 (init_gnuv3_ops): Initialize 'print_vtable' field.
7311 * cp-support.c (info_vtbl_command): New function.
7312 (_initialize_cp_support): Add "info vtbl".
7313 * cp-abi.h (cplus_print_vtable): Declare.
7314 (struct cp_abi_ops) <print_vtable>: New field.
7315 * cp-abi.c (cplus_print_vtable): New function.
7318 2012-03-15 Tom Tromey <tromey@redhat.com>
7320 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7321 iterate_over_symbols.
7323 2012-03-14 Doug Evans <dje@google.com>
7325 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7326 DW_OP_GNU_parameter_ref.
7328 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7330 Fix double prompt of 'interpreter-exec mi'.
7331 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7332 (mi_interpreter_resume): use it.
7333 (mi_execute_command_input_handler): New function.
7334 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7335 mi_execute_command_input_handler.
7337 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7339 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7341 (darwin_debug_port_info): Make static.
7342 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7343 * machoread.c (_initialize_machoread): Add prototype.
7344 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7345 (i386_darwin_set_control, i386_darwin_get_control)
7346 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7347 i386_darwin_get_status, i386_darwin_get_control):
7348 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7350 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7352 * ax-gdb.c (gen_usual_unary): Remove special handling of
7353 enum and bool types.
7355 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7357 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7359 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7361 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7363 2012-03-13 Chris January <chris.january@allinea.com>
7365 * aix-thread.c (fill_sprs): Store the floating point registers
7366 at the correct offsets into vals.
7368 2012-03-13 Doug Evans <dje@google.com>
7370 * NEWS: Mention symbol-reloading has been deleted.
7371 * symfile.c (symbol_reloading): Delete.
7372 (show_symbol_reloading): Delete.
7373 (_initialize_symfile): Delete set/show symbol-reloading.
7375 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7376 read_in_chain until we have successfully read it in.
7377 (load_full_comp_unit): Ditto.
7378 (read_signatured_type): Add comment.
7380 2012-03-13 Chris January <chris.january@allinea.com>
7382 * stabsread.c (fix_common_block): Change type of valu argument
7385 2012-03-13 Chris January <chris.january@allinea.com>
7387 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7390 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7392 * common/linux-procfs.c (linux_proc_get_int): New, from
7393 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7395 (linux_proc_get_tgid): Only call linux_proc_get_int.
7396 (linux_proc_get_tracerpid): New.
7397 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7398 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7399 linux_proc_pid_has_state.
7400 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7401 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7402 (linux_ptrace_attach_warnings): New.
7403 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7405 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7406 (linux_nat_attach): New variables ex, buffer, message and message_s.
7407 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7409 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7411 * Makefile.in (linux-ptrace.o): New.
7412 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7414 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7415 * common/linux-ptrace.c: New file.
7416 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7417 * config/arm/linux.mh: Likewise.
7418 * config/i386/linux.mh: Likewise.
7419 * config/i386/linux64.mh: Likewise.
7420 * config/ia64/linux.mh: Likewise.
7421 * config/m32r/linux.mh: Likewise.
7422 * config/m68k/linux.mh: Likewise.
7423 * config/mips/linux.mh: Likewise.
7424 * config/pa/linux.mh: Likewise.
7425 * config/powerpc/linux.mh: Likewise.
7426 * config/powerpc/ppc64-linux.mh: Likewise.
7427 * config/powerpc/spu-linux.mh: Likewise.
7428 * config/s390/s390.mh: Likewise.
7429 * config/sparc/linux.mh: Likewise.
7430 * config/sparc/linux64.mh: Likewise.
7431 * config/xtensa/linux.mh: Likewise.
7432 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7433 common/linux-procfs.c.
7434 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7436 2012-03-13 Hui Zhu <teawater@gmail.com>
7437 Pedro Alves <palves@redhat.com>
7439 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7440 CREATE_BREAKPOINT_FLAGS_INSERTED.
7441 (create_breakpoint_sal, create_breakpoints_sal)
7442 (base_breakpoint_create_breakpoints_sal)
7443 (tracepoint_create_breakpoints_sal)
7444 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7446 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7447 (ftrace_command, strace_command): Adjust.
7448 (create_tracepoint_from_upload): Pass
7449 CREATE_BREAKPOINT_FLAGS_INSERTED.
7450 * breakpoint.h (enum breakpoint_create_flags): New.
7451 (create_breakpoint): New flags parameter.
7452 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7453 * python/py-breakpoint.c (bppy_init): Adjust.
7454 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7455 * spu-tdep.c (spu_catch_start): Adjust.
7457 2012-03-13 Pedro Alves <palves@redhat.com>
7458 Hui Zhu <teawater@gmail.com>
7459 Yao Qi <yao@codesourcery.com>
7461 * remote.c (struct remote_state): New field `starting_up'.
7462 (remote_start_remote): Set and clear it.
7463 (remote_can_download_tracepoint): If starting up, return false.
7465 2012-03-13 Yao Qi <yao@codesourcery.com>
7467 * inferior.h (struct inferior): Remove fields any_syscall_count,
7468 syscalls_counts and total_syscalls_count. Move them to new
7469 struct catch_syscall_inferior_data in breakpoint.c.
7470 * breakpoint.c: Call DEF_VEC_I(int).
7471 (struct catch_syscall_inferior_data): New.
7472 (get_catch_syscall_inferior_data): New.
7473 (catch_syscall_inferior_data_cleanup): New.
7474 (insert_catch_syscall): Update to access data in
7475 struct catch_syscall_inferior_data.
7476 (insert_catch_syscall): Likewise.
7477 (remove_catch_syscall): Likewise.
7478 (remove_catch_syscall): Likewise.
7479 (is_syscall_catchpoint_enabled): Likewise.
7480 (add_catch_command): Likewise.
7481 (_initialize_breakpoint): Register cleanup.
7482 * breakpoint.h: Removed DEF_VEC_I(int).
7483 * dwarf2loc.c: Call DEF_VEC_I(int).
7484 * mi/mi-main.c: Likewise.
7486 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7488 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7490 2012-03-12 Chris January <chris.january@allinea.com>
7492 * aix-thread.c (_initialize_aix_thread): Add prototype.
7493 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7494 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7496 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7498 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7499 include of "amd64-nat.h".
7501 2012-03-12 Tom Tromey <tromey@redhat.com>
7503 * buildsym.c (record_pending_block): Now static.
7504 * buildsym.h: (record_pending_block): Remove.
7506 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7508 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7510 2012-03-09 Tom Tromey <tromey@redhat.com>
7512 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7513 producer_is_gxx_lt_4_6>: New fields.
7514 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7516 2012-03-09 Tom Tromey <tromey@redhat.com>
7518 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7520 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7522 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7525 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7527 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7529 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7531 Fix -Wmissing-prototypes build.
7532 * arm-linux-nat.c (get_thread_id): Make it static.
7533 * xtensa-linux-nat.c (get_thread_id): Likewise.
7535 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7537 * server.c (process_point_options): If a conditional expression
7538 is found, only print a message if remote_debug is nonzero.
7540 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7542 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7543 of internal error for unknown/unsupported types.
7545 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7547 Fix CU relative vs. absolute DIE offsets.
7548 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7549 offset to offset_in_cu.
7550 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7552 (dwarf2_fetch_die_location_block): Rename parameter offset to
7553 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7555 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7557 * libunwind-frame.c: Rename to ...
7558 * ia64-libunwind-tdep.c: ... here.
7559 * libunwind-frame.h: Rename to ...
7560 * ia64-libunwind-tdep.h: ... here.
7561 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7562 ia64-libunwind-tdep.h.
7563 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7564 * README (--with-libunwind): Rename to ...
7565 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7566 * config.in: Regenerate.
7567 * configure: Regenerate.
7568 * configure.ac: New option --with-libunwind-ia64, make the
7569 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7570 Remove AC_DEFINE for HAVE_LIBUNWIND.
7571 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7572 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7573 Rename libunwind-frame in the general comment.
7574 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7575 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7576 Move forward declarations inside #ifndef. Rename libunwind-frame in
7577 the general comment.
7578 * ia64-tdep.c: Rename libunwind-frame.h #include to
7579 ia64-libunwind-tdep.h.
7580 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7581 (ia64_libunwind_descr): Rename libunwind-frame to
7582 ia64-libunwind-tdep in these function comments.
7583 * ia64-tdep.h: Rename libunwind-frame.h #include to
7584 ia64-libunwind-tdep.h.
7585 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7586 ia64-libunwind-tdep in that data comment.
7588 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7590 * libunwind-frame.h (struct frame_unwind): New declaration.
7592 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7594 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7595 "set breakpoint condition-evaluation" command.
7597 2012-03-08 Tristan Gingold <gingold@adacore.com>
7599 * sparc-stub.c: Move to stubs/
7600 * sh-stub.c: Likewise.
7601 * m68k-stub.c: Likewise.
7602 * m32r-stub.c: Likewise.
7603 * i386-stub.c: Likewise.
7605 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7607 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7608 linux_get_siginfo_type.
7610 * m68klinux-nat.c: Include "gdb_proc_service.h".
7611 (PTRACE_GET_THREAD_AREA): Define.
7612 (ps_get_thread_area): New function.
7614 2012-03-08 Yao Qi <yao@codesourcery.com>
7616 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7618 (remote_query_attached): Likewise.
7619 (remote_static_tracepoint_marker_at): Likewise.
7620 (remote_set_permissions): Likewise.
7621 (remote_detach_1, extended_remote_attach_1): Likewise.
7622 (send_g_packet, remote_vkill): Likewise.
7623 (extended_remote_disable_randomization): Likewise.
7624 (remote_add_target_side_condition): Likewise.
7625 (remote_insert_breakpoint): Likewise.
7626 (remote_remove_breakpoint): Likewise.
7627 (remote_insert_watchpoint): Likewise.
7628 (remote_remove_watchpoint): Likewise.
7629 (remote_insert_hw_breakpoint): Likewise.
7630 (remote_insert_hw_breakpoint): Likewise.
7631 (remote_remove_hw_breakpoint): Likewise.
7632 (remote_download_command_source): Likewise.
7633 (remote_download_tracepoint): Likewise.
7634 (remote_download_trace_state_variable): Likewise.
7635 (remote_disable_tracepoint): Likewise.
7636 (remote_trace_set_readonly_regions): Likewise.
7637 (remote_get_tracepoint_status): Likewise.
7638 (remote_trace_find): Likewise.
7639 (remote_get_trace_state_variable_value): Likewise.
7640 (remote_set_disconnected_tracing): Likewise.
7641 (remote_set_circular_trace_buffer): Likewise.
7642 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7643 (remote_use_agent): Likewise.
7644 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7647 2012-03-07 Pedro Alves <palves@redhat.com>
7649 * NEWS: Mention QProgramSignals.
7650 * inferior.h (update_signals_program_target): Declare.
7651 * infrun.c: (update_signals_program_target): New.
7652 (handle_command): Update the target of the new program signals
7654 * remote.c (PACKET_QProgramSignals): New enum.
7655 (last_program_signals_packet): New global.
7656 (remote_program_signals): New.
7657 (remote_start_remote): Update the target with the program signals
7659 (remote_protocol_features): Add entry for QPassSignals.
7660 (remote_open_1): Free anc clear last_program_signals_packet.
7661 (init_remote_ops): Install remote_program_signals.
7662 * target.c (update_current_target): Adjust.
7663 (target_program_signals): New.
7664 * target.h (struct target_ops) <to_program_signals>: New field.
7665 (target_program_signals): Declare.
7667 2012-03-07 Pedro Alves <palves@redhat.com>
7669 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7672 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7674 * m68klinux-nat.c (getregs_supplies): Make static.
7675 (getfpregs_supplies): Likewise.
7676 (have_ptrace_getregs): Likewise.
7678 2012-03-06 Joel Brobecker <brobecker@adacore.com>
7680 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7681 in call to get_die_type_at_offset.
7683 2012-03-06 Stan Shebs <stan@codesourcery.com>
7685 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7686 * mi/mi-cmd-disas.c: Ditto.
7687 * mi/mi-cmd-env.c: Ditto.
7688 * mi/mi-cmd-file.c: Ditto.
7689 * mi/mi-cmd-stack.c: Ditto.
7690 * mi/mi-cmd-target.c: Ditto.
7691 * mi/mi-cmd-var.c: Ditto.
7692 * mi/mi-cmds.c: Ditto.
7693 * mi/mi-cmds.h: Ditto.
7694 * mi/mi-console.c: Ditto.
7695 * mi/mi-getopt.c: Ditto.
7696 * mi/mi-getopt.h: Ditto.
7697 * mi/mi-interp.c: Ditto.
7698 * mi/mi-main.c: Ditto.
7699 * mi/mi-out.c: Ditto.
7700 * mi/mi-parse.c: Ditto.
7701 * mi/mi-parse.h: Ditto.
7702 * mi/mi-symbol-cmds.c: Ditto.
7704 * mi/mi-getopt.h: Move mi_opt struct up.
7705 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7707 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7709 2012-03-06 Tom Tromey <tromey@redhat.com>
7711 * proc-service.c (ps_pglobal_lookup): Set the current program
7714 2012-03-06 Pedro Alves <palves@redhat.com>
7716 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7718 2012-03-05 Joel Brobecker <brobecker@adacore.com>
7720 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7722 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7725 * common/linux-osdata.c (linux_common_core_of_thread): New function
7727 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7728 call by linux_common_core_of_thread.
7729 (linux_nat_core_of_thread_1): Remove.
7730 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7731 * linux-thread-db.c: Include linux-osdata.h.
7732 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7733 linux_common_core_of_thread.
7735 2012-03-05 Tom Tromey <tromey@redhat.com>
7737 * value.c (value_primitive_field): Don't fetch contents for
7740 2012-03-05 Tom Tromey <tromey@redhat.com>
7742 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7744 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
7746 * s390-nat.c: Include "gregset.h".
7748 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7750 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7751 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7752 (libunwind_load): New variable so_error, use it for dlerror. Try to
7753 load also LIBUNWIND_SO_7.
7755 2012-03-05 Pedro Alves <palves@redhat.com>
7757 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7758 is not NULL, and remove resulting dead code.
7760 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7762 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7763 prologue to sh_analyze_prologue.
7764 (sh_analyze_prologue): Make better use of such an upper limit, and
7765 generally be more cautious about accessing memory.
7767 2012-03-05 Tom Tromey <tromey@redhat.com>
7769 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7770 _initialize_ia64_hpux_tdep.
7772 2012-03-05 Pedro Alves <palves@redhat.com>
7776 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7777 the register state is clear, supply explicit zero, instead of
7778 marking the register unavailable.
7780 2012-03-05 Tristan Gingold <gingold@adacore.com>
7782 * NEWS: Mention OpenVMS ia64 new target.
7784 2012-03-05 Tristan Gingold <gingold@adacore.com>
7786 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7787 (ia64_unw_accessors, ia64_unw_rse_accessors)
7788 (ia64_libunwind_descr): Declare.
7789 * ia64-vms-tdep.c: New file.
7790 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7791 (ia64_libunwind_descr): Make them public.
7792 * configure.tgt: Add ia64-*-*vms*.
7793 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7794 (ALLDEPFILES): Add ia64-vms-tdep.c
7796 2012-03-05 Tristan Gingold <gingold@adacore.com>
7798 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7799 * remote.c (PACKET_qXfer_uib): New enum value.
7800 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7801 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7802 (_initialize_remote): Call add_packet_config_cmd for
7805 2012-03-05 Tristan Gingold <gingold@adacore.com>
7807 * osabi.c (gdb_osabi_names): Add OpenVMS.
7808 (generic_elf_osabi_sniffer): Likewise.
7809 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
7811 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7813 Removed unused code.
7814 * libunwind-frame.c (libunwind_frame_unwind)
7815 (libunwind_frame_base_address): Remove.
7816 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7818 2012-03-04 Yao Qi <yao@codesourcery.com>
7820 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7821 remove trailing new line.
7822 (agent_run_command, agent_run_command): Add _ markup.
7823 (agent_capability_check): Likewise.
7825 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7827 * breakpoint.c (set_condition_evaluation_mode): Set
7828 CONDITION_EVALUATION_MODE unconditionally.
7830 2012-03-03 Yao Qi <yao@codesourcery.com>
7832 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7833 * common/agent.h: Update declaration.
7834 * inf-child.c (inf_child_use_agent): New.
7835 (inf_child_can_use_agent): New.
7836 (inf_child_target): Initialize fields `to_use_agent'
7837 and `to_can_use_agent'.
7838 * agent.c (agent_new_objfile): New.
7839 (_initialize_agent): Add agent_new_objfile to new_objfile
7842 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7844 (linux_target_install_ops): Initialize field
7845 `to_static_tracepoint_markers_by_strid'.
7846 * remote.c (free_current_marker): Move it to ...
7847 * tracepoint.c (free_current_marker): ... here. New.
7848 (cleanup_target_stop): New.
7849 * tracepoint.h: Declare free_current_marker.
7850 * NEWS: Add one entry about `info static-tracepoint-marker'.
7852 2012-03-03 Yao Qi <yao@codesourcery.com>
7854 * common/agent.c (agent_loaded_p): New.
7855 (agent_look_up_symbols): New global.
7856 * common/agent.h: Declare agent_loaded_p.
7858 2012-03-03 Yao Qi <yao@codesourcery.com>
7860 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7861 (agent_capability_check, agent_capability_invalidate): New.
7862 (symbol_list): New array element.
7863 * common/agent.h (enum agent_capa): New.
7864 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7866 2012-03-03 Yao Qi <yao@codesourcery.com>
7868 * target.h (struct target_ops) <to_use_agent>: New field.
7869 (struct target_ops) <to_can_use_agent>: New field.
7870 (target_use_agent, target_can_use_agent): New macro.
7871 * target.c (update_current_target): Update.
7872 * remote.c: New enum `PACKET_QAgent'.
7873 (remote_protocol_features): Add a new element.
7874 (remote_use_agent, remote_can_use_agent): New.
7875 (init_remote_ops): Initialize field `can_use_agent' with
7876 remote_can_use_agent. Intiailize field `use_agent' with
7878 * common/agent.c (use_agent): New global.
7879 * common/agent.h: Declare it.
7880 * tracepoint.c (info_static_tracepoint_markers_command): Add
7882 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7883 (COMMON_OBS): Add common/agent.o and agent.o
7884 (common-agent.o): New rule.
7887 2012-03-03 Yao Qi <yao@codesourcery.com>
7889 * common/agent.c: New.
7890 * common/agent.h: New.
7891 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7893 * configure, configh.in: Regenerated.
7895 2012-03-02 Kevin Buettner <kevinb@redhat.com>
7897 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7898 unless it exists for this architecture.
7900 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7902 * language.h (struct language_defn): New "method" la_read_var_value.
7903 * findvar.c: #include "language.h".
7904 (default_read_var_value): Renames read_var_value. Rewrite
7905 function description.
7906 (read_var_value): New function.
7907 * value.h (default_read_var_value): Add prototype.
7908 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7910 (ada_language_defn): Add entry for la_read_var_value.
7911 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7912 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7913 language_defn structures to add entry for new la_read_var_value
7916 2012-03-02 Tom Tromey <tromey@redhat.com>
7917 Pedro Alves <palves@redhat.com>
7919 PR breakpoints/13776:
7920 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7922 (delete_longjmp_breakpoint_at_next_stop): New.
7923 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7924 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7925 before deleting the inferior. Add comments.
7926 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7927 breakpoints immediately, but only on next stop. Move that code
7928 next to where we mark other breakpoints for deletion.
7930 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7932 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7934 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7937 2012-03-02 Pedro Alves <palves@redhat.com>
7939 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7941 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7943 Fix -Wmissing-prototypes build.
7944 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7945 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7946 (gdbsim_has_memory): Likewise.
7948 2012-03-02 Yao Qi <yao@codesourcery.com>
7950 Fix -Wmissing-prototypes build.
7951 * charset.c (phony_iconv_open): Make static.
7952 (phony_iconv_close, phony_iconv): Likewise.
7953 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7954 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7956 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7957 * ser-mingw.c (create_select_thread): Make static.
7958 * windows-termcap.c (tgetent): New prototype.
7959 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7961 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7963 Fix -Wmissing-prototypes build.
7964 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
7965 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
7966 (_initialize_loadable): New prototypes.
7968 2012-03-02 Doug Evans <dje@google.com>
7970 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
7971 abbrev table, read_comp_unit will do it.
7973 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7975 Fix -Wmissing-prototypes build.
7976 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
7977 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
7978 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
7979 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
7980 (_initialize_arm_symbian_tdep): New prototype.
7981 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
7982 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
7983 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
7985 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
7986 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
7988 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
7989 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
7990 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
7992 * moxie-tdep.c (moxie_process_record): Likewise.
7993 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
7994 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
7995 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
7996 (_initialize_rl78_tdep): New prototype.
7997 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
7998 (_initialize_rx_tdep): New prototype.
7999 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8000 (_initialize_darwin_solib): New prototype.
8001 * solib-spu.c: Include solib-spu.h.
8002 (_initialize_spu_solib): New prototype.
8003 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8004 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8005 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8006 (tic6x_software_single_step): Make it static.
8007 (_initialize_tic6x_tdep): New prototype.
8009 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8011 Fix -Wmissing-prototypes build.
8012 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8013 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8015 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8017 Fix -Wmissing-prototypes build.
8018 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8019 (frv_have_stopped_data_address): Remove.
8021 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8023 Fix -Wmissing-prototypes build.
8024 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8025 * sh-tdep.c: Include sh64-tdep.h.
8026 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8027 * sh64-tdep.c: Include sh64-tdep.h.
8028 * sh64-tdep.h: New file.
8030 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8032 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8034 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8036 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8037 sp_regnum once the gdbarch_init_osabi hook has been called.
8039 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8041 * mips-tdep.c (mips32_bc1_pc): New function.
8042 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8043 BPOSGE32 and BPOSGE64 instructions.
8044 (deal_with_atomic_sequence): Likewise.
8045 (mips32_instruction_has_delay_slot): Likewise.
8047 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8048 Chris Dearman <chris@mips.com>
8049 Maciej W. Rozycki <macro@codesourcery.com>
8050 Joseph Myers <joseph@codesourcery.com>
8052 * features/mips-dsp.xml: New file.
8053 * features/mips64-dsp.xml: New file.
8054 * features/mips-dsp-linux.xml: New file.
8055 * features/mips64-dsp-linux.xml: New file.
8056 * features/Makefile (WHICH): Add mips-dsp-linux and
8058 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8059 * features/mips-dsp-linux.c: New file.
8060 * features/mips64-dsp-linux.c: New file.
8061 * regformats/mips-dsp-linux.dat: New file.
8062 * regformats/mips64-dsp-linux.dat: New file.
8063 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8065 (mips64_linux_register_addr): Likewise.
8066 (mips64_linux_regsets_fetch_registers): Likewise.
8067 (mips64_linux_regsets_store_registers): Likewise.
8068 (mips64_linux_fetch_registers): Update call to
8069 mips64_linux_regsets_fetch_registers.
8070 (mips64_linux_store_registers): Update call to
8071 mips64_linux_regsets_store_registers.
8072 (mips_linux_read_description): Probe for DSP registers.
8073 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8074 and initialize_tdesc_mips64_dsp_linux.
8075 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8076 Remove padding of no longer used embedded register slots.
8077 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8078 (MIPS_RESTART_REGNUM): Redefine enum value.
8079 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8081 (mips_tx39_reg_names): Likewise.
8082 (mips_linux_reg_names): New array of register names for Linux
8084 (mips_register_name): Check for a null pointer in
8085 mips_processor_reg_names and return an empty string.
8086 (mips_register_type): Exclude embedded registers for the IRIX
8088 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8089 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8091 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8092 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8093 (mips_gdbarch_init): Likewise. Initialize internal register
8094 indices for the Linux ABI. Use dynamic numbers to refer to
8095 registers, as applicable, while parsing the target description.
8096 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8098 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8100 * frame.h (read_frame_register_unsigned): Fix typo in function
8103 2012-03-01 Pedro Alves <palves@redhat.com>
8105 * jit-reader.in [!__cplusplus]
8106 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8108 2012-03-01 Pedro Alves <palves@redhat.com>
8110 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8111 * configure: Regenerate.
8113 2012-03-01 Pedro Alves <palves@redhat.com>
8115 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8116 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8117 (ftrace_command, strace_command): Make static.
8118 * d-lang.c (_initialize_d_language): Declare.
8119 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8120 * dwarf2loc.c (_initialize_dwarf2loc):
8121 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8122 * exec.c (exec_get_section_table): Make static.
8123 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8124 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8125 * inferior.c (remove_inferior_command, add_inferior_command)
8126 (clone_inferior_command): Make static.
8127 * linux-nat.c (linux_nat_thread_address_space)
8128 (linux_nat_core_of_thread): Make static.
8129 * linux-tdep.c (_initialize_linux_tdep): Declare.
8130 * objc-lang.c (_initialize_objc_lang): Declare.
8131 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8133 (_initialize_opencl_language): Declare.
8134 * record.c (_initialize_record): Declare.
8135 * remote.c (demand_private_info, remote_get_tib_address)
8136 (remote_supports_cond_tracepoints)
8137 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8139 * skip.c (_initialize_step_skip): Declare.
8140 * symtab.c (skip_prologue_using_lineinfo): Make static.
8141 * tracepoint.c (delete_trace_state_variable)
8142 (trace_variable_command, delete_trace_variable_command)
8143 (get_uploaded_tsv, find_matching_tracepoint_location)
8144 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8146 * value.c (pack_unsigned_long): Make static.
8147 * varobj.c (varobj_ensure_python_env): Make static.
8148 * windows-tdep.c (_initialize_windows_tdep): Declare.
8149 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8151 2012-03-01 Pedro Alves <palves@redhat.com>
8153 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8155 (linux_init_abi): Install it as has_shared_address_space gdbarch
8158 2012-03-01 Pedro Alves <palves@redhat.com>
8160 * observer.c (observer_test_first_notification_function)
8161 (observer_test_second_notification_function)
8162 (observer_test_third_notification_function): Add declarations.
8164 2012-03-01 Pedro Alves <palves@redhat.com>
8166 * common/signals.c (default_target_signal_to_host)
8167 (default_target_signal_from_host): Move ...
8168 * arch-utils.c: ... here.
8169 * arch-utils.h (default_target_signal_to_host)
8170 (default_target_signal_from_host): Declare.
8172 * common/signals.c (target_signal_from_command): Move ...
8173 * infrun.c: ... here.
8174 * inferior.h (target_signal_from_command): Declare.
8175 * target.h (target_signal_from_command)
8176 (default_target_signal_from_host, default_target_signal_to_host):
8177 Delete declarations.
8179 * common/signals.c (_initialize_signals): Delete.
8181 2012-03-01 Pedro Alves <palves@redhat.com>
8183 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8184 both __cplusplus and !__cplusplus.
8186 2012-03-01 Pedro Alves <palves@redhat.com>
8188 * psymtab.c (find_and_open_source): Delete declaration.
8189 * source.c (find_and_open_source): Move comment ...
8190 * source.h (find_and_open_source): ... to this new declaration.
8192 2012-03-01 Pedro Alves <palves@redhat.com>
8194 * inline-frame.c: Include inline-frame.h.
8196 2012-03-01 Pedro Alves <palves@redhat.com>
8198 * tui/tui-data.c (set_gen_win_origin): Delete.
8199 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8200 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8202 2012-03-01 Pedro Alves <palves@redhat.com>
8204 * remote.c (encode_actions): Delete declaration.
8205 * tracepoint.c (encode_actions): Make extern.
8206 * tracepoint.h (encode_actions): Declare.
8208 2012-03-01 Pedro Alves <palves@redhat.com>
8210 * python/py-breakpoint.c: Include python.h.
8211 * python/py-continueevent.c (create_continue_event_object): Make
8213 * python/py-lazy-string.c (stpy_get_type): Make static.
8214 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8216 * python/py-utils.c (unicode_to_target_python_string): Make
8218 * python/py-value.c: Include python.h.
8220 2012-03-01 Pedro Alves <palves@redhat.com>
8222 * inferior.c (delete_threads_of_inferior): Delete.
8224 2012-03-01 Pedro Alves <palves@redhat.com>
8226 Import fallback definitions from glibc.
8228 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8229 ps_prochandle): Forward declare.
8230 (ps_err_e): Use glibc's comments.
8231 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8232 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8233 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8234 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8235 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8236 (struct ps_prochandle): Adjust comment.
8238 2012-03-01 Pedro Alves <palves@redhat.com>
8240 * ada-lang.c (ada_modulus_from_name): Delete.
8241 * ada-lex.l (lexer_init): Make static.
8243 2012-03-01 Pedro Alves <palves@redhat.com>
8247 * frame.c (read_frame_register_unsigned): New.
8248 * frame.h (read_frame_register_unsigned): Declare.
8249 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8251 (print_i387_control_word): New parameter `control_p'. Handle it.
8252 (i387_print_float_info): Handle unavailable float registers.
8254 2012-03-01 Keith Seitz <keiths@redhat.com>
8256 * linespec.c (decode_line_2): Sort the list of methods
8257 alphabetically before presenting the user with a selection
8260 2012-03-01 Doug Evans <dje@google.com>
8262 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8264 (dwarf2_read_abbrevs): Remove corresponding initialization.
8266 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8268 * NEWS: Mention new python command class gdb.COMMAND_USER.
8269 * cli/cli-cmds.c (show_user): Print error when used on a python
8271 (init_cli_cmds): Update documentation strings for "show user" and
8272 "set/show max-user-call-depth" to clarify that it does not apply to
8274 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8276 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8278 * top.c (execute_command): Only execute a user-defined command as a
8279 legacy macro if c->user_commands is set.
8281 2012-03-01 Tom Tromey <tromey@redhat.com>
8283 * valprint.h (struct generic_val_print_decorations): New.
8284 (generic_val_print): Declare.
8285 * valprint.c (generic_val_print): New function.
8286 * p-valprint.c (p_decorations): New global.
8287 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8288 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8289 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8290 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8291 * m2-valprint.c (m2_decorations): New global.
8292 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8293 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8294 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8295 TYPE_CODE_ERROR>: Call generic_val_print.
8296 * f-valprint.c (f_decorations): New global.
8297 (f_val_print): Use print_function_pointer_address.
8298 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8299 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8300 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8302 * c-valprint.c (c_decorations): New global.
8303 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8304 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8305 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8306 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8307 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8308 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8311 2012-03-01 Tom Tromey <tromey@redhat.com>
8313 * valprint.c (val_print): Update.
8314 * p-valprint (pascal_val_print): Return void.
8315 * p-lang.h (pascal_val_print): Return void.
8316 * m2-valprint.c (m2_val_print): Return void.
8317 * m2-lang.h (m2_val_print): Return void.
8318 * language.h (struct language_defn) <la_val_print>: Return void.
8319 * language.c (unk_lang_val_print): Return void.
8320 * jv-valprint.c (java_val_print): Return void.
8321 * jv-lang.h (java_val_print): Return void.
8322 * f-valprint.c (f_val_print): Return void.
8323 * f-lang.h (f_val_print): Return void.
8324 * d-valprint.c (d_val_print): Return void.
8325 (dynamic_array_type): Update.
8326 * d-lang.h (d_val_print): Return void.
8327 * c-valprint.c (c_val_print): Return void.
8328 * c-lang.h (c_val_print): Return void.
8329 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8331 * ada-lang.h (ada_val_print): Return void.
8333 2012-03-01 Tom Tromey <tromey@redhat.com>
8335 * value.h (val_print): Return void.
8336 * valprint.c (val_print): Return void.
8338 2012-03-01 Tom Tromey <tromey@redhat.com>
8340 * value.h (common_val_print): Return void.
8341 * valprint.c (common_val_print): Return void.
8343 2012-03-01 Tom Tromey <tromey@redhat.com>
8345 * value.h (value_print): Return void.
8346 * valprint.c (value_print): Return void.
8347 * p-valprint.c (pascal_value_print): Return void.
8348 * p-lang.h (pascal_value_print): Return void.
8349 * language.h (struct language_defn) <la_value_print>: Return
8351 * language.c (unk_lang_value_print): Return void.
8352 * jv-valprint.c (java_value_print): Return void.
8353 * jv-lang.h (java_value_print): Return void.
8354 * f-valprint.c (c_value_print): Don't declare.
8356 * c-valprint.c (c_value_print): Return void.
8357 * c-lang.h (c_value_print): Return void.
8358 * ada-valprint.c (ada_value_print): Return void.
8359 * ada-lang.h (ada_value_print): Return void.
8361 2012-03-01 Tom Tromey <tromey@redhat.com>
8363 * value.c (value_primitive_field): Handle virtual base classes.
8365 2012-03-01 Tom Tromey <tromey@redhat.com>
8367 * gdbtypes.h (struct vbase): Remove.
8369 2012-03-01 Tom Tromey <tromey@redhat.com>
8371 * c-valprint.c (print_function_pointer_address): Move...
8372 * valprint.c: ... here. Make non-static.
8373 * m2-valprint.c (print_function_pointer_address): Remove.
8374 * valprint.h (print_function_pointer_address): Declare.
8376 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8378 * NEWS: Document the fact that one can provide a condition when
8379 creating an Ada exception catchpoint.
8381 2012-03-01 Tom Tromey <tromey@redhat.com>
8383 * valprint.c (val_print_type_code_flags): Fix placement of
8386 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8388 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8389 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8390 environment variable before calling update-copyright.
8392 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8394 * gnulib/extra/update-copyright: Update to the latest from
8395 gnulib's git repository.
8396 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8397 variable to 2 instead of 1.
8399 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8401 * varobj.c (c_value_of_variable): Remove dead code.
8403 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8405 * ada-lex.p (processId): Do not modify already encoded IDs.
8406 Update function documentation.
8408 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8410 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8411 "name" with "struct symbol *name_sym".
8412 * ada-exp.y (write_var_or_type): Update call to
8413 ada_find_renaming_symbol.
8414 "name" with "struct symbol *name_sym". Adjust Implementation
8415 accordingly. Adjust the function documentation.
8417 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8419 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8420 * ada-lang.c (ada_find_any_type): Add advance declaration.
8421 Make static. Replace ada_find_any_symbol by
8422 ada_find_any_type_symbol.
8423 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8424 Improve function description. Make static.
8425 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8426 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8428 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8430 * ada-lang.c (struct tag_args): Delete.
8431 (ada_get_tsd_type): Function body moved up in source file.
8432 (ada_tag_name_1, ada_tag_name_2): Delete.
8433 (ada_get_tsd_from_tag): New function.
8434 (ada_tag_name_from_tsd): New function.
8435 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8436 to determine the tag name.
8438 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8440 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8442 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8445 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8447 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8449 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8451 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8454 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8456 * ada-lang.c (constrained_packed_array_type): If there is a
8457 parallel XA type, use it to determine the array index type.
8459 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8461 * ada-valprint.c (ada_val_print_1): If our value is a reference
8462 to an array descriptor, dereference it before converting it
8465 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8467 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8468 creating fixed value.
8469 (ada_value_ind, ada_coerce_ref, assign_component)
8470 (ada_evaluate_subexp): Remove call to unwrap_value before
8471 call to ada_to_fixed_value.
8473 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8475 * ada-lang.c (to_fixed_array_type): Set result's type name.
8477 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8479 * ada-lang.c (catch_ada_exception_command_split): Add new
8480 argument cond_string. Add support for condition at end of
8481 "catch exception" commands.
8482 (ada_decode_exception_location): Add new argument cond_string.
8483 Update call to catch_ada_exception_command_split.
8484 (create_ada_exception_catchpoint): Add new argument cond_string.
8485 Set the breakpoint condition if needed.
8486 (catch_ada_exception_command): Update call to
8487 ada_decode_exception_location.
8488 (ada_decode_assert_location): Add function documentation.
8489 Add support for condition at end of "catch assert" command.
8490 (catch_assert_command): Update calls to ada_decode_assert_location
8491 and create_ada_exception_catchpoint.
8493 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8495 Fix disp-step-syscall.exp: fork: single step over fork.
8496 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8497 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8498 comment, change parameters gdbarch and ptid to regcache. Remove
8499 parameter regcache, initialize gdbarch from regcache here.
8500 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8502 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8504 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8505 'syscall'. Make the 'int' check more strict.
8507 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8509 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8510 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8511 (i386_linux_intx80_sysenter_syscall_record): ... here.
8512 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8513 Use the renamed function name.
8515 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8517 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8518 * breakpoint.c (until_break_command): Likewise.
8519 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8520 * infcall.c (call_function_by_hand): Likewise.
8521 * infcmd.c (finish_forward): Likewise.
8522 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8524 2012-02-28 Tristan Gingold <gingold@adacore.com>
8526 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8527 avoid variable assignments inside condition.
8529 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8531 Fix static analysis issue found by cppcheck.
8532 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8533 uninitialized BUF for size 2.
8535 2012-02-27 Chris Dearman <chris@mips.com>
8536 Nathan Froyd <froydnj@codesourcery.com>
8537 Maciej W. Rozycki <macro@codesourcery.com>
8539 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8540 (mips16_instruction_has_delay_slot): Likewise.
8541 (mips_segment_boundary): Likewise.
8542 (mips_adjust_breakpoint_address): Likewise.
8543 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8545 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8546 Maciej W. Rozycki <macro@codesourcery.com>
8548 * infrun.c (handle_inferior_event): Don't proceed through
8549 shared library trampolines if stepping at the machine
8552 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8554 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8557 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8559 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8560 (sh_stub_unwind_sniffer): New functions.
8561 (sh_stub_unwind): New variable.
8562 (sh_gdbarch_init): Wire everything.
8564 2012-02-27 Pedro Alves <palves@redhat.com>
8566 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8567 (linux_nat_post_attach_wait): Adjust to use
8568 linux_proc_pid_is_stopped.
8569 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8570 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8571 based on pid_is_stopped from both linux-nat.c and
8572 gdbserver/linux-low.c, and renamed.
8574 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8576 * remote.c (remote_watchpoint_addr_within_range): New function.
8577 (init_remote_ops): Use it.
8579 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8581 * target.h (target_watchpoint_addr_within_range): Document macro.
8583 2012-02-24 Pedro Alves <palves@redhat.com>
8585 * stack.c (set_last_displayed_sal): Issue internal_error instead
8586 of warning, and issue it after clearing the last displayed sal.
8588 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8589 Pedro Alves <palves@redhat.com>
8591 * breakpoint.c (until_break_command): Install breakpoints after
8592 all frame manipulations.
8594 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8596 * remote.c (remote_supports_cond_breakpoints): New forward
8598 (remote_add_target_side_condition): New function.
8599 (remote_insert_breakpoint): Add target-side breakpoint
8600 conditional if supported.
8601 (remote_insert_hw_breakpoint): Likewise.
8602 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8605 * target.c (update_current_target): Inherit
8606 to_supports_evaluation_of_breakpoint_conditions.
8607 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8609 * target.h (struct target_ops)
8610 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8611 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8613 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8614 (condition_evaluation_both, condition_evaluation_auto,
8615 condition_evaluation_host, condition_evaluation_target,
8616 condition_evaluation_enums, condition_evaluation_mode_1,
8617 condition_evaluation_mode): New static globals.
8618 (translate_condition_evaluation_mode): New function.
8619 (breakpoint_condition_evaluation_mode): New function.
8620 (gdb_evaluates_breakpoint_condition_p): New function.
8621 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8622 (mark_breakpoint_modified): New function.
8623 (mark_breakpoint_location_modified): New function.
8624 (set_condition_evaluation_mode): New function.
8625 (show_condition_evaluation_mode): New function.
8626 (bp_location_compare_addrs): New function.
8627 (get_first_location_gte_addr): New helper function.
8628 (set_breakpoint_condition): Free condition bytecode if locations
8629 has become unconditional. Call mark_breakpoint_modified (...).
8630 (condition_command): Call update_global_location_list (1) for
8632 (breakpoint_xfer_memory): Use is_breakpoint (...).
8633 (is_breakpoint): New function.
8634 (parse_cond_to_aexpr): New function.
8635 (build_target_condition_list): New function.
8636 (insert_bp_location): Handle target-side conditional
8637 breakpoints and call build_target_condition_list (...).
8638 (update_inserted_breakpoint_locations): New function.
8639 (insert_breakpoint_locations): Handle target-side conditional
8641 (bpstat_check_breakpoint_conditions): Add comment.
8642 (bp_condition_evaluator): New function.
8643 (bp_location_condition_evaluator): New function.
8644 (print_breakpoint_location): Print information on where the condition
8646 (print_one_breakpoint_location): Likewise.
8647 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8648 breakpoint location.
8649 (force_breakpoint_reinsertion): New functions.
8650 (update_global_location_list): Handle target-side breakpoint
8652 Reinsert locations that are already inserted if conditions have
8654 (bp_location_dtor): Free agent expression bytecode.
8655 (disable_breakpoint): Call mark_breakpoint_modified (...).
8656 Call update_global_location_list (...) with parameter 1 for breakpoints.
8657 (disable_command): Call mark_breakpoint_location_modified (...).
8658 Call update_global_location_list (...) with parameter 1 for breakpoints.
8659 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8660 (enable_command): mark_breakpoint_location_modified (...).
8661 (_initialize_breakpoint): Update documentation and add
8662 condition-evaluation breakpoint subcommand.
8664 * breakpoint.h: Include ax.h.
8665 (condition_list): New data structure.
8666 (condition_status): New enum.
8667 (bp_target_info) <cond_list>: New field.
8668 (bp_location) <condition_changed, cond_bytecode>: New fields.
8669 (is_breakpoint): New prototype.
8671 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8673 * remote.c (remote_state) <cond_breakpoints>: New field.
8674 (PACKET_ConditionalBreakpoints): New enum.
8675 (remote_cond_breakpoint_feature): New function.
8676 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8677 (remote_supports_cond_breakpoints): New function.
8678 (_initialize_remote): Add new packet configuration for
8679 target-side conditional breakpoints.
8681 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8683 * NEWS: Mention target-side conditional breakpoint support,
8684 new condition-evaluation breakpoint subcommand and remote
8687 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8689 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8692 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8694 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8695 (after_prologue): Remove.
8697 2012-02-23 Tom Tromey <tromey@redhat.com>
8699 * jv-valprint.c (java_val_print): Remove dead code.
8701 2012-02-23 Tristan Gingold <gingold@adacore.com>
8703 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8704 known_tasks_element and known_tasks_length fields.
8705 (read_known_tasks_array): Change argument type. Use pointer type
8706 and number of elements from DATA. Adjust.
8707 (read_known_tasks_list): Likewise.
8708 (get_known_tasks_addr): Remove.
8709 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8710 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8711 type and array length. Merge former get_known_tasks_addr code.
8713 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8716 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8717 it after set_momentary_breakpoint.
8719 2012-02-22 Sterling Augustine <saugustine@google.com>
8722 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8724 2012-02-22 Gary Benson <gbenson@redhat.com>
8726 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8727 (find_slot_in_mapped_hash): Likewise.
8729 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8732 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8733 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8734 * configure: Regenerate.
8736 2012-02-21 Tristan Gingold <gingold@adacore.com>
8737 Pedro Alves <palves@redhat.com>
8739 * ia64-tdep.c: Do not include libunwind-ia64.h.
8740 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8741 Include libunwind-ia64.h instead of libunwind.h.
8742 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8743 for libunwind.h existence.
8744 * configure, config.in: Regenerate.
8746 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8748 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8749 instead of value_rtti_target_type.
8750 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8751 instead of value_rtti_target_type.
8752 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8753 value_rtti_target_type.
8754 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8755 (value_rtti_target_type): Rename to ...
8756 (value_rtti_indirect_type): ... here and make it indirect. Update
8758 * value.c (readjust_indirect_value_type): New function.
8759 (coerce_ref): Support for enclosing type setting for references
8760 with readjust_indirect_value_type.
8761 * value.h (readjust_value_type): New declaration.
8762 (value_rtti_target_type): Rename to ...
8763 (value_rtti_indirect_type): ... here.
8765 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8767 * MAINTAINERS (Write After Approval): Add myself to the list.
8769 2012-02-20 Doug Evans <dje@google.com>
8771 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8772 Rename objfile_p_char parameter to objfilep.
8773 (build_objfile_section_table): Result is now void. All callers
8775 * objfiles.h (struct objfile): Tweak comments, whitespace.
8776 (build_objfile_section_table): Update.
8778 * elfread.c (elf_symfile_segments): Fix warning text.
8780 2012-02-20 Tom Tromey <tromey@redhat.com>
8783 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8784 particular set of file names once.
8785 (dw2_map_symbol_filenames): Likewise.
8787 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8790 * main.c (write_files): Remove the declaration.
8791 (external_editor_command): Move the declaration ...
8792 [GDBTK] (external_editor_command): ... here. Fix the comment.
8794 2012-02-20 Tom Tromey <tromey@redhat.com>
8796 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8799 2012-02-20 Tristan Gingold <gingold@adacore.com>
8801 * darwin-nat.h (enum darwin_msg_state): Add comments.
8803 2012-02-20 Tristan Gingold <gingold@adacore.com>
8805 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8808 2012-20-18 Joel Brobecker <brobecker@adacore.com>
8810 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8811 between function description and implementation.
8813 2012-02-17 Tom Tromey <tromey@redhat.com>
8816 * python/py-event.c (event_object_getset): New global.
8817 (event_object_type): Reference it.
8818 * python/py-type.c (field_object_getset): New global.
8819 (field_object_type): Reference it.
8820 * python/python-internal.h (gdb_py_generic_dict): Declare.
8821 * python/py-utils.c (gdb_py_generic_dict): New function.
8823 2012-02-17 Tristan Gingold <gingold@adacore.com>
8825 * solib-darwin.c (darwin_current_sos): Check magic and filetype
8827 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8829 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8830 TYPE_CALLING_CONVENTION annotation.
8832 2012-02-16 Kevin Buettner <kevinb@redhat.com>
8834 * MAINTAINERS: Add rx to target ISA section.
8835 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8836 (ALLDEPFILES): Add rx-tdep.c.
8838 2012-02-16 Tom Tromey <tromey@redhat.com>
8840 * symfile.c (symbol_file_add_main_1): Use inferior's
8842 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8843 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8845 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8847 (follow_exec): Use inferior's symfile_flags.
8848 * inferior.h (struct inferior) <symfile_flags>: New field.
8850 2012-02-16 Mike Frysinger <vapier@gentoo.org>
8853 * remote-sim.c (gdbsim_create_inferior): Call error() when
8854 sim_create_inferior() fails.
8856 2012-02-16 Josh Matthews <josh@joshmatthews.net>
8858 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8860 2012-02-16 Tom Tromey <tromey@redhat.com>
8863 * thread.c (struct current_thread_cleanup) <was_removable>: New
8865 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8866 (make_cleanup_restore_current_thread): Initialize new field.
8868 2012-02-15 Kevin Buettner <kevinb@redhat.com>
8870 * MAINTAINERS: Add rl78 to target ISA section.
8871 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8872 (ALLDEPFILES): Add rl78-tdep.c.
8873 * NEWS: Mention rl78 as a new target.
8875 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8877 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8879 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8881 2012-02-15 Tom Tromey <tromey@redhat.com>
8884 * infcmd.c (registers_info): Print just the current register's
8887 2012-02-15 Tom Tromey <tromey@redhat.com>
8889 * python/py-symbol.c (sympy_value): Use _().
8891 2012-02-15 Pedro Alves <palves@redhat.com>
8893 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8894 output to be like native targets'.
8895 (remote_pid_to_str): Special case the null ptid.
8897 2012-02-14 Stan Shebs <stan@codesourcery.com>
8899 * NEWS: Mention enable count command.
8900 * breakpoint.h (struct breakpoint): New field enable_count.
8901 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8902 (enable_breakpoint): Add arg to call.
8903 (struct disp_data): New struct.
8904 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8905 (do_map_enable_once_breakpoint): Create a struct and pass it.
8906 (do_map_enable_delete_breakpoint): Ditto.
8907 (do_map_enable_count_breakpoint): New function.
8908 (enable_count_command): New function.
8909 (bpstat_stop_status): Decrement enable_count.
8910 (print_one_breakpoint_location): Report enable count.
8911 (_initialize_breakpoint): Add enable count command.
8913 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8915 * rl78-tdep.c (reggroups.h): Include.
8916 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8917 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8918 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8919 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8920 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8921 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8922 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8923 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8924 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8925 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8926 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8927 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8928 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8929 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8930 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8931 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8932 beginning of register list.
8933 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8934 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8935 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8936 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8937 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8938 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8939 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8940 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8941 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8942 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8943 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8944 the pseudo registers. Rearrange other pseudo registers too so
8945 that the bank registers appear at the end.
8946 (rl78_register_type): Account for the fact that the byte sized
8947 bank registers are now pseudo-registers.
8948 (rl78_register_name): Rearrange the register name array. Make
8949 initial set of raw banked registers inaccessible.
8950 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8951 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8952 case for copying bytes back and forth between raw and pseudo
8953 versions of the banked registers. Update other cases to reflect
8955 (rl78_return_value): Update to account for changed names of
8957 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8958 rl78_register_sim_regno().
8960 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8962 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
8963 the name parameter being passed to find_pc_partial_function().
8965 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8967 * MAINTAINERS: Step down from being ia64 target maintainer.
8969 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8971 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
8972 compilation warning.
8974 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8976 Fix crash on loaded shlibs without loaded exec_bfd.
8977 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
8978 (set_section_command): Replace exec_bfd by p->bfd.
8980 2012-02-10 Tom Tromey <tromey@redhat.com>
8982 * linespec.c (decode_line_internal): Skip symtabs_from_filename
8983 when we have a C++ qualified name.
8985 2012-02-10 Pedro Alves <palves@redhat.com>
8987 * inferior.c (inferior_pid_to_str): New.
8988 (print_inferior, inferior_command): Use it.
8990 2012-02-10 Pedro Alves <palves@redhat.com>
8992 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
8994 * configure: Regenerate.
8996 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8998 * linespec.c (decode_line_internal): Fix comment correctness.
9000 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9003 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9004 * amd64bsd-nat.c: Add support for debug registers (adapted from
9006 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9007 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9008 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9009 (amd64bsd_dr_get_control): New functions.
9010 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9011 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9012 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9013 watchpoints initialization.
9014 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9016 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9018 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9020 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9022 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9024 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9026 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9028 * language.h (symbol_name_cmp_ftype): Renames
9029 symbol_name_match_p_ftype.
9030 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9031 la_get_symbol_name_match_p.
9032 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9033 ada_get_symbol_name_match_p. Update comment.
9034 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9035 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9036 Renames symbol_name_match_p. Update field type.
9037 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9038 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9039 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9040 "la_get_symbol_name_cmp" in comments.
9041 * language.c: Likewise.
9043 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9045 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9047 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9048 (amd64_sol2_gregset32_reg_offs): Likewise.
9050 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9052 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9053 of the returned BFD is allocated by GDB.
9055 2012-02-07 Tom Tromey <tromey@redhat.com>
9058 * python/python-internal.h (frame_object_type): Declare.
9059 * python/py-symbol.c (sympy_needs_frame): New function.
9060 (sympy_value): New function.
9061 (symbol_object_getset): Add "needs_frame".
9062 (symbol_object_methods): Add "value".
9063 * python/py-frame.c (frame_object_type): No longer static.
9065 2012-02-07 Tom Tromey <tromey@redhat.com>
9068 * python/py-symbol.c (sympy_line): New function.
9069 (symbol_object_getset): Add "line".
9071 2012-02-07 Tom Tromey <tromey@redhat.com>
9073 * charset.c (find_charset_names): Check 'in' against NULL.
9075 2012-02-06 Doug Evans <dje@google.com>
9077 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9078 and fields.name members from char * to const char *. All uses updated.
9079 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9080 from char * to const char *. All uses updated.
9081 (type_name_no_tag): Update.
9082 (lookup_unsigned_typename, lookup_signed_typename): Update.
9083 * gdbtypes.c (type_name_no_tag): Change result type
9084 from char * to const char *. All callers updated.
9085 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9086 name parameter from char * to const char *.
9087 * symtab.h (struct cplus_specific): Change type of demangled_name
9088 member from char * to const char *. All uses updated.
9089 (struct general_symbol_info): Change type of name and
9090 mangled_lang.demangled_name members from char * to const char *.
9092 (symbol_get_demangled_name, symbol_natural_name): Update.
9093 (symbol_demangled_name, symbol_search_name): Update.
9094 * symtab.c (symbol_get_demangled_name): Change result type
9095 from char * to const char *. All callers updated.
9096 (symbol_natural_name, symbol_demangled_name): Ditto.
9097 (symbol_search_name): Ditto.
9098 (completion_list_add_name): Change type of symname,sym_text,
9099 text,word parameters from char * to const char *.
9100 (completion_list_objc_symbol): Change type of sym_text,
9101 text,word parameters from char * to const char *.
9102 * ada-lang.c (find_struct_field): Change type of name parameter
9103 from char * to const char *.
9104 (encoded_ordered_before): Similarly for N0,N1 parameters.
9105 (old_renaming_is_invisible): Similarly for function_name parameter.
9106 (ada_type_name): Change result type from char * to const char *.
9107 All callers updated.
9108 * ada-lang.h (ada_type_name): Update.
9109 * buildsym.c (hashname): Change type of name parameter
9110 from char * to const char *.
9111 * buildsym.h (hashname): Update.
9112 * dbxread.c (end_psymtab): Change type of include_list parameter
9113 from char ** to const char **.
9114 * dwarf2read.c (determine_prefix): Change result type
9115 from char * to const char *. All callers updated.
9116 * f-lang.c (find_common_for_function): Change type of name, funcname
9117 parameters from char * to const char *.
9118 * f-lang.c (find_common_for_function): Update.
9119 * f-valprint.c (list_all_visible_commons): Change type of funcname
9120 parameters from char * to const char *.
9121 * gdbarch.sh (static_transform_name): Change type of name parameter
9122 and result from char * to const char *.
9123 * gdbarch.c: Regenerate.
9124 * gdbarch.h: Regenerate.
9125 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9126 of name parameter from char * to const char *.
9127 * jv-lang.c (java_primitive_type_from_name): Ditto.
9128 (java_demangled_signature_length): Similarly for signature parameter.
9129 (java_demangled_signature_copy): Ditto.
9130 (java_demangle_type_signature): Ditto.
9131 * jv-lang.h (java_primitive_type_from_name): Update.
9132 (java_demangle_type_signature): Update.
9133 * objc-lang.c (specialcmp): Change type of a,b parameters
9134 from char * to const char *.
9135 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9136 from char * to const char *. All callers updated.
9137 * p-lang.h (is_pascal_string_type): Update.
9138 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9139 of name parameter from char * to const char *.
9140 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9141 * utils.c (fprintf_symbol_filtered): Ditto.
9142 * defs.h (fprintf_symbol_filtered): Update.
9143 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9144 * stabsread.h (end_psymtab): Update.
9145 * stack.c (find_frame_funname): Change type of funname parameter
9146 from char ** to const char **.
9147 * stack.h (find_frame_funname): Update.
9148 * typeprint.c (type_print): Change type of varstring parameter
9149 from char * to const char *.
9150 * value.h (type_print): Update.
9151 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9152 from char * to const char *. All callers updated.
9153 (xcoff_end_psymtab): Change type of include_list parameter
9154 from char ** to const char **. All callers updated.
9155 (swap_sym): Similarly for name parameter. All callers updated.
9156 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9158 (process_coff_symbol): Use xstrdup.
9159 * stabsread.c (stabs_method_name_from_physname): Renamed from
9160 update_method_name_from_physname. Change result type from void
9161 to char *. All callers updated.
9162 (read_member_functions): In has_destructor case, store name in objfile
9163 obstack instead of malloc space. In !has_stub case, fix mem leak.
9165 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9167 * configure: Rebuild.
9168 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9171 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9173 * configure.tgt (rl78-*-elf): New target.
9174 * rl78-tdep.c: New file.
9176 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9178 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9179 and continue the loop. Add QUIT statement.
9181 2012-02-03 Tom Tromey <tromey@redhat.com>
9184 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9185 bfd_lookup_symbol_from_symtab.
9186 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9187 gdb_bfd_lookup_symbol_from_symtab.
9189 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9191 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9192 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9193 symbol. Add assertion that sym2 is never NULL.
9195 2012-02-02 Doug Evans <dje@google.com>
9197 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9198 "name" parameter to const char ** from char **. All callers updated.
9199 (find_pc_partial_function): Ditto.
9200 (cache_pc_function_name): Change type to const char * from char *.
9201 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9202 (find_pc_partial_function): Update.
9203 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9204 type of "name" parameter to const char * from char *.
9206 * arch-utils.c (generic_in_solib_return_trampoline): Change
9207 type of "name" parameter to const char * from char *.
9208 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9209 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9210 type of "name" parameter to const char * from char *.
9211 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9212 * gdbarch.c: Regenerate.
9213 * gdbarch.h: Regenerate.
9214 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9215 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9216 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9217 type of "name" parameter to const char * from char *.
9218 * skip.c (skip_function_pc): Ditto.
9219 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9220 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9221 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9222 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9223 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9224 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9225 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9226 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9227 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9229 2012-02-02 Pedro Alves <palves@redhat.com>
9231 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9232 the current inferior has no execution. Make sure the current
9233 remote process matches gdb's current inferior.
9235 2012-02-02 Tom Tromey <tromey@redhat.com>
9238 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9241 2012-02-02 Tom Tromey <tromey@redhat.com>
9244 * symtab.c (lookup_language_this): Set block_found.
9246 2012-02-01 Tom Tromey <tromey@redhat.com>
9249 * jit.c (struct jit_inferior_data): Rewrite.
9250 (struct jit_objfile_data): New.
9251 (get_jit_objfile_data): New function.
9252 (add_objfile_entry): Update.
9253 (jit_read_descriptor): Return int. Replace descriptor_addr
9254 argument with inf_data. Update. Don't call error.
9255 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9257 (jit_inferior_init): Don't look up descriptor. Don't call error.
9258 (jit_reset_inferior_data_and_breakpoints)
9259 (jit_inferior_created_observer): Remove.
9260 (jit_inferior_exit_hook): Update.
9261 (jit_executable_changed_observer): Remove.
9262 (jit_event_handler): Update.
9263 (free_objfile_data): Reset inferior data if needed.
9264 (_initialize_jit): Update.
9266 2012-02-01 Tom Tromey <tromey@redhat.com>
9268 * jit.c (bfd_open_from_target_memory): Move higher in file.
9270 2012-02-01 Tristan Gingold <gingold@adacore.com>
9272 * libunwind-frame.c (libunwind_load): Display message if dlopen
9275 2012-02-01 Gary Benson <gbenson@redhat.com>
9277 * symtab.h (symbol_found_callback_ftype): New typedef.
9278 (iterate_over_symbols): Use the above.
9279 * symtab.c (iterate_over_symbols): Likewise.
9280 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9281 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9282 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9283 (iterate_name_matcher): Document return values.
9284 (collect_one_symbol): Likewise.
9285 (collect_function_symbols): Likewise.
9286 (collect_symbols): Likewise.
9288 2012-02-01 Tom Tromey <tromey@redhat.com>
9290 * ada-lang.c (resolve_subexp): Update.
9291 (ada_lookup_symbol_list): Add 'full_search' argument.
9292 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9293 ada_lookup_symbol_list.
9294 (ada_lookup_encoded_symbol): Update.
9295 (get_var_value): Update.
9296 * ada-exp.y (block_lookup): Update.
9297 (write_var_or_type): Update.
9298 (write_name_assoc): Update.
9299 * ada-lang.h (ada_lookup_symbol_list): Update.
9301 2012-01-31 Tom Tromey <tromey@redhat.com>
9303 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9306 2012-01-31 Doug Evans <dje@google.com>
9308 * symtab.h: Remove outdated comment.
9309 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9311 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9313 Fix build error in Darwin port.
9314 * i386-darwin-nat.c: Include i386-nat.h.
9316 2012-01-30 Tom Tromey <tromey@redhat.com>
9318 PR breakpoints/13568:
9319 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9320 argument. Check for recursive includes.
9321 (dwarf_decode_macros): Create an include hash.
9323 2012-01-30 Michael Eager <eager@eagercon.com>
9325 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9326 * ppc-linux-tdep.c: Include glibc-tdep.h.
9327 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9328 (powerpc_linux_in_plt_stub): New function.
9329 (powerpc_linux_in_dynsym_resolve_code): New function.
9330 (ppc_skip_trampoline_code): New function.
9331 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9332 Use glibc_skip_solib_resolver.
9334 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9336 Code cleanup: Make 1440 bytes of data segment read-only.
9337 * arch-utils.c (endian_enum): Make it const char *const [].
9338 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9340 * breakpoint.c (always_inserted_enums): Likewise.
9341 * cli/cli-cmds.c (script_ext_enums): Likewise.
9342 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9343 enumlist parameter const char *const *.
9344 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9345 const char *const *.
9346 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9347 parameter const char *const *.
9348 * cris-tdep.c (cris_modes): Make it const char *const [].
9349 * filesystem.c (target_file_system_kinds): Likewise.
9350 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9351 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9352 (can_use_displaced_stepping_enum, scheduler_enums)
9353 (exec_direction_names): Likewise.
9354 * language.c (_initialize_language): Make the type_or_range_names and
9355 case_sensitive_names variables const char *const [].
9356 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9357 * python/python.c (python_excp_enums): Likewise.
9358 * remote.c (interrupt_sequence_modes): Likewise.
9359 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9360 * serial.c (logbase_enums): Likewise.
9361 * sh-tdep.c (sh_cc_enum): Likewise.
9362 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9364 * symtab.c (multiple_symbols_modes): Likewise.
9365 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9367 * utils.c (internal_problem_modes): Likewise.
9369 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9371 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9372 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9375 2012-01-27 Doug Evans <dje@google.com>
9377 * configure.ac (with_python): Fix absolute path handling for win32.
9378 * configure: Regenerate.
9380 2012-01-26 Doug Evans <dje@google.com>
9382 * symtab.c: Whitespace cleanup, no code changes.
9384 * symtab.c (lookup_symbol_in_language): Improve comment.
9385 (lookup_symbol_aux): Fix comment.
9387 * psymtab.c (add_psymbol_to_list): Result is now "void".
9388 * psympriv.h (add_psymbol_to_list): Update.
9390 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9392 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9394 Do not open script filenames twice.
9395 * cli/cli-cmds.c (source_script_from_stream): Pass to
9396 source_python_script also STREAM.
9397 * python/py-auto-load.c (source_section_scripts): Pass to
9398 source_python_script_for_objfile also STREAM.
9399 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9401 * python/python-internal.h (source_python_script_for_objfile): New
9402 parameter file, rename parameter file to filename.
9403 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9404 instead if !_WIN32. Update the function comment.
9405 (source_python_script, source_python_script_for_objfile)
9406 (source_python_script): New parameter file, rename parameter file to
9407 filename. Pass FILENAME to python_run_simple_file.
9408 * python/python.h (source_python_script): New parameter file, rename
9409 parameter file to filename.
9411 2012-01-26 Pedro Alves <palves@redhat.com>
9413 * corelow.c (core_has_fake_pid): Delete.
9414 (core_close): Delete references to `core_has_fake_pid'.
9415 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9416 (core_open): Delete references to `core_has_fake_pid'.
9417 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9420 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9422 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9423 Remove language parameter from name_matcher. Adjust the comment.
9424 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9425 Remove language parameter.
9426 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9427 * linespec.c (iterate_name_matcher): Likewise.
9428 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9429 name_matcher. Adjust call accordingly.
9430 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9431 (maintenance_check_symtabs): Adjust type of parameter "fun".
9432 * psymtab.h (maintenance_check_symtabs): Likewise.
9434 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9436 * language.h (symbol_name_match_p_ftype): New typedef.
9437 (struct language_defn): Replace field la_symbol_name_compare
9438 by la_get_symbol_name_match_p.
9439 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9440 (ada_language_defn): Use it.
9441 * linespec.c (struct symbol_matcher_data): New type.
9442 (iterate_name_matcher): Rewrite.
9443 (iterate_over_all_matching_symtabs): Pass a pointer to
9444 a symbol_matcher_data struct to expand_symtabs_matching
9445 instead of just the lookup name.
9446 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9447 opencl-lang.c, p-lang.c, language.c: Delete field
9448 la_symbol_name_compare, and replace by NULL for new field
9449 la_get_symbol_name_match_p.
9450 * symfile.h (struct quick_symbol_functions): Update comment.
9452 2012-01-25 Tom Tromey <tromey@redhat.com>
9454 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9457 2012-01-24 Tom Tromey <tromey@redhat.com>
9460 * solib.c (update_solib_list): Update the program space's
9461 added_solibs and deleted_solibs fields.
9462 * progspace.h (struct program_space) <added_solibs,
9463 deleted_solibs>: New fields.
9464 (clear_program_space_solib_cache): Declare.
9465 * progspace.c (release_program_space): Call
9466 clear_program_space_solib_cache.
9467 (clear_program_space_solib_cache): New function.
9468 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9469 bpstat_stop_status. Use handle_solib_event.
9470 * breakpoint.c: Include gdb_regex.h.
9471 (print_solib_event): New function.
9472 (bpstat_print): Use print_solib_event.
9473 (bpstat_stop_status): Add special case for bp_shlib_event.
9474 (handle_solib_event): New function.
9475 (bpstat_what): Use handle_solib_event.
9476 (struct solib_catchpoint): New.
9477 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9478 (breakpoint_hit_catch_solib, check_status_catch_solib)
9479 (print_it_catch_solib, print_one_catch_solib)
9480 (print_mention_catch_solib, print_recreate_catch_solib): New
9482 (catch_solib_breakpoint_ops): New global.
9483 (catch_load_or_unload, catch_load_command_1)
9484 (catch_unload_command_1): New functions.
9485 (internal_bkpt_check_status): Add special case for
9487 (internal_bkpt_print_it): Use print_solib_event.
9488 (initialize_breakpoint_ops): Initialize
9489 catch_solib_breakpoint_ops.
9490 (_initialize_breakpoint): Register "catch load" and "catch
9492 * breakpoint.h (handle_solib_event): Declare.
9493 * NEWS: Add entry for "catch load" and "catch unload".
9495 2012-01-24 Tom Tromey <tromey@redhat.com>
9497 * ada-lang.c: Include gdb_vecs.h.
9498 * charset.c: Include gdb_vecs.h.
9499 * tracepoint.h: Include gdb_vecs.h.
9500 * gdb_vecs.h: New file.
9502 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9504 * breakpoint.c (breakpoint_hit_catch_fork)
9505 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9506 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9507 * infrun.c (inferior_has_forked, inferior_has_vforked)
9508 (inferior_has_execd, inferior_has_called_syscall): Delete.
9509 (handle_syscall_event): Get syscall_number from the execution
9510 control state's wait status.
9511 (wait_for_inferior): Don't clear syscall_number.
9513 2012-01-24 Pedro Alves <palves@redhat.com>
9515 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9516 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9517 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9518 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9520 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9521 false for events other than TARGET_SIGNAL_TRAP.
9522 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9524 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9525 events other than TARGET_SIGNAL_TRAP.
9526 (tracepoint_breakpoint_hit): Add `ws' parameter.
9527 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9529 (bpstat_stop_status): Same.
9530 (pc_at_non_inline_function): Same.
9531 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9532 to pass the current event's waitstatus to bpstat_stop_status
9533 and pc_at_non_inline_function.
9535 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9538 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9539 Update the function comment for it.
9540 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9541 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9544 2012-01-24 Pedro Alves <palves@redhat.com>
9546 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9547 outside `bs->stop' block.
9548 (bpstat_what): Rework bp_shlib_event handling.
9549 (internal_bkpt_check_status): If the breakpoint is a
9550 bp_shlib_event, then set bs->stop and bs->print if
9551 stop_on_solib_events is set.
9553 2012-01-24 Gary Benson <gbenson@redhat.com>
9555 Delete #if 0'd out code.
9556 * stack.c (print_frame_label_vars): Remove.
9557 (catch_info): Likewise.
9558 (_initialize_stack): Remove "info catch" command.
9559 * NEWS: Mention the above.
9561 2012-01-24 Pedro Alves <palves@redhat.com>
9563 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9565 (remote_notice_new_inferior): If the remote end doesn't support
9566 the multiprocess extensions, then the PID is fake.
9567 (add_current_inferior_and_thread): New.
9568 (remote_start_remote): Use it.
9569 (extended_remote_attach_1): Adjust.
9570 (extended_remote_create_inferior_1): Use
9571 add_current_inferior_and_thread.
9573 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9575 Fix watchpoints to be specific for each inferior.
9576 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9577 current_program_space.
9578 * i386-nat.c (i386_inferior_data_cleanup): New.
9579 (i386_inferior_data_get): Replace variable inf_data_local by an
9581 (i386_use_watchpoints): Initialize i386_inferior_data.
9582 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9583 specific iterate_over_lwps.
9585 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9587 Fix watchpoints across inferior fork.
9588 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9589 comment for linux_nat_iterate_watchpoint_lwps.
9590 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9591 linux_nat_iterate_watchpoint_lwps.
9592 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9593 * i386-linux-nat.c (update_debug_registers_callback): Update the
9594 comment for linux_nat_iterate_watchpoint_lwps.
9595 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9596 linux_nat_iterate_watchpoint_lwps.
9597 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9598 * i386-nat.c: Include inferior.h.
9599 (dr_mirror): Remove.
9600 (i386_inferior_data, struct i386_inferior_data)
9601 (i386_inferior_data_get): New.
9602 (i386_debug_reg_state): Use i386_inferior_data_get.
9603 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9604 (i386_insert_watchpoint, i386_remove_watchpoint)
9605 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9606 (i386_remove_hw_breakpoint): New variable state, use
9607 i386_debug_reg_state instead of DR_MIRROR.
9608 * linux-nat.c (delete_lwp): New declaration.
9609 (num_lwps): Move here from downwards.
9610 (delete_lwp_cleanup): New.
9611 (linux_child_follow_fork): Create new child_lp, call
9612 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9614 (num_lwps): Move upwards.
9615 (linux_nat_iterate_watchpoint_lwps): New.
9616 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9617 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9619 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9623 2012-01-23 Pedro Alves <palves@redhat.com>
9625 * top.c (caution): Rename to ...
9626 (confirm): ... this.
9627 (show_caution): Rename to ...
9628 (show_confirm): ... this.
9629 (quit_cover): Adjust.
9630 (init_main): Adjust.
9631 * top.h (caution): Rename to ...
9632 (confirm): ... this.
9633 * utils.c (internal_vproblem, defaulted_query): Adjust.
9635 2012-01-23 Pedro Alves <palves@redhat.com>
9637 * top.c (caution): Update comment.
9638 (execute_command): Don't consider the current value of `caution'.
9640 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9642 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9644 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9646 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9647 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9648 * target.c (target_fileio_pwrite): Remove buffer address from
9650 (target_fileio_pread): Likewise.
9652 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9654 * NEWS: Document remote "info proc" and "generate-core-file".
9656 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9658 * gdbarch.sh (find_memory_regions): New callback.
9659 * gdbarch.c, gdbarch.h: Regenerate.
9661 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9662 callback before falling back to target method.
9664 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9665 (linux_target_install_ops): No longer install it.
9667 * linux-tdep.c (linux_find_memory_regions): New function.
9668 (linux_init_abi): Install it.
9670 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9672 * gdbarch.sh (make_corefile_notes): New architecture callback.
9673 * gdbarch.c: Regenerate.
9674 * gdbarch.h: Likewise.
9676 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9677 before target_make_corefile_notes. If NULL is returned, the
9678 target does not support core file generation.
9680 * linux-nat.c: Include "linux-tdep.h".
9681 (find_signalled_thread, find_stop_signal): Remove.
9682 (linux_nat_do_thread_registers): Likewise.
9683 (struct linux_nat_corefile_thread_data): Likewise.
9684 (linux_nat_corefile_thread_callback): Likewise.
9685 (iterate_over_spus): Likewise.
9686 (struct linux_spu_corefile_data): Likewise.
9687 (linux_spu_corefile_callback): Likewise.
9688 (linux_spu_make_corefile_notes): Likewise.
9689 (linux_nat_collect_thread_registers): New function.
9690 (linux_nat_make_corefile_notes): Replace contents by call to
9691 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9692 as native-only callback.
9694 * linux-tdep.h: Include "bfd.h".
9695 (struct regcache): Add forward declaration.
9696 (linux_collect_thread_registers_ftype): New typedef.
9697 (linux_make_corefile_notes): Add prototype.
9698 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9699 "regset.h", and "elf-bfd.h".
9700 (find_signalled_thread, find_stop_signal): New functions.
9701 (linux_spu_make_corefile_notes): Likewise.
9702 (linux_collect_thread_registers): Likewise.
9703 (struct linux_corefile_thread_data): New data structure.
9704 (linux_corefile_thread_callback): New funcion.
9705 (linux_make_corefile_notes): Likewise.
9706 (linux_make_corefile_notes_1): Likewise.
9707 (linux_init_abi): Install it.
9709 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9711 * gdbarch.sh (info_proc): New callback.
9712 * gdbarch.c, gdbarch.h: Regenerate.
9714 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9715 before falling back to the target info_proc callback.
9717 * linux-nat.c: Do not include "cli/cli-utils.h".
9718 (linux_nat_info_proc): Remove.
9719 (linux_target_install_ops): No longer install it.
9721 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9722 (read_mapping): New function.
9723 (linux_info_proc): Likewise.
9724 (linux_init_abi): Install it.
9726 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9728 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9729 * infcmd.c: (info_proc_cmd_1): New function.
9730 (info_proc_cmd): New function, moved here from equivalent routine
9731 orignally in linux-nat.c.
9732 (info_proc_cmd_mappings): Likewise.
9733 (info_proc_cmd_stat): Likewise.
9734 (info_proc_cmd_status): Likewise.
9735 (info_proc_cmd_cwd): Likewise.
9736 (info_proc_cmd_cmdline): Likewise.
9737 (info_proc_cmd_exe): Likewise.
9738 (info_proc_cmd_all): Likewise.
9739 (_initialize_infcmd): Install "info proc" command and subcommands.
9741 * target.h (struct target_ops): Add to_info_proc.
9742 (target_info_proc): Add prototype.
9743 * target.c (target_info_proc): New function.
9745 * procfs.c (procfs_info_proc): Add prototype.
9746 (info_proc_cmd): Rename into ...
9747 (procfs_info_proc): ... this. Update argument types as appropriate
9748 for a to_info_proc implementation. Handle "what" argument.
9749 (procfs_target): Install procfs_info_proc.
9750 (_initialize_procfs): No longer install "info proc" command.
9752 * linux-nat.c: (enum info_proc_what): Remove.
9753 (linux_nat_info_proc_cmd_1): Rename into ...
9754 (linux_nat_info_proc): ... this. Update argument types as appropriate
9755 for a to_info_proc implementation.
9756 (linux_nat_info_proc_cmd): Remove.
9757 (linux_nat_info_proc_cmd_mappings): Likewise.
9758 (linux_nat_info_proc_cmd_stat): Likewise.
9759 (linux_nat_info_proc_cmd_status): Likewise.
9760 (linux_nat_info_proc_cmd_cwd): Likewise.
9761 (linux_nat_info_proc_cmd_cmdline): Likewise.
9762 (linux_nat_info_proc_cmd_exe): Likewise.
9763 (linux_nat_info_proc_cmd_all): Likewise.
9764 (linux_target_install_ops): Install linux_nat_info_proc.
9765 (_initialize_linux_nat): No longer install "info proc" command
9768 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9770 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9771 * config.in, configure: Regenerate.
9773 * target.h (struct target_ops): Add to_fileio_readlink.
9774 (target_fileio_readlink): Add prototype.
9775 * target.c (target_fileio_readlink): New function.
9777 * inf-child.c: Conditionally include <sys/param.h>.
9778 (inf_child_fileio_readlink): New function.
9779 (inf_child_target): Install it.
9781 * remote.c (PACKET_vFile_readlink): New enum value.
9782 (remote_hostio_readlink): New function.
9783 (init_remote_ops): Install it.
9784 (_initialize_remote): Handle vFile:readlink packet type.
9786 2012-01-20 Pedro Alves <palves@redhat.com>
9787 Ulrich Weigand <ulrich.weigand@linaro.org>
9789 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9790 * config.in, configure: Regenerate.
9792 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9793 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9794 (target_fileio_open): Add prototype.
9795 (target_fileio_pwrite): Likewise.
9796 (target_fileio_pread): Likewise.
9797 (target_fileio_close): Likewise.
9798 (target_fileio_unlink): Likewise.
9799 (target_fileio_read_alloc): Likewise.
9800 (target_fileio_read_stralloc): Likewise.
9802 * target.c: Include "gdb/fileio.h".
9803 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9804 (default_fileio_target): New function.
9805 (target_fileio_open): Likewise.
9806 (target_fileio_pwrite): Likewise.
9807 (target_fileio_pread): Likewise.
9808 (target_fileio_close): Likewise.
9809 (target_fileio_unlink): Likewise.
9810 (target_fileio_close_cleanup): Likewise.
9811 (target_fileio_read_alloc_1): Likewise.
9812 (target_fileio_read_alloc): Likewise.
9813 (target_fileio_read_stralloc): Likewise.
9815 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9816 <fcntl.h>, and <unistd.h>.
9817 (inf_child_fileio_open_flags_to_host): New function.
9818 (inf_child_errno_to_fileio_error): Likewise.
9819 (inf_child_fileio_open): Likewise.
9820 (inf_child_fileio_pwrite): Likewise.
9821 (inf_child_fileio_pread): Likewise.
9822 (inf_child_fileio_close): Likewise.
9823 (inf_child_fileio_unlink): Likewise.
9824 (inf_child_target): Install to_fileio routines.
9826 * remote.c (init_remote_ops): Install to_fileio routines.
9828 2012-01-20 Pedro Alves <palves@redhat.com>
9829 Ulrich Weigand <ulrich.weigand@linaro.org>
9831 * remote.c (remote_multi_process_p): Only check for multi-process
9832 protocol feature, do not check for extended protocol.
9833 (remote_supports_multi_process): Check for extended protocol here.
9834 (set_general_process): Likewise.
9835 (extended_remote_kill): Likewise.
9836 (remote_pid_to_str): Likewise.
9837 (remote_query_supported): Always query multiprocess mode.
9839 2012-01-20 Pedro Alves <palves@redhat.com>
9840 Ulrich Weigand <ulrich.weigand@linaro.org>
9842 * inferior.h (struct inferior): Add fake_pid_p.
9843 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9844 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9845 magic_null_ptid since the remote side doesn't provide a real PID.
9847 2012-01-19 Tom Tromey <tromey@redhat.com>
9849 * NEWS: Combine the two Python sections.
9851 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9853 * target.h (target_close): Update comment on the target's unpush state.
9855 2012-01-19 Pedro Alves <palves@redhat.com>
9857 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9858 linux_nat_async directly instead of going through the target
9860 * target.c (unpush_target): Close target after unpushing it, not
9863 2012-01-19 Gary Benson <gbenson@redhat.com>
9865 * mdebugread.c (sort_blocks): Replace integer constants with ones
9866 derived from FIRST_LOCAL_BLOCK.
9868 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9869 Jan Kratochvil <jan.kratochvil@redhat.com>
9872 * symfile.c (find_separate_debug_file): New function.
9873 (terminate_after_last_dir_separator): Likewise.
9874 (find_separate_debug_file_by_debuglink): Also try realpath.
9875 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9876 * configure: Regenerate.
9877 * config.in: Regenerate.
9879 2012-01-18 Doug Evans <dje@google.com>
9881 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9882 (main.o): Remove rule.
9883 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9884 (--with-sysroot): Rewrite.
9885 * configure: Regenerate.
9886 * config.in: Regenerate.
9888 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9890 * parse.c (initialize_expout): New function.
9891 (reallocate_expout): Likewise.
9892 (parse_exp_in_context): Use `initialize_expout' and
9893 `reallocate_expout' when appropriate.
9895 2012-01-18 Pedro Alves <palves@redhat.com>
9897 * record.c (struct record_breakpoint, record_breakpoint_p)
9898 (record_breakpoints): New.
9899 (record_insert_breakpoint, record_remove_breakpoint): Manage
9900 record breakpoints list. Only remove breakpoints from the
9901 inferior if they had been inserted there in the first place.
9903 2012-01-17 Doug Evans <dje@google.com>
9905 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9906 if we know we don't have a file name to look for.
9908 2012-01-17 Pedro Alves <palves@redhat.com>
9910 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9911 the frame's stop reason is UNWIND_UNAVAILABLE.
9913 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9915 Fix compilation error.
9916 * m2-exp.y (yyerror): Use ANSI C prototype.
9918 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9920 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9921 (growbuf_by_size): Likewise.
9922 (yyerror): Likewise.
9923 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9924 (modblock): Remove variable (was #if 0'ed).
9925 (parse_number): Convert prototype from K&R to ANSI C.
9926 (yyerror): Likewise.
9927 * objc-exp.y (parse_number): Likewise.
9928 (yyerror): Likewise.
9929 (yylex): Remove #if 0'ed code.
9930 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9931 (yyerror): Likewise.
9933 2012-01-16 Tom Tromey <tromey@redhat.com>
9936 * symtab.h (compare_filenames_for_search): Declare.
9937 * symtab.c (compare_filenames_for_search): New function.
9938 (iterate_over_some_symtabs): Use it.
9939 * symfile.h (struct quick_symbol_functions)
9940 <map_symtabs_matching_filename>: Change spec.
9941 * psymtab.c (partial_map_symtabs_matching_filename): Use
9942 compare_filenames_for_search. Update for new spec.
9943 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9944 compare_filenames_for_search. Update for new spec.
9945 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9947 2012-01-16 Tom Tromey <tromey@redhat.com>
9950 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9951 (struct main_type) <flag_flag_enum>: New field.
9952 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9953 * NEWS: Add entries.
9954 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9956 * python/lib/gdb/printing.py (_EnumInstance): New class.
9957 (FlagEnumerationPrinter): Likewise.
9959 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9961 * breakpoint.c (create_sals_from_address_default): New function.
9962 (create_breakpoints_sal_default): Likewise.
9963 (decode_linespec_default): Likewise.
9964 (is_marker_spec): Removed.
9965 (strace_marker_p): New function.
9966 (init_breakpoint_sal): Using `strace_marker_p' instead of
9968 (create_breakpoint): Call method `create_sals_from_address' from
9969 breakpoint_ops, replacing code that created SALs conditionally
9970 on the type of the breakpoint. Call method `create_breakpoints_sal',
9971 replacing code that created breakpoints conditionally on the type
9973 (base_breakpoint_create_sals_from_address): New function.
9974 (base_breakpoint_create_breakpoints_sal): Likewise.
9975 (base_breakpoint_decode_linespec): Likewise.
9976 (base_breakpoint_ops): Add methods
9977 `base_breakpoint_create_sals_from_address',
9978 `base_breakpoint_create_breakpoints_sal' and
9979 `base_breakpoint_decode_linespec'.
9980 (bkpt_create_sals_from_address): New function.
9981 (bkpt_create_breakpoints_sal): Likewise.
9982 (bkpt_decode_linespec): Likewise.
9983 (tracepoint_create_sals_from_address): Likewise.
9984 (tracepoint_create_breakpoints_sal): Likewise.
9985 (tracepoint_decode_linespec): Likewise.
9986 (strace_marker_create_sals_from_address): Likewise.
9987 (strace_marker_create_breakpoints_sal): Likewise.
9988 (strace_marker_decode_linespec): Likewise.
9989 (strace_marker_breakpoint_ops): New variable.
9990 (addr_string_to_sals): Remove `marker_spec'. Call method
9991 `decode_linespec' from breakpoint_ops, replacing code that decoded
9992 an address string into a SAL. Use `strace_marker_p' instead of
9994 (strace_command): Decide whether we are dealing with a static
9995 tracepoint with marker or not. Use the appropriate breakpoint_ops.
9996 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
9997 * breakpoint.h (linespec_result, linespec_sals): New forward
9999 (breakpoint_ops) <create_sals_from_address>,
10000 <create_breakpoints_sal>, <decode_linespec>: New methods.
10002 2012-01-14 Doug Evans <dje@google.com>
10004 * NEWS: Update text for "maint set python print-stack".
10005 It is deprecated in gdb 7.4 and deleted in 7.5.
10007 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10009 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10010 including curses.h.
10012 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10014 * configure: Regenerate.
10015 * config.in: Regenerate.
10017 2012-01-12 Keith Seitz <keiths@redhat.com>
10020 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10021 (ANONYMOUS_UNION_NAME): Define.
10022 (is_path_expr_parent): New function.
10023 (get_path_expr_parent): New function.
10024 (is_anonymous_child): New function.
10025 (create_child_with_value): If the child is anonymous and without
10026 a name, assign an object name to it.
10027 (c_describe_child): Use get_path_expr_parent to determine
10028 the parent expression.
10029 If there field represents an anonymous struct or union and
10030 has no name, set an appropriate display name and expression.
10031 (cplus_describe_child): Likewise.
10033 2012-01-12 Pedro Alves <palves@redhat.com>
10035 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10036 available when %ebp is found to be zero (outermost).
10038 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10040 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10041 an internal gdb_static_assert.
10042 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10044 2012-01-11 Tom Tromey <tromey@redhat.com>
10047 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10048 catch" and "catch throw".
10050 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10052 * blockframe.c (block_innermost_frame): Start search from selected
10053 frame, if present, or otherwise the current frame.
10055 * c-exp.y (variable): Update innermost_block for
10056 'block COLONCOLON NAME' clause.
10057 * m2-exp.y (variable): Ditto.
10058 * objc-exp.y (variable): Ditto.
10060 2012-01-10 Tom Tromey <tromey@redhat.com>
10063 * python/python.c (finish_python_initialization): Set sys.argv.
10065 2012-01-10 Doug Evans <dje@google.com>
10067 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10068 "want_line_info". All callers updated.
10069 (dwarf_decode_lines_1): New function.
10070 (handle_DW_AT_stmt_list): Add function comment.
10071 New arg "want_line_info". All callers updated.
10072 (read_file_scope,read_type_unit_scope): Move comment from
10073 handle_DW_AT_stmt_list to here.
10075 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10077 Fix regression after libiberty/ update for GCC PR 6057 and others.
10078 * c-exp.y (operator) <OPERATOR DELETE>
10079 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10080 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10081 (make_builtin_type, make_name): New variable i, add gdb_assert.
10082 (operator) <OPERATOR NEW>: Update ARGS to 3.
10083 (operator) <OPERATOR DELETE>: Add trailing space.
10084 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10085 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10086 * cp-support.c (cp_canonicalize_string): Check NULL from
10087 cp_comp_to_string, call warning and return.
10089 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10091 Fix duplicate .o files after omitting libbfd.a.
10092 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10093 (SFILES): Add corelow.c.
10094 (COMMON_OBS): Add corelow.o.
10095 (ALLDEPFILES): Remove corelow.c.
10096 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10097 * config/alpha/alpha-osf3.mh: Likewise.
10098 * config/alpha/fbsd.mh: Likewise.
10099 * config/arm/nbsdaout.mh: Likewise.
10100 * config/arm/nbsdelf.mh: Likewise.
10101 * config/i386/i386gnu.mh: Likewise.
10102 * config/ia64/hpux.mh: Likewise.
10103 * config/ia64/linux.mh: Likewise.
10104 * config/m32r/linux.mh: Likewise.
10105 * config/m68k/linux.mh: Likewise.
10106 * config/mips/irix5.mh: Likewise.
10107 * config/mips/irix6.mh: Likewise.
10108 * config/pa/hpux.mh: Likewise.
10109 * config/pa/linux.mh: Likewise.
10110 * config/powerpc/aix.mh: Likewise.
10111 * config/sparc/linux.mh: Likewise.
10112 * config/sparc/linux64.mh: Likewise.
10113 * config/sparc/sol2.mh: Likewise.
10114 * config/vax/vax.mh: Likewise.
10115 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10116 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10117 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10118 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10119 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10120 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10121 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10122 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10123 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10124 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10125 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10126 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10127 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10128 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10129 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10130 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10131 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10132 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10133 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10134 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10135 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10136 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10137 corelow.o from gdb_target_obs.
10138 * corefile.c (core_target): Update the comment on NULL value.
10139 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10140 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10141 MATCHES. Drop YUMMY set on NULL.
10142 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10143 reclaim CORE_DATA if it is already NULL.
10145 2012-01-09 Doug Evans <dje@google.com>
10147 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10148 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10150 2012-01-09 Keith Seitz <keiths@redhat.com>
10152 * breakpoint.c (wrapper.h): Don't include.
10154 2012-01-09 Keith Seitz <keiths@redhat.com>
10156 * Makefile.in (SFILES): Remove wrapper.c.
10157 (HFILES_NO_SRCDIR): Remove wrapper.h.
10158 (COMMON_OBS): Remove wrapper.o.
10159 * cli/cli-interp.c: Don't inlude wrapper.h.
10160 * corelow.c: Likewise.
10161 (core_open): Replace gdb_target_find_new_threads with
10162 TRY_CATCH around target_find_new_threads.
10163 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10164 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10165 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10166 evaluate_expression.
10167 (varobj_set_value): Likewise for evaluate_expression and
10169 (install_new_variable): Likewise for value_fetch_lazy.
10170 (adjust_value_for_child_access): Likewise for value_ind.
10171 (c_describe_child): Likewise for value_subscript and
10173 (c_value_of_root): Likewise for evaluate_expression.
10174 * wrapper.c: Remove.
10175 * wrapper.h: Remove.
10177 2012-01-09 Doug Evans <dje@google.com>
10179 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10180 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10181 "abfd" args with "section". All callers updated.
10182 Error checking code moved ...
10183 (error_check_comp_unit_head): ... here. New function.
10184 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10185 Delete arg "abfd". New arg "type_offset". All callers updated.
10186 (create_debug_types_hash_table): Simplify by using
10187 read_and_check_type_unit_head.
10189 * parser-defs.h (namecopy): Delete.
10190 * parse.c (namecopy, namecopy_size): Move into copy_name.
10192 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10194 Partially fix duplicate .o files after omitting libbfd.a.
10195 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10196 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10197 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10198 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10199 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10200 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10201 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10203 2012-01-09 Pedro Alves <palves@redhat.com>
10205 * MAINTAINERS: Update my email address.
10207 2012-01-08 Doug Evans <dje@google.com>
10209 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10210 n_type_units. Rename type_comp_units to all_type_units.
10212 (add_signatured_type_cu_to_table): Renamed from
10213 add_signatured_type_cu_to_list. All callers updated.
10215 * gdbtypes.h (struct cplus_struct_type): Delete member
10216 nfn_fields_total. All uses removed.
10218 2012-01-06 Doug Evans <dje@google.com>
10220 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10222 (dwarf2_find_comp_unit): Delete.
10223 (process_psymtab_comp_unit): Make result "void".
10224 Delete args buffer, info_ptr, buffer_size, and replace with
10225 "section". All callers updated.
10226 (dwarf2_build_psymtabs_hard): Simplify.
10228 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10229 Thiago Jung Bauermann <bauerman@br.ibm.com>
10231 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10232 before `struct gdb_exception'.
10233 * breakpoint.c (update_global_location_list_nothrow)
10234 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10235 * cp-abi.c (value_rtti_type): Likewise.
10236 * cp-support.c (cp_validate_operator): Likewise.
10237 * infrun.c (insert_exception_resume_breakpoint)
10238 (check_exception_resume, keep_going): Likewise.
10239 * mi-interp.c (mi_breakpoint_created)
10240 (mi_breakpoint_modified): Likewise.
10241 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10242 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10243 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10245 2012-01-05 Doug Evans <dje@google.com>
10247 * dwarf2read.c (statement_prologue): Delete, unused.
10249 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10250 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10252 * dwarf2read.c (comp_unit_header): Delete, unused.
10254 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10256 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10257 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10259 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10261 * infrun.c (normal_stop): Don't skip calling the normal_stop
10262 observers if the thread was doing a multi-step, but stopped for
10263 some reason other than stepping.
10265 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10267 * cli/cli-decode.h: Add comments.
10268 (CMD_LIST_AMBIGUOUS): Moved to command.h
10269 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10270 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10271 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10272 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10273 (add_com, add_com_alias, add_info, add_info_alias)
10274 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10276 * command.h: Add and adjust comments.
10277 (CMD_LIST_AMBIGUOUS): Moved here.
10278 (help_cmd, help_cmd_list): Delete declarations.
10280 2012-01-04 Doug Evans <dje@google.com>
10282 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10283 All callers updated.
10284 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10285 Replace all arguments with "per_cu". All callers updated.
10287 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10289 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10290 New arg "per_cu". All callers updated.
10292 Delete #if 0'd out code.
10293 * language.c (binop_result_type): Delete.
10294 (simple_type, ordered_type, same_type, integral_type): Delete.
10295 (numeric_type, character_type, string_type, boolean_type): Delete.
10296 (float_type, structured_type): Delete.
10297 * language.h: Update.
10299 2012-01-04 Tom Tromey <tromey@redhat.com>
10301 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10303 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10305 * corefile.c (close_exec_file): Delete.
10306 (reopen_exec_file): Remove commented out code that seems related
10307 to close_exec_file, which is being deleted here.
10308 * inferior.h (close_exec_file): Delete.
10309 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10311 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10313 * ada-lang.c: #include "cli/cli-utils.h".
10314 (get_selections): Use skip_spaces.
10315 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10316 (catch_ada_exception_command_split): Use skip_spaces.
10317 (ada_decode_assert_location): Likewise.
10319 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10321 * linespec.c (decode_line_internal): Check for C++ or Java
10322 compound constructs only if the current language is C, C++
10325 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10328 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10329 Joel Brobecker <brobecker@adacore.com>
10330 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10331 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10333 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10334 fall through into AT_ENTRY_POINT.
10335 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10336 DUMMY_ADDR with it.
10337 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10338 PPC_INSN_SIZE skip to 3 times.
10340 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10342 * linespec.c (add_minsym): Preserve function descriptors.
10344 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10346 * breakpoint.c (all_locations_are_pending): Consider locations
10347 in program spaces executing during startup pending as well.
10349 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10351 Copyright year update in most files of the GDB Project.
10353 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10355 * copyright.sh: Delete.
10356 * copyright.py: Rewrite.
10358 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10360 * gnulib/extra/update-copyright: New file, imported from gnulib.
10362 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10364 * README (Copyright and License Notices): New section.
10366 2012-01-03 Tom Tromey <tromey@redhat.com>
10369 * python/py-value.c (valpy_dereference, valpy_get_address
10370 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10371 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10372 (valpy_absolute, valpy_richcompare): Free intermediate values.
10374 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10376 * ada-lang.c: Reformat the copyright notice.
10378 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10380 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10381 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10382 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10383 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10384 Revert this part of:
10385 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10386 Build gdb directly from *.o files not using libgdb.a.
10387 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10389 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10391 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10392 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10393 Reformat the copyright header.
10395 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10397 Revert this part of:
10398 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10399 Remove the gdbtui binary.
10400 * gdb.c (main): Remove args.interpreter_p initialization.
10401 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10402 * main.h (struct captured_main_args): Remove interpreter_p.
10404 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10406 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10408 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10410 * top.c (print_gdb_version): Update copyright year.
10412 2012-01-02 Yao Qi <yao@codesourcery.com>
10414 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10416 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10417 Joel Brobecker <brobecker@adacore.com>
10419 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10420 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10422 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10423 fall through into AT_ENTRY_POINT.
10424 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10425 DUMMY_ADDR with it.
10426 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10427 PPC_INSN_SIZE skip to 3 times.
10429 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10431 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10433 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10435 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10437 Build gdb directly from *.o files not using libgdb.a.
10438 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10439 (COMMON_OBS): Remove solib-target.o.
10440 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10441 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10442 (LIBGDB_OBS, libgdb.a): Move it above.
10443 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10444 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10445 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10446 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10447 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10448 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10449 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10450 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10451 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10452 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10453 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10454 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10455 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10456 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10457 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10458 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10459 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10460 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10461 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10462 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10463 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10464 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10465 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10466 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10467 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10468 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10469 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10471 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10473 Remove the gdbtui binary.
10474 * .gitignore (/gdbtui): Remove.
10475 * Makefile.in (TUI): Remove.
10476 (SUBDIR_TUI_OBS): Remove tui-main.o.
10477 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10478 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10479 (tui-main.o): Remove.
10480 (all_object_files): Remove tui-main.o.
10481 * NEWS: New note for the gdbtui removal.
10482 * configure: Rebuilt.
10483 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10484 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10485 CONFIG_UNINSTALL respectively.
10486 * gdb.c (main): Remove args.interpreter_p initialization.
10487 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10488 * main.h (struct captured_main_args): Remove interpreter_p.
10489 * tui/tui-main.c: Remove.
10491 2012-01-01 Doug Evans <dje@google.com>
10493 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10494 (dwarf2_physname, read_import_statement): Ditto.
10495 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10496 (process_structure_scope read_subroutine_type): Ditto.
10497 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10498 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10499 (dwarf2_fetch_die_location_block): Ditto.
10500 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10502 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10503 All callers updated.
10504 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10505 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10506 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10508 * dwarf2read.c (load_cu): Move assert to more useful location.
10510 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10511 All callers updated.
10513 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10514 (dwarf2_elf_names): Minor reformat.
10515 (dwarf2_per_cu_data): Tweak comment.
10516 (dwarf2_read_section): Fix comment.
10517 (create_all_comp_units): Fix comment.
10518 (load_full_comp_unit): Fix comment.
10519 (process_full_comp_unit): Fix comment.
10520 (read_signatured_type): Fix comment.
10522 For older changes see ChangeLog-2011.
10528 version-control: never