1 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
3 * ada-valprint.c (ada_val_print_1): Eliminate single-use
5 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
7 (alpha_store_return_value): Likewise.
8 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
9 (amd64_push_arguments): Likewise.
10 * ax-gdb.c (gen_trace_static_fields): Likewise.
11 (gen_traced_pop): Likewise.
12 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
13 * breakpoint.c (update_watchpoint): Likewise.
14 * findcmd.c (parse_find_args): Use local variable for type
16 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
17 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
18 (h8300_store_return_value): Likewise.
19 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
20 Use i386_darwin_arg_type_alignment directly.
21 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
22 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
23 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
24 (m68hc11_extract_return_value): Likewise.
25 * mep-tdep.c (mep_push_dummy_call): Likewise.
26 * printcmd.c (float_type_from_length): Likewise.
27 * s390-tdep.c (s390_value_from_register): Likewise.
28 * stack.c (read_frame_arg): Likewise.
29 * tracepoint.c (encode_actions_1): Likewise.
30 * valops.c (value_fetch_lazy): Use local variable for type
31 instead of length. Use TYPE_LENGTH directly.
32 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
34 2012-09-25 Joel Brobecker <brobecker@adacore.com>
36 * symtab.c (skip_prologue_sal): Fix typo in comment.
38 2012-09-25 Joel Brobecker <brobecker@adacore.com>
40 * linespec.c (create_sals_line_offset): Fix typo in comment.
42 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
44 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
45 use plongest to print the array size.
47 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
49 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
50 * p-valprint.c (pascal_type_print_base): Likewise.
52 2012-09-22 Yao Qi <yao@codesourcery.com>
54 * remote.c (remote_get_trace_status): Remove setting default
55 values of fields of 'ts'.
57 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
59 Fix internal error on canonicalization of clang types.
60 * cp-name-parser.y (operator): New comment at make_operator call for
61 new, delete, new[] and delete[].
62 (exp): Use "sizeof ". Add new comment at make_operator call.
64 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
66 Fix disassemble without parameters in tailcall frame.
67 * cli/cli-cmds.c (disassemble_current_function): Use
68 get_frame_address_in_block.
70 2012-09-21 Tom Tromey <tromey@redhat.com>
72 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
73 TYPE_CODE_UNION>: Unify, removing a goto.
75 2012-09-21 Tom Tromey <tromey@redhat.com>
77 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
79 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
81 * findvar.c (read_frame_register_value): Mark the result value as
82 optimized out if any of the input registers have been optimized out.
84 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
86 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
88 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
90 * eval.c (evaluate_subexp_standard): Eliminate single-use
93 2012-09-21 Yao Qi <yao@codesourcery.com>
95 * mi/mi-interp.c: Declare mi_record_changed.
96 (mi_interpreter_init): Call observer_attach_record_changed.
97 (mi_record_changed): New.
98 * record.c (record_open): Call observer_notify_record_changed.
99 (cmd_record_stop): Call observer_notify_record_changed.
102 2012-09-20 Tom Tromey <tromey@redhat.com>
105 * python/python.c (finalize_python): New function.
106 (_initialize_python): Make a final cleanup.
108 2012-09-19 Doug Evans <dje@google.com>
110 * buildsym.h (param_symbols): Delete, unused.
111 (context_stack): Delete member "params", unused.
112 * buildsym.c (push_context): Update.
113 * dwarf2read.c (read_func_scope): Update.
115 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
117 * sh-tdep.c (sh_register_convert_to_virtual)
118 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
119 all callers. Just do a memcpy if not the little-endian case.
121 * h8300-tdep.c (h8300_gdbarch_init): Invoke
122 set_gdbarch_double_format and set_gdbarch_long_double_format.
123 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
124 set_gdbarch_double_format.
125 * sh-tdep.c (sh_gdbarch_init): Likewise.
127 * NEWS: Document the removal of SH's 'regs' command.
128 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
131 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
133 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
136 2012-09-18 Joel Brobecker <brobecker@adacore.com>
138 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
139 language when iterating over symbols.
141 2012-09-18 Yao Qi <yao@codesourcery.com>
143 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
144 (mi_interpreter_init): Call observer_attach_tsv_created and
145 observer_attach_tsv_deleted.
146 (mi_tsv_created, mi_tsv_deleted): New.
147 * tracepoint.c (delete_trace_state_variable): Call
148 observer_notify_tsv_deleted.
149 (trace_variable_command): Call observer_notify_tsv_created.
150 (delete_trace_variable_command): Call
151 observer_notify_tsv_deleted.
152 (create_tsv_from_upload): Call observer_notify_tsv_created.
155 2012-09-18 Yao Qi <yao@codesourcery.com>
157 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
158 if traceframe changed.
159 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
161 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
162 (mi_interpreter_init): Hook mi_traceframe_changed to observer
163 'traceframe_changed'.
164 (mi_traceframe_changed): New.
165 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
167 * NEWS: Mention the new MI notification.
169 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
171 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
173 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
175 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
176 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
177 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
178 Extend code also for PaX support. Convert all gdb_assert to warning
181 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
183 Implement auto-load user conveniences suggested by Doug Evans.
184 * auto-load.c: Include top.h.
185 (file_is_auto_load_safe): New variable advice_printed. Print advice.
186 (_initialize_auto_load): New variable scripts_directory_help. Mention
187 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
188 scripts-directory. Document in online help one can use also files for
189 set auto-load safe-path.
190 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
191 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
193 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
195 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
198 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
200 * m2-valprint.c (m2_print_array_contents): Eliminate variable
201 ELTLEN and use TYPE_LENGTH directly.
202 (m2_val_print): Likewise.
203 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
204 variable LEN and use TYPE_LENGTH directly.
205 (m68k_svr4_store_return_value): Likewise.
206 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
207 ARGLEN and use TYPE_LENGTH directly.
208 (mips_o64_push_dummy_call): Likewise.
209 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
210 variable LENGTH and use TYPE_LENGTH directly.
211 (s390_function_arg_float): Likewise.
212 (s390_function_arg_integer): Likewise.
213 (s390_push_dummy_call): Likewise.
214 (s390_return_value_convention): Likewise.
215 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
216 TYPE_LENGTH directly.
218 2012-09-17 Yao Qi <yao@codesourcery.com>
220 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
221 Update comment to add_setshow_integer_cmd.
222 * cli/cli-setshow.c (do_set_command): Handle case
223 'var_zuinteger_unlimited'.
224 (do_show_command): Likewise.
225 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
226 for command 'remotetimeout'.
227 * command.h (enum var_types): New zuinteger_unlimited. Update comment
229 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
230 for command 'set listsize'.
232 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
234 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
237 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
240 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
241 (frame_pop): Drop also TAILCALL_FRAME frames.
242 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
244 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
245 Pedro Alves <palves@redhat.com>
248 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
249 function start if we are already at function start. Both for
250 reverse-next and for reverse-step into function without line number
253 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
255 Code cleanup - rename 'inline' depth to 'artificial' depth.
256 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
257 frame_id_artificial_p, extend the comment.
258 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
259 * frame.c (fprint_frame_id): Rename at a user, change debug output
260 text to "artificial=".
261 (skip_inlined_frames): Rename to ...
262 (skip_artificial_frames): ... here. Extend the comment.
263 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
264 (frame_id_inlined_p): Rename to ...
265 (frame_id_artificial_p): ... here. Rename at a user.
266 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
267 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
269 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
271 (frame_id_inlined_p): Rename to ...
272 (frame_id_artificial_p): ... here.
273 * inline-frame.c (inline_frame_this_id): Rename at a user.
275 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
277 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
278 vector variables using vector_size syntax rather than array
281 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
283 * valarith.c (value_concat): Replace unsafe ALLOCA with
286 2012-09-14 Pedro Alves <palves@redhat.com>
288 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
290 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
292 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
293 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
294 data-directory as appropriate.
296 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
298 * printcmd.c (ui_printf): Eliminate single-use variable
301 2012-09-14 Yao Qi <yao@codesourcery.com>
302 Pedro Alves <palves@redhat.com>
304 * valops.c (value_assign): Move observer_notify_target_changed
305 below to replace reinit_frame_cache.
307 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
309 Refactor Python "gdb" module into a proper Python package, by
310 introducing a new "_gdb" module for code implemented in C, and
311 using reload/__import__ instead of exec.
312 * python/lib/gdb/__init__.py: Import * from _gdb.
313 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
314 prompt_hook, sys.argv): Moved from finish_python_initialization.
315 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
316 (packages, auto_load_packages): New list and function replacing
317 module_dict and auto-loading code, using __file__ instead of
318 gdb.PYTHONDIR and reload/__import__ instead of exec.
319 (GdbSetPythonDirectory): Replacing function of the same name
320 from finish_python_initialization, using reload/__import__ instead
321 of exec, as well as call auto_load_packages.
322 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
323 gdb_python_module and not gdb_module.
324 * python/python-internal.h (gdb_python_module): Declare.
325 * python/python.c (gdb_python_module): New global.
326 (before_prompt_hook): Check gdb_python_module and not gdb_module.
327 (_initialize_python): Rename gdb module to _gdb.
328 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
329 (finish_python_initialization): Move Python code to
330 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
333 2012-09-13 Pedro Alves <palves@redhat.com>
335 * Makefile.in (COMMON_OBS): Add registry.o.
336 * registry.c: New file.
337 * registry.h (struct registry_container): Declare.
338 (registry_data_callback): New typedef.
339 (struct registry_data, struct registry_data_registration, struct
340 registry_data_registry): New type.
341 (register_data_with_cleanup, registry_alloc_data)
342 (registry_callback_adaptor, registry_clear_data)
343 (registry_container_free_data, registry_set_data, registry_data):
345 (DEFINE_REGISTRY): Refactor structures and functions as shims over
346 the new common structures and functions.
347 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
350 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
352 * remote.c (remote_insert_hw_breakpoint): Throw exception if
353 there is an error inserting hardware breakpoints and use the
354 error message from the target.
356 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
357 Catch this exception and print the error message contained within. Do not
358 print the default hardware error breakpoint message in this case.
360 2012-09-12 Doug Evans <dje@google.com>
362 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
365 2012-09-11 Doug Evans <dje@google.com>
367 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
368 .gdb_index symbol attributes if there are none.
370 2012-09-11 Joel Brobecker <brobecker@adacore.com>
372 * symtab.h (struct minimal_symbol) [has_size]: New field.
373 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
374 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
375 * printcmd.c (build_address_symbolic): Only filter out zero-sized
376 minimal symbols if the symbol's size is actually known.
377 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
378 of msymbol's size field. Add comment.
379 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
380 SET_MSYMBOL_SIZE to set the minimal symbol size.
382 2012-09-11 Joel Brobecker <brobecker@adacore.com>
384 * minsyms.c (install_minimal_symbols): Use memset to fill entire
385 minimal_symbol struct object, rather than setting some of its
388 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
390 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
391 passed_a_ptr flag when displaying typedef types.
393 2012-09-10 Joel Brobecker <brobecker@adacore.com>
395 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
396 the optimized_out flag is preserved.
398 2012-09-10 Anthony Green <green@moxielogic.com>
400 * moxie-tdep.c (moxie_analyze_prologue): Update for function
401 prologue changes in GCC.
403 2012-09-10 Keith Seitz <keiths@redhat.com>
406 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
407 (BOOL_CONVERSION_BADNESS): ... this.
408 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
409 (rank_one_type): Allow all boolean conversions
410 permitted by the standard.
412 2012-09-06 Tom Tromey <tromey@redhat.com>
414 * python/py-newobjfileevent.c (create_new_objfile_event_object):
415 Don't decref py_objfile.
417 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
419 Do not enable -lmcheck by default when Python is enabled with
421 * configure.ac: (python_has_threads) New variable, by testing
422 if WITH_THREAD is defined in Python.h.
423 Move --enable-lmcheck after --with-python.
424 Do not enable -lmcheck by default if python_has_threads=yes.
425 Warn if --enable-lmcheck and python_has_threads=yes.
426 * configure: Regenerate.
428 2012-08-31 Yao Qi <yao@codesourcery.com>
430 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
431 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
432 Update some commands.
433 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
434 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
437 2012-08-31 Yao Qi <yao@codesourcery.com>
439 * mi/mi-cmds.c (mi_cmds): Add 'static'.
441 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
443 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
445 2012-08-29 Doug Evans <dje@google.com>
447 * main.c (print_gdb_help): Remove reference to
448 --use-deprecated-index-sections.
450 2012-08-28 Yao Qi <yao@codesourcery.com>
452 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
453 (init_cmds): Call add_setshow_uinteger_cmd for command
454 'max-user-call-depth'.
455 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
456 declaration of 'max_user_call_depth'.
457 * frame.c (backtrace_limit): Add 'unsigned'.
458 (_initialize_frame): Call add_setshow_uinteger_cmd for command
460 * remote.c (remoteaddresssize): Add 'unsigned'.
461 (remote_address_masked): Change local var 'address_size' to
463 (_initialize_remote): Call add_setshow_uinteger_cmd for
465 * top.c (history_size): Add 'unsigned'.
466 (show_commands): Change local variables to 'unsigned'.
467 (set_history_size_command): Don't check history_size is negative.
468 Adjust the condition to call unstifle_history and set history_size
471 2012-08-28 Pedro Alves <palves@redhat.com>
475 * infcmd.c (default_print_one_register_info): New, factored out
476 from default_print_registers_info.
477 (default_print_registers_info): Use it. Mark value unavailable if
479 (registers_info): Print user registers with
480 default_print_one_register_info.
482 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
485 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
486 is not NULL before referencing it.
488 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
490 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
491 variable pc. Call find_pc_line instead of find_pc_overlay, restore
494 2012-08-27 Eli Zaretskii <eliz@gnu.org>
495 Jan Kratochvil <jan.kratochvil@redhat.com>
497 * auto-load.c (auto_load_objfile_script): Rename to ...
498 (auto_load_objfile_script_1): ... here, change variable realname to
499 parameter realname, document it, add return value, add variable retval.
500 (auto_load_objfile_script): New function.
502 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
504 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
505 followed by a whitespace.
507 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
510 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
511 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
512 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
515 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
517 * memattr.c (create_mem_region): Fix memory region overlapping
520 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
522 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
523 with xmalloc/cleanup.
524 * mt-tdep.c (mt_push_dummy_call): Likewise.
525 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
526 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
528 2012-08-24 Yao Qi <yao@codesourcery.com>
530 * jv-exp.y (push_expression_name): Add "." at the end of error
533 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
535 Document how to return from "python-interactive" to GDB.
536 * python/python.c (_initialize_python): Update documentation.
538 2012-08-23 Pedro Alves <palves@redhat.com>
540 * infrun.c (_initialize_infrun) <handle command help text>:
541 Mention that multiple signals are supported.
543 2012-08-23 Pedro Alves <palves@redhat.com>
545 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
548 2012-08-23 Yao Qi <yao@codesourcery.com>
550 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
551 (tfind_1): Don't call registers_changed, set_traceframe_num,
552 and clear_traceframe_info.
553 Call set_current_traceframe.
554 (set_current_traceframe): call set_traceframe_num.
556 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
558 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
559 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
561 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
563 Enable readline in Python in a GDB-specific way and block the
564 standard Python readline module to prevent conflicts with GDB.
565 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
566 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
567 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
568 * python/py-gdb-readline.c: New file.
569 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
571 * python/python.c (_initialize_python): Call
572 gdbpy_initialize_gdb_readline.
574 2012-08-22 Keith Seitz <keiths@redhat.com>
576 * defs.h: Include build-gnulib/config.h
578 2012-08-22 Joseph Myers <joseph@codesourcery.com>
580 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
583 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
585 Add a new "python-interactive" command that starts a standard
586 Python interactive prompt with "pi" as alias, and add "py" as
587 an alias to "python".
588 * NEWS: Mention the new commands.
589 * python/python.c (eval_python_command): New function.
590 (python_interactive_command): For "python-interactive" with
591 arguments, call eval_python_command. For "python-interactive"
592 without arguments, call PyRun_InteractiveLoop.
593 (_initialize_python): Add "python-interactive" command with
594 "pi" as alias, and add "py" as an alias to "python".
596 2012-08-22 Tom Tromey <tromey@redhat.com>
598 * defs.h (quit_flag): Don't declare.
599 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
600 (QUIT): Use new functions.
601 * event-top.c (command_handler): Use clear_quit_flag.
602 (handle_sigint): Use set_quit_flag.
603 (async_request_quit): Use check_quit_flag. Don't check
605 * exceptions.c (throw_exception): Use clear_quit_flag.
606 * main.c (captured_main): Use clear_quit_flag.
607 * python/python.c (clear_quit_flag, set_quit_flag)
608 (check_quit_flag): New functions.
609 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
611 * remote.c (remote_wait_as): Use check_quit_flag,
613 (remote_start_remote): Call QUIT.
614 * symfile.c (load_progress): Use check_quit_flag.
615 * top.c (command_loop): Use clear_quit_flag.
616 (command_line_input): Call QUIT.
617 * utils.c (quit_flag): Conditionally define.
618 (clear_quit_flag, check_quit_flag, set_quit_flag): New
620 (prompt_for_continue): Call QUIT. Use quit, not
622 * remote-mips.c (mips_expect_timeout): Call QUIT.
623 * monitor.c (monitor_expect): Call QUIT.
625 2012-08-22 Tom Tromey <tromey@redhat.com>
627 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
628 (async_init_signals): Update.
629 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
630 (SIGWINCH_HANDLER_BODY): Remove.
632 2012-08-22 Tom Tromey <tromey@redhat.com>
634 * jit.c (jit_object_close_impl): Don't malloc the objfile
636 * objfiles.c (allocate_objfile): Don't malloc the objfile
638 (free_objfile): Don't free the objfile name.
639 * objfiles.h (struct objfile) <name>: Update comment.
640 * symfile.c (reread_symbols): Fix reference counting. Don't
643 2012-08-22 Tom Tromey <tromey@redhat.com>
645 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
646 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
647 (symfile_bfd_open): Likewise.
648 (generic_load): Likewise.
649 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
650 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
652 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
654 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
655 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
656 (pmon_load_fast): Likewise.
657 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
658 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
659 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
660 (macho_check_dsym): Likewise.
661 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
662 (m32r_upload_command): Likewise.
663 * gdb_bfd.h (gdb_bfd_cache): Declare.
664 * gdb_bfd.c (struct gdb_bfd_data): New.
665 (gdb_bfd_cache): New global.
666 (struct gdb_bfd_cache_search): New.
667 (hash_bfd): New function.
669 (gdb_bfd_open): Likewise.
670 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
671 (gdb_bfd_unref): Remove closed BFD from cache. Update for
673 * exec.c (exec_file_attach): Use gdb_bfd_open.
674 * dsrec.c (load_srec): Use gdb_bfd_open.
676 2012-08-22 Tom Tromey <tromey@redhat.com>
678 * dwarf2read.c (macro_start_file): Update.
679 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
680 (free_objfile_per_bfd_storage): Destroy macro_cache.
681 (allocate_objfile, free_objfile): Update.
682 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
684 (struct objfile) <macro_cache>: Remove.
685 * symfile.c (reread_symbols): Update.
686 * symmisc.c (print_symbol_bcache_statistics): Update.
687 (print_objfile_statistics): Update.
689 2012-08-22 Tom Tromey <tromey@redhat.com>
691 * elfread.c (elf_symtab_read): Update.
692 * objfiles.c (objfiles_bfd_data): New global.
693 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
694 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
695 (allocate_objfile, free_objfile): Update.
696 (_initialize_objfiles): Initialize objfiles_bfd_data.
697 * objfiles.h (struct objfile_per_bfd_storage): New.
698 (struct objfile) <per_bfd>: New field.
699 <filename_cache>: Remove.
700 (set_objfile_per_bfd): Declare.
701 * symfile.c (reread_symbols): Update. Call
703 (allocate_symtab): Update.
704 * symmisc.c (print_symbol_bcache_statistics): Update.
705 (print_objfile_statistics): Print the size of the BFD obstack.
707 2012-08-22 Tom Tromey <tromey@redhat.com>
709 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
710 * gdb_bfd.c: Use DEFINE_REGISTRY.
711 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
712 (gdb_bfd_ref): Call bfd_alloc_data.
713 (gdb_bfd_unref): Call bfd_free_data.
715 2012-08-22 Tom Tromey <tromey@redhat.com>
717 * registry.h (struct registry_fields): New.
718 (REGISTRY_FIELDS): Redefine.
719 (REGISTRY_ACCESS_FIELD): New macro.
720 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
723 2012-08-22 Tom Tromey <tromey@redhat.com>
725 * auto-load.c (_initialize_auto_load): Update.
726 * solib-svr4.c (_initialize_svr4_solib): Update
727 * solib-dsbt.c (_initialize_dsbt_solib): Update.
728 * solib-darwin.c (_initialize_darwin_solib): Update.
729 * registry.h: New file.
730 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
731 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
732 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
733 (register_program_space_data_with_cleanup)
734 (register_program_space_data, program_space_alloc_data)
735 (clear_program_space_data, set_program_space_data)
736 (program_space_data): Don't declare.
737 * progspace.c: Use DEFINE_REGISTRY.
738 (struct program_space_data, struct
739 program_space_data_registration, struct
740 program_space_data_registry, program_space_data_registry)
741 (register_program_space_data_with_cleanup)
742 (register_program_space_data, program_space_alloc_data)
743 (program_space_free_data, clear_program_space_data)
744 (set_program_space_data, program_space_data): Remove.
745 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
746 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
747 (register_objfile_data_with_cleanup, register_objfile_data)
748 (clear_objfile_data, set_objfile_data, objfile_data): Don't
750 * objfiles.c: Use DEFINE_REGISTRY.
751 (struct objfile_data, struct objfile_data_registration, struct
752 objfile_data_registry, objfile_data_registry)
753 (register_objfile_data_with_cleanup, register_objfile_data)
754 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
755 (set_objfile_data, objfile_data): Remove.
756 (_initialize_objfiles): Update.
757 * jit.c (_initialize_jit): Update.
758 * inflow.c (_initialize_inflow): Update.
759 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
760 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
761 (register_inferior_data_with_cleanup, register_inferior_data)
762 (clear_inferior_data, set_inferior_data, inferior_data): Don't
764 * inferior.c: Use DEFINE_REGISTRY.
765 (struct inferior_data, struct inferior_data_registration, struct
766 inferior_data_registry, inferior_data_registry)
767 (register_inferior_data_with_cleanup, register_inferior_data)
768 (inferior_alloc_data, inferior_free_data clear_inferior_data)
769 (set_inferior_data, inferior_data): Remove.
770 * auxv.c (_initialize_auxv): Update.
771 * ada-lang.c (_initialize_ada_language): Update.
772 * breakpoint.c (_initialize_breakpoint): Update.
773 * i386-nat.c (i386_use_watchpoints): Update.
775 2012-08-22 Tom Tromey <tromey@redhat.com>
777 * exec.c (exec_close, exec_file_attach): Update.
778 (add_to_section_table): Initialize 'key' field.
779 (add_target_sections, remove_target_sections): Add 'key' argument.
780 * exec.h (add_target_sections, remove_target_sections): Add
782 * solib.c (solib_map_sections, update_solib_list, clear_solib)
783 (reload_shared_libraries_1): Update.
784 * target.h (struct target_section) <key>: New field.
786 2012-08-22 Tom Tromey <tromey@redhat.com>
788 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
790 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
792 * symfile.c (allocate_symtab): Use host_address_to_string
793 function instead of cast of pointer to long which is not
794 compatible with x86_64-w64-mingw32 build.
796 2012-08-19 Andrew Pinski <apinski@cavium.com>
798 * mips-tdep.c (is_octeon): New function.
799 (is_octeon_bbit_op): New function.
800 (mips32_next_pc): Handle Octeon's bbit instructions.
801 (mips32_instruction_has_delay_slot): Likewise.
803 2012-08-19 Andrew Pinski <apinski@cavium.com>
805 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
808 2012-08-19 Andrew Pinski <apinski@cavium.com>
810 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
812 2012-08-19 Keith Seitz <keiths@redhat.com>
815 * c-typeprint.c (c_type_print_varspec_prefix): Pass
816 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
818 2012-08-18 Eli Zaretskii <eliz@gnu.org>
820 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
821 The typo broke "make TAGS".
823 2012-08-17 Joel Brobecker <brobecker@adacore.com>
827 2012-08-17 Keith Seitz <keiths@redhat.com>
830 * gdbtypes.c (strict_type_checking): New variable.
831 (show_strict_type_checking): New function.
832 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
833 if strict type checking is disabled.
834 (_initialize_gdbtypes): Add "check type" subcommand.
835 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
837 2012-08-17 Keith Seitz <keiths@redhat.com>
839 * language.h (type_mode): Remove.
840 (type_check): Remove.
841 (struct language_defn): Remove la_type_check.
842 (STRICT_TYPE): Remove unused macro.
843 (type_error): Remove.
844 * language.c (set_type_range_case): Renamed to ...
845 (set_range_case): ... this. Update all callers.
846 Remove type_mode/type_check.
848 (type_check): Remove.
849 (show_type_command): Remove.
850 (set_type_command): Remove.
851 (language_info): Remove type checking output.
852 (type_error): Remove unused function.
853 (range_error): Update comment.
854 (unknown_language_defn): Remove la_type_check.
855 (auto_language_defn): Likewise.
856 (local_language_defn): Likewise.
857 (_initialize_language): Remove "check type" subcommand.
858 * ada-lang.c (ada_language_defn): Remove la_type_check.
859 * c-lang.c (c_language_defn): Likewise.
860 (cplus_language_defn): Likewise.
861 (asm_language_defn): Likewise.
862 (minimal_language_defn): Likewise.
863 * d-lang.c (d_language_defn): Likewise.
864 * f-lang.c (f_language_defn): Likewise.
865 * go-lang.c (go_language_defn): Likewise.
866 * jv-lang.c (java_language_defn): Likewise.
867 * m2-lang.c (m2_language_defn): Likewise.
868 * objc-lang.c (objc_language_defn): Likewise.
869 * opencl-lang.c (opencl_language_defn): Likewise.
870 * p-lang.c (pascal_language_defn): Likewise.
872 2012-08-16 Mike Frysinger <vapier@gentoo.org>
874 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
876 2012-08-16 Joel Brobecker <brobecker@adacore.com>
878 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
880 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
881 using the regache. Use ia64_hpux_get_register_from_save_state_t
882 to access the bsp and bspstore registers if not.
884 2012-08-16 Joel Brobecker <brobecker@adacore.com>
886 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
887 * breakpoint.c (detach_breakpoints): Change pid parameter into
888 a ptid. Adjust code accordingly.
889 * infrun.c (handle_inferior_event): Delete variable child_pid.
890 Update call to detach_breakpoints to pass the child ptid for
892 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
893 assert that inferior_ptid's lwp is zero.
894 (linux_handle_extended_wait): Update call to detach_breakpoints.
895 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
898 2012-08-16 Joel Brobecker <brobecker@adacore.com>
900 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
901 parent, only call detach_breakpoints if tts.tts_event ==
904 2012-08-16 Joel Brobecker <brobecker@adacore.com>
906 * dwarf2-frame.c (dwarf2_frame_cache): Use
907 get_frame_address_in_block instead of get_frame_pc as
908 the bound for executing the frame's FDE.
910 2012-08-16 Yao Qi <yao@codesourcery.com>
912 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
913 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
914 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
915 (c_type_print_varspec_suffix): Likewise.
916 * eval.c (evaluate_subexp_standard): Likewise.
917 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
918 (f_type_print_varspec_suffix): Likewise.
919 * gdbtypes.c (is_scalar_type): Likewise.
920 (recursive_dump_type): Likewise.
921 * infcall.c (value_arg_coerce): Likewise.
922 * m2-valprint.c (m2_val_print): Likewise.
923 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
924 (pascal_type_print_varspec_suffix): Likewise.
925 (pascal_type_print_base): Likewise.
926 * p-valprint.c (pascal_val_print): Likewise.
927 (pascal_val_print): Likewise.
928 * valops.c (value_slice): Likewise.
929 * valprint.c (scalar_type_p): Likewise.
930 * valarith.c (value_bitstring_subscript): Remove.
931 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
932 Remove comment on TYPE_CODE_BITSTRING.
934 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
937 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
940 2012-08-16 Yao Qi <yao@codesourcery.com>
942 * tracepoint.c (trace_find_none_command): Remove.
943 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
945 2012-08-16 Yao Qi <yao@codesourcery.com>
947 * remote.c (handle_notification): Remove parameter 'length'.
948 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
950 2012-08-15 Keith Seitz <keiths@redhat.com>
952 * gdbtypes.c (opaque_type_resolution): Make static.
954 (overload_debug): Add missing comment.
955 (show_opaque_type_resolution): Likewise.
956 (show_overload_debug): Likewise.
957 (print_bit_vector): Remove unnecessary forward declaration.
958 (print_arg_types): Likewise.
959 (dump_fn_fieldlists): Likewise.
960 (print_cplus_stuff): Likewise.
962 2012-08-15 Tom Tromey <tromey@redhat.com>
964 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
965 (gdb_bfd_ref): Initialize new field.
966 (gdb_bfd_unref): Unref the archive BFD.
967 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
970 2012-08-15 Tom Tromey <tromey@redhat.com>
973 * python/py-bpevent.c (create_breakpoint_event_object): Update
975 * python/py-event.c (evpy_add_attribute): Update comment.
976 * python/py-exitedevent.c (create_exited_event_object): Fix
977 reference counting and error handling.
978 * python/py-newobjfileevent.c (create_new_objfile_event_object):
979 Fix reference counting.
980 * python/py-signalevent.c (create_signal_event_object): Fix
981 reference counting and error handling.
982 * python/py-stopevent.c (emit_stop_event): Fix reference
984 * python/py-threadevent.c (get_event_thread): Return a
986 * python/py-type.c (convert_field): Fix reference counting.
988 2012-08-15 Tom Tromey <tromey@redhat.com>
990 * dwarf2read.c (dwarf_decode_macro_bytes)
991 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
994 2012-08-14 Mike Frysinger <vapier@gentoo.org>
996 * infcmd.c (_initialize_infcmd): Update help text for the signal,
997 stepi, nexti, finish, next, step, jump, and continue commands.
998 * infrun.c (_initialize_infrun): Update help text for the handle
1001 2012-08-14 Doug Evans <dje@google.com>
1003 * gdbtypes.c (struct extra): Delete, unused.
1005 * gdbtypes.c: Whitespace cleanup.
1006 (address_space_name_to_int): Remove "extern" from definition.
1007 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1009 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1010 TYPE_POINTER_TYPE (type).
1012 2012-08-14 Gary Benson <gbenson@redhat.com>
1014 * solib-svr4.c (svr4_free_library_list): Use free_so.
1016 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1018 * .gitignore: Add go-exp.c.
1020 2012-08-13 Doug Evans <dje@google.com>
1022 * value.c (show_convenience): Tweak comment.
1023 (_initialize_values): Mention convenience functions in the help text
1024 for "show convenience".
1026 2012-08-13 Yao Qi <yao@codesourcery.com>
1028 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1029 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1031 * eval.c (evaluate_subexp_standard): Likewise.
1032 * expprint.c (print_subexp_standard): Likewise.
1033 (dump_subexp_body_standard): Likewise.
1034 * parse.c (operator_length_standard): Likewise.
1036 2012-08-13 Yao Qi <yao@codesourcery.com>
1038 * std-operator.def: Remove OP_BITSTRING.
1039 * breakpoint.c (watchpoint_exp_is_const): Update.
1040 * eval.c (evaluate_subexp_standard): Remove handling to
1042 * expprint.c (print_subexp_standard): Likewise.
1043 (dump_subexp_body_standard): Likewise.
1044 * parse.c (operator_length_standard): Likewise.
1045 * valops.c (value_bitstring): Remove.
1046 * value.h: Remove the declaration of 'value_bitstring'.
1048 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1050 * linespec.c (find_methods): Remove unused variables `i1' and
1052 (decode_line_full): Likewise for `arg_start'.
1054 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1056 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1057 (zlib_decompress_section): Likewise for `section_data'.
1058 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1060 2012-08-10 Doug Evans <dje@google.com>
1062 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1063 * NEWS: Document them.
1064 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1066 * python/py-type.c (typy_array_1): New function.
1067 (typy_array): Call it.
1068 (typy_vector): New function.
1069 (type_object_methods): Add "vector".
1070 * python/lib/gdb/function/__init__.py: New file.
1071 * python/lib/gdb/function/strfns.py: New file.
1073 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1075 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1076 for TYPE_FIELD_BITPOS.
1077 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1079 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1082 * common/vec.h (VEC_merge): Define.
1083 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1084 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1085 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1086 * completer.c: Include gdb_signals.h.
1087 (signal_completer): Define.
1088 * completer.h (signal_completer): Add prototype.
1089 * infcmd.c (_initialize_infcmd): Assign the command
1090 completer for "signal" to handle_completer.
1091 * infrun.c: Include completer.h.
1092 (handle_completer): Define.
1093 (_initialize_infrun): Declare a new local variable c. Store the
1094 result of add_com("handle") to it. Assign the command
1095 completer for "handle" to handle_completer.
1097 2012-08-09 Yao Qi <yao@codesourcery.com>
1099 * cli/cli-decode.c (set_cmd_prefix): New.
1100 (lookup_cmd_for_prefixlist): New.
1101 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1102 of each cmd_list_element in *prefixlist.
1103 (add_setshow_cmd_full): set_cmd_prefix.
1104 (add_alias_cmd): Likewise.
1105 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1106 Declare 'auto_boolean_enums'.
1107 * cli/cli-setshow.c: Include "observer.h".
1108 (notify_command_param_changed_p): New.
1109 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1111 (do_setshow_command): Split it to ...
1112 (do_set_command, do_show_command): ... them. New.
1113 (do_set_command): Call observer_notify_command_param_changed if
1114 notify_command_param_changed_p returns true.
1115 (cmd_show_list): Caller update.
1116 * auto-load.c (set_auto_load_cmd): Likewise.
1117 * remote.c (show_remote_cmd): Likewise.
1118 * cli/cli-setshow.h: Update declarations.
1119 * top.c (execute_command): Call do_set_command and do_show_command.
1121 * NEWS: Mention new MI notification.
1122 * mi/mi-interp.c: Declare mi_command_param_changed.
1123 (mi_interpreter_init): Attach mi_command_param_changed to
1124 observer command_param_changed.
1125 (mi_command_param_changed): New.
1126 Remove mi_suppress_breakpoint_notifications.
1127 Define global variable mi_suppress_notification.
1128 (mi_breakpoint_created): Update.
1129 (mi_breakpoint_deleted): Likewise.
1130 (mi_breakpoint_modified): Likewise.
1131 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1132 'gdb-set' and set mi_suppress_notification.
1133 * mi/mi-main.h: (mi_suppress_notification): New struct.
1135 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1136 Jan Kratochvil <jan.kratochvil@redhat.com>
1138 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1140 2012-08-09 Yao Qi <yao@codesourcery.com>
1142 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1143 (skiplist): Move it to skip.c.
1144 (init_cmd_lists): Remove code setting enablebreaklist and
1146 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1147 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1149 * gdbcmd.h: Likewise.
1150 * skip.c (_initialize_step_skip): Move 'skiplist' from
1153 2012-08-09 Yao Qi <yao@codesourcery.com>
1155 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1156 * gnu-nat.c, symfile.c: Likewise.
1158 2012-08-08 Aaron Gamble <agamble@google.com>
1160 * utils.c (prompt_for_continue_wait_time): New static global.
1161 (make_command_stats_cleanup): Initialize it.
1162 (report_command_stats): Subtract time waiting for user.
1163 (prompt_for_continue): Track time waiting for user.
1164 (defaulted_query): Track time waiting for user.
1166 2012-08-08 Doug Evans <dje@google.com>
1168 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1170 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1171 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1172 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1173 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1174 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1175 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1177 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1178 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1179 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1180 (dump_prefix_expression): Handle OP_TYPE.
1182 2012-08-08 Keith Seitz <keiths@redhat.com>
1184 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1187 2012-08-08 Doug Evans <dje@google.com>
1189 * linux-thread-db.c: #include "gdb_vecs.h".
1190 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1192 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1193 (thread_db_load_search): Use a vector to iterate over path elements.
1194 Handle text appearing after "$pdir".
1196 * gdb_string.h: Moved to ...
1197 * common/gdb_string.h: ... here.
1198 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1199 gdb_string.h and gdb_assert.h.
1201 2012-08-08 Yao Qi <yao@codesourcery.com>
1203 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1204 (tic6x_value_to_register): Likewise.
1205 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1206 and set_gdbarch_value_to_register.
1208 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1209 Jean-Marc Saffroy <saffroy@gmail.com>
1212 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1213 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1214 * gcore.c (gcore_create_callback): New function comment. Add modified
1215 parameter. Only write modified regions. Set SEC_READONLY exactly
1216 according to MODIFIED.
1217 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1218 the passed modified value to FUNC.
1219 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1220 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1221 first. New variables modified and has_anonymous. Parse the lines of
1222 smaps file. Add the passed MODIFIED value to FUNC.
1223 * procfs.c (find_memory_regions_callback): Add the passed modified
1226 2012-08-06 Tom Tromey <tromey@redhat.com>
1228 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1229 (dwarf2_frame_cache): Use it.
1230 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1231 cache initialization constraint.
1233 2012-08-06 Tom Tromey <tromey@redhat.com>
1236 * varobj.c (update_dynamic_varobj_children): Don't call
1239 2012-08-06 Tom Tromey <tromey@redhat.com>
1242 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1244 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1246 * NEWS: New entry for 'cd' default parameters.
1247 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1249 2012-08-03 Tom Tromey <tromey@redhat.com>
1251 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1254 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1256 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1257 to attempting lseek/write.
1258 (inf_child_fileio_pread): Likewise for pread.
1260 2012-08-02 Yao Qi <yao@codesourcery.com>
1262 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1263 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1264 add_setshow_zinteger_cmd.
1265 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1266 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1267 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1268 instead of add_setshow_zinteger_cmd.
1269 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1270 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1271 instead of add_setshow_zinteger_cmd.
1272 * frame.c (frame_debug): Add 'unsigned'.
1273 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1274 add_setshow_zinteger_cmd.
1275 * frame.h: Update the declaration of 'frame_debug'.
1276 * gdbtypes.c (overload_debug): Add 'unsigned'.
1277 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1278 add_setshow_zinteger_cmd.
1279 * inferior.h: Update declaration of 'debug_infrun'.
1280 * infrun.c (debug_infrun): Add 'unsigned'.
1281 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1282 add_setshow_zinteger_cmd.
1283 * jit.c (jit_debug): Add 'unsigned'.
1284 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1285 add_setshow_zinteger_cmd.
1286 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1287 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1288 instead of add_setshow_zinteger_cmd.
1289 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1290 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1291 add_setshow_zinteger_cmd.
1292 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1293 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1294 instead of add_setshow_zinteger_cmd.
1295 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1296 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1297 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1298 intead of add_setshow_zinteger_cmd.
1299 * mips-tdep.c (mips_debug): Add 'unsigned'.
1300 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1301 instead of add_setshow_zinteger_cmd.
1302 * monitor.c (monitor_debug): Add 'unsigned'.
1303 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1304 add_setshow_zinteger_cmd.
1305 * observer.c (observer_debug): Add 'unsigned'.
1306 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1307 add_setshow_zinteger_cmd.
1308 * parse.c (expressiondebug): Add 'unsigned'.
1309 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1310 add_setshow_zinteger_cmd.
1311 * record.c (record_debug): Add 'unsigned'.
1312 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1313 add_setshow_zinteger_cmd.
1314 * record.h: Update the declaration of 'record_debug'.
1315 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1316 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1317 add_setshow_zinteger_cmd.
1318 * serial.c (global_serial_debug_p): Add 'unsigned'.
1319 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1320 add_setshow_zinteger_cmd.
1321 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1322 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1323 add_setshow_zinteger_cmd.
1324 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1325 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1326 add_setshow_zinteger_cmd.
1327 * target.c (targetdebug): Add 'unsigned'.
1328 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1329 add_setshow_zinteger_cmd.
1330 * valops.c (overload_debug): Add 'unsigned'.
1331 * varobj.c (varobjdebug): Add 'unsigned'.
1332 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1333 add_setshow_zinteger_cmd.
1334 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1335 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1336 instead of add_setshow_zinteger_cmd.
1338 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1339 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1340 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1341 instead of add_setshow_zinteger_cmd.
1342 * gdbarch.c, gdbarch.h: Re-generated.
1344 2012-08-02 Yao Qi <yao@codesourcery.com>
1346 * nto-tdep.c: Don't include cli/cli-decode.h and
1348 (_initialize_nto_tdep): Remove.
1349 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1351 Remove macro nto_internal_debugging.
1353 2012-08-01 Richard Henderson <rth@redhat.com>
1355 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1356 (mep-*-*) [gdb_target_obs]: Likewise.
1358 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1360 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1361 linux_get_siginfo_type.
1363 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1365 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1367 (call_function_by_hand) <ON_STACK>: Call write_memory with
1368 gdbarch_breakpoint_from_pc, if possible.
1369 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1372 2012-07-31 Yao Qi <yao@codesourcery.com>
1374 * tracepoint.c: Add 'static' for some variables.
1376 2012-07-31 Yao Qi <yao@codesourcery.com>
1378 * go32-nat.c: Declare _initialize_go32_nat.
1379 * ser-go32.c: Declare _initialize_ser_dos.
1380 * top.c (do_chdir_cleanup): Add 'static'.
1382 2012-07-30 Keith Seitz <keiths@redhat.com>
1384 * linespec.c (linespec_lex_number): A number followed
1385 by quotes is a valid number, too.
1387 2012-07-30 Tom Tromey <tromey@redhat.com>
1389 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1391 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1393 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1394 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1396 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1398 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1399 invalid or reevaluated to prevent prevent references to possibly
1400 delete'd type objects being left in the varobj.
1402 2012-07-27 Tom Tromey <tromey@redhat.com>
1403 Jan Kratochvil <jan.kratochvil@redhat.com>
1405 * copying.awk: Print buffer-read-only and vi ro markers.
1406 * copying.c: Rebuild.
1407 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1408 * gdbarch.c, gdbarch.h: Rebuild.
1409 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1410 buffer-read-only and vi ro markers.
1411 * features/arm-with-iwmmxt.c: Rebuild.
1412 * features/arm-with-m-fpa-layout.c: Rebuild.
1413 * features/arm-with-m-vfp-d16.c: Rebuild.
1414 * features/arm-with-m.c: Rebuild.
1415 * features/arm-with-neon.c: Rebuild.
1416 * features/arm-with-vfpv2.c: Rebuild.
1417 * features/arm-with-vfpv3.c: Rebuild.
1418 * features/i386/amd64-avx-linux.c: Rebuild.
1419 * features/i386/amd64-avx.c: Rebuild.
1420 * features/i386/amd64-linux.c: Rebuild.
1421 * features/i386/amd64.c: Rebuild.
1422 * features/i386/i386-avx-linux.c: Rebuild.
1423 * features/i386/i386-avx.c: Rebuild.
1424 * features/i386/i386-linux.c: Rebuild.
1425 * features/i386/i386-mmx-linux.c: Rebuild.
1426 * features/i386/i386-mmx.c: Rebuild.
1427 * features/i386/i386.c: Rebuild.
1428 * features/i386/x32-avx-linux.c: Rebuild.
1429 * features/i386/x32-avx.c: Rebuild.
1430 * features/i386/x32-linux.c: Rebuild.
1431 * features/i386/x32.c: Rebuild.
1432 * features/mips-dsp-linux.c: Rebuild.
1433 * features/mips-linux.c: Rebuild.
1434 * features/mips64-dsp-linux.c: Rebuild.
1435 * features/mips64-linux.c: Rebuild.
1436 * features/rs6000/powerpc-32.c: Rebuild.
1437 * features/rs6000/powerpc-32l.c: Rebuild.
1438 * features/rs6000/powerpc-403.c: Rebuild.
1439 * features/rs6000/powerpc-403gc.c: Rebuild.
1440 * features/rs6000/powerpc-405.c: Rebuild.
1441 * features/rs6000/powerpc-505.c: Rebuild.
1442 * features/rs6000/powerpc-601.c: Rebuild.
1443 * features/rs6000/powerpc-602.c: Rebuild.
1444 * features/rs6000/powerpc-603.c: Rebuild.
1445 * features/rs6000/powerpc-604.c: Rebuild.
1446 * features/rs6000/powerpc-64.c: Rebuild.
1447 * features/rs6000/powerpc-64l.c: Rebuild.
1448 * features/rs6000/powerpc-7400.c: Rebuild.
1449 * features/rs6000/powerpc-750.c: Rebuild.
1450 * features/rs6000/powerpc-860.c: Rebuild.
1451 * features/rs6000/powerpc-altivec32.c: Rebuild.
1452 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1453 * features/rs6000/powerpc-altivec64.c: Rebuild.
1454 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1455 * features/rs6000/powerpc-cell32l.c: Rebuild.
1456 * features/rs6000/powerpc-cell64l.c: Rebuild.
1457 * features/rs6000/powerpc-e500.c: Rebuild.
1458 * features/rs6000/powerpc-e500l.c: Rebuild.
1459 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1460 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1461 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1462 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1463 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1464 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1465 * features/rs6000/powerpc-vsx32.c: Rebuild.
1466 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1467 * features/rs6000/powerpc-vsx64.c: Rebuild.
1468 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1469 * features/rs6000/rs6000.c: Rebuild.
1470 * features/s390-linux32.c: Rebuild.
1471 * features/s390-linux32v1.c: Rebuild.
1472 * features/s390-linux32v2.c: Rebuild.
1473 * features/s390-linux64.c: Rebuild.
1474 * features/s390-linux64v1.c: Rebuild.
1475 * features/s390-linux64v2.c: Rebuild.
1476 * features/s390x-linux64.c: Rebuild.
1477 * features/s390x-linux64v1.c: Rebuild.
1478 * features/s390x-linux64v2.c: Rebuild.
1479 * features/tic6x-c62x-linux.c: Rebuild.
1480 * features/tic6x-c62x.c: Rebuild.
1481 * features/tic6x-c64x-linux.c: Rebuild.
1482 * features/tic6x-c64x.c: Rebuild.
1483 * features/tic6x-c64xp-linux.c: Rebuild.
1484 * features/tic6x-c64xp.c: Rebuild.
1486 2012-07-27 Tom Tromey <tromey@redhat.com>
1488 * c-exp.y (classify_name): Avoid assignment in condition.
1490 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1492 * amd64-windows-tdep.c: Include "frame.h".
1493 (amd64_windows_skip_trampoline_code): New function.
1494 (amd64_windows_init_abi): Add trampoline registration.
1496 2012-07-27 Yao Qi <yao@codesourcery.com>
1498 * tracepoint.c (cur_traceframe_number): Remove.
1499 (set_tfile_traceframe): Remove.
1500 (tfile_trace_find, tfile_fetch_registers): Update callers.
1501 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1502 (tfile_open, tfile_trace_find): Likewise.
1504 2012-07-27 Yao Qi <yao@codesourcery.com>
1506 * thread.c (switch_to_thread): Don't call registers_changed.
1508 2012-07-26 Tom Tromey <tromey@redhat.com>
1510 * Makefile.in (SFILES): Remove objc-exp.y.
1511 (YYFILES): Remove objc-exp.c.
1512 (YYOBJ): Remove objc-exp.o.
1513 (local-maintainer-clean): Don't mention objc-exp.c.
1514 * c-exp.y: Include objc-lang.h.
1515 (%union) <class>: New field.
1516 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1517 (exp): Clone subscript production for OBJC_LBRAC. Add various
1518 Objective C productions.
1519 (msglist, msgarglist, msgarg): New productions.
1520 (array_mod, func_mod, operator): Clone productions for
1522 (parse_string_or_char): Handle '@' strings.
1523 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1524 (classify_name): Check la_name_of_this. Recognize ObjC class
1526 * objc-exp.y: Remove.
1527 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1528 * objc-lang.h (objc_parse, objc_error): Don't declare.
1530 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1532 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1534 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1536 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1539 2012-07-26 Tom Tromey <tromey@redhat.com>
1541 * copying.c: Rebuild.
1542 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1545 2012-07-26 Tom Tromey <tromey@redhat.com>
1547 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1549 (print_objfile_statistics): Likewise.
1550 (maintenance_print_symbols): Likewise.
1551 (maintenance_print_msymbols): Likewise.
1552 (maintenance_print_objfiles): Likewise.
1553 * psymtab.c (print_partial_symbols): Call QUIT.
1554 (maintenance_print_psymbols): Likewise. Don't modify
1556 * copying.c (show_copying_command): Don't modify immediate_quit.
1557 (show_warranty_command): Likewise.
1558 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1560 2012-07-26 Keith Seitz <keiths@redhat.com>
1562 * linespec.c (linespec_lexer_lex_number): The input
1563 is also a valid number if the next character is a comma
1566 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1568 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1571 2012-07-26 Tristan Gingold <gingold@adacore.com>
1573 * machoread.c: Include gdb_bfd.h.
1575 2012-07-26 Tristan Gingold <gingold@adacore.com>
1577 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1580 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1582 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1584 (dwarf2_evaluate_loc_desc): Likewise.
1585 (dwarf2_loc_desc_needs_frame): Likewise.
1586 (locexpr_describe_location_1): Likewise.
1587 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1589 (struct dwarf2_loclist_baton): Likewise.
1590 * dwarf2read.c (struct dwarf_block): Likewise.
1591 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1592 (decode_locdesc): Expand SIZE and I to size_t.
1594 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1596 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1598 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1600 * doublest.c (convert_doublest_to_floatformat): If the exponent
1601 is too small, treat the value as zero. If the exponent is too
1602 large, treat the value as infinity.
1604 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1606 * configure.ac: Add --enable-lmcheck configure option.
1607 * configure: Regenerate.
1609 2012-07-25 Tom Tromey <tromey@redhat.com>
1611 * NEWS: Mention maint info bfds.
1612 * gdb_bfd.c (all_bfds): New global.
1613 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1614 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1617 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1619 * configure.tgt: Add v850*-*-rtems*.
1621 2012-07-25 Tom Tromey <tromey@redhat.com>
1623 * macrotab.c (macro_bcache_str): Remove cast.
1625 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1627 * linespec.c (linespec_lexer_lex_number): Update comments,
1628 change the return and add check to make sure the input is
1629 the decimal numbers.
1630 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1631 false, call linespec_lexer_lex_string.
1633 2012-07-24 Tom Tromey <tromey@redhat.com>
1635 * symfile.c (symbol_file_add): Don't open BFD twice.
1637 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1639 * breakpoint.c (create_breakpoint): Store condition for pending
1642 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1644 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1645 (m68k_return_value): Handle complex types like structures.
1646 (m68k_svr4_return_value): Likewise.
1648 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1650 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1651 parameters to bfd_get_section_name.
1653 2012-07-24 Yao Qi <yao@codesourcery.com>
1655 * cli/cli-setshow.c: Handle case 'var_uinteger'
1656 and 'var_zuninteger' together. Handle case 'var_integer' and
1657 'var_zinteger' together.
1659 2012-07-23 Keith Seitz <keiths@redhat.com>
1661 * linespec.c (convert_linespec_to_sal): Don't add
1662 any symbols to the result vector if symbol_to_sal
1665 2012-07-23 Keith Seitz <keiths@redhat.com>
1667 * linespec.c (decode_objc): Record the function name
1670 2012-07-23 Tom Tromey <tromey@redhat.com>
1672 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1674 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1675 (map_vmap): Acquire a reference to the BFD.
1677 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1679 * p-valprint.c (pascal_object_print_value): Replace potentially
1680 unsafe alloca with xmalloc/xfree.
1681 * valops.c (search_struct_method): Likewise.
1683 2012-07-23 Tom Tromey <tromey@redhat.com>
1685 * solib-svr4.c (enable_break): Update.
1686 * bfd-target.h (target_bfd_reopen): Update documentation.
1688 2012-07-23 Tom Tromey <tromey@redhat.com>
1690 * symfile.c (separate_debug_file_exists): Update.
1691 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1692 (reread_symbols): Update.
1693 * elfread.c (build_id_verify): Update.
1694 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1695 bfd_open_maybe_remote.
1697 2012-07-23 Tom Tromey <tromey@redhat.com>
1699 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1701 2012-07-23 Tom Tromey <tromey@redhat.com>
1703 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1705 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1707 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1708 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1710 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1711 * objfiles.c (allocate_objfile): Acquire a new reference.
1712 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1713 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1714 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1715 a cleanup for 'nbfd'.
1716 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1718 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1719 make a cleanup for 'abfd'.
1720 (symbol_file_add): Make a BFD cleanup.
1722 2012-07-23 Tom Tromey <tromey@redhat.com>
1724 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1725 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1726 * corelow.c (core_open): Use gdb_bfd_fopen.
1727 * dsrec.c (load_srec): Use gdb_bfd_openr.
1728 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1729 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1730 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1731 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1732 (gdb_bfd_fdopenr): New functions.
1733 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1734 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1735 (gdb_bfd_fdopenr): Declare.
1736 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1737 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1738 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1739 gdb_bfd_openr_next_archived_file.
1740 (macho_check_dsym): Use gdb_bfd_openr.
1741 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1742 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1743 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1744 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1746 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1747 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1748 gdb_bfd_openr_next_archived_file.
1749 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1751 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1753 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1754 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1755 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1756 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1757 (symfile_bfd_open): Use gdb_bfd_fopen.
1758 (generic_load): Use gdb_bfd_openr.
1759 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1761 2012-07-23 Tom Tromey <tromey@redhat.com>
1763 * bfd-target.c (target_bfd_reopen): Update.
1764 * cli/cli-dump.c (bfd_openr_with_cleanup)
1765 (bfd_openw_with_cleanup): Update.
1766 * corelow.c (core_open): Update.
1767 * dsrec.c (load_srec): Update.
1768 * exec.c (exec_file_attach): Update.
1769 * gcore.c (create_gcore_bfd): Update.
1770 * gdb_bfd.c (gdb_bfd_ref): Return void.
1771 (gdb_bfd_open): Update.
1772 * gdb_bfd.h (gdb_bfd_ref): Return void.
1774 * jit.c (jit_bfd_try_read_symtab): Update.
1775 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1776 * machoread.c (macho_symfile_read_all_oso): Update.
1777 (macho_check_dsym): Update.
1778 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1779 * remote-m32r-sdi.c (m32r_load): Update.
1780 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1781 * rs6000-nat.c (add_vmap): Update.
1782 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1784 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1785 * solib-spu.c (spu_bfd_open): Update.
1786 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1787 * spu-linux-nat.c (spu_bfd_open): Update.
1788 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1789 (generic_load): Update.
1790 * windows-nat.c (windows_make_so): Update.
1792 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1794 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1796 2012-07-20 Jeff Kenton <jkenton@tilera.com>
1798 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1799 SIGTRAMP_FRAME unwinding.
1801 2012-07-20 Doug Evans <dje@google.com>
1803 * NEWS: Document new options "set/show use-deprecated-index-sections",
1804 and delete reference to --use-deprecated-index-sections.
1805 * symfile.h (use_deprecated_index_sections): Delete.
1806 * dwarf2read.c (use_deprecated_index_sections): Make static.
1807 (read_index_from_section): Update wording of how to load
1808 deprecated index sections.
1809 (_initialize_dwarf2_read): New options
1810 "set/show use-deprecated-index-sections".
1811 * main.c (captured_main): Delete --use-deprecated-index-sections.
1813 2012-07-20 Pedro Alves <palves@redhat.com>
1818 * infrun.c (handle_inferior_event) <new thread>: Don't special
1819 case minus_one_ptid.
1820 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1821 * linux-thread-db.c (thread_get_info_callback): Don't return early
1822 if the thread is zombie.
1823 (thread_from_lwp): Change return type to void. Rewrite stale
1825 (attach_thread): Don't return early if the thread is zombie,
1826 instead set its "dying" flag.
1827 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1828 (find_new_threads_callback): Don't return early if the thread is
1831 2012-07-20 Pedro Alves <palves@redhat.com>
1833 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1834 * target.c (target_wait): Likewise.
1835 (str_comma_list_concat_elem, do_option, target_options_to_string):
1837 * target.h (target_options_to_string): Declare.
1839 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1840 Tom Tromey <tromey@redhat.com>
1842 * dwarf2read.c (dwarf_decode_macros)
1843 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1844 DW_MACRO_GNU_transparent_include_alt>: New cases.
1845 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1846 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1848 2012-07-20 Tom Tromey <tromey@redhat.com>
1850 * dwarf2read.c (try_open_dwo_file): Don't call
1851 gdb_bfd_stash_filename.
1853 2012-07-20 Pedro Alves <palves@redhat.com>
1855 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1856 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1857 (i386_process_record): Tweak description comments.
1859 2012-07-20 Pedro Alves <palves@redhat.com>
1861 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1862 (i386_process_record): Use record_read_memory.
1863 * record.c (record_read_memory): New function.
1864 (record_arch_list_add_mem, record_exec_insn): Use
1866 * record.h (record_read_memory): Declare.
1868 2012-07-20 Yao Qi <yao@codesourcery.com>
1870 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1873 2012-07-19 Pedro Alves <palves@redhat.com>
1875 * record.c (record_resume): Ask the target beneath to report all
1878 2012-07-19 Doug Evans <dje@google.com>
1880 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1881 there's no section at address zero.
1882 (dwarf2_record_block_ranges): Ditto.
1884 2012-07-19 Yao Qi <yao@codesourcery.com>
1886 * command.h, remote.c: Fix a typo in comment.
1888 2012-07-19 Tom Tromey <tromey@redhat.com>
1891 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1892 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1893 OP_DECLTYPE>: New cases.
1894 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1895 (type_exp): Add new productions.
1896 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1898 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1900 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1901 OP_DECLTYPE>: New case.
1902 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1904 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1905 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1907 2012-07-19 Tom Tromey <tromey@redhat.com>
1909 * c-exp.y (enum token_flags): New.
1910 (struct token) <cxx_only>: Remove.
1912 (tokentab3, tokentab2, ident_tokens): Update.
1913 (lex_one_token): Update. Handle FLAG_SHADOW.
1915 2012-07-19 Tom Tromey <tromey@redhat.com>
1917 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1918 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1919 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1920 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1921 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1922 type_exp production where appropriate.
1923 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1924 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1925 <UNOP_MEMVAL_TYPE>: New case.
1926 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1927 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1928 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1929 <UNOP_MEMVAL_TYPE>: New case.
1930 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1931 UNOP_REINTERPRET_CAST>: Update.
1932 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1933 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1934 UNOP_REINTERPRET_CAST>: Update.
1935 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1936 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1937 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1940 2012-07-19 Yao Qi <yao@codesourcery.com>
1941 Jan Kratochvil <jan.kratochvil@redhat.com>
1943 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1944 and case 'var_optional_filename' together.
1945 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1946 instead of add_setshow_optional_filename_cmd for setshow command
1947 'args'. Set completer for 'set args'.
1949 2012-07-18 Doug Evans <dje@google.com>
1951 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1952 * common/gdb_vecs.c: New file, contents from utils.c.
1953 * common/host-defs.h: New file, contents from defs.h.
1954 * utils.h: New file, contents from defs.h.
1955 * defs.h: Move all declarations of objects defined in utils.c
1956 to utils.h (except QUIT() and related).
1957 #include "utils.h", "host-defs.h".
1958 * probe.h (probe_p): Move here from gdb_vecs.h.
1959 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1960 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1961 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1962 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1963 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1964 (COMMON_OBS): Add gdb_vecs.o.
1965 (gdb_vecs.o): New rule.
1967 2012-07-18 Keith Seitz <keiths@redhat.com>
1969 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1970 parameter. If non-zero, use SYMNAME as the canonical name
1973 (convert_linespec_to_sals): Use add_sal_to_sals for
1975 (decode_line_full): No need to "fill in missing canonical names"
1976 anymore. Simply make cleanups for the allocated names.
1978 2012-07-18 Keith Seitz <keiths@redhat.com>
1980 * linespec.c (struct linespec): Constify expression,
1981 source_filename, function_name, and label_name.
1982 (symbol_not_found_error): Make all parameters const.
1983 (linespec_parser_delete): No need to check for NULL
1984 when using xfree. Cast const char * to char * for xfree.
1986 2012-07-18 Keith Seitz <keiths@redhat.com>
1988 * breakpoint.c (invalid_thread_id_error): New function.
1989 (find_condition_and_thread): Use invalid_thread_id_error.
1990 (watch_command_1): Likewise.
1992 2012-07-18 Tom Tromey <tromey@redhat.com>
1994 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1995 * contrib/cc-with-tweaks.sh: New file.
1997 2012-07-18 Tom Tromey <tromey@redhat.com>
1999 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2000 (locate_dwz_sections): Recognize .gdb_index.
2001 (create_cus_from_index_list): New function.
2002 (create_cus_from_index): Use it. Handle .dwz data.
2003 (read_index_from_section): New function, extracted from
2005 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2008 2012-07-18 Tom Tromey <tromey@redhat.com>
2010 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2011 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2012 <is_dwz>: New field.
2013 (struct dwz_file): New.
2014 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2015 (locate_dwz_sections, dwarf2_get_dwz_file)
2016 (get_abbrev_section_for_cu): New functions.
2017 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2018 (read_and_check_type_unit_head): Add abbrev_section argument.
2019 (create_debug_types_hash_table): Update.
2020 (init_cutu_and_read_dies): Use proper abbrev section.
2021 (init_cutu_and_read_dies_no_follow): Likewise.
2022 (set_partial_user): Do nothing if PST==NULL.
2023 (read_comp_units_from_section): New function.
2024 (create_all_comp_units): Use it.
2025 (scan_partial_symbols, partial_die_parent_scope): Update.
2026 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2027 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2028 (find_partial_die): Add offset_in_dwz argument. Update.
2029 (guess_partial_die_structure_name, fixup_partial_die): Update.
2030 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2031 DW_FORM_GNU_strp_alt.
2032 (read_indirect_string_from_dwz): New function.
2033 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2034 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2035 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2036 (follow_die_offset): Add offset_in_dwz argument.
2037 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2038 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2039 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2040 Handle new macro forms.
2041 (dwarf_decode_macros): Update.
2042 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2043 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2044 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2045 (create_debug_types_hash_table): Use correct abbrev section.
2046 (get_debug_line_section): New function.
2047 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2048 (process_full_comp_unit): Pass 'required' argument to
2049 end_symtab_get_static_block.
2050 * buildsym.h (end_symtab_get_static_block): Update.
2051 * buildsym.c (end_symtab_get_static_block): Add 'required'
2053 (end_symtab, end_expandable_symtab): Update.
2055 2012-07-18 Tom Tromey <tromey@redhat.com>
2057 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2059 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2060 (zlib_decompress_section): Remove.
2061 (dwarf2_read_section): Use gdb_bfd_map_section.
2062 (munmap_section_buffer): Remove.
2063 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2064 munmap_section_buffer.
2065 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2066 (struct gdb_bfd_section_data): New.
2067 (free_one_bfd_section): New function.
2068 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2069 (get_section_descriptor, zlib_decompress_section)
2070 (gdb_bfd_map_section): New functions.
2071 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2073 2012-07-18 Tom Tromey <tromey@redhat.com>
2075 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2077 2012-07-18 Tom Tromey <tromey@redhat.com>
2079 * gdb_bfd.c (struct gdb_bfd_data): New.
2080 (gdb_bfd_cache): New global.
2081 (struct gdb_bfd_cache_search): New.
2082 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2083 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2084 * gdb_bfd.h (gdb_bfd_open): Declare.
2086 2012-07-18 Tom Tromey <tromey@redhat.com>
2088 * utils.c (make_cleanup_bfd_unref): Rename from
2089 make_cleanup_bfd_close.
2090 * defs.h (make_cleanup_bfd_unref): Rename from
2091 make_cleanup_bfd_close.
2092 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2093 (bfd_openw_with_cleanup): Update.
2094 * corelow.c (core_open): Update.
2095 * dsrec.c (load_srec): Update.
2096 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2097 * remote-m32r-sdi.c (m32r_load): Update.
2098 * remote-mips.c (mips_load_srec): Update.
2099 (pmon_load_fast): Update.
2100 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2102 (darwin_bfd_open): Update.
2103 * solib.c (solib_bfd_fopen): Update.
2104 * symfile-mem.c (symbol_file_add_from_memory): Update.
2105 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2106 (symfile_bfd_open): Update.
2107 (generic_load): Update.
2109 2012-07-18 Tom Tromey <tromey@redhat.com>
2111 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2112 (pmon_load_fast): Likewise.
2113 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2114 (m32r_upload_command): Likewise.
2115 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2116 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2117 Use make_cleanup_bfd_close.
2119 2012-07-18 Tom Tromey <tromey@redhat.com>
2121 * symfile.c (symfile_bfd_open): Don't copy name. Call
2122 gdb_bfd_stash_filename.
2123 (load_command): Open the new BFD before freeing the old.
2124 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2125 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2126 Call gdb_bfd_stash_filename.
2127 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2128 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2129 gdb_bfd_stash_filename.
2130 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2131 Free found_pathname.
2132 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2133 gdb_bfd_stash_filename.
2134 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2135 * machoread.c (macho_add_oso_symfile): Call
2136 gdb_bfd_stash_filename.
2137 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2138 gdb_bfd_stash_filename.
2139 (macho_check_dsym): Don't copy filename. Call
2140 gdb_bfd_stash_filename.
2141 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2142 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2143 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2144 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2145 * exec.c (exec_close): Don't free the BFD's filename.
2146 (exec_file_attach): Don't copy the filename. Call
2147 gdb_bfd_stash_filename.
2148 * corelow.c (core_close): Don't free the BFD's filename.
2149 (core_open): Call gdb_bfd_stash_filename.
2150 * corefile.c (reopen_exec_file): Remove #if 0 code.
2151 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2153 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2155 2012-07-18 Tom Tromey <tromey@redhat.com>
2157 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2159 (free_dwo_file): Use gdb_bfd_unref.
2160 * cli/cli-dump.c: Include gdb_bfd.h.
2161 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2162 (bfd_openr_with_cleanup): Likewise.
2163 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2165 * utils.c: Include gdb_bfd.h.
2166 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2167 * symfile.c: Include gdb_bfd.h.
2168 (separate_debug_file_exists): Use gdb_bfd_unref.
2169 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2170 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2171 (generic_load): Use gdb_bfd_ref.
2172 (reread_symbols): Use gdb_bfd_unref.
2173 * symfile-mem.c: Include gdb_bfd.h.
2174 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2175 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2176 * solib.c: Include gdb_bfd.h.
2177 (solib_bfd_fopen): Use gdb_bfd_ref.
2178 (solib_bfd_open): Use gdb_bfd_unref.
2179 (free_so_symbols): Use gdb_bfd_unref.
2180 (reload_shared_libraries_1): Use gdb_bfd_unref.
2181 * solib-spu.c: Include gdb_bfd.h.
2182 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2183 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2185 * solib-frv.c: Include gdb_bfd.h.
2186 (enable_break2): Use gdb_bfd_unref.
2187 * solib-dsbt.c: Include gdb_bfd.h.
2188 (enable_break2): Use gdb_bfd_unref.
2189 * solib-darwin.c: Include gdb_bfd.h.
2190 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2192 (darwin_bfd_open): Use gdb_bfd_unref.
2193 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2194 * remote-mips.c: Include gdb_bfd.h.
2195 (mips_load_srec): Use gdb_bfd_ref.
2196 (pmon_load_fast): Use gdb_bfd_ref.
2197 * remote-m32r-sdi.c: Include gdb_bfd.h.
2198 (m32r_load): Use gdb_bfd_ref.
2199 * record.c: Include gdb_bfd.h.
2200 (record_save_cleanups): Use gdb_bfd_unref.
2201 (cmd_record_save): Use gdb_bfd_unref.
2202 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2204 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2205 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2206 * objfiles.c: Include gdb_bfd.h.
2207 (free_objfile): Use gdb_bfd_unref.
2208 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2210 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2211 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2212 (macho_check_dsym): Likewise.
2213 * m32r-rom.c: Include gdb_bfd.h.
2214 (m32r_load): Use gdb_bfd_ref.
2215 (m32r_upload_command): Use gdb_bfd_ref.
2216 * jit.c: Include gdb_bfd.h.
2217 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2218 * gdb_bfd.h: New file.
2219 * gdb_bfd.c: New file.
2220 * gcore.c: Include gdb_bfd.h.
2221 (create_gcore_bfd): Use gdb_bfd_ref.
2222 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2223 (gcore_command): Use gdb_bfd_unref.
2224 * exec.c: Include gdb_bfd.h.
2225 (exec_close): Use gdb_bfd_unref.
2226 (exec_close_1): Use gdb_bfd_unref.
2227 (exec_file_attach): Use gdb_bfd_ref.
2228 * elfread.c: Include gdb_bfd.h.
2229 (build_id_verify): Use gdb_bfd_unref.
2230 * dsrec.c: Include gdb_bfd.h.
2231 (load_srec): Use gdb_bfd_ref.
2232 * corelow.c: Include gdb_bfd.h.
2233 (core_close): Use gdb_bfd_unref.
2234 (core_open): Use gdb_bfd_ref.
2235 * bfd-target.c: Include gdb_bfd.h.
2236 (target_bfd_xclose): Use gdb_bfd_unref.
2237 (target_bfd_reopen): Use gdb_bfd_ref.
2238 * Makefile.in (SFILES): Add gdb_bfd.c.
2239 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2240 (COMMON_OBS): Add gdb_bfd.o.
2242 2012-07-18 Keith Seitz <keiths@redhat.com>
2244 * breakpoint.c (find_condition_and_thread): Initialize
2246 (create_breakpiont): find_condition_and_thread will now
2247 initialize COND_STRING, THREAD, and REST (and TASK).
2248 (addr_string_to_sals): Likewise.
2250 2012-07-18 Pedro Alves <palves@redhat.com>
2252 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2253 Pull the single step breakpoints out of the target.
2255 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2257 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2258 * stap-probe.c (compile_probe_arg): Likewise.
2260 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2262 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2263 (elf_compile_to_ax): Likewise.
2264 * infrun.c (insert_exception_resume_from_probe): Likewise.
2265 (check_exception_resume): Remove `objfile' variable.
2266 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2267 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2268 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2269 (compare_entries): Rename to...
2270 (compare_probes): ...this. Adjust function to work with
2271 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2273 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2275 (print_ui_out_info): Adjust argument to be `struct probe *'.
2276 (info_probes_for_ops): Adjust internal computations to use
2278 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2279 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2280 gen_info_probes_table_values>: Remove `objfile' argument.
2281 (struct probe) <objfile>: New field.
2282 (find_probe_by_pc): Remove `objfile' argument.
2283 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2284 (stap_get_probe_argument_count): Likewise.
2285 (stap_get_arg): Likewise.
2286 (stap_evaluate_probe_argument): Likewise.
2287 (stap_compile_to_ax): Likewise.
2288 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2289 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2290 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2291 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2292 sym_compile_to_ax>: Likewise.
2294 2012-07-18 Terry Guo <terry.guo@arm.com>
2297 * defs.h (GDB_MI_MSG_WIDTH): New.
2298 * ser_base (ser_base_read_error_fd): New function.
2299 (do_ser_base_readchar): Poll error file descriptor as well as
2301 (generic_readchar): Refactor error handling.
2303 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2305 * NEWS: Create a new section for the next release branch.
2306 Rename the section of the current branch, now that it has
2309 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2311 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2312 * version.in: Bump version to 7.5.50.20120718-cvs.
2314 2012-07-17 Keith Seitz <keiths@redhat.com>
2316 * linespec.c (linespec_parse_line_offset): Make parameter
2319 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2322 * f-valprint.c (info_common_command): New variable frame_id.
2323 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2324 * printcmd.c (print_variable_and_value): Extend function comment.
2325 Add comment for invalidated FRAME.
2326 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2327 FI form FRAME_ID after each print_frame_local_vars.
2328 (struct print_variable_and_value_data): Change frame to frame_id.
2329 (do_print_variable_and_value): New variable frame, initialize it from
2330 p->frame_id. Add comment for invalidated FRAME.
2331 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2332 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2333 for invalidated FRAME.
2335 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2336 Pedro Alves <palves@redhat.com>
2338 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2341 2012-07-16 Tom Tromey <tromey@redhat.com>
2343 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2345 2012-07-15 Doug Evans <dje@google.com>
2347 * dwarf2read.c (stmt_list_hash): New struct.
2348 (type_unit_group): Embed "per_cu" member, remove pointer.
2349 New union member "t", move member "tus" into it, all uses updated.
2350 New member "hash", replaces member "line_offset, all uses updated.
2351 (quick_file_names): Replace member "offset" with "hash", all uses
2353 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2354 (hash_file_name_entry, eq_file_name_entry): Call them.
2355 (hash_type_unit_group, eq_type_unit_group): Ditto.
2356 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2357 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2358 (dw2_get_file_names): Update.
2359 (create_type_unit_group): Replace "per_cu" arg with "cu".
2360 All callers updated. Fix "quick" (.gdb_index) handling.
2361 (get_type_unit_group): Replace "per_cu" arg with "cu".
2362 All callers updated.
2363 (build_type_unit_groups): Don't reset tu_stats.
2365 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2366 "tab_cur_size". Change member "tab" to be a htab_t.
2367 (create_filename_seen_cache): Update.
2368 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2369 (filename_seen): Update.
2371 2012-07-13 Doug Evans <dje@google.com>
2373 * symtab.c (filename_seen): Update comment.
2375 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2376 Doug Evans <dje@google.com>
2378 * buildsym.c (end_symtab_1): Split it to ...
2379 (end_symtab_get_static_block): ... this ...
2380 (end_symtab_from_static_block): ... and this function.
2381 (end_symtab, end_expandable_symtab): Call them.
2382 * buildsym.h (end_symtab_get_static_block)
2383 (end_symtab_from_static_block): New declarations.
2384 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2385 Set its valid CU ranges.
2387 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2389 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2390 DW_OP_GNU_parameter_ref.
2392 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2394 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2395 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2397 2012-07-13 Doug Evans <dje@google.com>
2399 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2400 (filename_seen_cache): New struct.
2401 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2402 (create_filename_seen_cache): New function.
2403 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2404 (filename_seen): Delete arg "first". New arg "cache". All callers
2406 (output_source_filename_data): New struct.
2407 (output_source_filename): Delete arg "first". New arg "data".
2408 All callers updated.
2409 (sources_info): Delete local "first". New locals "data", "cleanups".
2410 Rewrite to use filename_seen_cache.
2411 (add_partial_filename_data): Delete member "first". New member
2412 "filename_seen_cache". All uses updated.
2413 (make_source_files_completion_list): Rewrite to use
2414 filename_seen_cache.
2416 2012-07-12 Doug Evans <dje@google.com>
2418 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2420 2012-07-10 Doug Evans <dje@google.com>
2423 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2424 all_type_unit_groups, type_unit_groups, tu_stats.
2425 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2426 All uses updated. Add type_unit_group to union "s".
2427 (type_unit_group): New struct.
2428 (IS_TYPE_UNIT_GROUP): New macro.
2429 (abbrev_table): Delete unused member "section".
2430 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2431 (dw2_get_cu): Assert not used with type_unit_group.
2432 (dw2_get_primary_cu): New function.
2433 (dw2_build_type_unit_groups_reader): New function.
2434 (dw2_build_type_unit_groups): New function.
2435 (dw2_get_file_names): Assert not called on type units.
2436 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2437 Redo loop to iterate over type unit groups instead of type units.
2438 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2439 (read_abbrev_offset): New function.
2440 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2442 (create_partial_symtab): New function.
2443 (process_psymtab_comp_unit_reader): Assert not used with type units.
2444 Call create_partial_symtab.
2445 (process_psymtab_type_unit): Delete.
2446 (hash_type_unit_group, eq_type_unit_group): New functions.
2447 (allocate_type_unit_groups_table): New function.
2448 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2449 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2450 (create_type_unit_group, get_type_unit_group): New functions.
2451 (tu_abbrev_offset): New struct.
2452 (sort_tu_by_abbrev_offset): New function.
2453 (add_type_unit_group_to_table): New function.
2454 (build_type_unit_groups): New function.
2455 (build_type_psymtabs_reader): New function.
2456 (build_type_psymtab_dependencies): New function.
2457 (build_type_psymtabs): Rewrite.
2458 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2459 is seen in a type unit.
2460 (process_queue): Move symtab expansion debugging printfs here.
2461 Call process_full_type_unit for type units.
2462 (compute_symtab_includes): Assert not called for type units.
2463 (process_cu_includes): Don't call compute_symtab_includes for
2465 (process_full_type_unit): New function.
2466 (process_imported_unit_die): Flag an error if called for type units.
2467 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2468 updated. Assert not called for type units.
2469 (read_file_scope): Call dwarf2_start_symtab.
2470 (setup_type_unit_groups): New function.
2471 (read_type_unit_scope): Rewrite.
2472 (abbrev_table_read_table): Initialize abbrev_table->offset.
2473 (abbrev_table_free_cleanup): New function.
2474 (dwarf2_start_symtab): New function.
2475 (load_full_type_unit): Assert not called for type unit groups.
2476 * buildsym.c (finish_block_internal): New arg "expandable".
2477 All callers updated.
2478 (start_symtab): Move most contents to ...
2479 (restart_symtab): ... here. New function.
2480 (reset_symtab_globals): New function.
2481 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2482 Call reset_symtab_globals.
2483 (end_symtab, end_expandable_symtab): New functions.
2484 (set_missing_symtab, augment_type_symtab): New functions.
2485 * buildsym.h (end_expandable_symtab): Declare.
2486 (augment_type_symtab, restart_symtab): Declare.
2487 * psympriv.h (struct partial_symtab): New member "anonymous".
2488 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2490 (read_psymtabs_with_filename): Ditto.
2491 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2492 (expand_symtabs_matching_via_partial): Ditto.
2493 (dump_psymtab): Update.
2494 * dictionary.c (dict_add_pending): New function.
2495 * dictionary.h (dict_add_pending): Declare.
2497 2012-07-09 Doug Evans <dje@google.com>
2499 * buildsym.c (start_subfile): Remove unnecessary check for
2502 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2504 * dwarf2read.c (load_full_type_unit): Simplify.
2506 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2507 to struct signatured_type **. All uses updated.
2509 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2510 All callers updated.
2512 2012-07-09 Tom Tromey <tromey@redhat.com>
2514 * c-exp.y (check_parameter_typelist): New function.
2515 (parameter_typelist): Call it.
2516 * eval.c (make_params): Handle '(void)' case.
2517 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2520 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2522 * common/linux-ptrace.c: Include gdb_assert.h.
2523 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2524 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2526 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2528 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2529 * linux-nat.c (linux_child_post_attach)
2530 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2532 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2534 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2535 nptl <2.7 bug workaround for core files.
2537 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2539 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2541 (save_siginfo): Remove.
2542 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2544 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2545 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2546 * linux-nat.h (struct lwp_info): Remove field siginfo.
2548 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2550 Code cleanup for the next patch.
2551 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2552 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2554 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2555 (ia64_linux_stopped_data_address):
2556 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2558 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2559 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2560 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2563 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2566 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2567 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2569 2012-07-06 Tom Tromey <tromey@redhat.com>
2571 * c-exp.y (DOTDOTDOT): New token.
2572 (func_mod, exp): Use parameter_typelist.
2573 (parameter_typelist): New production.
2574 (tokentab3): Add "..." token.
2575 * eval.c (make_params): Handle varargs.
2576 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2579 2012-07-06 Tom Tromey <tromey@redhat.com>
2582 * c-exp.y (%union) <tvec>: Change type.
2583 (func_mod): Now uses <tvec> type.
2584 (exp): Update for tvec change.
2585 (direct_abs_decl): Push the typelist.
2586 (func_mod): Return a typelist.
2587 (nonempty_typelist): Update for tvec change.
2588 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2589 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2590 * parse.c (pop_type_list): New function.
2591 (push_typelist): New function.
2592 (follow_types): Handle tp_function_with_arguments.
2593 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2594 (enum type_pieces) <tp_function_with_arguments>: New constant.
2595 (union type_stack_elt) <typelist_val>: New field.
2596 (push_typelist): Declare.
2598 2012-07-06 Tom Tromey <tromey@redhat.com>
2600 * c-exp.y (%union) <type_stack>: New field.
2601 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2602 (ptr_operator_ts): New production.
2604 * parse.c (type_stack_reserve): New function.
2605 (check_type_stack_depth): Use it.
2606 (pop_type_stack, append_type_stack, push_type_stack)
2607 (get_type_stack, type_stack_cleanup): New functions.
2608 (follow_types): Handle tp_type_stack.
2609 (_initialize_parse): Simplify initialization.
2610 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2612 (union type_stack_elt) <stack_val>: New field.
2613 (get_type_stack, append_type_stack, push_type_stack)
2614 (type_stack_cleanup): Declare.
2616 2012-07-06 Tom Tromey <tromey@redhat.com>
2618 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2620 (struct type_stack): New.
2621 * parse.c (type_stack, type_stack_size, type_stack_depth):
2623 (type_stack): New global.
2624 (parse_exp_in_context, check_type_stack_depth)
2625 (insert_into_type_stack, insert_type, push_type, push_type_int)
2626 (insert_type_address_space, pop_type, pop_type_int)
2627 (_initialize_parse): Update.
2629 2012-07-06 Tom Tromey <tromey@redhat.com>
2631 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2634 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2636 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2638 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2639 Jan Kratochvil <jan.kratochvil@redhat.com>
2641 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2642 alloca with xmalloc/xfree.
2644 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2646 * MAINTAINERS (Write After Approval): Add myself to the list.
2648 2012-07-05 Doug Evans <dje@google.com>
2650 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2652 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2654 * ax-gdb.c (cli/cli-utils.h): New include.
2655 (linespec.h): Ditto.
2656 (agent_eval_command_one): New function.
2657 (agent_command_1): Ditto.
2658 (agent_command): Call function agent_command_1.
2659 (agent_eval_command): Ditto.
2660 (_initialize_ax_gdb): Change help for "maint agent"
2661 and "maint agent-eval".
2663 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2665 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2666 * cli/cli-utils.c (check_for_argument): New function.
2667 * cli/cli-utils.h (check_for_argument): Ditto.
2669 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2671 * NEWS: Mention x32 ABI support.
2673 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2675 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2676 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2678 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2679 and pc_regnum_from_eax to -1. Update SP regnum from
2680 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2683 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2686 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2688 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2689 * dwarf2expr.h: Include gdbtypes.h.
2690 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2691 these forward declarations.
2692 (cu_offset, sect_offset): Move these ...
2693 * gdbtypes.h: Remove include dwarf2expr.h.
2694 (cu_offset, sect_offset): ... here.
2696 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2698 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2699 (amd64_linux_sigtramp_code): This.
2700 (amd64_x32_linux_sigtramp_code): New.
2701 (LINUX_SIGTRAMP_LEN): Updated.
2702 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2704 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2706 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2708 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2710 * config.in: Regenerate.
2711 * configure: Regenerate.
2712 * configure.ac: Remove check for gnu/libc-version.h.
2713 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2715 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2716 variables libc_version, libc_major and libc_minor. Replace sscanf by
2717 inferior_has_bug. Extend the comment.
2719 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2721 * linux-thread-db.c (inferior_has_bug): New function.
2722 (thread_db_find_new_threads_silently): Return boolean as checked by
2723 inferior_has_bug, describe it in the comments.
2724 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2725 earlier. Abort the initialization if it returned non-zero.
2726 (thread_db_new_objfile): Exclude debug files.
2727 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2730 2012-07-02 Doug Evans <dje@google.com>
2732 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2733 related to queue management.
2735 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2736 instead of "debug dwarf2-die" in debugging printfs.
2737 (create_debug_info_hash_table_reader): Ditto.
2738 (create_debug_info_hash_table): Ditto.
2739 (init_dwo_file): Ditto.
2740 (init_cutu_and_read_dies): Add debugging printf.
2741 (init_cutu_and_read_dies_no_follow): Ditto.
2742 (process_psymtab_comp_unit_reader): Ditto.
2744 2012-07-02 Stan Shebs <stan@codesourcery.com>
2746 Add target-side support for dynamic printf.
2747 * NEWS: Mention the additional style.
2748 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2749 (struct bp_location): New field cmd_bytecode.
2750 * breakpoint.c: Include format.h.
2751 (disconnected_dprintf): New global.
2752 (parse_cmd_to_aexpr): New function.
2753 (build_target_command_list): New function.
2754 (insert_bp_location): Call it.
2755 (remove_breakpoints_pid): Skip dprintf breakpoints.
2756 (print_one_breakpoint_location): Ditto.
2757 (dprintf_style_agent): New global.
2758 (dprintf_style_enums): Add dprintf_style_agent.
2759 (update_dprintf_command_list): Add agent case.
2760 (agent_printf_command): New function.
2761 (_initialize_breakpoint): Add new commands.
2762 * common/ax.def (printf): New bytecode.
2763 * ax.h (ax_string): Declare.
2764 * ax-gdb.h (gen_printf): Declare.
2765 * ax-gdb.c: Include cli-utils.h, format.h.
2766 (gen_printf): New function.
2767 (maint_agent_print_command): New function.
2768 (_initialize_ax_gdb): Add maint agent-printf command.
2769 * ax-general.c (ax_string): New function.
2770 (ax_print): Add printf disassembly.
2771 * Makefile.in (SFILES): Add format.c
2772 (COMMON_OBS): Add format.o.
2773 * common/format.h: New file.
2774 * common/format.c: New file.
2775 * printcmd.c: Include format.h.
2776 (ui_printf): Call parse_format_string.
2777 * remote.c (remote_state): New field breakpoint_commands.
2778 (PACKET_BreakpointCommands): New enum.
2779 (remote_breakpoint_commands_feature): New function.
2780 (remote_protocol_features): Add new BreakpointCommands entry.
2781 (remote_can_run_breakpoint_commands): New function.
2782 (remote_add_target_side_commands): New function.
2783 (remote_insert_breakpoint): Call it.
2784 (remote_insert_hw_breakpoint): Ditto.
2785 (_initialize_remote): Add new packet configuration for
2786 target-side breakpoint commands.
2787 * target.h (struct target_ops): New field
2788 to_can_run_breakpoint_commands.
2789 (target_can_run_breakpoint_commands): New macro.
2790 * target.c (update_current_target): Handle
2791 to_can_run_breakpoint_commands.
2793 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2795 Execute -ix and -iex only after system and user gdbinit files.
2796 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2797 processing down after gdbinit files.
2799 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2801 Add fnmatch-gnu module.
2802 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2803 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2804 * gnulib/aclocal.m4: Regenerate.
2805 * gnulib/config.in: Regenerate.
2806 * gnulib/configure: Regenerate.
2807 * gnulib/import/dummy.c: Remove.
2808 * gnulib/import/Makefile.am: Regenerate.
2809 * gnulib/import/Makefile.in: Likewise.
2810 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2811 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2812 * gnulib/import/alloca.c: New file.
2813 * gnulib/import/alloca.in.h: Likewise.
2814 * gnulib/import/config.charset: Likewise.
2815 * gnulib/import/fnmatch.c: Likewise.
2816 * gnulib/import/fnmatch.in.h: Likewise.
2817 * gnulib/import/fnmatch_loop.c: Likewise.
2818 * gnulib/import/localcharset.c: Likewise.
2819 * gnulib/import/localcharset.h: Likewise.
2820 * gnulib/import/m4/alloca.m4: Likewise.
2821 * gnulib/import/m4/codeset.m4: Likewise.
2822 * gnulib/import/m4/configmake.m4: Likewise.
2823 * gnulib/import/m4/fcntl-o.m4: Likewise.
2824 * gnulib/import/m4/fnmatch.m4: Likewise.
2825 * gnulib/import/m4/glibc21.m4: Likewise.
2826 * gnulib/import/m4/localcharset.m4: Likewise.
2827 * gnulib/import/m4/locale-fr.m4: Likewise.
2828 * gnulib/import/m4/locale-ja.m4: Likewise.
2829 * gnulib/import/m4/locale-zh.m4: Likewise.
2830 * gnulib/import/m4/mbrtowc.m4: Likewise.
2831 * gnulib/import/m4/mbsinit.m4: Likewise.
2832 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2833 * gnulib/import/m4/mbstate_t.m4: Likewise.
2834 * gnulib/import/m4/stdbool.m4: Likewise.
2835 * gnulib/import/m4/wchar_h.m4: Likewise.
2836 * gnulib/import/m4/wctype_h.m4: Likewise.
2837 * gnulib/import/m4/wint_t.m4: Likewise.
2838 * gnulib/import/mbrtowc.c: Likewise.
2839 * gnulib/import/mbsinit.c: Likewise.
2840 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2841 * gnulib/import/mbsrtowcs-state.c: Likewise.
2842 * gnulib/import/mbsrtowcs.c: Likewise.
2843 * gnulib/import/ref-add.sin: Likewise.
2844 * gnulib/import/ref-del.sin: Likewise.
2845 * gnulib/import/stdbool.in.h: Likewise.
2846 * gnulib/import/streq.h: Likewise.
2847 * gnulib/import/strnlen1.c: Likewise.
2848 * gnulib/import/strnlen1.h: Likewise.
2849 * gnulib/import/verify.h: Likewise.
2850 * gnulib/import/wchar.in.h: Likewise.
2851 * gnulib/import/wctype.in.h: Likewise.
2853 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2855 Support shell wildcards for 'set auto-load safe-path'.
2856 * auto-load.c: Include fnmatch.h.
2857 (filename_is_in_dir): Rename to ...
2858 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2859 it. Update function comment. Rename dir_len to pattern_len. New
2860 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2861 messages. Use gdb_filename_fnmatch.
2862 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2864 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2865 * defs.h (gdb_filename_fnmatch): New declaration.
2866 * utils.c: Include fnmatch.h.
2867 (gdb_filename_fnmatch): New function.
2869 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2871 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2872 `-probe' and `-probe-stap' options.
2874 2012-07-01 Yao Qi <yao@codesourcery.com>
2876 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2877 always_inserted_off, and always_inserted_enums.
2878 Change always_inserted_mode's type to 'enum auto_boolean'.
2879 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2881 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2882 of add_setshow_enum_cmd.
2883 * infrun.c: Remove can_use_displaced_stepping_auto,
2884 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2885 can_use_displaced_stepping_enum.
2886 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2887 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2888 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2889 add_setshow_enum_cmd.
2891 2012-06-30 Doug Evans <dje@google.com>
2893 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2894 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2895 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2897 2012-06-29 Doug Evans <dje@google.com>
2899 * linespec.c: #include "stack.h".
2900 (decode_line_with_current_source): Moved here from symtab.c and
2901 renamed from decode_line_spec. All callers updated.
2902 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2903 renamed from decode_line_spec_1. All callers updated.
2904 * linespec.h (decode_line_with_current_source): Move declaration here
2905 from symtab.h and renamed from decode_line_spec.
2906 (decode_line_with_last_displayed): Move declaration here from symtab.h
2907 and renamed from decode_line_spec_1.
2908 * macrocmd.c: #include "linespec.h".
2909 * symtab.c: Remove #include "linespec.h".
2911 2012-06-28 Doug Evans <dje@google.com>
2913 * dwarf2read.c (get_cu_length): New function.
2914 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2915 (create_debug_types_hash_table): Ditto.
2916 (init_cutu_and_read_dies): Ditto.
2917 (init_cutu_and_read_dies_no_follow): Ditto.
2919 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2921 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2922 (struct abbrev_table): Define.
2923 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2925 (init_cutu_and_read_dies): Update.
2926 (abbrev_table_alloc_abbrev): New function. Replaces
2927 dwarf_alloc_abbrev. All callers updated.
2928 (abbrev_table_add_abbrev): New function.
2929 (abbrev_table_lookup_abbrev): New function. Replaces
2930 dwarf2_lookup_abbrev. All callers updated.
2931 (abbrev_table_read_table): New function. Contents moved here from
2932 dwarf2_read_abbrevs.
2933 (dwarf2_read_abbrevs): Call it.
2934 (abbrev_table_free): New function.
2935 (dwarf2_free_abbrev_table): Call it.
2937 2012-06-28 Stan Shebs <stan@codesourcery.com>
2939 * osdata.c (info_osdata_command): Filter out "Title" columns
2941 * common/linux-osdata.c (struct osdata_type): Add title field.
2942 (osdata_table): Add titles to each entry.
2943 (linux_command_xfer_osdata): Add a column for title data.
2945 2012-06-28 Stan Shebs <stan@codesourcery.com>
2947 Make logging work for MI.
2949 * interps.h (interp_set_logging_ftype): New typedef.
2950 (struct interp_procs): New field set_logging_proc.
2951 (current_interp_set_logging): Declare.
2952 * interps.c (current_interp_set_logging): New function.
2953 * cli/cli-logging.c: Include interps.h.
2954 (set_logging_redirect): Call current_interp_set_logging.
2955 (pop_output_files): Ditto.
2956 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2957 * mi/mi-console.h (mi_console_set_raw): Declare.
2958 * mi/mi-console.c (mi_console_set_raw): New function.
2959 * mi/mi-interp.c (saved_raw_stdout): New global.
2960 (mi_set_logging): New function.
2961 (_initialize_mi_interp): Add it to interp procs.
2963 2012-06-28 Doug Evans <dje@google.com>
2965 * symtab.c (lookup_symbol_aux_objfile): Use
2966 ALL_OBJFILE_PRIMARY_SYMTABS.
2968 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2970 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2972 * common/buffer.c: Include inttypes.h and stdint.h.
2973 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2975 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2976 Pedro Alves <palves@redhat.com>
2978 * gdbthread.h (ALL_THREADS): New macro.
2979 (thread_list): Declare.
2980 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2981 going, but instead fall through to the stepping handling.
2982 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2983 the passed in signal. Adjust debug output.
2984 (resume_callback): Rename to ...
2985 (linux_nat_resume_callback): ... this. Pass the thread's last
2986 stop signal, if in "pass" state.
2987 (linux_nat_resume): Adjust to rename.
2988 (stop_wait_callback): New assertion. Don't respawn signals;
2989 instead let the LWP remain with SIGNALLED set.
2990 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2991 * remote.c (append_pending_thread_resumptions): New.
2992 (remote_vcont_resume): Call it.
2993 * target.h (target_resume): Extend comment.
2995 2012-06-28 Iain Sandoe <iain@codesourcery.com>
2997 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2999 2012-06-27 Doug Evans <dje@google.com>
3001 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3002 Delete have_addr_base, unused. All uses updated.
3003 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3004 (dwarf2_get_pc_bounds): Add ranges_base.
3005 (dwarf2_record_block_ranges): Ditto.
3007 2012-06-27 Tom Tromey <tromey@redhat.com>
3010 * varobj.c (varobj_create): Update.
3011 (varobj_set_value): Update.
3012 * tracepoint.c (validate_actionline): Update.
3013 (encode_actions_1): Update.
3014 * parse.c (parse_exp_1): Add 'pc' argument.
3015 (parse_exp_in_context): Add 'pc' argument. Change how
3016 expression_context_pc is set.
3017 (parse_expression): Update.
3018 (parse_field_expression): Update.
3019 * expression.h (parse_exp_1): Update.
3020 * eval.c (parse_to_comma_and_eval): Update.
3021 * breakpoint.c (set_breakpoint_condition): Update.
3022 (update_watchpoint): Update.
3023 (init_breakpoint_sal): Update
3024 (find_condition_and_thread): Update.
3025 (watch_command_1): Update.
3026 (update_breakpoint_locations): Update.
3027 * ada-lang.c (ada_read_renaming_var_value): Update.
3028 (create_excep_cond_exprs): Update.
3030 2012-06-27 Doug Evans <dje@google.com>
3032 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3035 2012-06-26 Doug Evans <dje@google.com>
3037 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3039 (error_check_comp_unit_head): New arg abbrev_section. All callers
3041 (read_and_check_comp_unit_head): Ditto.
3042 (read_and_check_type_unit_head): Ditto.
3044 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3046 New attribute 'last' for gdb.Symtab_and_line.
3047 * NEWS (Python Scripting): Add entry about the new attribute.
3048 * python/py-symtab.c (salpy_get_last): New function which
3049 implements the get method for the 'last' attribute of
3050 gdb.Symtab_and_line.
3051 (sal_object_getset): Add entry for the 'last' attribute.
3053 2012-06-26 Doug Evans <dje@google.com>
3055 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3056 (dwo_sections): Add macinfo, macro.
3057 (dwarf2_locate_dwo_sections): Watch for macro sections.
3058 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3059 All callers updated. Handle DWO files.
3061 * NEWS: Mention new options "set debug dwarf2-read" and
3062 "set debug symtab-create".
3063 * dwarf2read.c (dwarf2_read_debug): New static global.
3064 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3065 (process_queue): Ditto.
3066 (process_full_comp_unit): Ditto.
3067 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3068 * elfread.c (elf_symfile_read): Add debugging printf.
3069 * minsyms.c (install_minimal_symbols): Ditto.
3070 * psymtab.c (allocate_psymtab): Ditto.
3071 * symfile.c (allocate_symtab): Ditto.
3072 * symtab.c (symtab_create_debug): New global.
3073 (_initialize_symtab): Add new option "set debug symtab-create".
3074 * symtab.h (symtab_create_debug): Declare.
3076 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3077 (lookup_dwo_type_unit): Ditto.
3079 2012-06-26 Roland McGrath <roland@hack.frob.com>
3080 H.J. Lu <hongjiu.lu@intel.com>
3082 * amd64-linux-nat.c: Include <sys/user.h>.
3083 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3084 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3085 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3087 * configure.ac: Check if the fs_base and gs_base members of
3088 `struct user_regs_struct' exist.
3089 * config.in: Regenerated.
3090 * configure: Likewise.
3092 2012-06-25 Michael Eager <eager@eagercon.com>
3095 * python/python.c (gdbpy_write): Check for interrupted output.
3097 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3099 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3100 register as a stack alignment in ARM mode.
3102 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3104 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3105 * gnulib/config.in: Regenerate.
3106 * gnulib/configure: Likewise.
3107 * gnulib/import/m4/extensions.m4: Update it.
3108 * gnulib/import/m4/gnulib-common.m4: Likewise.
3109 * gnulib/import/m4/memmem.m4: Likewise.
3110 * gnulib/import/m4/mmap-anon.m4: Likewise.
3111 * gnulib/import/m4/multiarch.m4: Likewise.
3112 * gnulib/import/stdint.in.h: Likewise.
3114 2012-06-24 Yao Qi <yao@codesourcery.com>
3116 * corefile.c (write_memory_with_notification): New.
3117 * gdbcore.h: Declare write_memory_with_notification.
3118 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3119 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3120 * valops.c (value_assign): Likewise.
3121 * python/py-inferior.c (infpy_write_memory): Call
3122 'write_memory_with_notification'.
3124 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3126 * cc-with-index.sh: Use also -ex "set auto-load no".
3128 2012-06-23 Doug Evans <dje@google.com>
3131 * NEWS: Document additions to .gdb_index.
3132 * dwarf2read.c: #include "gdb/gdb-index.h".
3133 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3134 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3135 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3136 (dwarf2_read_index): Recognize version 7.
3137 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3138 block_kind, domain): All callers updated.
3139 (dw2_find_symbol_file): Handle new index CU values.
3140 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3141 (add_index_entry): New args is_static, kind. All callers updated.
3142 (offset_type_compare, uniquify_cu_indices): New functions
3143 (symbol_kind): New function.
3144 (write_psymtabs_to_index): Remove duplicate CU values.
3145 (write_psymtabs_to_index): Write .gdb_index version 7.
3147 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3149 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3150 * configure: Regenerate.
3152 2012-06-20 Yao Qi <yao@codesourcery.com>
3154 * python/py-inferior.c: Update comments of infpy_read_memory
3155 and infpy_write_memory.
3157 2012-06-19 Tom Tromey <tromey@redhat.com>
3160 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3161 (push_type_address_space): Remove.
3162 * parse.c (insert_into_type_stack): New function.
3163 (insert_type): Likewise.
3164 (insert_type_address_space): Rename from push_type_address_space.
3165 Insert tp_space_identifier.
3166 * c-exp.y (ptr_operator): New production.
3167 (abs_decl): Use ptr_operator.
3168 (space_identifier): Call insert_type_address_space.
3169 (ptype): Don't use const_or_volatile_or_space_identifier.
3170 (const_or_volatile_noopt): Call insert_type.
3171 (conversion_type_id, conversion_declarator): New productions.
3172 (operator): Use conversion_type_id.
3174 2012-06-18 Doug Evans <dje@google.com>
3176 * symtab.h (minimal_symbol): New member created_by_gdb.
3177 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3179 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3180 (search_symbols): Call it instead of lookup_symbol.
3181 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3183 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3184 Adjust address for DW_OP_GNU_addr_index.
3185 * dwarf2expr.h (dwarf_expr_context): Update comment.
3186 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3187 all callers updated. Handle TLS vars described with
3188 DW_OP_GNU_const_index.
3189 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3190 and DW_OP_GNU_const_index.
3191 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3193 * block.c (find_block_in_blockvector): Make explicit the fact that we
3194 ignore GLOBAL_BLOCK.
3196 2012-06-18 Tom Tromey <tromey@redhat.com>
3198 * c-exp.y (operator): Remove trailing space after "delete" and
3201 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3202 Jan Kratochvil <jan.kratochvil@redhat.com>
3204 Switch i386 and derived targets to ON_STACK.
3205 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3206 (amd64_dicos_init_abi): Remove its installment.
3207 * dicos-tdep.c (dicos_init_abi): Remove the
3208 set_gdbarch_call_dummy_location call. Update the comment here.
3209 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3210 (i386_dicos_init_abi): Remove its installment.
3211 * i386-tdep.c (i386_push_dummy_code): New function.
3212 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3213 i386_push_dummy_code.
3215 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3217 Remove stale dummy frames.
3218 * breakpoint.c: Include dummy-frame.h.
3219 (longjmp_breakpoint_ops): New variable.
3220 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3221 bp_longjmp_call_dummy.
3222 (bpstat_what, bptype_string, print_one_breakpoint_location)
3223 (init_bp_location): Support bp_longjmp_call_dummy.
3224 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3225 (set_longjmp_breakpoint_for_call_dummy)
3226 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3228 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3229 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3230 FIXME comment and extend the other comment for bp_call_dummy.
3231 (set_longjmp_breakpoint_for_call_dummy)
3232 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3233 * dummy-frame.c: Include gdbthread.h.
3234 (pop_dummy_frame_bpt): New function.
3235 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3236 (dummy_frame_discard): New function.
3237 (cleanup_dummy_frames): Update the comment about longjmps.
3238 * dummy-frame.h (dummy_frame_discard): New declaration.
3239 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3240 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3241 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3242 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3243 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3244 keep_going if IS_LONGJMP and there is no other reason to stop.
3246 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3248 * remote-sim.c (sim_command_completer): Initialize
3251 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3253 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3254 * dwarf2loc.c (call_site_parameter_matches): Support
3255 CALL_SITE_PARAMETER_PARAM_OFFSET.
3256 (needs_dwarf_reg_entry_value): Push stub value.
3257 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3258 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3259 * gdbtypes.h (enum call_site_parameter_kind): New item
3260 CALL_SITE_PARAMETER_PARAM_OFFSET.
3261 (struct call_site.parameter.u): New field param_offset.
3263 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3265 Code cleanup: Generalize call_site.parameter key.
3266 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3267 variable dwarf_reg. New variable kind_u. Update parameters to
3268 push_dwarf_reg_entry_value.
3269 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3270 * dwarf2expr.h (enum call_site_parameter_kind)
3271 (union call_site_parameter_u): Forward declarations.
3272 (struct dwarf_expr_context_funcs): Update parameters and their
3273 description for push_dwarf_reg_entry_value.
3274 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3275 * dwarf2loc.c (call_site_parameter_matches): New function.
3276 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3277 description. Use call_site_parameter_matches.
3278 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3279 Update parameters and their description.
3280 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3281 New variable kind_u. Adjust the caller for updated parameters.
3282 (needs_dwarf_reg_entry_value): Update parameters.
3283 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3284 instead of attr. Update for the changed fields of struct
3285 call_site_parameter.
3286 * gdbtypes.h: Include dwarf2expr.h.
3287 (enum call_site_parameter_kind): New.
3288 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3289 fb_offset into new union u.
3291 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3293 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3294 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3297 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3299 * amd64-linux-nat.c (compat_x32_clock_t): New.
3300 (compat_x32_siginfo_t): Likewise.
3301 (compat_x32_siginfo_from_siginfo): Likewise.
3302 (siginfo_from_compat_x32_siginfo): Likewise.
3303 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3304 and siginfo_from_compat_x32_siginfo for x32.
3306 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3308 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3310 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3312 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3313 instead of gdbarch_ptr_bit.
3314 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3315 (amd64_supply_native_gregset): Likewise.
3316 (amd64_collect_native_gregset): Likewise.
3317 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3318 (amd64_supply_xsave): Likewise.
3319 (amd64_collect_fxsave): Likewise.
3320 (amd64_collect_xsave): Likewise.
3322 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3324 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3325 (amd64_linux_read_description): Check DS segment register for
3328 2012-06-15 Tom Tromey <tromey@redhat.com>
3330 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3331 init_cutu_and_read_dies.
3333 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3335 * MAINTAINERS (Write After Approval): Add myself to the list.
3337 2012-06-15 Tom Tromey <tromey@redhat.com>
3339 * valops.c (value_find_oload_method_list): Now static.
3340 * value.h (value_find_oload_method_list): Don't declare.
3342 2012-06-15 Tom Tromey <tromey@redhat.com>
3344 * valops.c (find_overload_match): Use value_ind.
3346 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3348 * infrun.c (handle_inferior_event): Correct indentation.
3350 2012-06-14 Doug Evans <dje@google.com>
3352 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3353 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3355 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3356 updated. Handle DEBUG_LOC_START_LENGTH.
3357 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3358 (loclist_describe_location): Ditto.
3360 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3363 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3364 after hiding inline functions.
3366 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3368 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3369 _initialize_inf_ttrace.
3371 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3373 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3374 _initialize_hppa_hpux_nat.
3376 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3378 * remote-sim.c (sim_command_completer): Change type of return
3379 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3381 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3382 Jan Kratochvil <jan.kratochvil@redhat.com>
3385 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3386 stack on a 16-byte boundary.
3388 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3390 * jit.c (finalize_symtab): Set function's return type to 'void' by
3393 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3394 H.J. Lu <hongjiu.lu@intel.com>
3396 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3397 Move bits common to both the classic LP64 and the new x32 ILP32
3399 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3400 (amd64_x32_linux_init_abi): New function.
3401 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3404 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3405 * i386-tdep.c (i386_pseudo_register_name): Make public.
3406 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3407 * amd64-tdep.c (amd64_dword_names): Add "eip".
3408 (amd64_x32_pseudo_register_type): New function
3409 (amd64_x32_init_abi): New function.
3411 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3414 * inferior.h (struct inferior_suspend_state): Comment out.
3415 (struct inferior): Comment out the field suspend.
3416 * infrun.c (struct infcall_suspend_state): Comment out the field
3418 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3421 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3423 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3424 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3425 function comment. Return ERROR for unresolved cases. Implement
3426 returning proper NAME.
3427 (yylex): Accept also NAME from classify_inner_name.
3428 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3429 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3431 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3433 2012-06-13 Tom Tromey <tromey@redhat.com>
3435 * breakpoint.c (condition_completer): New function.
3436 (_initialize_breakpoint): Use it.
3437 * value.c (complete_internalvar): New function.
3438 * value.h (complete_internalvar): Declare.
3440 2012-06-13 Tom Tromey <tromey@redhat.com>
3442 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3443 * breakpoint.c (catch_syscall_completer): Return a VEC.
3444 * cli/cli-cmds.c (complete_command): Update.
3445 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3446 (complete_on_enum): Likewise.
3447 * command.h: Include gdb_vecs.h.
3448 (completer_ftype): Change return type.
3449 (complete_on_cmdlist, complete_on_enum): Likewise.
3450 * completer.c (noop_completer, filename_completer)
3451 (location_completer): Return a VEC.
3452 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3454 (expression_completer, complete_line_internal, complete_line)
3455 (command_completer): Return a VEC.
3456 (gdb_completion_word_break_characters, line_completion_function):
3458 * completer.h: Include gdb_vecs.h.
3459 (complete_line, noop_completer, filename_completer)
3460 (expression_completer, location_completer, command_completer):
3462 * f-lang.c (f_word_break_characters): Return a VEC.
3463 * interps.c (interpreter_completer): Return a VEC.
3464 * language.h (struct language_defn)
3465 <la_make_symbol_completion_list>: Return a VEC.
3466 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3467 * symtab.c (free_completion_list): Take a VEC.
3468 (return_val_size, return_val_index): Remove.
3469 (return_val): Now a VEC.
3470 (completion_list_add_name): Update.
3471 (default_make_symbol_completion_list_break_on)
3472 (default_make_symbol_completion_list, make_symbol_completion_list)
3473 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3475 (add_filename_to_list): Update.
3476 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3478 (maybe_add_partial_symtab_filename): Update.
3479 (make_source_files_completion_list): Return a VEC.
3480 * symtab.h (default_make_symbol_completion_list_break_on)
3481 (default_make_symbol_completion_list, make_symbol_completion_list)
3482 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3483 (make_source_files_completion_list): Update.
3485 2012-06-13 Tom Tromey <tromey@redhat.com>
3487 * breakpoint.c (add_catch_command): Use completer_ftype.
3488 * breakpoint.h: Include command.h.
3489 (add_catch_command): Use completer_ftype.
3490 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3491 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3492 Use completer_ftype.
3493 * command.h (completer_ftype): New typedef.
3494 (set_cmd_completer): Use it.
3495 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3498 2012-06-13 Pedro Alves <palves@redhat.com>
3500 Partial revert of previous change.
3502 * serial.c (scb_base): New global.
3503 (serial_for_fd): New.
3504 (serial_open, serial_fdopen_ops): Link new serial in open serials
3506 (do_serial_close): Unlink serial from the open serials chain.
3508 2012-06-12 Pedro Alves <palves@redhat.com>
3510 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3512 (prepare_for_detach): No longer context switch here in non-stop
3514 (fetch_inferior_event): Ditto.
3515 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3516 to the event thread before removing breakpoints. Switch to the
3517 event thread before inserting breakpoints and resuming.
3518 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3519 event thread before resuming.
3520 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3521 Switch to the event thread before removing breakpoints.
3523 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3525 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3526 special characters correctly for the Windows shells. See
3527 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3529 [!__MINGW32__]: Remove extra double quote character from special
3532 2012-06-11 Stan Shebs <stan@codesourcery.com>
3534 * ui-out.h: Remove #if 0 declarations.
3535 * ui-out.c: Remove #if 0 functions.
3537 2012-06-11 Pedro Alves <palves@redhat.com>
3539 * ser-base.c (run_async_handler_and_reschedule): New.
3540 (fd_event, push_event): Use it.
3541 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3542 reference count to 1.
3543 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3545 (serial_is_open, serial_ref, serial_unref): New.
3546 * serial.h (serial_open): Adjust comment.
3547 (serial_is_open): Declare.
3548 (serial_close): Adjust comment.
3549 (serial_ref, serial_unref) Declare.
3550 (struct serial): New field 'refcnt'.
3552 2012-06-11 Pedro Alves <palves@redhat.com>
3554 Remove #if 0'd "connect" command, and unnecessary associated
3555 refcounting and serial reuse bits.
3557 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3558 * serial.c (last_serial_opened): Delete.
3560 (serial_open): Adjust.
3561 (serial_for_fd): Delete.
3562 (serial_fdopen_ops, do_serial_close): Adjust.
3563 (serial_fdopen_ops): Adjust.
3565 2012-06-11 Pedro Alves <palves@redhat.com>
3567 * serial.c (do_serial_close): Remove early return when SCB is
3570 2012-06-11 Tom Tromey <tromey@redhat.com>
3572 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3574 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3576 Fix regression by the "ambiguous linespec" series.
3577 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3578 get_last_displayed_symtab and get_last_displayed_line and depending
3581 2012-06-11 Tom Tromey <tromey@redhat.com>
3583 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3584 (dw2_find_symbol_file): Use it.
3586 2012-06-11 Michael Eager <eager@eagercon.com>
3588 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3589 * mips-linux-tdep.h (mips_signals): New
3591 2012-06-11 Tom Tromey <tromey@redhat.com>
3593 * infrun.c (handle_inferior_event)
3594 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3596 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3597 exception logic in all cases. Update comments.
3598 (insert_longjmp_resume_breakpoint): Set the exception resume
3601 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3603 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3605 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3607 * valarith.c (binop_types_user_defined_p): Fix a typo.
3609 2012-06-08 Yao Qi <yao@codesourcery.com>
3610 Chung-Lin Tang <cltang@codesourcery.com>
3612 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3613 * arch-utils.h: Declare.
3614 * gdbarch.sh: Add return_in_first_hidden_param_p.
3615 * gdbarch.c, gdbarch.h: Regenerated.
3616 * infcall.c (call_function_by_hand): Call
3617 gdbarch_return_in_first_hidden_param_p instead of
3618 language_pass_by_reference.
3620 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3621 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3622 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3623 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3624 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3625 `cplus_return_struct_by_reference'.
3626 (tic6x_return_value): Handle language cplusplus.
3627 (tic6x_return_in_first_hidden_param_p): New.
3628 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3630 2012-06-07 Doug Evans <dje@google.com>
3632 * dwarf2read.c (dwarf2_cu): Add comment.
3634 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3636 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3638 (mips_eabi_push_dummy_call): Likewise.
3639 (mips_n32n64_push_dummy_call): Likewise.
3640 (mips_o32_push_dummy_call): Likewise.
3641 (mips_o64_push_dummy_call): Likewise.
3643 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3645 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3647 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3649 * mips-tdep.c (mips_pseudo_register_type): Use
3650 mips_float_register_p.
3652 2012-06-06 Pedro Alves <palves@redhat.com>
3654 * infrun.c (handle_inferior_event): Remove calls to
3655 reinit_frame_cache that follow a context_switch call.
3657 2012-06-06 Pedro Alves <palves@redhat.com>
3659 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3660 context_switch and remove stale comment.
3662 2012-06-06 Pedro Alves <palves@redhat.com>
3664 * infrun.c (struct execution_control_state): Remove
3665 `new_thread_event' field.
3666 (handle_inferior_event): Simplify new threads handling; don't
3667 resume the inferior if we find a new thread.
3669 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3671 * NEWS: Document the deprecation of SH's 'regs' command.
3672 * inferior.h (all_registers_info): Add function declaration.
3673 * sh-tdep.c (sh_show_regs): Remove variable.
3674 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3675 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3676 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3677 (sh_show_regs_command): Remove functions.
3678 (sh_gdbarch_init): Don't set sh_show_regs.
3679 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3680 'info all-registers'.
3681 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3682 (sh64_show_regs): Remove functions.
3683 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3685 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3687 * configure.ac: Move development=true below AC_INIT.
3688 * configure: Regenerate.
3690 2012-06-05 Stan Shebs <stan@codesourcery.com>
3692 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3695 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3697 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3698 argument as ssize_t.
3699 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3700 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3701 * target.c (target_read_stack, target_write_memory)
3702 (target_write_raw_memory): Likewise.
3703 * target.h (target_read_stack, target_write_memory)
3704 (target_write_raw_memory): Likewise.
3706 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3708 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3709 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3710 * target.c (target_read_memory): Change LEN to ssize_t.
3711 * target.h (target_read_memory): Change LEN to ssize_t.
3713 2012-06-05 Pedro Alves <palves@redhat.com>
3717 * breakpoint.c (until_break_command): Only fetch the selected
3718 frame after decode_line_1.
3720 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3722 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3723 event breakpoint at _start, __start or main if a program
3724 interpreter is not found.
3726 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3728 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3730 * windows-tdep.c: #include "objfiles.h".
3731 (windows_iterate_over_objfiles_in_search_order): New function.
3732 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3733 iterate_over_objfiles_in_search_order gdbarch method to
3734 windows_iterate_over_objfiles_in_search_order.
3735 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3737 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3739 * gdbarch.sh: Add generation of
3740 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3741 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3742 (iterate_over_objfiles_in_search_order): New gdbarch method.
3743 * gdbarch.h, gdbarch.c: Regenerate.
3744 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3746 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3748 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3749 out of lookup_symbol_aux_symtabs.
3750 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3751 call to lookup_symbol_aux_objfile.
3752 (struct global_sym_lookup_data): New type.
3753 (lookup_symbol_global_iterator_cb): New function.
3754 (lookup_symbol_global): Search for symbol using
3755 gdbarch_iterate_over_objfiles_in_search_order and
3756 lookup_symbol_global_iterator_cb.
3757 * findvar.c (struct minsym_lookup_data): New type.
3758 (minsym_lookup_iterator_cb): New function.
3759 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3760 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3761 and minsym_lookup_iterator_cb.
3763 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3765 Revert the following patch:
3766 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3767 try locating the symbol in the symbol's own objfile first, before
3768 extending the search to all objfiles.
3769 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3770 out of lookup_symbol_aux_symtabs.
3771 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3772 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3773 Do not search EXCLUDE_OBJFILE.
3774 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3775 (lookup_symbol_global): Search for matches in the block's objfile
3776 first, before searching all other objfiles.
3778 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3780 * breakpoint.c (find_condition_and_thread): Stop parsing
3781 as soon as the first invalid keyword is found.
3783 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3785 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3787 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3789 * config/djgpp/djcheck.sh: Add copyright header.
3791 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3793 * copyright.py (update_files, main): Fix path to update-copyright
3796 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3798 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3799 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3800 for which a reminder to update by hand is printed.
3802 2012-06-04 Doug Evans <dje@google.com>
3804 * buildsym.c (make_blockvector): Add comment.
3806 2012-06-04 Pedro Alves <palves@redhat.com>
3808 * arch-utils.c (default_gdb_signal_from_target): Delete.
3809 * arch-utils.h (default_gdb_signal_from_target): Delete.
3810 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3811 gdbarch_gdb_signal_from_target_p.
3812 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3814 * gdbarch.h: Regenerate.
3815 * gdbarch.c: Regenerate.
3817 2012-06-04 Pedro Alves <palves@redhat.com>
3819 * gdbarch.sh (gdb_signal_from_target): Mention that the
3820 implementation of the method must be host independent.
3821 * gdbarch.h: Regenerate.
3823 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3825 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3827 (target_read_memory_bfd): New function.
3828 (symbol_file_add_from_memory): Use it.
3830 2012-06-03 Doug Evans <dje@google.com>
3832 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3834 (basic_lookup_transparent_type): Ditto.
3836 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3837 (ALL_PRIMARY_SYMTABS): Use it.
3838 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3839 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3840 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3841 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3842 (basic_lookup_transparent_type): Ditto.
3844 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3846 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3847 it to optimize resolution of demangled name.
3849 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3851 * configure.ac (development): Define new variable.
3852 Call AC_CHECK_LIB for mcheck if $development.
3853 (ERROR_ON_WARNING): Enable it by default only if $development.
3854 * config.in: Regenerate.
3855 * configure: Regenerate.
3857 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3859 * target.c (target_read_memory): Make LEN argument as size_t.
3860 * target.h (target_read_memory): Likewise.
3862 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3864 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3866 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3868 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3869 BookE interface for PowerPC server processors if not available
3870 in the Linux Kernel.
3872 2012-05-31 Keith Seitz <keiths@redhat.com>
3874 * linespec.c (decode_objc): Add cleanup to free
3876 (find_linespec_symbols): Add cleanup to free CLASSES.
3877 * symfile.c (find_separate_debug_file_by_debuglink): Add
3878 cleanup to free DEBUGLINK.
3879 * ui-out.c (clear_header_list): No need to check if
3880 HEADER_NEXT.COLHDR is NULL.
3881 Free HEADER_NEXT.COL_NAME.
3883 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3885 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3888 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3890 * configure.host (gdb_host_cpu): Handle tilegx*.
3891 (gdb_host): Handle tilegx-*-linux*.
3892 * tilegx-linux-nat.c: New file.
3893 * config/tilegx/linux.mh: New file.
3895 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3897 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3898 tilegx-linux-tdep.o.
3899 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3900 tilegx-linux-tdep.c.
3901 * configure.tgt: Handle tilegx-*-linux*.
3902 * tilegx-tdep.h: New file.
3903 * tilegx-tdep.c: New file.
3904 * tilegx-linux-tdep.c: New file.
3905 * regformats/reg-tilegx.dat: New file.
3907 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3909 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3910 accounting of hw watchpoints on ppc.
3912 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3914 * source.c (openp): Expand tilde in path entries.
3916 2012-05-29 Doug Evans <dje@google.com>
3918 * buildsym.c (block_compar): Fix comment.
3919 (end_symtab): Fix and clarify some comments.
3921 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3922 cleanup_undefined_types.
3923 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3924 All callers updated.
3926 2012-05-29 Tom Tromey <tromey@redhat.com>
3928 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3930 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3931 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3933 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3936 2012-05-29 Tristan Gingold <gingold@adacore.com>
3938 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3939 (struct darwin_info): ... New struct.
3940 (solib_darwin_pspace_data): New variable.
3941 (darwin_pspace_data_cleanup): New function.
3942 (get_darwin_info): Likewise.
3943 (darwin_dyld_version_ok, darwin_load_image_infos)
3944 (darwin_solib_get_all_image_info_addr_at_init)
3945 (darwin_solib_read_all_image_info_addr): Add info argument.
3947 (darwin_current_sos): Use per pspace structure.
3948 (darwin_solib_create_inferior_hook): Likewise.
3949 (darwin_clear_solib): Likewise.
3950 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3952 2012-05-28 Pedro Alves <palves@redhat.com>
3954 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3955 block that uses them. Clear ecss before handling each event.
3957 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3959 * solib-svr4.c (svr4_current_sos): New comment on
3960 svr4_current_sos_via_xfer_libraries fall back.
3962 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3964 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3965 it as a fallback for TYPE_IS_OPAQUE.
3966 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3967 symbols for lookup_symbol.
3969 2012-05-24 John Steele Scott <toojays@toojays.net>
3971 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3972 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3973 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3974 (check_producer): ... this new function, which also checks for ICC
3975 and caches the result.
3976 (producer_is_icc): New function.
3977 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3980 2012-05-24 Pedro Alves <palves@redhat.com>
3984 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3985 (default_gdb_signal_to_target): ... this. Add comment.
3986 (default_gdb_signal_from_host): Rename to ...
3987 (default_gdb_signal_from_target): ... this. Add comment.
3988 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3989 (default_gdb_signal_to_target): ... this.
3990 (default_gdb_signal_from_host): Rename to ...
3991 (default_gdb_signal_from_target): ... this.
3992 * corelow.c (core_open): Adjust to naming change. Replace comment.
3993 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3994 (gdb_signal_from_target): ... this. Adjust to
3995 default_gdb_signal_from_host naming change. Extend comment.
3996 (gdb_signal_to_host): Rename to ...
3997 (gdb_signal_to_target): ... this. Adjust to
3998 default_gdb_signal_to_host naming change.
3999 * gdbarch.h, gdbarch.c: Renegerate.
4001 2012-05-24 Pedro Alves <palves@redhat.com>
4005 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4007 2012-05-24 Pedro Alves <palves@redhat.com>
4011 Replace target_signal with gdb_signal throughout.
4013 2012-05-24 Pedro Alves <palves@redhat.com>
4017 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4018 string, instead of reusing the va_list argument.
4020 2012-05-24 Tom Tromey <tromey@redhat.com>
4022 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4025 2012-05-23 Doug Evans <dje@google.com>
4027 * symtab.c (search_symbols): Formatting fixes.
4028 (print_symbol_info): Formatting fixes.
4030 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4031 int64_t change to leb128 API.
4032 (read_encoded_value, decode_frame_entry_1): Ditto.
4033 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4034 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4035 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4036 (execute_stack_op): Ditto.
4037 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4038 (safe_read_uleb128, safe_read_sleb128): Ditto.
4039 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4040 (dwarf2_compile_expr_to_ax): Ditto.
4041 (locexpr_describe_location_piece): Ditto.
4042 (disassemble_dwarf_expression): Ditto.
4043 (locexpr_describe_location_1): Ditto.
4045 2012-05-23 Stan Shebs <stan@codesourcery.com>
4046 Kwok Cheung Yeung <kcy@codesourcery.com>
4048 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4049 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4050 (mi-cmd-info.o): New rule.
4051 * osdata.h (info_osdata_command): New declaration.
4052 * osdata.c (info_osdata_command): Change to non-static.
4053 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4054 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4055 * mi/mi-cmd-info.c: New file.
4057 2012-05-23 Doug Evans <dje@google.com>
4059 * symtab.c (search_symbols): Pass NULL for file_matcher to
4060 expand_symtabs_matching if there are no files to match.
4062 * gdbtypes.c (lookup_typename): Simplify.
4064 2012-05-23 Pedro Alves <palves@redhat.com>
4066 * arch-utils.h (default_target_signal_to_host): Delete.
4067 * arch-utils.c (default_target_signal_to_host): Delete.
4068 * gdbarch.sh (target_signal_to_host): Remove.
4069 * gdbarch.h, gdbarch.c: Regenerate.
4071 2012-05-22 Doug Evans <dje@google.com>
4073 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4075 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4076 (execute_cfa_program): Update to match API of leb128 functions.
4077 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4079 (read_unsigned_leb128, read_signed_leb128): Delete.
4080 (read_initial_length): Change type of buf argument to
4082 (read_encoded_value): Update to match API of leb128 functions.
4083 (decode_frame_entry): Change result to "const gdb_byte *", and
4084 similarly for "start" parameter.
4085 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4086 (dwarf2_build_frame_info): Change local frame_ptr to
4088 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4089 read_uleb128, read_sleb128. All callers updated.
4090 (safe_skip_leb128): New function.
4091 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4092 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4093 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4094 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4095 read_uleb128, read_sleb128.
4096 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4097 (execute_stack_op): Update to match API of leb128 functions.
4098 * dwarf2expr.h: #include "leb128.h".
4099 (read_uleb128, read_sleb128): Delete.
4100 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4101 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4102 * dwarf2loc.c (debug_loc_kind): New enum.
4103 (decode_debug_loc_addresses): New function.
4104 (decode_debug_loc_dwo_addresses): New function.
4105 (dwarf2_find_location_expression): Rewrite.
4106 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4107 (locexpr_describe_location_piece): Ditto.
4108 (disassemble_dwarf_expression): Ditto.
4109 (locexpr_describe_location_1): Ditto.
4110 (loclist_describe_location): Rewrite.
4111 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4112 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4113 (dwarf2_section_buffer_overflow_complaint): Renamed from
4114 dwarf2_macros_too_long_complaint. All callers updated.
4115 (skip_leb128): Delete.
4116 (init_cu_die_reader): Initialize reader->buffer_end.
4117 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4118 (skip_form_bytes): New arg buffer_end. All callers updated.
4119 Replace call to skip_leb128 with gdb_skip_leb128.
4120 (skip_unknown_opcode): New arg mac_end. All callers updated.
4121 (fill_in_loclist_baton): Initialize baton->from_dwo.
4123 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4125 * mips-linux-nat.c (mips_linux_read_description): Use a more
4126 verbose error message.
4128 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4130 * NEWS: Add MIPS/Linux DSP support.
4131 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4132 (SIGCONTEXT_DSPCTL): New macro.
4133 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4134 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4135 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4136 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4137 (N64_SIGCONTEXT_HI3): Likewise.
4138 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4139 (N64_SIGCONTEXT_LO3): Likewise.
4140 (N64_SIGCONTEXT_DSPCTL): Likewise.
4141 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4142 (mips_linux_o32_sigframe_init): Handle DSP registers.
4143 (mips_linux_n32n64_sigframe_init): Likewise.
4145 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4147 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4150 2012-05-22 Pedro Alves <palves@redhat.com>
4152 * target.h (store_waitstatus): Move declaration ...
4153 * inf-child.h (store_waitstatus): ... here.
4154 * target.c: Move inclusion of gdb_wait.h, and ...
4155 (store_waitstatus): ... this ...
4156 * inf-child.c: ... here.
4157 * linux-nat.c: Include inf-child.h.
4158 * rs6000-nat.c: Include inf-child.h.
4159 * spu-linux-nat.c: Include inf-child.h.
4161 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4163 * tracepoint.c (start_tracing): Add missing i18n markup.
4164 (stop_tracing, set_trace_user): Ditto.
4165 (set_trace_notes, set_trace_stop_notes): Ditto.
4167 2012-05-21 Tom Tromey <tromey@redhat.com>
4170 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4172 * value.h (value_cast_pointers): Update.
4173 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4174 (value_cast): Update.
4175 (update_search_result): New function.
4176 (do_search_struct_field): New, from search_struct_field. Check
4177 for ambiguous results.
4178 (search_struct_field): Rewrite.
4179 * infcall.c (value_arg_coerce): Update.
4180 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4181 value_cast_pointers.
4182 * ada-lang.c (ada_convert_actual): Update.
4184 2012-05-21 Tom Tromey <tromey@redhat.com>
4186 * macroexp.c (macro_stringify): Terminate the string.
4188 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4190 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4192 * auto-load.c (auto_load_expand_dir_vars): New function.
4193 (auto_load_safe_path_vec_update): Use it, remove the
4194 substitute_path_component call thanks to it.
4195 (auto_load_objfile_script): Remove the debug_file_directory processing.
4196 Use auto_load_expand_dir_vars, remove the substitute_path_component
4198 * configure: Regenerate.
4199 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4200 path. Escape $ also for $debugdir.
4201 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4202 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4204 2012-05-20 Doug Evans <dje@google.com>
4206 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4207 before use. Check for symtab->includes == NULL before scanning it.
4209 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4211 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4213 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4215 * NEWS: Add microMIPS support and "set mips compression",
4216 "show mips compression" commands.
4217 * mips-tdep.h (mips_isa): New enum.
4218 (gdbarch_tdep): Add mips_isa.
4219 (mips_pc_is_mips16): Update prototype.
4220 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4221 * mips-tdep.c (mips_compression_mips16): New variable.
4222 (mips_compression_micromips): Likewise.
4223 (mips_compression_strings): Likewise.
4224 (mips_compression_string): Likewise.
4225 (is_mips16_isa, is_micromips_isa): New functions.
4226 (is_mips16_addr): Rename to...
4227 (is_compact_addr): ... this.
4228 (unmake_mips16_addr): Likewise to...
4229 (unmake_compact_addr): ... this.
4230 (make_mips16_addr): Likewise to...
4231 (make_compact_addr): ... this.
4232 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4234 (mips_elf_make_msymbol_special): Handle microMIPS code.
4235 (msymbol_is_special): Rename to...
4236 (msymbol_is_mips16): ... this.
4237 (mips_make_symbol_special, mips_pc_is_mips16): Update
4239 (msymbol_is_mips, msymbol_is_micromips): New functions.
4240 (mips16_to_32_reg): Rename to...
4241 (mips_reg3_to_reg): ... this.
4242 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4243 (mips_pc_isa): Likewise.
4244 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4246 (mips_fetch_instruction): Pass return status instead of printing
4247 an error message if requested. Handle microMIPS code. Bail out
4249 (micromips_op): New macro.
4250 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4251 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4252 (b6s4_op, b7s3_reg): Likewise.
4253 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4254 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4255 (mips_insn_size): New function.
4256 (mips32_next_pc): Update mips_fetch_instruction call.
4257 (micromips_relative_offset7): New function.
4258 (micromips_relative_offset10): Likewise.
4259 (micromips_relative_offset16): Likewise.
4260 (micromips_pc_insn_size): Likewise.
4261 (micromips_bc1_pc): Likewise.
4262 (micromips_next_pc): Likewise.
4263 (unpack_mips16): Update mips_fetch_instruction call.
4264 (extended_mips16_next_pc): Update according to change to
4266 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4268 (mips16_scan_prologue): Update mips_fetch_instruction call.
4269 Update according to change to mips16_to_32_reg.
4270 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4271 (mips_insn16_frame_base_sniffer): Likewise.
4272 (micromips_decode_imm9): New function.
4273 (micromips_scan_prologue): Likewise.
4274 (mips_micro_frame_cache): Likewise.
4275 (mips_micro_frame_this_id): Likewise.
4276 (mips_micro_frame_prev_register): Likewise.
4277 (mips_micro_frame_sniffer): Likewise.
4278 (mips_micro_frame_unwind): New variable.
4279 (mips_micro_frame_base_address): New function.
4280 (mips_micro_frame_base): New variable.
4281 (mips_micro_frame_base_sniffer): New function.
4282 (mips32_scan_prologue): Update mips_fetch_instruction call.
4283 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4284 rather than for MIPS16.
4285 (mips_insn32_frame_base_sniffer): Likewise.
4286 (mips_addr_bits_remove): Handle microMIPS code.
4287 (deal_with_atomic_sequence): Rename to...
4288 (mips_deal_with_atomic_sequence): ... this. Update the type
4289 of the variable used to hold an instruction. Remove the ISA bit
4290 check. Update mips_fetch_instruction call.
4291 (micromips_deal_with_atomic_sequence): New function.
4292 (deal_with_atomic_sequence): Likewise.
4293 (mips_about_to_return): Handle microMIPS code. Update
4294 mips_fetch_instruction call.
4295 (heuristic_proc_start): Check for the standard MIPS ISA rather
4296 than for MIPS16. Update mips_pc_is_mips16 and
4297 mips_fetch_instruction calls. Handle microMIPS code.
4298 (mips_push_dummy_code): Handle microMIPS code.
4299 (mips_eabi_push_dummy_call): Likewise.
4300 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4301 (mips_o64_push_dummy_call): Handle microMIPS code.
4302 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4303 (is_delayed): Remove function.
4304 (mips_single_step_through_delay): Replace the call to is_delayed
4305 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4306 Handle microMIPS code.
4307 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4309 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4311 (micromips_in_function_epilogue_p): New function.
4312 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4314 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4316 (gdb_print_insn_mips): Likewise.
4317 (mips_breakpoint_from_pc): Likewise.
4318 (mips_remote_breakpoint_from_pc): New function.
4319 (mips32_instruction_has_delay_slot): Simplify making use of the
4320 updated mips_fetch_instruction interface.
4321 (micromips_instruction_has_delay_slot): New function.
4322 (mips16_instruction_has_delay_slot): Simplify making use of the
4323 updated mips_fetch_instruction interface.
4324 (mips_adjust_breakpoint_address): Check for the standard MIPS
4325 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4326 calls. Handle microMIPS code.
4327 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4328 (mips_skip_trampoline_code): Handle microMIPS code.
4329 (global_mips_compression): New function.
4330 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4331 file flags. Register the microMIPS remote breakpoint handler
4332 and heuristic frame unwinder.
4333 (show_mips_compression): New function.
4334 (_initialize_mips_tdep): Add the "set mips compression" and
4335 "show mips compression" commands.
4337 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4342 * amd64-darwin-tdep.c:
4343 * arm-symbian-tdep.c:
4347 * bfin-linux-tdep.c:
4354 * dwarf2-frame-tailcall.c:
4383 * microblaze-tdep.c:
4384 * mips-linux-tdep.c:
4392 * python/py-finishbreakpoint.c:
4393 * python/py-inferior.c:
4394 * python/py-infthread.c:
4398 * remote-m32r-sdi.c:
4402 * rs6000-aix-tdep.c:
4428 * amd64-darwin-tdep.c:
4429 * arm-symbian-tdep.c:
4430 * arm-tdep.c: Delete unused variables.
4432 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4434 Rename $ddir to $datadir.
4435 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4436 * auto-load.c (auto_load_safe_path_vec_update)
4437 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4438 * configure: Regenerate.
4439 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4440 Likewise. Remove the 'use $ddir' help string.
4442 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4444 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4445 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4447 2012-05-18 Tom Tromey <tromey@redhat.com>
4450 * valprint.h (struct value_print_options) <symbol_print>: New
4452 * valprint.c (user_print_options): Add default for symbol_print.
4453 (show_symbol_print): New function.
4454 (generic_val_print): Respect symbol_print.
4455 (_initialize_valprint): Add "print symbol" setting.
4456 * f-valprint.c (f_val_print): Respect symbol_print.
4457 * c-valprint.c (c_val_print): Respect symbol_print.
4459 * printcmd.c (print_address_symbolic): Return int. Ignore some
4461 (print_address_demangle): Return int.
4462 * defs.h: (print_address_symbolic): Return int.
4463 * value.h (print_address_demangle): Return int.
4465 2012-05-18 Tom Tromey <tromey@redhat.com>
4467 * valprint.c (val_print_string): Don't print leading space.
4468 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4469 print space before string or vtbl.
4470 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4472 * jv-valprint.c (java_value_print): Print space before string.
4473 * go-valprint.c (print_go_string): Print space before string.
4474 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4475 space before string.
4476 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4477 space before string or vtbl.
4478 * auxv.c (fprint_target_auxv): Print space after address.
4480 2012-05-18 Tom Tromey <tromey@redhat.com>
4482 * printcmd.c (print_address_demangle): Remove special case for 0.
4484 2012-05-18 Tom Tromey <tromey@redhat.com>
4486 * printcmd.c (print_address_demangle): Add 'opts' argument.
4487 * p-valprint.c (pascal_val_print): Update.
4488 * jv-valprint.c (java_val_print): Update.
4490 * valprint.c (generic_val_print): Update.
4491 (print_function_pointer_address): Add 'options' argument. Remove
4492 'addressprint' argument. Update.
4493 * m2-valprint.c (print_unpacked_pointer): Update.
4494 * gnu-v3-abi.c (print_one_vtable): Update.
4495 (gnuv3_print_method_ptr): Update.
4496 * f-valprint.c (f_val_print): Update.
4497 * cp-valprint.c (cp_print_value_fields): Update.
4498 * valprint.h (print_function_pointer_address): Update.
4499 * c-valprint.c (c_val_print): Update.
4501 2012-05-18 Tom Tromey <tromey@redhat.com>
4503 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4504 directly corresponding to the found psymtab.
4505 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4506 (dw2_find_pc_sect_symtab): Use it.
4507 * block.h (blockvector_contains_pc): Declare.
4508 * block.c (find_block_in_blockvector): New function.
4509 (blockvector_for_pc_sect): Use it.
4510 (blockvector_contains_pc): New function.
4512 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4514 * mips-tdep.h (mips_write_pc): New prototype.
4515 * mips-tdep.c (mips_write_pc): Make external, add description.
4516 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4519 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4521 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4523 (mips_unwind_pc, mips_write_pc): Likewise.
4524 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4527 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4529 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4530 proc_warn, proc_error, proc_get_status, proc_flags,
4531 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4532 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4533 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4534 proc_stop_process, proc_wait_for_stop, proc_run_process,
4535 proc_set_traced_signals, proc_set_traced_faults,
4536 proc_set_traced_sysentry, proc_set_traced_sysexit,
4537 proc_set_held_signals, proc_get_held_signals,
4538 proc_get_traced_signals, proc_get_traced_faults,
4539 proc_get_traced_sysentry, proc_get_traced_sysexit,
4540 proc_clear_current_fault, proc_set_current_signal,
4541 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4542 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4543 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4544 proc_get_current_thread, proc_get_current_thread,
4545 proc_get_current_thread, proc_update_threads,
4546 proc_update_threads, proc_update_threads, proc_update_threads,
4547 proc_iterate_over_threads, procfs_find_new_threads,
4548 procfs_pid_to_str): Make static. Remove advance declaration.
4549 (proc_cursig): Make static. Conditionalized defintion on
4550 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4551 (proc_syscall, proc_set_kill_on_last_close,
4552 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4553 proc_get_pending_signals, proc_get_signal_actions,
4554 proc_trace_signal, proc_ignore_signal): Delete.
4556 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4558 * coffread.c (cs_section_address): Passing proper argument for
4559 `bfd_get_section_vma'.
4560 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4561 `bfd_get_section_flags'.
4562 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4563 `bfd_get_section_vma'.
4565 2012-05-16 Tom Tromey <tromey@redhat.com>
4568 * macrotab.h: (macro_define_special): Declare.
4569 (enum macro_special_kind): New.
4570 (struct macro_definition) <argc, replacement>: Update comments.
4571 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4572 (macro_define_object_internal): New function.
4573 (macro_define_object): Use it.
4574 (macro_define_special): New function.
4575 (fixup_definition): New function.
4576 (macro_lookup_definition, foreach_macro_in_scope)
4577 (foreach_macro): Use fixup_definition.
4578 * macroexp.h (macro_stringify): Declare.
4579 * macroexp.c (free_buffer_return_text): New function.
4580 (stringify): Constify "arg".
4581 (macro_stringify): New function.
4582 * dwarf2read.c (macro_start_file): Call macro_define_special.
4584 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4585 Maciej W. Rozycki <macro@mips.com>
4587 * breakpoint.h (bp_location): Add related_address member.
4588 * inferior.h (get_return_value): Take a pointer to struct value
4589 instead of struct type for the function requested.
4590 * value.h (using_struct_return): Likewise.
4591 * gdbarch.sh (return_value): Take a pointer to struct value
4592 instead of struct type for the function requested.
4593 * breakpoint.c (set_breakpoint_location_function): Initialize
4594 related_address for bp_gnu_ifunc_resolver breakpoints.
4595 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4596 requested function's address to gdbarch_return_value.
4597 * eval.c (evaluate_subexp_standard): Pass the requested
4598 function's address to using_struct_return.
4599 * infcall.c (call_function_by_hand): Pass the requested
4600 function's address to using_struct_return and
4601 gdbarch_return_value.
4602 * infcmd.c (get_return_value): Take a pointer to struct value
4603 instead of struct type for the function requested.
4604 (print_return_value): Update accordingly.
4605 (finish_command_continuation): Likewise.
4606 * stack.c (return_command): Pass the requested function's
4607 address to using_struct_return and gdbarch_return_value.
4608 * value.c (using_struct_return): Take a pointer to struct value
4609 instead of struct type for the function requested. Pass the
4610 requested function's address to gdbarch_return_value.
4611 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4612 New function_value member, replacing function_type.
4613 (bpfinishpy_dealloc): Update accordingly.
4614 (bpfinishpy_pre_stop_hook): Likewise.
4615 (bpfinishpy_init): Likewise. Record the requested function's
4617 * mips-tdep.c (mips_fval_reg): New enum.
4618 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4619 words put in GP registers.
4620 (mips_o64_push_dummy_call): Update a comment.
4621 (mips_o32_return_value): Take a pointer to struct value instead
4622 of struct type for the function requested and use it to check if
4623 using the MIPS16 calling convention. Return the designated
4624 general purpose registers for floating-point values returned in
4626 (mips_o64_return_value): Likewise.
4627 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4628 (ppc_sysv_abi_broken_return_value): Likewise.
4629 (ppc64_sysv_abi_return_value): Likewise.
4630 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4631 value instead of struct type for the function requested.
4632 * amd64-tdep.c (amd64_return_value): Likewise.
4633 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4634 * arm-tdep.c (arm_return_value): Likewise.
4635 * avr-tdep.c (avr_return_value): Likewise.
4636 * bfin-tdep.c (bfin_return_value): Likewise.
4637 * cris-tdep.c (cris_return_value): Likewise.
4638 * frv-tdep.c (frv_return_value): Likewise.
4639 * h8300-tdep.c (h8300_return_value): Likewise.
4640 (h8300h_return_value): Likewise.
4641 * hppa-tdep.c (hppa32_return_value): Likewise.
4642 (hppa64_return_value): Likewise.
4643 * i386-tdep.c (i386_return_value): Likewise.
4644 * ia64-tdep.c (ia64_return_value): Likewise.
4645 * iq2000-tdep.c (iq2000_return_value): Likewise.
4646 * lm32-tdep.c (lm32_return_value): Likewise.
4647 * m32c-tdep.c (m32c_return_value): Likewise.
4648 * m32r-tdep.c (m32r_return_value): Likewise.
4649 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4650 * m68k-tdep.c (m68k_return_value): Likewise.
4651 (m68k_svr4_return_value): Likewise.
4652 * m88k-tdep.c (m88k_return_value): Likewise.
4653 * mep-tdep.c (mep_return_value): Likewise.
4654 * microblaze-tdep.c (microblaze_return_value): Likewise.
4655 * mn10300-tdep.c (mn10300_return_value): Likewise.
4656 * moxie-tdep.c (moxie_return_value): Likewise.
4657 * mt-tdep.c (mt_return_value): Likewise.
4658 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4659 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4660 (ppc_sysv_abi_broken_return_value): Likewise.
4661 (ppc64_sysv_abi_return_value): Likewise.
4662 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4663 * rl78-tdep.c (rl78_return_value): Likewise.
4664 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4665 * rx-tdep.c (rx_return_value): Likewise.
4666 * s390-tdep.c (s390_return_value): Likewise.
4667 * score-tdep.c (score_return_value): Likewise.
4668 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4669 (sh_return_value_fpu): Likewise.
4670 * sh64-tdep.c (sh64_return_value): Likewise.
4671 * sparc-tdep.c (sparc32_return_value): Likewise.
4672 * sparc64-tdep.c (sparc64_return_value): Likewise.
4673 * spu-tdep.c (spu_return_value): Likewise.
4674 * tic6x-tdep.c (tic6x_return_value): Likewise.
4675 * v850-tdep.c (v850_return_value): Likewise.
4676 * vax-tdep.c (vax_return_value): Likewise.
4677 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4678 * xtensa-tdep.c (xtensa_return_value): Likewise.
4679 * gdbarch.c: Regenerate.
4680 * gdbarch.h: Regenerate.
4682 2012-05-15 Tom Tromey <tromey@redhat.com>
4684 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4686 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4688 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4689 of command in two error message.
4691 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4693 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4695 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4697 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4699 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4701 * NEWS (show auto-load scripts-directory): Add forgotten command.
4703 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4705 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4708 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4710 * amd64-tdep.c: Include features/i386/x32.c and
4711 features/i386/x32-avx.c.
4712 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4713 initialize_tdesc_x32_avx.
4715 2012-05-14 Stan Shebs <stan@codesourcery.com>
4718 * breakpoint.h (enum bptype): New type bp_dprintf.
4719 (struct breakpoint): New field extra_string.
4720 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4721 (create_breakpoint): Add extra_string arg.
4722 * breakpoint.c (dprintf_breakpoint_ops): New.
4723 (is_breakpoint): Add bp_dprintf.
4724 (bpstat_what): Add dprintf case.
4725 (bptype_string): Ditto.
4726 (print_one_breakpoint_location): Ditto.
4727 (init_bp_location): Ditto.
4728 (bkpt_print_mention): Ditto.
4729 (dprintf_style_enums): New array.
4730 (dprintf_style): New global.
4731 (dprintf_function): New global.
4732 (dprintf_channel): New global.
4733 (update_dprintf_command_list): New function.
4734 (update_dprintf_commands): New function.
4735 (init_breakpoint_sal): Add extra_string argument, handle it.
4736 (create_breakpoint_sal): Add extra_string argument.
4737 (create_breakpoints_sal): Add extra_string argument, update callers.
4738 (find_condition_and_thread): Add extra argument.
4739 (create_breakpoint): Add extra_string argument, record it.
4740 (dprintf_command): New function.
4741 (break_command_1): Add arg to create_breakpoint call.
4742 (handle_gnu_v3_exceptions): Ditto.
4743 (trace_command): Ditto.
4744 (ftrace_command): Ditto.
4745 (strace_command): Ditto.
4746 (bkpt_print_mention): Add dprintf case.
4747 (create_breakpoint_sal_default): Add extra_string argument.
4748 (_initialize_breakpoint): Add new commands.
4749 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4750 * python/py-breakpoint.c (bppy_init): Ditto.
4751 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4753 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4755 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4757 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4759 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4762 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4764 Add a new function gdb.find_pc_line to the Python API.
4765 * NEWS (Python Scripting): Add entry about the new function.
4766 * python/python.c (gdbpy_find_pc_line): New function which
4767 implements gdb.find_pc_line.
4768 (GdbMethods): Add entry for the new function.
4770 2012-05-12 Pedro Alves <palves@redhat.com>
4772 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4773 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4775 2012-05-12 Eli Zaretskii <eliz@gnu.org>
4777 * inferior.c: Include completer.h
4778 (initialize_inferiors): Set completer of add-inferior to
4781 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4783 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4784 gdbarch_ptr_bit for x32 core dump.
4786 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4788 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4789 and features/i386/x32-avx-linux.c.
4791 2012-05-11 Stan Shebs <stan@codesourcery.com>
4792 Kwok Cheung Yeung <kcy@codesourcery.com>
4794 * NEWS: Describe new info os commands.
4795 * common/linux-osdata.c (PID_T, TIME_T): Define.
4796 (MAX_PID_T_STRLEN): New.
4797 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4799 (command_from_pid): Add comment. Change to use PID_T.
4800 (commandline_from_pid): Change to use PID_T.
4801 (user_from_pid): Add comment.
4802 (get_process_owner): Add comment. Change to use PID_T and
4804 (get_number_of_cpu_cores): Add comment.
4805 (get_cores_used_by_process): Add comment. Change to use PID_T and
4807 (linux_xfer_osdata_processes): Change to use PID_T and
4809 (compare_processes): New function.
4810 (linux_xfer_osdata_processgroups): New function.
4811 (linux_xfer_osdata_threads): Change to use PID_T.
4812 (linux_xfer_osdata_fds): New function.
4813 (format_socket_state, print_sockets): New functions.
4814 (union socket_addr): New union.
4815 (linux_xfer_osdata_isockets): New function.
4816 (time_from_time_t, group_from_gid): New functions.
4817 (linux_xfer_osdata_shm): New function.
4818 (linux_xfer_osdata_sem): New function.
4819 (linux_xfer_osdata_msg): New function.
4820 (linux_xfer_osdata_modules): New function.
4821 (osdata_table): Add new entries.
4822 * common/buffer.c (buffer_xml_printf): Add support for long and
4823 long long format specifiers.
4825 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4827 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4828 (tdesc_x32_avx_linux): Likewise.
4830 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4832 Implement multi-component --with-auto-load-dir.
4833 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4835 (--with-auto-load-safe-path): Update the default value description.
4836 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4838 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4839 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4840 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4841 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4842 "set auto-load scripts-directory".
4843 * config.in: Regenerate.
4844 * configure: Regenerate.
4845 * configure.ac (--with-auto-load-dir): New configure option.
4846 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4848 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4850 Provide $ddir substitution for --with-auto-load-safe-path.
4851 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4853 * auto-load.c: Include observer.h.
4854 (auto_load_safe_path_vec_update): Call substitute_path_component for
4855 each component. New variable ddir_subst.
4856 (auto_load_gdb_datadir_changed): New function.
4857 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4858 AUTO_LOAD_SAFE_PATH. New comment.
4859 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4860 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4861 * config.in: Regenerate.
4862 * configure: Regenerate.
4863 * configure.ac (--auto-load-safe-path): Rename
4864 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4865 GDB_DATADIR/auto-load.
4866 * defs.h (substitute_path_component): New declaration.
4867 * top.c: Include observer.h.
4868 (set_gdb_datadir): New function.
4869 (init_main): Install it for "set data-directory".
4870 * utils.c (substitute_path_component): New function.
4872 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4874 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4875 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4876 DEBUG_FILE_DIRECTORY. Handle multiple components of
4877 DEBUG_FILE_DIRECTORY.
4879 2012-05-10 Tom Tromey <tromey@redhat.com>
4881 * dwarf2read.c (recursively_write_psymbols): New function.
4882 (write_psymtabs_to_index): Use it.
4884 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4886 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4887 (load_partial_comp_unit): Update.
4888 (queue_comp_unit): Add argument 'pretend_language'.
4889 (process_queue): Update.
4890 (psymtab_to_symtab_1): Skip dependencies that have a user.
4891 (load_partial_comp_unit_reader): Give meaning to the 'data'
4893 (load_full_comp_unit): Add 'pretend_language' argument.
4894 (process_full_comp_unit): Add 'pretend_language' argument. Set
4896 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4898 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4899 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4901 (prepare_one_comp_unit): Add 'pretend_language' argument.
4903 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4904 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4905 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4906 (dw2_do_instantiate_symtab): Check whether symtab was read in
4908 (dw2_instantiate_symtab): Add assertion. Call
4909 process_cu_includes.
4910 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4911 (partial_symtab_p): New typedef.
4912 (set_partial_user): New function.
4913 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4914 (scan_partial_symbols): Add imported CU to imported_symtabs.
4915 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4916 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4917 (get_symtab, recursively_compute_inclusions)
4918 (compute_symtab_includes, process_cu_includes)
4919 (process_imported_unit_die): New functions.
4920 (process_die) <DW_TAG_imported_unit>: New case.
4921 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4923 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4925 (struct partial_die_info) <locdesc>: Remove.
4927 (process_psymtab_comp_unit): Add 'read_partial' argument.
4929 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4930 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4931 (add_partial_symbol): Update.
4932 (process_die): Handle DW_TAG_partial_unit.
4933 (read_file_scope): Update comment.
4934 (load_partial_dies): Handle DW_TAG_imported_unit.
4935 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4936 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4938 2012-05-10 Tom Tromey <tromey@redhat.com>
4940 * cc-with-dwz.sh: New file.
4942 2012-05-10 Tom Tromey <tromey@redhat.com>
4944 * symtab.h (struct symtab) <includes, user>: New fields.
4945 * block.h (struct block_iterator) <d, idx, which>: New fields.
4946 * block.c (initialize_block_iterator, find_iterator_symtab)
4947 (block_iterator_step, block_iter_name_step)
4948 (block_iter_match_step): New functions.
4949 (block_iterator_first, block_iterator_next)
4950 (block_iter_name_first, block_iter_name_next)
4951 (block_iter_match_first, block_iter_match_next): Rewrite.
4952 (get_block_symtab): New function.
4954 2012-05-10 Tom Tromey <tromey@redhat.com>
4956 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4958 * jit.c (finalize_symtab): Use allocate_global_block,
4960 * buildsym.c (finish_block_internal): New function, from old
4962 (finish_block): Rewrite.
4963 (end_symtab): Use finish_block_internal, set_block_symtab.
4964 * block.h (struct global_block): New.
4965 (allocate_global_block, set_block_symtab): Declare.
4966 * block.c (allocate_global_block, set_block_symtab): New
4969 2012-05-10 Tom Tromey <tromey@redhat.com>
4971 * psymtab.c (partial_map_expand_apply): Add assertion.
4972 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4973 (psymtab_to_symtab): Find unshared psymtab.
4974 (dump_psymtab): Print including psymtabs.
4975 (recursively_search_psymtabs): New function.
4976 (expand_symtabs_matching_via_partial): Use it.
4977 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4979 (enum psymtab_search_status): New.
4981 2012-05-10 Tom Tromey <tromey@redhat.com>
4983 * tracepoint.c (scope_info): Update.
4984 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4985 (find_pc_sect_symtab, search_symbols)
4986 (default_make_symbol_completion_list_break_on)
4987 (make_file_symbol_completion_list): Update.
4988 * symmisc.c (dump_symtab_1): Update.
4989 * stack.c (print_frame_args, iterate_over_block_locals)
4990 (print_frame_labels, iterate_over_block_arg_vars): Update.
4991 * python/py-block.c (block_object) <dict>: Remove.
4993 <iter>: Change type.
4994 (blpy_iter): Update.
4995 (blpy_block_syms_iternext): Update.
4996 * psymtab.c (map_block): Use block iterators.
4997 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4998 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4999 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5000 * infrun.c (check_exception_resume): Update.
5001 * cp-support.c (make_symbol_overload_list_block): Update.
5002 * coffread.c (patch_opaque_types): Update.
5003 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5004 * block.h (struct block_iterator): New.
5005 (block_iterator_first, block_iterator_next, block_iter_name_first)
5006 (block_iter_name_next, block_iter_match_first)
5007 (block_iter_match_next): Declare.
5008 (ALL_BLOCK_SYMBOLS): Redefine.
5009 * block.c (block_iterator_first, block_iterator_next)
5010 (block_iter_name_first, block_iter_name_next)
5011 (block_iter_match_first, block_iter_match_next): New functions.
5012 * ada-lang.c (ada_add_block_symbols)
5013 (ada_make_symbol_completion_list): Use block iterator.
5015 2012-05-10 Tom Tromey <tromey@redhat.com>
5017 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5018 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5019 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5020 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5021 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5024 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5026 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5027 print-file-var-lib2.c, print-file-var-main.c and
5028 print-file-var.exp (located in gdb/testsuite/gdb.base).
5030 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5032 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5033 try locating the symbol in the symbol's own objfile first, before
5034 extending the search to all objfiles.
5035 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5036 out of lookup_symbol_aux_symtabs.
5037 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5038 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5039 Do not search EXCLUDE_OBJFILE.
5040 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5041 (lookup_symbol_global): Search for matches in the block's objfile
5042 first, before searching all other objfiles.
5044 2012-05-10 Tristan Gingold <gingold@adacore.com>
5046 * printcmd.c (set_command): Add pre/post inc/dec.
5048 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5050 * gdb.1: Document -ex option.
5052 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5054 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5055 * inferior.h (AT_SYMBOL): Delete.
5057 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5059 * mips-tdep.c (mips_push_dummy_code): New function.
5060 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5061 ON_STACK and install mips_push_dummy_code as our gdbarch
5062 push_dummy_code routine.
5064 2012-05-09 Pedro Alves <palves@redhat.com>
5066 * target.c (set_maintenance_target_async_permitted): Rename to ...
5067 (set_target_async_command): ... this.
5068 (show_maintenance_target_async_permitted): Rename to ...
5069 (show_target_async_command): ... this.
5070 (initialize_targets): Adjust.
5072 2012-05-08 Doug Evans <dje@google.com>
5074 * go-exp.y (classify_name): Add missing assignment of fields of
5077 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5079 Display the ">" prompt in interactive mode while reading canned
5080 commands, even when the current interpreter is MI.
5082 * interps.c (interp_set_temp): New function.
5084 * interps.h (interp_set_temp): Add prototype.
5086 * cli/cli-script.c (restore_interp): New cleanup function.
5087 (read_command_lines): Temporarily override the current interpreter
5088 with CLI and arrange for restoring the original one.
5090 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5092 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5094 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5096 * probe.c (parse_probes): Move conditional to check for
5097 debuginfo files from here...
5098 * stap-probe.c (stap_get_probes): ... to here.
5100 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5101 H.J. Lu <hongjiu.lu@intel.com>
5103 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5104 `movl %esp, %ebp' for the X32 ABI.
5106 2012-05-07 Tom Tromey <tromey@redhat.com>
5108 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5110 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5111 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5112 (dwarf_stack_op_name): Remove.
5113 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5114 (decode_locdesc): Use get_DW_OP_name.
5115 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5116 (dwarf2_compile_expr_to_ax): Likewise.
5117 (disassemble_dwarf_expression): Likewise.
5118 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5120 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5122 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5123 (sh_linux_sigtramp_cache): New function.
5124 (sh_linux_sigreturn_init): New function.
5125 (sh_linux_rt_sigreturn_init): New function.
5126 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5128 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5130 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5131 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5132 (sh_linux_init_abi): Add init calls to register new tramp_frame
5133 definitions under 32-bit SH, update comments.
5135 2012-05-07 Pedro Alves <palves@redhat.com>
5139 * amd64-linux-tdep.c: Include glibc-tdep.h.
5140 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5141 gdbarch_skip_solib_resolver callback.
5143 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5145 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5146 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5147 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5148 (add_auto_load_safe_path): Change the error message.
5149 (_initialize_auto_load): Change the "safe-path" help text.
5150 * configure: Regenerate
5151 * configure.ac (--without-auto-load-safe-path): Set
5152 WITH_AUTO_LOAD_SAFE_PATH to /.
5154 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5156 * stap-probe.h: Do not include unecessary `probe.h'.
5158 2012-05-05 Alan Modra <amodra@gmail.com>
5160 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5161 bfd_und_section_ptr.
5162 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5163 and bfd_com_section_ptr.
5165 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5167 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5169 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5171 * windows-nat.h (segment_register_p_ftype): New typedef.
5172 (windows_set_segment_register_p): Add declaration.
5173 * windows-nat.c (segment_register_p): New static global.
5174 (windows_set_segment_register_p): New function.
5175 (do_windows_fetch_inferior_registers): Add special handling
5176 for segment registers.
5177 * amd64-windows-nat.c: #include "amd64-tdep.h".
5178 (amd64_windows_segment_register_p): New function.
5179 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5180 * i386-windows-nat.c: #include "i386-tdep.h".
5181 (i386_windows_segment_register_p): New function.
5182 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5184 2012-05-04 Tristan Gingold <gingold@adacore.com>
5186 * printcmd.c (set_command): Emit a warning if the expression is not
5189 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5191 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5194 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5196 * stap-probe.c (stap_is_operator): Change declaration.
5197 (stap_get_opcode): Change return value.
5198 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5199 `stap_parse_argument_1'.
5201 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5203 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5206 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5208 Add two new methods global_block and static_block to gdb.Symtab
5210 * NEWS (Python scripting): Add entry about the new methods.
5211 * python/py-symtab.c (stpy_global_block): New function which
5212 implements the gdb.Symtab.global_block() method.
5213 (stpy_static_block): New function which implements the
5214 gdb.Symtab.static_block() method.
5215 (symtab_object_methods): Add entries for the two new methods.
5217 2012-05-03 Doug Evans <dje@google.com>
5219 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5222 2012-05-03 Yao Qi <yao@codesourcery.com>
5224 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5226 (i386_process_record): Ditto.
5228 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5230 * infcall.c (unwind_on_signal_p): Make static.
5232 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5234 * sol-thread.c (solaris_pid_to_str): Make static.
5235 (_initialize_sol_thread): Add prototype.
5237 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5239 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5241 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5243 * MAINTAINERS: Remove myself.
5245 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5247 Fix --without-auto-load-safe-path for MS-Windows host platform.
5248 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5250 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5252 * gdb_curses.h: Undefine KEY_EVENT before including curses
5253 headers. Move "#undef MOUSE_MOVED" before any curses header
5256 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5258 * features/i386/i386-mmx-linux.c: Regenerate.
5259 * features/rs6000/powerpc-32.c: Likewise.
5260 * features/rs6000/powerpc-32l.c: Likewise.
5261 * features/rs6000/powerpc-403.c: Likewise.
5262 * features/rs6000/powerpc-403gc.c: Likewise.
5263 * features/rs6000/powerpc-405.c: Likewise.
5264 * features/rs6000/powerpc-505.c: Likewise.
5265 * features/rs6000/powerpc-601.c: Likewise.
5266 * features/rs6000/powerpc-602.c: Likewise.
5267 * features/rs6000/powerpc-603.c: Likewise.
5268 * features/rs6000/powerpc-604.c: Likewise.
5269 * features/rs6000/powerpc-64.c: Likewise.
5270 * features/rs6000/powerpc-64l.c: Likewise.
5271 * features/rs6000/powerpc-750.c: Likewise.
5272 * features/rs6000/powerpc-860.c: Likewise.
5273 * features/rs6000/powerpc-e500.c: Likewise.
5274 * features/rs6000/powerpc-e500l.c: Likewise.
5275 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5276 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5277 * features/rs6000/rs6000.c: Likewise.
5279 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5281 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5283 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5284 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5285 (stap_parse_argument) <e>: Likewise.
5286 (handle_stap_probe) <byte_order>: Likewise.
5288 2012-04-30 Doug Evans <dje@google.com>
5290 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5291 init_and_read_dies_worker. All callers updated.
5292 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5293 replaced with init_cutu_and_read_dies.
5294 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5295 (find_partial_die): Remove FIXME. Don't free current CU.
5297 2012-04-30 Sterling Augustine <saugustine@google.com>
5299 * contrib: New directory.
5300 * contrib/test_pubnames_and_indexes.py: New file.
5302 2012-04-30 Doug Evans <dje@google.com>
5304 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5305 All callers updated.
5306 (init_cu_die_reader): Verify the section is non-empty.
5307 (dwarf_decode_line_header): Don't dereference section->asection
5308 until we know the section is present.
5310 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5312 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5315 2012-04-29 Yao Qi <yao@codesourcery.com>
5317 * gdb-code-style.el: New hook gdb-markup-hook
5318 and gdb-comment-hook.
5320 2012-04-28 Doug Evans <dje@google.com>
5322 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5323 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5325 * symfile.h (dwarf2_debug_sections): New member addr.
5326 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5327 (ctx_no_get_addr_index): New function.
5328 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5329 (ctx_no_get_addr_index): Declare.
5330 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5331 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5332 (dwarf_expr_ctx_funcs): Update.
5333 (needs_get_addr_index): New function.
5334 (needs_frame_ctx_funcs): Update.
5335 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5336 * dwarf2read.c: #include "gdbcore.h".
5337 (dwarf2_per_objfile): New members addr, dwo_files.
5338 (dwarf2_elf_names): Add entry for addr.
5339 (struct dwo_section_names): New type.
5340 (dwo_section_names): New static global.
5341 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5342 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5343 old debug_types_section member updated to use this.
5344 Rename member debug_types_section to info_or_types_section,
5346 (signatured_type): Rename member type_offset to type_offset_in_tu,
5347 all uses updated. New member type_offset_in_section.
5348 (struct dwo_sections): New type.
5349 (struct dwo_unit): New type.
5350 (struct dwo_file): New type.
5351 (die_reader_specs): New member dwo_file.
5352 (dwarf2_locate_sections): Watch for .debug_addr.
5353 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5354 (dwarf2_read_section): Get bfd of section from bfd's asection,
5356 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5357 (create_signatured_type_table_from_index): Initialize
5358 sig_type->info_or_types_section.
5359 (dw2_get_file_names): Statement lists for type units with DWO files
5360 live in the DWO file.
5361 (create_debug_types_hash_table): New function.
5362 (create_all_type_units): Rewrite.
5363 (init_cu_die_reader): New arg dwo_file, all callers updated.
5364 (init_and_read_dies_worker): Get section from
5365 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5366 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5367 continue reading the CU/TU from there.
5368 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5369 updated. Get section from this_cu->info_or_types_section.
5370 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5371 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5372 DW_FORM_GNU_str_index.
5373 (hash_dwo_file, eq_dwo_file): New functions.
5374 (allocate_dwo_file_hash_table): New function.
5375 (hash_dwo_unit, eq_dwo_unit): New functions.
5376 (allocate_dwo_unit_table): New function.
5377 (dwarf2_locate_dwo_sections): New function.
5378 (struct create_dwo_info_table_data): New type.
5379 (create_debug_info_hash_table_reader): New function.
5380 (create_debug_info_hash_table): New function.
5381 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5382 (lookup_dwo_file): New function.
5383 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5384 (free_dwo_file, free_dwo_file_cleanup): New functions.
5385 (free_dwo_file_from_slot, free_dwo_files): New functions.
5386 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5387 (dwarf2_record_block_ranges): Ditto.
5388 (read_partial_die): Ditto.
5389 (process_enumeration_scope): Update to use type_offset_in_section.
5390 (read_full_die_1): New function.
5391 (read_full_die): Rewrite.
5392 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5393 DW_FORM_GNU_str_index.
5394 (read_addr_index_1, read_addr_index): New functions.
5395 (read_addr_index_from_leb128): New function.
5396 (struct dwarf2_read_addr_index_data): New type.
5397 (dwarf2_read_addr_index_reader): New function.
5398 (dwarf2_read_addr_index): New function.
5399 (read_str_index): New function.
5400 (leb128_size): New function.
5401 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5402 If processing a type unit from a DWO file, get the line section
5404 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5405 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5406 DW_FORM_GNU_str_index.
5407 (lookup_die_type): Check whether section offset of type's die is
5408 known before looking it up. Remove assert. Condition can
5409 legimately happen for inter-cu type references.
5410 (dwarf_attr_name): Handle Fission attributes.
5411 (dwarf_form_name): Handle Fission forms.
5412 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5413 DW_FORM_GNU_str_index.
5414 (follow_die_sig): Update to use type_offset_in_section.
5415 (decode_locdesc): New case DW_OP_GNU_addr_index.
5416 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5417 DW_FORM_GNU_str_index.
5418 (cu_debug_loc_section): New function.
5419 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5420 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5421 Free DWO files if present.
5422 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5424 Refactor DIE reading.
5425 * dwarf2read.c (dwarf2_per_objfile): Replace members
5426 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5427 (die_reader_specs): New member "die_section". Temporarily make
5428 member "buffer" non-const, pending constifying all info_ptr uses.
5429 (die_reader_func_ftype): New typedef.
5430 (dw2_get_file_names_reader): New function.
5431 (dw2_get_file_names): Rewrite.
5432 (read_and_check_type_unit_head): Rename arg type_offset to
5434 (create_all_type_units): Improve debugging message.
5435 Improve dummy type unit check.
5436 (init_cu_die_reader): New arg "section". All callers updated.
5437 (init_and_read_dies_worker): New function.
5438 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5439 (init_cutu_and_read_dies_no_follow): New function.
5440 (init_cutu_and_read_dies_simple): New function.
5441 (process_psymtab_comp_unit_reader): New function.
5442 (process_psymtab_comp_unit): Delete args section,
5443 is_debug_types_section. Rewrite. All callers updated.
5444 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5445 All callers updated. Rewrite.
5446 (load_partial_comp_unit_reader): New function.
5447 (load_partial_comp_unit): Rewrite.
5448 (skip_children): New arg reader. Delete args buffer, cu.
5449 All callers updated.
5450 (skip_one_die): New arg reader. Delete args buffer, cu.
5451 All callers updated.
5452 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5453 All callers updated.
5454 (load_full_comp_unit_reader): New function.
5455 (load_full_comp_unit): Rewrite.
5456 (read_comp_unit): Delete.
5457 (read_die_and_children_1): Delete, contents moved ...
5458 (read_die_and_children): ... here.
5459 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5460 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5461 All callers updated.
5462 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5463 All callers updated.
5464 (find_partial_die): Rewrite load_all_dies support.
5465 (read_attribute_value): New arg reader. Delete args abfd, cu.
5466 All callers updated.
5467 (read_attribute): New arg reader. Delete args abfd, cu.
5468 All callers updated.
5469 (load_full_type_unit): Add assert.
5470 (read_signatured_type_reader): New function.
5471 (read_signatured_type): Rewrite.
5472 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5473 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5474 All callers updated. Set per_cu->cu = NULL after freeing it.
5475 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5476 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5477 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5478 (set_die_type): Update.
5479 (get_die_type_at_offset): Update.
5480 (read_file_scope): Call prepare_one_comp_unit.
5481 (read_type_unit_scope): Ditto.
5482 (prepare_one_comp_unit): Set producer if present.
5484 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5486 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5487 gettext function on `error'.
5489 2012-04-27 Doug Evans <dje@google.com>
5491 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5494 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5495 Tom Tromey <tromey@redhat.com>
5497 * breakpoint.c (struct breakpoint_objfile_data)
5498 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5499 <exception_probes>: New fields.
5500 (free_breakpoint_probes): New function.
5501 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5502 `_Unwind_DebugHook'.
5503 (create_exception_master_breakpoint): Likewise.
5504 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5505 * infrun.c: Including necessary header files for handling SystemTap
5507 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5508 via SystemTap probes.
5509 (check_exception_resume): Remove `func' argument. Handle exception
5510 unwinding breakpoint set via a SystemTap probe.
5511 (insert_exception_resume_from_probe): New function.
5513 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5514 Tom Tromey <tromey@redhat.com>
5515 Jan Kratochvil <jan.kratochvil@redhat.com>
5517 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5518 (COMMON_OBS): Likewise.
5519 (HFILES_NO_SRCDIR): Add `probe'.
5520 * NEWS: Mention support for static and SystemTap probes.
5521 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5522 SystemTap probes' arguments parser.
5523 * arm-linux-tdep.c: Including headers needed to perform the parsing
5524 of SystemTap probes' arguments.
5525 (arm_stap_is_single_operand): New function.
5526 (arm_stap_parse_special_token): Likewise.
5527 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5528 probes' arguments parser.
5529 * ax-gdb.c (require_rvalue): Removing static declaration.
5530 (gen_expr): Likewise.
5531 * ax-gdb.h (gen_expr): Declaring function.
5532 (require_rvalue): Likewise.
5533 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5534 (bkpt_probe_breakpoint_ops): New variable.
5535 (momentary_breakpoint_from_master): Set the `probe' value.
5536 (add_location_to_breakpoint): Likewise.
5537 (break_command_1): Using proper breakpoint_ops according to the
5538 argument passed by the user in the command line.
5539 (bkpt_probe_insert_location): New function.
5540 (bkpt_probe_remove_location): Likewise.
5541 (bkpt_probe_create_sals_from_address): Likewise.
5542 (bkpt_probe_decode_linespec): Likewise.
5543 (tracepoint_probe_create_sals_from_address): Likewise.
5544 (tracepoint_probe_decode_linespec): Likewise.
5545 (tracepoint_probe_breakpoint_ops): New variable.
5546 (trace_command): Using proper breakpoint_ops according to the
5547 argument passed by the user in the command line.
5548 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5549 static probes on breakpoints and tracepoints.
5550 * breakpoint.h (struct bp_location) <probe>: New field.
5551 * cli-utils.c (skip_spaces_const): New function.
5552 (extract_arg): Likewise.
5553 * cli-utils.h (skip_spaces_const): Likewise.
5554 (extract_arg): Likewise.
5555 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5556 * configure.ac: Append `stap-probe.o' to be generated when ELF
5558 * configure: Regenerate.
5559 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5560 * elfread.c: Include `probe.h' and `arch-utils.h'.
5561 (probe_key): New variable.
5562 (elf_get_probes): New function.
5563 (elf_get_probe_argument_count): Likewise.
5564 (elf_evaluate_probe_argument): Likewise.
5565 (elf_compile_to_ax): Likewise.
5566 (elf_symfile_relocate_probe): Likewise.
5567 (stap_probe_key_free): Likewise.
5568 (elf_probe_fns): New variable.
5569 (elf_sym_fns): Add `sym_probe_fns' value.
5570 (elf_sym_fns_lazy_psyms): Likewise.
5571 (elf_sym_fns_gdb_index): Likewise.
5572 (_initialize_elfread): Initialize objfile cache for static
5574 * gdb_vecs.h (struct probe): New forward declaration.
5575 (probe_p): New VEC declaration.
5576 * gdbarch.c: Regenerate.
5577 * gdbarch.h: Regenerate.
5578 * gdbarch.sh (stap_integer_prefix): New variable.
5579 (stap_integer_suffix): Likewise.
5580 (stap_register_prefix): Likewise.
5581 (stap_register_suffix): Likewise.
5582 (stap_register_indirection_prefix): Likewise.
5583 (stap_register_indirection_suffix): Likewise.
5584 (stap_gdb_register_prefix): Likewise.
5585 (stap_gdb_register_suffix): Likewise.
5586 (stap_is_single_operand): New function.
5587 (stap_parse_special_token): Likewise.
5588 (struct stap_parse_info): Forward declaration.
5589 * i386-tdep.c: Including headers needed to perform the parsing
5590 of SystemTap probes' arguments.
5591 (i386_stap_is_single_operand): New function.
5592 (i386_stap_parse_special_token): Likewise.
5593 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5594 probes' arguments parser.
5595 * i386-tdep.h (i386_stap_is_single_operand): New function.
5596 (i386_stap_parse_special_token): Likewise.
5597 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5598 * mipsread.c (ecoff_sym_fns): Likewise.
5599 * objfiles.c (objfile_relocate1): Support relocation for static
5601 * parse.c (prefixify_expression): Remove static declaration.
5602 (initialize_expout): Likewise.
5603 (reallocate_expout): Likewise.
5604 * parser-defs.h (initialize_expout): Declare function.
5605 (reallocate_expout): Likewise.
5606 (prefixify_expression): Likewise.
5607 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5608 of SystemTap probes' arguments.
5609 (ppc_stap_is_single_operand): New function.
5610 (ppc_stap_parse_special_token): Likewise.
5611 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5612 probes' arguments parser.
5613 * probe.c: New file, for generic statically defined probe support.
5614 * probe.h: Likewise.
5615 * s390-tdep.c: Including headers needed to perform the parsing of
5616 SystemTap probes' arguments.
5617 (s390_stap_is_single_operand): New function.
5618 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5619 probes' arguments parser.
5620 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5621 * stap-probe.c: New file, for SystemTap probe support.
5622 * stap-probe.h: Likewise.
5623 * symfile.h: Include `gdb_vecs.h'.
5624 (struct sym_probe_fns): New struct.
5625 (struct sym_fns) <sym_probe_fns>: New field.
5626 * symtab.c (init_sal): Initialize `probe' field.
5627 * symtab.h (struct probe): Forward declaration.
5628 (struct symtab_and_line) <probe>: New field.
5629 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5631 (stop_tracing): Likewise.
5632 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5634 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5635 Tom Tromey <tromey@redhat.com>
5637 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5638 and to compile agent expressions.
5639 * infrun.c (siginfo_make_value): New argument `ignore'.
5640 (siginfo_funcs): New struct.
5641 (_initialize_infrun): New argument when calling
5642 `create_internalvar_type_lazy'.
5643 * thread.c (thread_id_make_value): New argument `ignore'.
5644 (thread_funcs): New struct.
5645 (_initialize_thread): New argument when calling
5646 `create_internalvar_type_lazy'.
5647 * tracepoint.c (sdata_make_value): New argument `ignore'.
5648 (sdata_funcs): New struct.
5649 (_initialize_tracepoint): New argument when calling
5650 `create_internalvar_type_lazy'.
5651 * value.c (make_value): New struct.
5652 (create_internalvar_type_lazy): New argument `data'.
5653 (compile_internalvar_to_ax): New function.
5654 (value_of_internalvar): Properly handling `make_value' case.
5655 (clear_internalvar): Likewise.
5656 (show_convenience): Adding `TRY_CATCH' block.
5657 * value.h (internalvar_make_value): Delete, replace by...
5658 (struct internalvar_funcs): ... this.
5659 (create_internalvar_type_lazy) <fun>: Delete argument.
5660 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5661 (compile_internalvar_to_ax): New function.
5662 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5663 (tlb_funcs): New struct.
5664 (_initialize_windows_tdep): New argument when calling
5665 `create_internalvar_type_lazy'.
5667 2012-04-27 Mark Wielaard <mjw@redhat.com>
5669 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5670 see whether it is an address or a constant offset from DW_AT_low_pc.
5671 (dwarf2_record_block_ranges): Likewise.
5672 (read_partial_die): Likewise.
5674 2012-04-26 Mark Wielaard <mjw@redhat.com>
5676 * MAINTAINERS (Write After Approval): Add myself to the list.
5678 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5680 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5681 (proc_prettyprint_signal): Likewise.
5682 (proc_prettyprint_faultset): Likewise.
5683 (proc_prettyprint_fault): Likewise.
5684 (proc_prettyprint_actionset): Likewise.
5685 (proc_prettyprint_flags): Move to new proc-flags.c section.
5686 (proc_prettyfprint_flags): New prototype.
5687 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5688 (proc_syscall, proc_cursig): Likewise.
5689 (proc_set_kill_on_last_close): Likewise.
5690 (proc_unset_kill_on_last_close): Likewise.
5691 (proc_set_watchpoint): Make static.
5692 (proc_delete_dead_threads): Likewise.
5693 (procfs_set_watchpoint): Likewise.
5694 (_initialize_procfs): Add prototype.
5695 * proc-events.c: Include proc-utils.h.
5696 (init_syscall_table): Make static.
5697 * proc-api.c (_initialize_proc_api): Add prototype.
5698 * proc-flags.c: Include proc-utils.h.
5700 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5702 * configure.ac: Add AC_ARG_PROGRAM.
5703 * configure: Regenerate.
5705 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5707 Fix DW_AT_lower_bound defaults for DWARF-4+.
5708 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5709 high. New variable low_default_is_valid. Implement DWARF-4+
5710 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5711 no default by the DWARF standard.
5713 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5714 Maciej W. Rozycki <macro@codesourcery.com>
5716 * infrun.c (handle_inferior_event): Move the check for return
5717 trampolines ahead of the check for function trampolines.
5718 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5719 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5720 (mips_str_mips16_ret_stub): Likewise.
5721 (mips_str_call_fp_stub): Likewise.
5722 (mips_str_call_stub): Likewise.
5723 (mips_str_fn_stub): Likewise.
5724 (mips_str_pic): Likewise.
5725 (mips_in_frame_stub): New function.
5726 (mips_unwind_pc): Return the return address rather than the PC
5727 if the PC of an intermediate frame is inside a call thunk.
5728 (mips_is_stub_suffix): New function.
5729 (mips_is_stub_mode): Likewise.
5730 (mips_get_mips16_fn_stub_pc): Likewise.
5731 (mips_skip_mips16_trampoline_code): Update to handle all the
5732 currently generated stub types. Don't recurse into __fn_stub
5733 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5734 Use cooked register accesses.
5735 (mips_in_return_stub): Reintroduce function.
5736 (mips_skip_trampoline_code): Traverse trampolines recursively.
5737 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5739 2012-04-26 Joel Brobecker <brobecker@adacore.com>
5743 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5745 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5746 * features/arm-with-m-vfp-d16.xml: New file. Describes
5747 Cortex-M with VFPv4-sp-d16 FPU register layout.
5748 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5749 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5750 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5751 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5752 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5754 2012-04-25 Doug Evans <dje@google.com>
5756 * cli/cli-decode.c (print_doc_line): Use stream instead of
5759 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5761 * features/arm-with-iwmmxt.c: Regenerate.
5762 * features/arm-with-m-fpa-layout.c: Likewise.
5763 * features/arm-with-m.c: Likewise.
5764 * features/arm-with-neon.c: Likewise.
5765 * features/arm-with-vfpv2.c: Likewise.
5766 * features/arm-with-vfpv3.c: Likewise.
5767 * features/mips-dsp-linux.c: Likewise.
5768 * features/mips-linux.c: Likewise.
5769 * features/mips64-dsp-linux.c: Likewise.
5770 * features/mips64-linux.c: Likewise.
5771 * features/s390-linux32.c: Likewise.
5772 * features/s390-linux32v1.c: Likewise.
5773 * features/s390-linux32v2.c: Likewise.
5774 * features/s390-linux64.c: Likewise.
5775 * features/s390-linux64v1.c: Likewise.
5776 * features/s390-linux64v2.c: Likewise.
5777 * features/s390x-linux64.c: Likewise.
5778 * features/s390x-linux64v1.c: Likewise.
5779 * features/s390x-linux64v2.c: Likewise.
5780 * features/tic6x-c62x-linux.c: Likewise.
5781 * features/tic6x-c62x.c: Likewise.
5782 * features/tic6x-c64x-linux.c: Likewise.
5783 * features/tic6x-c64x.c: Likewise.
5784 * features/tic6x-c64xp-linux.c: Likewise.
5785 * features/tic6x-c64xp.c: Likewise.
5786 * target-descriptions.c: Only generate `field_type' and `type'
5787 variables when needed.
5789 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5791 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5793 2012-04-25 Doug Evans <dje@google.com>
5795 Initial pass at Go language support.
5797 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5799 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5800 (YYFILES): Add go-exp.c.
5801 (YYOBJ): Add go-exp.o.
5802 (local-maintainer-clean): Delete go-exp.c.
5803 * defs.h (enum language): Add language_go.
5804 * dwarf2read.c: #include "go-lang.h".
5805 (fixup_go_packaging): New function.
5806 (process_full_comp_unit): Call it when processing Go CUs.
5807 (dwarf2_physname): Add Go support.
5808 (read_file_scope): Handle missing language spec for GNU Go.
5809 (set_cu_language): Handle DW_LANG_Go.
5810 * go-exp.y: New file.
5811 * go-lang.h: New file.
5812 * go-lang.c: New file.
5813 * go-typeprint.c: New file.
5814 * go-valprint.c: New file.
5815 * symtab.c: #include "go-lang.h".
5816 (symbol_set_language): Handle language_go.
5817 (symbol_find_demangled_name, symbol_set_names): Ditto.
5818 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5820 2012-04-24 Jim Meyering <meyering@redhat.com>
5822 avoid a few strncpy-induced buffer overruns
5823 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5824 fname and psargs before trying to concatenate.
5825 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5826 "name" before applying strchr.
5828 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5830 * CONTRIBUTE: Use unified diff instead of context diff when
5833 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5835 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5836 code. Handle JR.HB correctly.
5838 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5841 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5842 with the other MIPS16 helpers.
5844 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5846 * observer.sh: Conditionally declare `args', thus cleaning up
5847 unused instances of this variable.
5849 2012-04-24 Yao Qi <yao@codesourcery.com>
5851 Revert this patch to allow breakpoint always-inserted
5853 2011-12-05 Pedro Alves <pedro@codesourcery.com>
5854 * breakpoint.c: Include record.h.
5855 (breakpoints_always_inserted_mode): Return false when the record
5858 * breakpoint.c (iterate_over_bp_locations): New.
5859 * breakpoint.h: Declare.
5860 New typedef walk_bp_location_callback.
5861 * record.c (record_open): Call record_init_record_breakpoints.
5862 (record_sync_record_breakpoints): New.
5863 (record_init_record_breakpoints): New.
5864 * NEWS: Mention supporting breakpoint always-inserted mode in
5867 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5869 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5872 2012-04-24 Yao Qi <yao@codesourcery.com>
5874 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5875 (is_catchpoint): ... it.
5876 (print_one_breakpoint_location): Caller update.
5877 * breakpoint.h: Update declaration.
5879 2012-04-23 David S. Miller <davem@davemloft.net>
5881 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5883 2012-04-23 Tom Tromey <tromey@redhat.com>
5885 * buildsym.c (add_free_pendings): Remove.
5886 * buildsym.h (add_free_pendings): Remove.
5888 2012-04-23 Doug Evans <dje@google.com>
5890 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5891 attr.u.unsnd instead of attr.u.addr.
5892 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5893 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5895 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5896 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5898 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5900 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5902 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5903 (mips_o32_return_value): Likewise.
5904 (mips_o64_return_value): Likewise.
5906 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5908 * ada-lang.c (ada_evaluate_subexp): Add cases for
5909 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5910 their treatment in eval.c.
5912 2012-04-21 David S. Miller <davem@davemloft.net>
5914 * sparc-tdep.c (X_DISP10): Define.
5915 (sparc_analyze_control_transfer): Handle compare-and-branch.
5917 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5919 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5920 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5922 2012-04-20 Nigel Stephens <nigel@mips.com>
5923 Maciej W. Rozycki <macro@codesourcery.com>
5925 * mips-tdep.c (mips_float_register_p): New function.
5926 (mips_convert_register_float_case_p): Use mips_float_register_p.
5927 (mips_register_type): Likewise.
5928 (mips_print_register): Likewise.
5929 (print_gp_register_row): Likewise.
5930 (mips_print_registers_info): Likewise.
5932 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5934 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5937 2012-04-20 Andrew Pinski <apinski@cavium.com>
5939 * MAINTAINERS (Write After Approval): Add myself to the list.
5941 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5943 * MAINTAINERS: Update my e-mail address.
5945 2012-04-20 Pedro Alves <palves@redhat.com>
5947 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5949 * configure: Regenerate.
5951 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5953 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5955 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5957 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5959 Fix compilation compatibility with python-2.4
5960 * python/py-type.c (convert_field): Cast ADDRSTRING for
5961 PyObject_SetAttrString as non-const. New comment.
5963 2012-04-19 Tom Tromey <tromey@redhat.com>
5965 * top.c (quit_target): Use all_cleanups.
5966 * main.c (captured_command_loop): Use all_cleanups.
5967 * exceptions.c (throw_exception): Use all_cleanups.
5969 2012-04-19 Pedro Alves <palves@redhat.com>
5971 * Makefile.in (GNULIB_BUILDDIR): New.
5972 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5973 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5974 (CLEANDIRS). Remove gnulib/import.
5975 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5977 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5978 (gnulib/import/Makefile): Replace gnulib/import with
5979 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5980 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5981 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5982 acx_configure_dir.m4.
5983 * acinclude.m4: Include acx_configure_dir.m4.
5984 * acx_configure_dir.m4: New file.
5985 * aclocal.m4: Regenerate.
5986 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5987 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5988 (GNULIB): New variable.
5989 (GNULIB_STDINT_H): Adjust.
5990 (AC_OUTPUT): Don't output gnulib/Makefile.
5991 * gdb/defs.h: Include build-gnulib/config.h.
5992 * aclocal.m4: Regenerate.
5993 * config.in: Regenerate.
5994 * configure: Regenerate.
5996 * gnulib/Makefile.in: New file.
5997 * gnulib/configure.ac: New file.
5998 * gnulib/aclocal.m4: New file.
5999 * gnulib/config.in: New file.
6000 * gnulib/configure: New file.
6001 * gnulib/: Re-run gnulib-tool to adjust.
6003 2012-04-19 Doug Evans <dje@google.com>
6005 * cleanups.h (struct cleanup): Move to cleanups.c.
6006 (make_cleanup_dtor_ftype): New typedef.
6007 (make_cleanup_dtor): Use it.
6008 (ALL_CLEANUPS): Replace with ...
6009 (all_cleanups): ... this. Declare. All uses updated.
6010 * cleanups.c: #include "gdb_assert.h".
6011 (sentinel_cleanup): New static global.
6012 (SENTINEL_CLEANUP): Define.
6013 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6014 (make_my_cleanup2): Assert result is non-NULL.
6015 (all_cleanups): New function.
6016 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6019 2012-04-19 Pedro Alves <palves@redhat.com>
6021 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6022 Adjust paths to gnulib imported files.
6024 2012-04-19 Pedro Alves <palves@redhat.com>
6026 * gnulib/: Move whole directory ...
6027 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6028 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6029 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6030 (aclocal_m4_deps): Adjust.
6031 * aclocal.m4: Regenerate.
6032 * configure: Regenerate.
6033 * configure.ac: Adjust AC_OUTPUT output.
6035 2012-04-19 Yao Qi <yao@codesourcery.com>
6037 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6039 * vec.c: Move it ...
6040 * common/vec.c: ... here.
6041 * vec.h: Move it ...
6042 * common/vec.h: ... here.
6044 2012-04-19 Yao Qi <yao@codesourcery.com>
6046 * gdb-code-style.el: New.
6048 2012-04-18 Pedro Alves <palves@redhat.com>
6050 Update gnulib from latest git.
6051 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6053 * gnulib/Makefile.am: Update.
6054 * gnulib/dummy.c: Update.
6055 * gnulib/extra/arg-nonnull.h: Update.
6056 * gnulib/extra/c++defs.h: Update.
6057 * gnulib/extra/update-copyright: Update.
6058 * gnulib/extra/warn-on-use.h: Update.
6059 * gnulib/inttypes.in.h: Update.
6060 * gnulib/m4/00gnulib.m4: Update.
6061 * gnulib/m4/extensions.m4: Update.
6062 * gnulib/m4/gnulib-cache.m4: Update.
6063 * gnulib/m4/gnulib-common.m4: Update.
6064 * gnulib/m4/gnulib-comp.m4: Update.
6065 * gnulib/m4/gnulib-tool.m4: Update.
6066 * gnulib/m4/include_next.m4: Update.
6067 * gnulib/m4/inttypes-pri.m4: Update.
6068 * gnulib/m4/inttypes.m4: Update.
6069 * gnulib/m4/longlong.m4: Update.
6070 * gnulib/m4/memchr.m4: Update.
6071 * gnulib/m4/memmem.m4: Update.
6072 * gnulib/m4/mmap-anon.m4: Update.
6073 * gnulib/m4/multiarch.m4: Update.
6074 * gnulib/m4/onceonly.m4: Update.
6075 * gnulib/m4/stddef_h.m4: Update.
6076 * gnulib/m4/stdint.m4: Update.
6077 * gnulib/m4/string_h.m4: Update.
6078 * gnulib/m4/warn-on-use.m4: Update.
6079 * gnulib/m4/wchar_h.m4: Update.
6080 * gnulib/m4/wchar_t.m4: Update.
6081 * gnulib/m4/wint_t.m4: Update.
6082 * gnulib/memchr.c: Update.
6083 * gnulib/memmem.c: Update.
6084 * gnulib/stddef.in.h: Update.
6085 * gnulib/stdint.in.h: Update.
6086 * gnulib/str-two-way.h: Update.
6087 * gnulib/string.in.h: Update.
6088 * gnulib/wchar.in.h: Update.
6090 * gnulib/extra/arg-nonnull.h: Delete.
6091 * gnulib/extra/c++defs.h: Delete.
6092 * gnulib/extra/warn-on-use.h: Delete.
6093 * gnulib/m4/wchar_h.m4: Delete.
6094 * gnulib/m4/wint_t.m4: Delete.
6095 * gnulib/wchar.in.h: Delete.
6097 * gnulib/extra/snippets/arg-nonnull.h: New.
6098 * gnulib/extra/snippets/c++defs.h: New.
6099 * gnulib/extra/snippets/warn-on-use.h: New.
6101 * aclocal.m4: Regenerate.
6102 * config.in: Regenerate.
6103 * configure: Regenerate.
6104 * gnulib/Makefile.in: Regenerate.
6106 2012-04-18 Pedro Alves <palves@redhat.com>
6108 Reimport the update-copyright module from gnulib
6109 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6111 * configure: Regenerate.
6112 * gnulib/Makefile.am: Update.
6113 * gnulib/Makefile.in: Regenerate.
6114 * gnulib/extra/update-copyright: Update.
6115 * gnulib/m4/gnulib-cache.m4: Update.
6116 * gnulib/m4/gnulib-comp.m4: Update.
6118 2012-04-18 Tristan Gingold <gingold@adacore.com>
6120 * configure.ac (aix): Put -lpthread into libs.
6121 * configure: Regenerate.
6123 2012-04-18 Tom Tromey <tromey@redhat.com>
6125 * linespec.c (convert_linespec_to_sals): Don't use
6127 (compare_msymbols): Arguments are minsym_and_objfile, not
6128 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6130 2012-04-18 Pedro Alves <palves@redhat.com>
6132 Revert gnulib/ part of:
6133 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6134 Copyright year update in most files (performed by copyright.sh).
6136 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6138 Fix 64-bit constants on 32-bit hosts.
6139 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6140 from unsigned long to ULONGEST.
6141 (read_signed_leb128): Change declaration return type from long to
6143 (dwarf2_const_value_attr): Change declaration parameter value from long
6145 (dwarf2_compute_name): Change variable value from long to LONGEST.
6146 (read_unsigned_leb128): Change return type, variable result and some
6147 casts from unsigned long to ULONGEST.
6148 (read_signed_leb128): Change return type, variable result and some
6149 casts from long to LONGEST.
6150 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6151 value from long to LONGEST.
6152 (dwarf2_const_value): Change variable value from long to LONGEST.
6153 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6154 plongest and hex_string.
6155 * symtab.h (struct general_symbol_info): Change ivalue from long to
6156 LONGEST, remove the comment.
6157 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6158 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6160 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6163 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6164 * ada-lang.c (ada_discrete_type_high_bound)
6165 (ada_discrete_type_low_bound): Fix function comment. Use
6166 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6167 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6168 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6169 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6170 Use TYPE_FIELD_ENUMVAL.
6171 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6172 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6173 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6174 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6176 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6177 * dwarf2read.c (process_enumeration_scope): Likewise.
6178 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6180 (class StructMainTypePrettyPrinter): Support also
6181 FIELD_LOC_KIND_ENUMVAL.
6182 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6184 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6185 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6186 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6187 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6189 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6190 accommodate enumval.
6191 (struct call_site): Adjust loc_kind to accommodate enumval.
6192 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6193 (TYPE_FIELD_ENUMVAL): New macros.
6194 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6195 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6197 * p-typeprint.c (pascal_type_print_base): Likewise.
6198 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6200 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6201 * python/py-type.c (convert_field): New variable addrstring. Use
6202 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6203 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6204 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6205 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6207 * valprint.c (generic_val_print): Likewise.
6209 2012-04-17 Doug Evans <dje@google.com>
6211 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6213 * dwarf2read.c: Whitespace fixes.
6214 (lookup_signatured_type): Tweak comment.
6215 (get_die_type_at_offset): Fix comment.
6217 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6219 * xcoffread.c (xcoff_secnum_to_sections): New function.
6220 (secnum_to_section, secnum_to_bfd_section): Reimplement
6221 using xcoff_secnum_to_sections. Rename "secnum" parameter
6223 (RECORD_MINIMAL_SYMBOL): Delete.
6224 (record_minimal_symbol): New function.
6225 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6226 by call to record_minimal_symbol and set misc_func_recorded
6227 to 1. Set last_csect_sec to the XCOFF section index instead
6228 of GDB's section_offset index. Update calls to
6229 prim_record_minimal_symbol_and_info to pass the BFD section
6232 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6234 * xcoffread.c (read_xcoff_symtab): Delete variables
6235 last_csect_val and last_csect_sec and associated code.
6237 2012-04-17 Doug Evans <dje@google.com>
6239 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6240 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6241 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6242 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6244 * cleanups.h: New file.
6245 * cleanups.c: New file.
6246 * Makefile.in (SFILES): Add cleanups.c.
6247 (HFILES_NO_SRCDIR): Add cleanups.h.
6248 (COMMON_OBS): Add cleanups.o.
6249 * defs.h (struct cleanup): Moved to cleanups.h.
6250 (do_cleanups,do_final_cleanups): Ditto.
6251 (discard_cleanups,discard_final_cleanups): Ditto
6252 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6253 (save_cleanups,save_final_cleanups): Ditto.
6254 (restore_cleanups,restore_final_cleanups): Ditto.
6255 (null_cleanup): Ditto.
6256 (make_my_cleanup,make_my_cleanup2): Ditto.
6257 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6258 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6259 (do_cleanups,do_final_cleanups): Ditto.
6260 (discard_cleanups,discard_final_cleanups): Ditto
6261 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6262 (save_cleanups,save_final_cleanups): Ditto.
6263 (restore_cleanups,restore_final_cleanups): Ditto.
6264 (null_cleanup): Ditto.
6265 (make_my_cleanup,make_my_cleanup2): Ditto.
6266 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6268 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6270 (make_cleanup_dyn_string_delete): Ditto.
6271 (make_cleanup_ui_file_delete): Ditto.
6272 (make_cleanup_ui_out_redirect_pop): Ditto.
6273 (make_cleanup_free_section_addr_info): Ditto.
6274 (make_cleanup_restore_integer): Ditto.
6275 (make_cleanup_unpush_target): Ditto.
6276 (make_cleanup_value_free_to_mark): Ditto.
6277 (make_cleanup_value_free): Ditto.
6278 (make_cleanup_free_so): Ditto.
6280 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6282 New option "set debug auto-load".
6283 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6284 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6285 (auto_load_safe_path_vec_update)
6286 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6288 (file_is_auto_load_safe): New parameters debug_fmt and ....
6289 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6290 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6291 caller by explanatory string.
6292 (_initialize_auto_load): Register "set debug auto-load".
6293 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6295 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6296 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6297 by explanatory string.
6298 * main.c (captured_main): Likewise.
6299 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6300 (source_section_scripts): Likewise.
6302 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6304 New option "set auto-load safe-path".
6305 * NEWS: New commands "set auto-load safe-path"
6306 and "show auto-load safe-path".
6307 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6308 (auto_load_safe_path, auto_load_safe_path_vec)
6309 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6310 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6311 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6312 (source_gdb_script_for_objfile): New variable is_safe. Call
6313 file_is_auto_load_safe. Return if it is not.
6314 (struct loaded_script): New field loaded.
6315 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6316 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6317 output "Missing" to "No".
6318 (_initialize_auto_load): New variable cmd. Initialize
6319 auto_load_safe_path. Register "set auto-load safe-path",
6320 "show auto-load safe-path" and "add-auto-load-safe-path".
6321 * auto-load.h (maybe_add_script): Add parameter loaded.
6322 (file_is_auto_load_safe): New declaration.
6323 * config.in: Regenerate.
6324 * configure: Regenerate.
6325 * configure.ac: New parameters --with-auto-load-safe-path
6326 and --without-auto-load-safe-path.
6327 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6328 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6329 * main.c (captured_main): Check file_is_auto_load_safe for
6331 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6332 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6333 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6336 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6338 auto-load: Implementation.
6339 * NEWS: New descriptions for "info auto-load",
6340 "info auto-load gdb-scripts", "info auto-load python-scripts",
6341 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6342 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6343 and "show auto-load-scripts". New description for "set auto-load",
6344 "show auto-load", "set auto-load gdb-scripts",
6345 "show auto-load gdb-scripts", "set auto-load python-scripts",
6346 "show auto-load python-scripts", "set auto-load local-gdbinit",
6347 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6348 "show auto-load libthread-db".
6349 * auto-load.c: Remove include python/python-internal.h. Add includes
6350 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6352 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6353 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6354 (gdbpy_global_auto_load): Rename to ...
6355 (global_auto_load): ... here.
6356 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6357 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6358 (script_language_gdb, source_gdb_script_for_objfile): New.
6359 (struct loaded_script): New field language.
6360 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6362 (maybe_add_script): Add parameter language. Drop redundant
6363 entry.full_path initialization. Initialize entry.language and
6365 (auto_load_objfile_script): Change parameter suffix to language.
6366 Remove the call of maybe_add_script.
6367 Call language->source_script_for_objfile.
6368 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6370 (collect_matching_scripts): Adjust it for
6371 struct collect_matching_scripts_data.
6372 (auto_load_info_scripts_pattern_nl): New variable.
6373 (info_auto_load_scripts): Rename to ...
6374 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6375 for struct collect_matching_scripts_data.
6376 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6377 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6378 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6379 (auto_load_info_cmdlist_get): New.
6380 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6381 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6382 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6383 "info auto-load local-gdbinit".
6384 * auto-load.h (struct script_language): New.
6385 (gdbpy_global_auto_load): Rename to ...
6386 (global_auto_load): ... here.
6387 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6388 (auto_load_local_gdbinit_loaded): New declarations.
6389 (maybe_add_script): New parameter language.
6390 (auto_load_objfile_script): Change parameter suffix to language.
6391 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6392 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6393 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6395 * linux-thread-db.c: Include auto-load.h and ctype.h.
6396 (auto_load_thread_db, show_auto_load_thread_db): New.
6397 (struct thread_db_info): New field filename.
6398 (delete_thread_db_info): Call xfree for FILENAME.
6399 (try_thread_db_load): Initialize FILENAME.
6400 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6401 if !AUTO_LOAD_THREAD_DB.
6402 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6403 (_initialize_thread_db): Install auto_load_thread_db
6404 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6405 as "info auto-load libthread-db".
6406 * main.c (captured_main): Rename gdbpy_global_auto_load to
6407 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6408 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6409 (print_gdb_help): Extend the help for 'local init file'.
6410 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6411 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6412 (auto_load_scripts): Rename to ...
6413 (auto_load_python_scripts): ... here, update the comment.
6414 (gdbpy_load_auto_script_for_objfile): New declaration.
6415 (show_auto_load_python_scripts, script_language_python)
6416 (gdbpy_load_auto_script_for_objfile): New.
6417 (source_section_scripts): Refactor the code.
6418 (load_auto_scripts_for_objfile): Rename to ...
6419 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6420 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6421 (info_auto_load_python_scripts): New.
6422 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6423 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6424 Register "set auto-load-scripts" as its deprecated alias. Register
6425 "info auto-load python-scripts". Register "info auto-load-scripts" as
6426 its deprecated alias.
6427 (load_auto_scripts_for_objfile): Rename to ...
6428 (gdbpy_load_auto_scripts_for_objfile): ... here.
6429 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6430 (gdbpy_load_auto_scripts_for_objfile): ... here.
6432 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6434 auto-load: Move files.
6435 * Makefile.in (SFILES): Add auto-load.c.
6436 (HFILES_NO_SRCDIR): Add auto-load.h.
6437 (COMMON_OBS): Add auto-load.o.
6438 (distclean): Change .gdbinit for gdb-gdb.gdb.
6439 * auto-load.c: New file, with parts from python/py-auto-load.c.
6440 * auto-load.h: New file, with parts from python/python.h.
6441 * configure: Regenerate.
6442 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6443 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6444 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6445 * main.c: Include auto-load.h.
6446 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6447 command.h, observer.h and progspace.h to auto-load.c. Add include
6449 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6450 (struct loaded_script, auto_load_pspace_data)
6451 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6452 (hash_loaded_script_entry, eq_loaded_script_entry)
6453 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6454 (maybe_add_script): Move to auto-load.c.
6455 (source_section_scripts): Change maybe_add_script parameters passing,
6456 use script_not_found_warning_print.
6457 (clear_section_scripts, auto_load_objfile_script)
6458 (auto_load_new_objfile, loaded_script_ptr)
6459 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6460 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6461 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6462 auto_load_new_objfile and info_auto_load_scripts initizations to
6464 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6466 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6469 * charset.c (find_charset_names): Remove variables ix and elt.
6470 Use free_char_ptr_vec.
6471 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6472 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6473 debugdir_end. New variable debugdir_len.
6474 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6475 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6477 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6478 and elt. Use free_char_ptr_vec.
6479 * source.c (add_path): Remove variables argv, arg and argv_index.
6480 New variables dir_vec, back_to, ix and name.
6481 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6482 make_cleanup_freeargv. Remove variable separator. Simplify the code
6483 no longer expecting DIRNAME_SEPARATOR.
6484 (openp): Remove variable p, p1 and len. New variables dir_vec,
6485 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6486 no longer expecting DIRNAME_SEPARATOR.
6487 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6488 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6490 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6491 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6492 (dirnames_to_char_ptr_vec): New functions.
6494 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6497 * source.c (add_path): Remove always true conditional 'p == 0' and
6498 unindent its code block.
6500 2012-04-17 Pedro Alves <palves@redhat.com>
6502 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6503 (FIELD_BITPOS_LVAL): ... this.
6504 (FIELD_BITPOS): New.
6505 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6506 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6507 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6509 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6511 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6512 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6513 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6516 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6518 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6519 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6520 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6521 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6522 * jv-lang.c (java_link_class_type): Likewise, once.
6523 * stabsread.c (read_enum_type): Likewise.
6525 2012-04-16 Yao Qi <yao@codesourcery.com>
6527 * common/agent.c (agent_run_command): Add one more parameter `len'.
6529 * common/agent.h: Update declaration.
6530 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6532 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6534 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6537 * value.c (value_actual_type): New function.
6538 * value.h (value_actual_type): New declaration.
6539 * varobj.c (update_type_if_necessary): New function.
6540 (varobj_create): Call value_actual_type instead of
6542 (install_dynamic_child): distinct changed and type changed MI variable
6544 (update_dynamic_varobj_children): Updated for install_dynamic_child
6545 change. All callers updated.
6546 (varobj_update): Support for MI variable object type change if
6547 the value changed and RTTI is used to determine the type.
6548 (create_child_with_value): Call value_actual_type instead of
6550 (adjust_value_for_child_access): Extended with a new parameter which
6551 specify whether the given value should be casted to enclosing type.
6552 All callers updated.
6554 2012-04-14 Yao Qi <yao@codesourcery.com>
6556 Import gnulib module inttypes from git
6557 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6558 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6559 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6560 gnulib/m4/inttypes-pri.m4
6561 * aclocal.m4, config.in, configure: Regenerated.
6562 * gnulib/Makefile.am: Update.
6563 * gnulib/Makefile.in: Update.
6564 * gnulib/m4/gnulib-cache.m4: Update.
6565 * gnulib/m4/gnulib-comp.m4: Update.
6566 * gnulib/inttypes.in.h: New.
6567 * gnulib/m4/inttypes-pri.m4: New.
6568 * gnulib/m4/inttypes.m4: New.
6570 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6572 * infrun.c (resume): Update PC address to the real PC after
6573 preparing to do displaced stepping.
6575 2012-04-12 Doug Evans <dje@google.com>
6577 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6578 All callers updated.
6580 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6582 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6584 2012-04-12 Doug Evans <dje@google.com>
6586 * dwarf2read.c (create_all_type_units): Renamed from
6587 create_debug_types_hash_table. All callers updated.
6589 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6590 local type_sig to sig_type, type_offset to type_offset_in_tu.
6591 (hash_signatured_type): Renamed from hash_type_signature,
6592 all callers updated.
6593 (eq_signatured_type): Renamed from eq_type_signature,
6594 all callers updated.
6595 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6596 (process_enumeration_scope): Ditto.
6597 (lookup_signatured_type_at_offset): Ditto.
6598 (load_full_type_unit, read_signatured_type): Ditto.
6600 2012-04-12 Yao Qi <yao@codesourcery.com>
6602 * remote.c (async_remote_interrupt): Correct function name in
6604 (async_remote_interrupt_twice): Ditto.
6606 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6608 * source.c (find_and_open_source): Consistently pass resulting
6609 full path through xfullpath.
6611 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6613 Provide more specific displaced-stepping memory error message.
6614 * infrun.c (displaced_step_prepare): New variable status. Call
6615 target_read_memory instead of read_memory, provide more specific
6618 2012-04-11 Tristan Gingold <gingold@adacore.com>
6621 * darwin-nat.c (darwin_execvp): Revert previous patch.
6623 2012-04-11 Tristan Gingold <gingold@adacore.com>
6626 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6629 2012-04-11 Tristan Gingold <gingold@adacore.com>
6631 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6634 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6636 New command 'explore' which helps explore values and types in
6638 * NEWS: Add an entry about the new 'explore' command.
6639 * data-directory/Makefile.in: Add gdb/command/explore.py
6640 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6641 command using the GDB Python API.
6643 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6645 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6646 extension in jump target calculation.
6648 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6650 * mips-tdep.c (mips32_next_pc): Handle JALX.
6652 2012-04-10 Yao Qi <yao@codesourcery.com>
6654 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6656 2012-04-10 Yao Qi <yao@codesourcery.com>
6658 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6659 and gnulib/m4/gnulib-tool.m4.
6661 2012-04-10 Doug Evans <dje@google.com>
6663 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6664 (load_partial_dies): Clarify comment.
6665 (find_partial_die): Support rereading type units.
6666 Clarify CU handling, if we know offset is in CU, don't search for the
6667 containing CU. Add comment regarding memory waste.
6669 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6671 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6672 i386/x32-avx and i386/x32-avx-linux.
6673 (i386/x32-expedite): New.
6674 (i386/x32-linux-expedite): Likewise.
6675 (i386/x32-avx-expedite): Likewise.
6676 (i386/x32-avx-linux-expedite): Likewise.
6677 ($(outdir)/i386/x32.dat): Likewise.
6678 ($(outdir)/i386/x32-linux.dat): Likewise.
6679 ($(outdir)/i386/x32-avx.dat): Likewise.
6680 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6682 * features/i386/x32-avx-linux.xml: New file.
6683 * features/i386/x32-avx.xml: Likewise.
6684 * features/i386/x32-core.xml: Likewise.
6685 * features/i386/x32-linux.xml: Likewise.
6686 * features/i386/x32.xml: Likewise.
6688 * features/i386/x32-avx-linux.c: New. Generated.
6689 * features/i386/x32-avx.c: Likewise.
6690 * features/i386/x32-linux.c: Likewise.
6691 * features/i386/x32.c: Likewise.
6692 * regformats/i386/x32-avx-linux.dat: Likewise.
6693 * regformats/i386/x32-avx.dat: Likewise.
6694 * regformats/i386/x32-linux.dat: Likewise.
6695 * regformats/i386/x32.dat: Likewise.
6697 2012-04-10 Tristan Gingold <gingold@adacore.com>
6699 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6700 code to kill the inferior.
6702 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6704 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6706 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6708 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6709 (yyvsp): New defines.
6710 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6712 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6714 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6716 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6718 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6721 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6723 * sparc64-tdep.c (sparc64_store_arguments)
6724 (sparc64_store_arguments): Fix coding style.
6726 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6728 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6729 complex floats, adjust some related comments and tighten a related
6731 (sparc64_extract_return_value): Handle complex floats.
6733 2012-04-07 Doug Evans <dje@google.com>
6735 * dwarf2read.c (load_partial_dies): Change condition to assert.
6737 2012-04-06 Doug Evans <dje@google.com>
6739 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6742 2012-04-05 Kevin Buettner <kevinb@redhat.com>
6744 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6746 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6747 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6750 2012-04-05 Keith Seitz <keiths@redhat.com>
6752 * linespec.c (decode_compound): Remove.
6753 (enum offset_relative_sign): New enum.
6754 (struct line_offset): New struct.
6755 (struct linespec): New struct.
6756 (struct linespec_state): Move file_symtabs,
6757 user_filename, and user_function into struct linespec.
6758 Make result an anonymous struct holding vectors of
6759 symbolp and minsym_and_objfile_d.
6760 Add language member.
6761 (enum ls_token_type): New enum.
6762 (linespec_keywords): New array.
6763 (struct ls_token): New struct.
6764 (struct ls_parser): New struct.
6765 (linespec_lexer_lex_number): New function.
6766 (linespec_lexer_lex_keyword): New function.
6767 (is_ada_operator): New function.
6768 (skip_quote_char): New function.
6769 (copy_token_string): New function.
6770 (is_closing_quote_enclosed): New function.
6771 (find_parameter_list_end): New function.
6772 (linespec_lexer_lex_string): New function.
6773 (linespec_lexer_lex_one): New function.
6774 (linespec_lexer_consume_token): New function.
6775 (linespec_lexer_peek_token): New function.
6776 (cplusplus_error): Remove unused function.
6777 (find_methods): Update comment.
6778 (find_toplevel_char): Return const.
6779 (is_objc_method_format): Remove unused function.
6780 (find_toplevel_string): New function.
6781 (is_linespec_boundary): Remove.
6782 (symbol_not_found_error): New function.
6783 (find_method_overload_end): Remove function.
6784 (unexpected_linespec_error): New function.
6785 (keep_name_info): Remove.
6786 (linespec_parse_line_offset): New function.
6787 (linespec_parse_basic): New function.
6788 (canonicalize_linespec): New function.
6789 (decode_line_internal): Remove.
6790 (create_sals_line_offset): New function adapted from
6792 (convert_linespec_to_sals): New function.
6793 (parse_linespec): New function.
6794 (linespec_parser_new): New function.
6795 (linespec_state_destructor): Change parameter type to
6796 struct linespec_state *.
6797 Add language parameter.
6798 Remove freeing of moved members.
6799 (linespec_parser_delete): New function.
6800 (decode_line_full): Use parse_linespec and linespec_parser_new.
6801 (decode_line_1): Likewise.
6802 (decode_indirect): Rename to ...
6803 (linespec_expression_to_pc): ... this and rewrite
6804 to simply find CORE_ADDR, storing this result for later
6806 (locate_first_half): Remove.
6807 (deocde_objc): Add parameter LS.
6808 Initialize new struct collect_info members.
6809 Handle minimal symbols, too.
6810 (decode_compound): Delete.
6811 (lookup_prefix_sym): Rewrite.
6812 (compare_msymbols): New function.
6813 (find_method): Rewrite.
6814 Do not call cplusplus_error.
6815 (symtabs_from_filename): Rewrite.
6816 (collect_function_symbols): Delete.
6817 (find_function_symbols): Rewrite without ARGPTR-style
6819 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6820 (decode_dollar): Adapted and renamed to ...
6821 (linespec_parse_variable): ... this.
6822 (find_linespec_symbols): New function.
6823 (decode_label): Adapted and renamed to ...
6824 (find_label_symbols): ... this.
6825 (decode_digits_list_mode): Add and use LS argument.
6826 (decode_digits_ordinary): Likewise.
6827 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6828 If in list mode, allow any symbol class. Otherwise, only
6829 permit LOC_BLOCK symbols.
6830 (minsym_found): Update comments.
6831 (search_minsyms_for_name): Do not convert the matching symbol
6832 into a SAL. Simply push the symbol and objfile into the
6834 (decode_variable): Delete. Contents adapted into
6835 find_linespec_symbols.
6837 * cp-support.c (SKIP_SPACE): Remove.
6838 (operator_tokens): Remove unused global.
6839 (cp_validate_operator): Remove.
6840 * cp-support.h (cp_validate_operator): Remove declaration.
6842 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6844 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6845 for TYPE_VPTR_FIELDNO.
6846 * valprint.c (valprint_check_validity): Make it global, move the
6847 function comment ...
6848 * value.h (valprint_check_validity): ... to this new declaration.
6850 2012-04-02 Tristan Gingold <gingold@adacore.com>
6852 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6853 the STATE32 api for i386 state.
6854 (i386_darwin_store_inferior_registers): Likewise.
6856 2012-04-02 Tristan Gingold <gingold@adacore.com>
6858 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6860 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6863 2012-04-02 Tristan Gingold <gingold@adacore.com>
6866 * darwin-nat.c (darwin_execvp): Set binary preference.
6868 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6870 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6872 2012-03-30 Tom Tromey <tromey@redhat.com>
6874 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6875 of TRY_CATCH. Fix error handling.
6876 * python/py-value.c (convert_value_from_python): Move 'old'
6877 declaration to innermost scope.
6879 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6880 Andrey Smirnov <andrew.smirnov@gmail.com>
6882 -Wshadow warning fix.
6883 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6884 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6885 Adjust code accordingly.
6887 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6889 * ada-lang.c (symbol_completion_add): Rename parameter
6890 "encoded" into "encoded_p". Ajust code and documentation
6893 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6894 Andrey Smirnov <andrew.smirnov@gmail.com>
6896 -Wshadow warning fix.
6897 * ada-lang.c (symbol_completion_add): Rename parameter
6898 "wild_match" into wild_match_p. Update code and documentation
6901 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6903 * ada-lang.c (symbol_completion_match): Rename parameter
6904 "encoded" into "encoded_p". Ajust code and documentation
6907 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6908 Andrey Smirnov <andrew.smirnov@gmail.com>
6910 -Wshadow warning fix.
6911 * ada-lang.c (symbol_completion_match): Rename parameter
6912 "wild_match" into "wild_match_p". Adjust code and function
6913 documentation accordingly.
6915 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6916 Andrey Smirnov <andrew.smirnov@gmail.com>
6918 -Wshadow warning fix.
6919 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6920 "symbol_info" into "info". Adjust code accordingly.
6921 (ada_lookup_symbol): Likewise.
6923 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6925 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6926 of this function's documentation.
6928 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6929 Andrey Smirnov <andrew.smirnov@gmail.com>
6931 -Wshadow warning fix.
6932 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6933 variable into "wild_match_p". Adjust code accordingly.
6935 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6936 Andrey Smirnov <andrew.smirnov@gmail.com>
6938 -Wshadow warning fix.
6939 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6940 parameter into "wild_match_p". Adjust code accordingly.
6941 Document this parameter in the function description.
6943 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6944 Andrey Smirnov <andrew.smirnov@gmail.com>
6946 -Wshadow warning fix.
6947 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6948 "wild_match" parameter to "wild_match_p" (-Wshadow).
6950 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6952 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6953 in function documentation.
6955 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6956 Andrey Smirnov <andrew.smirnov@gmail.com>
6958 -Wshadow warning fix.
6959 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6960 variable into wild_match_p. Adjust code accordingly.
6962 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6963 Andrey Smirnov <andrew.smirnov@gmail.com>
6965 * ada-valprint.c (ada_val_print_1): Move the code handling
6966 TYPE_CODE_ENUM inside its own lexical block. Declare
6967 variables len and val there, instead of in the function's
6968 top level block. Avoid declaring deref_val again in a way
6969 that shadows another variable of the same name declared
6970 in one of the up-level blocks. Just re-use the up-level
6973 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6975 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6976 Replace block_found argument by symbol_info. Adjust
6977 implementation accordingly. Add function documentation.
6978 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6980 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6981 * ada-exp.y (write_object_renaming): Adjust to new
6982 ada_lookup_encoded_symbol API.
6984 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6986 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6989 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
6991 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6992 (v850_register_name): Add the mpu and fpu register names.
6993 (v850e_register_name): Add the mpu and fpu register names.
6994 (v850e2_register_name): New function.
6995 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
6998 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7000 * NEWS: Add entry for Ada varobj support.
7002 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7004 * varobj.c (default_value_is_changeable_p): New function,
7005 extracted from varobj_value_is_changeable_p. Add declaration.
7006 (ada_value_is_changeable_p): New function, extracted from
7007 varobj_value_is_changeable_p. Add declaration.
7008 (struct language_specific): New field "value_is_changeable_p".
7009 (languages): Add entries for new field.
7010 (varobj_create): Set language before calling install_new_value.
7011 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7012 "value_is_changeable_p" language callback.
7014 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7016 * ada-varobj.h, ada-varobj.c: New files.
7017 * Makefile.in (SFILES): Add ada-varobj.c.
7018 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7019 (COMMON_OBS): Add ada-varobj.o.
7021 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7023 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7024 (struct language_specific): New field "value_has_mutated".
7025 (languages): Set field "value_has_mutated" in each entry of array.
7026 (varobj_value_has_mutated): New function.
7027 (varobj_udpdate): Add handling of type mutation.
7028 (value_of_root): Add handling of type mutation.
7029 (ada_value_has_mutated): New function.
7031 2012-03-28 Pedro Alves <palves@redhat.com>
7033 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7034 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7036 2012-03-28 Tom Tromey <tromey@redhat.com>
7038 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7039 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7042 2012-03-28 Tom Tromey <tromey@redhat.com>
7044 * .dir-locals.el: New file.
7046 2012-03-28 Pedro Alves <palves@redhat.com>
7048 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7050 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7052 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7055 2012-03-27 Pedro Alves <palves@redhat.com>
7057 Eliminate struct ui_stream.
7059 * ui-out.h (struct ui_stream): Delete.
7060 (ui_out_field_stream): Adjust prototype.
7061 (ui_out_stream_new, ui_out_stream_delete)
7062 (make_cleanup_ui_out_stream_delete): Delete declarations.
7063 * ui-out.c (ui_out_field_stream): Change prototype to take a
7064 ui_file instead of a ui_stream. Adjust.
7065 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7066 (make_cleanup_ui_out_stream_delete): Delete.
7067 * breakpoint.c (print_breakpoint_location)
7068 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7069 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7070 * disasm.c (dump_insns): Ditto.
7071 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7073 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7074 ui_stream/ui_out_stream_new.
7075 * infcmd.c (print_return_value): Ditto.
7076 * osdata.c (info_osdata_command): Don't allocate a local
7078 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7079 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7080 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7081 allocate a local ui_stream.
7082 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7083 instead of ui_stream/ui_out_stream_new.
7084 (list_args_or_locals): Don't allocate a local ui_stream.
7085 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7086 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7087 ui_stream/ui_out_stream_new.
7088 * cli/cli-setshow.c (do_setshow_command): Ditto.
7090 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7092 * arm-linux-tdep.c (arm_linux_init_abi): Call
7093 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7094 * arm-tdep.c (arm_process_record): New function.
7095 (deallocate_reg_mem): New function.
7096 (decode_insn): New function.
7097 (thumb_record_branch): New function.
7098 (thumb_record_ldm_stm_swi(): New function.
7099 (thumb_record_misc): New function.
7100 (thumb_record_ld_st_stack): New function.
7101 (thumb_record_ld_st_imm_offset): New function.
7102 (thumb_record_ld_st_reg_offset(): New function.
7103 (thumb_record_add_sub_cmp_mov): New function.
7104 (thumb_record_shift_add_sub): New function.
7105 (arm_record_coproc_data_proc): New function.
7106 (arm_record_coproc): New function.
7107 (arm_record_b_bl): New function.
7108 (arm_record_ld_st_multiple): New function.
7109 (arm_record_ld_st_reg_offset): New function.
7110 (arm_record_ld_st_imm_offset): New function.
7111 (arm_record_data_proc_imm): New function.
7112 (arm_record_data_proc_misc_ld_str): New function.
7113 (arm_record_extension_space): New function.
7114 (arm_record_strx): New function.
7115 (sbo_sbz): New function.
7116 (struct insn_decode_record): New structure for arm insn record.
7117 (REG_ALLOC): New macro for reg allocations.
7118 (MEM_ALLOC): New macro for memory allocations.
7119 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7121 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7123 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7124 (store_register): Likewise.
7126 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7128 * MAINTAINERS (Write After Approval): Add myself to the list.
7130 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7132 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7133 Describe also the option "auto".
7135 2012-03-22 Richard Henderson <rth@redhat.com>
7137 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7138 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7140 2012-03-22 Richard Henderson <rth@redhat.com>
7142 * jit.c (jit_read_code_entry): Compute alignment and offset of
7143 int64_t member before computing entry_size.
7145 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7147 Python scripting: Add new method Value.referenced_value to
7148 gdb.Value which can dereference pointer as well as reference
7150 * NEWS: Add entry under 'Python scripting' about the new method
7151 Value.referenced_value on gdb.Value objects.
7152 * python/py-value.c (valpy_referenced_value): New function
7153 defining a new method on gdb.Value objects which can dereference
7154 pointer and reference values.
7156 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7158 * MAINTAINERS (Write After Approval): Add myself to the list.
7160 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7162 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7163 in addition to "main".
7165 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7167 * expression.h (op_name): Add declaration.
7168 * expprint.c (op_name): Remove declaration. Make non-static.
7169 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7171 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7173 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7175 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7176 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7177 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7178 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7179 (linux_nat_get_siginfo): Likewise.
7180 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7181 (linux_nat_get_siginfo): Likewise.
7182 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7183 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7184 * procfs.c (gdb_siginfo_t): Likewise.
7186 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7188 * .gitignore: Ignore more files.
7190 2012-03-20 Pedro Alves <palves@redhat.com>
7192 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7195 2012-03-20 Yao Qi <yao@codesourcery.com>
7197 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7200 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7202 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7203 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7204 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7206 * dwarf2expr.h (cu_offset, sect_offset): New types.
7207 (struct dwarf_expr_context_funcs) <dwarf_call>
7208 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7210 (struct dwarf_expr_context) <len>: Improve the comment.
7211 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7212 cu_offset and sect_offset.
7213 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7214 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7215 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7216 * dwarf2loc.h: Include dwarf2expr.h.
7217 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7219 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7220 Improve the comment.
7221 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7222 (struct signatured_type, struct line_header, struct partial_die_info)
7223 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7224 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7225 (get_die_type_at_offset, create_cus_from_index)
7226 (create_signatured_type_table_from_index, dw2_get_file_names)
7227 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7228 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7229 (create_debug_types_hash_table, process_psymtab_comp_unit)
7230 (load_partial_comp_unit, create_all_comp_units)
7231 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7232 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7233 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7234 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7235 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7236 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7237 (find_partial_die, read_attribute_value, lookup_die_type)
7238 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7239 (is_ref_attr): New function comment.
7240 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7241 Use cu_offset and sect_offset.
7242 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7243 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7244 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7245 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7246 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7247 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7248 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7251 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7254 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7255 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7257 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7259 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7261 * NEWS: Describe new options --init-command=FILE, -ix and
7262 --init-eval-command=COMMAND, -iex.
7263 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7264 CMDARG_INIT_COMMAND.
7265 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7266 "init-command", "init-eval-command", "ix" and "iex" to the variable
7267 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7268 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7269 (print_gdb_help): Describe --init-command=FILE, -ix and
7270 --init-eval-command=COMMAND, -iex.
7272 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7275 * main.c (struct cmdarg): Move it here from main. Add more comments.
7276 (cmdarg_s, VEC (cmdarg_s)): New.
7277 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7278 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7279 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7280 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7283 2012-03-19 Tom Tromey <tromey@redhat.com>
7285 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7287 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7290 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7293 2012-03-16 Chris January <chris.january@allinea.com>
7295 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7298 2012-03-16 Chris January <chris.january@allinea.com>
7300 * source.c (add_path): Use memmove instead of strcpy because the
7303 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7305 * value.h (set_value_parent): Add declaration.
7306 * value.c (set_value_parent): New function.
7307 (value_address): If VALUE->PARENT is not NULL, then use it as
7308 the base address instead of VALUE->LOCATION.address.
7309 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7310 the same as OBJ's address. Adjust V's offset accordingly.
7313 2012-03-16 Gary Benson <gbenson@redhat.com>
7315 PR breakpoints/10738
7316 * dwarf2read.c (use_deprecated_index_sections): New global.
7317 (struct partial_die_info): New member may_be_inlined.
7318 (read_partial_die): Set may_be_inlined where appropriate.
7319 (add_partial_subprogram): Add partial symbols for partial
7320 DIEs that may be inlined.
7321 (new_symbol_full): Add inlined subroutines to the current
7323 (write_psymtabs_to_index): Bump version number.
7324 (dwarf2_read_index): Read only version 6 indices unless
7325 use_deprecated_index_sections is set.
7326 * linespec.c (symbol_and_data_callback): New structure.
7327 (iterate_inline_only): New function.
7328 (iterate_over_all_matching_symtabs): New argument
7329 "include_inline". If nonzero, also call the callback for
7330 symbols representing inlined subroutines.
7331 (lookup_prefix_sym): Pass extra argument to the above.
7332 (find_function_symbols): Likewise.
7333 (add_matching_symbols_to_info): Likewise.
7334 * NEWS: Mention that GDB can now set breakpoints on inlined
7337 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7339 * p-typeprint.c (pascal_type_print_method_args):
7340 Fix display of parameter of methods.
7342 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7344 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7345 Add missing prototype.
7347 2012-03-16 Yao Qi <yao@codesourcery.com>
7348 Jan Kratochvil <jan.kratochvil@redhat.com>
7350 Fix false compilation warning.
7351 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7353 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7354 Pedro Alves <pedro@codesourcery.com>
7356 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7357 (arm_register_g_packet_guesses): New function.
7358 (arm_gdbarch_init): Don't force a target description with
7359 registers when the executable is detected as M-profile. Instead
7360 set gdbarch->tdep->is_m. Register `g' packet guesses.
7361 (_initialize_arm_tdep): Initialize the new target description.
7362 * features/arm-with-m-fpa-layout.xml: New description.
7363 * features/arm-with-m-fpa-layout.c: New, generated.
7365 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7367 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7368 Update function description.
7369 (insert_bp_location): Do not wipe bl->target_info out.
7370 * mem-break.c: #include "gdb_string.h".
7371 (default_memory_insert_breakpoint): Do not call target_read_memory
7372 with a pointer to the breakpoint's shadow_contents buffer. Use
7373 a local buffer instead.
7374 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7376 2012-03-15 Tom Tromey <tromey@redhat.com>
7378 * NEWS: Mention "info vtbl", not "info vtable".
7379 * cp-support.c (info_vtbl_command): Fix comment.
7380 (_initialize_cp_support): Fix text.
7382 2012-03-15 Tom Tromey <tromey@redhat.com>
7384 * cp-valprint.c (cp_print_value_fields): Use
7385 print_function_pointer_address for vtable slot.
7387 2012-03-15 Tom Tromey <tromey@redhat.com>
7389 * gnu-v3-abi.c (struct value_and_voffset): New.
7390 (hash_value_and_voffset, eq_value_and_voffset)
7391 (compare_value_and_voffset, compute_vtable_size)
7392 (print_one_vtable, gnuv3_print_vtable): New functions.
7393 (init_gnuv3_ops): Initialize 'print_vtable' field.
7394 * cp-support.c (info_vtbl_command): New function.
7395 (_initialize_cp_support): Add "info vtbl".
7396 * cp-abi.h (cplus_print_vtable): Declare.
7397 (struct cp_abi_ops) <print_vtable>: New field.
7398 * cp-abi.c (cplus_print_vtable): New function.
7401 2012-03-15 Tom Tromey <tromey@redhat.com>
7403 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7404 iterate_over_symbols.
7406 2012-03-14 Doug Evans <dje@google.com>
7408 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7409 DW_OP_GNU_parameter_ref.
7411 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7413 Fix double prompt of 'interpreter-exec mi'.
7414 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7415 (mi_interpreter_resume): use it.
7416 (mi_execute_command_input_handler): New function.
7417 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7418 mi_execute_command_input_handler.
7420 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7422 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7424 (darwin_debug_port_info): Make static.
7425 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7426 * machoread.c (_initialize_machoread): Add prototype.
7427 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7428 (i386_darwin_set_control, i386_darwin_get_control)
7429 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7430 i386_darwin_get_status, i386_darwin_get_control):
7431 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7433 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7435 * ax-gdb.c (gen_usual_unary): Remove special handling of
7436 enum and bool types.
7438 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7440 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7442 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7444 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7446 2012-03-13 Chris January <chris.january@allinea.com>
7448 * aix-thread.c (fill_sprs): Store the floating point registers
7449 at the correct offsets into vals.
7451 2012-03-13 Doug Evans <dje@google.com>
7453 * NEWS: Mention symbol-reloading has been deleted.
7454 * symfile.c (symbol_reloading): Delete.
7455 (show_symbol_reloading): Delete.
7456 (_initialize_symfile): Delete set/show symbol-reloading.
7458 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7459 read_in_chain until we have successfully read it in.
7460 (load_full_comp_unit): Ditto.
7461 (read_signatured_type): Add comment.
7463 2012-03-13 Chris January <chris.january@allinea.com>
7465 * stabsread.c (fix_common_block): Change type of valu argument
7468 2012-03-13 Chris January <chris.january@allinea.com>
7470 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7473 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7475 * common/linux-procfs.c (linux_proc_get_int): New, from
7476 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7478 (linux_proc_get_tgid): Only call linux_proc_get_int.
7479 (linux_proc_get_tracerpid): New.
7480 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7481 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7482 linux_proc_pid_has_state.
7483 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7484 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7485 (linux_ptrace_attach_warnings): New.
7486 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7488 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7489 (linux_nat_attach): New variables ex, buffer, message and message_s.
7490 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7492 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7494 * Makefile.in (linux-ptrace.o): New.
7495 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7497 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7498 * common/linux-ptrace.c: New file.
7499 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7500 * config/arm/linux.mh: Likewise.
7501 * config/i386/linux.mh: Likewise.
7502 * config/i386/linux64.mh: Likewise.
7503 * config/ia64/linux.mh: Likewise.
7504 * config/m32r/linux.mh: Likewise.
7505 * config/m68k/linux.mh: Likewise.
7506 * config/mips/linux.mh: Likewise.
7507 * config/pa/linux.mh: Likewise.
7508 * config/powerpc/linux.mh: Likewise.
7509 * config/powerpc/ppc64-linux.mh: Likewise.
7510 * config/powerpc/spu-linux.mh: Likewise.
7511 * config/s390/s390.mh: Likewise.
7512 * config/sparc/linux.mh: Likewise.
7513 * config/sparc/linux64.mh: Likewise.
7514 * config/xtensa/linux.mh: Likewise.
7515 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7516 common/linux-procfs.c.
7517 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7519 2012-03-13 Hui Zhu <teawater@gmail.com>
7520 Pedro Alves <palves@redhat.com>
7522 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7523 CREATE_BREAKPOINT_FLAGS_INSERTED.
7524 (create_breakpoint_sal, create_breakpoints_sal)
7525 (base_breakpoint_create_breakpoints_sal)
7526 (tracepoint_create_breakpoints_sal)
7527 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7529 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7530 (ftrace_command, strace_command): Adjust.
7531 (create_tracepoint_from_upload): Pass
7532 CREATE_BREAKPOINT_FLAGS_INSERTED.
7533 * breakpoint.h (enum breakpoint_create_flags): New.
7534 (create_breakpoint): New flags parameter.
7535 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7536 * python/py-breakpoint.c (bppy_init): Adjust.
7537 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7538 * spu-tdep.c (spu_catch_start): Adjust.
7540 2012-03-13 Pedro Alves <palves@redhat.com>
7541 Hui Zhu <teawater@gmail.com>
7542 Yao Qi <yao@codesourcery.com>
7544 * remote.c (struct remote_state): New field `starting_up'.
7545 (remote_start_remote): Set and clear it.
7546 (remote_can_download_tracepoint): If starting up, return false.
7548 2012-03-13 Yao Qi <yao@codesourcery.com>
7550 * inferior.h (struct inferior): Remove fields any_syscall_count,
7551 syscalls_counts and total_syscalls_count. Move them to new
7552 struct catch_syscall_inferior_data in breakpoint.c.
7553 * breakpoint.c: Call DEF_VEC_I(int).
7554 (struct catch_syscall_inferior_data): New.
7555 (get_catch_syscall_inferior_data): New.
7556 (catch_syscall_inferior_data_cleanup): New.
7557 (insert_catch_syscall): Update to access data in
7558 struct catch_syscall_inferior_data.
7559 (insert_catch_syscall): Likewise.
7560 (remove_catch_syscall): Likewise.
7561 (remove_catch_syscall): Likewise.
7562 (is_syscall_catchpoint_enabled): Likewise.
7563 (add_catch_command): Likewise.
7564 (_initialize_breakpoint): Register cleanup.
7565 * breakpoint.h: Removed DEF_VEC_I(int).
7566 * dwarf2loc.c: Call DEF_VEC_I(int).
7567 * mi/mi-main.c: Likewise.
7569 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7571 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7573 2012-03-12 Chris January <chris.january@allinea.com>
7575 * aix-thread.c (_initialize_aix_thread): Add prototype.
7576 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7577 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7579 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7581 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7582 include of "amd64-nat.h".
7584 2012-03-12 Tom Tromey <tromey@redhat.com>
7586 * buildsym.c (record_pending_block): Now static.
7587 * buildsym.h: (record_pending_block): Remove.
7589 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7591 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7593 2012-03-09 Tom Tromey <tromey@redhat.com>
7595 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7596 producer_is_gxx_lt_4_6>: New fields.
7597 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7599 2012-03-09 Tom Tromey <tromey@redhat.com>
7601 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7603 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7605 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7608 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7610 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7612 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7614 Fix -Wmissing-prototypes build.
7615 * arm-linux-nat.c (get_thread_id): Make it static.
7616 * xtensa-linux-nat.c (get_thread_id): Likewise.
7618 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7620 * server.c (process_point_options): If a conditional expression
7621 is found, only print a message if remote_debug is nonzero.
7623 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7625 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7626 of internal error for unknown/unsupported types.
7628 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7630 Fix CU relative vs. absolute DIE offsets.
7631 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7632 offset to offset_in_cu.
7633 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7635 (dwarf2_fetch_die_location_block): Rename parameter offset to
7636 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7638 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7640 * libunwind-frame.c: Rename to ...
7641 * ia64-libunwind-tdep.c: ... here.
7642 * libunwind-frame.h: Rename to ...
7643 * ia64-libunwind-tdep.h: ... here.
7644 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7645 ia64-libunwind-tdep.h.
7646 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7647 * README (--with-libunwind): Rename to ...
7648 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7649 * config.in: Regenerate.
7650 * configure: Regenerate.
7651 * configure.ac: New option --with-libunwind-ia64, make the
7652 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7653 Remove AC_DEFINE for HAVE_LIBUNWIND.
7654 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7655 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7656 Rename libunwind-frame in the general comment.
7657 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7658 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7659 Move forward declarations inside #ifndef. Rename libunwind-frame in
7660 the general comment.
7661 * ia64-tdep.c: Rename libunwind-frame.h #include to
7662 ia64-libunwind-tdep.h.
7663 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7664 (ia64_libunwind_descr): Rename libunwind-frame to
7665 ia64-libunwind-tdep in these function comments.
7666 * ia64-tdep.h: Rename libunwind-frame.h #include to
7667 ia64-libunwind-tdep.h.
7668 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7669 ia64-libunwind-tdep in that data comment.
7671 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7673 * libunwind-frame.h (struct frame_unwind): New declaration.
7675 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7677 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7678 "set breakpoint condition-evaluation" command.
7680 2012-03-08 Tristan Gingold <gingold@adacore.com>
7682 * sparc-stub.c: Move to stubs/
7683 * sh-stub.c: Likewise.
7684 * m68k-stub.c: Likewise.
7685 * m32r-stub.c: Likewise.
7686 * i386-stub.c: Likewise.
7688 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7690 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7691 linux_get_siginfo_type.
7693 * m68klinux-nat.c: Include "gdb_proc_service.h".
7694 (PTRACE_GET_THREAD_AREA): Define.
7695 (ps_get_thread_area): New function.
7697 2012-03-08 Yao Qi <yao@codesourcery.com>
7699 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7701 (remote_query_attached): Likewise.
7702 (remote_static_tracepoint_marker_at): Likewise.
7703 (remote_set_permissions): Likewise.
7704 (remote_detach_1, extended_remote_attach_1): Likewise.
7705 (send_g_packet, remote_vkill): Likewise.
7706 (extended_remote_disable_randomization): Likewise.
7707 (remote_add_target_side_condition): Likewise.
7708 (remote_insert_breakpoint): Likewise.
7709 (remote_remove_breakpoint): Likewise.
7710 (remote_insert_watchpoint): Likewise.
7711 (remote_remove_watchpoint): Likewise.
7712 (remote_insert_hw_breakpoint): Likewise.
7713 (remote_insert_hw_breakpoint): Likewise.
7714 (remote_remove_hw_breakpoint): Likewise.
7715 (remote_download_command_source): Likewise.
7716 (remote_download_tracepoint): Likewise.
7717 (remote_download_trace_state_variable): Likewise.
7718 (remote_disable_tracepoint): Likewise.
7719 (remote_trace_set_readonly_regions): Likewise.
7720 (remote_get_tracepoint_status): Likewise.
7721 (remote_trace_find): Likewise.
7722 (remote_get_trace_state_variable_value): Likewise.
7723 (remote_set_disconnected_tracing): Likewise.
7724 (remote_set_circular_trace_buffer): Likewise.
7725 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7726 (remote_use_agent): Likewise.
7727 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7730 2012-03-07 Pedro Alves <palves@redhat.com>
7732 * NEWS: Mention QProgramSignals.
7733 * inferior.h (update_signals_program_target): Declare.
7734 * infrun.c: (update_signals_program_target): New.
7735 (handle_command): Update the target of the new program signals
7737 * remote.c (PACKET_QProgramSignals): New enum.
7738 (last_program_signals_packet): New global.
7739 (remote_program_signals): New.
7740 (remote_start_remote): Update the target with the program signals
7742 (remote_protocol_features): Add entry for QPassSignals.
7743 (remote_open_1): Free anc clear last_program_signals_packet.
7744 (init_remote_ops): Install remote_program_signals.
7745 * target.c (update_current_target): Adjust.
7746 (target_program_signals): New.
7747 * target.h (struct target_ops) <to_program_signals>: New field.
7748 (target_program_signals): Declare.
7750 2012-03-07 Pedro Alves <palves@redhat.com>
7752 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7755 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7757 * m68klinux-nat.c (getregs_supplies): Make static.
7758 (getfpregs_supplies): Likewise.
7759 (have_ptrace_getregs): Likewise.
7761 2012-03-06 Joel Brobecker <brobecker@adacore.com>
7763 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7764 in call to get_die_type_at_offset.
7766 2012-03-06 Stan Shebs <stan@codesourcery.com>
7768 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7769 * mi/mi-cmd-disas.c: Ditto.
7770 * mi/mi-cmd-env.c: Ditto.
7771 * mi/mi-cmd-file.c: Ditto.
7772 * mi/mi-cmd-stack.c: Ditto.
7773 * mi/mi-cmd-target.c: Ditto.
7774 * mi/mi-cmd-var.c: Ditto.
7775 * mi/mi-cmds.c: Ditto.
7776 * mi/mi-cmds.h: Ditto.
7777 * mi/mi-console.c: Ditto.
7778 * mi/mi-getopt.c: Ditto.
7779 * mi/mi-getopt.h: Ditto.
7780 * mi/mi-interp.c: Ditto.
7781 * mi/mi-main.c: Ditto.
7782 * mi/mi-out.c: Ditto.
7783 * mi/mi-parse.c: Ditto.
7784 * mi/mi-parse.h: Ditto.
7785 * mi/mi-symbol-cmds.c: Ditto.
7787 * mi/mi-getopt.h: Move mi_opt struct up.
7788 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7790 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7792 2012-03-06 Tom Tromey <tromey@redhat.com>
7794 * proc-service.c (ps_pglobal_lookup): Set the current program
7797 2012-03-06 Pedro Alves <palves@redhat.com>
7799 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7801 2012-03-05 Joel Brobecker <brobecker@adacore.com>
7803 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7805 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7808 * common/linux-osdata.c (linux_common_core_of_thread): New function
7810 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7811 call by linux_common_core_of_thread.
7812 (linux_nat_core_of_thread_1): Remove.
7813 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7814 * linux-thread-db.c: Include linux-osdata.h.
7815 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7816 linux_common_core_of_thread.
7818 2012-03-05 Tom Tromey <tromey@redhat.com>
7820 * value.c (value_primitive_field): Don't fetch contents for
7823 2012-03-05 Tom Tromey <tromey@redhat.com>
7825 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7827 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
7829 * s390-nat.c: Include "gregset.h".
7831 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7833 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7834 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7835 (libunwind_load): New variable so_error, use it for dlerror. Try to
7836 load also LIBUNWIND_SO_7.
7838 2012-03-05 Pedro Alves <palves@redhat.com>
7840 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7841 is not NULL, and remove resulting dead code.
7843 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7845 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7846 prologue to sh_analyze_prologue.
7847 (sh_analyze_prologue): Make better use of such an upper limit, and
7848 generally be more cautious about accessing memory.
7850 2012-03-05 Tom Tromey <tromey@redhat.com>
7852 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7853 _initialize_ia64_hpux_tdep.
7855 2012-03-05 Pedro Alves <palves@redhat.com>
7859 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7860 the register state is clear, supply explicit zero, instead of
7861 marking the register unavailable.
7863 2012-03-05 Tristan Gingold <gingold@adacore.com>
7865 * NEWS: Mention OpenVMS ia64 new target.
7867 2012-03-05 Tristan Gingold <gingold@adacore.com>
7869 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7870 (ia64_unw_accessors, ia64_unw_rse_accessors)
7871 (ia64_libunwind_descr): Declare.
7872 * ia64-vms-tdep.c: New file.
7873 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7874 (ia64_libunwind_descr): Make them public.
7875 * configure.tgt: Add ia64-*-*vms*.
7876 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7877 (ALLDEPFILES): Add ia64-vms-tdep.c
7879 2012-03-05 Tristan Gingold <gingold@adacore.com>
7881 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7882 * remote.c (PACKET_qXfer_uib): New enum value.
7883 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7884 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7885 (_initialize_remote): Call add_packet_config_cmd for
7888 2012-03-05 Tristan Gingold <gingold@adacore.com>
7890 * osabi.c (gdb_osabi_names): Add OpenVMS.
7891 (generic_elf_osabi_sniffer): Likewise.
7892 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
7894 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7896 Removed unused code.
7897 * libunwind-frame.c (libunwind_frame_unwind)
7898 (libunwind_frame_base_address): Remove.
7899 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7901 2012-03-04 Yao Qi <yao@codesourcery.com>
7903 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7904 remove trailing new line.
7905 (agent_run_command, agent_run_command): Add _ markup.
7906 (agent_capability_check): Likewise.
7908 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7910 * breakpoint.c (set_condition_evaluation_mode): Set
7911 CONDITION_EVALUATION_MODE unconditionally.
7913 2012-03-03 Yao Qi <yao@codesourcery.com>
7915 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7916 * common/agent.h: Update declaration.
7917 * inf-child.c (inf_child_use_agent): New.
7918 (inf_child_can_use_agent): New.
7919 (inf_child_target): Initialize fields `to_use_agent'
7920 and `to_can_use_agent'.
7921 * agent.c (agent_new_objfile): New.
7922 (_initialize_agent): Add agent_new_objfile to new_objfile
7925 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7927 (linux_target_install_ops): Initialize field
7928 `to_static_tracepoint_markers_by_strid'.
7929 * remote.c (free_current_marker): Move it to ...
7930 * tracepoint.c (free_current_marker): ... here. New.
7931 (cleanup_target_stop): New.
7932 * tracepoint.h: Declare free_current_marker.
7933 * NEWS: Add one entry about `info static-tracepoint-marker'.
7935 2012-03-03 Yao Qi <yao@codesourcery.com>
7937 * common/agent.c (agent_loaded_p): New.
7938 (agent_look_up_symbols): New global.
7939 * common/agent.h: Declare agent_loaded_p.
7941 2012-03-03 Yao Qi <yao@codesourcery.com>
7943 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7944 (agent_capability_check, agent_capability_invalidate): New.
7945 (symbol_list): New array element.
7946 * common/agent.h (enum agent_capa): New.
7947 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7949 2012-03-03 Yao Qi <yao@codesourcery.com>
7951 * target.h (struct target_ops) <to_use_agent>: New field.
7952 (struct target_ops) <to_can_use_agent>: New field.
7953 (target_use_agent, target_can_use_agent): New macro.
7954 * target.c (update_current_target): Update.
7955 * remote.c: New enum `PACKET_QAgent'.
7956 (remote_protocol_features): Add a new element.
7957 (remote_use_agent, remote_can_use_agent): New.
7958 (init_remote_ops): Initialize field `can_use_agent' with
7959 remote_can_use_agent. Intiailize field `use_agent' with
7961 * common/agent.c (use_agent): New global.
7962 * common/agent.h: Declare it.
7963 * tracepoint.c (info_static_tracepoint_markers_command): Add
7965 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7966 (COMMON_OBS): Add common/agent.o and agent.o
7967 (common-agent.o): New rule.
7970 2012-03-03 Yao Qi <yao@codesourcery.com>
7972 * common/agent.c: New.
7973 * common/agent.h: New.
7974 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7976 * configure, configh.in: Regenerated.
7978 2012-03-02 Kevin Buettner <kevinb@redhat.com>
7980 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7981 unless it exists for this architecture.
7983 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7985 * language.h (struct language_defn): New "method" la_read_var_value.
7986 * findvar.c: #include "language.h".
7987 (default_read_var_value): Renames read_var_value. Rewrite
7988 function description.
7989 (read_var_value): New function.
7990 * value.h (default_read_var_value): Add prototype.
7991 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7993 (ada_language_defn): Add entry for la_read_var_value.
7994 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7995 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7996 language_defn structures to add entry for new la_read_var_value
7999 2012-03-02 Tom Tromey <tromey@redhat.com>
8000 Pedro Alves <palves@redhat.com>
8002 PR breakpoints/13776:
8003 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8005 (delete_longjmp_breakpoint_at_next_stop): New.
8006 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8007 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8008 before deleting the inferior. Add comments.
8009 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8010 breakpoints immediately, but only on next stop. Move that code
8011 next to where we mark other breakpoints for deletion.
8013 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8015 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8017 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8020 2012-03-02 Pedro Alves <palves@redhat.com>
8022 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8024 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8026 Fix -Wmissing-prototypes build.
8027 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8028 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8029 (gdbsim_has_memory): Likewise.
8031 2012-03-02 Yao Qi <yao@codesourcery.com>
8033 Fix -Wmissing-prototypes build.
8034 * charset.c (phony_iconv_open): Make static.
8035 (phony_iconv_close, phony_iconv): Likewise.
8036 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8037 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8039 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8040 * ser-mingw.c (create_select_thread): Make static.
8041 * windows-termcap.c (tgetent): New prototype.
8042 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8044 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8046 Fix -Wmissing-prototypes build.
8047 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8048 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8049 (_initialize_loadable): New prototypes.
8051 2012-03-02 Doug Evans <dje@google.com>
8053 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8054 abbrev table, read_comp_unit will do it.
8056 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8058 Fix -Wmissing-prototypes build.
8059 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8060 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8061 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8062 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8063 (_initialize_arm_symbian_tdep): New prototype.
8064 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8065 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8066 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8068 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8069 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8071 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8072 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8073 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8075 * moxie-tdep.c (moxie_process_record): Likewise.
8076 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8077 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8078 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8079 (_initialize_rl78_tdep): New prototype.
8080 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8081 (_initialize_rx_tdep): New prototype.
8082 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8083 (_initialize_darwin_solib): New prototype.
8084 * solib-spu.c: Include solib-spu.h.
8085 (_initialize_spu_solib): New prototype.
8086 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8087 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8088 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8089 (tic6x_software_single_step): Make it static.
8090 (_initialize_tic6x_tdep): New prototype.
8092 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8094 Fix -Wmissing-prototypes build.
8095 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8096 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8098 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8100 Fix -Wmissing-prototypes build.
8101 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8102 (frv_have_stopped_data_address): Remove.
8104 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8106 Fix -Wmissing-prototypes build.
8107 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8108 * sh-tdep.c: Include sh64-tdep.h.
8109 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8110 * sh64-tdep.c: Include sh64-tdep.h.
8111 * sh64-tdep.h: New file.
8113 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8115 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8117 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8119 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8120 sp_regnum once the gdbarch_init_osabi hook has been called.
8122 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8124 * mips-tdep.c (mips32_bc1_pc): New function.
8125 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8126 BPOSGE32 and BPOSGE64 instructions.
8127 (deal_with_atomic_sequence): Likewise.
8128 (mips32_instruction_has_delay_slot): Likewise.
8130 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8131 Chris Dearman <chris@mips.com>
8132 Maciej W. Rozycki <macro@codesourcery.com>
8133 Joseph Myers <joseph@codesourcery.com>
8135 * features/mips-dsp.xml: New file.
8136 * features/mips64-dsp.xml: New file.
8137 * features/mips-dsp-linux.xml: New file.
8138 * features/mips64-dsp-linux.xml: New file.
8139 * features/Makefile (WHICH): Add mips-dsp-linux and
8141 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8142 * features/mips-dsp-linux.c: New file.
8143 * features/mips64-dsp-linux.c: New file.
8144 * regformats/mips-dsp-linux.dat: New file.
8145 * regformats/mips64-dsp-linux.dat: New file.
8146 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8148 (mips64_linux_register_addr): Likewise.
8149 (mips64_linux_regsets_fetch_registers): Likewise.
8150 (mips64_linux_regsets_store_registers): Likewise.
8151 (mips64_linux_fetch_registers): Update call to
8152 mips64_linux_regsets_fetch_registers.
8153 (mips64_linux_store_registers): Update call to
8154 mips64_linux_regsets_store_registers.
8155 (mips_linux_read_description): Probe for DSP registers.
8156 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8157 and initialize_tdesc_mips64_dsp_linux.
8158 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8159 Remove padding of no longer used embedded register slots.
8160 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8161 (MIPS_RESTART_REGNUM): Redefine enum value.
8162 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8164 (mips_tx39_reg_names): Likewise.
8165 (mips_linux_reg_names): New array of register names for Linux
8167 (mips_register_name): Check for a null pointer in
8168 mips_processor_reg_names and return an empty string.
8169 (mips_register_type): Exclude embedded registers for the IRIX
8171 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8172 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8174 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8175 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8176 (mips_gdbarch_init): Likewise. Initialize internal register
8177 indices for the Linux ABI. Use dynamic numbers to refer to
8178 registers, as applicable, while parsing the target description.
8179 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8181 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8183 * frame.h (read_frame_register_unsigned): Fix typo in function
8186 2012-03-01 Pedro Alves <palves@redhat.com>
8188 * jit-reader.in [!__cplusplus]
8189 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8191 2012-03-01 Pedro Alves <palves@redhat.com>
8193 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8194 * configure: Regenerate.
8196 2012-03-01 Pedro Alves <palves@redhat.com>
8198 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8199 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8200 (ftrace_command, strace_command): Make static.
8201 * d-lang.c (_initialize_d_language): Declare.
8202 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8203 * dwarf2loc.c (_initialize_dwarf2loc):
8204 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8205 * exec.c (exec_get_section_table): Make static.
8206 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8207 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8208 * inferior.c (remove_inferior_command, add_inferior_command)
8209 (clone_inferior_command): Make static.
8210 * linux-nat.c (linux_nat_thread_address_space)
8211 (linux_nat_core_of_thread): Make static.
8212 * linux-tdep.c (_initialize_linux_tdep): Declare.
8213 * objc-lang.c (_initialize_objc_lang): Declare.
8214 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8216 (_initialize_opencl_language): Declare.
8217 * record.c (_initialize_record): Declare.
8218 * remote.c (demand_private_info, remote_get_tib_address)
8219 (remote_supports_cond_tracepoints)
8220 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8222 * skip.c (_initialize_step_skip): Declare.
8223 * symtab.c (skip_prologue_using_lineinfo): Make static.
8224 * tracepoint.c (delete_trace_state_variable)
8225 (trace_variable_command, delete_trace_variable_command)
8226 (get_uploaded_tsv, find_matching_tracepoint_location)
8227 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8229 * value.c (pack_unsigned_long): Make static.
8230 * varobj.c (varobj_ensure_python_env): Make static.
8231 * windows-tdep.c (_initialize_windows_tdep): Declare.
8232 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8234 2012-03-01 Pedro Alves <palves@redhat.com>
8236 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8238 (linux_init_abi): Install it as has_shared_address_space gdbarch
8241 2012-03-01 Pedro Alves <palves@redhat.com>
8243 * observer.c (observer_test_first_notification_function)
8244 (observer_test_second_notification_function)
8245 (observer_test_third_notification_function): Add declarations.
8247 2012-03-01 Pedro Alves <palves@redhat.com>
8249 * common/signals.c (default_target_signal_to_host)
8250 (default_target_signal_from_host): Move ...
8251 * arch-utils.c: ... here.
8252 * arch-utils.h (default_target_signal_to_host)
8253 (default_target_signal_from_host): Declare.
8255 * common/signals.c (target_signal_from_command): Move ...
8256 * infrun.c: ... here.
8257 * inferior.h (target_signal_from_command): Declare.
8258 * target.h (target_signal_from_command)
8259 (default_target_signal_from_host, default_target_signal_to_host):
8260 Delete declarations.
8262 * common/signals.c (_initialize_signals): Delete.
8264 2012-03-01 Pedro Alves <palves@redhat.com>
8266 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8267 both __cplusplus and !__cplusplus.
8269 2012-03-01 Pedro Alves <palves@redhat.com>
8271 * psymtab.c (find_and_open_source): Delete declaration.
8272 * source.c (find_and_open_source): Move comment ...
8273 * source.h (find_and_open_source): ... to this new declaration.
8275 2012-03-01 Pedro Alves <palves@redhat.com>
8277 * inline-frame.c: Include inline-frame.h.
8279 2012-03-01 Pedro Alves <palves@redhat.com>
8281 * tui/tui-data.c (set_gen_win_origin): Delete.
8282 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8283 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8285 2012-03-01 Pedro Alves <palves@redhat.com>
8287 * remote.c (encode_actions): Delete declaration.
8288 * tracepoint.c (encode_actions): Make extern.
8289 * tracepoint.h (encode_actions): Declare.
8291 2012-03-01 Pedro Alves <palves@redhat.com>
8293 * python/py-breakpoint.c: Include python.h.
8294 * python/py-continueevent.c (create_continue_event_object): Make
8296 * python/py-lazy-string.c (stpy_get_type): Make static.
8297 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8299 * python/py-utils.c (unicode_to_target_python_string): Make
8301 * python/py-value.c: Include python.h.
8303 2012-03-01 Pedro Alves <palves@redhat.com>
8305 * inferior.c (delete_threads_of_inferior): Delete.
8307 2012-03-01 Pedro Alves <palves@redhat.com>
8309 Import fallback definitions from glibc.
8311 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8312 ps_prochandle): Forward declare.
8313 (ps_err_e): Use glibc's comments.
8314 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8315 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8316 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8317 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8318 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8319 (struct ps_prochandle): Adjust comment.
8321 2012-03-01 Pedro Alves <palves@redhat.com>
8323 * ada-lang.c (ada_modulus_from_name): Delete.
8324 * ada-lex.l (lexer_init): Make static.
8326 2012-03-01 Pedro Alves <palves@redhat.com>
8330 * frame.c (read_frame_register_unsigned): New.
8331 * frame.h (read_frame_register_unsigned): Declare.
8332 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8334 (print_i387_control_word): New parameter `control_p'. Handle it.
8335 (i387_print_float_info): Handle unavailable float registers.
8337 2012-03-01 Keith Seitz <keiths@redhat.com>
8339 * linespec.c (decode_line_2): Sort the list of methods
8340 alphabetically before presenting the user with a selection
8343 2012-03-01 Doug Evans <dje@google.com>
8345 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8347 (dwarf2_read_abbrevs): Remove corresponding initialization.
8349 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8351 * NEWS: Mention new python command class gdb.COMMAND_USER.
8352 * cli/cli-cmds.c (show_user): Print error when used on a python
8354 (init_cli_cmds): Update documentation strings for "show user" and
8355 "set/show max-user-call-depth" to clarify that it does not apply to
8357 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8359 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8361 * top.c (execute_command): Only execute a user-defined command as a
8362 legacy macro if c->user_commands is set.
8364 2012-03-01 Tom Tromey <tromey@redhat.com>
8366 * valprint.h (struct generic_val_print_decorations): New.
8367 (generic_val_print): Declare.
8368 * valprint.c (generic_val_print): New function.
8369 * p-valprint.c (p_decorations): New global.
8370 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8371 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8372 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8373 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8374 * m2-valprint.c (m2_decorations): New global.
8375 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8376 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8377 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8378 TYPE_CODE_ERROR>: Call generic_val_print.
8379 * f-valprint.c (f_decorations): New global.
8380 (f_val_print): Use print_function_pointer_address.
8381 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8382 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8383 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8385 * c-valprint.c (c_decorations): New global.
8386 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8387 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8388 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8389 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8390 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8391 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8394 2012-03-01 Tom Tromey <tromey@redhat.com>
8396 * valprint.c (val_print): Update.
8397 * p-valprint (pascal_val_print): Return void.
8398 * p-lang.h (pascal_val_print): Return void.
8399 * m2-valprint.c (m2_val_print): Return void.
8400 * m2-lang.h (m2_val_print): Return void.
8401 * language.h (struct language_defn) <la_val_print>: Return void.
8402 * language.c (unk_lang_val_print): Return void.
8403 * jv-valprint.c (java_val_print): Return void.
8404 * jv-lang.h (java_val_print): Return void.
8405 * f-valprint.c (f_val_print): Return void.
8406 * f-lang.h (f_val_print): Return void.
8407 * d-valprint.c (d_val_print): Return void.
8408 (dynamic_array_type): Update.
8409 * d-lang.h (d_val_print): Return void.
8410 * c-valprint.c (c_val_print): Return void.
8411 * c-lang.h (c_val_print): Return void.
8412 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8414 * ada-lang.h (ada_val_print): Return void.
8416 2012-03-01 Tom Tromey <tromey@redhat.com>
8418 * value.h (val_print): Return void.
8419 * valprint.c (val_print): Return void.
8421 2012-03-01 Tom Tromey <tromey@redhat.com>
8423 * value.h (common_val_print): Return void.
8424 * valprint.c (common_val_print): Return void.
8426 2012-03-01 Tom Tromey <tromey@redhat.com>
8428 * value.h (value_print): Return void.
8429 * valprint.c (value_print): Return void.
8430 * p-valprint.c (pascal_value_print): Return void.
8431 * p-lang.h (pascal_value_print): Return void.
8432 * language.h (struct language_defn) <la_value_print>: Return
8434 * language.c (unk_lang_value_print): Return void.
8435 * jv-valprint.c (java_value_print): Return void.
8436 * jv-lang.h (java_value_print): Return void.
8437 * f-valprint.c (c_value_print): Don't declare.
8439 * c-valprint.c (c_value_print): Return void.
8440 * c-lang.h (c_value_print): Return void.
8441 * ada-valprint.c (ada_value_print): Return void.
8442 * ada-lang.h (ada_value_print): Return void.
8444 2012-03-01 Tom Tromey <tromey@redhat.com>
8446 * value.c (value_primitive_field): Handle virtual base classes.
8448 2012-03-01 Tom Tromey <tromey@redhat.com>
8450 * gdbtypes.h (struct vbase): Remove.
8452 2012-03-01 Tom Tromey <tromey@redhat.com>
8454 * c-valprint.c (print_function_pointer_address): Move...
8455 * valprint.c: ... here. Make non-static.
8456 * m2-valprint.c (print_function_pointer_address): Remove.
8457 * valprint.h (print_function_pointer_address): Declare.
8459 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8461 * NEWS: Document the fact that one can provide a condition when
8462 creating an Ada exception catchpoint.
8464 2012-03-01 Tom Tromey <tromey@redhat.com>
8466 * valprint.c (val_print_type_code_flags): Fix placement of
8469 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8471 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8472 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8473 environment variable before calling update-copyright.
8475 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8477 * gnulib/extra/update-copyright: Update to the latest from
8478 gnulib's git repository.
8479 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8480 variable to 2 instead of 1.
8482 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8484 * varobj.c (c_value_of_variable): Remove dead code.
8486 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8488 * ada-lex.p (processId): Do not modify already encoded IDs.
8489 Update function documentation.
8491 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8493 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8494 "name" with "struct symbol *name_sym".
8495 * ada-exp.y (write_var_or_type): Update call to
8496 ada_find_renaming_symbol.
8497 "name" with "struct symbol *name_sym". Adjust Implementation
8498 accordingly. Adjust the function documentation.
8500 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8502 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8503 * ada-lang.c (ada_find_any_type): Add advance declaration.
8504 Make static. Replace ada_find_any_symbol by
8505 ada_find_any_type_symbol.
8506 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8507 Improve function description. Make static.
8508 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8509 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8511 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8513 * ada-lang.c (struct tag_args): Delete.
8514 (ada_get_tsd_type): Function body moved up in source file.
8515 (ada_tag_name_1, ada_tag_name_2): Delete.
8516 (ada_get_tsd_from_tag): New function.
8517 (ada_tag_name_from_tsd): New function.
8518 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8519 to determine the tag name.
8521 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8523 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8525 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8528 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8530 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8532 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8534 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8537 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8539 * ada-lang.c (constrained_packed_array_type): If there is a
8540 parallel XA type, use it to determine the array index type.
8542 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8544 * ada-valprint.c (ada_val_print_1): If our value is a reference
8545 to an array descriptor, dereference it before converting it
8548 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8550 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8551 creating fixed value.
8552 (ada_value_ind, ada_coerce_ref, assign_component)
8553 (ada_evaluate_subexp): Remove call to unwrap_value before
8554 call to ada_to_fixed_value.
8556 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8558 * ada-lang.c (to_fixed_array_type): Set result's type name.
8560 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8562 * ada-lang.c (catch_ada_exception_command_split): Add new
8563 argument cond_string. Add support for condition at end of
8564 "catch exception" commands.
8565 (ada_decode_exception_location): Add new argument cond_string.
8566 Update call to catch_ada_exception_command_split.
8567 (create_ada_exception_catchpoint): Add new argument cond_string.
8568 Set the breakpoint condition if needed.
8569 (catch_ada_exception_command): Update call to
8570 ada_decode_exception_location.
8571 (ada_decode_assert_location): Add function documentation.
8572 Add support for condition at end of "catch assert" command.
8573 (catch_assert_command): Update calls to ada_decode_assert_location
8574 and create_ada_exception_catchpoint.
8576 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8578 Fix disp-step-syscall.exp: fork: single step over fork.
8579 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8580 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8581 comment, change parameters gdbarch and ptid to regcache. Remove
8582 parameter regcache, initialize gdbarch from regcache here.
8583 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8585 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8587 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8588 'syscall'. Make the 'int' check more strict.
8590 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8592 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8593 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8594 (i386_linux_intx80_sysenter_syscall_record): ... here.
8595 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8596 Use the renamed function name.
8598 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8600 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8601 * breakpoint.c (until_break_command): Likewise.
8602 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8603 * infcall.c (call_function_by_hand): Likewise.
8604 * infcmd.c (finish_forward): Likewise.
8605 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8607 2012-02-28 Tristan Gingold <gingold@adacore.com>
8609 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8610 avoid variable assignments inside condition.
8612 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8614 Fix static analysis issue found by cppcheck.
8615 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8616 uninitialized BUF for size 2.
8618 2012-02-27 Chris Dearman <chris@mips.com>
8619 Nathan Froyd <froydnj@codesourcery.com>
8620 Maciej W. Rozycki <macro@codesourcery.com>
8622 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8623 (mips16_instruction_has_delay_slot): Likewise.
8624 (mips_segment_boundary): Likewise.
8625 (mips_adjust_breakpoint_address): Likewise.
8626 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8628 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8629 Maciej W. Rozycki <macro@codesourcery.com>
8631 * infrun.c (handle_inferior_event): Don't proceed through
8632 shared library trampolines if stepping at the machine
8635 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8637 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8640 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8642 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8643 (sh_stub_unwind_sniffer): New functions.
8644 (sh_stub_unwind): New variable.
8645 (sh_gdbarch_init): Wire everything.
8647 2012-02-27 Pedro Alves <palves@redhat.com>
8649 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8650 (linux_nat_post_attach_wait): Adjust to use
8651 linux_proc_pid_is_stopped.
8652 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8653 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8654 based on pid_is_stopped from both linux-nat.c and
8655 gdbserver/linux-low.c, and renamed.
8657 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8659 * remote.c (remote_watchpoint_addr_within_range): New function.
8660 (init_remote_ops): Use it.
8662 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8664 * target.h (target_watchpoint_addr_within_range): Document macro.
8666 2012-02-24 Pedro Alves <palves@redhat.com>
8668 * stack.c (set_last_displayed_sal): Issue internal_error instead
8669 of warning, and issue it after clearing the last displayed sal.
8671 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8672 Pedro Alves <palves@redhat.com>
8674 * breakpoint.c (until_break_command): Install breakpoints after
8675 all frame manipulations.
8677 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8679 * remote.c (remote_supports_cond_breakpoints): New forward
8681 (remote_add_target_side_condition): New function.
8682 (remote_insert_breakpoint): Add target-side breakpoint
8683 conditional if supported.
8684 (remote_insert_hw_breakpoint): Likewise.
8685 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8688 * target.c (update_current_target): Inherit
8689 to_supports_evaluation_of_breakpoint_conditions.
8690 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8692 * target.h (struct target_ops)
8693 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8694 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8696 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8697 (condition_evaluation_both, condition_evaluation_auto,
8698 condition_evaluation_host, condition_evaluation_target,
8699 condition_evaluation_enums, condition_evaluation_mode_1,
8700 condition_evaluation_mode): New static globals.
8701 (translate_condition_evaluation_mode): New function.
8702 (breakpoint_condition_evaluation_mode): New function.
8703 (gdb_evaluates_breakpoint_condition_p): New function.
8704 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8705 (mark_breakpoint_modified): New function.
8706 (mark_breakpoint_location_modified): New function.
8707 (set_condition_evaluation_mode): New function.
8708 (show_condition_evaluation_mode): New function.
8709 (bp_location_compare_addrs): New function.
8710 (get_first_location_gte_addr): New helper function.
8711 (set_breakpoint_condition): Free condition bytecode if locations
8712 has become unconditional. Call mark_breakpoint_modified (...).
8713 (condition_command): Call update_global_location_list (1) for
8715 (breakpoint_xfer_memory): Use is_breakpoint (...).
8716 (is_breakpoint): New function.
8717 (parse_cond_to_aexpr): New function.
8718 (build_target_condition_list): New function.
8719 (insert_bp_location): Handle target-side conditional
8720 breakpoints and call build_target_condition_list (...).
8721 (update_inserted_breakpoint_locations): New function.
8722 (insert_breakpoint_locations): Handle target-side conditional
8724 (bpstat_check_breakpoint_conditions): Add comment.
8725 (bp_condition_evaluator): New function.
8726 (bp_location_condition_evaluator): New function.
8727 (print_breakpoint_location): Print information on where the condition
8729 (print_one_breakpoint_location): Likewise.
8730 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8731 breakpoint location.
8732 (force_breakpoint_reinsertion): New functions.
8733 (update_global_location_list): Handle target-side breakpoint
8735 Reinsert locations that are already inserted if conditions have
8737 (bp_location_dtor): Free agent expression bytecode.
8738 (disable_breakpoint): Call mark_breakpoint_modified (...).
8739 Call update_global_location_list (...) with parameter 1 for breakpoints.
8740 (disable_command): Call mark_breakpoint_location_modified (...).
8741 Call update_global_location_list (...) with parameter 1 for breakpoints.
8742 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8743 (enable_command): mark_breakpoint_location_modified (...).
8744 (_initialize_breakpoint): Update documentation and add
8745 condition-evaluation breakpoint subcommand.
8747 * breakpoint.h: Include ax.h.
8748 (condition_list): New data structure.
8749 (condition_status): New enum.
8750 (bp_target_info) <cond_list>: New field.
8751 (bp_location) <condition_changed, cond_bytecode>: New fields.
8752 (is_breakpoint): New prototype.
8754 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8756 * remote.c (remote_state) <cond_breakpoints>: New field.
8757 (PACKET_ConditionalBreakpoints): New enum.
8758 (remote_cond_breakpoint_feature): New function.
8759 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8760 (remote_supports_cond_breakpoints): New function.
8761 (_initialize_remote): Add new packet configuration for
8762 target-side conditional breakpoints.
8764 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8766 * NEWS: Mention target-side conditional breakpoint support,
8767 new condition-evaluation breakpoint subcommand and remote
8770 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8772 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8775 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8777 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8778 (after_prologue): Remove.
8780 2012-02-23 Tom Tromey <tromey@redhat.com>
8782 * jv-valprint.c (java_val_print): Remove dead code.
8784 2012-02-23 Tristan Gingold <gingold@adacore.com>
8786 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8787 known_tasks_element and known_tasks_length fields.
8788 (read_known_tasks_array): Change argument type. Use pointer type
8789 and number of elements from DATA. Adjust.
8790 (read_known_tasks_list): Likewise.
8791 (get_known_tasks_addr): Remove.
8792 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8793 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8794 type and array length. Merge former get_known_tasks_addr code.
8796 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8799 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8800 it after set_momentary_breakpoint.
8802 2012-02-22 Sterling Augustine <saugustine@google.com>
8805 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8807 2012-02-22 Gary Benson <gbenson@redhat.com>
8809 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8810 (find_slot_in_mapped_hash): Likewise.
8812 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8815 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8816 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8817 * configure: Regenerate.
8819 2012-02-21 Tristan Gingold <gingold@adacore.com>
8820 Pedro Alves <palves@redhat.com>
8822 * ia64-tdep.c: Do not include libunwind-ia64.h.
8823 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8824 Include libunwind-ia64.h instead of libunwind.h.
8825 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8826 for libunwind.h existence.
8827 * configure, config.in: Regenerate.
8829 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8831 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8832 instead of value_rtti_target_type.
8833 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8834 instead of value_rtti_target_type.
8835 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8836 value_rtti_target_type.
8837 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8838 (value_rtti_target_type): Rename to ...
8839 (value_rtti_indirect_type): ... here and make it indirect. Update
8841 * value.c (readjust_indirect_value_type): New function.
8842 (coerce_ref): Support for enclosing type setting for references
8843 with readjust_indirect_value_type.
8844 * value.h (readjust_value_type): New declaration.
8845 (value_rtti_target_type): Rename to ...
8846 (value_rtti_indirect_type): ... here.
8848 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8850 * MAINTAINERS (Write After Approval): Add myself to the list.
8852 2012-02-20 Doug Evans <dje@google.com>
8854 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8855 Rename objfile_p_char parameter to objfilep.
8856 (build_objfile_section_table): Result is now void. All callers
8858 * objfiles.h (struct objfile): Tweak comments, whitespace.
8859 (build_objfile_section_table): Update.
8861 * elfread.c (elf_symfile_segments): Fix warning text.
8863 2012-02-20 Tom Tromey <tromey@redhat.com>
8866 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8867 particular set of file names once.
8868 (dw2_map_symbol_filenames): Likewise.
8870 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8873 * main.c (write_files): Remove the declaration.
8874 (external_editor_command): Move the declaration ...
8875 [GDBTK] (external_editor_command): ... here. Fix the comment.
8877 2012-02-20 Tom Tromey <tromey@redhat.com>
8879 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8882 2012-02-20 Tristan Gingold <gingold@adacore.com>
8884 * darwin-nat.h (enum darwin_msg_state): Add comments.
8886 2012-02-20 Tristan Gingold <gingold@adacore.com>
8888 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8891 2012-20-18 Joel Brobecker <brobecker@adacore.com>
8893 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8894 between function description and implementation.
8896 2012-02-17 Tom Tromey <tromey@redhat.com>
8899 * python/py-event.c (event_object_getset): New global.
8900 (event_object_type): Reference it.
8901 * python/py-type.c (field_object_getset): New global.
8902 (field_object_type): Reference it.
8903 * python/python-internal.h (gdb_py_generic_dict): Declare.
8904 * python/py-utils.c (gdb_py_generic_dict): New function.
8906 2012-02-17 Tristan Gingold <gingold@adacore.com>
8908 * solib-darwin.c (darwin_current_sos): Check magic and filetype
8910 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8912 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8913 TYPE_CALLING_CONVENTION annotation.
8915 2012-02-16 Kevin Buettner <kevinb@redhat.com>
8917 * MAINTAINERS: Add rx to target ISA section.
8918 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8919 (ALLDEPFILES): Add rx-tdep.c.
8921 2012-02-16 Tom Tromey <tromey@redhat.com>
8923 * symfile.c (symbol_file_add_main_1): Use inferior's
8925 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8926 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8928 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8930 (follow_exec): Use inferior's symfile_flags.
8931 * inferior.h (struct inferior) <symfile_flags>: New field.
8933 2012-02-16 Mike Frysinger <vapier@gentoo.org>
8936 * remote-sim.c (gdbsim_create_inferior): Call error() when
8937 sim_create_inferior() fails.
8939 2012-02-16 Josh Matthews <josh@joshmatthews.net>
8941 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8943 2012-02-16 Tom Tromey <tromey@redhat.com>
8946 * thread.c (struct current_thread_cleanup) <was_removable>: New
8948 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8949 (make_cleanup_restore_current_thread): Initialize new field.
8951 2012-02-15 Kevin Buettner <kevinb@redhat.com>
8953 * MAINTAINERS: Add rl78 to target ISA section.
8954 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8955 (ALLDEPFILES): Add rl78-tdep.c.
8956 * NEWS: Mention rl78 as a new target.
8958 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8960 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8962 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8964 2012-02-15 Tom Tromey <tromey@redhat.com>
8967 * infcmd.c (registers_info): Print just the current register's
8970 2012-02-15 Tom Tromey <tromey@redhat.com>
8972 * python/py-symbol.c (sympy_value): Use _().
8974 2012-02-15 Pedro Alves <palves@redhat.com>
8976 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8977 output to be like native targets'.
8978 (remote_pid_to_str): Special case the null ptid.
8980 2012-02-14 Stan Shebs <stan@codesourcery.com>
8982 * NEWS: Mention enable count command.
8983 * breakpoint.h (struct breakpoint): New field enable_count.
8984 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8985 (enable_breakpoint): Add arg to call.
8986 (struct disp_data): New struct.
8987 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8988 (do_map_enable_once_breakpoint): Create a struct and pass it.
8989 (do_map_enable_delete_breakpoint): Ditto.
8990 (do_map_enable_count_breakpoint): New function.
8991 (enable_count_command): New function.
8992 (bpstat_stop_status): Decrement enable_count.
8993 (print_one_breakpoint_location): Report enable count.
8994 (_initialize_breakpoint): Add enable count command.
8996 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8998 * rl78-tdep.c (reggroups.h): Include.
8999 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9000 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9001 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9002 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9003 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9004 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9005 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9006 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9007 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9008 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9009 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9010 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9011 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9012 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9013 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9014 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9015 beginning of register list.
9016 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9017 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9018 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9019 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9020 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9021 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9022 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9023 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9024 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9025 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9026 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9027 the pseudo registers. Rearrange other pseudo registers too so
9028 that the bank registers appear at the end.
9029 (rl78_register_type): Account for the fact that the byte sized
9030 bank registers are now pseudo-registers.
9031 (rl78_register_name): Rearrange the register name array. Make
9032 initial set of raw banked registers inaccessible.
9033 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9034 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9035 case for copying bytes back and forth between raw and pseudo
9036 versions of the banked registers. Update other cases to reflect
9038 (rl78_return_value): Update to account for changed names of
9040 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9041 rl78_register_sim_regno().
9043 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9045 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9046 the name parameter being passed to find_pc_partial_function().
9048 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9050 * MAINTAINERS: Step down from being ia64 target maintainer.
9052 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9054 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9055 compilation warning.
9057 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9059 Fix crash on loaded shlibs without loaded exec_bfd.
9060 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9061 (set_section_command): Replace exec_bfd by p->bfd.
9063 2012-02-10 Tom Tromey <tromey@redhat.com>
9065 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9066 when we have a C++ qualified name.
9068 2012-02-10 Pedro Alves <palves@redhat.com>
9070 * inferior.c (inferior_pid_to_str): New.
9071 (print_inferior, inferior_command): Use it.
9073 2012-02-10 Pedro Alves <palves@redhat.com>
9075 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9077 * configure: Regenerate.
9079 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9081 * linespec.c (decode_line_internal): Fix comment correctness.
9083 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9086 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9087 * amd64bsd-nat.c: Add support for debug registers (adapted from
9089 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9090 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9091 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9092 (amd64bsd_dr_get_control): New functions.
9093 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9094 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9095 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9096 watchpoints initialization.
9097 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9099 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9101 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9103 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9105 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9107 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9109 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9111 * language.h (symbol_name_cmp_ftype): Renames
9112 symbol_name_match_p_ftype.
9113 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9114 la_get_symbol_name_match_p.
9115 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9116 ada_get_symbol_name_match_p. Update comment.
9117 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9118 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9119 Renames symbol_name_match_p. Update field type.
9120 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9121 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9122 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9123 "la_get_symbol_name_cmp" in comments.
9124 * language.c: Likewise.
9126 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9128 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9130 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9131 (amd64_sol2_gregset32_reg_offs): Likewise.
9133 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9135 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9136 of the returned BFD is allocated by GDB.
9138 2012-02-07 Tom Tromey <tromey@redhat.com>
9141 * python/python-internal.h (frame_object_type): Declare.
9142 * python/py-symbol.c (sympy_needs_frame): New function.
9143 (sympy_value): New function.
9144 (symbol_object_getset): Add "needs_frame".
9145 (symbol_object_methods): Add "value".
9146 * python/py-frame.c (frame_object_type): No longer static.
9148 2012-02-07 Tom Tromey <tromey@redhat.com>
9151 * python/py-symbol.c (sympy_line): New function.
9152 (symbol_object_getset): Add "line".
9154 2012-02-07 Tom Tromey <tromey@redhat.com>
9156 * charset.c (find_charset_names): Check 'in' against NULL.
9158 2012-02-06 Doug Evans <dje@google.com>
9160 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9161 and fields.name members from char * to const char *. All uses updated.
9162 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9163 from char * to const char *. All uses updated.
9164 (type_name_no_tag): Update.
9165 (lookup_unsigned_typename, lookup_signed_typename): Update.
9166 * gdbtypes.c (type_name_no_tag): Change result type
9167 from char * to const char *. All callers updated.
9168 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9169 name parameter from char * to const char *.
9170 * symtab.h (struct cplus_specific): Change type of demangled_name
9171 member from char * to const char *. All uses updated.
9172 (struct general_symbol_info): Change type of name and
9173 mangled_lang.demangled_name members from char * to const char *.
9175 (symbol_get_demangled_name, symbol_natural_name): Update.
9176 (symbol_demangled_name, symbol_search_name): Update.
9177 * symtab.c (symbol_get_demangled_name): Change result type
9178 from char * to const char *. All callers updated.
9179 (symbol_natural_name, symbol_demangled_name): Ditto.
9180 (symbol_search_name): Ditto.
9181 (completion_list_add_name): Change type of symname,sym_text,
9182 text,word parameters from char * to const char *.
9183 (completion_list_objc_symbol): Change type of sym_text,
9184 text,word parameters from char * to const char *.
9185 * ada-lang.c (find_struct_field): Change type of name parameter
9186 from char * to const char *.
9187 (encoded_ordered_before): Similarly for N0,N1 parameters.
9188 (old_renaming_is_invisible): Similarly for function_name parameter.
9189 (ada_type_name): Change result type from char * to const char *.
9190 All callers updated.
9191 * ada-lang.h (ada_type_name): Update.
9192 * buildsym.c (hashname): Change type of name parameter
9193 from char * to const char *.
9194 * buildsym.h (hashname): Update.
9195 * dbxread.c (end_psymtab): Change type of include_list parameter
9196 from char ** to const char **.
9197 * dwarf2read.c (determine_prefix): Change result type
9198 from char * to const char *. All callers updated.
9199 * f-lang.c (find_common_for_function): Change type of name, funcname
9200 parameters from char * to const char *.
9201 * f-lang.c (find_common_for_function): Update.
9202 * f-valprint.c (list_all_visible_commons): Change type of funcname
9203 parameters from char * to const char *.
9204 * gdbarch.sh (static_transform_name): Change type of name parameter
9205 and result from char * to const char *.
9206 * gdbarch.c: Regenerate.
9207 * gdbarch.h: Regenerate.
9208 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9209 of name parameter from char * to const char *.
9210 * jv-lang.c (java_primitive_type_from_name): Ditto.
9211 (java_demangled_signature_length): Similarly for signature parameter.
9212 (java_demangled_signature_copy): Ditto.
9213 (java_demangle_type_signature): Ditto.
9214 * jv-lang.h (java_primitive_type_from_name): Update.
9215 (java_demangle_type_signature): Update.
9216 * objc-lang.c (specialcmp): Change type of a,b parameters
9217 from char * to const char *.
9218 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9219 from char * to const char *. All callers updated.
9220 * p-lang.h (is_pascal_string_type): Update.
9221 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9222 of name parameter from char * to const char *.
9223 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9224 * utils.c (fprintf_symbol_filtered): Ditto.
9225 * defs.h (fprintf_symbol_filtered): Update.
9226 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9227 * stabsread.h (end_psymtab): Update.
9228 * stack.c (find_frame_funname): Change type of funname parameter
9229 from char ** to const char **.
9230 * stack.h (find_frame_funname): Update.
9231 * typeprint.c (type_print): Change type of varstring parameter
9232 from char * to const char *.
9233 * value.h (type_print): Update.
9234 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9235 from char * to const char *. All callers updated.
9236 (xcoff_end_psymtab): Change type of include_list parameter
9237 from char ** to const char **. All callers updated.
9238 (swap_sym): Similarly for name parameter. All callers updated.
9239 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9241 (process_coff_symbol): Use xstrdup.
9242 * stabsread.c (stabs_method_name_from_physname): Renamed from
9243 update_method_name_from_physname. Change result type from void
9244 to char *. All callers updated.
9245 (read_member_functions): In has_destructor case, store name in objfile
9246 obstack instead of malloc space. In !has_stub case, fix mem leak.
9248 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9250 * configure: Rebuild.
9251 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9254 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9256 * configure.tgt (rl78-*-elf): New target.
9257 * rl78-tdep.c: New file.
9259 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9261 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9262 and continue the loop. Add QUIT statement.
9264 2012-02-03 Tom Tromey <tromey@redhat.com>
9267 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9268 bfd_lookup_symbol_from_symtab.
9269 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9270 gdb_bfd_lookup_symbol_from_symtab.
9272 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9274 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9275 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9276 symbol. Add assertion that sym2 is never NULL.
9278 2012-02-02 Doug Evans <dje@google.com>
9280 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9281 "name" parameter to const char ** from char **. All callers updated.
9282 (find_pc_partial_function): Ditto.
9283 (cache_pc_function_name): Change type to const char * from char *.
9284 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9285 (find_pc_partial_function): Update.
9286 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9287 type of "name" parameter to const char * from char *.
9289 * arch-utils.c (generic_in_solib_return_trampoline): Change
9290 type of "name" parameter to const char * from char *.
9291 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9292 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9293 type of "name" parameter to const char * from char *.
9294 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9295 * gdbarch.c: Regenerate.
9296 * gdbarch.h: Regenerate.
9297 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9298 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9299 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9300 type of "name" parameter to const char * from char *.
9301 * skip.c (skip_function_pc): Ditto.
9302 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9303 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9304 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9305 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9306 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9307 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9308 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9309 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9310 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9312 2012-02-02 Pedro Alves <palves@redhat.com>
9314 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9315 the current inferior has no execution. Make sure the current
9316 remote process matches gdb's current inferior.
9318 2012-02-02 Tom Tromey <tromey@redhat.com>
9321 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9324 2012-02-02 Tom Tromey <tromey@redhat.com>
9327 * symtab.c (lookup_language_this): Set block_found.
9329 2012-02-01 Tom Tromey <tromey@redhat.com>
9332 * jit.c (struct jit_inferior_data): Rewrite.
9333 (struct jit_objfile_data): New.
9334 (get_jit_objfile_data): New function.
9335 (add_objfile_entry): Update.
9336 (jit_read_descriptor): Return int. Replace descriptor_addr
9337 argument with inf_data. Update. Don't call error.
9338 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9340 (jit_inferior_init): Don't look up descriptor. Don't call error.
9341 (jit_reset_inferior_data_and_breakpoints)
9342 (jit_inferior_created_observer): Remove.
9343 (jit_inferior_exit_hook): Update.
9344 (jit_executable_changed_observer): Remove.
9345 (jit_event_handler): Update.
9346 (free_objfile_data): Reset inferior data if needed.
9347 (_initialize_jit): Update.
9349 2012-02-01 Tom Tromey <tromey@redhat.com>
9351 * jit.c (bfd_open_from_target_memory): Move higher in file.
9353 2012-02-01 Tristan Gingold <gingold@adacore.com>
9355 * libunwind-frame.c (libunwind_load): Display message if dlopen
9358 2012-02-01 Gary Benson <gbenson@redhat.com>
9360 * symtab.h (symbol_found_callback_ftype): New typedef.
9361 (iterate_over_symbols): Use the above.
9362 * symtab.c (iterate_over_symbols): Likewise.
9363 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9364 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9365 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9366 (iterate_name_matcher): Document return values.
9367 (collect_one_symbol): Likewise.
9368 (collect_function_symbols): Likewise.
9369 (collect_symbols): Likewise.
9371 2012-02-01 Tom Tromey <tromey@redhat.com>
9373 * ada-lang.c (resolve_subexp): Update.
9374 (ada_lookup_symbol_list): Add 'full_search' argument.
9375 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9376 ada_lookup_symbol_list.
9377 (ada_lookup_encoded_symbol): Update.
9378 (get_var_value): Update.
9379 * ada-exp.y (block_lookup): Update.
9380 (write_var_or_type): Update.
9381 (write_name_assoc): Update.
9382 * ada-lang.h (ada_lookup_symbol_list): Update.
9384 2012-01-31 Tom Tromey <tromey@redhat.com>
9386 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9389 2012-01-31 Doug Evans <dje@google.com>
9391 * symtab.h: Remove outdated comment.
9392 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9394 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9396 Fix build error in Darwin port.
9397 * i386-darwin-nat.c: Include i386-nat.h.
9399 2012-01-30 Tom Tromey <tromey@redhat.com>
9401 PR breakpoints/13568:
9402 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9403 argument. Check for recursive includes.
9404 (dwarf_decode_macros): Create an include hash.
9406 2012-01-30 Michael Eager <eager@eagercon.com>
9408 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9409 * ppc-linux-tdep.c: Include glibc-tdep.h.
9410 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9411 (powerpc_linux_in_plt_stub): New function.
9412 (powerpc_linux_in_dynsym_resolve_code): New function.
9413 (ppc_skip_trampoline_code): New function.
9414 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9415 Use glibc_skip_solib_resolver.
9417 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9419 Code cleanup: Make 1440 bytes of data segment read-only.
9420 * arch-utils.c (endian_enum): Make it const char *const [].
9421 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9423 * breakpoint.c (always_inserted_enums): Likewise.
9424 * cli/cli-cmds.c (script_ext_enums): Likewise.
9425 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9426 enumlist parameter const char *const *.
9427 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9428 const char *const *.
9429 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9430 parameter const char *const *.
9431 * cris-tdep.c (cris_modes): Make it const char *const [].
9432 * filesystem.c (target_file_system_kinds): Likewise.
9433 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9434 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9435 (can_use_displaced_stepping_enum, scheduler_enums)
9436 (exec_direction_names): Likewise.
9437 * language.c (_initialize_language): Make the type_or_range_names and
9438 case_sensitive_names variables const char *const [].
9439 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9440 * python/python.c (python_excp_enums): Likewise.
9441 * remote.c (interrupt_sequence_modes): Likewise.
9442 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9443 * serial.c (logbase_enums): Likewise.
9444 * sh-tdep.c (sh_cc_enum): Likewise.
9445 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9447 * symtab.c (multiple_symbols_modes): Likewise.
9448 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9450 * utils.c (internal_problem_modes): Likewise.
9452 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9454 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9455 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9458 2012-01-27 Doug Evans <dje@google.com>
9460 * configure.ac (with_python): Fix absolute path handling for win32.
9461 * configure: Regenerate.
9463 2012-01-26 Doug Evans <dje@google.com>
9465 * symtab.c: Whitespace cleanup, no code changes.
9467 * symtab.c (lookup_symbol_in_language): Improve comment.
9468 (lookup_symbol_aux): Fix comment.
9470 * psymtab.c (add_psymbol_to_list): Result is now "void".
9471 * psympriv.h (add_psymbol_to_list): Update.
9473 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9475 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9477 Do not open script filenames twice.
9478 * cli/cli-cmds.c (source_script_from_stream): Pass to
9479 source_python_script also STREAM.
9480 * python/py-auto-load.c (source_section_scripts): Pass to
9481 source_python_script_for_objfile also STREAM.
9482 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9484 * python/python-internal.h (source_python_script_for_objfile): New
9485 parameter file, rename parameter file to filename.
9486 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9487 instead if !_WIN32. Update the function comment.
9488 (source_python_script, source_python_script_for_objfile)
9489 (source_python_script): New parameter file, rename parameter file to
9490 filename. Pass FILENAME to python_run_simple_file.
9491 * python/python.h (source_python_script): New parameter file, rename
9492 parameter file to filename.
9494 2012-01-26 Pedro Alves <palves@redhat.com>
9496 * corelow.c (core_has_fake_pid): Delete.
9497 (core_close): Delete references to `core_has_fake_pid'.
9498 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9499 (core_open): Delete references to `core_has_fake_pid'.
9500 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9503 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9505 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9506 Remove language parameter from name_matcher. Adjust the comment.
9507 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9508 Remove language parameter.
9509 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9510 * linespec.c (iterate_name_matcher): Likewise.
9511 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9512 name_matcher. Adjust call accordingly.
9513 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9514 (maintenance_check_symtabs): Adjust type of parameter "fun".
9515 * psymtab.h (maintenance_check_symtabs): Likewise.
9517 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9519 * language.h (symbol_name_match_p_ftype): New typedef.
9520 (struct language_defn): Replace field la_symbol_name_compare
9521 by la_get_symbol_name_match_p.
9522 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9523 (ada_language_defn): Use it.
9524 * linespec.c (struct symbol_matcher_data): New type.
9525 (iterate_name_matcher): Rewrite.
9526 (iterate_over_all_matching_symtabs): Pass a pointer to
9527 a symbol_matcher_data struct to expand_symtabs_matching
9528 instead of just the lookup name.
9529 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9530 opencl-lang.c, p-lang.c, language.c: Delete field
9531 la_symbol_name_compare, and replace by NULL for new field
9532 la_get_symbol_name_match_p.
9533 * symfile.h (struct quick_symbol_functions): Update comment.
9535 2012-01-25 Tom Tromey <tromey@redhat.com>
9537 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9540 2012-01-24 Tom Tromey <tromey@redhat.com>
9543 * solib.c (update_solib_list): Update the program space's
9544 added_solibs and deleted_solibs fields.
9545 * progspace.h (struct program_space) <added_solibs,
9546 deleted_solibs>: New fields.
9547 (clear_program_space_solib_cache): Declare.
9548 * progspace.c (release_program_space): Call
9549 clear_program_space_solib_cache.
9550 (clear_program_space_solib_cache): New function.
9551 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9552 bpstat_stop_status. Use handle_solib_event.
9553 * breakpoint.c: Include gdb_regex.h.
9554 (print_solib_event): New function.
9555 (bpstat_print): Use print_solib_event.
9556 (bpstat_stop_status): Add special case for bp_shlib_event.
9557 (handle_solib_event): New function.
9558 (bpstat_what): Use handle_solib_event.
9559 (struct solib_catchpoint): New.
9560 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9561 (breakpoint_hit_catch_solib, check_status_catch_solib)
9562 (print_it_catch_solib, print_one_catch_solib)
9563 (print_mention_catch_solib, print_recreate_catch_solib): New
9565 (catch_solib_breakpoint_ops): New global.
9566 (catch_load_or_unload, catch_load_command_1)
9567 (catch_unload_command_1): New functions.
9568 (internal_bkpt_check_status): Add special case for
9570 (internal_bkpt_print_it): Use print_solib_event.
9571 (initialize_breakpoint_ops): Initialize
9572 catch_solib_breakpoint_ops.
9573 (_initialize_breakpoint): Register "catch load" and "catch
9575 * breakpoint.h (handle_solib_event): Declare.
9576 * NEWS: Add entry for "catch load" and "catch unload".
9578 2012-01-24 Tom Tromey <tromey@redhat.com>
9580 * ada-lang.c: Include gdb_vecs.h.
9581 * charset.c: Include gdb_vecs.h.
9582 * tracepoint.h: Include gdb_vecs.h.
9583 * gdb_vecs.h: New file.
9585 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9587 * breakpoint.c (breakpoint_hit_catch_fork)
9588 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9589 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9590 * infrun.c (inferior_has_forked, inferior_has_vforked)
9591 (inferior_has_execd, inferior_has_called_syscall): Delete.
9592 (handle_syscall_event): Get syscall_number from the execution
9593 control state's wait status.
9594 (wait_for_inferior): Don't clear syscall_number.
9596 2012-01-24 Pedro Alves <palves@redhat.com>
9598 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9599 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9600 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9601 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9603 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9604 false for events other than TARGET_SIGNAL_TRAP.
9605 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9607 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9608 events other than TARGET_SIGNAL_TRAP.
9609 (tracepoint_breakpoint_hit): Add `ws' parameter.
9610 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9612 (bpstat_stop_status): Same.
9613 (pc_at_non_inline_function): Same.
9614 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9615 to pass the current event's waitstatus to bpstat_stop_status
9616 and pc_at_non_inline_function.
9618 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9621 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9622 Update the function comment for it.
9623 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9624 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9627 2012-01-24 Pedro Alves <palves@redhat.com>
9629 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9630 outside `bs->stop' block.
9631 (bpstat_what): Rework bp_shlib_event handling.
9632 (internal_bkpt_check_status): If the breakpoint is a
9633 bp_shlib_event, then set bs->stop and bs->print if
9634 stop_on_solib_events is set.
9636 2012-01-24 Gary Benson <gbenson@redhat.com>
9638 Delete #if 0'd out code.
9639 * stack.c (print_frame_label_vars): Remove.
9640 (catch_info): Likewise.
9641 (_initialize_stack): Remove "info catch" command.
9642 * NEWS: Mention the above.
9644 2012-01-24 Pedro Alves <palves@redhat.com>
9646 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9648 (remote_notice_new_inferior): If the remote end doesn't support
9649 the multiprocess extensions, then the PID is fake.
9650 (add_current_inferior_and_thread): New.
9651 (remote_start_remote): Use it.
9652 (extended_remote_attach_1): Adjust.
9653 (extended_remote_create_inferior_1): Use
9654 add_current_inferior_and_thread.
9656 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9658 Fix watchpoints to be specific for each inferior.
9659 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9660 current_program_space.
9661 * i386-nat.c (i386_inferior_data_cleanup): New.
9662 (i386_inferior_data_get): Replace variable inf_data_local by an
9664 (i386_use_watchpoints): Initialize i386_inferior_data.
9665 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9666 specific iterate_over_lwps.
9668 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9670 Fix watchpoints across inferior fork.
9671 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9672 comment for linux_nat_iterate_watchpoint_lwps.
9673 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9674 linux_nat_iterate_watchpoint_lwps.
9675 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9676 * i386-linux-nat.c (update_debug_registers_callback): Update the
9677 comment for linux_nat_iterate_watchpoint_lwps.
9678 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9679 linux_nat_iterate_watchpoint_lwps.
9680 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9681 * i386-nat.c: Include inferior.h.
9682 (dr_mirror): Remove.
9683 (i386_inferior_data, struct i386_inferior_data)
9684 (i386_inferior_data_get): New.
9685 (i386_debug_reg_state): Use i386_inferior_data_get.
9686 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9687 (i386_insert_watchpoint, i386_remove_watchpoint)
9688 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9689 (i386_remove_hw_breakpoint): New variable state, use
9690 i386_debug_reg_state instead of DR_MIRROR.
9691 * linux-nat.c (delete_lwp): New declaration.
9692 (num_lwps): Move here from downwards.
9693 (delete_lwp_cleanup): New.
9694 (linux_child_follow_fork): Create new child_lp, call
9695 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9697 (num_lwps): Move upwards.
9698 (linux_nat_iterate_watchpoint_lwps): New.
9699 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9700 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9702 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9706 2012-01-23 Pedro Alves <palves@redhat.com>
9708 * top.c (caution): Rename to ...
9709 (confirm): ... this.
9710 (show_caution): Rename to ...
9711 (show_confirm): ... this.
9712 (quit_cover): Adjust.
9713 (init_main): Adjust.
9714 * top.h (caution): Rename to ...
9715 (confirm): ... this.
9716 * utils.c (internal_vproblem, defaulted_query): Adjust.
9718 2012-01-23 Pedro Alves <palves@redhat.com>
9720 * top.c (caution): Update comment.
9721 (execute_command): Don't consider the current value of `caution'.
9723 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9725 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9727 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9729 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9730 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9731 * target.c (target_fileio_pwrite): Remove buffer address from
9733 (target_fileio_pread): Likewise.
9735 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9737 * NEWS: Document remote "info proc" and "generate-core-file".
9739 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9741 * gdbarch.sh (find_memory_regions): New callback.
9742 * gdbarch.c, gdbarch.h: Regenerate.
9744 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9745 callback before falling back to target method.
9747 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9748 (linux_target_install_ops): No longer install it.
9750 * linux-tdep.c (linux_find_memory_regions): New function.
9751 (linux_init_abi): Install it.
9753 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9755 * gdbarch.sh (make_corefile_notes): New architecture callback.
9756 * gdbarch.c: Regenerate.
9757 * gdbarch.h: Likewise.
9759 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9760 before target_make_corefile_notes. If NULL is returned, the
9761 target does not support core file generation.
9763 * linux-nat.c: Include "linux-tdep.h".
9764 (find_signalled_thread, find_stop_signal): Remove.
9765 (linux_nat_do_thread_registers): Likewise.
9766 (struct linux_nat_corefile_thread_data): Likewise.
9767 (linux_nat_corefile_thread_callback): Likewise.
9768 (iterate_over_spus): Likewise.
9769 (struct linux_spu_corefile_data): Likewise.
9770 (linux_spu_corefile_callback): Likewise.
9771 (linux_spu_make_corefile_notes): Likewise.
9772 (linux_nat_collect_thread_registers): New function.
9773 (linux_nat_make_corefile_notes): Replace contents by call to
9774 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9775 as native-only callback.
9777 * linux-tdep.h: Include "bfd.h".
9778 (struct regcache): Add forward declaration.
9779 (linux_collect_thread_registers_ftype): New typedef.
9780 (linux_make_corefile_notes): Add prototype.
9781 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9782 "regset.h", and "elf-bfd.h".
9783 (find_signalled_thread, find_stop_signal): New functions.
9784 (linux_spu_make_corefile_notes): Likewise.
9785 (linux_collect_thread_registers): Likewise.
9786 (struct linux_corefile_thread_data): New data structure.
9787 (linux_corefile_thread_callback): New funcion.
9788 (linux_make_corefile_notes): Likewise.
9789 (linux_make_corefile_notes_1): Likewise.
9790 (linux_init_abi): Install it.
9792 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9794 * gdbarch.sh (info_proc): New callback.
9795 * gdbarch.c, gdbarch.h: Regenerate.
9797 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9798 before falling back to the target info_proc callback.
9800 * linux-nat.c: Do not include "cli/cli-utils.h".
9801 (linux_nat_info_proc): Remove.
9802 (linux_target_install_ops): No longer install it.
9804 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9805 (read_mapping): New function.
9806 (linux_info_proc): Likewise.
9807 (linux_init_abi): Install it.
9809 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9811 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9812 * infcmd.c: (info_proc_cmd_1): New function.
9813 (info_proc_cmd): New function, moved here from equivalent routine
9814 orignally in linux-nat.c.
9815 (info_proc_cmd_mappings): Likewise.
9816 (info_proc_cmd_stat): Likewise.
9817 (info_proc_cmd_status): Likewise.
9818 (info_proc_cmd_cwd): Likewise.
9819 (info_proc_cmd_cmdline): Likewise.
9820 (info_proc_cmd_exe): Likewise.
9821 (info_proc_cmd_all): Likewise.
9822 (_initialize_infcmd): Install "info proc" command and subcommands.
9824 * target.h (struct target_ops): Add to_info_proc.
9825 (target_info_proc): Add prototype.
9826 * target.c (target_info_proc): New function.
9828 * procfs.c (procfs_info_proc): Add prototype.
9829 (info_proc_cmd): Rename into ...
9830 (procfs_info_proc): ... this. Update argument types as appropriate
9831 for a to_info_proc implementation. Handle "what" argument.
9832 (procfs_target): Install procfs_info_proc.
9833 (_initialize_procfs): No longer install "info proc" command.
9835 * linux-nat.c: (enum info_proc_what): Remove.
9836 (linux_nat_info_proc_cmd_1): Rename into ...
9837 (linux_nat_info_proc): ... this. Update argument types as appropriate
9838 for a to_info_proc implementation.
9839 (linux_nat_info_proc_cmd): Remove.
9840 (linux_nat_info_proc_cmd_mappings): Likewise.
9841 (linux_nat_info_proc_cmd_stat): Likewise.
9842 (linux_nat_info_proc_cmd_status): Likewise.
9843 (linux_nat_info_proc_cmd_cwd): Likewise.
9844 (linux_nat_info_proc_cmd_cmdline): Likewise.
9845 (linux_nat_info_proc_cmd_exe): Likewise.
9846 (linux_nat_info_proc_cmd_all): Likewise.
9847 (linux_target_install_ops): Install linux_nat_info_proc.
9848 (_initialize_linux_nat): No longer install "info proc" command
9851 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9853 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9854 * config.in, configure: Regenerate.
9856 * target.h (struct target_ops): Add to_fileio_readlink.
9857 (target_fileio_readlink): Add prototype.
9858 * target.c (target_fileio_readlink): New function.
9860 * inf-child.c: Conditionally include <sys/param.h>.
9861 (inf_child_fileio_readlink): New function.
9862 (inf_child_target): Install it.
9864 * remote.c (PACKET_vFile_readlink): New enum value.
9865 (remote_hostio_readlink): New function.
9866 (init_remote_ops): Install it.
9867 (_initialize_remote): Handle vFile:readlink packet type.
9869 2012-01-20 Pedro Alves <palves@redhat.com>
9870 Ulrich Weigand <ulrich.weigand@linaro.org>
9872 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9873 * config.in, configure: Regenerate.
9875 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9876 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9877 (target_fileio_open): Add prototype.
9878 (target_fileio_pwrite): Likewise.
9879 (target_fileio_pread): Likewise.
9880 (target_fileio_close): Likewise.
9881 (target_fileio_unlink): Likewise.
9882 (target_fileio_read_alloc): Likewise.
9883 (target_fileio_read_stralloc): Likewise.
9885 * target.c: Include "gdb/fileio.h".
9886 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9887 (default_fileio_target): New function.
9888 (target_fileio_open): Likewise.
9889 (target_fileio_pwrite): Likewise.
9890 (target_fileio_pread): Likewise.
9891 (target_fileio_close): Likewise.
9892 (target_fileio_unlink): Likewise.
9893 (target_fileio_close_cleanup): Likewise.
9894 (target_fileio_read_alloc_1): Likewise.
9895 (target_fileio_read_alloc): Likewise.
9896 (target_fileio_read_stralloc): Likewise.
9898 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9899 <fcntl.h>, and <unistd.h>.
9900 (inf_child_fileio_open_flags_to_host): New function.
9901 (inf_child_errno_to_fileio_error): Likewise.
9902 (inf_child_fileio_open): Likewise.
9903 (inf_child_fileio_pwrite): Likewise.
9904 (inf_child_fileio_pread): Likewise.
9905 (inf_child_fileio_close): Likewise.
9906 (inf_child_fileio_unlink): Likewise.
9907 (inf_child_target): Install to_fileio routines.
9909 * remote.c (init_remote_ops): Install to_fileio routines.
9911 2012-01-20 Pedro Alves <palves@redhat.com>
9912 Ulrich Weigand <ulrich.weigand@linaro.org>
9914 * remote.c (remote_multi_process_p): Only check for multi-process
9915 protocol feature, do not check for extended protocol.
9916 (remote_supports_multi_process): Check for extended protocol here.
9917 (set_general_process): Likewise.
9918 (extended_remote_kill): Likewise.
9919 (remote_pid_to_str): Likewise.
9920 (remote_query_supported): Always query multiprocess mode.
9922 2012-01-20 Pedro Alves <palves@redhat.com>
9923 Ulrich Weigand <ulrich.weigand@linaro.org>
9925 * inferior.h (struct inferior): Add fake_pid_p.
9926 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9927 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9928 magic_null_ptid since the remote side doesn't provide a real PID.
9930 2012-01-19 Tom Tromey <tromey@redhat.com>
9932 * NEWS: Combine the two Python sections.
9934 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9936 * target.h (target_close): Update comment on the target's unpush state.
9938 2012-01-19 Pedro Alves <palves@redhat.com>
9940 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9941 linux_nat_async directly instead of going through the target
9943 * target.c (unpush_target): Close target after unpushing it, not
9946 2012-01-19 Gary Benson <gbenson@redhat.com>
9948 * mdebugread.c (sort_blocks): Replace integer constants with ones
9949 derived from FIRST_LOCAL_BLOCK.
9951 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9952 Jan Kratochvil <jan.kratochvil@redhat.com>
9955 * symfile.c (find_separate_debug_file): New function.
9956 (terminate_after_last_dir_separator): Likewise.
9957 (find_separate_debug_file_by_debuglink): Also try realpath.
9958 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9959 * configure: Regenerate.
9960 * config.in: Regenerate.
9962 2012-01-18 Doug Evans <dje@google.com>
9964 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9965 (main.o): Remove rule.
9966 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9967 (--with-sysroot): Rewrite.
9968 * configure: Regenerate.
9969 * config.in: Regenerate.
9971 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9973 * parse.c (initialize_expout): New function.
9974 (reallocate_expout): Likewise.
9975 (parse_exp_in_context): Use `initialize_expout' and
9976 `reallocate_expout' when appropriate.
9978 2012-01-18 Pedro Alves <palves@redhat.com>
9980 * record.c (struct record_breakpoint, record_breakpoint_p)
9981 (record_breakpoints): New.
9982 (record_insert_breakpoint, record_remove_breakpoint): Manage
9983 record breakpoints list. Only remove breakpoints from the
9984 inferior if they had been inserted there in the first place.
9986 2012-01-17 Doug Evans <dje@google.com>
9988 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9989 if we know we don't have a file name to look for.
9991 2012-01-17 Pedro Alves <palves@redhat.com>
9993 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9994 the frame's stop reason is UNWIND_UNAVAILABLE.
9996 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9998 Fix compilation error.
9999 * m2-exp.y (yyerror): Use ANSI C prototype.
10001 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10003 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10004 (growbuf_by_size): Likewise.
10005 (yyerror): Likewise.
10006 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10007 (modblock): Remove variable (was #if 0'ed).
10008 (parse_number): Convert prototype from K&R to ANSI C.
10009 (yyerror): Likewise.
10010 * objc-exp.y (parse_number): Likewise.
10011 (yyerror): Likewise.
10012 (yylex): Remove #if 0'ed code.
10013 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10014 (yyerror): Likewise.
10016 2012-01-16 Tom Tromey <tromey@redhat.com>
10019 * symtab.h (compare_filenames_for_search): Declare.
10020 * symtab.c (compare_filenames_for_search): New function.
10021 (iterate_over_some_symtabs): Use it.
10022 * symfile.h (struct quick_symbol_functions)
10023 <map_symtabs_matching_filename>: Change spec.
10024 * psymtab.c (partial_map_symtabs_matching_filename): Use
10025 compare_filenames_for_search. Update for new spec.
10026 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10027 compare_filenames_for_search. Update for new spec.
10028 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10030 2012-01-16 Tom Tromey <tromey@redhat.com>
10033 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10034 (struct main_type) <flag_flag_enum>: New field.
10035 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10036 * NEWS: Add entries.
10037 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10039 * python/lib/gdb/printing.py (_EnumInstance): New class.
10040 (FlagEnumerationPrinter): Likewise.
10042 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10044 * breakpoint.c (create_sals_from_address_default): New function.
10045 (create_breakpoints_sal_default): Likewise.
10046 (decode_linespec_default): Likewise.
10047 (is_marker_spec): Removed.
10048 (strace_marker_p): New function.
10049 (init_breakpoint_sal): Using `strace_marker_p' instead of
10051 (create_breakpoint): Call method `create_sals_from_address' from
10052 breakpoint_ops, replacing code that created SALs conditionally
10053 on the type of the breakpoint. Call method `create_breakpoints_sal',
10054 replacing code that created breakpoints conditionally on the type
10056 (base_breakpoint_create_sals_from_address): New function.
10057 (base_breakpoint_create_breakpoints_sal): Likewise.
10058 (base_breakpoint_decode_linespec): Likewise.
10059 (base_breakpoint_ops): Add methods
10060 `base_breakpoint_create_sals_from_address',
10061 `base_breakpoint_create_breakpoints_sal' and
10062 `base_breakpoint_decode_linespec'.
10063 (bkpt_create_sals_from_address): New function.
10064 (bkpt_create_breakpoints_sal): Likewise.
10065 (bkpt_decode_linespec): Likewise.
10066 (tracepoint_create_sals_from_address): Likewise.
10067 (tracepoint_create_breakpoints_sal): Likewise.
10068 (tracepoint_decode_linespec): Likewise.
10069 (strace_marker_create_sals_from_address): Likewise.
10070 (strace_marker_create_breakpoints_sal): Likewise.
10071 (strace_marker_decode_linespec): Likewise.
10072 (strace_marker_breakpoint_ops): New variable.
10073 (addr_string_to_sals): Remove `marker_spec'. Call method
10074 `decode_linespec' from breakpoint_ops, replacing code that decoded
10075 an address string into a SAL. Use `strace_marker_p' instead of
10077 (strace_command): Decide whether we are dealing with a static
10078 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10079 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10080 * breakpoint.h (linespec_result, linespec_sals): New forward
10082 (breakpoint_ops) <create_sals_from_address>,
10083 <create_breakpoints_sal>, <decode_linespec>: New methods.
10085 2012-01-14 Doug Evans <dje@google.com>
10087 * NEWS: Update text for "maint set python print-stack".
10088 It is deprecated in gdb 7.4 and deleted in 7.5.
10090 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10092 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10093 including curses.h.
10095 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10097 * configure: Regenerate.
10098 * config.in: Regenerate.
10100 2012-01-12 Keith Seitz <keiths@redhat.com>
10103 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10104 (ANONYMOUS_UNION_NAME): Define.
10105 (is_path_expr_parent): New function.
10106 (get_path_expr_parent): New function.
10107 (is_anonymous_child): New function.
10108 (create_child_with_value): If the child is anonymous and without
10109 a name, assign an object name to it.
10110 (c_describe_child): Use get_path_expr_parent to determine
10111 the parent expression.
10112 If there field represents an anonymous struct or union and
10113 has no name, set an appropriate display name and expression.
10114 (cplus_describe_child): Likewise.
10116 2012-01-12 Pedro Alves <palves@redhat.com>
10118 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10119 available when %ebp is found to be zero (outermost).
10121 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10123 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10124 an internal gdb_static_assert.
10125 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10127 2012-01-11 Tom Tromey <tromey@redhat.com>
10130 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10131 catch" and "catch throw".
10133 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10135 * blockframe.c (block_innermost_frame): Start search from selected
10136 frame, if present, or otherwise the current frame.
10138 * c-exp.y (variable): Update innermost_block for
10139 'block COLONCOLON NAME' clause.
10140 * m2-exp.y (variable): Ditto.
10141 * objc-exp.y (variable): Ditto.
10143 2012-01-10 Tom Tromey <tromey@redhat.com>
10146 * python/python.c (finish_python_initialization): Set sys.argv.
10148 2012-01-10 Doug Evans <dje@google.com>
10150 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10151 "want_line_info". All callers updated.
10152 (dwarf_decode_lines_1): New function.
10153 (handle_DW_AT_stmt_list): Add function comment.
10154 New arg "want_line_info". All callers updated.
10155 (read_file_scope,read_type_unit_scope): Move comment from
10156 handle_DW_AT_stmt_list to here.
10158 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10160 Fix regression after libiberty/ update for GCC PR 6057 and others.
10161 * c-exp.y (operator) <OPERATOR DELETE>
10162 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10163 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10164 (make_builtin_type, make_name): New variable i, add gdb_assert.
10165 (operator) <OPERATOR NEW>: Update ARGS to 3.
10166 (operator) <OPERATOR DELETE>: Add trailing space.
10167 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10168 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10169 * cp-support.c (cp_canonicalize_string): Check NULL from
10170 cp_comp_to_string, call warning and return.
10172 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10174 Fix duplicate .o files after omitting libbfd.a.
10175 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10176 (SFILES): Add corelow.c.
10177 (COMMON_OBS): Add corelow.o.
10178 (ALLDEPFILES): Remove corelow.c.
10179 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10180 * config/alpha/alpha-osf3.mh: Likewise.
10181 * config/alpha/fbsd.mh: Likewise.
10182 * config/arm/nbsdaout.mh: Likewise.
10183 * config/arm/nbsdelf.mh: Likewise.
10184 * config/i386/i386gnu.mh: Likewise.
10185 * config/ia64/hpux.mh: Likewise.
10186 * config/ia64/linux.mh: Likewise.
10187 * config/m32r/linux.mh: Likewise.
10188 * config/m68k/linux.mh: Likewise.
10189 * config/mips/irix5.mh: Likewise.
10190 * config/mips/irix6.mh: Likewise.
10191 * config/pa/hpux.mh: Likewise.
10192 * config/pa/linux.mh: Likewise.
10193 * config/powerpc/aix.mh: Likewise.
10194 * config/sparc/linux.mh: Likewise.
10195 * config/sparc/linux64.mh: Likewise.
10196 * config/sparc/sol2.mh: Likewise.
10197 * config/vax/vax.mh: Likewise.
10198 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10199 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10200 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10201 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10202 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10203 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10204 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10205 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10206 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10207 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10208 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10209 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10210 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10211 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10212 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10213 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10214 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10215 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10216 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10217 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10218 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10219 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10220 corelow.o from gdb_target_obs.
10221 * corefile.c (core_target): Update the comment on NULL value.
10222 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10223 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10224 MATCHES. Drop YUMMY set on NULL.
10225 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10226 reclaim CORE_DATA if it is already NULL.
10228 2012-01-09 Doug Evans <dje@google.com>
10230 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10231 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10233 2012-01-09 Keith Seitz <keiths@redhat.com>
10235 * breakpoint.c (wrapper.h): Don't include.
10237 2012-01-09 Keith Seitz <keiths@redhat.com>
10239 * Makefile.in (SFILES): Remove wrapper.c.
10240 (HFILES_NO_SRCDIR): Remove wrapper.h.
10241 (COMMON_OBS): Remove wrapper.o.
10242 * cli/cli-interp.c: Don't inlude wrapper.h.
10243 * corelow.c: Likewise.
10244 (core_open): Replace gdb_target_find_new_threads with
10245 TRY_CATCH around target_find_new_threads.
10246 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10247 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10248 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10249 evaluate_expression.
10250 (varobj_set_value): Likewise for evaluate_expression and
10252 (install_new_variable): Likewise for value_fetch_lazy.
10253 (adjust_value_for_child_access): Likewise for value_ind.
10254 (c_describe_child): Likewise for value_subscript and
10256 (c_value_of_root): Likewise for evaluate_expression.
10257 * wrapper.c: Remove.
10258 * wrapper.h: Remove.
10260 2012-01-09 Doug Evans <dje@google.com>
10262 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10263 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10264 "abfd" args with "section". All callers updated.
10265 Error checking code moved ...
10266 (error_check_comp_unit_head): ... here. New function.
10267 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10268 Delete arg "abfd". New arg "type_offset". All callers updated.
10269 (create_debug_types_hash_table): Simplify by using
10270 read_and_check_type_unit_head.
10272 * parser-defs.h (namecopy): Delete.
10273 * parse.c (namecopy, namecopy_size): Move into copy_name.
10275 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10277 Partially fix duplicate .o files after omitting libbfd.a.
10278 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10279 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10280 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10281 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10282 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10283 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10284 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10286 2012-01-09 Pedro Alves <palves@redhat.com>
10288 * MAINTAINERS: Update my email address.
10290 2012-01-08 Doug Evans <dje@google.com>
10292 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10293 n_type_units. Rename type_comp_units to all_type_units.
10295 (add_signatured_type_cu_to_table): Renamed from
10296 add_signatured_type_cu_to_list. All callers updated.
10298 * gdbtypes.h (struct cplus_struct_type): Delete member
10299 nfn_fields_total. All uses removed.
10301 2012-01-06 Doug Evans <dje@google.com>
10303 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10305 (dwarf2_find_comp_unit): Delete.
10306 (process_psymtab_comp_unit): Make result "void".
10307 Delete args buffer, info_ptr, buffer_size, and replace with
10308 "section". All callers updated.
10309 (dwarf2_build_psymtabs_hard): Simplify.
10311 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10312 Thiago Jung Bauermann <bauerman@br.ibm.com>
10314 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10315 before `struct gdb_exception'.
10316 * breakpoint.c (update_global_location_list_nothrow)
10317 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10318 * cp-abi.c (value_rtti_type): Likewise.
10319 * cp-support.c (cp_validate_operator): Likewise.
10320 * infrun.c (insert_exception_resume_breakpoint)
10321 (check_exception_resume, keep_going): Likewise.
10322 * mi-interp.c (mi_breakpoint_created)
10323 (mi_breakpoint_modified): Likewise.
10324 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10325 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10326 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10328 2012-01-05 Doug Evans <dje@google.com>
10330 * dwarf2read.c (statement_prologue): Delete, unused.
10332 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10333 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10335 * dwarf2read.c (comp_unit_header): Delete, unused.
10337 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10339 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10340 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10342 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10344 * infrun.c (normal_stop): Don't skip calling the normal_stop
10345 observers if the thread was doing a multi-step, but stopped for
10346 some reason other than stepping.
10348 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10350 * cli/cli-decode.h: Add comments.
10351 (CMD_LIST_AMBIGUOUS): Moved to command.h
10352 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10353 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10354 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10355 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10356 (add_com, add_com_alias, add_info, add_info_alias)
10357 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10359 * command.h: Add and adjust comments.
10360 (CMD_LIST_AMBIGUOUS): Moved here.
10361 (help_cmd, help_cmd_list): Delete declarations.
10363 2012-01-04 Doug Evans <dje@google.com>
10365 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10366 All callers updated.
10367 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10368 Replace all arguments with "per_cu". All callers updated.
10370 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10372 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10373 New arg "per_cu". All callers updated.
10375 Delete #if 0'd out code.
10376 * language.c (binop_result_type): Delete.
10377 (simple_type, ordered_type, same_type, integral_type): Delete.
10378 (numeric_type, character_type, string_type, boolean_type): Delete.
10379 (float_type, structured_type): Delete.
10380 * language.h: Update.
10382 2012-01-04 Tom Tromey <tromey@redhat.com>
10384 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10386 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10388 * corefile.c (close_exec_file): Delete.
10389 (reopen_exec_file): Remove commented out code that seems related
10390 to close_exec_file, which is being deleted here.
10391 * inferior.h (close_exec_file): Delete.
10392 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10394 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10396 * ada-lang.c: #include "cli/cli-utils.h".
10397 (get_selections): Use skip_spaces.
10398 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10399 (catch_ada_exception_command_split): Use skip_spaces.
10400 (ada_decode_assert_location): Likewise.
10402 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10404 * linespec.c (decode_line_internal): Check for C++ or Java
10405 compound constructs only if the current language is C, C++
10408 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10411 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10412 Joel Brobecker <brobecker@adacore.com>
10413 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10414 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10416 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10417 fall through into AT_ENTRY_POINT.
10418 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10419 DUMMY_ADDR with it.
10420 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10421 PPC_INSN_SIZE skip to 3 times.
10423 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10425 * linespec.c (add_minsym): Preserve function descriptors.
10427 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10429 * breakpoint.c (all_locations_are_pending): Consider locations
10430 in program spaces executing during startup pending as well.
10432 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10434 Copyright year update in most files of the GDB Project.
10436 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10438 * copyright.sh: Delete.
10439 * copyright.py: Rewrite.
10441 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10443 * gnulib/extra/update-copyright: New file, imported from gnulib.
10445 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10447 * README (Copyright and License Notices): New section.
10449 2012-01-03 Tom Tromey <tromey@redhat.com>
10452 * python/py-value.c (valpy_dereference, valpy_get_address
10453 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10454 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10455 (valpy_absolute, valpy_richcompare): Free intermediate values.
10457 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10459 * ada-lang.c: Reformat the copyright notice.
10461 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10463 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10464 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10465 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10466 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10467 Revert this part of:
10468 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10469 Build gdb directly from *.o files not using libgdb.a.
10470 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10472 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10474 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10475 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10476 Reformat the copyright header.
10478 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10480 Revert this part of:
10481 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10482 Remove the gdbtui binary.
10483 * gdb.c (main): Remove args.interpreter_p initialization.
10484 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10485 * main.h (struct captured_main_args): Remove interpreter_p.
10487 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10489 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10491 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10493 * top.c (print_gdb_version): Update copyright year.
10495 2012-01-02 Yao Qi <yao@codesourcery.com>
10497 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10499 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10500 Joel Brobecker <brobecker@adacore.com>
10502 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10503 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10505 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10506 fall through into AT_ENTRY_POINT.
10507 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10508 DUMMY_ADDR with it.
10509 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10510 PPC_INSN_SIZE skip to 3 times.
10512 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10514 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10516 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10518 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10520 Build gdb directly from *.o files not using libgdb.a.
10521 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10522 (COMMON_OBS): Remove solib-target.o.
10523 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10524 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10525 (LIBGDB_OBS, libgdb.a): Move it above.
10526 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10527 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10528 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10529 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10530 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10531 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10532 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10533 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10534 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10535 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10536 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10537 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10538 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10539 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10540 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10541 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10542 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10543 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10544 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10545 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10546 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10547 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10548 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10549 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10550 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10551 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10552 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10554 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10556 Remove the gdbtui binary.
10557 * .gitignore (/gdbtui): Remove.
10558 * Makefile.in (TUI): Remove.
10559 (SUBDIR_TUI_OBS): Remove tui-main.o.
10560 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10561 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10562 (tui-main.o): Remove.
10563 (all_object_files): Remove tui-main.o.
10564 * NEWS: New note for the gdbtui removal.
10565 * configure: Rebuilt.
10566 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10567 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10568 CONFIG_UNINSTALL respectively.
10569 * gdb.c (main): Remove args.interpreter_p initialization.
10570 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10571 * main.h (struct captured_main_args): Remove interpreter_p.
10572 * tui/tui-main.c: Remove.
10574 2012-01-01 Doug Evans <dje@google.com>
10576 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10577 (dwarf2_physname, read_import_statement): Ditto.
10578 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10579 (process_structure_scope read_subroutine_type): Ditto.
10580 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10581 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10582 (dwarf2_fetch_die_location_block): Ditto.
10583 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10585 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10586 All callers updated.
10587 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10588 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10589 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10591 * dwarf2read.c (load_cu): Move assert to more useful location.
10593 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10594 All callers updated.
10596 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10597 (dwarf2_elf_names): Minor reformat.
10598 (dwarf2_per_cu_data): Tweak comment.
10599 (dwarf2_read_section): Fix comment.
10600 (create_all_comp_units): Fix comment.
10601 (load_full_comp_unit): Fix comment.
10602 (process_full_comp_unit): Fix comment.
10603 (read_signatured_type): Fix comment.
10605 For older changes see ChangeLog-2011.
10611 version-control: never