1 2012-08-31 Yao Qi <yao@codesourcery.com>
3 * mi/mi-cmds.c (mi_cmds): Add 'static'.
5 2012-08-29 Doug Evans <dje@google.com>
7 * main.c (print_gdb_help): Remove reference to
8 --use-deprecated-index-sections.
10 2012-08-28 Yao Qi <yao@codesourcery.com>
12 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
13 (init_cmds): Call add_setshow_uinteger_cmd for command
14 'max-user-call-depth'.
15 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
16 declaration of 'max_user_call_depth'.
17 * frame.c (backtrace_limit): Add 'unsigned'.
18 (_initialize_frame): Call add_setshow_uinteger_cmd for command
20 * remote.c (remoteaddresssize): Add 'unsigned'.
21 (remote_address_masked): Change local var 'address_size' to
23 (_initialize_remote): Call add_setshow_uinteger_cmd for
25 * top.c (history_size): Add 'unsigned'.
26 (show_commands): Change local variables to 'unsigned'.
27 (set_history_size_command): Don't check history_size is negative.
28 Adjust the condition to call unstifle_history and set history_size
31 2012-08-28 Pedro Alves <palves@redhat.com>
35 * infcmd.c (default_print_one_register_info): New, factored out
36 from default_print_registers_info.
37 (default_print_registers_info): Use it. Mark value unavailable if
39 (registers_info): Print user registers with
40 default_print_one_register_info.
42 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
45 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
46 is not NULL before referencing it.
48 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
50 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
51 variable pc. Call find_pc_line instead of find_pc_overlay, restore
54 2012-08-27 Eli Zaretskii <eliz@gnu.org>
55 Jan Kratochvil <jan.kratochvil@redhat.com>
57 * auto-load.c (auto_load_objfile_script): Rename to ...
58 (auto_load_objfile_script_1): ... here, change variable realname to
59 parameter realname, document it, add return value, add variable retval.
60 (auto_load_objfile_script): New function.
62 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
64 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
65 followed by a whitespace.
67 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
70 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
71 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
72 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
75 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
77 * memattr.c (create_mem_region): Fix memory region overlapping
80 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
82 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
84 * mt-tdep.c (mt_push_dummy_call): Likewise.
85 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
86 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
88 2012-08-24 Yao Qi <yao@codesourcery.com>
90 * jv-exp.y (push_expression_name): Add "." at the end of error
93 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
95 Document how to return from "python-interactive" to GDB.
96 * python/python.c (_initialize_python): Update documentation.
98 2012-08-23 Pedro Alves <palves@redhat.com>
100 * infrun.c (_initialize_infrun) <handle command help text>:
101 Mention that multiple signals are supported.
103 2012-08-23 Pedro Alves <palves@redhat.com>
105 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
108 2012-08-23 Yao Qi <yao@codesourcery.com>
110 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
111 (tfind_1): Don't call registers_changed, set_traceframe_num,
112 and clear_traceframe_info.
113 Call set_current_traceframe.
114 (set_current_traceframe): call set_traceframe_num.
116 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
118 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
119 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
121 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
123 Enable readline in Python in a GDB-specific way and block the
124 standard Python readline module to prevent conflicts with GDB.
125 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
126 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
127 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
128 * python/py-gdb-readline.c: New file.
129 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
131 * python/python.c (_initialize_python): Call
132 gdbpy_initialize_gdb_readline.
134 2012-08-22 Keith Seitz <keiths@redhat.com>
136 * defs.h: Include build-gnulib/config.h
138 2012-08-22 Joseph Myers <joseph@codesourcery.com>
140 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
143 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
145 Add a new "python-interactive" command that starts a standard
146 Python interactive prompt with "pi" as alias, and add "py" as
147 an alias to "python".
148 * NEWS: Mention the new commands.
149 * python/python.c (eval_python_command): New function.
150 (python_interactive_command): For "python-interactive" with
151 arguments, call eval_python_command. For "python-interactive"
152 without arguments, call PyRun_InteractiveLoop.
153 (_initialize_python): Add "python-interactive" command with
154 "pi" as alias, and add "py" as an alias to "python".
156 2012-08-22 Tom Tromey <tromey@redhat.com>
158 * defs.h (quit_flag): Don't declare.
159 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
160 (QUIT): Use new functions.
161 * event-top.c (command_handler): Use clear_quit_flag.
162 (handle_sigint): Use set_quit_flag.
163 (async_request_quit): Use check_quit_flag. Don't check
165 * exceptions.c (throw_exception): Use clear_quit_flag.
166 * main.c (captured_main): Use clear_quit_flag.
167 * python/python.c (clear_quit_flag, set_quit_flag)
168 (check_quit_flag): New functions.
169 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
171 * remote.c (remote_wait_as): Use check_quit_flag,
173 (remote_start_remote): Call QUIT.
174 * symfile.c (load_progress): Use check_quit_flag.
175 * top.c (command_loop): Use clear_quit_flag.
176 (command_line_input): Call QUIT.
177 * utils.c (quit_flag): Conditionally define.
178 (clear_quit_flag, check_quit_flag, set_quit_flag): New
180 (prompt_for_continue): Call QUIT. Use quit, not
182 * remote-mips.c (mips_expect_timeout): Call QUIT.
183 * monitor.c (monitor_expect): Call QUIT.
185 2012-08-22 Tom Tromey <tromey@redhat.com>
187 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
188 (async_init_signals): Update.
189 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
190 (SIGWINCH_HANDLER_BODY): Remove.
192 2012-08-22 Tom Tromey <tromey@redhat.com>
194 * jit.c (jit_object_close_impl): Don't malloc the objfile
196 * objfiles.c (allocate_objfile): Don't malloc the objfile
198 (free_objfile): Don't free the objfile name.
199 * objfiles.h (struct objfile) <name>: Update comment.
200 * symfile.c (reread_symbols): Fix reference counting. Don't
203 2012-08-22 Tom Tromey <tromey@redhat.com>
205 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
206 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
207 (symfile_bfd_open): Likewise.
208 (generic_load): Likewise.
209 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
210 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
212 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
214 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
215 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
216 (pmon_load_fast): Likewise.
217 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
218 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
219 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
220 (macho_check_dsym): Likewise.
221 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
222 (m32r_upload_command): Likewise.
223 * gdb_bfd.h (gdb_bfd_cache): Declare.
224 * gdb_bfd.c (struct gdb_bfd_data): New.
225 (gdb_bfd_cache): New global.
226 (struct gdb_bfd_cache_search): New.
227 (hash_bfd): New function.
229 (gdb_bfd_open): Likewise.
230 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
231 (gdb_bfd_unref): Remove closed BFD from cache. Update for
233 * exec.c (exec_file_attach): Use gdb_bfd_open.
234 * dsrec.c (load_srec): Use gdb_bfd_open.
236 2012-08-22 Tom Tromey <tromey@redhat.com>
238 * dwarf2read.c (macro_start_file): Update.
239 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
240 (free_objfile_per_bfd_storage): Destroy macro_cache.
241 (allocate_objfile, free_objfile): Update.
242 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
244 (struct objfile) <macro_cache>: Remove.
245 * symfile.c (reread_symbols): Update.
246 * symmisc.c (print_symbol_bcache_statistics): Update.
247 (print_objfile_statistics): Update.
249 2012-08-22 Tom Tromey <tromey@redhat.com>
251 * elfread.c (elf_symtab_read): Update.
252 * objfiles.c (objfiles_bfd_data): New global.
253 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
254 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
255 (allocate_objfile, free_objfile): Update.
256 (_initialize_objfiles): Initialize objfiles_bfd_data.
257 * objfiles.h (struct objfile_per_bfd_storage): New.
258 (struct objfile) <per_bfd>: New field.
259 <filename_cache>: Remove.
260 (set_objfile_per_bfd): Declare.
261 * symfile.c (reread_symbols): Update. Call
263 (allocate_symtab): Update.
264 * symmisc.c (print_symbol_bcache_statistics): Update.
265 (print_objfile_statistics): Print the size of the BFD obstack.
267 2012-08-22 Tom Tromey <tromey@redhat.com>
269 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
270 * gdb_bfd.c: Use DEFINE_REGISTRY.
271 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
272 (gdb_bfd_ref): Call bfd_alloc_data.
273 (gdb_bfd_unref): Call bfd_free_data.
275 2012-08-22 Tom Tromey <tromey@redhat.com>
277 * registry.h (struct registry_fields): New.
278 (REGISTRY_FIELDS): Redefine.
279 (REGISTRY_ACCESS_FIELD): New macro.
280 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
283 2012-08-22 Tom Tromey <tromey@redhat.com>
285 * auto-load.c (_initialize_auto_load): Update.
286 * solib-svr4.c (_initialize_svr4_solib): Update
287 * solib-dsbt.c (_initialize_dsbt_solib): Update.
288 * solib-darwin.c (_initialize_darwin_solib): Update.
289 * registry.h: New file.
290 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
291 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
292 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
293 (register_program_space_data_with_cleanup)
294 (register_program_space_data, program_space_alloc_data)
295 (clear_program_space_data, set_program_space_data)
296 (program_space_data): Don't declare.
297 * progspace.c: Use DEFINE_REGISTRY.
298 (struct program_space_data, struct
299 program_space_data_registration, struct
300 program_space_data_registry, program_space_data_registry)
301 (register_program_space_data_with_cleanup)
302 (register_program_space_data, program_space_alloc_data)
303 (program_space_free_data, clear_program_space_data)
304 (set_program_space_data, program_space_data): Remove.
305 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
306 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
307 (register_objfile_data_with_cleanup, register_objfile_data)
308 (clear_objfile_data, set_objfile_data, objfile_data): Don't
310 * objfiles.c: Use DEFINE_REGISTRY.
311 (struct objfile_data, struct objfile_data_registration, struct
312 objfile_data_registry, objfile_data_registry)
313 (register_objfile_data_with_cleanup, register_objfile_data)
314 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
315 (set_objfile_data, objfile_data): Remove.
316 (_initialize_objfiles): Update.
317 * jit.c (_initialize_jit): Update.
318 * inflow.c (_initialize_inflow): Update.
319 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
320 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
321 (register_inferior_data_with_cleanup, register_inferior_data)
322 (clear_inferior_data, set_inferior_data, inferior_data): Don't
324 * inferior.c: Use DEFINE_REGISTRY.
325 (struct inferior_data, struct inferior_data_registration, struct
326 inferior_data_registry, inferior_data_registry)
327 (register_inferior_data_with_cleanup, register_inferior_data)
328 (inferior_alloc_data, inferior_free_data clear_inferior_data)
329 (set_inferior_data, inferior_data): Remove.
330 * auxv.c (_initialize_auxv): Update.
331 * ada-lang.c (_initialize_ada_language): Update.
332 * breakpoint.c (_initialize_breakpoint): Update.
333 * i386-nat.c (i386_use_watchpoints): Update.
335 2012-08-22 Tom Tromey <tromey@redhat.com>
337 * exec.c (exec_close, exec_file_attach): Update.
338 (add_to_section_table): Initialize 'key' field.
339 (add_target_sections, remove_target_sections): Add 'key' argument.
340 * exec.h (add_target_sections, remove_target_sections): Add
342 * solib.c (solib_map_sections, update_solib_list, clear_solib)
343 (reload_shared_libraries_1): Update.
344 * target.h (struct target_section) <key>: New field.
346 2012-08-22 Tom Tromey <tromey@redhat.com>
348 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
350 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
352 * symfile.c (allocate_symtab): Use host_address_to_string
353 function instead of cast of pointer to long which is not
354 compatible with x86_64-w64-mingw32 build.
356 2012-08-19 Andrew Pinski <apinski@cavium.com>
358 * mips-tdep.c (is_octeon): New function.
359 (is_octeon_bbit_op): New function.
360 (mips32_next_pc): Handle Octeon's bbit instructions.
361 (mips32_instruction_has_delay_slot): Likewise.
363 2012-08-19 Andrew Pinski <apinski@cavium.com>
365 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
368 2012-08-19 Andrew Pinski <apinski@cavium.com>
370 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
372 2012-08-19 Keith Seitz <keiths@redhat.com>
375 * c-typeprint.c (c_type_print_varspec_prefix): Pass
376 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
378 2012-08-18 Eli Zaretskii <eliz@gnu.org>
380 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
381 The typo broke "make TAGS".
383 2012-08-17 Joel Brobecker <brobecker@adacore.com>
387 2012-08-17 Keith Seitz <keiths@redhat.com>
390 * gdbtypes.c (strict_type_checking): New variable.
391 (show_strict_type_checking): New function.
392 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
393 if strict type checking is disabled.
394 (_initialize_gdbtypes): Add "check type" subcommand.
395 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
397 2012-08-17 Keith Seitz <keiths@redhat.com>
399 * language.h (type_mode): Remove.
400 (type_check): Remove.
401 (struct language_defn): Remove la_type_check.
402 (STRICT_TYPE): Remove unused macro.
403 (type_error): Remove.
404 * language.c (set_type_range_case): Renamed to ...
405 (set_range_case): ... this. Update all callers.
406 Remove type_mode/type_check.
408 (type_check): Remove.
409 (show_type_command): Remove.
410 (set_type_command): Remove.
411 (language_info): Remove type checking output.
412 (type_error): Remove unused function.
413 (range_error): Update comment.
414 (unknown_language_defn): Remove la_type_check.
415 (auto_language_defn): Likewise.
416 (local_language_defn): Likewise.
417 (_initialize_language): Remove "check type" subcommand.
418 * ada-lang.c (ada_language_defn): Remove la_type_check.
419 * c-lang.c (c_language_defn): Likewise.
420 (cplus_language_defn): Likewise.
421 (asm_language_defn): Likewise.
422 (minimal_language_defn): Likewise.
423 * d-lang.c (d_language_defn): Likewise.
424 * f-lang.c (f_language_defn): Likewise.
425 * go-lang.c (go_language_defn): Likewise.
426 * jv-lang.c (java_language_defn): Likewise.
427 * m2-lang.c (m2_language_defn): Likewise.
428 * objc-lang.c (objc_language_defn): Likewise.
429 * opencl-lang.c (opencl_language_defn): Likewise.
430 * p-lang.c (pascal_language_defn): Likewise.
432 2012-08-16 Mike Frysinger <vapier@gentoo.org>
434 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
436 2012-08-16 Joel Brobecker <brobecker@adacore.com>
438 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
440 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
441 using the regache. Use ia64_hpux_get_register_from_save_state_t
442 to access the bsp and bspstore registers if not.
444 2012-08-16 Joel Brobecker <brobecker@adacore.com>
446 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
447 * breakpoint.c (detach_breakpoints): Change pid parameter into
448 a ptid. Adjust code accordingly.
449 * infrun.c (handle_inferior_event): Delete variable child_pid.
450 Update call to detach_breakpoints to pass the child ptid for
452 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
453 assert that inferior_ptid's lwp is zero.
454 (linux_handle_extended_wait): Update call to detach_breakpoints.
455 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
458 2012-08-16 Joel Brobecker <brobecker@adacore.com>
460 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
461 parent, only call detach_breakpoints if tts.tts_event ==
464 2012-08-16 Joel Brobecker <brobecker@adacore.com>
466 * dwarf2-frame.c (dwarf2_frame_cache): Use
467 get_frame_address_in_block instead of get_frame_pc as
468 the bound for executing the frame's FDE.
470 2012-08-16 Yao Qi <yao@codesourcery.com>
472 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
473 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
474 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
475 (c_type_print_varspec_suffix): Likewise.
476 * eval.c (evaluate_subexp_standard): Likewise.
477 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
478 (f_type_print_varspec_suffix): Likewise.
479 * gdbtypes.c (is_scalar_type): Likewise.
480 (recursive_dump_type): Likewise.
481 * infcall.c (value_arg_coerce): Likewise.
482 * m2-valprint.c (m2_val_print): Likewise.
483 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
484 (pascal_type_print_varspec_suffix): Likewise.
485 (pascal_type_print_base): Likewise.
486 * p-valprint.c (pascal_val_print): Likewise.
487 (pascal_val_print): Likewise.
488 * valops.c (value_slice): Likewise.
489 * valprint.c (scalar_type_p): Likewise.
490 * valarith.c (value_bitstring_subscript): Remove.
491 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
492 Remove comment on TYPE_CODE_BITSTRING.
494 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
497 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
500 2012-08-16 Yao Qi <yao@codesourcery.com>
502 * tracepoint.c (trace_find_none_command): Remove.
503 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
505 2012-08-16 Yao Qi <yao@codesourcery.com>
507 * remote.c (handle_notification): Remove parameter 'length'.
508 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
510 2012-08-15 Keith Seitz <keiths@redhat.com>
512 * gdbtypes.c (opaque_type_resolution): Make static.
514 (overload_debug): Add missing comment.
515 (show_opaque_type_resolution): Likewise.
516 (show_overload_debug): Likewise.
517 (print_bit_vector): Remove unnecessary forward declaration.
518 (print_arg_types): Likewise.
519 (dump_fn_fieldlists): Likewise.
520 (print_cplus_stuff): Likewise.
522 2012-08-15 Tom Tromey <tromey@redhat.com>
524 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
525 (gdb_bfd_ref): Initialize new field.
526 (gdb_bfd_unref): Unref the archive BFD.
527 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
530 2012-08-15 Tom Tromey <tromey@redhat.com>
533 * python/py-bpevent.c (create_breakpoint_event_object): Update
535 * python/py-event.c (evpy_add_attribute): Update comment.
536 * python/py-exitedevent.c (create_exited_event_object): Fix
537 reference counting and error handling.
538 * python/py-newobjfileevent.c (create_new_objfile_event_object):
539 Fix reference counting.
540 * python/py-signalevent.c (create_signal_event_object): Fix
541 reference counting and error handling.
542 * python/py-stopevent.c (emit_stop_event): Fix reference
544 * python/py-threadevent.c (get_event_thread): Return a
546 * python/py-type.c (convert_field): Fix reference counting.
548 2012-08-15 Tom Tromey <tromey@redhat.com>
550 * dwarf2read.c (dwarf_decode_macro_bytes)
551 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
554 2012-08-14 Mike Frysinger <vapier@gentoo.org>
556 * infcmd.c (_initialize_infcmd): Update help text for the signal,
557 stepi, nexti, finish, next, step, jump, and continue commands.
558 * infrun.c (_initialize_infrun): Update help text for the handle
561 2012-08-14 Doug Evans <dje@google.com>
563 * gdbtypes.c (struct extra): Delete, unused.
565 * gdbtypes.c: Whitespace cleanup.
566 (address_space_name_to_int): Remove "extern" from definition.
567 (_initialize_gdbtypes): Declare with initialize_file_ftype.
569 * gdbtypes.c (make_pointer_type): Remove redundant setting of
570 TYPE_POINTER_TYPE (type).
572 2012-08-14 Gary Benson <gbenson@redhat.com>
574 * solib-svr4.c (svr4_free_library_list): Use free_so.
576 2012-08-13 Mike Frysinger <vapier@gentoo.org>
578 * .gitignore: Add go-exp.c.
580 2012-08-13 Doug Evans <dje@google.com>
582 * value.c (show_convenience): Tweak comment.
583 (_initialize_values): Mention convenience functions in the help text
584 for "show convenience".
586 2012-08-13 Yao Qi <yao@codesourcery.com>
588 * std-operator.def: Remove TERNOP_SLICE_COUNT.
589 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
591 * eval.c (evaluate_subexp_standard): Likewise.
592 * expprint.c (print_subexp_standard): Likewise.
593 (dump_subexp_body_standard): Likewise.
594 * parse.c (operator_length_standard): Likewise.
596 2012-08-13 Yao Qi <yao@codesourcery.com>
598 * std-operator.def: Remove OP_BITSTRING.
599 * breakpoint.c (watchpoint_exp_is_const): Update.
600 * eval.c (evaluate_subexp_standard): Remove handling to
602 * expprint.c (print_subexp_standard): Likewise.
603 (dump_subexp_body_standard): Likewise.
604 * parse.c (operator_length_standard): Likewise.
605 * valops.c (value_bitstring): Remove.
606 * value.h: Remove the declaration of 'value_bitstring'.
608 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
610 * linespec.c (find_methods): Remove unused variables `i1' and
612 (decode_line_full): Likewise for `arg_start'.
614 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
616 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
617 (zlib_decompress_section): Likewise for `section_data'.
618 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
620 2012-08-10 Doug Evans <dje@google.com>
622 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
623 * NEWS: Document them.
624 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
626 * python/py-type.c (typy_array_1): New function.
627 (typy_array): Call it.
628 (typy_vector): New function.
629 (type_object_methods): Add "vector".
630 * python/lib/gdb/function/__init__.py: New file.
631 * python/lib/gdb/function/strfns.py: New file.
633 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
635 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
636 for TYPE_FIELD_BITPOS.
637 (typy_get_sizeof): Likewise for TYPE_LENGTH.
639 2012-08-10 Mike Frysinger <vapier@gentoo.org>
642 * common/vec.h (VEC_merge): Define.
643 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
644 (DEF_VEC_ALLOC_FUNC_P): Likewise.
645 (DEF_VEC_ALLOC_FUNC_O): Likewise.
646 * completer.c: Include gdb_signals.h.
647 (signal_completer): Define.
648 * completer.h (signal_completer): Add prototype.
649 * infcmd.c (_initialize_infcmd): Assign the command
650 completer for "signal" to handle_completer.
651 * infrun.c: Include completer.h.
652 (handle_completer): Define.
653 (_initialize_infrun): Declare a new local variable c. Store the
654 result of add_com("handle") to it. Assign the command
655 completer for "handle" to handle_completer.
657 2012-08-09 Yao Qi <yao@codesourcery.com>
659 * cli/cli-decode.c (set_cmd_prefix): New.
660 (lookup_cmd_for_prefixlist): New.
661 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
662 of each cmd_list_element in *prefixlist.
663 (add_setshow_cmd_full): set_cmd_prefix.
664 (add_alias_cmd): Likewise.
665 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
666 Declare 'auto_boolean_enums'.
667 * cli/cli-setshow.c: Include "observer.h".
668 (notify_command_param_changed_p): New.
669 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
671 (do_setshow_command): Split it to ...
672 (do_set_command, do_show_command): ... them. New.
673 (do_set_command): Call observer_notify_command_param_changed if
674 notify_command_param_changed_p returns true.
675 (cmd_show_list): Caller update.
676 * auto-load.c (set_auto_load_cmd): Likewise.
677 * remote.c (show_remote_cmd): Likewise.
678 * cli/cli-setshow.h: Update declarations.
679 * top.c (execute_command): Call do_set_command and do_show_command.
681 * NEWS: Mention new MI notification.
682 * mi/mi-interp.c: Declare mi_command_param_changed.
683 (mi_interpreter_init): Attach mi_command_param_changed to
684 observer command_param_changed.
685 (mi_command_param_changed): New.
686 Remove mi_suppress_breakpoint_notifications.
687 Define global variable mi_suppress_notification.
688 (mi_breakpoint_created): Update.
689 (mi_breakpoint_deleted): Likewise.
690 (mi_breakpoint_modified): Likewise.
691 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
692 'gdb-set' and set mi_suppress_notification.
693 * mi/mi-main.h: (mi_suppress_notification): New struct.
695 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
696 Jan Kratochvil <jan.kratochvil@redhat.com>
698 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
700 2012-08-09 Yao Qi <yao@codesourcery.com>
702 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
703 (skiplist): Move it to skip.c.
704 (init_cmd_lists): Remove code setting enablebreaklist and
706 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
707 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
709 * gdbcmd.h: Likewise.
710 * skip.c (_initialize_step_skip): Move 'skiplist' from
713 2012-08-09 Yao Qi <yao@codesourcery.com>
715 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
716 * gnu-nat.c, symfile.c: Likewise.
718 2012-08-08 Aaron Gamble <agamble@google.com>
720 * utils.c (prompt_for_continue_wait_time): New static global.
721 (make_command_stats_cleanup): Initialize it.
722 (report_command_stats): Subtract time waiting for user.
723 (prompt_for_continue): Track time waiting for user.
724 (defaulted_query): Track time waiting for user.
726 2012-08-08 Doug Evans <dje@google.com>
728 * eval.c (evaluate_subexp_standard): Fix thinko in handling
730 * expprint.c (print_subexp_standard, case OP_TYPE): New.
731 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
732 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
733 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
734 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
735 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
737 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
738 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
739 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
740 (dump_prefix_expression): Handle OP_TYPE.
742 2012-08-08 Keith Seitz <keiths@redhat.com>
744 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
747 2012-08-08 Doug Evans <dje@google.com>
749 * linux-thread-db.c: #include "gdb_vecs.h".
750 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
752 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
753 (thread_db_load_search): Use a vector to iterate over path elements.
754 Handle text appearing after "$pdir".
756 * gdb_string.h: Moved to ...
757 * common/gdb_string.h: ... here.
758 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
759 gdb_string.h and gdb_assert.h.
761 2012-08-08 Yao Qi <yao@codesourcery.com>
763 * tic6x-tdep.c (tic6x_register_to_value): Remove.
764 (tic6x_value_to_register): Likewise.
765 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
766 and set_gdbarch_value_to_register.
768 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
769 Jean-Marc Saffroy <saffroy@gmail.com>
772 * defs.h (find_memory_region_ftype): New comment. New arg modified.
773 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
774 * gcore.c (gcore_create_callback): New function comment. Add modified
775 parameter. Only write modified regions. Set SEC_READONLY exactly
776 according to MODIFIED.
777 (objfile_find_memory_regions): Ignore separate debug info files. Ass
778 the passed modified value to FUNC.
779 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
780 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
781 first. New variables modified and has_anonymous. Parse the lines of
782 smaps file. Add the passed MODIFIED value to FUNC.
783 * procfs.c (find_memory_regions_callback): Add the passed modified
786 2012-08-06 Tom Tromey <tromey@redhat.com>
788 * dwarf2-frame.c (clear_pointer_cleanup): New function.
789 (dwarf2_frame_cache): Use it.
790 * frame-unwind.h (frame_sniffer_ftype): Document prologue
791 cache initialization constraint.
793 2012-08-06 Tom Tromey <tromey@redhat.com>
796 * varobj.c (update_dynamic_varobj_children): Don't call
799 2012-08-06 Tom Tromey <tromey@redhat.com>
802 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
804 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
806 * NEWS: New entry for 'cd' default parameters.
807 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
809 2012-08-03 Tom Tromey <tromey@redhat.com>
811 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
814 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
816 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
817 to attempting lseek/write.
818 (inf_child_fileio_pread): Likewise for pread.
820 2012-08-02 Yao Qi <yao@codesourcery.com>
822 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
823 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
824 add_setshow_zinteger_cmd.
825 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
826 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
827 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
828 instead of add_setshow_zinteger_cmd.
829 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
830 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
831 instead of add_setshow_zinteger_cmd.
832 * frame.c (frame_debug): Add 'unsigned'.
833 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
834 add_setshow_zinteger_cmd.
835 * frame.h: Update the declaration of 'frame_debug'.
836 * gdbtypes.c (overload_debug): Add 'unsigned'.
837 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
838 add_setshow_zinteger_cmd.
839 * inferior.h: Update declaration of 'debug_infrun'.
840 * infrun.c (debug_infrun): Add 'unsigned'.
841 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
842 add_setshow_zinteger_cmd.
843 * jit.c (jit_debug): Add 'unsigned'.
844 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
845 add_setshow_zinteger_cmd.
846 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
847 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
848 instead of add_setshow_zinteger_cmd.
849 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
850 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
851 add_setshow_zinteger_cmd.
852 * machoread.c (mach_o_debug_level): Add 'unsigned'.
853 (_initialize_machoread): Call add_setshow_zuinteger_cmd
854 instead of add_setshow_zinteger_cmd.
855 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
856 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
857 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
858 intead of add_setshow_zinteger_cmd.
859 * mips-tdep.c (mips_debug): Add 'unsigned'.
860 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
861 instead of add_setshow_zinteger_cmd.
862 * monitor.c (monitor_debug): Add 'unsigned'.
863 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
864 add_setshow_zinteger_cmd.
865 * observer.c (observer_debug): Add 'unsigned'.
866 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
867 add_setshow_zinteger_cmd.
868 * parse.c (expressiondebug): Add 'unsigned'.
869 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
870 add_setshow_zinteger_cmd.
871 * record.c (record_debug): Add 'unsigned'.
872 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
873 add_setshow_zinteger_cmd.
874 * record.h: Update the declaration of 'record_debug'.
875 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
876 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
877 add_setshow_zinteger_cmd.
878 * serial.c (global_serial_debug_p): Add 'unsigned'.
879 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
880 add_setshow_zinteger_cmd.
881 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
882 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
883 add_setshow_zinteger_cmd.
884 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
885 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
886 add_setshow_zinteger_cmd.
887 * target.c (targetdebug): Add 'unsigned'.
888 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
889 add_setshow_zinteger_cmd.
890 * valops.c (overload_debug): Add 'unsigned'.
891 * varobj.c (varobjdebug): Add 'unsigned'.
892 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
893 add_setshow_zinteger_cmd.
894 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
895 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
896 instead of add_setshow_zinteger_cmd.
898 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
899 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
900 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
901 instead of add_setshow_zinteger_cmd.
902 * gdbarch.c, gdbarch.h: Re-generated.
904 2012-08-02 Yao Qi <yao@codesourcery.com>
906 * nto-tdep.c: Don't include cli/cli-decode.h and
908 (_initialize_nto_tdep): Remove.
909 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
911 Remove macro nto_internal_debugging.
913 2012-08-01 Richard Henderson <rth@redhat.com>
915 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
916 (mep-*-*) [gdb_target_obs]: Likewise.
918 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
920 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
921 linux_get_siginfo_type.
923 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
925 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
927 (call_function_by_hand) <ON_STACK>: Call write_memory with
928 gdbarch_breakpoint_from_pc, if possible.
929 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
932 2012-07-31 Yao Qi <yao@codesourcery.com>
934 * tracepoint.c: Add 'static' for some variables.
936 2012-07-31 Yao Qi <yao@codesourcery.com>
938 * go32-nat.c: Declare _initialize_go32_nat.
939 * ser-go32.c: Declare _initialize_ser_dos.
940 * top.c (do_chdir_cleanup): Add 'static'.
942 2012-07-30 Keith Seitz <keiths@redhat.com>
944 * linespec.c (linespec_lex_number): A number followed
945 by quotes is a valid number, too.
947 2012-07-30 Tom Tromey <tromey@redhat.com>
949 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
951 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
953 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
954 attempt to 4-byte-align HW breakpoint addresses for Thumb.
956 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
958 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
959 invalid or reevaluated to prevent prevent references to possibly
960 delete'd type objects being left in the varobj.
962 2012-07-27 Tom Tromey <tromey@redhat.com>
963 Jan Kratochvil <jan.kratochvil@redhat.com>
965 * copying.awk: Print buffer-read-only and vi ro markers.
966 * copying.c: Rebuild.
967 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
968 * gdbarch.c, gdbarch.h: Rebuild.
969 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
970 buffer-read-only and vi ro markers.
971 * features/arm-with-iwmmxt.c: Rebuild.
972 * features/arm-with-m-fpa-layout.c: Rebuild.
973 * features/arm-with-m-vfp-d16.c: Rebuild.
974 * features/arm-with-m.c: Rebuild.
975 * features/arm-with-neon.c: Rebuild.
976 * features/arm-with-vfpv2.c: Rebuild.
977 * features/arm-with-vfpv3.c: Rebuild.
978 * features/i386/amd64-avx-linux.c: Rebuild.
979 * features/i386/amd64-avx.c: Rebuild.
980 * features/i386/amd64-linux.c: Rebuild.
981 * features/i386/amd64.c: Rebuild.
982 * features/i386/i386-avx-linux.c: Rebuild.
983 * features/i386/i386-avx.c: Rebuild.
984 * features/i386/i386-linux.c: Rebuild.
985 * features/i386/i386-mmx-linux.c: Rebuild.
986 * features/i386/i386-mmx.c: Rebuild.
987 * features/i386/i386.c: Rebuild.
988 * features/i386/x32-avx-linux.c: Rebuild.
989 * features/i386/x32-avx.c: Rebuild.
990 * features/i386/x32-linux.c: Rebuild.
991 * features/i386/x32.c: Rebuild.
992 * features/mips-dsp-linux.c: Rebuild.
993 * features/mips-linux.c: Rebuild.
994 * features/mips64-dsp-linux.c: Rebuild.
995 * features/mips64-linux.c: Rebuild.
996 * features/rs6000/powerpc-32.c: Rebuild.
997 * features/rs6000/powerpc-32l.c: Rebuild.
998 * features/rs6000/powerpc-403.c: Rebuild.
999 * features/rs6000/powerpc-403gc.c: Rebuild.
1000 * features/rs6000/powerpc-405.c: Rebuild.
1001 * features/rs6000/powerpc-505.c: Rebuild.
1002 * features/rs6000/powerpc-601.c: Rebuild.
1003 * features/rs6000/powerpc-602.c: Rebuild.
1004 * features/rs6000/powerpc-603.c: Rebuild.
1005 * features/rs6000/powerpc-604.c: Rebuild.
1006 * features/rs6000/powerpc-64.c: Rebuild.
1007 * features/rs6000/powerpc-64l.c: Rebuild.
1008 * features/rs6000/powerpc-7400.c: Rebuild.
1009 * features/rs6000/powerpc-750.c: Rebuild.
1010 * features/rs6000/powerpc-860.c: Rebuild.
1011 * features/rs6000/powerpc-altivec32.c: Rebuild.
1012 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1013 * features/rs6000/powerpc-altivec64.c: Rebuild.
1014 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1015 * features/rs6000/powerpc-cell32l.c: Rebuild.
1016 * features/rs6000/powerpc-cell64l.c: Rebuild.
1017 * features/rs6000/powerpc-e500.c: Rebuild.
1018 * features/rs6000/powerpc-e500l.c: Rebuild.
1019 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1020 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1021 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1022 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1023 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1024 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1025 * features/rs6000/powerpc-vsx32.c: Rebuild.
1026 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1027 * features/rs6000/powerpc-vsx64.c: Rebuild.
1028 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1029 * features/rs6000/rs6000.c: Rebuild.
1030 * features/s390-linux32.c: Rebuild.
1031 * features/s390-linux32v1.c: Rebuild.
1032 * features/s390-linux32v2.c: Rebuild.
1033 * features/s390-linux64.c: Rebuild.
1034 * features/s390-linux64v1.c: Rebuild.
1035 * features/s390-linux64v2.c: Rebuild.
1036 * features/s390x-linux64.c: Rebuild.
1037 * features/s390x-linux64v1.c: Rebuild.
1038 * features/s390x-linux64v2.c: Rebuild.
1039 * features/tic6x-c62x-linux.c: Rebuild.
1040 * features/tic6x-c62x.c: Rebuild.
1041 * features/tic6x-c64x-linux.c: Rebuild.
1042 * features/tic6x-c64x.c: Rebuild.
1043 * features/tic6x-c64xp-linux.c: Rebuild.
1044 * features/tic6x-c64xp.c: Rebuild.
1046 2012-07-27 Tom Tromey <tromey@redhat.com>
1048 * c-exp.y (classify_name): Avoid assignment in condition.
1050 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1052 * amd64-windows-tdep.c: Include "frame.h".
1053 (amd64_windows_skip_trampoline_code): New function.
1054 (amd64_windows_init_abi): Add trampoline registration.
1056 2012-07-27 Yao Qi <yao@codesourcery.com>
1058 * tracepoint.c (cur_traceframe_number): Remove.
1059 (set_tfile_traceframe): Remove.
1060 (tfile_trace_find, tfile_fetch_registers): Update callers.
1061 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1062 (tfile_open, tfile_trace_find): Likewise.
1064 2012-07-27 Yao Qi <yao@codesourcery.com>
1066 * thread.c (switch_to_thread): Don't call registers_changed.
1068 2012-07-26 Tom Tromey <tromey@redhat.com>
1070 * Makefile.in (SFILES): Remove objc-exp.y.
1071 (YYFILES): Remove objc-exp.c.
1072 (YYOBJ): Remove objc-exp.o.
1073 (local-maintainer-clean): Don't mention objc-exp.c.
1074 * c-exp.y: Include objc-lang.h.
1075 (%union) <class>: New field.
1076 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1077 (exp): Clone subscript production for OBJC_LBRAC. Add various
1078 Objective C productions.
1079 (msglist, msgarglist, msgarg): New productions.
1080 (array_mod, func_mod, operator): Clone productions for
1082 (parse_string_or_char): Handle '@' strings.
1083 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1084 (classify_name): Check la_name_of_this. Recognize ObjC class
1086 * objc-exp.y: Remove.
1087 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1088 * objc-lang.h (objc_parse, objc_error): Don't declare.
1090 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1092 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1094 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1096 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1099 2012-07-26 Tom Tromey <tromey@redhat.com>
1101 * copying.c: Rebuild.
1102 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1105 2012-07-26 Tom Tromey <tromey@redhat.com>
1107 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1109 (print_objfile_statistics): Likewise.
1110 (maintenance_print_symbols): Likewise.
1111 (maintenance_print_msymbols): Likewise.
1112 (maintenance_print_objfiles): Likewise.
1113 * psymtab.c (print_partial_symbols): Call QUIT.
1114 (maintenance_print_psymbols): Likewise. Don't modify
1116 * copying.c (show_copying_command): Don't modify immediate_quit.
1117 (show_warranty_command): Likewise.
1118 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1120 2012-07-26 Keith Seitz <keiths@redhat.com>
1122 * linespec.c (linespec_lexer_lex_number): The input
1123 is also a valid number if the next character is a comma
1126 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1128 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1131 2012-07-26 Tristan Gingold <gingold@adacore.com>
1133 * machoread.c: Include gdb_bfd.h.
1135 2012-07-26 Tristan Gingold <gingold@adacore.com>
1137 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1140 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1142 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1144 (dwarf2_evaluate_loc_desc): Likewise.
1145 (dwarf2_loc_desc_needs_frame): Likewise.
1146 (locexpr_describe_location_1): Likewise.
1147 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1149 (struct dwarf2_loclist_baton): Likewise.
1150 * dwarf2read.c (struct dwarf_block): Likewise.
1151 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1152 (decode_locdesc): Expand SIZE and I to size_t.
1154 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1156 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1158 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1160 * doublest.c (convert_doublest_to_floatformat): If the exponent
1161 is too small, treat the value as zero. If the exponent is too
1162 large, treat the value as infinity.
1164 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1166 * configure.ac: Add --enable-lmcheck configure option.
1167 * configure: Regenerate.
1169 2012-07-25 Tom Tromey <tromey@redhat.com>
1171 * NEWS: Mention maint info bfds.
1172 * gdb_bfd.c (all_bfds): New global.
1173 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1174 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1177 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1179 * configure.tgt: Add v850*-*-rtems*.
1181 2012-07-25 Tom Tromey <tromey@redhat.com>
1183 * macrotab.c (macro_bcache_str): Remove cast.
1185 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1187 * linespec.c (linespec_lexer_lex_number): Update comments,
1188 change the return and add check to make sure the input is
1189 the decimal numbers.
1190 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1191 false, call linespec_lexer_lex_string.
1193 2012-07-24 Tom Tromey <tromey@redhat.com>
1195 * symfile.c (symbol_file_add): Don't open BFD twice.
1197 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1199 * breakpoint.c (create_breakpoint): Store condition for pending
1202 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1204 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1205 (m68k_return_value): Handle complex types like structures.
1206 (m68k_svr4_return_value): Likewise.
1208 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1210 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1211 parameters to bfd_get_section_name.
1213 2012-07-24 Yao Qi <yao@codesourcery.com>
1215 * cli/cli-setshow.c: Handle case 'var_uinteger'
1216 and 'var_zuninteger' together. Handle case 'var_integer' and
1217 'var_zinteger' together.
1219 2012-07-23 Keith Seitz <keiths@redhat.com>
1221 * linespec.c (convert_linespec_to_sal): Don't add
1222 any symbols to the result vector if symbol_to_sal
1225 2012-07-23 Keith Seitz <keiths@redhat.com>
1227 * linespec.c (decode_objc): Record the function name
1230 2012-07-23 Tom Tromey <tromey@redhat.com>
1232 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1234 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1235 (map_vmap): Acquire a reference to the BFD.
1237 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1239 * p-valprint.c (pascal_object_print_value): Replace potentially
1240 unsafe alloca with xmalloc/xfree.
1241 * valops.c (search_struct_method): Likewise.
1243 2012-07-23 Tom Tromey <tromey@redhat.com>
1245 * solib-svr4.c (enable_break): Update.
1246 * bfd-target.h (target_bfd_reopen): Update documentation.
1248 2012-07-23 Tom Tromey <tromey@redhat.com>
1250 * symfile.c (separate_debug_file_exists): Update.
1251 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1252 (reread_symbols): Update.
1253 * elfread.c (build_id_verify): Update.
1254 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1255 bfd_open_maybe_remote.
1257 2012-07-23 Tom Tromey <tromey@redhat.com>
1259 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1261 2012-07-23 Tom Tromey <tromey@redhat.com>
1263 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1265 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1267 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1268 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1270 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1271 * objfiles.c (allocate_objfile): Acquire a new reference.
1272 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1273 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1274 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1275 a cleanup for 'nbfd'.
1276 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1278 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1279 make a cleanup for 'abfd'.
1280 (symbol_file_add): Make a BFD cleanup.
1282 2012-07-23 Tom Tromey <tromey@redhat.com>
1284 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1285 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1286 * corelow.c (core_open): Use gdb_bfd_fopen.
1287 * dsrec.c (load_srec): Use gdb_bfd_openr.
1288 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1289 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1290 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1291 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1292 (gdb_bfd_fdopenr): New functions.
1293 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1294 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1295 (gdb_bfd_fdopenr): Declare.
1296 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1297 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1298 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1299 gdb_bfd_openr_next_archived_file.
1300 (macho_check_dsym): Use gdb_bfd_openr.
1301 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1302 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1303 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1304 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1306 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1307 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1308 gdb_bfd_openr_next_archived_file.
1309 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1311 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1313 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1314 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1315 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1316 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1317 (symfile_bfd_open): Use gdb_bfd_fopen.
1318 (generic_load): Use gdb_bfd_openr.
1319 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1321 2012-07-23 Tom Tromey <tromey@redhat.com>
1323 * bfd-target.c (target_bfd_reopen): Update.
1324 * cli/cli-dump.c (bfd_openr_with_cleanup)
1325 (bfd_openw_with_cleanup): Update.
1326 * corelow.c (core_open): Update.
1327 * dsrec.c (load_srec): Update.
1328 * exec.c (exec_file_attach): Update.
1329 * gcore.c (create_gcore_bfd): Update.
1330 * gdb_bfd.c (gdb_bfd_ref): Return void.
1331 (gdb_bfd_open): Update.
1332 * gdb_bfd.h (gdb_bfd_ref): Return void.
1334 * jit.c (jit_bfd_try_read_symtab): Update.
1335 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1336 * machoread.c (macho_symfile_read_all_oso): Update.
1337 (macho_check_dsym): Update.
1338 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1339 * remote-m32r-sdi.c (m32r_load): Update.
1340 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1341 * rs6000-nat.c (add_vmap): Update.
1342 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1344 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1345 * solib-spu.c (spu_bfd_open): Update.
1346 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1347 * spu-linux-nat.c (spu_bfd_open): Update.
1348 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1349 (generic_load): Update.
1350 * windows-nat.c (windows_make_so): Update.
1352 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1354 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1356 2012-07-20 Jeff Kenton <jkenton@tilera.com>
1358 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1359 SIGTRAMP_FRAME unwinding.
1361 2012-07-20 Doug Evans <dje@google.com>
1363 * NEWS: Document new options "set/show use-deprecated-index-sections",
1364 and delete reference to --use-deprecated-index-sections.
1365 * symfile.h (use_deprecated_index_sections): Delete.
1366 * dwarf2read.c (use_deprecated_index_sections): Make static.
1367 (read_index_from_section): Update wording of how to load
1368 deprecated index sections.
1369 (_initialize_dwarf2_read): New options
1370 "set/show use-deprecated-index-sections".
1371 * main.c (captured_main): Delete --use-deprecated-index-sections.
1373 2012-07-20 Pedro Alves <palves@redhat.com>
1378 * infrun.c (handle_inferior_event) <new thread>: Don't special
1379 case minus_one_ptid.
1380 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1381 * linux-thread-db.c (thread_get_info_callback): Don't return early
1382 if the thread is zombie.
1383 (thread_from_lwp): Change return type to void. Rewrite stale
1385 (attach_thread): Don't return early if the thread is zombie,
1386 instead set its "dying" flag.
1387 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1388 (find_new_threads_callback): Don't return early if the thread is
1391 2012-07-20 Pedro Alves <palves@redhat.com>
1393 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1394 * target.c (target_wait): Likewise.
1395 (str_comma_list_concat_elem, do_option, target_options_to_string):
1397 * target.h (target_options_to_string): Declare.
1399 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1400 Tom Tromey <tromey@redhat.com>
1402 * dwarf2read.c (dwarf_decode_macros)
1403 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1404 DW_MACRO_GNU_transparent_include_alt>: New cases.
1405 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1406 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1408 2012-07-20 Tom Tromey <tromey@redhat.com>
1410 * dwarf2read.c (try_open_dwo_file): Don't call
1411 gdb_bfd_stash_filename.
1413 2012-07-20 Pedro Alves <palves@redhat.com>
1415 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1416 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1417 (i386_process_record): Tweak description comments.
1419 2012-07-20 Pedro Alves <palves@redhat.com>
1421 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1422 (i386_process_record): Use record_read_memory.
1423 * record.c (record_read_memory): New function.
1424 (record_arch_list_add_mem, record_exec_insn): Use
1426 * record.h (record_read_memory): Declare.
1428 2012-07-20 Yao Qi <yao@codesourcery.com>
1430 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1433 2012-07-19 Pedro Alves <palves@redhat.com>
1435 * record.c (record_resume): Ask the target beneath to report all
1438 2012-07-19 Doug Evans <dje@google.com>
1440 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1441 there's no section at address zero.
1442 (dwarf2_record_block_ranges): Ditto.
1444 2012-07-19 Yao Qi <yao@codesourcery.com>
1446 * command.h, remote.c: Fix a typo in comment.
1448 2012-07-19 Tom Tromey <tromey@redhat.com>
1451 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1452 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1453 OP_DECLTYPE>: New cases.
1454 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1455 (type_exp): Add new productions.
1456 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1458 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1460 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1461 OP_DECLTYPE>: New case.
1462 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1464 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1465 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1467 2012-07-19 Tom Tromey <tromey@redhat.com>
1469 * c-exp.y (enum token_flags): New.
1470 (struct token) <cxx_only>: Remove.
1472 (tokentab3, tokentab2, ident_tokens): Update.
1473 (lex_one_token): Update. Handle FLAG_SHADOW.
1475 2012-07-19 Tom Tromey <tromey@redhat.com>
1477 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1478 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1479 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1480 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1481 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1482 type_exp production where appropriate.
1483 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1484 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1485 <UNOP_MEMVAL_TYPE>: New case.
1486 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1487 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1488 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1489 <UNOP_MEMVAL_TYPE>: New case.
1490 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1491 UNOP_REINTERPRET_CAST>: Update.
1492 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1493 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1494 UNOP_REINTERPRET_CAST>: Update.
1495 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1496 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1497 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1500 2012-07-19 Yao Qi <yao@codesourcery.com>
1501 Jan Kratochvil <jan.kratochvil@redhat.com>
1503 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1504 and case 'var_optional_filename' together.
1505 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1506 instead of add_setshow_optional_filename_cmd for setshow command
1507 'args'. Set completer for 'set args'.
1509 2012-07-18 Doug Evans <dje@google.com>
1511 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1512 * common/gdb_vecs.c: New file, contents from utils.c.
1513 * common/host-defs.h: New file, contents from defs.h.
1514 * utils.h: New file, contents from defs.h.
1515 * defs.h: Move all declarations of objects defined in utils.c
1516 to utils.h (except QUIT() and related).
1517 #include "utils.h", "host-defs.h".
1518 * probe.h (probe_p): Move here from gdb_vecs.h.
1519 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1520 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1521 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1522 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1523 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1524 (COMMON_OBS): Add gdb_vecs.o.
1525 (gdb_vecs.o): New rule.
1527 2012-07-18 Keith Seitz <keiths@redhat.com>
1529 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1530 parameter. If non-zero, use SYMNAME as the canonical name
1533 (convert_linespec_to_sals): Use add_sal_to_sals for
1535 (decode_line_full): No need to "fill in missing canonical names"
1536 anymore. Simply make cleanups for the allocated names.
1538 2012-07-18 Keith Seitz <keiths@redhat.com>
1540 * linespec.c (struct linespec): Constify expression,
1541 source_filename, function_name, and label_name.
1542 (symbol_not_found_error): Make all parameters const.
1543 (linespec_parser_delete): No need to check for NULL
1544 when using xfree. Cast const char * to char * for xfree.
1546 2012-07-18 Keith Seitz <keiths@redhat.com>
1548 * breakpoint.c (invalid_thread_id_error): New function.
1549 (find_condition_and_thread): Use invalid_thread_id_error.
1550 (watch_command_1): Likewise.
1552 2012-07-18 Tom Tromey <tromey@redhat.com>
1554 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1555 * contrib/cc-with-tweaks.sh: New file.
1557 2012-07-18 Tom Tromey <tromey@redhat.com>
1559 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1560 (locate_dwz_sections): Recognize .gdb_index.
1561 (create_cus_from_index_list): New function.
1562 (create_cus_from_index): Use it. Handle .dwz data.
1563 (read_index_from_section): New function, extracted from
1565 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1568 2012-07-18 Tom Tromey <tromey@redhat.com>
1570 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1571 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1572 <is_dwz>: New field.
1573 (struct dwz_file): New.
1574 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1575 (locate_dwz_sections, dwarf2_get_dwz_file)
1576 (get_abbrev_section_for_cu): New functions.
1577 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1578 (read_and_check_type_unit_head): Add abbrev_section argument.
1579 (create_debug_types_hash_table): Update.
1580 (init_cutu_and_read_dies): Use proper abbrev section.
1581 (init_cutu_and_read_dies_no_follow): Likewise.
1582 (set_partial_user): Do nothing if PST==NULL.
1583 (read_comp_units_from_section): New function.
1584 (create_all_comp_units): Use it.
1585 (scan_partial_symbols, partial_die_parent_scope): Update.
1586 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1587 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1588 (find_partial_die): Add offset_in_dwz argument. Update.
1589 (guess_partial_die_structure_name, fixup_partial_die): Update.
1590 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1591 DW_FORM_GNU_strp_alt.
1592 (read_indirect_string_from_dwz): New function.
1593 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1594 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1595 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1596 (follow_die_offset): Add offset_in_dwz argument.
1597 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1598 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1599 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1600 Handle new macro forms.
1601 (dwarf_decode_macros): Update.
1602 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1603 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1604 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1605 (create_debug_types_hash_table): Use correct abbrev section.
1606 (get_debug_line_section): New function.
1607 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
1608 (process_full_comp_unit): Pass 'required' argument to
1609 end_symtab_get_static_block.
1610 * buildsym.h (end_symtab_get_static_block): Update.
1611 * buildsym.c (end_symtab_get_static_block): Add 'required'
1613 (end_symtab, end_expandable_symtab): Update.
1615 2012-07-18 Tom Tromey <tromey@redhat.com>
1617 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
1619 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
1620 (zlib_decompress_section): Remove.
1621 (dwarf2_read_section): Use gdb_bfd_map_section.
1622 (munmap_section_buffer): Remove.
1623 (free_dwo_file, dwarf2_per_objfile_free): Don't use
1624 munmap_section_buffer.
1625 * gdb_bfd.c: Include zlib.h, sys/mman.h.
1626 (struct gdb_bfd_section_data): New.
1627 (free_one_bfd_section): New function.
1628 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
1629 (get_section_descriptor, zlib_decompress_section)
1630 (gdb_bfd_map_section): New functions.
1631 * gdb_bfd.h (gdb_bfd_map_section): Declare.
1633 2012-07-18 Tom Tromey <tromey@redhat.com>
1635 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
1637 2012-07-18 Tom Tromey <tromey@redhat.com>
1639 * gdb_bfd.c (struct gdb_bfd_data): New.
1640 (gdb_bfd_cache): New global.
1641 (struct gdb_bfd_cache_search): New.
1642 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
1643 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
1644 * gdb_bfd.h (gdb_bfd_open): Declare.
1646 2012-07-18 Tom Tromey <tromey@redhat.com>
1648 * utils.c (make_cleanup_bfd_unref): Rename from
1649 make_cleanup_bfd_close.
1650 * defs.h (make_cleanup_bfd_unref): Rename from
1651 make_cleanup_bfd_close.
1652 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
1653 (bfd_openw_with_cleanup): Update.
1654 * corelow.c (core_open): Update.
1655 * dsrec.c (load_srec): Update.
1656 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1657 * remote-m32r-sdi.c (m32r_load): Update.
1658 * remote-mips.c (mips_load_srec): Update.
1659 (pmon_load_fast): Update.
1660 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1662 (darwin_bfd_open): Update.
1663 * solib.c (solib_bfd_fopen): Update.
1664 * symfile-mem.c (symbol_file_add_from_memory): Update.
1665 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
1666 (symfile_bfd_open): Update.
1667 (generic_load): Update.
1669 2012-07-18 Tom Tromey <tromey@redhat.com>
1671 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
1672 (pmon_load_fast): Likewise.
1673 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
1674 (m32r_upload_command): Likewise.
1675 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
1676 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1677 Use make_cleanup_bfd_close.
1679 2012-07-18 Tom Tromey <tromey@redhat.com>
1681 * symfile.c (symfile_bfd_open): Don't copy name. Call
1682 gdb_bfd_stash_filename.
1683 (load_command): Open the new BFD before freeing the old.
1684 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
1685 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
1686 Call gdb_bfd_stash_filename.
1687 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
1688 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
1689 gdb_bfd_stash_filename.
1690 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1691 Free found_pathname.
1692 * rs6000-nat.c (add_vmap): Don't copy filename. Call
1693 gdb_bfd_stash_filename.
1694 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
1695 * machoread.c (macho_add_oso_symfile): Call
1696 gdb_bfd_stash_filename.
1697 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
1698 gdb_bfd_stash_filename.
1699 (macho_check_dsym): Don't copy filename. Call
1700 gdb_bfd_stash_filename.
1701 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
1702 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
1703 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
1704 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
1705 * exec.c (exec_close): Don't free the BFD's filename.
1706 (exec_file_attach): Don't copy the filename. Call
1707 gdb_bfd_stash_filename.
1708 * corelow.c (core_close): Don't free the BFD's filename.
1709 (core_open): Call gdb_bfd_stash_filename.
1710 * corefile.c (reopen_exec_file): Remove #if 0 code.
1711 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
1713 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
1715 2012-07-18 Tom Tromey <tromey@redhat.com>
1717 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
1719 (free_dwo_file): Use gdb_bfd_unref.
1720 * cli/cli-dump.c: Include gdb_bfd.h.
1721 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
1722 (bfd_openr_with_cleanup): Likewise.
1723 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
1725 * utils.c: Include gdb_bfd.h.
1726 (do_bfd_close_cleanup): Use gdb_bfd_unref.
1727 * symfile.c: Include gdb_bfd.h.
1728 (separate_debug_file_exists): Use gdb_bfd_unref.
1729 (bfd_open_maybe_remote): Use gdb_bfd_ref.
1730 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1731 (generic_load): Use gdb_bfd_ref.
1732 (reread_symbols): Use gdb_bfd_unref.
1733 * symfile-mem.c: Include gdb_bfd.h.
1734 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
1735 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1736 * solib.c: Include gdb_bfd.h.
1737 (solib_bfd_fopen): Use gdb_bfd_ref.
1738 (solib_bfd_open): Use gdb_bfd_unref.
1739 (free_so_symbols): Use gdb_bfd_unref.
1740 (reload_shared_libraries_1): Use gdb_bfd_unref.
1741 * solib-spu.c: Include gdb_bfd.h.
1742 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
1743 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
1745 * solib-frv.c: Include gdb_bfd.h.
1746 (enable_break2): Use gdb_bfd_unref.
1747 * solib-dsbt.c: Include gdb_bfd.h.
1748 (enable_break2): Use gdb_bfd_unref.
1749 * solib-darwin.c: Include gdb_bfd.h.
1750 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
1752 (darwin_bfd_open): Use gdb_bfd_unref.
1753 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
1754 * remote-mips.c: Include gdb_bfd.h.
1755 (mips_load_srec): Use gdb_bfd_ref.
1756 (pmon_load_fast): Use gdb_bfd_ref.
1757 * remote-m32r-sdi.c: Include gdb_bfd.h.
1758 (m32r_load): Use gdb_bfd_ref.
1759 * record.c: Include gdb_bfd.h.
1760 (record_save_cleanups): Use gdb_bfd_unref.
1761 (cmd_record_save): Use gdb_bfd_unref.
1762 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
1764 * objfiles.h (gdb_bfd_close_or_warn): Remove.
1765 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
1766 * objfiles.c: Include gdb_bfd.h.
1767 (free_objfile): Use gdb_bfd_unref.
1768 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
1770 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
1771 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
1772 (macho_check_dsym): Likewise.
1773 * m32r-rom.c: Include gdb_bfd.h.
1774 (m32r_load): Use gdb_bfd_ref.
1775 (m32r_upload_command): Use gdb_bfd_ref.
1776 * jit.c: Include gdb_bfd.h.
1777 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
1778 * gdb_bfd.h: New file.
1779 * gdb_bfd.c: New file.
1780 * gcore.c: Include gdb_bfd.h.
1781 (create_gcore_bfd): Use gdb_bfd_ref.
1782 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
1783 (gcore_command): Use gdb_bfd_unref.
1784 * exec.c: Include gdb_bfd.h.
1785 (exec_close): Use gdb_bfd_unref.
1786 (exec_close_1): Use gdb_bfd_unref.
1787 (exec_file_attach): Use gdb_bfd_ref.
1788 * elfread.c: Include gdb_bfd.h.
1789 (build_id_verify): Use gdb_bfd_unref.
1790 * dsrec.c: Include gdb_bfd.h.
1791 (load_srec): Use gdb_bfd_ref.
1792 * corelow.c: Include gdb_bfd.h.
1793 (core_close): Use gdb_bfd_unref.
1794 (core_open): Use gdb_bfd_ref.
1795 * bfd-target.c: Include gdb_bfd.h.
1796 (target_bfd_xclose): Use gdb_bfd_unref.
1797 (target_bfd_reopen): Use gdb_bfd_ref.
1798 * Makefile.in (SFILES): Add gdb_bfd.c.
1799 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
1800 (COMMON_OBS): Add gdb_bfd.o.
1802 2012-07-18 Keith Seitz <keiths@redhat.com>
1804 * breakpoint.c (find_condition_and_thread): Initialize
1806 (create_breakpiont): find_condition_and_thread will now
1807 initialize COND_STRING, THREAD, and REST (and TASK).
1808 (addr_string_to_sals): Likewise.
1810 2012-07-18 Pedro Alves <palves@redhat.com>
1812 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
1813 Pull the single step breakpoints out of the target.
1815 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1817 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
1818 * stap-probe.c (compile_probe_arg): Likewise.
1820 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1822 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
1823 (elf_compile_to_ax): Likewise.
1824 * infrun.c (insert_exception_resume_from_probe): Likewise.
1825 (check_exception_resume): Remove `objfile' variable.
1826 * probe.c (find_probe_by_pc): Remove `objfile' argument.
1827 (struct probe_and_objfile, probe_and_objfile_s): Delete.
1828 (collect_probes): Adjust return value to `VEC (probe_p) *'.
1829 (compare_entries): Rename to...
1830 (compare_probes): ...this. Adjust function to work with
1831 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
1833 (gen_ui_out_table_header_info): Adjust `probes' argument to be
1835 (print_ui_out_info): Adjust argument to be `struct probe *'.
1836 (info_probes_for_ops): Adjust internal computations to use
1838 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
1839 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
1840 gen_info_probes_table_values>: Remove `objfile' argument.
1841 (struct probe) <objfile>: New field.
1842 (find_probe_by_pc): Remove `objfile' argument.
1843 * stap-probe.c (stap_parse_probe_arguments): Likewise.
1844 (stap_get_probe_argument_count): Likewise.
1845 (stap_get_arg): Likewise.
1846 (stap_evaluate_probe_argument): Likewise.
1847 (stap_compile_to_ax): Likewise.
1848 (compile_probe_arg): Refactor not to pass `objfile' anymore.
1849 (handle_stap_probe): Fill `objfile' field from `struct probe'.
1850 (stap_gen_info_probes_table_header): Remove `objfile' argument.
1851 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
1852 sym_compile_to_ax>: Likewise.
1854 2012-07-18 Terry Guo <terry.guo@arm.com>
1857 * defs.h (GDB_MI_MSG_WIDTH): New.
1858 * ser_base (ser_base_read_error_fd): New function.
1859 (do_ser_base_readchar): Poll error file descriptor as well as
1861 (generic_readchar): Refactor error handling.
1863 2012-07-18 Joel Brobecker <brobecker@adacore.com>
1865 * NEWS: Create a new section for the next release branch.
1866 Rename the section of the current branch, now that it has
1869 2012-07-18 Joel Brobecker <brobecker@adacore.com>
1871 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
1872 * version.in: Bump version to 7.5.50.20120718-cvs.
1874 2012-07-17 Keith Seitz <keiths@redhat.com>
1876 * linespec.c (linespec_parse_line_offset): Make parameter
1879 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1882 * f-valprint.c (info_common_command): New variable frame_id.
1883 Reinitialize FI form FRAME_ID after each print_variable_and_value.
1884 * printcmd.c (print_variable_and_value): Extend function comment.
1885 Add comment for invalidated FRAME.
1886 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
1887 FI form FRAME_ID after each print_frame_local_vars.
1888 (struct print_variable_and_value_data): Change frame to frame_id.
1889 (do_print_variable_and_value): New variable frame, initialize it from
1890 p->frame_id. Add comment for invalidated FRAME.
1891 (print_frame_local_vars, print_frame_arg_vars): New function comment.
1892 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
1893 for invalidated FRAME.
1895 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
1896 Pedro Alves <palves@redhat.com>
1898 * linux-nat.c (linux_nat_detach): Don't unregister from the event
1901 2012-07-16 Tom Tromey <tromey@redhat.com>
1903 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
1905 2012-07-15 Doug Evans <dje@google.com>
1907 * dwarf2read.c (stmt_list_hash): New struct.
1908 (type_unit_group): Embed "per_cu" member, remove pointer.
1909 New union member "t", move member "tus" into it, all uses updated.
1910 New member "hash", replaces member "line_offset, all uses updated.
1911 (quick_file_names): Replace member "offset" with "hash", all uses
1913 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
1914 (hash_file_name_entry, eq_file_name_entry): Call them.
1915 (hash_type_unit_group, eq_type_unit_group): Ditto.
1916 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
1917 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
1918 (dw2_get_file_names): Update.
1919 (create_type_unit_group): Replace "per_cu" arg with "cu".
1920 All callers updated. Fix "quick" (.gdb_index) handling.
1921 (get_type_unit_group): Replace "per_cu" arg with "cu".
1922 All callers updated.
1923 (build_type_unit_groups): Don't reset tu_stats.
1925 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
1926 "tab_cur_size". Change member "tab" to be a htab_t.
1927 (create_filename_seen_cache): Update.
1928 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
1929 (filename_seen): Update.
1931 2012-07-13 Doug Evans <dje@google.com>
1933 * symtab.c (filename_seen): Update comment.
1935 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1936 Doug Evans <dje@google.com>
1938 * buildsym.c (end_symtab_1): Split it to ...
1939 (end_symtab_get_static_block): ... this ...
1940 (end_symtab_from_static_block): ... and this function.
1941 (end_symtab, end_expandable_symtab): Call them.
1942 * buildsym.h (end_symtab_get_static_block)
1943 (end_symtab_from_static_block): New declarations.
1944 * dwarf2read.c (process_full_comp_unit): New variable static_block.
1945 Set its valid CU ranges.
1947 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1949 * dwarf2loc.c (disassemble_dwarf_expression): Handle
1950 DW_OP_GNU_parameter_ref.
1952 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1954 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
1955 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
1957 2012-07-13 Doug Evans <dje@google.com>
1959 * symtab.c (output_source_filename): Delete unnecessary forward decl.
1960 (filename_seen_cache): New struct.
1961 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
1962 (create_filename_seen_cache): New function.
1963 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
1964 (filename_seen): Delete arg "first". New arg "cache". All callers
1966 (output_source_filename_data): New struct.
1967 (output_source_filename): Delete arg "first". New arg "data".
1968 All callers updated.
1969 (sources_info): Delete local "first". New locals "data", "cleanups".
1970 Rewrite to use filename_seen_cache.
1971 (add_partial_filename_data): Delete member "first". New member
1972 "filename_seen_cache". All uses updated.
1973 (make_source_files_completion_list): Rewrite to use
1974 filename_seen_cache.
1976 2012-07-12 Doug Evans <dje@google.com>
1978 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
1980 2012-07-10 Doug Evans <dje@google.com>
1983 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
1984 all_type_unit_groups, type_unit_groups, tu_stats.
1985 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
1986 All uses updated. Add type_unit_group to union "s".
1987 (type_unit_group): New struct.
1988 (IS_TYPE_UNIT_GROUP): New macro.
1989 (abbrev_table): Delete unused member "section".
1990 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
1991 (dw2_get_cu): Assert not used with type_unit_group.
1992 (dw2_get_primary_cu): New function.
1993 (dw2_build_type_unit_groups_reader): New function.
1994 (dw2_build_type_unit_groups): New function.
1995 (dw2_get_file_names): Assert not called on type units.
1996 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
1997 Redo loop to iterate over type unit groups instead of type units.
1998 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
1999 (read_abbrev_offset): New function.
2000 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2002 (create_partial_symtab): New function.
2003 (process_psymtab_comp_unit_reader): Assert not used with type units.
2004 Call create_partial_symtab.
2005 (process_psymtab_type_unit): Delete.
2006 (hash_type_unit_group, eq_type_unit_group): New functions.
2007 (allocate_type_unit_groups_table): New function.
2008 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2009 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2010 (create_type_unit_group, get_type_unit_group): New functions.
2011 (tu_abbrev_offset): New struct.
2012 (sort_tu_by_abbrev_offset): New function.
2013 (add_type_unit_group_to_table): New function.
2014 (build_type_unit_groups): New function.
2015 (build_type_psymtabs_reader): New function.
2016 (build_type_psymtab_dependencies): New function.
2017 (build_type_psymtabs): Rewrite.
2018 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2019 is seen in a type unit.
2020 (process_queue): Move symtab expansion debugging printfs here.
2021 Call process_full_type_unit for type units.
2022 (compute_symtab_includes): Assert not called for type units.
2023 (process_cu_includes): Don't call compute_symtab_includes for
2025 (process_full_type_unit): New function.
2026 (process_imported_unit_die): Flag an error if called for type units.
2027 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2028 updated. Assert not called for type units.
2029 (read_file_scope): Call dwarf2_start_symtab.
2030 (setup_type_unit_groups): New function.
2031 (read_type_unit_scope): Rewrite.
2032 (abbrev_table_read_table): Initialize abbrev_table->offset.
2033 (abbrev_table_free_cleanup): New function.
2034 (dwarf2_start_symtab): New function.
2035 (load_full_type_unit): Assert not called for type unit groups.
2036 * buildsym.c (finish_block_internal): New arg "expandable".
2037 All callers updated.
2038 (start_symtab): Move most contents to ...
2039 (restart_symtab): ... here. New function.
2040 (reset_symtab_globals): New function.
2041 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2042 Call reset_symtab_globals.
2043 (end_symtab, end_expandable_symtab): New functions.
2044 (set_missing_symtab, augment_type_symtab): New functions.
2045 * buildsym.h (end_expandable_symtab): Declare.
2046 (augment_type_symtab, restart_symtab): Declare.
2047 * psympriv.h (struct partial_symtab): New member "anonymous".
2048 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2050 (read_psymtabs_with_filename): Ditto.
2051 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2052 (expand_symtabs_matching_via_partial): Ditto.
2053 (dump_psymtab): Update.
2054 * dictionary.c (dict_add_pending): New function.
2055 * dictionary.h (dict_add_pending): Declare.
2057 2012-07-09 Doug Evans <dje@google.com>
2059 * buildsym.c (start_subfile): Remove unnecessary check for
2062 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2064 * dwarf2read.c (load_full_type_unit): Simplify.
2066 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2067 to struct signatured_type **. All uses updated.
2069 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2070 All callers updated.
2072 2012-07-09 Tom Tromey <tromey@redhat.com>
2074 * c-exp.y (check_parameter_typelist): New function.
2075 (parameter_typelist): Call it.
2076 * eval.c (make_params): Handle '(void)' case.
2077 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2080 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2082 * common/linux-ptrace.c: Include gdb_assert.h.
2083 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2084 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2086 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2088 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2089 * linux-nat.c (linux_child_post_attach)
2090 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2092 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2094 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2095 nptl <2.7 bug workaround for core files.
2097 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2099 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2101 (save_siginfo): Remove.
2102 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2104 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2105 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2106 * linux-nat.h (struct lwp_info): Remove field siginfo.
2108 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2110 Code cleanup for the next patch.
2111 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2112 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2114 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2115 (ia64_linux_stopped_data_address):
2116 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2118 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2119 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2120 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2123 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2126 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2127 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2129 2012-07-06 Tom Tromey <tromey@redhat.com>
2131 * c-exp.y (DOTDOTDOT): New token.
2132 (func_mod, exp): Use parameter_typelist.
2133 (parameter_typelist): New production.
2134 (tokentab3): Add "..." token.
2135 * eval.c (make_params): Handle varargs.
2136 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2139 2012-07-06 Tom Tromey <tromey@redhat.com>
2142 * c-exp.y (%union) <tvec>: Change type.
2143 (func_mod): Now uses <tvec> type.
2144 (exp): Update for tvec change.
2145 (direct_abs_decl): Push the typelist.
2146 (func_mod): Return a typelist.
2147 (nonempty_typelist): Update for tvec change.
2148 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2149 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2150 * parse.c (pop_type_list): New function.
2151 (push_typelist): New function.
2152 (follow_types): Handle tp_function_with_arguments.
2153 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2154 (enum type_pieces) <tp_function_with_arguments>: New constant.
2155 (union type_stack_elt) <typelist_val>: New field.
2156 (push_typelist): Declare.
2158 2012-07-06 Tom Tromey <tromey@redhat.com>
2160 * c-exp.y (%union) <type_stack>: New field.
2161 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2162 (ptr_operator_ts): New production.
2164 * parse.c (type_stack_reserve): New function.
2165 (check_type_stack_depth): Use it.
2166 (pop_type_stack, append_type_stack, push_type_stack)
2167 (get_type_stack, type_stack_cleanup): New functions.
2168 (follow_types): Handle tp_type_stack.
2169 (_initialize_parse): Simplify initialization.
2170 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2172 (union type_stack_elt) <stack_val>: New field.
2173 (get_type_stack, append_type_stack, push_type_stack)
2174 (type_stack_cleanup): Declare.
2176 2012-07-06 Tom Tromey <tromey@redhat.com>
2178 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2180 (struct type_stack): New.
2181 * parse.c (type_stack, type_stack_size, type_stack_depth):
2183 (type_stack): New global.
2184 (parse_exp_in_context, check_type_stack_depth)
2185 (insert_into_type_stack, insert_type, push_type, push_type_int)
2186 (insert_type_address_space, pop_type, pop_type_int)
2187 (_initialize_parse): Update.
2189 2012-07-06 Tom Tromey <tromey@redhat.com>
2191 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2194 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2196 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2198 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2199 Jan Kratochvil <jan.kratochvil@redhat.com>
2201 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2202 alloca with xmalloc/xfree.
2204 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2206 * MAINTAINERS (Write After Approval): Add myself to the list.
2208 2012-07-05 Doug Evans <dje@google.com>
2210 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2212 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2214 * ax-gdb.c (cli/cli-utils.h): New include.
2215 (linespec.h): Ditto.
2216 (agent_eval_command_one): New function.
2217 (agent_command_1): Ditto.
2218 (agent_command): Call function agent_command_1.
2219 (agent_eval_command): Ditto.
2220 (_initialize_ax_gdb): Change help for "maint agent"
2221 and "maint agent-eval".
2223 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2225 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2226 * cli/cli-utils.c (check_for_argument): New function.
2227 * cli/cli-utils.h (check_for_argument): Ditto.
2229 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2231 * NEWS: Mention x32 ABI support.
2233 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2235 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2236 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2238 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2239 and pc_regnum_from_eax to -1. Update SP regnum from
2240 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2243 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2246 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2248 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2249 * dwarf2expr.h: Include gdbtypes.h.
2250 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2251 these forward declarations.
2252 (cu_offset, sect_offset): Move these ...
2253 * gdbtypes.h: Remove include dwarf2expr.h.
2254 (cu_offset, sect_offset): ... here.
2256 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2258 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2259 (amd64_linux_sigtramp_code): This.
2260 (amd64_x32_linux_sigtramp_code): New.
2261 (LINUX_SIGTRAMP_LEN): Updated.
2262 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2264 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2266 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2268 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2270 * config.in: Regenerate.
2271 * configure: Regenerate.
2272 * configure.ac: Remove check for gnu/libc-version.h.
2273 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2275 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2276 variables libc_version, libc_major and libc_minor. Replace sscanf by
2277 inferior_has_bug. Extend the comment.
2279 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2281 * linux-thread-db.c (inferior_has_bug): New function.
2282 (thread_db_find_new_threads_silently): Return boolean as checked by
2283 inferior_has_bug, describe it in the comments.
2284 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2285 earlier. Abort the initialization if it returned non-zero.
2286 (thread_db_new_objfile): Exclude debug files.
2287 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2290 2012-07-02 Doug Evans <dje@google.com>
2292 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2293 related to queue management.
2295 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2296 instead of "debug dwarf2-die" in debugging printfs.
2297 (create_debug_info_hash_table_reader): Ditto.
2298 (create_debug_info_hash_table): Ditto.
2299 (init_dwo_file): Ditto.
2300 (init_cutu_and_read_dies): Add debugging printf.
2301 (init_cutu_and_read_dies_no_follow): Ditto.
2302 (process_psymtab_comp_unit_reader): Ditto.
2304 2012-07-02 Stan Shebs <stan@codesourcery.com>
2306 Add target-side support for dynamic printf.
2307 * NEWS: Mention the additional style.
2308 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2309 (struct bp_location): New field cmd_bytecode.
2310 * breakpoint.c: Include format.h.
2311 (disconnected_dprintf): New global.
2312 (parse_cmd_to_aexpr): New function.
2313 (build_target_command_list): New function.
2314 (insert_bp_location): Call it.
2315 (remove_breakpoints_pid): Skip dprintf breakpoints.
2316 (print_one_breakpoint_location): Ditto.
2317 (dprintf_style_agent): New global.
2318 (dprintf_style_enums): Add dprintf_style_agent.
2319 (update_dprintf_command_list): Add agent case.
2320 (agent_printf_command): New function.
2321 (_initialize_breakpoint): Add new commands.
2322 * common/ax.def (printf): New bytecode.
2323 * ax.h (ax_string): Declare.
2324 * ax-gdb.h (gen_printf): Declare.
2325 * ax-gdb.c: Include cli-utils.h, format.h.
2326 (gen_printf): New function.
2327 (maint_agent_print_command): New function.
2328 (_initialize_ax_gdb): Add maint agent-printf command.
2329 * ax-general.c (ax_string): New function.
2330 (ax_print): Add printf disassembly.
2331 * Makefile.in (SFILES): Add format.c
2332 (COMMON_OBS): Add format.o.
2333 * common/format.h: New file.
2334 * common/format.c: New file.
2335 * printcmd.c: Include format.h.
2336 (ui_printf): Call parse_format_string.
2337 * remote.c (remote_state): New field breakpoint_commands.
2338 (PACKET_BreakpointCommands): New enum.
2339 (remote_breakpoint_commands_feature): New function.
2340 (remote_protocol_features): Add new BreakpointCommands entry.
2341 (remote_can_run_breakpoint_commands): New function.
2342 (remote_add_target_side_commands): New function.
2343 (remote_insert_breakpoint): Call it.
2344 (remote_insert_hw_breakpoint): Ditto.
2345 (_initialize_remote): Add new packet configuration for
2346 target-side breakpoint commands.
2347 * target.h (struct target_ops): New field
2348 to_can_run_breakpoint_commands.
2349 (target_can_run_breakpoint_commands): New macro.
2350 * target.c (update_current_target): Handle
2351 to_can_run_breakpoint_commands.
2353 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2355 Execute -ix and -iex only after system and user gdbinit files.
2356 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2357 processing down after gdbinit files.
2359 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2361 Add fnmatch-gnu module.
2362 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2363 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2364 * gnulib/aclocal.m4: Regenerate.
2365 * gnulib/config.in: Regenerate.
2366 * gnulib/configure: Regenerate.
2367 * gnulib/import/dummy.c: Remove.
2368 * gnulib/import/Makefile.am: Regenerate.
2369 * gnulib/import/Makefile.in: Likewise.
2370 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2371 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2372 * gnulib/import/alloca.c: New file.
2373 * gnulib/import/alloca.in.h: Likewise.
2374 * gnulib/import/config.charset: Likewise.
2375 * gnulib/import/fnmatch.c: Likewise.
2376 * gnulib/import/fnmatch.in.h: Likewise.
2377 * gnulib/import/fnmatch_loop.c: Likewise.
2378 * gnulib/import/localcharset.c: Likewise.
2379 * gnulib/import/localcharset.h: Likewise.
2380 * gnulib/import/m4/alloca.m4: Likewise.
2381 * gnulib/import/m4/codeset.m4: Likewise.
2382 * gnulib/import/m4/configmake.m4: Likewise.
2383 * gnulib/import/m4/fcntl-o.m4: Likewise.
2384 * gnulib/import/m4/fnmatch.m4: Likewise.
2385 * gnulib/import/m4/glibc21.m4: Likewise.
2386 * gnulib/import/m4/localcharset.m4: Likewise.
2387 * gnulib/import/m4/locale-fr.m4: Likewise.
2388 * gnulib/import/m4/locale-ja.m4: Likewise.
2389 * gnulib/import/m4/locale-zh.m4: Likewise.
2390 * gnulib/import/m4/mbrtowc.m4: Likewise.
2391 * gnulib/import/m4/mbsinit.m4: Likewise.
2392 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2393 * gnulib/import/m4/mbstate_t.m4: Likewise.
2394 * gnulib/import/m4/stdbool.m4: Likewise.
2395 * gnulib/import/m4/wchar_h.m4: Likewise.
2396 * gnulib/import/m4/wctype_h.m4: Likewise.
2397 * gnulib/import/m4/wint_t.m4: Likewise.
2398 * gnulib/import/mbrtowc.c: Likewise.
2399 * gnulib/import/mbsinit.c: Likewise.
2400 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2401 * gnulib/import/mbsrtowcs-state.c: Likewise.
2402 * gnulib/import/mbsrtowcs.c: Likewise.
2403 * gnulib/import/ref-add.sin: Likewise.
2404 * gnulib/import/ref-del.sin: Likewise.
2405 * gnulib/import/stdbool.in.h: Likewise.
2406 * gnulib/import/streq.h: Likewise.
2407 * gnulib/import/strnlen1.c: Likewise.
2408 * gnulib/import/strnlen1.h: Likewise.
2409 * gnulib/import/verify.h: Likewise.
2410 * gnulib/import/wchar.in.h: Likewise.
2411 * gnulib/import/wctype.in.h: Likewise.
2413 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2415 Support shell wildcards for 'set auto-load safe-path'.
2416 * auto-load.c: Include fnmatch.h.
2417 (filename_is_in_dir): Rename to ...
2418 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2419 it. Update function comment. Rename dir_len to pattern_len. New
2420 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2421 messages. Use gdb_filename_fnmatch.
2422 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2424 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2425 * defs.h (gdb_filename_fnmatch): New declaration.
2426 * utils.c: Include fnmatch.h.
2427 (gdb_filename_fnmatch): New function.
2429 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2431 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2432 `-probe' and `-probe-stap' options.
2434 2012-07-01 Yao Qi <yao@codesourcery.com>
2436 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2437 always_inserted_off, and always_inserted_enums.
2438 Change always_inserted_mode's type to 'enum auto_boolean'.
2439 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2441 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2442 of add_setshow_enum_cmd.
2443 * infrun.c: Remove can_use_displaced_stepping_auto,
2444 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2445 can_use_displaced_stepping_enum.
2446 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2447 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2448 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2449 add_setshow_enum_cmd.
2451 2012-06-30 Doug Evans <dje@google.com>
2453 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2454 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2455 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2457 2012-06-29 Doug Evans <dje@google.com>
2459 * linespec.c: #include "stack.h".
2460 (decode_line_with_current_source): Moved here from symtab.c and
2461 renamed from decode_line_spec. All callers updated.
2462 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2463 renamed from decode_line_spec_1. All callers updated.
2464 * linespec.h (decode_line_with_current_source): Move declaration here
2465 from symtab.h and renamed from decode_line_spec.
2466 (decode_line_with_last_displayed): Move declaration here from symtab.h
2467 and renamed from decode_line_spec_1.
2468 * macrocmd.c: #include "linespec.h".
2469 * symtab.c: Remove #include "linespec.h".
2471 2012-06-28 Doug Evans <dje@google.com>
2473 * dwarf2read.c (get_cu_length): New function.
2474 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2475 (create_debug_types_hash_table): Ditto.
2476 (init_cutu_and_read_dies): Ditto.
2477 (init_cutu_and_read_dies_no_follow): Ditto.
2479 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2481 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2482 (struct abbrev_table): Define.
2483 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2485 (init_cutu_and_read_dies): Update.
2486 (abbrev_table_alloc_abbrev): New function. Replaces
2487 dwarf_alloc_abbrev. All callers updated.
2488 (abbrev_table_add_abbrev): New function.
2489 (abbrev_table_lookup_abbrev): New function. Replaces
2490 dwarf2_lookup_abbrev. All callers updated.
2491 (abbrev_table_read_table): New function. Contents moved here from
2492 dwarf2_read_abbrevs.
2493 (dwarf2_read_abbrevs): Call it.
2494 (abbrev_table_free): New function.
2495 (dwarf2_free_abbrev_table): Call it.
2497 2012-06-28 Stan Shebs <stan@codesourcery.com>
2499 * osdata.c (info_osdata_command): Filter out "Title" columns
2501 * common/linux-osdata.c (struct osdata_type): Add title field.
2502 (osdata_table): Add titles to each entry.
2503 (linux_command_xfer_osdata): Add a column for title data.
2505 2012-06-28 Stan Shebs <stan@codesourcery.com>
2507 Make logging work for MI.
2509 * interps.h (interp_set_logging_ftype): New typedef.
2510 (struct interp_procs): New field set_logging_proc.
2511 (current_interp_set_logging): Declare.
2512 * interps.c (current_interp_set_logging): New function.
2513 * cli/cli-logging.c: Include interps.h.
2514 (set_logging_redirect): Call current_interp_set_logging.
2515 (pop_output_files): Ditto.
2516 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2517 * mi/mi-console.h (mi_console_set_raw): Declare.
2518 * mi/mi-console.c (mi_console_set_raw): New function.
2519 * mi/mi-interp.c (saved_raw_stdout): New global.
2520 (mi_set_logging): New function.
2521 (_initialize_mi_interp): Add it to interp procs.
2523 2012-06-28 Doug Evans <dje@google.com>
2525 * symtab.c (lookup_symbol_aux_objfile): Use
2526 ALL_OBJFILE_PRIMARY_SYMTABS.
2528 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2530 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2532 * common/buffer.c: Include inttypes.h and stdint.h.
2533 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2535 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2536 Pedro Alves <palves@redhat.com>
2538 * gdbthread.h (ALL_THREADS): New macro.
2539 (thread_list): Declare.
2540 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2541 going, but instead fall through to the stepping handling.
2542 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2543 the passed in signal. Adjust debug output.
2544 (resume_callback): Rename to ...
2545 (linux_nat_resume_callback): ... this. Pass the thread's last
2546 stop signal, if in "pass" state.
2547 (linux_nat_resume): Adjust to rename.
2548 (stop_wait_callback): New assertion. Don't respawn signals;
2549 instead let the LWP remain with SIGNALLED set.
2550 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2551 * remote.c (append_pending_thread_resumptions): New.
2552 (remote_vcont_resume): Call it.
2553 * target.h (target_resume): Extend comment.
2555 2012-06-28 Iain Sandoe <iain@codesourcery.com>
2557 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2559 2012-06-27 Doug Evans <dje@google.com>
2561 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2562 Delete have_addr_base, unused. All uses updated.
2563 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2564 (dwarf2_get_pc_bounds): Add ranges_base.
2565 (dwarf2_record_block_ranges): Ditto.
2567 2012-06-27 Tom Tromey <tromey@redhat.com>
2570 * varobj.c (varobj_create): Update.
2571 (varobj_set_value): Update.
2572 * tracepoint.c (validate_actionline): Update.
2573 (encode_actions_1): Update.
2574 * parse.c (parse_exp_1): Add 'pc' argument.
2575 (parse_exp_in_context): Add 'pc' argument. Change how
2576 expression_context_pc is set.
2577 (parse_expression): Update.
2578 (parse_field_expression): Update.
2579 * expression.h (parse_exp_1): Update.
2580 * eval.c (parse_to_comma_and_eval): Update.
2581 * breakpoint.c (set_breakpoint_condition): Update.
2582 (update_watchpoint): Update.
2583 (init_breakpoint_sal): Update
2584 (find_condition_and_thread): Update.
2585 (watch_command_1): Update.
2586 (update_breakpoint_locations): Update.
2587 * ada-lang.c (ada_read_renaming_var_value): Update.
2588 (create_excep_cond_exprs): Update.
2590 2012-06-27 Doug Evans <dje@google.com>
2592 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2595 2012-06-26 Doug Evans <dje@google.com>
2597 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2599 (error_check_comp_unit_head): New arg abbrev_section. All callers
2601 (read_and_check_comp_unit_head): Ditto.
2602 (read_and_check_type_unit_head): Ditto.
2604 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2606 New attribute 'last' for gdb.Symtab_and_line.
2607 * NEWS (Python Scripting): Add entry about the new attribute.
2608 * python/py-symtab.c (salpy_get_last): New function which
2609 implements the get method for the 'last' attribute of
2610 gdb.Symtab_and_line.
2611 (sal_object_getset): Add entry for the 'last' attribute.
2613 2012-06-26 Doug Evans <dje@google.com>
2615 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
2616 (dwo_sections): Add macinfo, macro.
2617 (dwarf2_locate_dwo_sections): Watch for macro sections.
2618 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
2619 All callers updated. Handle DWO files.
2621 * NEWS: Mention new options "set debug dwarf2-read" and
2622 "set debug symtab-create".
2623 * dwarf2read.c (dwarf2_read_debug): New static global.
2624 (dwarf2_build_psymtabs_hard): Add debugging printfs.
2625 (process_queue): Ditto.
2626 (process_full_comp_unit): Ditto.
2627 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
2628 * elfread.c (elf_symfile_read): Add debugging printf.
2629 * minsyms.c (install_minimal_symbols): Ditto.
2630 * psymtab.c (allocate_psymtab): Ditto.
2631 * symfile.c (allocate_symtab): Ditto.
2632 * symtab.c (symtab_create_debug): New global.
2633 (_initialize_symtab): Add new option "set debug symtab-create".
2634 * symtab.h (symtab_create_debug): Declare.
2636 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
2637 (lookup_dwo_type_unit): Ditto.
2639 2012-06-26 Roland McGrath <roland@hack.frob.com>
2640 H.J. Lu <hongjiu.lu@intel.com>
2642 * amd64-linux-nat.c: Include <sys/user.h>.
2643 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
2644 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
2645 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
2647 * configure.ac: Check if the fs_base and gs_base members of
2648 `struct user_regs_struct' exist.
2649 * config.in: Regenerated.
2650 * configure: Likewise.
2652 2012-06-25 Michael Eager <eager@eagercon.com>
2655 * python/python.c (gdbpy_write): Check for interrupted output.
2657 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
2659 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
2660 register as a stack alignment in ARM mode.
2662 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2664 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
2665 * gnulib/config.in: Regenerate.
2666 * gnulib/configure: Likewise.
2667 * gnulib/import/m4/extensions.m4: Update it.
2668 * gnulib/import/m4/gnulib-common.m4: Likewise.
2669 * gnulib/import/m4/memmem.m4: Likewise.
2670 * gnulib/import/m4/mmap-anon.m4: Likewise.
2671 * gnulib/import/m4/multiarch.m4: Likewise.
2672 * gnulib/import/stdint.in.h: Likewise.
2674 2012-06-24 Yao Qi <yao@codesourcery.com>
2676 * corefile.c (write_memory_with_notification): New.
2677 * gdbcore.h: Declare write_memory_with_notification.
2678 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
2679 'observer_notify_memory_changed' with 'write_memory_with_notification'.
2680 * valops.c (value_assign): Likewise.
2681 * python/py-inferior.c (infpy_write_memory): Call
2682 'write_memory_with_notification'.
2684 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2686 * cc-with-index.sh: Use also -ex "set auto-load no".
2688 2012-06-23 Doug Evans <dje@google.com>
2691 * NEWS: Document additions to .gdb_index.
2692 * dwarf2read.c: #include "gdb/gdb-index.h".
2693 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
2694 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
2695 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
2696 (dwarf2_read_index): Recognize version 7.
2697 (dw2_do_expand_symtabs_matching): New args want_specific_block,
2698 block_kind, domain): All callers updated.
2699 (dw2_find_symbol_file): Handle new index CU values.
2700 (dw2_expand_symtabs_matching): Match symbol kind if requested.
2701 (add_index_entry): New args is_static, kind. All callers updated.
2702 (offset_type_compare, uniquify_cu_indices): New functions
2703 (symbol_kind): New function.
2704 (write_psymtabs_to_index): Remove duplicate CU values.
2705 (write_psymtabs_to_index): Write .gdb_index version 7.
2707 2012-06-22 Joel Brobecker <brobecker@adacore.com>
2709 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
2710 * configure: Regenerate.
2712 2012-06-20 Yao Qi <yao@codesourcery.com>
2714 * python/py-inferior.c: Update comments of infpy_read_memory
2715 and infpy_write_memory.
2717 2012-06-19 Tom Tromey <tromey@redhat.com>
2720 * parser-defs.h (insert_type, insert_type_address_space): Declare.
2721 (push_type_address_space): Remove.
2722 * parse.c (insert_into_type_stack): New function.
2723 (insert_type): Likewise.
2724 (insert_type_address_space): Rename from push_type_address_space.
2725 Insert tp_space_identifier.
2726 * c-exp.y (ptr_operator): New production.
2727 (abs_decl): Use ptr_operator.
2728 (space_identifier): Call insert_type_address_space.
2729 (ptype): Don't use const_or_volatile_or_space_identifier.
2730 (const_or_volatile_noopt): Call insert_type.
2731 (conversion_type_id, conversion_declarator): New productions.
2732 (operator): Use conversion_type_id.
2734 2012-06-18 Doug Evans <dje@google.com>
2736 * symtab.h (minimal_symbol): New member created_by_gdb.
2737 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
2739 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
2740 (search_symbols): Call it instead of lookup_symbol.
2741 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
2743 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
2744 Adjust address for DW_OP_GNU_addr_index.
2745 * dwarf2expr.h (dwarf_expr_context): Update comment.
2746 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
2747 all callers updated. Handle TLS vars described with
2748 DW_OP_GNU_const_index.
2749 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
2750 and DW_OP_GNU_const_index.
2751 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
2753 * block.c (find_block_in_blockvector): Make explicit the fact that we
2754 ignore GLOBAL_BLOCK.
2756 2012-06-18 Tom Tromey <tromey@redhat.com>
2758 * c-exp.y (operator): Remove trailing space after "delete" and
2761 2012-06-18 Mark Kettenis <kettenis@gnu.org>
2762 Jan Kratochvil <jan.kratochvil@redhat.com>
2764 Switch i386 and derived targets to ON_STACK.
2765 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
2766 (amd64_dicos_init_abi): Remove its installment.
2767 * dicos-tdep.c (dicos_init_abi): Remove the
2768 set_gdbarch_call_dummy_location call. Update the comment here.
2769 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
2770 (i386_dicos_init_abi): Remove its installment.
2771 * i386-tdep.c (i386_push_dummy_code): New function.
2772 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
2773 i386_push_dummy_code.
2775 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2777 Remove stale dummy frames.
2778 * breakpoint.c: Include dummy-frame.h.
2779 (longjmp_breakpoint_ops): New variable.
2780 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
2781 bp_longjmp_call_dummy.
2782 (bpstat_what, bptype_string, print_one_breakpoint_location)
2783 (init_bp_location): Support bp_longjmp_call_dummy.
2784 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
2785 (set_longjmp_breakpoint_for_call_dummy)
2786 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
2788 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
2789 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
2790 FIXME comment and extend the other comment for bp_call_dummy.
2791 (set_longjmp_breakpoint_for_call_dummy)
2792 (check_longjmp_breakpoint_for_call_dummy): New declarations.
2793 * dummy-frame.c: Include gdbthread.h.
2794 (pop_dummy_frame_bpt): New function.
2795 (pop_dummy_frame): Call pop_dummy_frame_bpt.
2796 (dummy_frame_discard): New function.
2797 (cleanup_dummy_frames): Update the comment about longjmps.
2798 * dummy-frame.h (dummy_frame_discard): New declaration.
2799 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
2800 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
2801 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
2802 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
2803 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
2804 keep_going if IS_LONGJMP and there is no other reason to stop.
2806 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
2808 * remote-sim.c (sim_command_completer): Initialize
2811 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2813 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
2814 * dwarf2loc.c (call_site_parameter_matches): Support
2815 CALL_SITE_PARAMETER_PARAM_OFFSET.
2816 (needs_dwarf_reg_entry_value): Push stub value.
2817 * dwarf2read.c (read_call_site_scope): New variable origin. Support
2818 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
2819 * gdbtypes.h (enum call_site_parameter_kind): New item
2820 CALL_SITE_PARAMETER_PARAM_OFFSET.
2821 (struct call_site.parameter.u): New field param_offset.
2823 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2825 Code cleanup: Generalize call_site.parameter key.
2826 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
2827 variable dwarf_reg. New variable kind_u. Update parameters to
2828 push_dwarf_reg_entry_value.
2829 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2830 * dwarf2expr.h (enum call_site_parameter_kind)
2831 (union call_site_parameter_u): Forward declarations.
2832 (struct dwarf_expr_context_funcs): Update parameters and their
2833 description for push_dwarf_reg_entry_value.
2834 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2835 * dwarf2loc.c (call_site_parameter_matches): New function.
2836 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
2837 description. Use call_site_parameter_matches.
2838 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
2839 Update parameters and their description.
2840 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
2841 New variable kind_u. Adjust the caller for updated parameters.
2842 (needs_dwarf_reg_entry_value): Update parameters.
2843 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
2844 instead of attr. Update for the changed fields of struct
2845 call_site_parameter.
2846 * gdbtypes.h: Include dwarf2expr.h.
2847 (enum call_site_parameter_kind): New.
2848 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
2849 fb_offset into new union u.
2851 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2853 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
2854 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
2857 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2859 * amd64-linux-nat.c (compat_x32_clock_t): New.
2860 (compat_x32_siginfo_t): Likewise.
2861 (compat_x32_siginfo_from_siginfo): Likewise.
2862 (siginfo_from_compat_x32_siginfo): Likewise.
2863 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
2864 and siginfo_from_compat_x32_siginfo for x32.
2866 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
2868 * tracepoint.c (tfile_xfer_partial): Add a lseek.
2870 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2872 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
2873 instead of gdbarch_ptr_bit.
2874 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
2875 (amd64_supply_native_gregset): Likewise.
2876 (amd64_collect_native_gregset): Likewise.
2877 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
2878 (amd64_supply_xsave): Likewise.
2879 (amd64_collect_fxsave): Likewise.
2880 (amd64_collect_xsave): Likewise.
2882 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2884 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
2885 (amd64_linux_read_description): Check DS segment register for
2888 2012-06-15 Tom Tromey <tromey@redhat.com>
2890 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
2891 init_cutu_and_read_dies.
2893 2012-06-15 Iain Sandoe <iain@codesourcery.com>
2895 * MAINTAINERS (Write After Approval): Add myself to the list.
2897 2012-06-15 Tom Tromey <tromey@redhat.com>
2899 * valops.c (value_find_oload_method_list): Now static.
2900 * value.h (value_find_oload_method_list): Don't declare.
2902 2012-06-15 Tom Tromey <tromey@redhat.com>
2904 * valops.c (find_overload_match): Use value_ind.
2906 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
2908 * infrun.c (handle_inferior_event): Correct indentation.
2910 2012-06-14 Doug Evans <dje@google.com>
2912 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
2913 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
2915 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
2916 updated. Handle DEBUG_LOC_START_LENGTH.
2917 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
2918 (loclist_describe_location): Ditto.
2920 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
2923 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
2924 after hiding inline functions.
2926 2012-06-13 Joel Brobecker <brobecker@adacore.com>
2928 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
2929 _initialize_inf_ttrace.
2931 2012-06-13 Joel Brobecker <brobecker@adacore.com>
2933 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
2934 _initialize_hppa_hpux_nat.
2936 2012-06-13 Joel Brobecker <brobecker@adacore.com>
2938 * remote-sim.c (sim_command_completer): Change type of return
2939 value to "VEC (char_ptr) *". Adjust implementation accordingly.
2941 2012-06-13 Mark Kettenis <kettenis@gnu.org>
2942 Jan Kratochvil <jan.kratochvil@redhat.com>
2945 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
2946 stack on a 16-byte boundary.
2948 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
2950 * jit.c (finalize_symtab): Set function's return type to 'void' by
2953 2012-06-13 Mark Kettenis <kettenis@gnu.org>
2954 H.J. Lu <hongjiu.lu@intel.com>
2956 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
2957 Move bits common to both the classic LP64 and the new x32 ILP32
2959 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
2960 (amd64_x32_linux_init_abi): New function.
2961 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
2964 * i386-tdep.h (i386_pseudo_register_name): New prototype.
2965 * i386-tdep.c (i386_pseudo_register_name): Make public.
2966 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
2967 * amd64-tdep.c (amd64_dword_names): Add "eip".
2968 (amd64_x32_pseudo_register_type): New function
2969 (amd64_x32_init_abi): New function.
2971 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2974 * inferior.h (struct inferior_suspend_state): Comment out.
2975 (struct inferior): Comment out the field suspend.
2976 * infrun.c (struct infcall_suspend_state): Comment out the field
2978 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
2981 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2983 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
2984 * c-exp.y (classify_inner_name): Remove caller assumptions in the
2985 function comment. Return ERROR for unresolved cases. Implement
2986 returning proper NAME.
2987 (yylex): Accept also NAME from classify_inner_name.
2988 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
2989 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
2991 * cp-support.h (cp_lookup_nested_type): Update its declaration.
2993 2012-06-13 Tom Tromey <tromey@redhat.com>
2995 * breakpoint.c (condition_completer): New function.
2996 (_initialize_breakpoint): Use it.
2997 * value.c (complete_internalvar): New function.
2998 * value.h (complete_internalvar): Declare.
3000 2012-06-13 Tom Tromey <tromey@redhat.com>
3002 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3003 * breakpoint.c (catch_syscall_completer): Return a VEC.
3004 * cli/cli-cmds.c (complete_command): Update.
3005 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3006 (complete_on_enum): Likewise.
3007 * command.h: Include gdb_vecs.h.
3008 (completer_ftype): Change return type.
3009 (complete_on_cmdlist, complete_on_enum): Likewise.
3010 * completer.c (noop_completer, filename_completer)
3011 (location_completer): Return a VEC.
3012 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3014 (expression_completer, complete_line_internal, complete_line)
3015 (command_completer): Return a VEC.
3016 (gdb_completion_word_break_characters, line_completion_function):
3018 * completer.h: Include gdb_vecs.h.
3019 (complete_line, noop_completer, filename_completer)
3020 (expression_completer, location_completer, command_completer):
3022 * f-lang.c (f_word_break_characters): Return a VEC.
3023 * interps.c (interpreter_completer): Return a VEC.
3024 * language.h (struct language_defn)
3025 <la_make_symbol_completion_list>: Return a VEC.
3026 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3027 * symtab.c (free_completion_list): Take a VEC.
3028 (return_val_size, return_val_index): Remove.
3029 (return_val): Now a VEC.
3030 (completion_list_add_name): Update.
3031 (default_make_symbol_completion_list_break_on)
3032 (default_make_symbol_completion_list, make_symbol_completion_list)
3033 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3035 (add_filename_to_list): Update.
3036 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3038 (maybe_add_partial_symtab_filename): Update.
3039 (make_source_files_completion_list): Return a VEC.
3040 * symtab.h (default_make_symbol_completion_list_break_on)
3041 (default_make_symbol_completion_list, make_symbol_completion_list)
3042 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3043 (make_source_files_completion_list): Update.
3045 2012-06-13 Tom Tromey <tromey@redhat.com>
3047 * breakpoint.c (add_catch_command): Use completer_ftype.
3048 * breakpoint.h: Include command.h.
3049 (add_catch_command): Use completer_ftype.
3050 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3051 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3052 Use completer_ftype.
3053 * command.h (completer_ftype): New typedef.
3054 (set_cmd_completer): Use it.
3055 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3058 2012-06-13 Pedro Alves <palves@redhat.com>
3060 Partial revert of previous change.
3062 * serial.c (scb_base): New global.
3063 (serial_for_fd): New.
3064 (serial_open, serial_fdopen_ops): Link new serial in open serials
3066 (do_serial_close): Unlink serial from the open serials chain.
3068 2012-06-12 Pedro Alves <palves@redhat.com>
3070 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3072 (prepare_for_detach): No longer context switch here in non-stop
3074 (fetch_inferior_event): Ditto.
3075 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3076 to the event thread before removing breakpoints. Switch to the
3077 event thread before inserting breakpoints and resuming.
3078 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3079 event thread before resuming.
3080 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3081 Switch to the event thread before removing breakpoints.
3083 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3085 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3086 special characters correctly for the Windows shells. See
3087 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3089 [!__MINGW32__]: Remove extra double quote character from special
3092 2012-06-11 Stan Shebs <stan@codesourcery.com>
3094 * ui-out.h: Remove #if 0 declarations.
3095 * ui-out.c: Remove #if 0 functions.
3097 2012-06-11 Pedro Alves <palves@redhat.com>
3099 * ser-base.c (run_async_handler_and_reschedule): New.
3100 (fd_event, push_event): Use it.
3101 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3102 reference count to 1.
3103 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3105 (serial_is_open, serial_ref, serial_unref): New.
3106 * serial.h (serial_open): Adjust comment.
3107 (serial_is_open): Declare.
3108 (serial_close): Adjust comment.
3109 (serial_ref, serial_unref) Declare.
3110 (struct serial): New field 'refcnt'.
3112 2012-06-11 Pedro Alves <palves@redhat.com>
3114 Remove #if 0'd "connect" command, and unnecessary associated
3115 refcounting and serial reuse bits.
3117 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3118 * serial.c (last_serial_opened): Delete.
3120 (serial_open): Adjust.
3121 (serial_for_fd): Delete.
3122 (serial_fdopen_ops, do_serial_close): Adjust.
3123 (serial_fdopen_ops): Adjust.
3125 2012-06-11 Pedro Alves <palves@redhat.com>
3127 * serial.c (do_serial_close): Remove early return when SCB is
3130 2012-06-11 Tom Tromey <tromey@redhat.com>
3132 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3134 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3136 Fix regression by the "ambiguous linespec" series.
3137 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3138 get_last_displayed_symtab and get_last_displayed_line and depending
3141 2012-06-11 Tom Tromey <tromey@redhat.com>
3143 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3144 (dw2_find_symbol_file): Use it.
3146 2012-06-11 Michael Eager <eager@eagercon.com>
3148 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3149 * mips-linux-tdep.h (mips_signals): New
3151 2012-06-11 Tom Tromey <tromey@redhat.com>
3153 * infrun.c (handle_inferior_event)
3154 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3156 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3157 exception logic in all cases. Update comments.
3158 (insert_longjmp_resume_breakpoint): Set the exception resume
3161 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3163 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3165 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3167 * valarith.c (binop_types_user_defined_p): Fix a typo.
3169 2012-06-08 Yao Qi <yao@codesourcery.com>
3170 Chung-Lin Tang <cltang@codesourcery.com>
3172 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3173 * arch-utils.h: Declare.
3174 * gdbarch.sh: Add return_in_first_hidden_param_p.
3175 * gdbarch.c, gdbarch.h: Regenerated.
3176 * infcall.c (call_function_by_hand): Call
3177 gdbarch_return_in_first_hidden_param_p instead of
3178 language_pass_by_reference.
3180 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3181 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3182 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3183 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3184 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3185 `cplus_return_struct_by_reference'.
3186 (tic6x_return_value): Handle language cplusplus.
3187 (tic6x_return_in_first_hidden_param_p): New.
3188 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3190 2012-06-07 Doug Evans <dje@google.com>
3192 * dwarf2read.c (dwarf2_cu): Add comment.
3194 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3196 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3198 (mips_eabi_push_dummy_call): Likewise.
3199 (mips_n32n64_push_dummy_call): Likewise.
3200 (mips_o32_push_dummy_call): Likewise.
3201 (mips_o64_push_dummy_call): Likewise.
3203 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3205 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3207 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3209 * mips-tdep.c (mips_pseudo_register_type): Use
3210 mips_float_register_p.
3212 2012-06-06 Pedro Alves <palves@redhat.com>
3214 * infrun.c (handle_inferior_event): Remove calls to
3215 reinit_frame_cache that follow a context_switch call.
3217 2012-06-06 Pedro Alves <palves@redhat.com>
3219 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3220 context_switch and remove stale comment.
3222 2012-06-06 Pedro Alves <palves@redhat.com>
3224 * infrun.c (struct execution_control_state): Remove
3225 `new_thread_event' field.
3226 (handle_inferior_event): Simplify new threads handling; don't
3227 resume the inferior if we find a new thread.
3229 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3231 * NEWS: Document the deprecation of SH's 'regs' command.
3232 * inferior.h (all_registers_info): Add function declaration.
3233 * sh-tdep.c (sh_show_regs): Remove variable.
3234 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3235 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3236 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3237 (sh_show_regs_command): Remove functions.
3238 (sh_gdbarch_init): Don't set sh_show_regs.
3239 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3240 'info all-registers'.
3241 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3242 (sh64_show_regs): Remove functions.
3243 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3245 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3247 * configure.ac: Move development=true below AC_INIT.
3248 * configure: Regenerate.
3250 2012-06-05 Stan Shebs <stan@codesourcery.com>
3252 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3255 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3257 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3258 argument as ssize_t.
3259 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3260 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3261 * target.c (target_read_stack, target_write_memory)
3262 (target_write_raw_memory): Likewise.
3263 * target.h (target_read_stack, target_write_memory)
3264 (target_write_raw_memory): Likewise.
3266 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3268 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3269 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3270 * target.c (target_read_memory): Change LEN to ssize_t.
3271 * target.h (target_read_memory): Change LEN to ssize_t.
3273 2012-06-05 Pedro Alves <palves@redhat.com>
3277 * breakpoint.c (until_break_command): Only fetch the selected
3278 frame after decode_line_1.
3280 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3282 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3283 event breakpoint at _start, __start or main if a program
3284 interpreter is not found.
3286 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3288 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3290 * windows-tdep.c: #include "objfiles.h".
3291 (windows_iterate_over_objfiles_in_search_order): New function.
3292 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3293 iterate_over_objfiles_in_search_order gdbarch method to
3294 windows_iterate_over_objfiles_in_search_order.
3295 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3297 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3299 * gdbarch.sh: Add generation of
3300 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3301 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3302 (iterate_over_objfiles_in_search_order): New gdbarch method.
3303 * gdbarch.h, gdbarch.c: Regenerate.
3304 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3306 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3308 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3309 out of lookup_symbol_aux_symtabs.
3310 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3311 call to lookup_symbol_aux_objfile.
3312 (struct global_sym_lookup_data): New type.
3313 (lookup_symbol_global_iterator_cb): New function.
3314 (lookup_symbol_global): Search for symbol using
3315 gdbarch_iterate_over_objfiles_in_search_order and
3316 lookup_symbol_global_iterator_cb.
3317 * findvar.c (struct minsym_lookup_data): New type.
3318 (minsym_lookup_iterator_cb): New function.
3319 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3320 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3321 and minsym_lookup_iterator_cb.
3323 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3325 Revert the following patch:
3326 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3327 try locating the symbol in the symbol's own objfile first, before
3328 extending the search to all objfiles.
3329 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3330 out of lookup_symbol_aux_symtabs.
3331 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3332 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3333 Do not search EXCLUDE_OBJFILE.
3334 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3335 (lookup_symbol_global): Search for matches in the block's objfile
3336 first, before searching all other objfiles.
3338 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3340 * breakpoint.c (find_condition_and_thread): Stop parsing
3341 as soon as the first invalid keyword is found.
3343 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3345 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3347 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3349 * config/djgpp/djcheck.sh: Add copyright header.
3351 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3353 * copyright.py (update_files, main): Fix path to update-copyright
3356 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3358 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3359 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3360 for which a reminder to update by hand is printed.
3362 2012-06-04 Doug Evans <dje@google.com>
3364 * buildsym.c (make_blockvector): Add comment.
3366 2012-06-04 Pedro Alves <palves@redhat.com>
3368 * arch-utils.c (default_gdb_signal_from_target): Delete.
3369 * arch-utils.h (default_gdb_signal_from_target): Delete.
3370 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3371 gdbarch_gdb_signal_from_target_p.
3372 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3374 * gdbarch.h: Regenerate.
3375 * gdbarch.c: Regenerate.
3377 2012-06-04 Pedro Alves <palves@redhat.com>
3379 * gdbarch.sh (gdb_signal_from_target): Mention that the
3380 implementation of the method must be host independent.
3381 * gdbarch.h: Regenerate.
3383 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3385 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3387 (target_read_memory_bfd): New function.
3388 (symbol_file_add_from_memory): Use it.
3390 2012-06-03 Doug Evans <dje@google.com>
3392 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3394 (basic_lookup_transparent_type): Ditto.
3396 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3397 (ALL_PRIMARY_SYMTABS): Use it.
3398 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3399 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3400 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3401 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3402 (basic_lookup_transparent_type): Ditto.
3404 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3406 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3407 it to optimize resolution of demangled name.
3409 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3411 * configure.ac (development): Define new variable.
3412 Call AC_CHECK_LIB for mcheck if $development.
3413 (ERROR_ON_WARNING): Enable it by default only if $development.
3414 * config.in: Regenerate.
3415 * configure: Regenerate.
3417 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3419 * target.c (target_read_memory): Make LEN argument as size_t.
3420 * target.h (target_read_memory): Likewise.
3422 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3424 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3426 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3428 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3429 BookE interface for PowerPC server processors if not available
3430 in the Linux Kernel.
3432 2012-05-31 Keith Seitz <keiths@redhat.com>
3434 * linespec.c (decode_objc): Add cleanup to free
3436 (find_linespec_symbols): Add cleanup to free CLASSES.
3437 * symfile.c (find_separate_debug_file_by_debuglink): Add
3438 cleanup to free DEBUGLINK.
3439 * ui-out.c (clear_header_list): No need to check if
3440 HEADER_NEXT.COLHDR is NULL.
3441 Free HEADER_NEXT.COL_NAME.
3443 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3445 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3448 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3450 * configure.host (gdb_host_cpu): Handle tilegx*.
3451 (gdb_host): Handle tilegx-*-linux*.
3452 * tilegx-linux-nat.c: New file.
3453 * config/tilegx/linux.mh: New file.
3455 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3457 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3458 tilegx-linux-tdep.o.
3459 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3460 tilegx-linux-tdep.c.
3461 * configure.tgt: Handle tilegx-*-linux*.
3462 * tilegx-tdep.h: New file.
3463 * tilegx-tdep.c: New file.
3464 * tilegx-linux-tdep.c: New file.
3465 * regformats/reg-tilegx.dat: New file.
3467 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3469 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3470 accounting of hw watchpoints on ppc.
3472 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3474 * source.c (openp): Expand tilde in path entries.
3476 2012-05-29 Doug Evans <dje@google.com>
3478 * buildsym.c (block_compar): Fix comment.
3479 (end_symtab): Fix and clarify some comments.
3481 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3482 cleanup_undefined_types.
3483 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3484 All callers updated.
3486 2012-05-29 Tom Tromey <tromey@redhat.com>
3488 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3490 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3491 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3493 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3496 2012-05-29 Tristan Gingold <gingold@adacore.com>
3498 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3499 (struct darwin_info): ... New struct.
3500 (solib_darwin_pspace_data): New variable.
3501 (darwin_pspace_data_cleanup): New function.
3502 (get_darwin_info): Likewise.
3503 (darwin_dyld_version_ok, darwin_load_image_infos)
3504 (darwin_solib_get_all_image_info_addr_at_init)
3505 (darwin_solib_read_all_image_info_addr): Add info argument.
3507 (darwin_current_sos): Use per pspace structure.
3508 (darwin_solib_create_inferior_hook): Likewise.
3509 (darwin_clear_solib): Likewise.
3510 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3512 2012-05-28 Pedro Alves <palves@redhat.com>
3514 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3515 block that uses them. Clear ecss before handling each event.
3517 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3519 * solib-svr4.c (svr4_current_sos): New comment on
3520 svr4_current_sos_via_xfer_libraries fall back.
3522 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3524 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3525 it as a fallback for TYPE_IS_OPAQUE.
3526 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3527 symbols for lookup_symbol.
3529 2012-05-24 John Steele Scott <toojays@toojays.net>
3531 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3532 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3533 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3534 (check_producer): ... this new function, which also checks for ICC
3535 and caches the result.
3536 (producer_is_icc): New function.
3537 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3540 2012-05-24 Pedro Alves <palves@redhat.com>
3544 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3545 (default_gdb_signal_to_target): ... this. Add comment.
3546 (default_gdb_signal_from_host): Rename to ...
3547 (default_gdb_signal_from_target): ... this. Add comment.
3548 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3549 (default_gdb_signal_to_target): ... this.
3550 (default_gdb_signal_from_host): Rename to ...
3551 (default_gdb_signal_from_target): ... this.
3552 * corelow.c (core_open): Adjust to naming change. Replace comment.
3553 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3554 (gdb_signal_from_target): ... this. Adjust to
3555 default_gdb_signal_from_host naming change. Extend comment.
3556 (gdb_signal_to_host): Rename to ...
3557 (gdb_signal_to_target): ... this. Adjust to
3558 default_gdb_signal_to_host naming change.
3559 * gdbarch.h, gdbarch.c: Renegerate.
3561 2012-05-24 Pedro Alves <palves@redhat.com>
3565 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
3567 2012-05-24 Pedro Alves <palves@redhat.com>
3571 Replace target_signal with gdb_signal throughout.
3573 2012-05-24 Pedro Alves <palves@redhat.com>
3577 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3578 string, instead of reusing the va_list argument.
3580 2012-05-24 Tom Tromey <tromey@redhat.com>
3582 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3585 2012-05-23 Doug Evans <dje@google.com>
3587 * symtab.c (search_symbols): Formatting fixes.
3588 (print_symbol_info): Formatting fixes.
3590 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3591 int64_t change to leb128 API.
3592 (read_encoded_value, decode_frame_entry_1): Ditto.
3593 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3594 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3595 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3596 (execute_stack_op): Ditto.
3597 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3598 (safe_read_uleb128, safe_read_sleb128): Ditto.
3599 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3600 (dwarf2_compile_expr_to_ax): Ditto.
3601 (locexpr_describe_location_piece): Ditto.
3602 (disassemble_dwarf_expression): Ditto.
3603 (locexpr_describe_location_1): Ditto.
3605 2012-05-23 Stan Shebs <stan@codesourcery.com>
3606 Kwok Cheung Yeung <kcy@codesourcery.com>
3608 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
3609 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
3610 (mi-cmd-info.o): New rule.
3611 * osdata.h (info_osdata_command): New declaration.
3612 * osdata.c (info_osdata_command): Change to non-static.
3613 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
3614 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
3615 * mi/mi-cmd-info.c: New file.
3617 2012-05-23 Doug Evans <dje@google.com>
3619 * symtab.c (search_symbols): Pass NULL for file_matcher to
3620 expand_symtabs_matching if there are no files to match.
3622 * gdbtypes.c (lookup_typename): Simplify.
3624 2012-05-23 Pedro Alves <palves@redhat.com>
3626 * arch-utils.h (default_target_signal_to_host): Delete.
3627 * arch-utils.c (default_target_signal_to_host): Delete.
3628 * gdbarch.sh (target_signal_to_host): Remove.
3629 * gdbarch.h, gdbarch.c: Regenerate.
3631 2012-05-22 Doug Evans <dje@google.com>
3633 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
3635 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
3636 (execute_cfa_program): Update to match API of leb128 functions.
3637 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
3639 (read_unsigned_leb128, read_signed_leb128): Delete.
3640 (read_initial_length): Change type of buf argument to
3642 (read_encoded_value): Update to match API of leb128 functions.
3643 (decode_frame_entry): Change result to "const gdb_byte *", and
3644 similarly for "start" parameter.
3645 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
3646 (dwarf2_build_frame_info): Change local frame_ptr to
3648 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
3649 read_uleb128, read_sleb128. All callers updated.
3650 (safe_skip_leb128): New function.
3651 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
3652 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
3653 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
3654 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
3655 read_uleb128, read_sleb128.
3656 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3657 (execute_stack_op): Update to match API of leb128 functions.
3658 * dwarf2expr.h: #include "leb128.h".
3659 (read_uleb128, read_sleb128): Delete.
3660 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
3661 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
3662 * dwarf2loc.c (debug_loc_kind): New enum.
3663 (decode_debug_loc_addresses): New function.
3664 (decode_debug_loc_dwo_addresses): New function.
3665 (dwarf2_find_location_expression): Rewrite.
3666 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
3667 (locexpr_describe_location_piece): Ditto.
3668 (disassemble_dwarf_expression): Ditto.
3669 (locexpr_describe_location_1): Ditto.
3670 (loclist_describe_location): Rewrite.
3671 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
3672 * dwarf2read.c (die_reader_specs): New member "buffer_end".
3673 (dwarf2_section_buffer_overflow_complaint): Renamed from
3674 dwarf2_macros_too_long_complaint. All callers updated.
3675 (skip_leb128): Delete.
3676 (init_cu_die_reader): Initialize reader->buffer_end.
3677 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
3678 (skip_form_bytes): New arg buffer_end. All callers updated.
3679 Replace call to skip_leb128 with gdb_skip_leb128.
3680 (skip_unknown_opcode): New arg mac_end. All callers updated.
3681 (fill_in_loclist_baton): Initialize baton->from_dwo.
3683 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3685 * mips-linux-nat.c (mips_linux_read_description): Use a more
3686 verbose error message.
3688 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3690 * NEWS: Add MIPS/Linux DSP support.
3691 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
3692 (SIGCONTEXT_DSPCTL): New macro.
3693 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
3694 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
3695 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
3696 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
3697 (N64_SIGCONTEXT_HI3): Likewise.
3698 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
3699 (N64_SIGCONTEXT_LO3): Likewise.
3700 (N64_SIGCONTEXT_DSPCTL): Likewise.
3701 (N64_SIGCONTEXT_FPCSR): Clarify definition.
3702 (mips_linux_o32_sigframe_init): Handle DSP registers.
3703 (mips_linux_n32n64_sigframe_init): Likewise.
3705 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3707 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
3710 2012-05-22 Pedro Alves <palves@redhat.com>
3712 * target.h (store_waitstatus): Move declaration ...
3713 * inf-child.h (store_waitstatus): ... here.
3714 * target.c: Move inclusion of gdb_wait.h, and ...
3715 (store_waitstatus): ... this ...
3716 * inf-child.c: ... here.
3717 * linux-nat.c: Include inf-child.h.
3718 * rs6000-nat.c: Include inf-child.h.
3719 * spu-linux-nat.c: Include inf-child.h.
3721 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3723 * tracepoint.c (start_tracing): Add missing i18n markup.
3724 (stop_tracing, set_trace_user): Ditto.
3725 (set_trace_notes, set_trace_stop_notes): Ditto.
3727 2012-05-21 Tom Tromey <tromey@redhat.com>
3730 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
3732 * value.h (value_cast_pointers): Update.
3733 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
3734 (value_cast): Update.
3735 (update_search_result): New function.
3736 (do_search_struct_field): New, from search_struct_field. Check
3737 for ambiguous results.
3738 (search_struct_field): Rewrite.
3739 * infcall.c (value_arg_coerce): Update.
3740 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
3741 value_cast_pointers.
3742 * ada-lang.c (ada_convert_actual): Update.
3744 2012-05-21 Tom Tromey <tromey@redhat.com>
3746 * macroexp.c (macro_stringify): Terminate the string.
3748 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3750 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
3752 * auto-load.c (auto_load_expand_dir_vars): New function.
3753 (auto_load_safe_path_vec_update): Use it, remove the
3754 substitute_path_component call thanks to it.
3755 (auto_load_objfile_script): Remove the debug_file_directory processing.
3756 Use auto_load_expand_dir_vars, remove the substitute_path_component
3758 * configure: Regenerate.
3759 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
3760 path. Escape $ also for $debugdir.
3761 (--with_auto_load_safe_path): Escape $ also for $debugdir.
3762 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
3764 2012-05-20 Doug Evans <dje@google.com>
3766 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
3767 before use. Check for symtab->includes == NULL before scanning it.
3769 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3771 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
3773 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3775 * NEWS: Add microMIPS support and "set mips compression",
3776 "show mips compression" commands.
3777 * mips-tdep.h (mips_isa): New enum.
3778 (gdbarch_tdep): Add mips_isa.
3779 (mips_pc_is_mips16): Update prototype.
3780 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
3781 * mips-tdep.c (mips_compression_mips16): New variable.
3782 (mips_compression_micromips): Likewise.
3783 (mips_compression_strings): Likewise.
3784 (mips_compression_string): Likewise.
3785 (is_mips16_isa, is_micromips_isa): New functions.
3786 (is_mips16_addr): Rename to...
3787 (is_compact_addr): ... this.
3788 (unmake_mips16_addr): Likewise to...
3789 (unmake_compact_addr): ... this.
3790 (make_mips16_addr): Likewise to...
3791 (make_compact_addr): ... this.
3792 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
3794 (mips_elf_make_msymbol_special): Handle microMIPS code.
3795 (msymbol_is_special): Rename to...
3796 (msymbol_is_mips16): ... this.
3797 (mips_make_symbol_special, mips_pc_is_mips16): Update
3799 (msymbol_is_mips, msymbol_is_micromips): New functions.
3800 (mips16_to_32_reg): Rename to...
3801 (mips_reg3_to_reg): ... this.
3802 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
3803 (mips_pc_isa): Likewise.
3804 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
3806 (mips_fetch_instruction): Pass return status instead of printing
3807 an error message if requested. Handle microMIPS code. Bail out
3809 (micromips_op): New macro.
3810 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
3811 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
3812 (b6s4_op, b7s3_reg): Likewise.
3813 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
3814 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
3815 (mips_insn_size): New function.
3816 (mips32_next_pc): Update mips_fetch_instruction call.
3817 (micromips_relative_offset7): New function.
3818 (micromips_relative_offset10): Likewise.
3819 (micromips_relative_offset16): Likewise.
3820 (micromips_pc_insn_size): Likewise.
3821 (micromips_bc1_pc): Likewise.
3822 (micromips_next_pc): Likewise.
3823 (unpack_mips16): Update mips_fetch_instruction call.
3824 (extended_mips16_next_pc): Update according to change to
3826 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
3828 (mips16_scan_prologue): Update mips_fetch_instruction call.
3829 Update according to change to mips16_to_32_reg.
3830 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
3831 (mips_insn16_frame_base_sniffer): Likewise.
3832 (micromips_decode_imm9): New function.
3833 (micromips_scan_prologue): Likewise.
3834 (mips_micro_frame_cache): Likewise.
3835 (mips_micro_frame_this_id): Likewise.
3836 (mips_micro_frame_prev_register): Likewise.
3837 (mips_micro_frame_sniffer): Likewise.
3838 (mips_micro_frame_unwind): New variable.
3839 (mips_micro_frame_base_address): New function.
3840 (mips_micro_frame_base): New variable.
3841 (mips_micro_frame_base_sniffer): New function.
3842 (mips32_scan_prologue): Update mips_fetch_instruction call.
3843 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
3844 rather than for MIPS16.
3845 (mips_insn32_frame_base_sniffer): Likewise.
3846 (mips_addr_bits_remove): Handle microMIPS code.
3847 (deal_with_atomic_sequence): Rename to...
3848 (mips_deal_with_atomic_sequence): ... this. Update the type
3849 of the variable used to hold an instruction. Remove the ISA bit
3850 check. Update mips_fetch_instruction call.
3851 (micromips_deal_with_atomic_sequence): New function.
3852 (deal_with_atomic_sequence): Likewise.
3853 (mips_about_to_return): Handle microMIPS code. Update
3854 mips_fetch_instruction call.
3855 (heuristic_proc_start): Check for the standard MIPS ISA rather
3856 than for MIPS16. Update mips_pc_is_mips16 and
3857 mips_fetch_instruction calls. Handle microMIPS code.
3858 (mips_push_dummy_code): Handle microMIPS code.
3859 (mips_eabi_push_dummy_call): Likewise.
3860 (mips_o32_return_value): Update mips_pc_is_mips16 call.
3861 (mips_o64_push_dummy_call): Handle microMIPS code.
3862 (mips_o64_return_value): Update mips_pc_is_mips16 call.
3863 (is_delayed): Remove function.
3864 (mips_single_step_through_delay): Replace the call to is_delayed
3865 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
3866 Handle microMIPS code.
3867 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
3869 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
3871 (micromips_in_function_epilogue_p): New function.
3872 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
3874 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
3876 (gdb_print_insn_mips): Likewise.
3877 (mips_breakpoint_from_pc): Likewise.
3878 (mips_remote_breakpoint_from_pc): New function.
3879 (mips32_instruction_has_delay_slot): Simplify making use of the
3880 updated mips_fetch_instruction interface.
3881 (micromips_instruction_has_delay_slot): New function.
3882 (mips16_instruction_has_delay_slot): Simplify making use of the
3883 updated mips_fetch_instruction interface.
3884 (mips_adjust_breakpoint_address): Check for the standard MIPS
3885 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
3886 calls. Handle microMIPS code.
3887 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
3888 (mips_skip_trampoline_code): Handle microMIPS code.
3889 (global_mips_compression): New function.
3890 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
3891 file flags. Register the microMIPS remote breakpoint handler
3892 and heuristic frame unwinder.
3893 (show_mips_compression): New function.
3894 (_initialize_mips_tdep): Add the "set mips compression" and
3895 "show mips compression" commands.
3897 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
3902 * amd64-darwin-tdep.c:
3903 * arm-symbian-tdep.c:
3907 * bfin-linux-tdep.c:
3914 * dwarf2-frame-tailcall.c:
3943 * microblaze-tdep.c:
3944 * mips-linux-tdep.c:
3952 * python/py-finishbreakpoint.c:
3953 * python/py-inferior.c:
3954 * python/py-infthread.c:
3958 * remote-m32r-sdi.c:
3962 * rs6000-aix-tdep.c:
3988 * amd64-darwin-tdep.c:
3989 * arm-symbian-tdep.c:
3990 * arm-tdep.c: Delete unused variables.
3992 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3994 Rename $ddir to $datadir.
3995 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
3996 * auto-load.c (auto_load_safe_path_vec_update)
3997 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
3998 * configure: Regenerate.
3999 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4000 Likewise. Remove the 'use $ddir' help string.
4002 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4004 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4005 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4007 2012-05-18 Tom Tromey <tromey@redhat.com>
4010 * valprint.h (struct value_print_options) <symbol_print>: New
4012 * valprint.c (user_print_options): Add default for symbol_print.
4013 (show_symbol_print): New function.
4014 (generic_val_print): Respect symbol_print.
4015 (_initialize_valprint): Add "print symbol" setting.
4016 * f-valprint.c (f_val_print): Respect symbol_print.
4017 * c-valprint.c (c_val_print): Respect symbol_print.
4019 * printcmd.c (print_address_symbolic): Return int. Ignore some
4021 (print_address_demangle): Return int.
4022 * defs.h: (print_address_symbolic): Return int.
4023 * value.h (print_address_demangle): Return int.
4025 2012-05-18 Tom Tromey <tromey@redhat.com>
4027 * valprint.c (val_print_string): Don't print leading space.
4028 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4029 print space before string or vtbl.
4030 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4032 * jv-valprint.c (java_value_print): Print space before string.
4033 * go-valprint.c (print_go_string): Print space before string.
4034 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4035 space before string.
4036 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4037 space before string or vtbl.
4038 * auxv.c (fprint_target_auxv): Print space after address.
4040 2012-05-18 Tom Tromey <tromey@redhat.com>
4042 * printcmd.c (print_address_demangle): Remove special case for 0.
4044 2012-05-18 Tom Tromey <tromey@redhat.com>
4046 * printcmd.c (print_address_demangle): Add 'opts' argument.
4047 * p-valprint.c (pascal_val_print): Update.
4048 * jv-valprint.c (java_val_print): Update.
4050 * valprint.c (generic_val_print): Update.
4051 (print_function_pointer_address): Add 'options' argument. Remove
4052 'addressprint' argument. Update.
4053 * m2-valprint.c (print_unpacked_pointer): Update.
4054 * gnu-v3-abi.c (print_one_vtable): Update.
4055 (gnuv3_print_method_ptr): Update.
4056 * f-valprint.c (f_val_print): Update.
4057 * cp-valprint.c (cp_print_value_fields): Update.
4058 * valprint.h (print_function_pointer_address): Update.
4059 * c-valprint.c (c_val_print): Update.
4061 2012-05-18 Tom Tromey <tromey@redhat.com>
4063 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4064 directly corresponding to the found psymtab.
4065 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4066 (dw2_find_pc_sect_symtab): Use it.
4067 * block.h (blockvector_contains_pc): Declare.
4068 * block.c (find_block_in_blockvector): New function.
4069 (blockvector_for_pc_sect): Use it.
4070 (blockvector_contains_pc): New function.
4072 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4074 * mips-tdep.h (mips_write_pc): New prototype.
4075 * mips-tdep.c (mips_write_pc): Make external, add description.
4076 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4079 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4081 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4083 (mips_unwind_pc, mips_write_pc): Likewise.
4084 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4087 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4089 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4090 proc_warn, proc_error, proc_get_status, proc_flags,
4091 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4092 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4093 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4094 proc_stop_process, proc_wait_for_stop, proc_run_process,
4095 proc_set_traced_signals, proc_set_traced_faults,
4096 proc_set_traced_sysentry, proc_set_traced_sysexit,
4097 proc_set_held_signals, proc_get_held_signals,
4098 proc_get_traced_signals, proc_get_traced_faults,
4099 proc_get_traced_sysentry, proc_get_traced_sysexit,
4100 proc_clear_current_fault, proc_set_current_signal,
4101 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4102 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4103 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4104 proc_get_current_thread, proc_get_current_thread,
4105 proc_get_current_thread, proc_update_threads,
4106 proc_update_threads, proc_update_threads, proc_update_threads,
4107 proc_iterate_over_threads, procfs_find_new_threads,
4108 procfs_pid_to_str): Make static. Remove advance declaration.
4109 (proc_cursig): Make static. Conditionalized defintion on
4110 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4111 (proc_syscall, proc_set_kill_on_last_close,
4112 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4113 proc_get_pending_signals, proc_get_signal_actions,
4114 proc_trace_signal, proc_ignore_signal): Delete.
4116 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4118 * coffread.c (cs_section_address): Passing proper argument for
4119 `bfd_get_section_vma'.
4120 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4121 `bfd_get_section_flags'.
4122 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4123 `bfd_get_section_vma'.
4125 2012-05-16 Tom Tromey <tromey@redhat.com>
4128 * macrotab.h: (macro_define_special): Declare.
4129 (enum macro_special_kind): New.
4130 (struct macro_definition) <argc, replacement>: Update comments.
4131 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4132 (macro_define_object_internal): New function.
4133 (macro_define_object): Use it.
4134 (macro_define_special): New function.
4135 (fixup_definition): New function.
4136 (macro_lookup_definition, foreach_macro_in_scope)
4137 (foreach_macro): Use fixup_definition.
4138 * macroexp.h (macro_stringify): Declare.
4139 * macroexp.c (free_buffer_return_text): New function.
4140 (stringify): Constify "arg".
4141 (macro_stringify): New function.
4142 * dwarf2read.c (macro_start_file): Call macro_define_special.
4144 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4145 Maciej W. Rozycki <macro@mips.com>
4147 * breakpoint.h (bp_location): Add related_address member.
4148 * inferior.h (get_return_value): Take a pointer to struct value
4149 instead of struct type for the function requested.
4150 * value.h (using_struct_return): Likewise.
4151 * gdbarch.sh (return_value): Take a pointer to struct value
4152 instead of struct type for the function requested.
4153 * breakpoint.c (set_breakpoint_location_function): Initialize
4154 related_address for bp_gnu_ifunc_resolver breakpoints.
4155 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4156 requested function's address to gdbarch_return_value.
4157 * eval.c (evaluate_subexp_standard): Pass the requested
4158 function's address to using_struct_return.
4159 * infcall.c (call_function_by_hand): Pass the requested
4160 function's address to using_struct_return and
4161 gdbarch_return_value.
4162 * infcmd.c (get_return_value): Take a pointer to struct value
4163 instead of struct type for the function requested.
4164 (print_return_value): Update accordingly.
4165 (finish_command_continuation): Likewise.
4166 * stack.c (return_command): Pass the requested function's
4167 address to using_struct_return and gdbarch_return_value.
4168 * value.c (using_struct_return): Take a pointer to struct value
4169 instead of struct type for the function requested. Pass the
4170 requested function's address to gdbarch_return_value.
4171 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4172 New function_value member, replacing function_type.
4173 (bpfinishpy_dealloc): Update accordingly.
4174 (bpfinishpy_pre_stop_hook): Likewise.
4175 (bpfinishpy_init): Likewise. Record the requested function's
4177 * mips-tdep.c (mips_fval_reg): New enum.
4178 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4179 words put in GP registers.
4180 (mips_o64_push_dummy_call): Update a comment.
4181 (mips_o32_return_value): Take a pointer to struct value instead
4182 of struct type for the function requested and use it to check if
4183 using the MIPS16 calling convention. Return the designated
4184 general purpose registers for floating-point values returned in
4186 (mips_o64_return_value): Likewise.
4187 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4188 (ppc_sysv_abi_broken_return_value): Likewise.
4189 (ppc64_sysv_abi_return_value): Likewise.
4190 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4191 value instead of struct type for the function requested.
4192 * amd64-tdep.c (amd64_return_value): Likewise.
4193 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4194 * arm-tdep.c (arm_return_value): Likewise.
4195 * avr-tdep.c (avr_return_value): Likewise.
4196 * bfin-tdep.c (bfin_return_value): Likewise.
4197 * cris-tdep.c (cris_return_value): Likewise.
4198 * frv-tdep.c (frv_return_value): Likewise.
4199 * h8300-tdep.c (h8300_return_value): Likewise.
4200 (h8300h_return_value): Likewise.
4201 * hppa-tdep.c (hppa32_return_value): Likewise.
4202 (hppa64_return_value): Likewise.
4203 * i386-tdep.c (i386_return_value): Likewise.
4204 * ia64-tdep.c (ia64_return_value): Likewise.
4205 * iq2000-tdep.c (iq2000_return_value): Likewise.
4206 * lm32-tdep.c (lm32_return_value): Likewise.
4207 * m32c-tdep.c (m32c_return_value): Likewise.
4208 * m32r-tdep.c (m32r_return_value): Likewise.
4209 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4210 * m68k-tdep.c (m68k_return_value): Likewise.
4211 (m68k_svr4_return_value): Likewise.
4212 * m88k-tdep.c (m88k_return_value): Likewise.
4213 * mep-tdep.c (mep_return_value): Likewise.
4214 * microblaze-tdep.c (microblaze_return_value): Likewise.
4215 * mn10300-tdep.c (mn10300_return_value): Likewise.
4216 * moxie-tdep.c (moxie_return_value): Likewise.
4217 * mt-tdep.c (mt_return_value): Likewise.
4218 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4219 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4220 (ppc_sysv_abi_broken_return_value): Likewise.
4221 (ppc64_sysv_abi_return_value): Likewise.
4222 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4223 * rl78-tdep.c (rl78_return_value): Likewise.
4224 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4225 * rx-tdep.c (rx_return_value): Likewise.
4226 * s390-tdep.c (s390_return_value): Likewise.
4227 * score-tdep.c (score_return_value): Likewise.
4228 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4229 (sh_return_value_fpu): Likewise.
4230 * sh64-tdep.c (sh64_return_value): Likewise.
4231 * sparc-tdep.c (sparc32_return_value): Likewise.
4232 * sparc64-tdep.c (sparc64_return_value): Likewise.
4233 * spu-tdep.c (spu_return_value): Likewise.
4234 * tic6x-tdep.c (tic6x_return_value): Likewise.
4235 * v850-tdep.c (v850_return_value): Likewise.
4236 * vax-tdep.c (vax_return_value): Likewise.
4237 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4238 * xtensa-tdep.c (xtensa_return_value): Likewise.
4239 * gdbarch.c: Regenerate.
4240 * gdbarch.h: Regenerate.
4242 2012-05-15 Tom Tromey <tromey@redhat.com>
4244 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4246 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4248 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4249 of command in two error message.
4251 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4253 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4255 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4257 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4259 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4261 * NEWS (show auto-load scripts-directory): Add forgotten command.
4263 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4265 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4268 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4270 * amd64-tdep.c: Include features/i386/x32.c and
4271 features/i386/x32-avx.c.
4272 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4273 initialize_tdesc_x32_avx.
4275 2012-05-14 Stan Shebs <stan@codesourcery.com>
4278 * breakpoint.h (enum bptype): New type bp_dprintf.
4279 (struct breakpoint): New field extra_string.
4280 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4281 (create_breakpoint): Add extra_string arg.
4282 * breakpoint.c (dprintf_breakpoint_ops): New.
4283 (is_breakpoint): Add bp_dprintf.
4284 (bpstat_what): Add dprintf case.
4285 (bptype_string): Ditto.
4286 (print_one_breakpoint_location): Ditto.
4287 (init_bp_location): Ditto.
4288 (bkpt_print_mention): Ditto.
4289 (dprintf_style_enums): New array.
4290 (dprintf_style): New global.
4291 (dprintf_function): New global.
4292 (dprintf_channel): New global.
4293 (update_dprintf_command_list): New function.
4294 (update_dprintf_commands): New function.
4295 (init_breakpoint_sal): Add extra_string argument, handle it.
4296 (create_breakpoint_sal): Add extra_string argument.
4297 (create_breakpoints_sal): Add extra_string argument, update callers.
4298 (find_condition_and_thread): Add extra argument.
4299 (create_breakpoint): Add extra_string argument, record it.
4300 (dprintf_command): New function.
4301 (break_command_1): Add arg to create_breakpoint call.
4302 (handle_gnu_v3_exceptions): Ditto.
4303 (trace_command): Ditto.
4304 (ftrace_command): Ditto.
4305 (strace_command): Ditto.
4306 (bkpt_print_mention): Add dprintf case.
4307 (create_breakpoint_sal_default): Add extra_string argument.
4308 (_initialize_breakpoint): Add new commands.
4309 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4310 * python/py-breakpoint.c (bppy_init): Ditto.
4311 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4313 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4315 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4317 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4319 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4322 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4324 Add a new function gdb.find_pc_line to the Python API.
4325 * NEWS (Python Scripting): Add entry about the new function.
4326 * python/python.c (gdbpy_find_pc_line): New function which
4327 implements gdb.find_pc_line.
4328 (GdbMethods): Add entry for the new function.
4330 2012-05-12 Pedro Alves <palves@redhat.com>
4332 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4333 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4335 2012-05-12 Eli Zaretskii <eliz@gnu.org>
4337 * inferior.c: Include completer.h
4338 (initialize_inferiors): Set completer of add-inferior to
4341 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4343 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4344 gdbarch_ptr_bit for x32 core dump.
4346 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4348 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4349 and features/i386/x32-avx-linux.c.
4351 2012-05-11 Stan Shebs <stan@codesourcery.com>
4352 Kwok Cheung Yeung <kcy@codesourcery.com>
4354 * NEWS: Describe new info os commands.
4355 * common/linux-osdata.c (PID_T, TIME_T): Define.
4356 (MAX_PID_T_STRLEN): New.
4357 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4359 (command_from_pid): Add comment. Change to use PID_T.
4360 (commandline_from_pid): Change to use PID_T.
4361 (user_from_pid): Add comment.
4362 (get_process_owner): Add comment. Change to use PID_T and
4364 (get_number_of_cpu_cores): Add comment.
4365 (get_cores_used_by_process): Add comment. Change to use PID_T and
4367 (linux_xfer_osdata_processes): Change to use PID_T and
4369 (compare_processes): New function.
4370 (linux_xfer_osdata_processgroups): New function.
4371 (linux_xfer_osdata_threads): Change to use PID_T.
4372 (linux_xfer_osdata_fds): New function.
4373 (format_socket_state, print_sockets): New functions.
4374 (union socket_addr): New union.
4375 (linux_xfer_osdata_isockets): New function.
4376 (time_from_time_t, group_from_gid): New functions.
4377 (linux_xfer_osdata_shm): New function.
4378 (linux_xfer_osdata_sem): New function.
4379 (linux_xfer_osdata_msg): New function.
4380 (linux_xfer_osdata_modules): New function.
4381 (osdata_table): Add new entries.
4382 * common/buffer.c (buffer_xml_printf): Add support for long and
4383 long long format specifiers.
4385 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4387 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4388 (tdesc_x32_avx_linux): Likewise.
4390 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4392 Implement multi-component --with-auto-load-dir.
4393 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4395 (--with-auto-load-safe-path): Update the default value description.
4396 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4398 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4399 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4400 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4401 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4402 "set auto-load scripts-directory".
4403 * config.in: Regenerate.
4404 * configure: Regenerate.
4405 * configure.ac (--with-auto-load-dir): New configure option.
4406 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4408 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4410 Provide $ddir substitution for --with-auto-load-safe-path.
4411 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4413 * auto-load.c: Include observer.h.
4414 (auto_load_safe_path_vec_update): Call substitute_path_component for
4415 each component. New variable ddir_subst.
4416 (auto_load_gdb_datadir_changed): New function.
4417 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4418 AUTO_LOAD_SAFE_PATH. New comment.
4419 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4420 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4421 * config.in: Regenerate.
4422 * configure: Regenerate.
4423 * configure.ac (--auto-load-safe-path): Rename
4424 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4425 GDB_DATADIR/auto-load.
4426 * defs.h (substitute_path_component): New declaration.
4427 * top.c: Include observer.h.
4428 (set_gdb_datadir): New function.
4429 (init_main): Install it for "set data-directory".
4430 * utils.c (substitute_path_component): New function.
4432 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4434 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4435 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4436 DEBUG_FILE_DIRECTORY. Handle multiple components of
4437 DEBUG_FILE_DIRECTORY.
4439 2012-05-10 Tom Tromey <tromey@redhat.com>
4441 * dwarf2read.c (recursively_write_psymbols): New function.
4442 (write_psymtabs_to_index): Use it.
4444 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4446 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4447 (load_partial_comp_unit): Update.
4448 (queue_comp_unit): Add argument 'pretend_language'.
4449 (process_queue): Update.
4450 (psymtab_to_symtab_1): Skip dependencies that have a user.
4451 (load_partial_comp_unit_reader): Give meaning to the 'data'
4453 (load_full_comp_unit): Add 'pretend_language' argument.
4454 (process_full_comp_unit): Add 'pretend_language' argument. Set
4456 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4458 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4459 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4461 (prepare_one_comp_unit): Add 'pretend_language' argument.
4463 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4464 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4465 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4466 (dw2_do_instantiate_symtab): Check whether symtab was read in
4468 (dw2_instantiate_symtab): Add assertion. Call
4469 process_cu_includes.
4470 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4471 (partial_symtab_p): New typedef.
4472 (set_partial_user): New function.
4473 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4474 (scan_partial_symbols): Add imported CU to imported_symtabs.
4475 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4476 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4477 (get_symtab, recursively_compute_inclusions)
4478 (compute_symtab_includes, process_cu_includes)
4479 (process_imported_unit_die): New functions.
4480 (process_die) <DW_TAG_imported_unit>: New case.
4481 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4483 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4485 (struct partial_die_info) <locdesc>: Remove.
4487 (process_psymtab_comp_unit): Add 'read_partial' argument.
4489 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4490 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4491 (add_partial_symbol): Update.
4492 (process_die): Handle DW_TAG_partial_unit.
4493 (read_file_scope): Update comment.
4494 (load_partial_dies): Handle DW_TAG_imported_unit.
4495 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4496 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4498 2012-05-10 Tom Tromey <tromey@redhat.com>
4500 * cc-with-dwz.sh: New file.
4502 2012-05-10 Tom Tromey <tromey@redhat.com>
4504 * symtab.h (struct symtab) <includes, user>: New fields.
4505 * block.h (struct block_iterator) <d, idx, which>: New fields.
4506 * block.c (initialize_block_iterator, find_iterator_symtab)
4507 (block_iterator_step, block_iter_name_step)
4508 (block_iter_match_step): New functions.
4509 (block_iterator_first, block_iterator_next)
4510 (block_iter_name_first, block_iter_name_next)
4511 (block_iter_match_first, block_iter_match_next): Rewrite.
4512 (get_block_symtab): New function.
4514 2012-05-10 Tom Tromey <tromey@redhat.com>
4516 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4518 * jit.c (finalize_symtab): Use allocate_global_block,
4520 * buildsym.c (finish_block_internal): New function, from old
4522 (finish_block): Rewrite.
4523 (end_symtab): Use finish_block_internal, set_block_symtab.
4524 * block.h (struct global_block): New.
4525 (allocate_global_block, set_block_symtab): Declare.
4526 * block.c (allocate_global_block, set_block_symtab): New
4529 2012-05-10 Tom Tromey <tromey@redhat.com>
4531 * psymtab.c (partial_map_expand_apply): Add assertion.
4532 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4533 (psymtab_to_symtab): Find unshared psymtab.
4534 (dump_psymtab): Print including psymtabs.
4535 (recursively_search_psymtabs): New function.
4536 (expand_symtabs_matching_via_partial): Use it.
4537 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4539 (enum psymtab_search_status): New.
4541 2012-05-10 Tom Tromey <tromey@redhat.com>
4543 * tracepoint.c (scope_info): Update.
4544 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4545 (find_pc_sect_symtab, search_symbols)
4546 (default_make_symbol_completion_list_break_on)
4547 (make_file_symbol_completion_list): Update.
4548 * symmisc.c (dump_symtab_1): Update.
4549 * stack.c (print_frame_args, iterate_over_block_locals)
4550 (print_frame_labels, iterate_over_block_arg_vars): Update.
4551 * python/py-block.c (block_object) <dict>: Remove.
4553 <iter>: Change type.
4554 (blpy_iter): Update.
4555 (blpy_block_syms_iternext): Update.
4556 * psymtab.c (map_block): Use block iterators.
4557 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4558 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4559 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4560 * infrun.c (check_exception_resume): Update.
4561 * cp-support.c (make_symbol_overload_list_block): Update.
4562 * coffread.c (patch_opaque_types): Update.
4563 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4564 * block.h (struct block_iterator): New.
4565 (block_iterator_first, block_iterator_next, block_iter_name_first)
4566 (block_iter_name_next, block_iter_match_first)
4567 (block_iter_match_next): Declare.
4568 (ALL_BLOCK_SYMBOLS): Redefine.
4569 * block.c (block_iterator_first, block_iterator_next)
4570 (block_iter_name_first, block_iter_name_next)
4571 (block_iter_match_first, block_iter_match_next): New functions.
4572 * ada-lang.c (ada_add_block_symbols)
4573 (ada_make_symbol_completion_list): Use block iterator.
4575 2012-05-10 Tom Tromey <tromey@redhat.com>
4577 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4578 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4579 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4580 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4581 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4584 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4586 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4587 print-file-var-lib2.c, print-file-var-main.c and
4588 print-file-var.exp (located in gdb/testsuite/gdb.base).
4590 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4592 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4593 try locating the symbol in the symbol's own objfile first, before
4594 extending the search to all objfiles.
4595 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4596 out of lookup_symbol_aux_symtabs.
4597 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4598 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4599 Do not search EXCLUDE_OBJFILE.
4600 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4601 (lookup_symbol_global): Search for matches in the block's objfile
4602 first, before searching all other objfiles.
4604 2012-05-10 Tristan Gingold <gingold@adacore.com>
4606 * printcmd.c (set_command): Add pre/post inc/dec.
4608 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
4610 * gdb.1: Document -ex option.
4612 2012-05-09 Joel Brobecker <brobecker@adacore.com>
4614 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
4615 * inferior.h (AT_SYMBOL): Delete.
4617 2012-05-09 Joel Brobecker <brobecker@adacore.com>
4619 * mips-tdep.c (mips_push_dummy_code): New function.
4620 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
4621 ON_STACK and install mips_push_dummy_code as our gdbarch
4622 push_dummy_code routine.
4624 2012-05-09 Pedro Alves <palves@redhat.com>
4626 * target.c (set_maintenance_target_async_permitted): Rename to ...
4627 (set_target_async_command): ... this.
4628 (show_maintenance_target_async_permitted): Rename to ...
4629 (show_target_async_command): ... this.
4630 (initialize_targets): Adjust.
4632 2012-05-08 Doug Evans <dje@google.com>
4634 * go-exp.y (classify_name): Add missing assignment of fields of
4637 2012-05-08 Eli Zaretskii <eliz@gnu.org>
4639 Display the ">" prompt in interactive mode while reading canned
4640 commands, even when the current interpreter is MI.
4642 * interps.c (interp_set_temp): New function.
4644 * interps.h (interp_set_temp): Add prototype.
4646 * cli/cli-script.c (restore_interp): New cleanup function.
4647 (read_command_lines): Temporarily override the current interpreter
4648 with CLI and arrange for restoring the original one.
4650 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
4652 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
4654 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4656 * probe.c (parse_probes): Move conditional to check for
4657 debuginfo files from here...
4658 * stap-probe.c (stap_get_probes): ... to here.
4660 2012-05-07 Mark Kettenis <kettenis@gnu.org>
4661 H.J. Lu <hongjiu.lu@intel.com>
4663 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
4664 `movl %esp, %ebp' for the X32 ABI.
4666 2012-05-07 Tom Tromey <tromey@redhat.com>
4668 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
4670 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
4671 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
4672 (dwarf_stack_op_name): Remove.
4673 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
4674 (decode_locdesc): Use get_DW_OP_name.
4675 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
4676 (dwarf2_compile_expr_to_ax): Likewise.
4677 (disassemble_dwarf_expression): Likewise.
4678 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
4680 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
4682 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
4683 (sh_linux_sigtramp_cache): New function.
4684 (sh_linux_sigreturn_init): New function.
4685 (sh_linux_rt_sigreturn_init): New function.
4686 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
4688 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
4690 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
4691 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
4692 (sh_linux_init_abi): Add init calls to register new tramp_frame
4693 definitions under 32-bit SH, update comments.
4695 2012-05-07 Pedro Alves <palves@redhat.com>
4699 * amd64-linux-tdep.c: Include glibc-tdep.h.
4700 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
4701 gdbarch_skip_solib_resolver callback.
4703 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4705 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
4706 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
4707 (show_auto_load_safe_path): Check any-directory by comparison with "/".
4708 (add_auto_load_safe_path): Change the error message.
4709 (_initialize_auto_load): Change the "safe-path" help text.
4710 * configure: Regenerate
4711 * configure.ac (--without-auto-load-safe-path): Set
4712 WITH_AUTO_LOAD_SAFE_PATH to /.
4714 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
4716 * stap-probe.h: Do not include unecessary `probe.h'.
4718 2012-05-05 Alan Modra <amodra@gmail.com>
4720 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
4721 bfd_und_section_ptr.
4722 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
4723 and bfd_com_section_ptr.
4725 2012-05-04 Joel Brobecker <brobecker@adacore.com>
4727 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
4729 2012-05-04 Joel Brobecker <brobecker@adacore.com>
4731 * windows-nat.h (segment_register_p_ftype): New typedef.
4732 (windows_set_segment_register_p): Add declaration.
4733 * windows-nat.c (segment_register_p): New static global.
4734 (windows_set_segment_register_p): New function.
4735 (do_windows_fetch_inferior_registers): Add special handling
4736 for segment registers.
4737 * amd64-windows-nat.c: #include "amd64-tdep.h".
4738 (amd64_windows_segment_register_p): New function.
4739 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
4740 * i386-windows-nat.c: #include "i386-tdep.h".
4741 (i386_windows_segment_register_p): New function.
4742 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
4744 2012-05-04 Tristan Gingold <gingold@adacore.com>
4746 * printcmd.c (set_command): Emit a warning if the expression is not
4749 2012-05-03 Joel Brobecker <brobecker@adacore.com>
4751 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
4754 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4756 * stap-probe.c (stap_is_operator): Change declaration.
4757 (stap_get_opcode): Change return value.
4758 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
4759 `stap_parse_argument_1'.
4761 2012-05-03 Pedro Alves <pedro@codesourcery.com>
4763 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
4766 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
4768 Add two new methods global_block and static_block to gdb.Symtab
4770 * NEWS (Python scripting): Add entry about the new methods.
4771 * python/py-symtab.c (stpy_global_block): New function which
4772 implements the gdb.Symtab.global_block() method.
4773 (stpy_static_block): New function which implements the
4774 gdb.Symtab.static_block() method.
4775 (symtab_object_methods): Add entries for the two new methods.
4777 2012-05-03 Doug Evans <dje@google.com>
4779 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
4782 2012-05-03 Yao Qi <yao@codesourcery.com>
4784 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
4786 (i386_process_record): Ditto.
4788 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4790 * infcall.c (unwind_on_signal_p): Make static.
4792 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4794 * sol-thread.c (solaris_pid_to_str): Make static.
4795 (_initialize_sol_thread): Add prototype.
4797 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4799 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
4801 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
4803 * MAINTAINERS: Remove myself.
4805 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4807 Fix --without-auto-load-safe-path for MS-Windows host platform.
4808 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
4810 2012-05-02 Eli Zaretskii <eliz@gnu.org>
4812 * gdb_curses.h: Undefine KEY_EVENT before including curses
4813 headers. Move "#undef MOUSE_MOVED" before any curses header
4816 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4818 * features/i386/i386-mmx-linux.c: Regenerate.
4819 * features/rs6000/powerpc-32.c: Likewise.
4820 * features/rs6000/powerpc-32l.c: Likewise.
4821 * features/rs6000/powerpc-403.c: Likewise.
4822 * features/rs6000/powerpc-403gc.c: Likewise.
4823 * features/rs6000/powerpc-405.c: Likewise.
4824 * features/rs6000/powerpc-505.c: Likewise.
4825 * features/rs6000/powerpc-601.c: Likewise.
4826 * features/rs6000/powerpc-602.c: Likewise.
4827 * features/rs6000/powerpc-603.c: Likewise.
4828 * features/rs6000/powerpc-604.c: Likewise.
4829 * features/rs6000/powerpc-64.c: Likewise.
4830 * features/rs6000/powerpc-64l.c: Likewise.
4831 * features/rs6000/powerpc-750.c: Likewise.
4832 * features/rs6000/powerpc-860.c: Likewise.
4833 * features/rs6000/powerpc-e500.c: Likewise.
4834 * features/rs6000/powerpc-e500l.c: Likewise.
4835 * features/rs6000/powerpc-isa205-32l.c: Likewise.
4836 * features/rs6000/powerpc-isa205-64l.c: Likewise.
4837 * features/rs6000/rs6000.c: Likewise.
4839 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4841 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
4843 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
4844 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
4845 (stap_parse_argument) <e>: Likewise.
4846 (handle_stap_probe) <byte_order>: Likewise.
4848 2012-04-30 Doug Evans <dje@google.com>
4850 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
4851 init_and_read_dies_worker. All callers updated.
4852 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
4853 replaced with init_cutu_and_read_dies.
4854 (load_partial_comp_unit): Pass 1 for use_existing_cu.
4855 (find_partial_die): Remove FIXME. Don't free current CU.
4857 2012-04-30 Sterling Augustine <saugustine@google.com>
4859 * contrib: New directory.
4860 * contrib/test_pubnames_and_indexes.py: New file.
4862 2012-04-30 Doug Evans <dje@google.com>
4864 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
4865 All callers updated.
4866 (init_cu_die_reader): Verify the section is non-empty.
4867 (dwarf_decode_line_header): Don't dereference section->asection
4868 until we know the section is present.
4870 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
4872 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
4875 2012-04-29 Yao Qi <yao@codesourcery.com>
4877 * gdb-code-style.el: New hook gdb-markup-hook
4878 and gdb-comment-hook.
4880 2012-04-28 Doug Evans <dje@google.com>
4882 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
4883 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
4885 * symfile.h (dwarf2_debug_sections): New member addr.
4886 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
4887 (ctx_no_get_addr_index): New function.
4888 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
4889 (ctx_no_get_addr_index): Declare.
4890 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
4891 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
4892 (dwarf_expr_ctx_funcs): Update.
4893 (needs_get_addr_index): New function.
4894 (needs_frame_ctx_funcs): Update.
4895 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
4896 * dwarf2read.c: #include "gdbcore.h".
4897 (dwarf2_per_objfile): New members addr, dwo_files.
4898 (dwarf2_elf_names): Add entry for addr.
4899 (struct dwo_section_names): New type.
4900 (dwo_section_names): New static global.
4901 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
4902 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
4903 old debug_types_section member updated to use this.
4904 Rename member debug_types_section to info_or_types_section,
4906 (signatured_type): Rename member type_offset to type_offset_in_tu,
4907 all uses updated. New member type_offset_in_section.
4908 (struct dwo_sections): New type.
4909 (struct dwo_unit): New type.
4910 (struct dwo_file): New type.
4911 (die_reader_specs): New member dwo_file.
4912 (dwarf2_locate_sections): Watch for .debug_addr.
4913 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
4914 (dwarf2_read_section): Get bfd of section from bfd's asection,
4916 (create_cus_from_index): Initialize the_cu->info_or_types_section.
4917 (create_signatured_type_table_from_index): Initialize
4918 sig_type->info_or_types_section.
4919 (dw2_get_file_names): Statement lists for type units with DWO files
4920 live in the DWO file.
4921 (create_debug_types_hash_table): New function.
4922 (create_all_type_units): Rewrite.
4923 (init_cu_die_reader): New arg dwo_file, all callers updated.
4924 (init_and_read_dies_worker): Get section from
4925 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
4926 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
4927 continue reading the CU/TU from there.
4928 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
4929 updated. Get section from this_cu->info_or_types_section.
4930 (create_all_comp_units): Initialize this_cu->info_or_types_section.
4931 (skip_one_die): New cases DW_FORM_GNU_addr_index,
4932 DW_FORM_GNU_str_index.
4933 (hash_dwo_file, eq_dwo_file): New functions.
4934 (allocate_dwo_file_hash_table): New function.
4935 (hash_dwo_unit, eq_dwo_unit): New functions.
4936 (allocate_dwo_unit_table): New function.
4937 (dwarf2_locate_dwo_sections): New function.
4938 (struct create_dwo_info_table_data): New type.
4939 (create_debug_info_hash_table_reader): New function.
4940 (create_debug_info_hash_table): New function.
4941 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
4942 (lookup_dwo_file): New function.
4943 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
4944 (free_dwo_file, free_dwo_file_cleanup): New functions.
4945 (free_dwo_file_from_slot, free_dwo_files): New functions.
4946 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
4947 (dwarf2_record_block_ranges): Ditto.
4948 (read_partial_die): Ditto.
4949 (process_enumeration_scope): Update to use type_offset_in_section.
4950 (read_full_die_1): New function.
4951 (read_full_die): Rewrite.
4952 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
4953 DW_FORM_GNU_str_index.
4954 (read_addr_index_1, read_addr_index): New functions.
4955 (read_addr_index_from_leb128): New function.
4956 (struct dwarf2_read_addr_index_data): New type.
4957 (dwarf2_read_addr_index_reader): New function.
4958 (dwarf2_read_addr_index): New function.
4959 (read_str_index): New function.
4960 (leb128_size): New function.
4961 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
4962 If processing a type unit from a DWO file, get the line section
4964 (var_decode_location): Watch for DW_OP_GNU_addr_index.
4965 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
4966 DW_FORM_GNU_str_index.
4967 (lookup_die_type): Check whether section offset of type's die is
4968 known before looking it up. Remove assert. Condition can
4969 legimately happen for inter-cu type references.
4970 (dwarf_attr_name): Handle Fission attributes.
4971 (dwarf_form_name): Handle Fission forms.
4972 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
4973 DW_FORM_GNU_str_index.
4974 (follow_die_sig): Update to use type_offset_in_section.
4975 (decode_locdesc): New case DW_OP_GNU_addr_index.
4976 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
4977 DW_FORM_GNU_str_index.
4978 (cu_debug_loc_section): New function.
4979 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
4980 (dwarf2_per_objfile_free): Unmap .debug_addr section.
4981 Free DWO files if present.
4982 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
4984 Refactor DIE reading.
4985 * dwarf2read.c (dwarf2_per_objfile): Replace members
4986 debug_info_type_hash and debug_types_type_hash with die_type_hash.
4987 (die_reader_specs): New member "die_section". Temporarily make
4988 member "buffer" non-const, pending constifying all info_ptr uses.
4989 (die_reader_func_ftype): New typedef.
4990 (dw2_get_file_names_reader): New function.
4991 (dw2_get_file_names): Rewrite.
4992 (read_and_check_type_unit_head): Rename arg type_offset to
4994 (create_all_type_units): Improve debugging message.
4995 Improve dummy type unit check.
4996 (init_cu_die_reader): New arg "section". All callers updated.
4997 (init_and_read_dies_worker): New function.
4998 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
4999 (init_cutu_and_read_dies_no_follow): New function.
5000 (init_cutu_and_read_dies_simple): New function.
5001 (process_psymtab_comp_unit_reader): New function.
5002 (process_psymtab_comp_unit): Delete args section,
5003 is_debug_types_section. Rewrite. All callers updated.
5004 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5005 All callers updated. Rewrite.
5006 (load_partial_comp_unit_reader): New function.
5007 (load_partial_comp_unit): Rewrite.
5008 (skip_children): New arg reader. Delete args buffer, cu.
5009 All callers updated.
5010 (skip_one_die): New arg reader. Delete args buffer, cu.
5011 All callers updated.
5012 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5013 All callers updated.
5014 (load_full_comp_unit_reader): New function.
5015 (load_full_comp_unit): Rewrite.
5016 (read_comp_unit): Delete.
5017 (read_die_and_children_1): Delete, contents moved ...
5018 (read_die_and_children): ... here.
5019 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5020 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5021 All callers updated.
5022 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5023 All callers updated.
5024 (find_partial_die): Rewrite load_all_dies support.
5025 (read_attribute_value): New arg reader. Delete args abfd, cu.
5026 All callers updated.
5027 (read_attribute): New arg reader. Delete args abfd, cu.
5028 All callers updated.
5029 (load_full_type_unit): Add assert.
5030 (read_signatured_type_reader): New function.
5031 (read_signatured_type): Rewrite.
5032 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5033 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5034 All callers updated. Set per_cu->cu = NULL after freeing it.
5035 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5036 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5037 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5038 (set_die_type): Update.
5039 (get_die_type_at_offset): Update.
5040 (read_file_scope): Call prepare_one_comp_unit.
5041 (read_type_unit_scope): Ditto.
5042 (prepare_one_comp_unit): Set producer if present.
5044 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5046 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5047 gettext function on `error'.
5049 2012-04-27 Doug Evans <dje@google.com>
5051 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5054 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5055 Tom Tromey <tromey@redhat.com>
5057 * breakpoint.c (struct breakpoint_objfile_data)
5058 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5059 <exception_probes>: New fields.
5060 (free_breakpoint_probes): New function.
5061 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5062 `_Unwind_DebugHook'.
5063 (create_exception_master_breakpoint): Likewise.
5064 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5065 * infrun.c: Including necessary header files for handling SystemTap
5067 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5068 via SystemTap probes.
5069 (check_exception_resume): Remove `func' argument. Handle exception
5070 unwinding breakpoint set via a SystemTap probe.
5071 (insert_exception_resume_from_probe): New function.
5073 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5074 Tom Tromey <tromey@redhat.com>
5075 Jan Kratochvil <jan.kratochvil@redhat.com>
5077 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5078 (COMMON_OBS): Likewise.
5079 (HFILES_NO_SRCDIR): Add `probe'.
5080 * NEWS: Mention support for static and SystemTap probes.
5081 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5082 SystemTap probes' arguments parser.
5083 * arm-linux-tdep.c: Including headers needed to perform the parsing
5084 of SystemTap probes' arguments.
5085 (arm_stap_is_single_operand): New function.
5086 (arm_stap_parse_special_token): Likewise.
5087 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5088 probes' arguments parser.
5089 * ax-gdb.c (require_rvalue): Removing static declaration.
5090 (gen_expr): Likewise.
5091 * ax-gdb.h (gen_expr): Declaring function.
5092 (require_rvalue): Likewise.
5093 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5094 (bkpt_probe_breakpoint_ops): New variable.
5095 (momentary_breakpoint_from_master): Set the `probe' value.
5096 (add_location_to_breakpoint): Likewise.
5097 (break_command_1): Using proper breakpoint_ops according to the
5098 argument passed by the user in the command line.
5099 (bkpt_probe_insert_location): New function.
5100 (bkpt_probe_remove_location): Likewise.
5101 (bkpt_probe_create_sals_from_address): Likewise.
5102 (bkpt_probe_decode_linespec): Likewise.
5103 (tracepoint_probe_create_sals_from_address): Likewise.
5104 (tracepoint_probe_decode_linespec): Likewise.
5105 (tracepoint_probe_breakpoint_ops): New variable.
5106 (trace_command): Using proper breakpoint_ops according to the
5107 argument passed by the user in the command line.
5108 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5109 static probes on breakpoints and tracepoints.
5110 * breakpoint.h (struct bp_location) <probe>: New field.
5111 * cli-utils.c (skip_spaces_const): New function.
5112 (extract_arg): Likewise.
5113 * cli-utils.h (skip_spaces_const): Likewise.
5114 (extract_arg): Likewise.
5115 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5116 * configure.ac: Append `stap-probe.o' to be generated when ELF
5118 * configure: Regenerate.
5119 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5120 * elfread.c: Include `probe.h' and `arch-utils.h'.
5121 (probe_key): New variable.
5122 (elf_get_probes): New function.
5123 (elf_get_probe_argument_count): Likewise.
5124 (elf_evaluate_probe_argument): Likewise.
5125 (elf_compile_to_ax): Likewise.
5126 (elf_symfile_relocate_probe): Likewise.
5127 (stap_probe_key_free): Likewise.
5128 (elf_probe_fns): New variable.
5129 (elf_sym_fns): Add `sym_probe_fns' value.
5130 (elf_sym_fns_lazy_psyms): Likewise.
5131 (elf_sym_fns_gdb_index): Likewise.
5132 (_initialize_elfread): Initialize objfile cache for static
5134 * gdb_vecs.h (struct probe): New forward declaration.
5135 (probe_p): New VEC declaration.
5136 * gdbarch.c: Regenerate.
5137 * gdbarch.h: Regenerate.
5138 * gdbarch.sh (stap_integer_prefix): New variable.
5139 (stap_integer_suffix): Likewise.
5140 (stap_register_prefix): Likewise.
5141 (stap_register_suffix): Likewise.
5142 (stap_register_indirection_prefix): Likewise.
5143 (stap_register_indirection_suffix): Likewise.
5144 (stap_gdb_register_prefix): Likewise.
5145 (stap_gdb_register_suffix): Likewise.
5146 (stap_is_single_operand): New function.
5147 (stap_parse_special_token): Likewise.
5148 (struct stap_parse_info): Forward declaration.
5149 * i386-tdep.c: Including headers needed to perform the parsing
5150 of SystemTap probes' arguments.
5151 (i386_stap_is_single_operand): New function.
5152 (i386_stap_parse_special_token): Likewise.
5153 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5154 probes' arguments parser.
5155 * i386-tdep.h (i386_stap_is_single_operand): New function.
5156 (i386_stap_parse_special_token): Likewise.
5157 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5158 * mipsread.c (ecoff_sym_fns): Likewise.
5159 * objfiles.c (objfile_relocate1): Support relocation for static
5161 * parse.c (prefixify_expression): Remove static declaration.
5162 (initialize_expout): Likewise.
5163 (reallocate_expout): Likewise.
5164 * parser-defs.h (initialize_expout): Declare function.
5165 (reallocate_expout): Likewise.
5166 (prefixify_expression): Likewise.
5167 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5168 of SystemTap probes' arguments.
5169 (ppc_stap_is_single_operand): New function.
5170 (ppc_stap_parse_special_token): Likewise.
5171 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5172 probes' arguments parser.
5173 * probe.c: New file, for generic statically defined probe support.
5174 * probe.h: Likewise.
5175 * s390-tdep.c: Including headers needed to perform the parsing of
5176 SystemTap probes' arguments.
5177 (s390_stap_is_single_operand): New function.
5178 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5179 probes' arguments parser.
5180 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5181 * stap-probe.c: New file, for SystemTap probe support.
5182 * stap-probe.h: Likewise.
5183 * symfile.h: Include `gdb_vecs.h'.
5184 (struct sym_probe_fns): New struct.
5185 (struct sym_fns) <sym_probe_fns>: New field.
5186 * symtab.c (init_sal): Initialize `probe' field.
5187 * symtab.h (struct probe): Forward declaration.
5188 (struct symtab_and_line) <probe>: New field.
5189 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5191 (stop_tracing): Likewise.
5192 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5194 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5195 Tom Tromey <tromey@redhat.com>
5197 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5198 and to compile agent expressions.
5199 * infrun.c (siginfo_make_value): New argument `ignore'.
5200 (siginfo_funcs): New struct.
5201 (_initialize_infrun): New argument when calling
5202 `create_internalvar_type_lazy'.
5203 * thread.c (thread_id_make_value): New argument `ignore'.
5204 (thread_funcs): New struct.
5205 (_initialize_thread): New argument when calling
5206 `create_internalvar_type_lazy'.
5207 * tracepoint.c (sdata_make_value): New argument `ignore'.
5208 (sdata_funcs): New struct.
5209 (_initialize_tracepoint): New argument when calling
5210 `create_internalvar_type_lazy'.
5211 * value.c (make_value): New struct.
5212 (create_internalvar_type_lazy): New argument `data'.
5213 (compile_internalvar_to_ax): New function.
5214 (value_of_internalvar): Properly handling `make_value' case.
5215 (clear_internalvar): Likewise.
5216 (show_convenience): Adding `TRY_CATCH' block.
5217 * value.h (internalvar_make_value): Delete, replace by...
5218 (struct internalvar_funcs): ... this.
5219 (create_internalvar_type_lazy) <fun>: Delete argument.
5220 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5221 (compile_internalvar_to_ax): New function.
5222 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5223 (tlb_funcs): New struct.
5224 (_initialize_windows_tdep): New argument when calling
5225 `create_internalvar_type_lazy'.
5227 2012-04-27 Mark Wielaard <mjw@redhat.com>
5229 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5230 see whether it is an address or a constant offset from DW_AT_low_pc.
5231 (dwarf2_record_block_ranges): Likewise.
5232 (read_partial_die): Likewise.
5234 2012-04-26 Mark Wielaard <mjw@redhat.com>
5236 * MAINTAINERS (Write After Approval): Add myself to the list.
5238 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5240 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5241 (proc_prettyprint_signal): Likewise.
5242 (proc_prettyprint_faultset): Likewise.
5243 (proc_prettyprint_fault): Likewise.
5244 (proc_prettyprint_actionset): Likewise.
5245 (proc_prettyprint_flags): Move to new proc-flags.c section.
5246 (proc_prettyfprint_flags): New prototype.
5247 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5248 (proc_syscall, proc_cursig): Likewise.
5249 (proc_set_kill_on_last_close): Likewise.
5250 (proc_unset_kill_on_last_close): Likewise.
5251 (proc_set_watchpoint): Make static.
5252 (proc_delete_dead_threads): Likewise.
5253 (procfs_set_watchpoint): Likewise.
5254 (_initialize_procfs): Add prototype.
5255 * proc-events.c: Include proc-utils.h.
5256 (init_syscall_table): Make static.
5257 * proc-api.c (_initialize_proc_api): Add prototype.
5258 * proc-flags.c: Include proc-utils.h.
5260 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5262 * configure.ac: Add AC_ARG_PROGRAM.
5263 * configure: Regenerate.
5265 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5267 Fix DW_AT_lower_bound defaults for DWARF-4+.
5268 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5269 high. New variable low_default_is_valid. Implement DWARF-4+
5270 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5271 no default by the DWARF standard.
5273 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5274 Maciej W. Rozycki <macro@codesourcery.com>
5276 * infrun.c (handle_inferior_event): Move the check for return
5277 trampolines ahead of the check for function trampolines.
5278 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5279 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5280 (mips_str_mips16_ret_stub): Likewise.
5281 (mips_str_call_fp_stub): Likewise.
5282 (mips_str_call_stub): Likewise.
5283 (mips_str_fn_stub): Likewise.
5284 (mips_str_pic): Likewise.
5285 (mips_in_frame_stub): New function.
5286 (mips_unwind_pc): Return the return address rather than the PC
5287 if the PC of an intermediate frame is inside a call thunk.
5288 (mips_is_stub_suffix): New function.
5289 (mips_is_stub_mode): Likewise.
5290 (mips_get_mips16_fn_stub_pc): Likewise.
5291 (mips_skip_mips16_trampoline_code): Update to handle all the
5292 currently generated stub types. Don't recurse into __fn_stub
5293 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5294 Use cooked register accesses.
5295 (mips_in_return_stub): Reintroduce function.
5296 (mips_skip_trampoline_code): Traverse trampolines recursively.
5297 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5299 2012-04-26 Joel Brobecker <brobecker@adacore.com>
5303 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5305 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5306 * features/arm-with-m-vfp-d16.xml: New file. Describes
5307 Cortex-M with VFPv4-sp-d16 FPU register layout.
5308 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5309 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5310 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5311 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5312 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5314 2012-04-25 Doug Evans <dje@google.com>
5316 * cli/cli-decode.c (print_doc_line): Use stream instead of
5319 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5321 * features/arm-with-iwmmxt.c: Regenerate.
5322 * features/arm-with-m-fpa-layout.c: Likewise.
5323 * features/arm-with-m.c: Likewise.
5324 * features/arm-with-neon.c: Likewise.
5325 * features/arm-with-vfpv2.c: Likewise.
5326 * features/arm-with-vfpv3.c: Likewise.
5327 * features/mips-dsp-linux.c: Likewise.
5328 * features/mips-linux.c: Likewise.
5329 * features/mips64-dsp-linux.c: Likewise.
5330 * features/mips64-linux.c: Likewise.
5331 * features/s390-linux32.c: Likewise.
5332 * features/s390-linux32v1.c: Likewise.
5333 * features/s390-linux32v2.c: Likewise.
5334 * features/s390-linux64.c: Likewise.
5335 * features/s390-linux64v1.c: Likewise.
5336 * features/s390-linux64v2.c: Likewise.
5337 * features/s390x-linux64.c: Likewise.
5338 * features/s390x-linux64v1.c: Likewise.
5339 * features/s390x-linux64v2.c: Likewise.
5340 * features/tic6x-c62x-linux.c: Likewise.
5341 * features/tic6x-c62x.c: Likewise.
5342 * features/tic6x-c64x-linux.c: Likewise.
5343 * features/tic6x-c64x.c: Likewise.
5344 * features/tic6x-c64xp-linux.c: Likewise.
5345 * features/tic6x-c64xp.c: Likewise.
5346 * target-descriptions.c: Only generate `field_type' and `type'
5347 variables when needed.
5349 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5351 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5353 2012-04-25 Doug Evans <dje@google.com>
5355 Initial pass at Go language support.
5357 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5359 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5360 (YYFILES): Add go-exp.c.
5361 (YYOBJ): Add go-exp.o.
5362 (local-maintainer-clean): Delete go-exp.c.
5363 * defs.h (enum language): Add language_go.
5364 * dwarf2read.c: #include "go-lang.h".
5365 (fixup_go_packaging): New function.
5366 (process_full_comp_unit): Call it when processing Go CUs.
5367 (dwarf2_physname): Add Go support.
5368 (read_file_scope): Handle missing language spec for GNU Go.
5369 (set_cu_language): Handle DW_LANG_Go.
5370 * go-exp.y: New file.
5371 * go-lang.h: New file.
5372 * go-lang.c: New file.
5373 * go-typeprint.c: New file.
5374 * go-valprint.c: New file.
5375 * symtab.c: #include "go-lang.h".
5376 (symbol_set_language): Handle language_go.
5377 (symbol_find_demangled_name, symbol_set_names): Ditto.
5378 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5380 2012-04-24 Jim Meyering <meyering@redhat.com>
5382 avoid a few strncpy-induced buffer overruns
5383 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5384 fname and psargs before trying to concatenate.
5385 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5386 "name" before applying strchr.
5388 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5390 * CONTRIBUTE: Use unified diff instead of context diff when
5393 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5395 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5396 code. Handle JR.HB correctly.
5398 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5401 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5402 with the other MIPS16 helpers.
5404 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5406 * observer.sh: Conditionally declare `args', thus cleaning up
5407 unused instances of this variable.
5409 2012-04-24 Yao Qi <yao@codesourcery.com>
5411 Revert this patch to allow breakpoint always-inserted
5413 2011-12-05 Pedro Alves <pedro@codesourcery.com>
5414 * breakpoint.c: Include record.h.
5415 (breakpoints_always_inserted_mode): Return false when the record
5418 * breakpoint.c (iterate_over_bp_locations): New.
5419 * breakpoint.h: Declare.
5420 New typedef walk_bp_location_callback.
5421 * record.c (record_open): Call record_init_record_breakpoints.
5422 (record_sync_record_breakpoints): New.
5423 (record_init_record_breakpoints): New.
5424 * NEWS: Mention supporting breakpoint always-inserted mode in
5427 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5429 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5432 2012-04-24 Yao Qi <yao@codesourcery.com>
5434 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5435 (is_catchpoint): ... it.
5436 (print_one_breakpoint_location): Caller update.
5437 * breakpoint.h: Update declaration.
5439 2012-04-23 David S. Miller <davem@davemloft.net>
5441 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5443 2012-04-23 Tom Tromey <tromey@redhat.com>
5445 * buildsym.c (add_free_pendings): Remove.
5446 * buildsym.h (add_free_pendings): Remove.
5448 2012-04-23 Doug Evans <dje@google.com>
5450 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5451 attr.u.unsnd instead of attr.u.addr.
5452 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5453 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5455 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5456 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5458 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5460 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5462 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5463 (mips_o32_return_value): Likewise.
5464 (mips_o64_return_value): Likewise.
5466 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5468 * ada-lang.c (ada_evaluate_subexp): Add cases for
5469 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5470 their treatment in eval.c.
5472 2012-04-21 David S. Miller <davem@davemloft.net>
5474 * sparc-tdep.c (X_DISP10): Define.
5475 (sparc_analyze_control_transfer): Handle compare-and-branch.
5477 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5479 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5480 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5482 2012-04-20 Nigel Stephens <nigel@mips.com>
5483 Maciej W. Rozycki <macro@codesourcery.com>
5485 * mips-tdep.c (mips_float_register_p): New function.
5486 (mips_convert_register_float_case_p): Use mips_float_register_p.
5487 (mips_register_type): Likewise.
5488 (mips_print_register): Likewise.
5489 (print_gp_register_row): Likewise.
5490 (mips_print_registers_info): Likewise.
5492 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5494 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5497 2012-04-20 Andrew Pinski <apinski@cavium.com>
5499 * MAINTAINERS (Write After Approval): Add myself to the list.
5501 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5503 * MAINTAINERS: Update my e-mail address.
5505 2012-04-20 Pedro Alves <palves@redhat.com>
5507 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5509 * configure: Regenerate.
5511 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5513 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5515 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5517 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5519 Fix compilation compatibility with python-2.4
5520 * python/py-type.c (convert_field): Cast ADDRSTRING for
5521 PyObject_SetAttrString as non-const. New comment.
5523 2012-04-19 Tom Tromey <tromey@redhat.com>
5525 * top.c (quit_target): Use all_cleanups.
5526 * main.c (captured_command_loop): Use all_cleanups.
5527 * exceptions.c (throw_exception): Use all_cleanups.
5529 2012-04-19 Pedro Alves <palves@redhat.com>
5531 * Makefile.in (GNULIB_BUILDDIR): New.
5532 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5533 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5534 (CLEANDIRS). Remove gnulib/import.
5535 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5537 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5538 (gnulib/import/Makefile): Replace gnulib/import with
5539 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5540 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5541 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5542 acx_configure_dir.m4.
5543 * acinclude.m4: Include acx_configure_dir.m4.
5544 * acx_configure_dir.m4: New file.
5545 * aclocal.m4: Regenerate.
5546 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5547 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5548 (GNULIB): New variable.
5549 (GNULIB_STDINT_H): Adjust.
5550 (AC_OUTPUT): Don't output gnulib/Makefile.
5551 * gdb/defs.h: Include build-gnulib/config.h.
5552 * aclocal.m4: Regenerate.
5553 * config.in: Regenerate.
5554 * configure: Regenerate.
5556 * gnulib/Makefile.in: New file.
5557 * gnulib/configure.ac: New file.
5558 * gnulib/aclocal.m4: New file.
5559 * gnulib/config.in: New file.
5560 * gnulib/configure: New file.
5561 * gnulib/: Re-run gnulib-tool to adjust.
5563 2012-04-19 Doug Evans <dje@google.com>
5565 * cleanups.h (struct cleanup): Move to cleanups.c.
5566 (make_cleanup_dtor_ftype): New typedef.
5567 (make_cleanup_dtor): Use it.
5568 (ALL_CLEANUPS): Replace with ...
5569 (all_cleanups): ... this. Declare. All uses updated.
5570 * cleanups.c: #include "gdb_assert.h".
5571 (sentinel_cleanup): New static global.
5572 (SENTINEL_CLEANUP): Define.
5573 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5574 (make_my_cleanup2): Assert result is non-NULL.
5575 (all_cleanups): New function.
5576 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5579 2012-04-19 Pedro Alves <palves@redhat.com>
5581 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5582 Adjust paths to gnulib imported files.
5584 2012-04-19 Pedro Alves <palves@redhat.com>
5586 * gnulib/: Move whole directory ...
5587 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5588 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5589 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5590 (aclocal_m4_deps): Adjust.
5591 * aclocal.m4: Regenerate.
5592 * configure: Regenerate.
5593 * configure.ac: Adjust AC_OUTPUT output.
5595 2012-04-19 Yao Qi <yao@codesourcery.com>
5597 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5599 * vec.c: Move it ...
5600 * common/vec.c: ... here.
5601 * vec.h: Move it ...
5602 * common/vec.h: ... here.
5604 2012-04-19 Yao Qi <yao@codesourcery.com>
5606 * gdb-code-style.el: New.
5608 2012-04-18 Pedro Alves <palves@redhat.com>
5610 Update gnulib from latest git.
5611 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5613 * gnulib/Makefile.am: Update.
5614 * gnulib/dummy.c: Update.
5615 * gnulib/extra/arg-nonnull.h: Update.
5616 * gnulib/extra/c++defs.h: Update.
5617 * gnulib/extra/update-copyright: Update.
5618 * gnulib/extra/warn-on-use.h: Update.
5619 * gnulib/inttypes.in.h: Update.
5620 * gnulib/m4/00gnulib.m4: Update.
5621 * gnulib/m4/extensions.m4: Update.
5622 * gnulib/m4/gnulib-cache.m4: Update.
5623 * gnulib/m4/gnulib-common.m4: Update.
5624 * gnulib/m4/gnulib-comp.m4: Update.
5625 * gnulib/m4/gnulib-tool.m4: Update.
5626 * gnulib/m4/include_next.m4: Update.
5627 * gnulib/m4/inttypes-pri.m4: Update.
5628 * gnulib/m4/inttypes.m4: Update.
5629 * gnulib/m4/longlong.m4: Update.
5630 * gnulib/m4/memchr.m4: Update.
5631 * gnulib/m4/memmem.m4: Update.
5632 * gnulib/m4/mmap-anon.m4: Update.
5633 * gnulib/m4/multiarch.m4: Update.
5634 * gnulib/m4/onceonly.m4: Update.
5635 * gnulib/m4/stddef_h.m4: Update.
5636 * gnulib/m4/stdint.m4: Update.
5637 * gnulib/m4/string_h.m4: Update.
5638 * gnulib/m4/warn-on-use.m4: Update.
5639 * gnulib/m4/wchar_h.m4: Update.
5640 * gnulib/m4/wchar_t.m4: Update.
5641 * gnulib/m4/wint_t.m4: Update.
5642 * gnulib/memchr.c: Update.
5643 * gnulib/memmem.c: Update.
5644 * gnulib/stddef.in.h: Update.
5645 * gnulib/stdint.in.h: Update.
5646 * gnulib/str-two-way.h: Update.
5647 * gnulib/string.in.h: Update.
5648 * gnulib/wchar.in.h: Update.
5650 * gnulib/extra/arg-nonnull.h: Delete.
5651 * gnulib/extra/c++defs.h: Delete.
5652 * gnulib/extra/warn-on-use.h: Delete.
5653 * gnulib/m4/wchar_h.m4: Delete.
5654 * gnulib/m4/wint_t.m4: Delete.
5655 * gnulib/wchar.in.h: Delete.
5657 * gnulib/extra/snippets/arg-nonnull.h: New.
5658 * gnulib/extra/snippets/c++defs.h: New.
5659 * gnulib/extra/snippets/warn-on-use.h: New.
5661 * aclocal.m4: Regenerate.
5662 * config.in: Regenerate.
5663 * configure: Regenerate.
5664 * gnulib/Makefile.in: Regenerate.
5666 2012-04-18 Pedro Alves <palves@redhat.com>
5668 Reimport the update-copyright module from gnulib
5669 (250b80067c1e1d8faa0c42fb572f721975b929c5).
5671 * configure: Regenerate.
5672 * gnulib/Makefile.am: Update.
5673 * gnulib/Makefile.in: Regenerate.
5674 * gnulib/extra/update-copyright: Update.
5675 * gnulib/m4/gnulib-cache.m4: Update.
5676 * gnulib/m4/gnulib-comp.m4: Update.
5678 2012-04-18 Tristan Gingold <gingold@adacore.com>
5680 * configure.ac (aix): Put -lpthread into libs.
5681 * configure: Regenerate.
5683 2012-04-18 Tom Tromey <tromey@redhat.com>
5685 * linespec.c (convert_linespec_to_sals): Don't use
5687 (compare_msymbols): Arguments are minsym_and_objfile, not
5688 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
5690 2012-04-18 Pedro Alves <palves@redhat.com>
5692 Revert gnulib/ part of:
5693 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5694 Copyright year update in most files (performed by copyright.sh).
5696 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5698 Fix 64-bit constants on 32-bit hosts.
5699 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
5700 from unsigned long to ULONGEST.
5701 (read_signed_leb128): Change declaration return type from long to
5703 (dwarf2_const_value_attr): Change declaration parameter value from long
5705 (dwarf2_compute_name): Change variable value from long to LONGEST.
5706 (read_unsigned_leb128): Change return type, variable result and some
5707 casts from unsigned long to ULONGEST.
5708 (read_signed_leb128): Change return type, variable result and some
5709 casts from long to LONGEST.
5710 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
5711 value from long to LONGEST.
5712 (dwarf2_const_value): Change variable value from long to LONGEST.
5713 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
5714 plongest and hex_string.
5715 * symtab.h (struct general_symbol_info): Change ivalue from long to
5716 LONGEST, remove the comment.
5717 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
5718 Change SYMBOL_VALUE format strings to use plongest and hex_string.
5720 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
5723 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
5724 * ada-lang.c (ada_discrete_type_high_bound)
5725 (ada_discrete_type_low_bound): Fix function comment. Use
5726 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5727 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
5728 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5729 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
5730 Use TYPE_FIELD_ENUMVAL.
5731 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
5732 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5733 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
5734 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
5736 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
5737 * dwarf2read.c (process_enumeration_scope): Likewise.
5738 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
5740 (class StructMainTypePrettyPrinter): Support also
5741 FIELD_LOC_KIND_ENUMVAL.
5742 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
5744 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5745 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
5746 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
5747 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
5749 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
5750 accommodate enumval.
5751 (struct call_site): Adjust loc_kind to accommodate enumval.
5752 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
5753 (TYPE_FIELD_ENUMVAL): New macros.
5754 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
5755 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
5757 * p-typeprint.c (pascal_type_print_base): Likewise.
5758 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
5760 * python/lib/gdb/types.py (make_enum_dict): Likewise.
5761 * python/py-type.c (convert_field): New variable addrstring. Use
5762 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5763 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
5764 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
5765 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
5767 * valprint.c (generic_val_print): Likewise.
5769 2012-04-17 Doug Evans <dje@google.com>
5771 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
5773 * dwarf2read.c: Whitespace fixes.
5774 (lookup_signatured_type): Tweak comment.
5775 (get_die_type_at_offset): Fix comment.
5777 2012-04-17 Joel Brobecker <brobecker@adacore.com>
5779 * xcoffread.c (xcoff_secnum_to_sections): New function.
5780 (secnum_to_section, secnum_to_bfd_section): Reimplement
5781 using xcoff_secnum_to_sections. Rename "secnum" parameter
5783 (RECORD_MINIMAL_SYMBOL): Delete.
5784 (record_minimal_symbol): New function.
5785 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
5786 by call to record_minimal_symbol and set misc_func_recorded
5787 to 1. Set last_csect_sec to the XCOFF section index instead
5788 of GDB's section_offset index. Update calls to
5789 prim_record_minimal_symbol_and_info to pass the BFD section
5792 2012-04-17 Joel Brobecker <brobecker@adacore.com>
5794 * xcoffread.c (read_xcoff_symtab): Delete variables
5795 last_csect_val and last_csect_sec and associated code.
5797 2012-04-17 Doug Evans <dje@google.com>
5799 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
5800 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5801 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
5802 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
5804 * cleanups.h: New file.
5805 * cleanups.c: New file.
5806 * Makefile.in (SFILES): Add cleanups.c.
5807 (HFILES_NO_SRCDIR): Add cleanups.h.
5808 (COMMON_OBS): Add cleanups.o.
5809 * defs.h (struct cleanup): Moved to cleanups.h.
5810 (do_cleanups,do_final_cleanups): Ditto.
5811 (discard_cleanups,discard_final_cleanups): Ditto
5812 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5813 (save_cleanups,save_final_cleanups): Ditto.
5814 (restore_cleanups,restore_final_cleanups): Ditto.
5815 (null_cleanup): Ditto.
5816 (make_my_cleanup,make_my_cleanup2): Ditto.
5817 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5818 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
5819 (do_cleanups,do_final_cleanups): Ditto.
5820 (discard_cleanups,discard_final_cleanups): Ditto
5821 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5822 (save_cleanups,save_final_cleanups): Ditto.
5823 (restore_cleanups,restore_final_cleanups): Ditto.
5824 (null_cleanup): Ditto.
5825 (make_my_cleanup,make_my_cleanup2): Ditto.
5826 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5828 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
5830 (make_cleanup_dyn_string_delete): Ditto.
5831 (make_cleanup_ui_file_delete): Ditto.
5832 (make_cleanup_ui_out_redirect_pop): Ditto.
5833 (make_cleanup_free_section_addr_info): Ditto.
5834 (make_cleanup_restore_integer): Ditto.
5835 (make_cleanup_unpush_target): Ditto.
5836 (make_cleanup_value_free_to_mark): Ditto.
5837 (make_cleanup_value_free): Ditto.
5838 (make_cleanup_free_so): Ditto.
5840 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5842 New option "set debug auto-load".
5843 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
5844 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
5845 (auto_load_safe_path_vec_update)
5846 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
5848 (file_is_auto_load_safe): New parameters debug_fmt and ....
5849 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
5850 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
5851 caller by explanatory string.
5852 (_initialize_auto_load): Register "set debug auto-load".
5853 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
5855 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5856 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
5857 by explanatory string.
5858 * main.c (captured_main): Likewise.
5859 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
5860 (source_section_scripts): Likewise.
5862 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5864 New option "set auto-load safe-path".
5865 * NEWS: New commands "set auto-load safe-path"
5866 and "show auto-load safe-path".
5867 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
5868 (auto_load_safe_path, auto_load_safe_path_vec)
5869 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
5870 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
5871 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
5872 (source_gdb_script_for_objfile): New variable is_safe. Call
5873 file_is_auto_load_safe. Return if it is not.
5874 (struct loaded_script): New field loaded.
5875 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
5876 (print_script): Use LOADED indicator instead of FULL_PATH. Change
5877 output "Missing" to "No".
5878 (_initialize_auto_load): New variable cmd. Initialize
5879 auto_load_safe_path. Register "set auto-load safe-path",
5880 "show auto-load safe-path" and "add-auto-load-safe-path".
5881 * auto-load.h (maybe_add_script): Add parameter loaded.
5882 (file_is_auto_load_safe): New declaration.
5883 * config.in: Regenerate.
5884 * configure: Regenerate.
5885 * configure.ac: New parameters --with-auto-load-safe-path
5886 and --without-auto-load-safe-path.
5887 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5888 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
5889 * main.c (captured_main): Check file_is_auto_load_safe for
5891 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
5892 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
5893 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
5896 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5898 auto-load: Implementation.
5899 * NEWS: New descriptions for "info auto-load",
5900 "info auto-load gdb-scripts", "info auto-load python-scripts",
5901 "info auto-load local-gdbinit" and "info auto-load libthread-db".
5902 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
5903 and "show auto-load-scripts". New description for "set auto-load",
5904 "show auto-load", "set auto-load gdb-scripts",
5905 "show auto-load gdb-scripts", "set auto-load python-scripts",
5906 "show auto-load python-scripts", "set auto-load local-gdbinit",
5907 "show auto-load local-gdbinit", "set auto-load libthread-db" and
5908 "show auto-load libthread-db".
5909 * auto-load.c: Remove include python/python-internal.h. Add includes
5910 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
5912 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
5913 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
5914 (gdbpy_global_auto_load): Rename to ...
5915 (global_auto_load): ... here.
5916 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5917 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
5918 (script_language_gdb, source_gdb_script_for_objfile): New.
5919 (struct loaded_script): New field language.
5920 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
5922 (maybe_add_script): Add parameter language. Drop redundant
5923 entry.full_path initialization. Initialize entry.language and
5925 (auto_load_objfile_script): Change parameter suffix to language.
5926 Remove the call of maybe_add_script.
5927 Call language->source_script_for_objfile.
5928 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
5930 (collect_matching_scripts): Adjust it for
5931 struct collect_matching_scripts_data.
5932 (auto_load_info_scripts_pattern_nl): New variable.
5933 (info_auto_load_scripts): Rename to ...
5934 (auto_load_info_scripts): ... here, add parameter language. Adjust it
5935 for struct collect_matching_scripts_data.
5936 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
5937 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
5938 (auto_load_show_cmdlist_get, info_auto_load_cmd)
5939 (auto_load_info_cmdlist_get): New.
5940 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
5941 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
5942 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
5943 "info auto-load local-gdbinit".
5944 * auto-load.h (struct script_language): New.
5945 (gdbpy_global_auto_load): Rename to ...
5946 (global_auto_load): ... here.
5947 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5948 (auto_load_local_gdbinit_loaded): New declarations.
5949 (maybe_add_script): New parameter language.
5950 (auto_load_objfile_script): Change parameter suffix to language.
5951 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
5952 (auto_load_info_scripts, auto_load_set_cmdlist_get)
5953 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
5955 * linux-thread-db.c: Include auto-load.h and ctype.h.
5956 (auto_load_thread_db, show_auto_load_thread_db): New.
5957 (struct thread_db_info): New field filename.
5958 (delete_thread_db_info): Call xfree for FILENAME.
5959 (try_thread_db_load): Initialize FILENAME.
5960 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
5961 if !AUTO_LOAD_THREAD_DB.
5962 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
5963 (_initialize_thread_db): Install auto_load_thread_db
5964 as "set auto-load libthread-db" and install info_auto_load_libthread_db
5965 as "info auto-load libthread-db".
5966 * main.c (captured_main): Rename gdbpy_global_auto_load to
5967 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
5968 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
5969 (print_gdb_help): Extend the help for 'local init file'.
5970 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
5971 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
5972 (auto_load_scripts): Rename to ...
5973 (auto_load_python_scripts): ... here, update the comment.
5974 (gdbpy_load_auto_script_for_objfile): New declaration.
5975 (show_auto_load_python_scripts, script_language_python)
5976 (gdbpy_load_auto_script_for_objfile): New.
5977 (source_section_scripts): Refactor the code.
5978 (load_auto_scripts_for_objfile): Rename to ...
5979 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
5980 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
5981 (info_auto_load_python_scripts): New.
5982 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
5983 Rename "set auto-load-scripts" to "set auto-load python-scripts".
5984 Register "set auto-load-scripts" as its deprecated alias. Register
5985 "info auto-load python-scripts". Register "info auto-load-scripts" as
5986 its deprecated alias.
5987 (load_auto_scripts_for_objfile): Rename to ...
5988 (gdbpy_load_auto_scripts_for_objfile): ... here.
5989 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
5990 (gdbpy_load_auto_scripts_for_objfile): ... here.
5992 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5994 auto-load: Move files.
5995 * Makefile.in (SFILES): Add auto-load.c.
5996 (HFILES_NO_SRCDIR): Add auto-load.h.
5997 (COMMON_OBS): Add auto-load.o.
5998 (distclean): Change .gdbinit for gdb-gdb.gdb.
5999 * auto-load.c: New file, with parts from python/py-auto-load.c.
6000 * auto-load.h: New file, with parts from python/python.h.
6001 * configure: Regenerate.
6002 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6003 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6004 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6005 * main.c: Include auto-load.h.
6006 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6007 command.h, observer.h and progspace.h to auto-load.c. Add include
6009 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6010 (struct loaded_script, auto_load_pspace_data)
6011 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6012 (hash_loaded_script_entry, eq_loaded_script_entry)
6013 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6014 (maybe_add_script): Move to auto-load.c.
6015 (source_section_scripts): Change maybe_add_script parameters passing,
6016 use script_not_found_warning_print.
6017 (clear_section_scripts, auto_load_objfile_script)
6018 (auto_load_new_objfile, loaded_script_ptr)
6019 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6020 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6021 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6022 auto_load_new_objfile and info_auto_load_scripts initizations to
6024 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6026 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6029 * charset.c (find_charset_names): Remove variables ix and elt.
6030 Use free_char_ptr_vec.
6031 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6032 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6033 debugdir_end. New variable debugdir_len.
6034 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6035 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6037 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6038 and elt. Use free_char_ptr_vec.
6039 * source.c (add_path): Remove variables argv, arg and argv_index.
6040 New variables dir_vec, back_to, ix and name.
6041 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6042 make_cleanup_freeargv. Remove variable separator. Simplify the code
6043 no longer expecting DIRNAME_SEPARATOR.
6044 (openp): Remove variable p, p1 and len. New variables dir_vec,
6045 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6046 no longer expecting DIRNAME_SEPARATOR.
6047 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6048 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6050 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6051 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6052 (dirnames_to_char_ptr_vec): New functions.
6054 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6057 * source.c (add_path): Remove always true conditional 'p == 0' and
6058 unindent its code block.
6060 2012-04-17 Pedro Alves <palves@redhat.com>
6062 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6063 (FIELD_BITPOS_LVAL): ... this.
6064 (FIELD_BITPOS): New.
6065 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6066 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6067 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6069 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6071 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6072 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6073 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6076 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6078 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6079 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6080 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6081 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6082 * jv-lang.c (java_link_class_type): Likewise, once.
6083 * stabsread.c (read_enum_type): Likewise.
6085 2012-04-16 Yao Qi <yao@codesourcery.com>
6087 * common/agent.c (agent_run_command): Add one more parameter `len'.
6089 * common/agent.h: Update declaration.
6090 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6092 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6094 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6097 * value.c (value_actual_type): New function.
6098 * value.h (value_actual_type): New declaration.
6099 * varobj.c (update_type_if_necessary): New function.
6100 (varobj_create): Call value_actual_type instead of
6102 (install_dynamic_child): distinct changed and type changed MI variable
6104 (update_dynamic_varobj_children): Updated for install_dynamic_child
6105 change. All callers updated.
6106 (varobj_update): Support for MI variable object type change if
6107 the value changed and RTTI is used to determine the type.
6108 (create_child_with_value): Call value_actual_type instead of
6110 (adjust_value_for_child_access): Extended with a new parameter which
6111 specify whether the given value should be casted to enclosing type.
6112 All callers updated.
6114 2012-04-14 Yao Qi <yao@codesourcery.com>
6116 Import gnulib module inttypes from git
6117 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6118 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6119 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6120 gnulib/m4/inttypes-pri.m4
6121 * aclocal.m4, config.in, configure: Regenerated.
6122 * gnulib/Makefile.am: Update.
6123 * gnulib/Makefile.in: Update.
6124 * gnulib/m4/gnulib-cache.m4: Update.
6125 * gnulib/m4/gnulib-comp.m4: Update.
6126 * gnulib/inttypes.in.h: New.
6127 * gnulib/m4/inttypes-pri.m4: New.
6128 * gnulib/m4/inttypes.m4: New.
6130 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6132 * infrun.c (resume): Update PC address to the real PC after
6133 preparing to do displaced stepping.
6135 2012-04-12 Doug Evans <dje@google.com>
6137 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6138 All callers updated.
6140 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6142 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6144 2012-04-12 Doug Evans <dje@google.com>
6146 * dwarf2read.c (create_all_type_units): Renamed from
6147 create_debug_types_hash_table. All callers updated.
6149 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6150 local type_sig to sig_type, type_offset to type_offset_in_tu.
6151 (hash_signatured_type): Renamed from hash_type_signature,
6152 all callers updated.
6153 (eq_signatured_type): Renamed from eq_type_signature,
6154 all callers updated.
6155 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6156 (process_enumeration_scope): Ditto.
6157 (lookup_signatured_type_at_offset): Ditto.
6158 (load_full_type_unit, read_signatured_type): Ditto.
6160 2012-04-12 Yao Qi <yao@codesourcery.com>
6162 * remote.c (async_remote_interrupt): Correct function name in
6164 (async_remote_interrupt_twice): Ditto.
6166 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6168 * source.c (find_and_open_source): Consistently pass resulting
6169 full path through xfullpath.
6171 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6173 Provide more specific displaced-stepping memory error message.
6174 * infrun.c (displaced_step_prepare): New variable status. Call
6175 target_read_memory instead of read_memory, provide more specific
6178 2012-04-11 Tristan Gingold <gingold@adacore.com>
6181 * darwin-nat.c (darwin_execvp): Revert previous patch.
6183 2012-04-11 Tristan Gingold <gingold@adacore.com>
6186 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6189 2012-04-11 Tristan Gingold <gingold@adacore.com>
6191 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6194 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6196 New command 'explore' which helps explore values and types in
6198 * NEWS: Add an entry about the new 'explore' command.
6199 * data-directory/Makefile.in: Add gdb/command/explore.py
6200 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6201 command using the GDB Python API.
6203 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6205 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6206 extension in jump target calculation.
6208 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6210 * mips-tdep.c (mips32_next_pc): Handle JALX.
6212 2012-04-10 Yao Qi <yao@codesourcery.com>
6214 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6216 2012-04-10 Yao Qi <yao@codesourcery.com>
6218 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6219 and gnulib/m4/gnulib-tool.m4.
6221 2012-04-10 Doug Evans <dje@google.com>
6223 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6224 (load_partial_dies): Clarify comment.
6225 (find_partial_die): Support rereading type units.
6226 Clarify CU handling, if we know offset is in CU, don't search for the
6227 containing CU. Add comment regarding memory waste.
6229 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6231 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6232 i386/x32-avx and i386/x32-avx-linux.
6233 (i386/x32-expedite): New.
6234 (i386/x32-linux-expedite): Likewise.
6235 (i386/x32-avx-expedite): Likewise.
6236 (i386/x32-avx-linux-expedite): Likewise.
6237 ($(outdir)/i386/x32.dat): Likewise.
6238 ($(outdir)/i386/x32-linux.dat): Likewise.
6239 ($(outdir)/i386/x32-avx.dat): Likewise.
6240 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6242 * features/i386/x32-avx-linux.xml: New file.
6243 * features/i386/x32-avx.xml: Likewise.
6244 * features/i386/x32-core.xml: Likewise.
6245 * features/i386/x32-linux.xml: Likewise.
6246 * features/i386/x32.xml: Likewise.
6248 * features/i386/x32-avx-linux.c: New. Generated.
6249 * features/i386/x32-avx.c: Likewise.
6250 * features/i386/x32-linux.c: Likewise.
6251 * features/i386/x32.c: Likewise.
6252 * regformats/i386/x32-avx-linux.dat: Likewise.
6253 * regformats/i386/x32-avx.dat: Likewise.
6254 * regformats/i386/x32-linux.dat: Likewise.
6255 * regformats/i386/x32.dat: Likewise.
6257 2012-04-10 Tristan Gingold <gingold@adacore.com>
6259 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6260 code to kill the inferior.
6262 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6264 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6266 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6268 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6269 (yyvsp): New defines.
6270 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6272 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6274 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6276 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6278 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6281 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6283 * sparc64-tdep.c (sparc64_store_arguments)
6284 (sparc64_store_arguments): Fix coding style.
6286 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6288 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6289 complex floats, adjust some related comments and tighten a related
6291 (sparc64_extract_return_value): Handle complex floats.
6293 2012-04-07 Doug Evans <dje@google.com>
6295 * dwarf2read.c (load_partial_dies): Change condition to assert.
6297 2012-04-06 Doug Evans <dje@google.com>
6299 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6302 2012-04-05 Kevin Buettner <kevinb@redhat.com>
6304 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6306 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6307 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6310 2012-04-05 Keith Seitz <keiths@redhat.com>
6312 * linespec.c (decode_compound): Remove.
6313 (enum offset_relative_sign): New enum.
6314 (struct line_offset): New struct.
6315 (struct linespec): New struct.
6316 (struct linespec_state): Move file_symtabs,
6317 user_filename, and user_function into struct linespec.
6318 Make result an anonymous struct holding vectors of
6319 symbolp and minsym_and_objfile_d.
6320 Add language member.
6321 (enum ls_token_type): New enum.
6322 (linespec_keywords): New array.
6323 (struct ls_token): New struct.
6324 (struct ls_parser): New struct.
6325 (linespec_lexer_lex_number): New function.
6326 (linespec_lexer_lex_keyword): New function.
6327 (is_ada_operator): New function.
6328 (skip_quote_char): New function.
6329 (copy_token_string): New function.
6330 (is_closing_quote_enclosed): New function.
6331 (find_parameter_list_end): New function.
6332 (linespec_lexer_lex_string): New function.
6333 (linespec_lexer_lex_one): New function.
6334 (linespec_lexer_consume_token): New function.
6335 (linespec_lexer_peek_token): New function.
6336 (cplusplus_error): Remove unused function.
6337 (find_methods): Update comment.
6338 (find_toplevel_char): Return const.
6339 (is_objc_method_format): Remove unused function.
6340 (find_toplevel_string): New function.
6341 (is_linespec_boundary): Remove.
6342 (symbol_not_found_error): New function.
6343 (find_method_overload_end): Remove function.
6344 (unexpected_linespec_error): New function.
6345 (keep_name_info): Remove.
6346 (linespec_parse_line_offset): New function.
6347 (linespec_parse_basic): New function.
6348 (canonicalize_linespec): New function.
6349 (decode_line_internal): Remove.
6350 (create_sals_line_offset): New function adapted from
6352 (convert_linespec_to_sals): New function.
6353 (parse_linespec): New function.
6354 (linespec_parser_new): New function.
6355 (linespec_state_destructor): Change parameter type to
6356 struct linespec_state *.
6357 Add language parameter.
6358 Remove freeing of moved members.
6359 (linespec_parser_delete): New function.
6360 (decode_line_full): Use parse_linespec and linespec_parser_new.
6361 (decode_line_1): Likewise.
6362 (decode_indirect): Rename to ...
6363 (linespec_expression_to_pc): ... this and rewrite
6364 to simply find CORE_ADDR, storing this result for later
6366 (locate_first_half): Remove.
6367 (deocde_objc): Add parameter LS.
6368 Initialize new struct collect_info members.
6369 Handle minimal symbols, too.
6370 (decode_compound): Delete.
6371 (lookup_prefix_sym): Rewrite.
6372 (compare_msymbols): New function.
6373 (find_method): Rewrite.
6374 Do not call cplusplus_error.
6375 (symtabs_from_filename): Rewrite.
6376 (collect_function_symbols): Delete.
6377 (find_function_symbols): Rewrite without ARGPTR-style
6379 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6380 (decode_dollar): Adapted and renamed to ...
6381 (linespec_parse_variable): ... this.
6382 (find_linespec_symbols): New function.
6383 (decode_label): Adapted and renamed to ...
6384 (find_label_symbols): ... this.
6385 (decode_digits_list_mode): Add and use LS argument.
6386 (decode_digits_ordinary): Likewise.
6387 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6388 If in list mode, allow any symbol class. Otherwise, only
6389 permit LOC_BLOCK symbols.
6390 (minsym_found): Update comments.
6391 (search_minsyms_for_name): Do not convert the matching symbol
6392 into a SAL. Simply push the symbol and objfile into the
6394 (decode_variable): Delete. Contents adapted into
6395 find_linespec_symbols.
6397 * cp-support.c (SKIP_SPACE): Remove.
6398 (operator_tokens): Remove unused global.
6399 (cp_validate_operator): Remove.
6400 * cp-support.h (cp_validate_operator): Remove declaration.
6402 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6404 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6405 for TYPE_VPTR_FIELDNO.
6406 * valprint.c (valprint_check_validity): Make it global, move the
6407 function comment ...
6408 * value.h (valprint_check_validity): ... to this new declaration.
6410 2012-04-02 Tristan Gingold <gingold@adacore.com>
6412 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6413 the STATE32 api for i386 state.
6414 (i386_darwin_store_inferior_registers): Likewise.
6416 2012-04-02 Tristan Gingold <gingold@adacore.com>
6418 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6420 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6423 2012-04-02 Tristan Gingold <gingold@adacore.com>
6426 * darwin-nat.c (darwin_execvp): Set binary preference.
6428 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6430 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6432 2012-03-30 Tom Tromey <tromey@redhat.com>
6434 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6435 of TRY_CATCH. Fix error handling.
6436 * python/py-value.c (convert_value_from_python): Move 'old'
6437 declaration to innermost scope.
6439 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6440 Andrey Smirnov <andrew.smirnov@gmail.com>
6442 -Wshadow warning fix.
6443 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6444 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6445 Adjust code accordingly.
6447 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6449 * ada-lang.c (symbol_completion_add): Rename parameter
6450 "encoded" into "encoded_p". Ajust code and documentation
6453 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6454 Andrey Smirnov <andrew.smirnov@gmail.com>
6456 -Wshadow warning fix.
6457 * ada-lang.c (symbol_completion_add): Rename parameter
6458 "wild_match" into wild_match_p. Update code and documentation
6461 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6463 * ada-lang.c (symbol_completion_match): Rename parameter
6464 "encoded" into "encoded_p". Ajust code and documentation
6467 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6468 Andrey Smirnov <andrew.smirnov@gmail.com>
6470 -Wshadow warning fix.
6471 * ada-lang.c (symbol_completion_match): Rename parameter
6472 "wild_match" into "wild_match_p". Adjust code and function
6473 documentation accordingly.
6475 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6476 Andrey Smirnov <andrew.smirnov@gmail.com>
6478 -Wshadow warning fix.
6479 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6480 "symbol_info" into "info". Adjust code accordingly.
6481 (ada_lookup_symbol): Likewise.
6483 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6485 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6486 of this function's documentation.
6488 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6489 Andrey Smirnov <andrew.smirnov@gmail.com>
6491 -Wshadow warning fix.
6492 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6493 variable into "wild_match_p". Adjust code accordingly.
6495 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6496 Andrey Smirnov <andrew.smirnov@gmail.com>
6498 -Wshadow warning fix.
6499 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6500 parameter into "wild_match_p". Adjust code accordingly.
6501 Document this parameter in the function description.
6503 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6504 Andrey Smirnov <andrew.smirnov@gmail.com>
6506 -Wshadow warning fix.
6507 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6508 "wild_match" parameter to "wild_match_p" (-Wshadow).
6510 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6512 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6513 in function documentation.
6515 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6516 Andrey Smirnov <andrew.smirnov@gmail.com>
6518 -Wshadow warning fix.
6519 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6520 variable into wild_match_p. Adjust code accordingly.
6522 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6523 Andrey Smirnov <andrew.smirnov@gmail.com>
6525 * ada-valprint.c (ada_val_print_1): Move the code handling
6526 TYPE_CODE_ENUM inside its own lexical block. Declare
6527 variables len and val there, instead of in the function's
6528 top level block. Avoid declaring deref_val again in a way
6529 that shadows another variable of the same name declared
6530 in one of the up-level blocks. Just re-use the up-level
6533 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6535 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6536 Replace block_found argument by symbol_info. Adjust
6537 implementation accordingly. Add function documentation.
6538 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6540 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6541 * ada-exp.y (write_object_renaming): Adjust to new
6542 ada_lookup_encoded_symbol API.
6544 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6546 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6549 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
6551 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6552 (v850_register_name): Add the mpu and fpu register names.
6553 (v850e_register_name): Add the mpu and fpu register names.
6554 (v850e2_register_name): New function.
6555 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
6558 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6560 * NEWS: Add entry for Ada varobj support.
6562 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6564 * varobj.c (default_value_is_changeable_p): New function,
6565 extracted from varobj_value_is_changeable_p. Add declaration.
6566 (ada_value_is_changeable_p): New function, extracted from
6567 varobj_value_is_changeable_p. Add declaration.
6568 (struct language_specific): New field "value_is_changeable_p".
6569 (languages): Add entries for new field.
6570 (varobj_create): Set language before calling install_new_value.
6571 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6572 "value_is_changeable_p" language callback.
6574 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6576 * ada-varobj.h, ada-varobj.c: New files.
6577 * Makefile.in (SFILES): Add ada-varobj.c.
6578 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6579 (COMMON_OBS): Add ada-varobj.o.
6581 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6583 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6584 (struct language_specific): New field "value_has_mutated".
6585 (languages): Set field "value_has_mutated" in each entry of array.
6586 (varobj_value_has_mutated): New function.
6587 (varobj_udpdate): Add handling of type mutation.
6588 (value_of_root): Add handling of type mutation.
6589 (ada_value_has_mutated): New function.
6591 2012-03-28 Pedro Alves <palves@redhat.com>
6593 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6594 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6596 2012-03-28 Tom Tromey <tromey@redhat.com>
6598 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6599 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6602 2012-03-28 Tom Tromey <tromey@redhat.com>
6604 * .dir-locals.el: New file.
6606 2012-03-28 Pedro Alves <palves@redhat.com>
6608 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
6610 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6612 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
6615 2012-03-27 Pedro Alves <palves@redhat.com>
6617 Eliminate struct ui_stream.
6619 * ui-out.h (struct ui_stream): Delete.
6620 (ui_out_field_stream): Adjust prototype.
6621 (ui_out_stream_new, ui_out_stream_delete)
6622 (make_cleanup_ui_out_stream_delete): Delete declarations.
6623 * ui-out.c (ui_out_field_stream): Change prototype to take a
6624 ui_file instead of a ui_stream. Adjust.
6625 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
6626 (make_cleanup_ui_out_stream_delete): Delete.
6627 * breakpoint.c (print_breakpoint_location)
6628 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
6629 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6630 * disasm.c (dump_insns): Ditto.
6631 (do_mixed_source_and_assembly, do_assembly_only): Adjust
6633 (gdb_disassembly): Use ui_file/mem_fileopen instead of
6634 ui_stream/ui_out_stream_new.
6635 * infcmd.c (print_return_value): Ditto.
6636 * osdata.c (info_osdata_command): Don't allocate a local
6638 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
6639 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6640 * tracepoint.c (print_one_static_tracepoint_marker): Don't
6641 allocate a local ui_stream.
6642 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
6643 instead of ui_stream/ui_out_stream_new.
6644 (list_args_or_locals): Don't allocate a local ui_stream.
6645 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
6646 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
6647 ui_stream/ui_out_stream_new.
6648 * cli/cli-setshow.c (do_setshow_command): Ditto.
6650 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
6652 * arm-linux-tdep.c (arm_linux_init_abi): Call
6653 set_gdbarch_process_record. Initialize `arm_swi_record' field.
6654 * arm-tdep.c (arm_process_record): New function.
6655 (deallocate_reg_mem): New function.
6656 (decode_insn): New function.
6657 (thumb_record_branch): New function.
6658 (thumb_record_ldm_stm_swi(): New function.
6659 (thumb_record_misc): New function.
6660 (thumb_record_ld_st_stack): New function.
6661 (thumb_record_ld_st_imm_offset): New function.
6662 (thumb_record_ld_st_reg_offset(): New function.
6663 (thumb_record_add_sub_cmp_mov): New function.
6664 (thumb_record_shift_add_sub): New function.
6665 (arm_record_coproc_data_proc): New function.
6666 (arm_record_coproc): New function.
6667 (arm_record_b_bl): New function.
6668 (arm_record_ld_st_multiple): New function.
6669 (arm_record_ld_st_reg_offset): New function.
6670 (arm_record_ld_st_imm_offset): New function.
6671 (arm_record_data_proc_imm): New function.
6672 (arm_record_data_proc_misc_ld_str): New function.
6673 (arm_record_extension_space): New function.
6674 (arm_record_strx): New function.
6675 (sbo_sbz): New function.
6676 (struct insn_decode_record): New structure for arm insn record.
6677 (REG_ALLOC): New macro for reg allocations.
6678 (MEM_ALLOC): New macro for memory allocations.
6679 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
6681 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
6683 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
6684 (store_register): Likewise.
6686 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
6688 * MAINTAINERS (Write After Approval): Add myself to the list.
6690 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6692 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
6693 Describe also the option "auto".
6695 2012-03-22 Richard Henderson <rth@redhat.com>
6697 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
6698 * sparc-nat.c (sparc_xfer_wcookie): Make static.
6700 2012-03-22 Richard Henderson <rth@redhat.com>
6702 * jit.c (jit_read_code_entry): Compute alignment and offset of
6703 int64_t member before computing entry_size.
6705 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6707 Python scripting: Add new method Value.referenced_value to
6708 gdb.Value which can dereference pointer as well as reference
6710 * NEWS: Add entry under 'Python scripting' about the new method
6711 Value.referenced_value on gdb.Value objects.
6712 * python/py-value.c (valpy_referenced_value): New function
6713 defining a new method on gdb.Value objects which can dereference
6714 pointer and reference values.
6716 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6718 * MAINTAINERS (Write After Approval): Add myself to the list.
6720 2012-03-21 Kevin Buettner <kevinb@redhat.com>
6722 * symtab.c (skip_prologue_sal): Change test to check for "main()"
6723 in addition to "main".
6725 2012-03-21 Joel Brobecker <brobecker@adacore.com>
6727 * expression.h (op_name): Add declaration.
6728 * expprint.c (op_name): Remove declaration. Make non-static.
6729 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
6731 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
6733 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
6735 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
6736 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
6737 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
6738 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
6739 (linux_nat_get_siginfo): Likewise.
6740 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
6741 (linux_nat_get_siginfo): Likewise.
6742 * linux-tdep.c (linux_get_siginfo_type): Likewise.
6743 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
6744 * procfs.c (gdb_siginfo_t): Likewise.
6746 2012-03-21 Mike Frysinger <vapier@gentoo.org>
6748 * .gitignore: Ignore more files.
6750 2012-03-20 Pedro Alves <palves@redhat.com>
6752 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
6755 2012-03-20 Yao Qi <yao@codesourcery.com>
6757 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
6760 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6762 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
6763 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
6764 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
6766 * dwarf2expr.h (cu_offset, sect_offset): New types.
6767 (struct dwarf_expr_context_funcs) <dwarf_call>
6768 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
6770 (struct dwarf_expr_context) <len>: Improve the comment.
6771 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
6772 cu_offset and sect_offset.
6773 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
6774 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
6775 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
6776 * dwarf2loc.h: Include dwarf2expr.h.
6777 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
6779 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
6780 Improve the comment.
6781 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
6782 (struct signatured_type, struct line_header, struct partial_die_info)
6783 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
6784 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
6785 (get_die_type_at_offset, create_cus_from_index)
6786 (create_signatured_type_table_from_index, dw2_get_file_names)
6787 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
6788 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
6789 (create_debug_types_hash_table, process_psymtab_comp_unit)
6790 (load_partial_comp_unit, create_all_comp_units)
6791 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
6792 (load_full_comp_unit, dwarf2_physname, read_import_statement)
6793 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6794 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
6795 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
6796 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
6797 (find_partial_die, read_attribute_value, lookup_die_type)
6798 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
6799 (is_ref_attr): New function comment.
6800 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
6801 Use cu_offset and sect_offset.
6802 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
6803 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
6804 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
6805 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
6806 (offset_and_type_hash, offset_and_type_eq, set_die_type)
6807 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
6808 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
6811 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6814 * python/py-auto-load.c (source_section_scripts): New variable back_to.
6815 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
6817 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
6819 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6821 * NEWS: Describe new options --init-command=FILE, -ix and
6822 --init-eval-command=COMMAND, -iex.
6823 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
6824 CMDARG_INIT_COMMAND.
6825 (captured_main): New enum items OPT_IX and OPT_IEX. Add
6826 "init-command", "init-eval-command", "ix" and "iex" to the variable
6827 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
6828 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
6829 (print_gdb_help): Describe --init-command=FILE, -ix and
6830 --init-eval-command=COMMAND, -iex.
6832 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6835 * main.c (struct cmdarg): Move it here from main. Add more comments.
6836 (cmdarg_s, VEC (cmdarg_s)): New.
6837 (main): Move struct cmdarg from here. New variables cmdarg_vec and
6838 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
6839 Install cleanup for cmdarg_vec. Update filling for options 'x' and
6840 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
6843 2012-03-19 Tom Tromey <tromey@redhat.com>
6845 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
6847 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6850 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
6853 2012-03-16 Chris January <chris.january@allinea.com>
6855 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
6858 2012-03-16 Chris January <chris.january@allinea.com>
6860 * source.c (add_path): Use memmove instead of strcpy because the
6863 2012-03-16 Joel Brobecker <brobecker@adacore.com>
6865 * value.h (set_value_parent): Add declaration.
6866 * value.c (set_value_parent): New function.
6867 (value_address): If VALUE->PARENT is not NULL, then use it as
6868 the base address instead of VALUE->LOCATION.address.
6869 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
6870 the same as OBJ's address. Adjust V's offset accordingly.
6873 2012-03-16 Gary Benson <gbenson@redhat.com>
6875 PR breakpoints/10738
6876 * dwarf2read.c (use_deprecated_index_sections): New global.
6877 (struct partial_die_info): New member may_be_inlined.
6878 (read_partial_die): Set may_be_inlined where appropriate.
6879 (add_partial_subprogram): Add partial symbols for partial
6880 DIEs that may be inlined.
6881 (new_symbol_full): Add inlined subroutines to the current
6883 (write_psymtabs_to_index): Bump version number.
6884 (dwarf2_read_index): Read only version 6 indices unless
6885 use_deprecated_index_sections is set.
6886 * linespec.c (symbol_and_data_callback): New structure.
6887 (iterate_inline_only): New function.
6888 (iterate_over_all_matching_symtabs): New argument
6889 "include_inline". If nonzero, also call the callback for
6890 symbols representing inlined subroutines.
6891 (lookup_prefix_sym): Pass extra argument to the above.
6892 (find_function_symbols): Likewise.
6893 (add_matching_symbols_to_info): Likewise.
6894 * NEWS: Mention that GDB can now set breakpoints on inlined
6897 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6899 * p-typeprint.c (pascal_type_print_method_args):
6900 Fix display of parameter of methods.
6902 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6904 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
6905 Add missing prototype.
6907 2012-03-16 Yao Qi <yao@codesourcery.com>
6908 Jan Kratochvil <jan.kratochvil@redhat.com>
6910 Fix false compilation warning.
6911 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
6913 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
6914 Pedro Alves <pedro@codesourcery.com>
6916 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
6917 (arm_register_g_packet_guesses): New function.
6918 (arm_gdbarch_init): Don't force a target description with
6919 registers when the executable is detected as M-profile. Instead
6920 set gdbarch->tdep->is_m. Register `g' packet guesses.
6921 (_initialize_arm_tdep): Initialize the new target description.
6922 * features/arm-with-m-fpa-layout.xml: New description.
6923 * features/arm-with-m-fpa-layout.c: New, generated.
6925 2012-03-15 Joel Brobecker <brobecker@adacore.com>
6927 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
6928 Update function description.
6929 (insert_bp_location): Do not wipe bl->target_info out.
6930 * mem-break.c: #include "gdb_string.h".
6931 (default_memory_insert_breakpoint): Do not call target_read_memory
6932 with a pointer to the breakpoint's shadow_contents buffer. Use
6933 a local buffer instead.
6934 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
6936 2012-03-15 Tom Tromey <tromey@redhat.com>
6938 * NEWS: Mention "info vtbl", not "info vtable".
6939 * cp-support.c (info_vtbl_command): Fix comment.
6940 (_initialize_cp_support): Fix text.
6942 2012-03-15 Tom Tromey <tromey@redhat.com>
6944 * cp-valprint.c (cp_print_value_fields): Use
6945 print_function_pointer_address for vtable slot.
6947 2012-03-15 Tom Tromey <tromey@redhat.com>
6949 * gnu-v3-abi.c (struct value_and_voffset): New.
6950 (hash_value_and_voffset, eq_value_and_voffset)
6951 (compare_value_and_voffset, compute_vtable_size)
6952 (print_one_vtable, gnuv3_print_vtable): New functions.
6953 (init_gnuv3_ops): Initialize 'print_vtable' field.
6954 * cp-support.c (info_vtbl_command): New function.
6955 (_initialize_cp_support): Add "info vtbl".
6956 * cp-abi.h (cplus_print_vtable): Declare.
6957 (struct cp_abi_ops) <print_vtable>: New field.
6958 * cp-abi.c (cplus_print_vtable): New function.
6961 2012-03-15 Tom Tromey <tromey@redhat.com>
6963 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
6964 iterate_over_symbols.
6966 2012-03-14 Doug Evans <dje@google.com>
6968 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
6969 DW_OP_GNU_parameter_ref.
6971 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6973 Fix double prompt of 'interpreter-exec mi'.
6974 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
6975 (mi_interpreter_resume): use it.
6976 (mi_execute_command_input_handler): New function.
6977 * mi/mi-main.c (mi_execute_command): Move prompt printing to
6978 mi_execute_command_input_handler.
6980 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
6982 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
6984 (darwin_debug_port_info): Make static.
6985 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
6986 * machoread.c (_initialize_machoread): Add prototype.
6987 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
6988 (i386_darwin_set_control, i386_darwin_get_control)
6989 i386_darwin_dr_set_addr, i386_darwin_get_addr)
6990 i386_darwin_get_status, i386_darwin_get_control):
6991 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
6993 2012-03-13 Joel Brobecker <brobecker@adacore.com>
6995 * ax-gdb.c (gen_usual_unary): Remove special handling of
6996 enum and bool types.
6998 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7000 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7002 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7004 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7006 2012-03-13 Chris January <chris.january@allinea.com>
7008 * aix-thread.c (fill_sprs): Store the floating point registers
7009 at the correct offsets into vals.
7011 2012-03-13 Doug Evans <dje@google.com>
7013 * NEWS: Mention symbol-reloading has been deleted.
7014 * symfile.c (symbol_reloading): Delete.
7015 (show_symbol_reloading): Delete.
7016 (_initialize_symfile): Delete set/show symbol-reloading.
7018 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7019 read_in_chain until we have successfully read it in.
7020 (load_full_comp_unit): Ditto.
7021 (read_signatured_type): Add comment.
7023 2012-03-13 Chris January <chris.january@allinea.com>
7025 * stabsread.c (fix_common_block): Change type of valu argument
7028 2012-03-13 Chris January <chris.january@allinea.com>
7030 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7033 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7035 * common/linux-procfs.c (linux_proc_get_int): New, from
7036 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7038 (linux_proc_get_tgid): Only call linux_proc_get_int.
7039 (linux_proc_get_tracerpid): New.
7040 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7041 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7042 linux_proc_pid_has_state.
7043 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7044 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7045 (linux_ptrace_attach_warnings): New.
7046 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7048 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7049 (linux_nat_attach): New variables ex, buffer, message and message_s.
7050 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7052 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7054 * Makefile.in (linux-ptrace.o): New.
7055 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7057 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7058 * common/linux-ptrace.c: New file.
7059 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7060 * config/arm/linux.mh: Likewise.
7061 * config/i386/linux.mh: Likewise.
7062 * config/i386/linux64.mh: Likewise.
7063 * config/ia64/linux.mh: Likewise.
7064 * config/m32r/linux.mh: Likewise.
7065 * config/m68k/linux.mh: Likewise.
7066 * config/mips/linux.mh: Likewise.
7067 * config/pa/linux.mh: Likewise.
7068 * config/powerpc/linux.mh: Likewise.
7069 * config/powerpc/ppc64-linux.mh: Likewise.
7070 * config/powerpc/spu-linux.mh: Likewise.
7071 * config/s390/s390.mh: Likewise.
7072 * config/sparc/linux.mh: Likewise.
7073 * config/sparc/linux64.mh: Likewise.
7074 * config/xtensa/linux.mh: Likewise.
7075 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7076 common/linux-procfs.c.
7077 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7079 2012-03-13 Hui Zhu <teawater@gmail.com>
7080 Pedro Alves <palves@redhat.com>
7082 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7083 CREATE_BREAKPOINT_FLAGS_INSERTED.
7084 (create_breakpoint_sal, create_breakpoints_sal)
7085 (base_breakpoint_create_breakpoints_sal)
7086 (tracepoint_create_breakpoints_sal)
7087 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7089 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7090 (ftrace_command, strace_command): Adjust.
7091 (create_tracepoint_from_upload): Pass
7092 CREATE_BREAKPOINT_FLAGS_INSERTED.
7093 * breakpoint.h (enum breakpoint_create_flags): New.
7094 (create_breakpoint): New flags parameter.
7095 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7096 * python/py-breakpoint.c (bppy_init): Adjust.
7097 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7098 * spu-tdep.c (spu_catch_start): Adjust.
7100 2012-03-13 Pedro Alves <palves@redhat.com>
7101 Hui Zhu <teawater@gmail.com>
7102 Yao Qi <yao@codesourcery.com>
7104 * remote.c (struct remote_state): New field `starting_up'.
7105 (remote_start_remote): Set and clear it.
7106 (remote_can_download_tracepoint): If starting up, return false.
7108 2012-03-13 Yao Qi <yao@codesourcery.com>
7110 * inferior.h (struct inferior): Remove fields any_syscall_count,
7111 syscalls_counts and total_syscalls_count. Move them to new
7112 struct catch_syscall_inferior_data in breakpoint.c.
7113 * breakpoint.c: Call DEF_VEC_I(int).
7114 (struct catch_syscall_inferior_data): New.
7115 (get_catch_syscall_inferior_data): New.
7116 (catch_syscall_inferior_data_cleanup): New.
7117 (insert_catch_syscall): Update to access data in
7118 struct catch_syscall_inferior_data.
7119 (insert_catch_syscall): Likewise.
7120 (remove_catch_syscall): Likewise.
7121 (remove_catch_syscall): Likewise.
7122 (is_syscall_catchpoint_enabled): Likewise.
7123 (add_catch_command): Likewise.
7124 (_initialize_breakpoint): Register cleanup.
7125 * breakpoint.h: Removed DEF_VEC_I(int).
7126 * dwarf2loc.c: Call DEF_VEC_I(int).
7127 * mi/mi-main.c: Likewise.
7129 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7131 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7133 2012-03-12 Chris January <chris.january@allinea.com>
7135 * aix-thread.c (_initialize_aix_thread): Add prototype.
7136 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7137 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7139 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7141 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7142 include of "amd64-nat.h".
7144 2012-03-12 Tom Tromey <tromey@redhat.com>
7146 * buildsym.c (record_pending_block): Now static.
7147 * buildsym.h: (record_pending_block): Remove.
7149 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7151 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7153 2012-03-09 Tom Tromey <tromey@redhat.com>
7155 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7156 producer_is_gxx_lt_4_6>: New fields.
7157 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7159 2012-03-09 Tom Tromey <tromey@redhat.com>
7161 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7163 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7165 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7168 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7170 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7172 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7174 Fix -Wmissing-prototypes build.
7175 * arm-linux-nat.c (get_thread_id): Make it static.
7176 * xtensa-linux-nat.c (get_thread_id): Likewise.
7178 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7180 * server.c (process_point_options): If a conditional expression
7181 is found, only print a message if remote_debug is nonzero.
7183 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7185 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7186 of internal error for unknown/unsupported types.
7188 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7190 Fix CU relative vs. absolute DIE offsets.
7191 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7192 offset to offset_in_cu.
7193 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7195 (dwarf2_fetch_die_location_block): Rename parameter offset to
7196 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7198 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7200 * libunwind-frame.c: Rename to ...
7201 * ia64-libunwind-tdep.c: ... here.
7202 * libunwind-frame.h: Rename to ...
7203 * ia64-libunwind-tdep.h: ... here.
7204 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7205 ia64-libunwind-tdep.h.
7206 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7207 * README (--with-libunwind): Rename to ...
7208 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7209 * config.in: Regenerate.
7210 * configure: Regenerate.
7211 * configure.ac: New option --with-libunwind-ia64, make the
7212 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7213 Remove AC_DEFINE for HAVE_LIBUNWIND.
7214 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7215 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7216 Rename libunwind-frame in the general comment.
7217 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7218 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7219 Move forward declarations inside #ifndef. Rename libunwind-frame in
7220 the general comment.
7221 * ia64-tdep.c: Rename libunwind-frame.h #include to
7222 ia64-libunwind-tdep.h.
7223 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7224 (ia64_libunwind_descr): Rename libunwind-frame to
7225 ia64-libunwind-tdep in these function comments.
7226 * ia64-tdep.h: Rename libunwind-frame.h #include to
7227 ia64-libunwind-tdep.h.
7228 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7229 ia64-libunwind-tdep in that data comment.
7231 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7233 * libunwind-frame.h (struct frame_unwind): New declaration.
7235 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7237 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7238 "set breakpoint condition-evaluation" command.
7240 2012-03-08 Tristan Gingold <gingold@adacore.com>
7242 * sparc-stub.c: Move to stubs/
7243 * sh-stub.c: Likewise.
7244 * m68k-stub.c: Likewise.
7245 * m32r-stub.c: Likewise.
7246 * i386-stub.c: Likewise.
7248 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7250 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7251 linux_get_siginfo_type.
7253 * m68klinux-nat.c: Include "gdb_proc_service.h".
7254 (PTRACE_GET_THREAD_AREA): Define.
7255 (ps_get_thread_area): New function.
7257 2012-03-08 Yao Qi <yao@codesourcery.com>
7259 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7261 (remote_query_attached): Likewise.
7262 (remote_static_tracepoint_marker_at): Likewise.
7263 (remote_set_permissions): Likewise.
7264 (remote_detach_1, extended_remote_attach_1): Likewise.
7265 (send_g_packet, remote_vkill): Likewise.
7266 (extended_remote_disable_randomization): Likewise.
7267 (remote_add_target_side_condition): Likewise.
7268 (remote_insert_breakpoint): Likewise.
7269 (remote_remove_breakpoint): Likewise.
7270 (remote_insert_watchpoint): Likewise.
7271 (remote_remove_watchpoint): Likewise.
7272 (remote_insert_hw_breakpoint): Likewise.
7273 (remote_insert_hw_breakpoint): Likewise.
7274 (remote_remove_hw_breakpoint): Likewise.
7275 (remote_download_command_source): Likewise.
7276 (remote_download_tracepoint): Likewise.
7277 (remote_download_trace_state_variable): Likewise.
7278 (remote_disable_tracepoint): Likewise.
7279 (remote_trace_set_readonly_regions): Likewise.
7280 (remote_get_tracepoint_status): Likewise.
7281 (remote_trace_find): Likewise.
7282 (remote_get_trace_state_variable_value): Likewise.
7283 (remote_set_disconnected_tracing): Likewise.
7284 (remote_set_circular_trace_buffer): Likewise.
7285 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7286 (remote_use_agent): Likewise.
7287 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7290 2012-03-07 Pedro Alves <palves@redhat.com>
7292 * NEWS: Mention QProgramSignals.
7293 * inferior.h (update_signals_program_target): Declare.
7294 * infrun.c: (update_signals_program_target): New.
7295 (handle_command): Update the target of the new program signals
7297 * remote.c (PACKET_QProgramSignals): New enum.
7298 (last_program_signals_packet): New global.
7299 (remote_program_signals): New.
7300 (remote_start_remote): Update the target with the program signals
7302 (remote_protocol_features): Add entry for QPassSignals.
7303 (remote_open_1): Free anc clear last_program_signals_packet.
7304 (init_remote_ops): Install remote_program_signals.
7305 * target.c (update_current_target): Adjust.
7306 (target_program_signals): New.
7307 * target.h (struct target_ops) <to_program_signals>: New field.
7308 (target_program_signals): Declare.
7310 2012-03-07 Pedro Alves <palves@redhat.com>
7312 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7315 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7317 * m68klinux-nat.c (getregs_supplies): Make static.
7318 (getfpregs_supplies): Likewise.
7319 (have_ptrace_getregs): Likewise.
7321 2012-03-06 Joel Brobecker <brobecker@adacore.com>
7323 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7324 in call to get_die_type_at_offset.
7326 2012-03-06 Stan Shebs <stan@codesourcery.com>
7328 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7329 * mi/mi-cmd-disas.c: Ditto.
7330 * mi/mi-cmd-env.c: Ditto.
7331 * mi/mi-cmd-file.c: Ditto.
7332 * mi/mi-cmd-stack.c: Ditto.
7333 * mi/mi-cmd-target.c: Ditto.
7334 * mi/mi-cmd-var.c: Ditto.
7335 * mi/mi-cmds.c: Ditto.
7336 * mi/mi-cmds.h: Ditto.
7337 * mi/mi-console.c: Ditto.
7338 * mi/mi-getopt.c: Ditto.
7339 * mi/mi-getopt.h: Ditto.
7340 * mi/mi-interp.c: Ditto.
7341 * mi/mi-main.c: Ditto.
7342 * mi/mi-out.c: Ditto.
7343 * mi/mi-parse.c: Ditto.
7344 * mi/mi-parse.h: Ditto.
7345 * mi/mi-symbol-cmds.c: Ditto.
7347 * mi/mi-getopt.h: Move mi_opt struct up.
7348 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7350 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7352 2012-03-06 Tom Tromey <tromey@redhat.com>
7354 * proc-service.c (ps_pglobal_lookup): Set the current program
7357 2012-03-06 Pedro Alves <palves@redhat.com>
7359 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7361 2012-03-05 Joel Brobecker <brobecker@adacore.com>
7363 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7365 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7368 * common/linux-osdata.c (linux_common_core_of_thread): New function
7370 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7371 call by linux_common_core_of_thread.
7372 (linux_nat_core_of_thread_1): Remove.
7373 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7374 * linux-thread-db.c: Include linux-osdata.h.
7375 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7376 linux_common_core_of_thread.
7378 2012-03-05 Tom Tromey <tromey@redhat.com>
7380 * value.c (value_primitive_field): Don't fetch contents for
7383 2012-03-05 Tom Tromey <tromey@redhat.com>
7385 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7387 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
7389 * s390-nat.c: Include "gregset.h".
7391 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7393 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7394 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7395 (libunwind_load): New variable so_error, use it for dlerror. Try to
7396 load also LIBUNWIND_SO_7.
7398 2012-03-05 Pedro Alves <palves@redhat.com>
7400 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7401 is not NULL, and remove resulting dead code.
7403 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7405 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7406 prologue to sh_analyze_prologue.
7407 (sh_analyze_prologue): Make better use of such an upper limit, and
7408 generally be more cautious about accessing memory.
7410 2012-03-05 Tom Tromey <tromey@redhat.com>
7412 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7413 _initialize_ia64_hpux_tdep.
7415 2012-03-05 Pedro Alves <palves@redhat.com>
7419 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7420 the register state is clear, supply explicit zero, instead of
7421 marking the register unavailable.
7423 2012-03-05 Tristan Gingold <gingold@adacore.com>
7425 * NEWS: Mention OpenVMS ia64 new target.
7427 2012-03-05 Tristan Gingold <gingold@adacore.com>
7429 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7430 (ia64_unw_accessors, ia64_unw_rse_accessors)
7431 (ia64_libunwind_descr): Declare.
7432 * ia64-vms-tdep.c: New file.
7433 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7434 (ia64_libunwind_descr): Make them public.
7435 * configure.tgt: Add ia64-*-*vms*.
7436 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7437 (ALLDEPFILES): Add ia64-vms-tdep.c
7439 2012-03-05 Tristan Gingold <gingold@adacore.com>
7441 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7442 * remote.c (PACKET_qXfer_uib): New enum value.
7443 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7444 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7445 (_initialize_remote): Call add_packet_config_cmd for
7448 2012-03-05 Tristan Gingold <gingold@adacore.com>
7450 * osabi.c (gdb_osabi_names): Add OpenVMS.
7451 (generic_elf_osabi_sniffer): Likewise.
7452 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
7454 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7456 Removed unused code.
7457 * libunwind-frame.c (libunwind_frame_unwind)
7458 (libunwind_frame_base_address): Remove.
7459 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7461 2012-03-04 Yao Qi <yao@codesourcery.com>
7463 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7464 remove trailing new line.
7465 (agent_run_command, agent_run_command): Add _ markup.
7466 (agent_capability_check): Likewise.
7468 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7470 * breakpoint.c (set_condition_evaluation_mode): Set
7471 CONDITION_EVALUATION_MODE unconditionally.
7473 2012-03-03 Yao Qi <yao@codesourcery.com>
7475 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7476 * common/agent.h: Update declaration.
7477 * inf-child.c (inf_child_use_agent): New.
7478 (inf_child_can_use_agent): New.
7479 (inf_child_target): Initialize fields `to_use_agent'
7480 and `to_can_use_agent'.
7481 * agent.c (agent_new_objfile): New.
7482 (_initialize_agent): Add agent_new_objfile to new_objfile
7485 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7487 (linux_target_install_ops): Initialize field
7488 `to_static_tracepoint_markers_by_strid'.
7489 * remote.c (free_current_marker): Move it to ...
7490 * tracepoint.c (free_current_marker): ... here. New.
7491 (cleanup_target_stop): New.
7492 * tracepoint.h: Declare free_current_marker.
7493 * NEWS: Add one entry about `info static-tracepoint-marker'.
7495 2012-03-03 Yao Qi <yao@codesourcery.com>
7497 * common/agent.c (agent_loaded_p): New.
7498 (agent_look_up_symbols): New global.
7499 * common/agent.h: Declare agent_loaded_p.
7501 2012-03-03 Yao Qi <yao@codesourcery.com>
7503 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7504 (agent_capability_check, agent_capability_invalidate): New.
7505 (symbol_list): New array element.
7506 * common/agent.h (enum agent_capa): New.
7507 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7509 2012-03-03 Yao Qi <yao@codesourcery.com>
7511 * target.h (struct target_ops) <to_use_agent>: New field.
7512 (struct target_ops) <to_can_use_agent>: New field.
7513 (target_use_agent, target_can_use_agent): New macro.
7514 * target.c (update_current_target): Update.
7515 * remote.c: New enum `PACKET_QAgent'.
7516 (remote_protocol_features): Add a new element.
7517 (remote_use_agent, remote_can_use_agent): New.
7518 (init_remote_ops): Initialize field `can_use_agent' with
7519 remote_can_use_agent. Intiailize field `use_agent' with
7521 * common/agent.c (use_agent): New global.
7522 * common/agent.h: Declare it.
7523 * tracepoint.c (info_static_tracepoint_markers_command): Add
7525 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7526 (COMMON_OBS): Add common/agent.o and agent.o
7527 (common-agent.o): New rule.
7530 2012-03-03 Yao Qi <yao@codesourcery.com>
7532 * common/agent.c: New.
7533 * common/agent.h: New.
7534 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7536 * configure, configh.in: Regenerated.
7538 2012-03-02 Kevin Buettner <kevinb@redhat.com>
7540 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7541 unless it exists for this architecture.
7543 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7545 * language.h (struct language_defn): New "method" la_read_var_value.
7546 * findvar.c: #include "language.h".
7547 (default_read_var_value): Renames read_var_value. Rewrite
7548 function description.
7549 (read_var_value): New function.
7550 * value.h (default_read_var_value): Add prototype.
7551 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7553 (ada_language_defn): Add entry for la_read_var_value.
7554 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7555 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7556 language_defn structures to add entry for new la_read_var_value
7559 2012-03-02 Tom Tromey <tromey@redhat.com>
7560 Pedro Alves <palves@redhat.com>
7562 PR breakpoints/13776:
7563 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7565 (delete_longjmp_breakpoint_at_next_stop): New.
7566 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7567 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7568 before deleting the inferior. Add comments.
7569 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7570 breakpoints immediately, but only on next stop. Move that code
7571 next to where we mark other breakpoints for deletion.
7573 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7575 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7577 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7580 2012-03-02 Pedro Alves <palves@redhat.com>
7582 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7584 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7586 Fix -Wmissing-prototypes build.
7587 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7588 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7589 (gdbsim_has_memory): Likewise.
7591 2012-03-02 Yao Qi <yao@codesourcery.com>
7593 Fix -Wmissing-prototypes build.
7594 * charset.c (phony_iconv_open): Make static.
7595 (phony_iconv_close, phony_iconv): Likewise.
7596 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7597 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7599 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7600 * ser-mingw.c (create_select_thread): Make static.
7601 * windows-termcap.c (tgetent): New prototype.
7602 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7604 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7606 Fix -Wmissing-prototypes build.
7607 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
7608 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
7609 (_initialize_loadable): New prototypes.
7611 2012-03-02 Doug Evans <dje@google.com>
7613 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
7614 abbrev table, read_comp_unit will do it.
7616 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7618 Fix -Wmissing-prototypes build.
7619 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
7620 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
7621 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
7622 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
7623 (_initialize_arm_symbian_tdep): New prototype.
7624 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
7625 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
7626 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
7628 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
7629 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
7631 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
7632 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
7633 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
7635 * moxie-tdep.c (moxie_process_record): Likewise.
7636 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
7637 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
7638 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
7639 (_initialize_rl78_tdep): New prototype.
7640 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
7641 (_initialize_rx_tdep): New prototype.
7642 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
7643 (_initialize_darwin_solib): New prototype.
7644 * solib-spu.c: Include solib-spu.h.
7645 (_initialize_spu_solib): New prototype.
7646 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
7647 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
7648 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
7649 (tic6x_software_single_step): Make it static.
7650 (_initialize_tic6x_tdep): New prototype.
7652 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7654 Fix -Wmissing-prototypes build.
7655 * cris-tdep.c (cris_can_use_hardware_watchpoint)
7656 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
7658 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7660 Fix -Wmissing-prototypes build.
7661 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
7662 (frv_have_stopped_data_address): Remove.
7664 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7666 Fix -Wmissing-prototypes build.
7667 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
7668 * sh-tdep.c: Include sh64-tdep.h.
7669 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
7670 * sh64-tdep.c: Include sh64-tdep.h.
7671 * sh64-tdep.h: New file.
7673 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7675 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
7677 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7679 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
7680 sp_regnum once the gdbarch_init_osabi hook has been called.
7682 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7684 * mips-tdep.c (mips32_bc1_pc): New function.
7685 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
7686 BPOSGE32 and BPOSGE64 instructions.
7687 (deal_with_atomic_sequence): Likewise.
7688 (mips32_instruction_has_delay_slot): Likewise.
7690 2012-03-01 Maciej W. Rozycki <macro@mips.com>
7691 Chris Dearman <chris@mips.com>
7692 Maciej W. Rozycki <macro@codesourcery.com>
7693 Joseph Myers <joseph@codesourcery.com>
7695 * features/mips-dsp.xml: New file.
7696 * features/mips64-dsp.xml: New file.
7697 * features/mips-dsp-linux.xml: New file.
7698 * features/mips64-dsp-linux.xml: New file.
7699 * features/Makefile (WHICH): Add mips-dsp-linux and
7701 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
7702 * features/mips-dsp-linux.c: New file.
7703 * features/mips64-dsp-linux.c: New file.
7704 * regformats/mips-dsp-linux.dat: New file.
7705 * regformats/mips64-dsp-linux.dat: New file.
7706 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
7708 (mips64_linux_register_addr): Likewise.
7709 (mips64_linux_regsets_fetch_registers): Likewise.
7710 (mips64_linux_regsets_store_registers): Likewise.
7711 (mips64_linux_fetch_registers): Update call to
7712 mips64_linux_regsets_fetch_registers.
7713 (mips64_linux_store_registers): Update call to
7714 mips64_linux_regsets_store_registers.
7715 (mips_linux_read_description): Probe for DSP registers.
7716 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
7717 and initialize_tdesc_mips64_dsp_linux.
7718 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
7719 Remove padding of no longer used embedded register slots.
7720 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
7721 (MIPS_RESTART_REGNUM): Redefine enum value.
7722 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
7724 (mips_tx39_reg_names): Likewise.
7725 (mips_linux_reg_names): New array of register names for Linux
7727 (mips_register_name): Check for a null pointer in
7728 mips_processor_reg_names and return an empty string.
7729 (mips_register_type): Exclude embedded registers for the IRIX
7731 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
7732 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
7734 (mips_stab_reg_to_regnum): Handle DSP accumulators.
7735 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
7736 (mips_gdbarch_init): Likewise. Initialize internal register
7737 indices for the Linux ABI. Use dynamic numbers to refer to
7738 registers, as applicable, while parsing the target description.
7739 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
7741 2012-03-01 Joel Brobecker <brobecker@adacore.com>
7743 * frame.h (read_frame_register_unsigned): Fix typo in function
7746 2012-03-01 Pedro Alves <palves@redhat.com>
7748 * jit-reader.in [!__cplusplus]
7749 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
7751 2012-03-01 Pedro Alves <palves@redhat.com>
7753 * configure.ac (build_warnings): Add -Wmissing-prototypes.
7754 * configure: Regenerate.
7756 2012-03-01 Pedro Alves <palves@redhat.com>
7758 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
7759 * breakpoint.c (create_exception_master_breakpoint, trace_command)
7760 (ftrace_command, strace_command): Make static.
7761 * d-lang.c (_initialize_d_language): Declare.
7762 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
7763 * dwarf2loc.c (_initialize_dwarf2loc):
7764 * dwarf2read.c (process_psymtab_comp_unit): Make static.
7765 * exec.c (exec_get_section_table): Make static.
7766 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
7767 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
7768 * inferior.c (remove_inferior_command, add_inferior_command)
7769 (clone_inferior_command): Make static.
7770 * linux-nat.c (linux_nat_thread_address_space)
7771 (linux_nat_core_of_thread): Make static.
7772 * linux-tdep.c (_initialize_linux_tdep): Declare.
7773 * objc-lang.c (_initialize_objc_lang): Declare.
7774 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
7776 (_initialize_opencl_language): Declare.
7777 * record.c (_initialize_record): Declare.
7778 * remote.c (demand_private_info, remote_get_tib_address)
7779 (remote_supports_cond_tracepoints)
7780 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
7782 * skip.c (_initialize_step_skip): Declare.
7783 * symtab.c (skip_prologue_using_lineinfo): Make static.
7784 * tracepoint.c (delete_trace_state_variable)
7785 (trace_variable_command, delete_trace_variable_command)
7786 (get_uploaded_tsv, find_matching_tracepoint_location)
7787 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
7789 * value.c (pack_unsigned_long): Make static.
7790 * varobj.c (varobj_ensure_python_env): Make static.
7791 * windows-tdep.c (_initialize_windows_tdep): Declare.
7792 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
7794 2012-03-01 Pedro Alves <palves@redhat.com>
7796 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
7798 (linux_init_abi): Install it as has_shared_address_space gdbarch
7801 2012-03-01 Pedro Alves <palves@redhat.com>
7803 * observer.c (observer_test_first_notification_function)
7804 (observer_test_second_notification_function)
7805 (observer_test_third_notification_function): Add declarations.
7807 2012-03-01 Pedro Alves <palves@redhat.com>
7809 * common/signals.c (default_target_signal_to_host)
7810 (default_target_signal_from_host): Move ...
7811 * arch-utils.c: ... here.
7812 * arch-utils.h (default_target_signal_to_host)
7813 (default_target_signal_from_host): Declare.
7815 * common/signals.c (target_signal_from_command): Move ...
7816 * infrun.c: ... here.
7817 * inferior.h (target_signal_from_command): Declare.
7818 * target.h (target_signal_from_command)
7819 (default_target_signal_from_host, default_target_signal_to_host):
7820 Delete declarations.
7822 * common/signals.c (_initialize_signals): Delete.
7824 2012-03-01 Pedro Alves <palves@redhat.com>
7826 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
7827 both __cplusplus and !__cplusplus.
7829 2012-03-01 Pedro Alves <palves@redhat.com>
7831 * psymtab.c (find_and_open_source): Delete declaration.
7832 * source.c (find_and_open_source): Move comment ...
7833 * source.h (find_and_open_source): ... to this new declaration.
7835 2012-03-01 Pedro Alves <palves@redhat.com>
7837 * inline-frame.c: Include inline-frame.h.
7839 2012-03-01 Pedro Alves <palves@redhat.com>
7841 * tui/tui-data.c (set_gen_win_origin): Delete.
7842 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
7843 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
7845 2012-03-01 Pedro Alves <palves@redhat.com>
7847 * remote.c (encode_actions): Delete declaration.
7848 * tracepoint.c (encode_actions): Make extern.
7849 * tracepoint.h (encode_actions): Declare.
7851 2012-03-01 Pedro Alves <palves@redhat.com>
7853 * python/py-breakpoint.c: Include python.h.
7854 * python/py-continueevent.c (create_continue_event_object): Make
7856 * python/py-lazy-string.c (stpy_get_type): Make static.
7857 * python/py-newobjfileevent.c (create_new_objfile_event_object):
7859 * python/py-utils.c (unicode_to_target_python_string): Make
7861 * python/py-value.c: Include python.h.
7863 2012-03-01 Pedro Alves <palves@redhat.com>
7865 * inferior.c (delete_threads_of_inferior): Delete.
7867 2012-03-01 Pedro Alves <palves@redhat.com>
7869 Import fallback definitions from glibc.
7871 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
7872 ps_prochandle): Forward declare.
7873 (ps_err_e): Use glibc's comments.
7874 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7875 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7876 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
7877 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
7878 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
7879 (struct ps_prochandle): Adjust comment.
7881 2012-03-01 Pedro Alves <palves@redhat.com>
7883 * ada-lang.c (ada_modulus_from_name): Delete.
7884 * ada-lex.l (lexer_init): Make static.
7886 2012-03-01 Pedro Alves <palves@redhat.com>
7890 * frame.c (read_frame_register_unsigned): New.
7891 * frame.h (read_frame_register_unsigned): Declare.
7892 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
7894 (print_i387_control_word): New parameter `control_p'. Handle it.
7895 (i387_print_float_info): Handle unavailable float registers.
7897 2012-03-01 Keith Seitz <keiths@redhat.com>
7899 * linespec.c (decode_line_2): Sort the list of methods
7900 alphabetically before presenting the user with a selection
7903 2012-03-01 Doug Evans <dje@google.com>
7905 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
7907 (dwarf2_read_abbrevs): Remove corresponding initialization.
7909 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
7911 * NEWS: Mention new python command class gdb.COMMAND_USER.
7912 * cli/cli-cmds.c (show_user): Print error when used on a python
7914 (init_cli_cmds): Update documentation strings for "show user" and
7915 "set/show max-user-call-depth" to clarify that it does not apply to
7917 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
7919 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
7921 * top.c (execute_command): Only execute a user-defined command as a
7922 legacy macro if c->user_commands is set.
7924 2012-03-01 Tom Tromey <tromey@redhat.com>
7926 * valprint.h (struct generic_val_print_decorations): New.
7927 (generic_val_print): Declare.
7928 * valprint.c (generic_val_print): New function.
7929 * p-valprint.c (p_decorations): New global.
7930 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
7931 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
7932 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
7933 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
7934 * m2-valprint.c (m2_decorations): New global.
7935 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
7936 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
7937 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
7938 TYPE_CODE_ERROR>: Call generic_val_print.
7939 * f-valprint.c (f_decorations): New global.
7940 (f_val_print): Use print_function_pointer_address.
7941 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
7942 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
7943 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
7945 * c-valprint.c (c_decorations): New global.
7946 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
7947 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
7948 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
7949 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
7950 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
7951 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
7954 2012-03-01 Tom Tromey <tromey@redhat.com>
7956 * valprint.c (val_print): Update.
7957 * p-valprint (pascal_val_print): Return void.
7958 * p-lang.h (pascal_val_print): Return void.
7959 * m2-valprint.c (m2_val_print): Return void.
7960 * m2-lang.h (m2_val_print): Return void.
7961 * language.h (struct language_defn) <la_val_print>: Return void.
7962 * language.c (unk_lang_val_print): Return void.
7963 * jv-valprint.c (java_val_print): Return void.
7964 * jv-lang.h (java_val_print): Return void.
7965 * f-valprint.c (f_val_print): Return void.
7966 * f-lang.h (f_val_print): Return void.
7967 * d-valprint.c (d_val_print): Return void.
7968 (dynamic_array_type): Update.
7969 * d-lang.h (d_val_print): Return void.
7970 * c-valprint.c (c_val_print): Return void.
7971 * c-lang.h (c_val_print): Return void.
7972 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
7974 * ada-lang.h (ada_val_print): Return void.
7976 2012-03-01 Tom Tromey <tromey@redhat.com>
7978 * value.h (val_print): Return void.
7979 * valprint.c (val_print): Return void.
7981 2012-03-01 Tom Tromey <tromey@redhat.com>
7983 * value.h (common_val_print): Return void.
7984 * valprint.c (common_val_print): Return void.
7986 2012-03-01 Tom Tromey <tromey@redhat.com>
7988 * value.h (value_print): Return void.
7989 * valprint.c (value_print): Return void.
7990 * p-valprint.c (pascal_value_print): Return void.
7991 * p-lang.h (pascal_value_print): Return void.
7992 * language.h (struct language_defn) <la_value_print>: Return
7994 * language.c (unk_lang_value_print): Return void.
7995 * jv-valprint.c (java_value_print): Return void.
7996 * jv-lang.h (java_value_print): Return void.
7997 * f-valprint.c (c_value_print): Don't declare.
7999 * c-valprint.c (c_value_print): Return void.
8000 * c-lang.h (c_value_print): Return void.
8001 * ada-valprint.c (ada_value_print): Return void.
8002 * ada-lang.h (ada_value_print): Return void.
8004 2012-03-01 Tom Tromey <tromey@redhat.com>
8006 * value.c (value_primitive_field): Handle virtual base classes.
8008 2012-03-01 Tom Tromey <tromey@redhat.com>
8010 * gdbtypes.h (struct vbase): Remove.
8012 2012-03-01 Tom Tromey <tromey@redhat.com>
8014 * c-valprint.c (print_function_pointer_address): Move...
8015 * valprint.c: ... here. Make non-static.
8016 * m2-valprint.c (print_function_pointer_address): Remove.
8017 * valprint.h (print_function_pointer_address): Declare.
8019 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8021 * NEWS: Document the fact that one can provide a condition when
8022 creating an Ada exception catchpoint.
8024 2012-03-01 Tom Tromey <tromey@redhat.com>
8026 * valprint.c (val_print_type_code_flags): Fix placement of
8029 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8031 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8032 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8033 environment variable before calling update-copyright.
8035 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8037 * gnulib/extra/update-copyright: Update to the latest from
8038 gnulib's git repository.
8039 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8040 variable to 2 instead of 1.
8042 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8044 * varobj.c (c_value_of_variable): Remove dead code.
8046 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8048 * ada-lex.p (processId): Do not modify already encoded IDs.
8049 Update function documentation.
8051 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8053 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8054 "name" with "struct symbol *name_sym".
8055 * ada-exp.y (write_var_or_type): Update call to
8056 ada_find_renaming_symbol.
8057 "name" with "struct symbol *name_sym". Adjust Implementation
8058 accordingly. Adjust the function documentation.
8060 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8062 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8063 * ada-lang.c (ada_find_any_type): Add advance declaration.
8064 Make static. Replace ada_find_any_symbol by
8065 ada_find_any_type_symbol.
8066 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8067 Improve function description. Make static.
8068 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8069 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8071 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8073 * ada-lang.c (struct tag_args): Delete.
8074 (ada_get_tsd_type): Function body moved up in source file.
8075 (ada_tag_name_1, ada_tag_name_2): Delete.
8076 (ada_get_tsd_from_tag): New function.
8077 (ada_tag_name_from_tsd): New function.
8078 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8079 to determine the tag name.
8081 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8083 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8085 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8088 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8090 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8092 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8094 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8097 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8099 * ada-lang.c (constrained_packed_array_type): If there is a
8100 parallel XA type, use it to determine the array index type.
8102 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8104 * ada-valprint.c (ada_val_print_1): If our value is a reference
8105 to an array descriptor, dereference it before converting it
8108 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8110 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8111 creating fixed value.
8112 (ada_value_ind, ada_coerce_ref, assign_component)
8113 (ada_evaluate_subexp): Remove call to unwrap_value before
8114 call to ada_to_fixed_value.
8116 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8118 * ada-lang.c (to_fixed_array_type): Set result's type name.
8120 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8122 * ada-lang.c (catch_ada_exception_command_split): Add new
8123 argument cond_string. Add support for condition at end of
8124 "catch exception" commands.
8125 (ada_decode_exception_location): Add new argument cond_string.
8126 Update call to catch_ada_exception_command_split.
8127 (create_ada_exception_catchpoint): Add new argument cond_string.
8128 Set the breakpoint condition if needed.
8129 (catch_ada_exception_command): Update call to
8130 ada_decode_exception_location.
8131 (ada_decode_assert_location): Add function documentation.
8132 Add support for condition at end of "catch assert" command.
8133 (catch_assert_command): Update calls to ada_decode_assert_location
8134 and create_ada_exception_catchpoint.
8136 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8138 Fix disp-step-syscall.exp: fork: single step over fork.
8139 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8140 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8141 comment, change parameters gdbarch and ptid to regcache. Remove
8142 parameter regcache, initialize gdbarch from regcache here.
8143 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8145 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8147 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8148 'syscall'. Make the 'int' check more strict.
8150 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8152 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8153 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8154 (i386_linux_intx80_sysenter_syscall_record): ... here.
8155 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8156 Use the renamed function name.
8158 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8160 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8161 * breakpoint.c (until_break_command): Likewise.
8162 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8163 * infcall.c (call_function_by_hand): Likewise.
8164 * infcmd.c (finish_forward): Likewise.
8165 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8167 2012-02-28 Tristan Gingold <gingold@adacore.com>
8169 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8170 avoid variable assignments inside condition.
8172 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8174 Fix static analysis issue found by cppcheck.
8175 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8176 uninitialized BUF for size 2.
8178 2012-02-27 Chris Dearman <chris@mips.com>
8179 Nathan Froyd <froydnj@codesourcery.com>
8180 Maciej W. Rozycki <macro@codesourcery.com>
8182 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8183 (mips16_instruction_has_delay_slot): Likewise.
8184 (mips_segment_boundary): Likewise.
8185 (mips_adjust_breakpoint_address): Likewise.
8186 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8188 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8189 Maciej W. Rozycki <macro@codesourcery.com>
8191 * infrun.c (handle_inferior_event): Don't proceed through
8192 shared library trampolines if stepping at the machine
8195 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8197 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8200 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8202 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8203 (sh_stub_unwind_sniffer): New functions.
8204 (sh_stub_unwind): New variable.
8205 (sh_gdbarch_init): Wire everything.
8207 2012-02-27 Pedro Alves <palves@redhat.com>
8209 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8210 (linux_nat_post_attach_wait): Adjust to use
8211 linux_proc_pid_is_stopped.
8212 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8213 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8214 based on pid_is_stopped from both linux-nat.c and
8215 gdbserver/linux-low.c, and renamed.
8217 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8219 * remote.c (remote_watchpoint_addr_within_range): New function.
8220 (init_remote_ops): Use it.
8222 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8224 * target.h (target_watchpoint_addr_within_range): Document macro.
8226 2012-02-24 Pedro Alves <palves@redhat.com>
8228 * stack.c (set_last_displayed_sal): Issue internal_error instead
8229 of warning, and issue it after clearing the last displayed sal.
8231 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8232 Pedro Alves <palves@redhat.com>
8234 * breakpoint.c (until_break_command): Install breakpoints after
8235 all frame manipulations.
8237 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8239 * remote.c (remote_supports_cond_breakpoints): New forward
8241 (remote_add_target_side_condition): New function.
8242 (remote_insert_breakpoint): Add target-side breakpoint
8243 conditional if supported.
8244 (remote_insert_hw_breakpoint): Likewise.
8245 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8248 * target.c (update_current_target): Inherit
8249 to_supports_evaluation_of_breakpoint_conditions.
8250 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8252 * target.h (struct target_ops)
8253 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8254 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8256 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8257 (condition_evaluation_both, condition_evaluation_auto,
8258 condition_evaluation_host, condition_evaluation_target,
8259 condition_evaluation_enums, condition_evaluation_mode_1,
8260 condition_evaluation_mode): New static globals.
8261 (translate_condition_evaluation_mode): New function.
8262 (breakpoint_condition_evaluation_mode): New function.
8263 (gdb_evaluates_breakpoint_condition_p): New function.
8264 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8265 (mark_breakpoint_modified): New function.
8266 (mark_breakpoint_location_modified): New function.
8267 (set_condition_evaluation_mode): New function.
8268 (show_condition_evaluation_mode): New function.
8269 (bp_location_compare_addrs): New function.
8270 (get_first_location_gte_addr): New helper function.
8271 (set_breakpoint_condition): Free condition bytecode if locations
8272 has become unconditional. Call mark_breakpoint_modified (...).
8273 (condition_command): Call update_global_location_list (1) for
8275 (breakpoint_xfer_memory): Use is_breakpoint (...).
8276 (is_breakpoint): New function.
8277 (parse_cond_to_aexpr): New function.
8278 (build_target_condition_list): New function.
8279 (insert_bp_location): Handle target-side conditional
8280 breakpoints and call build_target_condition_list (...).
8281 (update_inserted_breakpoint_locations): New function.
8282 (insert_breakpoint_locations): Handle target-side conditional
8284 (bpstat_check_breakpoint_conditions): Add comment.
8285 (bp_condition_evaluator): New function.
8286 (bp_location_condition_evaluator): New function.
8287 (print_breakpoint_location): Print information on where the condition
8289 (print_one_breakpoint_location): Likewise.
8290 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8291 breakpoint location.
8292 (force_breakpoint_reinsertion): New functions.
8293 (update_global_location_list): Handle target-side breakpoint
8295 Reinsert locations that are already inserted if conditions have
8297 (bp_location_dtor): Free agent expression bytecode.
8298 (disable_breakpoint): Call mark_breakpoint_modified (...).
8299 Call update_global_location_list (...) with parameter 1 for breakpoints.
8300 (disable_command): Call mark_breakpoint_location_modified (...).
8301 Call update_global_location_list (...) with parameter 1 for breakpoints.
8302 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8303 (enable_command): mark_breakpoint_location_modified (...).
8304 (_initialize_breakpoint): Update documentation and add
8305 condition-evaluation breakpoint subcommand.
8307 * breakpoint.h: Include ax.h.
8308 (condition_list): New data structure.
8309 (condition_status): New enum.
8310 (bp_target_info) <cond_list>: New field.
8311 (bp_location) <condition_changed, cond_bytecode>: New fields.
8312 (is_breakpoint): New prototype.
8314 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8316 * remote.c (remote_state) <cond_breakpoints>: New field.
8317 (PACKET_ConditionalBreakpoints): New enum.
8318 (remote_cond_breakpoint_feature): New function.
8319 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8320 (remote_supports_cond_breakpoints): New function.
8321 (_initialize_remote): Add new packet configuration for
8322 target-side conditional breakpoints.
8324 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8326 * NEWS: Mention target-side conditional breakpoint support,
8327 new condition-evaluation breakpoint subcommand and remote
8330 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8332 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8335 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8337 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8338 (after_prologue): Remove.
8340 2012-02-23 Tom Tromey <tromey@redhat.com>
8342 * jv-valprint.c (java_val_print): Remove dead code.
8344 2012-02-23 Tristan Gingold <gingold@adacore.com>
8346 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8347 known_tasks_element and known_tasks_length fields.
8348 (read_known_tasks_array): Change argument type. Use pointer type
8349 and number of elements from DATA. Adjust.
8350 (read_known_tasks_list): Likewise.
8351 (get_known_tasks_addr): Remove.
8352 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8353 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8354 type and array length. Merge former get_known_tasks_addr code.
8356 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8359 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8360 it after set_momentary_breakpoint.
8362 2012-02-22 Sterling Augustine <saugustine@google.com>
8365 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8367 2012-02-22 Gary Benson <gbenson@redhat.com>
8369 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8370 (find_slot_in_mapped_hash): Likewise.
8372 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8375 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8376 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8377 * configure: Regenerate.
8379 2012-02-21 Tristan Gingold <gingold@adacore.com>
8380 Pedro Alves <palves@redhat.com>
8382 * ia64-tdep.c: Do not include libunwind-ia64.h.
8383 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8384 Include libunwind-ia64.h instead of libunwind.h.
8385 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8386 for libunwind.h existence.
8387 * configure, config.in: Regenerate.
8389 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8391 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8392 instead of value_rtti_target_type.
8393 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8394 instead of value_rtti_target_type.
8395 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8396 value_rtti_target_type.
8397 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8398 (value_rtti_target_type): Rename to ...
8399 (value_rtti_indirect_type): ... here and make it indirect. Update
8401 * value.c (readjust_indirect_value_type): New function.
8402 (coerce_ref): Support for enclosing type setting for references
8403 with readjust_indirect_value_type.
8404 * value.h (readjust_value_type): New declaration.
8405 (value_rtti_target_type): Rename to ...
8406 (value_rtti_indirect_type): ... here.
8408 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8410 * MAINTAINERS (Write After Approval): Add myself to the list.
8412 2012-02-20 Doug Evans <dje@google.com>
8414 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8415 Rename objfile_p_char parameter to objfilep.
8416 (build_objfile_section_table): Result is now void. All callers
8418 * objfiles.h (struct objfile): Tweak comments, whitespace.
8419 (build_objfile_section_table): Update.
8421 * elfread.c (elf_symfile_segments): Fix warning text.
8423 2012-02-20 Tom Tromey <tromey@redhat.com>
8426 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8427 particular set of file names once.
8428 (dw2_map_symbol_filenames): Likewise.
8430 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8433 * main.c (write_files): Remove the declaration.
8434 (external_editor_command): Move the declaration ...
8435 [GDBTK] (external_editor_command): ... here. Fix the comment.
8437 2012-02-20 Tom Tromey <tromey@redhat.com>
8439 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8442 2012-02-20 Tristan Gingold <gingold@adacore.com>
8444 * darwin-nat.h (enum darwin_msg_state): Add comments.
8446 2012-02-20 Tristan Gingold <gingold@adacore.com>
8448 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8451 2012-20-18 Joel Brobecker <brobecker@adacore.com>
8453 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8454 between function description and implementation.
8456 2012-02-17 Tom Tromey <tromey@redhat.com>
8459 * python/py-event.c (event_object_getset): New global.
8460 (event_object_type): Reference it.
8461 * python/py-type.c (field_object_getset): New global.
8462 (field_object_type): Reference it.
8463 * python/python-internal.h (gdb_py_generic_dict): Declare.
8464 * python/py-utils.c (gdb_py_generic_dict): New function.
8466 2012-02-17 Tristan Gingold <gingold@adacore.com>
8468 * solib-darwin.c (darwin_current_sos): Check magic and filetype
8470 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8472 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8473 TYPE_CALLING_CONVENTION annotation.
8475 2012-02-16 Kevin Buettner <kevinb@redhat.com>
8477 * MAINTAINERS: Add rx to target ISA section.
8478 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8479 (ALLDEPFILES): Add rx-tdep.c.
8481 2012-02-16 Tom Tromey <tromey@redhat.com>
8483 * symfile.c (symbol_file_add_main_1): Use inferior's
8485 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8486 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8488 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8490 (follow_exec): Use inferior's symfile_flags.
8491 * inferior.h (struct inferior) <symfile_flags>: New field.
8493 2012-02-16 Mike Frysinger <vapier@gentoo.org>
8496 * remote-sim.c (gdbsim_create_inferior): Call error() when
8497 sim_create_inferior() fails.
8499 2012-02-16 Josh Matthews <josh@joshmatthews.net>
8501 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8503 2012-02-16 Tom Tromey <tromey@redhat.com>
8506 * thread.c (struct current_thread_cleanup) <was_removable>: New
8508 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8509 (make_cleanup_restore_current_thread): Initialize new field.
8511 2012-02-15 Kevin Buettner <kevinb@redhat.com>
8513 * MAINTAINERS: Add rl78 to target ISA section.
8514 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8515 (ALLDEPFILES): Add rl78-tdep.c.
8516 * NEWS: Mention rl78 as a new target.
8518 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8520 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8522 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8524 2012-02-15 Tom Tromey <tromey@redhat.com>
8527 * infcmd.c (registers_info): Print just the current register's
8530 2012-02-15 Tom Tromey <tromey@redhat.com>
8532 * python/py-symbol.c (sympy_value): Use _().
8534 2012-02-15 Pedro Alves <palves@redhat.com>
8536 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8537 output to be like native targets'.
8538 (remote_pid_to_str): Special case the null ptid.
8540 2012-02-14 Stan Shebs <stan@codesourcery.com>
8542 * NEWS: Mention enable count command.
8543 * breakpoint.h (struct breakpoint): New field enable_count.
8544 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8545 (enable_breakpoint): Add arg to call.
8546 (struct disp_data): New struct.
8547 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8548 (do_map_enable_once_breakpoint): Create a struct and pass it.
8549 (do_map_enable_delete_breakpoint): Ditto.
8550 (do_map_enable_count_breakpoint): New function.
8551 (enable_count_command): New function.
8552 (bpstat_stop_status): Decrement enable_count.
8553 (print_one_breakpoint_location): Report enable count.
8554 (_initialize_breakpoint): Add enable count command.
8556 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8558 * rl78-tdep.c (reggroups.h): Include.
8559 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8560 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8561 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8562 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8563 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8564 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8565 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8566 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8567 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8568 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8569 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8570 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8571 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8572 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8573 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8574 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8575 beginning of register list.
8576 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8577 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8578 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8579 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8580 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8581 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8582 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8583 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8584 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8585 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8586 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8587 the pseudo registers. Rearrange other pseudo registers too so
8588 that the bank registers appear at the end.
8589 (rl78_register_type): Account for the fact that the byte sized
8590 bank registers are now pseudo-registers.
8591 (rl78_register_name): Rearrange the register name array. Make
8592 initial set of raw banked registers inaccessible.
8593 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8594 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8595 case for copying bytes back and forth between raw and pseudo
8596 versions of the banked registers. Update other cases to reflect
8598 (rl78_return_value): Update to account for changed names of
8600 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8601 rl78_register_sim_regno().
8603 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8605 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
8606 the name parameter being passed to find_pc_partial_function().
8608 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8610 * MAINTAINERS: Step down from being ia64 target maintainer.
8612 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8614 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
8615 compilation warning.
8617 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8619 Fix crash on loaded shlibs without loaded exec_bfd.
8620 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
8621 (set_section_command): Replace exec_bfd by p->bfd.
8623 2012-02-10 Tom Tromey <tromey@redhat.com>
8625 * linespec.c (decode_line_internal): Skip symtabs_from_filename
8626 when we have a C++ qualified name.
8628 2012-02-10 Pedro Alves <palves@redhat.com>
8630 * inferior.c (inferior_pid_to_str): New.
8631 (print_inferior, inferior_command): Use it.
8633 2012-02-10 Pedro Alves <palves@redhat.com>
8635 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
8637 * configure: Regenerate.
8639 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8641 * linespec.c (decode_line_internal): Fix comment correctness.
8643 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
8646 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
8647 * amd64bsd-nat.c: Add support for debug registers (adapted from
8649 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
8650 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
8651 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
8652 (amd64bsd_dr_get_control): New functions.
8653 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
8654 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
8655 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
8656 watchpoints initialization.
8657 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
8659 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8661 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
8663 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
8665 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8667 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
8669 2012-02-08 Joel Brobecker <brobecker@adacore.com>
8671 * language.h (symbol_name_cmp_ftype): Renames
8672 symbol_name_match_p_ftype.
8673 (struct language_defn)[la_get_symbol_name_cmp]: Renames
8674 la_get_symbol_name_match_p.
8675 * ada-lang.c (ada_get_symbol_name_cmp): Renames
8676 ada_get_symbol_name_match_p. Update comment.
8677 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
8678 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
8679 Renames symbol_name_match_p. Update field type.
8680 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
8681 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8682 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
8683 "la_get_symbol_name_cmp" in comments.
8684 * language.c: Likewise.
8686 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8688 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
8690 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
8691 (amd64_sol2_gregset32_reg_offs): Likewise.
8693 2012-02-08 Joel Brobecker <brobecker@adacore.com>
8695 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
8696 of the returned BFD is allocated by GDB.
8698 2012-02-07 Tom Tromey <tromey@redhat.com>
8701 * python/python-internal.h (frame_object_type): Declare.
8702 * python/py-symbol.c (sympy_needs_frame): New function.
8703 (sympy_value): New function.
8704 (symbol_object_getset): Add "needs_frame".
8705 (symbol_object_methods): Add "value".
8706 * python/py-frame.c (frame_object_type): No longer static.
8708 2012-02-07 Tom Tromey <tromey@redhat.com>
8711 * python/py-symbol.c (sympy_line): New function.
8712 (symbol_object_getset): Add "line".
8714 2012-02-07 Tom Tromey <tromey@redhat.com>
8716 * charset.c (find_charset_names): Check 'in' against NULL.
8718 2012-02-06 Doug Evans <dje@google.com>
8720 * gdbtypes.h (struct main_type): Change type of name,tag_name,
8721 and fields.name members from char * to const char *. All uses updated.
8722 (struct cplus_struct_type): Change type of fn_fieldlists.name member
8723 from char * to const char *. All uses updated.
8724 (type_name_no_tag): Update.
8725 (lookup_unsigned_typename, lookup_signed_typename): Update.
8726 * gdbtypes.c (type_name_no_tag): Change result type
8727 from char * to const char *. All callers updated.
8728 (lookup_unsigned_typename, lookup_signed_typename): Change type of
8729 name parameter from char * to const char *.
8730 * symtab.h (struct cplus_specific): Change type of demangled_name
8731 member from char * to const char *. All uses updated.
8732 (struct general_symbol_info): Change type of name and
8733 mangled_lang.demangled_name members from char * to const char *.
8735 (symbol_get_demangled_name, symbol_natural_name): Update.
8736 (symbol_demangled_name, symbol_search_name): Update.
8737 * symtab.c (symbol_get_demangled_name): Change result type
8738 from char * to const char *. All callers updated.
8739 (symbol_natural_name, symbol_demangled_name): Ditto.
8740 (symbol_search_name): Ditto.
8741 (completion_list_add_name): Change type of symname,sym_text,
8742 text,word parameters from char * to const char *.
8743 (completion_list_objc_symbol): Change type of sym_text,
8744 text,word parameters from char * to const char *.
8745 * ada-lang.c (find_struct_field): Change type of name parameter
8746 from char * to const char *.
8747 (encoded_ordered_before): Similarly for N0,N1 parameters.
8748 (old_renaming_is_invisible): Similarly for function_name parameter.
8749 (ada_type_name): Change result type from char * to const char *.
8750 All callers updated.
8751 * ada-lang.h (ada_type_name): Update.
8752 * buildsym.c (hashname): Change type of name parameter
8753 from char * to const char *.
8754 * buildsym.h (hashname): Update.
8755 * dbxread.c (end_psymtab): Change type of include_list parameter
8756 from char ** to const char **.
8757 * dwarf2read.c (determine_prefix): Change result type
8758 from char * to const char *. All callers updated.
8759 * f-lang.c (find_common_for_function): Change type of name, funcname
8760 parameters from char * to const char *.
8761 * f-lang.c (find_common_for_function): Update.
8762 * f-valprint.c (list_all_visible_commons): Change type of funcname
8763 parameters from char * to const char *.
8764 * gdbarch.sh (static_transform_name): Change type of name parameter
8765 and result from char * to const char *.
8766 * gdbarch.c: Regenerate.
8767 * gdbarch.h: Regenerate.
8768 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
8769 of name parameter from char * to const char *.
8770 * jv-lang.c (java_primitive_type_from_name): Ditto.
8771 (java_demangled_signature_length): Similarly for signature parameter.
8772 (java_demangled_signature_copy): Ditto.
8773 (java_demangle_type_signature): Ditto.
8774 * jv-lang.h (java_primitive_type_from_name): Update.
8775 (java_demangle_type_signature): Update.
8776 * objc-lang.c (specialcmp): Change type of a,b parameters
8777 from char * to const char *.
8778 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
8779 from char * to const char *. All callers updated.
8780 * p-lang.h (is_pascal_string_type): Update.
8781 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
8782 of name parameter from char * to const char *.
8783 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
8784 * utils.c (fprintf_symbol_filtered): Ditto.
8785 * defs.h (fprintf_symbol_filtered): Update.
8786 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
8787 * stabsread.h (end_psymtab): Update.
8788 * stack.c (find_frame_funname): Change type of funname parameter
8789 from char ** to const char **.
8790 * stack.h (find_frame_funname): Update.
8791 * typeprint.c (type_print): Change type of varstring parameter
8792 from char * to const char *.
8793 * value.h (type_print): Update.
8794 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
8795 from char * to const char *. All callers updated.
8796 (xcoff_end_psymtab): Change type of include_list parameter
8797 from char ** to const char **. All callers updated.
8798 (swap_sym): Similarly for name parameter. All callers updated.
8799 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
8801 (process_coff_symbol): Use xstrdup.
8802 * stabsread.c (stabs_method_name_from_physname): Renamed from
8803 update_method_name_from_physname. Change result type from void
8804 to char *. All callers updated.
8805 (read_member_functions): In has_destructor case, store name in objfile
8806 obstack instead of malloc space. In !has_stub case, fix mem leak.
8808 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
8810 * configure: Rebuild.
8811 * configure.ac: Put -L../bfd and -L../libiberty at the front of
8814 2012-02-03 Kevin Buettner <kevinb@redhat.com>
8816 * configure.tgt (rl78-*-elf): New target.
8817 * rl78-tdep.c: New file.
8819 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8821 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
8822 and continue the loop. Add QUIT statement.
8824 2012-02-03 Tom Tromey <tromey@redhat.com>
8827 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
8828 bfd_lookup_symbol_from_symtab.
8829 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
8830 gdb_bfd_lookup_symbol_from_symtab.
8832 2012-02-03 Joel Brobecker <brobecker@adacore.com>
8834 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
8835 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
8836 symbol. Add assertion that sym2 is never NULL.
8838 2012-02-02 Doug Evans <dje@google.com>
8840 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
8841 "name" parameter to const char ** from char **. All callers updated.
8842 (find_pc_partial_function): Ditto.
8843 (cache_pc_function_name): Change type to const char * from char *.
8844 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
8845 (find_pc_partial_function): Update.
8846 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
8847 type of "name" parameter to const char * from char *.
8849 * arch-utils.c (generic_in_solib_return_trampoline): Change
8850 type of "name" parameter to const char * from char *.
8851 * arch-utils.h (generic_in_solib_return_trampoline): Update.
8852 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
8853 type of "name" parameter to const char * from char *.
8854 * gdbarch.sh (in_solib_return_trampoline): Ditto.
8855 * gdbarch.c: Regenerate.
8856 * gdbarch.h: Regenerate.
8857 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
8858 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
8859 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
8860 type of "name" parameter to const char * from char *.
8861 * skip.c (skip_function_pc): Ditto.
8862 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
8863 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
8864 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
8865 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
8866 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
8867 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
8868 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
8869 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
8870 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
8872 2012-02-02 Pedro Alves <palves@redhat.com>
8874 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
8875 the current inferior has no execution. Make sure the current
8876 remote process matches gdb's current inferior.
8878 2012-02-02 Tom Tromey <tromey@redhat.com>
8881 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
8884 2012-02-02 Tom Tromey <tromey@redhat.com>
8887 * symtab.c (lookup_language_this): Set block_found.
8889 2012-02-01 Tom Tromey <tromey@redhat.com>
8892 * jit.c (struct jit_inferior_data): Rewrite.
8893 (struct jit_objfile_data): New.
8894 (get_jit_objfile_data): New function.
8895 (add_objfile_entry): Update.
8896 (jit_read_descriptor): Return int. Replace descriptor_addr
8897 argument with inf_data. Update. Don't call error.
8898 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
8900 (jit_inferior_init): Don't look up descriptor. Don't call error.
8901 (jit_reset_inferior_data_and_breakpoints)
8902 (jit_inferior_created_observer): Remove.
8903 (jit_inferior_exit_hook): Update.
8904 (jit_executable_changed_observer): Remove.
8905 (jit_event_handler): Update.
8906 (free_objfile_data): Reset inferior data if needed.
8907 (_initialize_jit): Update.
8909 2012-02-01 Tom Tromey <tromey@redhat.com>
8911 * jit.c (bfd_open_from_target_memory): Move higher in file.
8913 2012-02-01 Tristan Gingold <gingold@adacore.com>
8915 * libunwind-frame.c (libunwind_load): Display message if dlopen
8918 2012-02-01 Gary Benson <gbenson@redhat.com>
8920 * symtab.h (symbol_found_callback_ftype): New typedef.
8921 (iterate_over_symbols): Use the above.
8922 * symtab.c (iterate_over_symbols): Likewise.
8923 * language.h (language_defn->la_iterate_over_symbols): Likewise.
8924 * ada-lang.c (ada_iterate_over_symbols): Likewise.
8925 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
8926 (iterate_name_matcher): Document return values.
8927 (collect_one_symbol): Likewise.
8928 (collect_function_symbols): Likewise.
8929 (collect_symbols): Likewise.
8931 2012-02-01 Tom Tromey <tromey@redhat.com>
8933 * ada-lang.c (resolve_subexp): Update.
8934 (ada_lookup_symbol_list): Add 'full_search' argument.
8935 (ada_iterate_over_symbols): Pass 0 as full_search argument to
8936 ada_lookup_symbol_list.
8937 (ada_lookup_encoded_symbol): Update.
8938 (get_var_value): Update.
8939 * ada-exp.y (block_lookup): Update.
8940 (write_var_or_type): Update.
8941 (write_name_assoc): Update.
8942 * ada-lang.h (ada_lookup_symbol_list): Update.
8944 2012-01-31 Tom Tromey <tromey@redhat.com>
8946 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
8949 2012-01-31 Doug Evans <dje@google.com>
8951 * symtab.h: Remove outdated comment.
8952 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
8954 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
8956 Fix build error in Darwin port.
8957 * i386-darwin-nat.c: Include i386-nat.h.
8959 2012-01-30 Tom Tromey <tromey@redhat.com>
8961 PR breakpoints/13568:
8962 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
8963 argument. Check for recursive includes.
8964 (dwarf_decode_macros): Create an include hash.
8966 2012-01-30 Michael Eager <eager@eagercon.com>
8968 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
8969 * ppc-linux-tdep.c: Include glibc-tdep.h.
8970 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
8971 (powerpc_linux_in_plt_stub): New function.
8972 (powerpc_linux_in_dynsym_resolve_code): New function.
8973 (ppc_skip_trampoline_code): New function.
8974 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
8975 Use glibc_skip_solib_resolver.
8977 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8979 Code cleanup: Make 1440 bytes of data segment read-only.
8980 * arch-utils.c (endian_enum): Make it const char *const [].
8981 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
8983 * breakpoint.c (always_inserted_enums): Likewise.
8984 * cli/cli-cmds.c (script_ext_enums): Likewise.
8985 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
8986 enumlist parameter const char *const *.
8987 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
8988 const char *const *.
8989 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
8990 parameter const char *const *.
8991 * cris-tdep.c (cris_modes): Make it const char *const [].
8992 * filesystem.c (target_file_system_kinds): Likewise.
8993 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
8994 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
8995 (can_use_displaced_stepping_enum, scheduler_enums)
8996 (exec_direction_names): Likewise.
8997 * language.c (_initialize_language): Make the type_or_range_names and
8998 case_sensitive_names variables const char *const [].
8999 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9000 * python/python.c (python_excp_enums): Likewise.
9001 * remote.c (interrupt_sequence_modes): Likewise.
9002 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9003 * serial.c (logbase_enums): Likewise.
9004 * sh-tdep.c (sh_cc_enum): Likewise.
9005 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9007 * symtab.c (multiple_symbols_modes): Likewise.
9008 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9010 * utils.c (internal_problem_modes): Likewise.
9012 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9014 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9015 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9018 2012-01-27 Doug Evans <dje@google.com>
9020 * configure.ac (with_python): Fix absolute path handling for win32.
9021 * configure: Regenerate.
9023 2012-01-26 Doug Evans <dje@google.com>
9025 * symtab.c: Whitespace cleanup, no code changes.
9027 * symtab.c (lookup_symbol_in_language): Improve comment.
9028 (lookup_symbol_aux): Fix comment.
9030 * psymtab.c (add_psymbol_to_list): Result is now "void".
9031 * psympriv.h (add_psymbol_to_list): Update.
9033 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9035 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9037 Do not open script filenames twice.
9038 * cli/cli-cmds.c (source_script_from_stream): Pass to
9039 source_python_script also STREAM.
9040 * python/py-auto-load.c (source_section_scripts): Pass to
9041 source_python_script_for_objfile also STREAM.
9042 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9044 * python/python-internal.h (source_python_script_for_objfile): New
9045 parameter file, rename parameter file to filename.
9046 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9047 instead if !_WIN32. Update the function comment.
9048 (source_python_script, source_python_script_for_objfile)
9049 (source_python_script): New parameter file, rename parameter file to
9050 filename. Pass FILENAME to python_run_simple_file.
9051 * python/python.h (source_python_script): New parameter file, rename
9052 parameter file to filename.
9054 2012-01-26 Pedro Alves <palves@redhat.com>
9056 * corelow.c (core_has_fake_pid): Delete.
9057 (core_close): Delete references to `core_has_fake_pid'.
9058 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9059 (core_open): Delete references to `core_has_fake_pid'.
9060 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9063 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9065 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9066 Remove language parameter from name_matcher. Adjust the comment.
9067 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9068 Remove language parameter.
9069 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9070 * linespec.c (iterate_name_matcher): Likewise.
9071 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9072 name_matcher. Adjust call accordingly.
9073 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9074 (maintenance_check_symtabs): Adjust type of parameter "fun".
9075 * psymtab.h (maintenance_check_symtabs): Likewise.
9077 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9079 * language.h (symbol_name_match_p_ftype): New typedef.
9080 (struct language_defn): Replace field la_symbol_name_compare
9081 by la_get_symbol_name_match_p.
9082 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9083 (ada_language_defn): Use it.
9084 * linespec.c (struct symbol_matcher_data): New type.
9085 (iterate_name_matcher): Rewrite.
9086 (iterate_over_all_matching_symtabs): Pass a pointer to
9087 a symbol_matcher_data struct to expand_symtabs_matching
9088 instead of just the lookup name.
9089 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9090 opencl-lang.c, p-lang.c, language.c: Delete field
9091 la_symbol_name_compare, and replace by NULL for new field
9092 la_get_symbol_name_match_p.
9093 * symfile.h (struct quick_symbol_functions): Update comment.
9095 2012-01-25 Tom Tromey <tromey@redhat.com>
9097 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9100 2012-01-24 Tom Tromey <tromey@redhat.com>
9103 * solib.c (update_solib_list): Update the program space's
9104 added_solibs and deleted_solibs fields.
9105 * progspace.h (struct program_space) <added_solibs,
9106 deleted_solibs>: New fields.
9107 (clear_program_space_solib_cache): Declare.
9108 * progspace.c (release_program_space): Call
9109 clear_program_space_solib_cache.
9110 (clear_program_space_solib_cache): New function.
9111 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9112 bpstat_stop_status. Use handle_solib_event.
9113 * breakpoint.c: Include gdb_regex.h.
9114 (print_solib_event): New function.
9115 (bpstat_print): Use print_solib_event.
9116 (bpstat_stop_status): Add special case for bp_shlib_event.
9117 (handle_solib_event): New function.
9118 (bpstat_what): Use handle_solib_event.
9119 (struct solib_catchpoint): New.
9120 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9121 (breakpoint_hit_catch_solib, check_status_catch_solib)
9122 (print_it_catch_solib, print_one_catch_solib)
9123 (print_mention_catch_solib, print_recreate_catch_solib): New
9125 (catch_solib_breakpoint_ops): New global.
9126 (catch_load_or_unload, catch_load_command_1)
9127 (catch_unload_command_1): New functions.
9128 (internal_bkpt_check_status): Add special case for
9130 (internal_bkpt_print_it): Use print_solib_event.
9131 (initialize_breakpoint_ops): Initialize
9132 catch_solib_breakpoint_ops.
9133 (_initialize_breakpoint): Register "catch load" and "catch
9135 * breakpoint.h (handle_solib_event): Declare.
9136 * NEWS: Add entry for "catch load" and "catch unload".
9138 2012-01-24 Tom Tromey <tromey@redhat.com>
9140 * ada-lang.c: Include gdb_vecs.h.
9141 * charset.c: Include gdb_vecs.h.
9142 * tracepoint.h: Include gdb_vecs.h.
9143 * gdb_vecs.h: New file.
9145 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9147 * breakpoint.c (breakpoint_hit_catch_fork)
9148 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9149 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9150 * infrun.c (inferior_has_forked, inferior_has_vforked)
9151 (inferior_has_execd, inferior_has_called_syscall): Delete.
9152 (handle_syscall_event): Get syscall_number from the execution
9153 control state's wait status.
9154 (wait_for_inferior): Don't clear syscall_number.
9156 2012-01-24 Pedro Alves <palves@redhat.com>
9158 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9159 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9160 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9161 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9163 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9164 false for events other than TARGET_SIGNAL_TRAP.
9165 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9167 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9168 events other than TARGET_SIGNAL_TRAP.
9169 (tracepoint_breakpoint_hit): Add `ws' parameter.
9170 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9172 (bpstat_stop_status): Same.
9173 (pc_at_non_inline_function): Same.
9174 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9175 to pass the current event's waitstatus to bpstat_stop_status
9176 and pc_at_non_inline_function.
9178 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9181 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9182 Update the function comment for it.
9183 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9184 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9187 2012-01-24 Pedro Alves <palves@redhat.com>
9189 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9190 outside `bs->stop' block.
9191 (bpstat_what): Rework bp_shlib_event handling.
9192 (internal_bkpt_check_status): If the breakpoint is a
9193 bp_shlib_event, then set bs->stop and bs->print if
9194 stop_on_solib_events is set.
9196 2012-01-24 Gary Benson <gbenson@redhat.com>
9198 Delete #if 0'd out code.
9199 * stack.c (print_frame_label_vars): Remove.
9200 (catch_info): Likewise.
9201 (_initialize_stack): Remove "info catch" command.
9202 * NEWS: Mention the above.
9204 2012-01-24 Pedro Alves <palves@redhat.com>
9206 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9208 (remote_notice_new_inferior): If the remote end doesn't support
9209 the multiprocess extensions, then the PID is fake.
9210 (add_current_inferior_and_thread): New.
9211 (remote_start_remote): Use it.
9212 (extended_remote_attach_1): Adjust.
9213 (extended_remote_create_inferior_1): Use
9214 add_current_inferior_and_thread.
9216 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9218 Fix watchpoints to be specific for each inferior.
9219 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9220 current_program_space.
9221 * i386-nat.c (i386_inferior_data_cleanup): New.
9222 (i386_inferior_data_get): Replace variable inf_data_local by an
9224 (i386_use_watchpoints): Initialize i386_inferior_data.
9225 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9226 specific iterate_over_lwps.
9228 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9230 Fix watchpoints across inferior fork.
9231 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9232 comment for linux_nat_iterate_watchpoint_lwps.
9233 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9234 linux_nat_iterate_watchpoint_lwps.
9235 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9236 * i386-linux-nat.c (update_debug_registers_callback): Update the
9237 comment for linux_nat_iterate_watchpoint_lwps.
9238 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9239 linux_nat_iterate_watchpoint_lwps.
9240 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9241 * i386-nat.c: Include inferior.h.
9242 (dr_mirror): Remove.
9243 (i386_inferior_data, struct i386_inferior_data)
9244 (i386_inferior_data_get): New.
9245 (i386_debug_reg_state): Use i386_inferior_data_get.
9246 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9247 (i386_insert_watchpoint, i386_remove_watchpoint)
9248 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9249 (i386_remove_hw_breakpoint): New variable state, use
9250 i386_debug_reg_state instead of DR_MIRROR.
9251 * linux-nat.c (delete_lwp): New declaration.
9252 (num_lwps): Move here from downwards.
9253 (delete_lwp_cleanup): New.
9254 (linux_child_follow_fork): Create new child_lp, call
9255 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9257 (num_lwps): Move upwards.
9258 (linux_nat_iterate_watchpoint_lwps): New.
9259 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9260 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9262 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9266 2012-01-23 Pedro Alves <palves@redhat.com>
9268 * top.c (caution): Rename to ...
9269 (confirm): ... this.
9270 (show_caution): Rename to ...
9271 (show_confirm): ... this.
9272 (quit_cover): Adjust.
9273 (init_main): Adjust.
9274 * top.h (caution): Rename to ...
9275 (confirm): ... this.
9276 * utils.c (internal_vproblem, defaulted_query): Adjust.
9278 2012-01-23 Pedro Alves <palves@redhat.com>
9280 * top.c (caution): Update comment.
9281 (execute_command): Don't consider the current value of `caution'.
9283 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9285 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9287 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9289 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9290 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9291 * target.c (target_fileio_pwrite): Remove buffer address from
9293 (target_fileio_pread): Likewise.
9295 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9297 * NEWS: Document remote "info proc" and "generate-core-file".
9299 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9301 * gdbarch.sh (find_memory_regions): New callback.
9302 * gdbarch.c, gdbarch.h: Regenerate.
9304 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9305 callback before falling back to target method.
9307 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9308 (linux_target_install_ops): No longer install it.
9310 * linux-tdep.c (linux_find_memory_regions): New function.
9311 (linux_init_abi): Install it.
9313 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9315 * gdbarch.sh (make_corefile_notes): New architecture callback.
9316 * gdbarch.c: Regenerate.
9317 * gdbarch.h: Likewise.
9319 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9320 before target_make_corefile_notes. If NULL is returned, the
9321 target does not support core file generation.
9323 * linux-nat.c: Include "linux-tdep.h".
9324 (find_signalled_thread, find_stop_signal): Remove.
9325 (linux_nat_do_thread_registers): Likewise.
9326 (struct linux_nat_corefile_thread_data): Likewise.
9327 (linux_nat_corefile_thread_callback): Likewise.
9328 (iterate_over_spus): Likewise.
9329 (struct linux_spu_corefile_data): Likewise.
9330 (linux_spu_corefile_callback): Likewise.
9331 (linux_spu_make_corefile_notes): Likewise.
9332 (linux_nat_collect_thread_registers): New function.
9333 (linux_nat_make_corefile_notes): Replace contents by call to
9334 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9335 as native-only callback.
9337 * linux-tdep.h: Include "bfd.h".
9338 (struct regcache): Add forward declaration.
9339 (linux_collect_thread_registers_ftype): New typedef.
9340 (linux_make_corefile_notes): Add prototype.
9341 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9342 "regset.h", and "elf-bfd.h".
9343 (find_signalled_thread, find_stop_signal): New functions.
9344 (linux_spu_make_corefile_notes): Likewise.
9345 (linux_collect_thread_registers): Likewise.
9346 (struct linux_corefile_thread_data): New data structure.
9347 (linux_corefile_thread_callback): New funcion.
9348 (linux_make_corefile_notes): Likewise.
9349 (linux_make_corefile_notes_1): Likewise.
9350 (linux_init_abi): Install it.
9352 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9354 * gdbarch.sh (info_proc): New callback.
9355 * gdbarch.c, gdbarch.h: Regenerate.
9357 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9358 before falling back to the target info_proc callback.
9360 * linux-nat.c: Do not include "cli/cli-utils.h".
9361 (linux_nat_info_proc): Remove.
9362 (linux_target_install_ops): No longer install it.
9364 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9365 (read_mapping): New function.
9366 (linux_info_proc): Likewise.
9367 (linux_init_abi): Install it.
9369 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9371 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9372 * infcmd.c: (info_proc_cmd_1): New function.
9373 (info_proc_cmd): New function, moved here from equivalent routine
9374 orignally in linux-nat.c.
9375 (info_proc_cmd_mappings): Likewise.
9376 (info_proc_cmd_stat): Likewise.
9377 (info_proc_cmd_status): Likewise.
9378 (info_proc_cmd_cwd): Likewise.
9379 (info_proc_cmd_cmdline): Likewise.
9380 (info_proc_cmd_exe): Likewise.
9381 (info_proc_cmd_all): Likewise.
9382 (_initialize_infcmd): Install "info proc" command and subcommands.
9384 * target.h (struct target_ops): Add to_info_proc.
9385 (target_info_proc): Add prototype.
9386 * target.c (target_info_proc): New function.
9388 * procfs.c (procfs_info_proc): Add prototype.
9389 (info_proc_cmd): Rename into ...
9390 (procfs_info_proc): ... this. Update argument types as appropriate
9391 for a to_info_proc implementation. Handle "what" argument.
9392 (procfs_target): Install procfs_info_proc.
9393 (_initialize_procfs): No longer install "info proc" command.
9395 * linux-nat.c: (enum info_proc_what): Remove.
9396 (linux_nat_info_proc_cmd_1): Rename into ...
9397 (linux_nat_info_proc): ... this. Update argument types as appropriate
9398 for a to_info_proc implementation.
9399 (linux_nat_info_proc_cmd): Remove.
9400 (linux_nat_info_proc_cmd_mappings): Likewise.
9401 (linux_nat_info_proc_cmd_stat): Likewise.
9402 (linux_nat_info_proc_cmd_status): Likewise.
9403 (linux_nat_info_proc_cmd_cwd): Likewise.
9404 (linux_nat_info_proc_cmd_cmdline): Likewise.
9405 (linux_nat_info_proc_cmd_exe): Likewise.
9406 (linux_nat_info_proc_cmd_all): Likewise.
9407 (linux_target_install_ops): Install linux_nat_info_proc.
9408 (_initialize_linux_nat): No longer install "info proc" command
9411 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9413 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9414 * config.in, configure: Regenerate.
9416 * target.h (struct target_ops): Add to_fileio_readlink.
9417 (target_fileio_readlink): Add prototype.
9418 * target.c (target_fileio_readlink): New function.
9420 * inf-child.c: Conditionally include <sys/param.h>.
9421 (inf_child_fileio_readlink): New function.
9422 (inf_child_target): Install it.
9424 * remote.c (PACKET_vFile_readlink): New enum value.
9425 (remote_hostio_readlink): New function.
9426 (init_remote_ops): Install it.
9427 (_initialize_remote): Handle vFile:readlink packet type.
9429 2012-01-20 Pedro Alves <palves@redhat.com>
9430 Ulrich Weigand <ulrich.weigand@linaro.org>
9432 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9433 * config.in, configure: Regenerate.
9435 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9436 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9437 (target_fileio_open): Add prototype.
9438 (target_fileio_pwrite): Likewise.
9439 (target_fileio_pread): Likewise.
9440 (target_fileio_close): Likewise.
9441 (target_fileio_unlink): Likewise.
9442 (target_fileio_read_alloc): Likewise.
9443 (target_fileio_read_stralloc): Likewise.
9445 * target.c: Include "gdb/fileio.h".
9446 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9447 (default_fileio_target): New function.
9448 (target_fileio_open): Likewise.
9449 (target_fileio_pwrite): Likewise.
9450 (target_fileio_pread): Likewise.
9451 (target_fileio_close): Likewise.
9452 (target_fileio_unlink): Likewise.
9453 (target_fileio_close_cleanup): Likewise.
9454 (target_fileio_read_alloc_1): Likewise.
9455 (target_fileio_read_alloc): Likewise.
9456 (target_fileio_read_stralloc): Likewise.
9458 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9459 <fcntl.h>, and <unistd.h>.
9460 (inf_child_fileio_open_flags_to_host): New function.
9461 (inf_child_errno_to_fileio_error): Likewise.
9462 (inf_child_fileio_open): Likewise.
9463 (inf_child_fileio_pwrite): Likewise.
9464 (inf_child_fileio_pread): Likewise.
9465 (inf_child_fileio_close): Likewise.
9466 (inf_child_fileio_unlink): Likewise.
9467 (inf_child_target): Install to_fileio routines.
9469 * remote.c (init_remote_ops): Install to_fileio routines.
9471 2012-01-20 Pedro Alves <palves@redhat.com>
9472 Ulrich Weigand <ulrich.weigand@linaro.org>
9474 * remote.c (remote_multi_process_p): Only check for multi-process
9475 protocol feature, do not check for extended protocol.
9476 (remote_supports_multi_process): Check for extended protocol here.
9477 (set_general_process): Likewise.
9478 (extended_remote_kill): Likewise.
9479 (remote_pid_to_str): Likewise.
9480 (remote_query_supported): Always query multiprocess mode.
9482 2012-01-20 Pedro Alves <palves@redhat.com>
9483 Ulrich Weigand <ulrich.weigand@linaro.org>
9485 * inferior.h (struct inferior): Add fake_pid_p.
9486 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9487 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9488 magic_null_ptid since the remote side doesn't provide a real PID.
9490 2012-01-19 Tom Tromey <tromey@redhat.com>
9492 * NEWS: Combine the two Python sections.
9494 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9496 * target.h (target_close): Update comment on the target's unpush state.
9498 2012-01-19 Pedro Alves <palves@redhat.com>
9500 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9501 linux_nat_async directly instead of going through the target
9503 * target.c (unpush_target): Close target after unpushing it, not
9506 2012-01-19 Gary Benson <gbenson@redhat.com>
9508 * mdebugread.c (sort_blocks): Replace integer constants with ones
9509 derived from FIRST_LOCAL_BLOCK.
9511 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9512 Jan Kratochvil <jan.kratochvil@redhat.com>
9515 * symfile.c (find_separate_debug_file): New function.
9516 (terminate_after_last_dir_separator): Likewise.
9517 (find_separate_debug_file_by_debuglink): Also try realpath.
9518 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9519 * configure: Regenerate.
9520 * config.in: Regenerate.
9522 2012-01-18 Doug Evans <dje@google.com>
9524 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9525 (main.o): Remove rule.
9526 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9527 (--with-sysroot): Rewrite.
9528 * configure: Regenerate.
9529 * config.in: Regenerate.
9531 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9533 * parse.c (initialize_expout): New function.
9534 (reallocate_expout): Likewise.
9535 (parse_exp_in_context): Use `initialize_expout' and
9536 `reallocate_expout' when appropriate.
9538 2012-01-18 Pedro Alves <palves@redhat.com>
9540 * record.c (struct record_breakpoint, record_breakpoint_p)
9541 (record_breakpoints): New.
9542 (record_insert_breakpoint, record_remove_breakpoint): Manage
9543 record breakpoints list. Only remove breakpoints from the
9544 inferior if they had been inserted there in the first place.
9546 2012-01-17 Doug Evans <dje@google.com>
9548 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9549 if we know we don't have a file name to look for.
9551 2012-01-17 Pedro Alves <palves@redhat.com>
9553 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9554 the frame's stop reason is UNWIND_UNAVAILABLE.
9556 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9558 Fix compilation error.
9559 * m2-exp.y (yyerror): Use ANSI C prototype.
9561 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9563 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9564 (growbuf_by_size): Likewise.
9565 (yyerror): Likewise.
9566 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9567 (modblock): Remove variable (was #if 0'ed).
9568 (parse_number): Convert prototype from K&R to ANSI C.
9569 (yyerror): Likewise.
9570 * objc-exp.y (parse_number): Likewise.
9571 (yyerror): Likewise.
9572 (yylex): Remove #if 0'ed code.
9573 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9574 (yyerror): Likewise.
9576 2012-01-16 Tom Tromey <tromey@redhat.com>
9579 * symtab.h (compare_filenames_for_search): Declare.
9580 * symtab.c (compare_filenames_for_search): New function.
9581 (iterate_over_some_symtabs): Use it.
9582 * symfile.h (struct quick_symbol_functions)
9583 <map_symtabs_matching_filename>: Change spec.
9584 * psymtab.c (partial_map_symtabs_matching_filename): Use
9585 compare_filenames_for_search. Update for new spec.
9586 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9587 compare_filenames_for_search. Update for new spec.
9588 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9590 2012-01-16 Tom Tromey <tromey@redhat.com>
9593 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9594 (struct main_type) <flag_flag_enum>: New field.
9595 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9596 * NEWS: Add entries.
9597 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9599 * python/lib/gdb/printing.py (_EnumInstance): New class.
9600 (FlagEnumerationPrinter): Likewise.
9602 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9604 * breakpoint.c (create_sals_from_address_default): New function.
9605 (create_breakpoints_sal_default): Likewise.
9606 (decode_linespec_default): Likewise.
9607 (is_marker_spec): Removed.
9608 (strace_marker_p): New function.
9609 (init_breakpoint_sal): Using `strace_marker_p' instead of
9611 (create_breakpoint): Call method `create_sals_from_address' from
9612 breakpoint_ops, replacing code that created SALs conditionally
9613 on the type of the breakpoint. Call method `create_breakpoints_sal',
9614 replacing code that created breakpoints conditionally on the type
9616 (base_breakpoint_create_sals_from_address): New function.
9617 (base_breakpoint_create_breakpoints_sal): Likewise.
9618 (base_breakpoint_decode_linespec): Likewise.
9619 (base_breakpoint_ops): Add methods
9620 `base_breakpoint_create_sals_from_address',
9621 `base_breakpoint_create_breakpoints_sal' and
9622 `base_breakpoint_decode_linespec'.
9623 (bkpt_create_sals_from_address): New function.
9624 (bkpt_create_breakpoints_sal): Likewise.
9625 (bkpt_decode_linespec): Likewise.
9626 (tracepoint_create_sals_from_address): Likewise.
9627 (tracepoint_create_breakpoints_sal): Likewise.
9628 (tracepoint_decode_linespec): Likewise.
9629 (strace_marker_create_sals_from_address): Likewise.
9630 (strace_marker_create_breakpoints_sal): Likewise.
9631 (strace_marker_decode_linespec): Likewise.
9632 (strace_marker_breakpoint_ops): New variable.
9633 (addr_string_to_sals): Remove `marker_spec'. Call method
9634 `decode_linespec' from breakpoint_ops, replacing code that decoded
9635 an address string into a SAL. Use `strace_marker_p' instead of
9637 (strace_command): Decide whether we are dealing with a static
9638 tracepoint with marker or not. Use the appropriate breakpoint_ops.
9639 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
9640 * breakpoint.h (linespec_result, linespec_sals): New forward
9642 (breakpoint_ops) <create_sals_from_address>,
9643 <create_breakpoints_sal>, <decode_linespec>: New methods.
9645 2012-01-14 Doug Evans <dje@google.com>
9647 * NEWS: Update text for "maint set python print-stack".
9648 It is deprecated in gdb 7.4 and deleted in 7.5.
9650 2012-01-13 Eli Zaretskii <eliz@gnu.org>
9652 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
9655 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9657 * configure: Regenerate.
9658 * config.in: Regenerate.
9660 2012-01-12 Keith Seitz <keiths@redhat.com>
9663 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
9664 (ANONYMOUS_UNION_NAME): Define.
9665 (is_path_expr_parent): New function.
9666 (get_path_expr_parent): New function.
9667 (is_anonymous_child): New function.
9668 (create_child_with_value): If the child is anonymous and without
9669 a name, assign an object name to it.
9670 (c_describe_child): Use get_path_expr_parent to determine
9671 the parent expression.
9672 If there field represents an anonymous struct or union and
9673 has no name, set an appropriate display name and expression.
9674 (cplus_describe_child): Likewise.
9676 2012-01-12 Pedro Alves <palves@redhat.com>
9678 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
9679 available when %ebp is found to be zero (outermost).
9681 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
9683 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
9684 an internal gdb_static_assert.
9685 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
9687 2012-01-11 Tom Tromey <tromey@redhat.com>
9690 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
9691 catch" and "catch throw".
9693 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
9695 * blockframe.c (block_innermost_frame): Start search from selected
9696 frame, if present, or otherwise the current frame.
9698 * c-exp.y (variable): Update innermost_block for
9699 'block COLONCOLON NAME' clause.
9700 * m2-exp.y (variable): Ditto.
9701 * objc-exp.y (variable): Ditto.
9703 2012-01-10 Tom Tromey <tromey@redhat.com>
9706 * python/python.c (finish_python_initialization): Set sys.argv.
9708 2012-01-10 Doug Evans <dje@google.com>
9710 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
9711 "want_line_info". All callers updated.
9712 (dwarf_decode_lines_1): New function.
9713 (handle_DW_AT_stmt_list): Add function comment.
9714 New arg "want_line_info". All callers updated.
9715 (read_file_scope,read_type_unit_scope): Move comment from
9716 handle_DW_AT_stmt_list to here.
9718 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9720 Fix regression after libiberty/ update for GCC PR 6057 and others.
9721 * c-exp.y (operator) <OPERATOR DELETE>
9722 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9723 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
9724 (make_builtin_type, make_name): New variable i, add gdb_assert.
9725 (operator) <OPERATOR NEW>: Update ARGS to 3.
9726 (operator) <OPERATOR DELETE>: Add trailing space.
9727 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
9728 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9729 * cp-support.c (cp_canonicalize_string): Check NULL from
9730 cp_comp_to_string, call warning and return.
9732 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9734 Fix duplicate .o files after omitting libbfd.a.
9735 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
9736 (SFILES): Add corelow.c.
9737 (COMMON_OBS): Add corelow.o.
9738 (ALLDEPFILES): Remove corelow.c.
9739 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
9740 * config/alpha/alpha-osf3.mh: Likewise.
9741 * config/alpha/fbsd.mh: Likewise.
9742 * config/arm/nbsdaout.mh: Likewise.
9743 * config/arm/nbsdelf.mh: Likewise.
9744 * config/i386/i386gnu.mh: Likewise.
9745 * config/ia64/hpux.mh: Likewise.
9746 * config/ia64/linux.mh: Likewise.
9747 * config/m32r/linux.mh: Likewise.
9748 * config/m68k/linux.mh: Likewise.
9749 * config/mips/irix5.mh: Likewise.
9750 * config/mips/irix6.mh: Likewise.
9751 * config/pa/hpux.mh: Likewise.
9752 * config/pa/linux.mh: Likewise.
9753 * config/powerpc/aix.mh: Likewise.
9754 * config/sparc/linux.mh: Likewise.
9755 * config/sparc/linux64.mh: Likewise.
9756 * config/sparc/sol2.mh: Likewise.
9757 * config/vax/vax.mh: Likewise.
9758 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
9759 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
9760 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
9761 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
9762 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
9763 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
9764 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
9765 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
9766 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
9767 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
9768 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
9769 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
9770 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9771 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
9772 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
9773 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9774 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
9775 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
9776 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
9777 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
9778 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
9779 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
9780 corelow.o from gdb_target_obs.
9781 * corefile.c (core_target): Update the comment on NULL value.
9782 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
9783 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
9784 MATCHES. Drop YUMMY set on NULL.
9785 (core_close): Do not call exit_inferior_silent on zero PID. Do not
9786 reclaim CORE_DATA if it is already NULL.
9788 2012-01-09 Doug Evans <dje@google.com>
9790 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
9791 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
9793 2012-01-09 Keith Seitz <keiths@redhat.com>
9795 * breakpoint.c (wrapper.h): Don't include.
9797 2012-01-09 Keith Seitz <keiths@redhat.com>
9799 * Makefile.in (SFILES): Remove wrapper.c.
9800 (HFILES_NO_SRCDIR): Remove wrapper.h.
9801 (COMMON_OBS): Remove wrapper.o.
9802 * cli/cli-interp.c: Don't inlude wrapper.h.
9803 * corelow.c: Likewise.
9804 (core_open): Replace gdb_target_find_new_threads with
9805 TRY_CATCH around target_find_new_threads.
9806 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
9807 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
9808 * varobj.c (varobj_create): Likewise for parse_exp_1 and
9809 evaluate_expression.
9810 (varobj_set_value): Likewise for evaluate_expression and
9812 (install_new_variable): Likewise for value_fetch_lazy.
9813 (adjust_value_for_child_access): Likewise for value_ind.
9814 (c_describe_child): Likewise for value_subscript and
9816 (c_value_of_root): Likewise for evaluate_expression.
9817 * wrapper.c: Remove.
9818 * wrapper.h: Remove.
9820 2012-01-09 Doug Evans <dje@google.com>
9822 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
9823 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
9824 "abfd" args with "section". All callers updated.
9825 Error checking code moved ...
9826 (error_check_comp_unit_head): ... here. New function.
9827 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
9828 Delete arg "abfd". New arg "type_offset". All callers updated.
9829 (create_debug_types_hash_table): Simplify by using
9830 read_and_check_type_unit_head.
9832 * parser-defs.h (namecopy): Delete.
9833 * parse.c (namecopy, namecopy_size): Move into copy_name.
9835 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9837 Partially fix duplicate .o files after omitting libbfd.a.
9838 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
9839 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9840 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
9841 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9842 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
9843 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
9844 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9846 2012-01-09 Pedro Alves <palves@redhat.com>
9848 * MAINTAINERS: Update my email address.
9850 2012-01-08 Doug Evans <dje@google.com>
9852 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
9853 n_type_units. Rename type_comp_units to all_type_units.
9855 (add_signatured_type_cu_to_table): Renamed from
9856 add_signatured_type_cu_to_list. All callers updated.
9858 * gdbtypes.h (struct cplus_struct_type): Delete member
9859 nfn_fields_total. All uses removed.
9861 2012-01-06 Doug Evans <dje@google.com>
9863 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
9865 (dwarf2_find_comp_unit): Delete.
9866 (process_psymtab_comp_unit): Make result "void".
9867 Delete args buffer, info_ptr, buffer_size, and replace with
9868 "section". All callers updated.
9869 (dwarf2_build_psymtabs_hard): Simplify.
9871 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
9872 Thiago Jung Bauermann <bauerman@br.ibm.com>
9874 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
9875 before `struct gdb_exception'.
9876 * breakpoint.c (update_global_location_list_nothrow)
9877 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
9878 * cp-abi.c (value_rtti_type): Likewise.
9879 * cp-support.c (cp_validate_operator): Likewise.
9880 * infrun.c (insert_exception_resume_breakpoint)
9881 (check_exception_resume, keep_going): Likewise.
9882 * mi-interp.c (mi_breakpoint_created)
9883 (mi_breakpoint_modified): Likewise.
9884 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
9885 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
9886 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
9888 2012-01-05 Doug Evans <dje@google.com>
9890 * dwarf2read.c (statement_prologue): Delete, unused.
9892 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
9893 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
9895 * dwarf2read.c (comp_unit_header): Delete, unused.
9897 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
9899 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
9900 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
9902 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
9904 * infrun.c (normal_stop): Don't skip calling the normal_stop
9905 observers if the thread was doing a multi-step, but stopped for
9906 some reason other than stepping.
9908 2012-01-05 Pedro Alves <alves.ped@gmail.com>
9910 * cli/cli-decode.h: Add comments.
9911 (CMD_LIST_AMBIGUOUS): Moved to command.h
9912 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
9913 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
9914 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
9915 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
9916 (add_com, add_com_alias, add_info, add_info_alias)
9917 (complete_on_cmdlist, complete_on_enum, help_list): Remove
9919 * command.h: Add and adjust comments.
9920 (CMD_LIST_AMBIGUOUS): Moved here.
9921 (help_cmd, help_cmd_list): Delete declarations.
9923 2012-01-04 Doug Evans <dje@google.com>
9925 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
9926 All callers updated.
9927 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
9928 Replace all arguments with "per_cu". All callers updated.
9930 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
9932 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
9933 New arg "per_cu". All callers updated.
9935 Delete #if 0'd out code.
9936 * language.c (binop_result_type): Delete.
9937 (simple_type, ordered_type, same_type, integral_type): Delete.
9938 (numeric_type, character_type, string_type, boolean_type): Delete.
9939 (float_type, structured_type): Delete.
9940 * language.h: Update.
9942 2012-01-04 Tom Tromey <tromey@redhat.com>
9944 * python/py-value.c (valpy_binop): Initialize 'res_val'.
9946 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9948 * corefile.c (close_exec_file): Delete.
9949 (reopen_exec_file): Remove commented out code that seems related
9950 to close_exec_file, which is being deleted here.
9951 * inferior.h (close_exec_file): Delete.
9952 * fork-child.c (fork_inferior): Remove call to fork_inferior.
9954 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9956 * ada-lang.c: #include "cli/cli-utils.h".
9957 (get_selections): Use skip_spaces.
9958 (ada_get_next_arg): Use skip_spaces and skip_to_space.
9959 (catch_ada_exception_command_split): Use skip_spaces.
9960 (ada_decode_assert_location): Likewise.
9962 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9964 * linespec.c (decode_line_internal): Check for C++ or Java
9965 compound constructs only if the current language is C, C++
9968 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9971 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9972 Joel Brobecker <brobecker@adacore.com>
9973 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9974 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9976 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9977 fall through into AT_ENTRY_POINT.
9978 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9980 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9981 PPC_INSN_SIZE skip to 3 times.
9983 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9985 * linespec.c (add_minsym): Preserve function descriptors.
9987 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9989 * breakpoint.c (all_locations_are_pending): Consider locations
9990 in program spaces executing during startup pending as well.
9992 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9994 Copyright year update in most files of the GDB Project.
9996 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9998 * copyright.sh: Delete.
9999 * copyright.py: Rewrite.
10001 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10003 * gnulib/extra/update-copyright: New file, imported from gnulib.
10005 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10007 * README (Copyright and License Notices): New section.
10009 2012-01-03 Tom Tromey <tromey@redhat.com>
10012 * python/py-value.c (valpy_dereference, valpy_get_address
10013 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10014 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10015 (valpy_absolute, valpy_richcompare): Free intermediate values.
10017 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10019 * ada-lang.c: Reformat the copyright notice.
10021 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10023 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10024 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10025 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10026 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10027 Revert this part of:
10028 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10029 Build gdb directly from *.o files not using libgdb.a.
10030 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10032 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10034 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10035 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10036 Reformat the copyright header.
10038 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10040 Revert this part of:
10041 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10042 Remove the gdbtui binary.
10043 * gdb.c (main): Remove args.interpreter_p initialization.
10044 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10045 * main.h (struct captured_main_args): Remove interpreter_p.
10047 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10049 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10051 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10053 * top.c (print_gdb_version): Update copyright year.
10055 2012-01-02 Yao Qi <yao@codesourcery.com>
10057 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10059 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10060 Joel Brobecker <brobecker@adacore.com>
10062 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10063 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10065 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10066 fall through into AT_ENTRY_POINT.
10067 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10068 DUMMY_ADDR with it.
10069 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10070 PPC_INSN_SIZE skip to 3 times.
10072 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10074 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10076 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10078 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10080 Build gdb directly from *.o files not using libgdb.a.
10081 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10082 (COMMON_OBS): Remove solib-target.o.
10083 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10084 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10085 (LIBGDB_OBS, libgdb.a): Move it above.
10086 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10087 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10088 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10089 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10090 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10091 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10092 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10093 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10094 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10095 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10096 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10097 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10098 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10099 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10100 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10101 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10102 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10103 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10104 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10105 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10106 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10107 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10108 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10109 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10110 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10111 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10112 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10114 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10116 Remove the gdbtui binary.
10117 * .gitignore (/gdbtui): Remove.
10118 * Makefile.in (TUI): Remove.
10119 (SUBDIR_TUI_OBS): Remove tui-main.o.
10120 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10121 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10122 (tui-main.o): Remove.
10123 (all_object_files): Remove tui-main.o.
10124 * NEWS: New note for the gdbtui removal.
10125 * configure: Rebuilt.
10126 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10127 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10128 CONFIG_UNINSTALL respectively.
10129 * gdb.c (main): Remove args.interpreter_p initialization.
10130 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10131 * main.h (struct captured_main_args): Remove interpreter_p.
10132 * tui/tui-main.c: Remove.
10134 2012-01-01 Doug Evans <dje@google.com>
10136 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10137 (dwarf2_physname, read_import_statement): Ditto.
10138 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10139 (process_structure_scope read_subroutine_type): Ditto.
10140 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10141 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10142 (dwarf2_fetch_die_location_block): Ditto.
10143 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10145 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10146 All callers updated.
10147 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10148 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10149 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10151 * dwarf2read.c (load_cu): Move assert to more useful location.
10153 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10154 All callers updated.
10156 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10157 (dwarf2_elf_names): Minor reformat.
10158 (dwarf2_per_cu_data): Tweak comment.
10159 (dwarf2_read_section): Fix comment.
10160 (create_all_comp_units): Fix comment.
10161 (load_full_comp_unit): Fix comment.
10162 (process_full_comp_unit): Fix comment.
10163 (read_signatured_type): Fix comment.
10165 For older changes see ChangeLog-2011.
10171 version-control: never