1 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
8 2011-08-29 Yao Qi <yao@codesourcery.com>
10 * solib-dsbt.c (bfd_lookup_symbol): Removed.
12 (enable_break2): Update caller.
13 * solib-frv.c (bfd_lookup_symbol): Removed.
15 (enable_break2): Update caller.
16 * solib-pa64.c (bfd_lookup_symbol): Removed.
18 * solib-svr4.c (bfd_lookup_symbol): Removed.
19 (cmp_name_and_sec_flags): New.
20 (enable_break): Update caller.
21 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
22 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
23 (gdb_bfd_lookup_symbol): New.
24 * solib.h: Functions declarations.
26 2011-08-29 Yao Qi <yao@codesourcery.com>
28 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
31 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
33 Fix TUI stepi on code without symbols.
34 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
37 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
40 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
41 and the static keyword.
42 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
44 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
45 * mi/mi-main.c (get_register): Remove stb initialization and the static
48 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
50 Code cleanup - make mi_opt const.
51 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
53 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
54 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
55 (mi_cmd_env_dir): Likewise.
56 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
57 (mi_cmd_target_file_put): Likewise.
58 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
59 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
60 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
61 (mi_valid_noargs): Make opts const.
62 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
63 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
64 (mi_cmd_data_read_memory): Likewise.
65 (mi_cmd_data_read_memory_bytes): Likewise.
66 (mi_cmd_data_write_memory): Likewise.
68 2011-08-26 Matt Rice <ratmice@gmail.com>
70 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
71 bcache_xmalloc, replace bcache_xmalloc with call to
72 psymbol_bcache_init for psymbol_cache.
73 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
75 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
77 * inf-loop.c (inferior_event_handler): Add exception_print in
80 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
82 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
83 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
84 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
85 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
86 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
87 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
88 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
89 * infrun.c (fetch_inferior_event): Call
90 make_bpstat_clear_actions_cleanup.
91 * top.c (execute_command): New variable cleanup_if_error, call
92 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
93 * utils.c (do_bpstat_clear_actions_cleanup)
94 (make_bpstat_clear_actions_cleanup): New functions.
96 2011-08-26 Pedro Alves <pedro@codesourcery.com>
98 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
99 either the parent or the child forks. Rename a couple locals.
101 2011-08-26 Pedro Alves <pedro@codesourcery.com>
103 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
104 library call. Avoid reading the `status' local if all waitpid
107 2011-08-26 Pedro Alves <pedro@codesourcery.com>
109 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
110 opening /proc/PID/task always succeeds.
112 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
114 * linespec.c (symtab_from_filename): Check for the end of string.
116 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
119 * varobj.c (cplus_describe_child): Add the keyword
120 'class' to the output of the method when dealing
121 with a cast to a base class.
123 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
125 No functionality change.
126 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
127 function comment a reference, new variables tp and bs, move here code
128 from throw_exception.
129 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
130 describe it in the comment.
131 * exceptions.c (throw_exception): Remove variable tp, move the code for
132 bpstat_clear_actions to bpstat_clear_actions.
134 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
136 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
137 * linux-nat.c: Include linux-procfs.h.
138 (linux_proc_get_tgid): Move to ...
139 * common/linux-procfs.c: ... here. New file.
140 * common/linux-procfs.h: New file.
141 * linux-thread-db.c: Include linux-procfs.h.
142 * Makefile.in: Update dependencies.
143 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
144 * config/arm/linux.mh: Likewise.
145 * config/i386/linux.mh: Likewise.
146 * config/i386/linux64.mh: Likewise.
147 * config/ia64/linux.mh: Likewise.
148 * config/m32r/linux.mh: Likewise.
149 * config/m68k/linux.mh: Likewise.
150 * config/mips/linux.mh: Likewise.
151 * config/pa/linux.mh: Likewise.
152 * config/pa/linux.mh: Likewise.
153 * config/powerpc/linux.mh: Likewise.
154 * config/powerpc/ppc64-linux.mh: Likewise.
155 * config/powerpc/spu-linux.mh: Likewise.
156 * config/sparc/linux.mh: Likewise.
157 * config/sparc/linux64.mh: Likewise.
158 * config/xtensa/linux.mh: Likewise.
160 2011-08-24 Hui Zhu <teawater@gmail.com>
162 * tracepoint.c (cond_string_is_same): New function.
163 (find_matching_tracepoint): Add condition check
164 by cond_string_is_same.
166 2011-08-23 Josh Matthews <josh@joshmatthews.net>
168 Fix build error in Darwin port.
169 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
171 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
174 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
175 (command_line_is_silent): New function.
176 (bpstat_do_actions_1): No longer use commands_left, use
177 command_line_is_silent for commands.
178 (bpstat_alloc): Remove clearing of commands_left.
179 (bpstat_stop_status): Remove initialization of commands_left, use
180 command_line_is_silent.
181 * breakpoint.h (struct bpstats): Remove commands_left.
183 2011-08-18 Keith Seitz <keiths@redhat.com>
186 * cp-name-parser.y (struct demangle_info): Remove unused
189 (allocate_info): Change return type to struct demangle_info *.
190 Always allocate a new demangle_info.
191 Remove unused PREV pointer.
192 (cp_new_demangle_parse_info): New function.
193 (cp_demangled_name_parse_free): New function.
194 (do_demangled_name_parse_free_cleanup): New function.
195 (make_cleanup_cp_demangled_name_parse_free): New function.
196 (cp_demangled_name_to_comp): Change return type to
197 struct demangle_parse_info *.
198 Allocate a new storage for each call.
199 (main): Update usage for cp_demangled_name_to_comp
201 * cp-support.h (struct demangle_parse_info): New structure.
202 (cp_demangled_name_to_comp): Update API change for
204 (cp_new_demangle_parse_info): Declare.
205 (make_cleanup_cp_demangled_name_parse_free): New declaration.
206 (cp_demangled_name_parse_free): Declare.
207 * cp-support.c (cp_canonicalize_string): Update API
208 change for cp_demangled_name_to_comp.
209 (mangled_name_to_comp): Likewise.
210 Return struct demangle_parse_info, too.
211 (cp_class_name_from_physname): Update mangled_name_to_comp
213 (method_name_from_physname): Likewise.
214 (cp_func_name): Update API change for cp_demangled_name_to_comp.
215 (cp_remove_params): Likewise.
216 * python/py-type.c (typy_legacy_template_argument): Likewise.
218 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
219 (cp_merge_demangle_parse_infos): Declare.
220 * cp-support.c (ignore_typedefs): New file global.
221 (copy_string_to_obstack): New function.
222 (inspect_type): New function.
223 (replace_typedefs): New function.
224 (replace_typedefs_qualified_name): New function.
225 (cp_canonicalize_string_no_typedefs): New function.
226 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
227 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
228 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
229 instead of cp_canonicalize_string.
230 (find_method): Likewise.
231 (decode_compound): Before looking up the name, call
232 cp_canonicalize_string_no_typedefs.
233 (decode_variable): Likewise.
235 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
236 Tom Tromey <tromey@redhat.com>
237 Matt Rice <ratmice@gmail.com>
239 * python/lib/gdb/prompt.py: New file.
240 * python/lib/gdb/command/prompt.py: New file.
241 * NEWS: Document set extended-prompt and gdb.prompt library
243 2011-08-16 Yao Qi <yao@codesourcery.com>
245 * tic6x-linux-tdep.c: Move const arrays definition from here...
246 * tic6x-tdep.c: to here ...
248 2011-08-14 Yao Qi <yao@codesourcery.com>
250 * NEWS: New port to Texas Instruments TMS320C6x.
252 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
253 Bernd Schmidt <bernds@codesourcery.com>
254 Yao Qi <yao@codesourcery.com>
256 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
257 * solib-dsbt.c: New file. Support DSBT shared object.
258 * tic6x-linux-tdep.c: New file.
259 * tic6x-tdep.c: New file.
260 * tic6x-tdep.h: New file.
262 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
263 Yao Qi <yao@codesourcery.com>
265 * remote.c (PACKET_qXfer_fdpic): New enum value.
266 (remote_protocol_features): Add qXfer:fdpic:read packet.
267 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
268 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
269 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
271 2011-08-14 Yao Qi <yao@codesourcery.com>
273 Target description for tic6x.
274 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
275 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
276 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
277 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
278 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
279 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
280 * features/tic6x-c64xp-linux.xml: New.
281 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
282 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
283 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
284 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
285 * regformats/tic6x-c64xp.dat,
286 regformats/tic6x-c62x-linux.dat: Generated.
287 * regformats/tic6x-c64x-linux.dat,
288 regformats/tic6x-c64xp-linux.dat: Generated.
289 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
290 features/tic6x-*.c files.
291 Add regformats/tic6x-*.dat files.
293 2011-08-12 Doug Evans <dje@google.com>
295 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
296 * python/py-symbol.c (sympy_get_type): New function.
297 (symbol_object_getset): Add "type".
299 2011-08-12 Pedro Alves <pedro@codesourcery.com>
303 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
305 (tui_show_register_group): Don't store a byte buffer in the data
307 (tui_register_format): Skip registers with an empty name.
308 (tui_get_register): Store a struct value in the data element's
309 value field instead of a byte buffer holding the raw register
310 contents. Account for optimized-out and unavailable registers
311 when comparing register contents.
313 2011-08-09 Pedro Alves <pedro@codesourcery.com>
315 * printcmd.c (current_display_number): Update comment.
316 (disable_current_display_cleanup): Delete.
317 (do_one_display): Use make_cleanup_restore_integer. Gracefully
318 catch errors thrown while evaluating and printing the display.
320 2011-08-09 Tom Tromey <tromey@redhat.com>
322 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
324 2011-08-09 Pedro Alves <pedro@codesourcery.com>
326 * elfread.c (elf_symtab_read): Rework comments.
327 * maint.c (maintenance_command): Ditto.
328 * somread.c (som_symtab_read): Ditto.
329 * solib.c (solib_find, solib_map_sections, update_solib_list)
330 (solib_add, info_sharedlibrary_command, solib_name_from_address)
331 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
332 (sharedlibrary_command, no_shared_libraries): Ditto.
333 * solib-irix.c (locate_base, disable_break, enable_break)
334 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
335 (irix_current_sos, irix_open_symbol_file_object)
336 (irix_special_symbol_handling): Ditto.
337 * solib-sunos.c (locate_base, first_link_map_member)
338 (sunos_current_sos, disable_break, enable_break)
339 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
341 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
342 (open_symbol_file_object, svr4_current_sos, enable_break)
343 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
345 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
346 (frv_current_sos, enable_break, frv_special_symbol_handling)
347 (frv_solib_create_inferior_hook): Ditto.
348 * solist.h (struct target_so_ops): Extend the comments of the
349 special_symbol_handling, current_sos and open_symbol_file_object
352 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
354 * python/lib/gdb/__init__.py: Auto-load files in command and
355 function directories.
356 * python/python.c (finish_python_initialization): Use
358 * python/lib/gdb/command/pretty_printers.py: Self register
360 * NEWS: Document auto-loading.
362 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
364 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
365 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
366 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
368 2011-08-08 Tom Tromey <tromey@redhat.com>
370 * breakpoint.c (clean_up_filters): Remove.
371 (catch_syscall_split_args): Use VEC_cleanup.
373 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
375 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
376 (main): Uncomment "Demangling error\n".
378 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
380 * solib-target.c (segment_attributes): Make them static.
381 (section_attributes, library_children, library_attributes): Likewise.
382 (library_list_children, library_list_attributes): Likesise.
383 (library_list_elements): Likewise.
385 2011-08-05 Pedro Alves <pedro@codesourcery.com>
387 * exceptions.c (throw_exception): Don't disable the current
389 * printcmd.c (disable_current_display_cleanup): New function.
390 (do_one_display): Install a cleanup to disable the current display
391 if doing the display throws.
393 2011-08-05 Eli Zaretskii <eliz@gnu.org>
395 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
396 initialization of the tp_new member to the corresponding
397 gdbpy_initialize_* function.
398 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
399 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
400 * python/py-function.c (gdbpy_initialize_functions): Likewise.
401 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
402 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
404 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
406 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
407 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
408 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
409 references to current_uiout.
411 2011-08-04 Pedro Alves <pedro@codesourcery.com>
413 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
414 (start_event_loop): Use TRY_CATCH instead of catch_errors.
415 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
416 * top.c (gdb_readline_wrapper): Adjust.
417 * tui/tui-interp.c (tui_command_loop):
418 (_initialize_tui_interp): Don't install it.
420 2011-08-04 Pedro Alves <pedro@codesourcery.com>
422 * ui-out.h (uiout): Rename to ...
423 (current_uiout): ... this.
424 * ui-out.c (uiout): Rename to ...
425 (current_uiout): ... this.
426 * ada-lang.c (print_it_exception, print_one_exception)
427 (print_mention_exception): Adjust.
428 * breakpoint.c (watchpoint_check): Adjust.
429 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
430 (default_collect_info, watchpoints_info, print_one_catch_fork)
431 (print_one_catch_vfork, print_one_catch_syscall)
432 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
433 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
434 (print_it_watchpoint, print_mention_watchpoint)
435 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
436 (print_it_exception_catchpoint, print_one_exception_catchpoint)
437 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
438 (bkpt_print_mention, momentary_bkpt_print_it)
439 (tracepoint_print_mention, update_static_tracepoint)
440 (tracepoints_info, save_breakpoints): Adjust.
441 * cli-out.c (field_separator): Adjust.
442 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
443 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
444 * frame.c (get_current_frame): Adjust.
445 * infcmd.c (run_command_1, print_return_value): Adjust.
446 * inferior.c (inferior_command, info_inferiors_command): Adjust.
447 * infrun.c (print_end_stepping_range_reason): Adjust.
448 (print_signal_exited_reason, print_exited_reason): Adjust.
449 (print_signal_received_reason, print_no_history_reason): Adjust.
450 * interps.c (interp_set): Adjust.
451 * osdata.c (info_osdata_command): Adjust.
452 * progspace.c (maintenance_info_program_spaces_command): Adjust.
453 * remote-fileio.c (remote_fileio_request): Adjust.
454 * remote.c (show_remote_cmd): Adjust.
455 * solib.c (info_sharedlibrary_command): Adjust.
456 * source.c (print_source_lines_base): Adjust.
457 * stack.c (print_stack_frame): Adjust.
458 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
459 * symfile-mem.c (add_vsyscall_page): Adjust.
460 * symfile.c (load_progress, generic_load)
461 (print_transfer_performance): Adjust.
462 * thread.c (info_threads_command, restore_selected_frame)
463 (thread_command): Adjust.
464 * top.c (make_cleanup_restore_ui_file): Adjust.
465 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
466 (print_one_static_tracepoint_marker): Adjust.
467 * cli/cli-cmds.c (print_disassembly): Adjust.
468 * cli/cli-decode.c (print_doc_line): Adjust.
469 * cli/cli-interp.c (safe_execute_command): Adjust.
470 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
471 (handle_redirections): Adjust.
472 * cli/cli-script.c (show_user_1): Adjust.
473 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
474 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
475 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
476 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
477 (mi_cmd_env_dir): Adjust.
478 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
479 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
480 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
481 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
482 (list_args_or_locals): Adjust.
483 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
484 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
485 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
486 (mi_cmd_var_list_children, mi_cmd_var_info_type)
487 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
488 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
489 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
490 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
491 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
492 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
493 (list_available_thread_groups, mi_cmd_list_thread_groups)
494 (mi_cmd_data_list_register_names)
495 (mi_cmd_data_list_changed_registers)
496 (mi_cmd_data_list_register_values, get_register)
497 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
498 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
499 (mi_cmd_list_target_features, mi_cmd_add_inferior)
500 (mi_execute_command, mi_load_progress): Adjust.
501 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
502 * python/py-auto-load.c (print_script, info_auto_load_scripts):
504 * python/py-breakpoint.c (bppy_get_commands): Adjust.
505 * tui/tui-interp.c (tui_command_loop): Adjust.
506 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
508 2011-08-04 Pedro Alves <pedro@codesourcery.com>
510 * exceptions.c (struct catcher): Remove saved_uiout field.
511 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
512 no longer save/resvore the global ui_out builder.
513 (catch_exceptions_with_msg): Save/override/restore the global
514 ui_out builder manually instead of relying on TRY_CATCH to do it.
515 (catch_errors): Save/restore the global ui_out builder manually
516 instead of relying on TRY_CATCH to do it.
517 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
520 * cli/cli-interp.c (safe_execute_command): Save/override/restore
521 the global ui_out builder manually instead of relying on TRY_CATCH
524 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
526 * breakpoint.c (update_global_location_list): Ensure
527 invariant 'first loc marked not duplicated and inserted,
528 following locs marked duplicated/not inserted' is respected
529 for multiple locations at the same address.
530 (unduplicated_should_be_inserted) New function.
531 (swap_insertion) New function.
533 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
535 * stack.c (print_frame_arguments_choices): Comment typo fix.
537 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
540 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
541 * breakpoint.c (insert_bp_location): Remove disabled_breaks
542 argument. Update callers.
544 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
547 * doublest.c (convert_doublest_to_floatformat): Pass correct
548 mantissa length to put_field.
550 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
552 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
553 exception_print code path.
554 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
555 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
556 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
558 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
561 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
562 Remove, merge them into ...
563 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
564 variable args and its initialization.
565 (struct print_args_args, print_args_stub): Remove, merge them into
567 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
569 (do_gdb_disassembly): ... here. Remove variable args and its
571 (print_frame): Remove variable args and its initialization, new
572 variable gdbarch and numargs (from print_args_stub), inline here
573 print_args_stub with a TRY_CATCH.
574 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
576 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
577 New variable e, remove variable btargs and its initialization.
579 2011-08-01 Tristan Gingold <gingold@adacore.com>
581 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
583 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
585 * breakpoint.c (insert_bp_location): Document return value.
586 (insert_breakpoint_locations): Fix documentation.
587 (remove_breakpoints): Add documentation.
589 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
591 * breakpoint.c (insert_bp_location): Remove disabled_breaks
592 argument. Update callers.
594 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
596 * stack.c (print_frame_info): Comment typo fix.
598 2011-07-29 Sterling Augustine <saugustine@google.com>
600 * MAINTAINERS (Write After Approval): Add myself to the list.
602 2011-07-29 Tom Tromey <tromey@redhat.com>
604 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
605 (library_list_start_segment): Update.
606 (library_list_start_section): Update.
608 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
610 * varobj.c (value_get_print_value): Move hint check later into the
611 function. Comment function. Free thevalue before reusing it.
613 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
614 Pedro Alves <pedro@codesourcery.com>
616 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
618 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
619 Assert the result kind.
620 * value.h (value_one): Remove parameter lv.
622 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
624 Fix crash on lval_computed values.
625 * valops.c (value_zero): Use not_lval for lval_computed.
627 2011-07-27 Tom Tromey <tromey@redhat.com>
629 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
630 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
632 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
634 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
635 "ptype" by their typedefs difference.
637 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
639 * dwarf2expr.c (ctx_no_read_reg): New function.
640 * dwarf2expr.h (ctx_no_read_reg): New declaration.
641 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
642 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
643 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
645 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
647 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
648 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
650 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
651 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
652 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
653 (ctx_no_get_base_type): Move the functions here.
654 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
655 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
656 (ctx_no_get_base_type): New declarations.
658 2011-07-27 Tom Tromey <tromey@redhat.com>
660 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
662 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
663 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
665 2011-07-26 Sterling Augustine <saugustine@google.com>
667 * cli/cli-dump.c (dump_binary_file): Change parameter type to
669 (dump_bfd_file): Likewise.
671 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
673 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
674 (remote_hw_watchpoint_length_limit): New variable.
675 (_initialize_remote) add set,show cmds for this new variable.
676 * gdb.texinfo: document these new commands.
677 * NEWS: Mention these new commands.
679 2011-07-26 Pedro Alves <pedro@codesourcery.com>
681 * breakpoint.c (works_in_software_mode_watchpoint): Also return
682 true for software watchpoints.
684 2011-07-26 Joel Brobecker <brobecker@adacore.com>
688 2011-07-26 Tom Tromey <tromey@redhat.com>
690 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
691 * dwarf2read.c (read_indirect_string_at_offset): New function.
692 (read_indirect_string): Use it.
693 (dwarf_decode_macro_bytes): New function, taken from
694 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
695 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
696 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
698 (struct dwarf2_per_objfile) <macro>: New field.
699 (dwarf2_elf_names): Add .debug_macro.
700 (dwarf2_macros_too_long_complaint): Add 'section' argument.
701 (dwarf2_locate_sections): Handle new section.
702 (read_file_scope): Handle DW_AT_GNU_macros.
703 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
705 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
707 * NEWS: Mention dcache configuration.
708 * dcache.c (dcache_set_list, dcache_show_list): New variables.
709 (dcache_size, dcache_line_size): New variables.
710 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
711 (struct dcache_block): Make it expandable.
712 (struct dcache_struct): New field.
713 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
714 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
715 (dcache_poke_byte, dcache_print_line): Adjust.
716 (set_dcache_size, set_dcache_line_size): New functions.
717 (set_dcache_command, show_dcache_command): New functions.
718 (_initialize_dcache): Add new commands.
720 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
722 * progspace.h (struct program_space): Add solib_add_generation.
723 * infcmd.c (post_create_inferior): Only call solib_add if not
725 * solib.c (solib_add): Increment solib_add_generation.
727 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
729 Fix implicit pointer offsets.
730 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
733 2011-07-25 Tom Tromey <tromey@redhat.com>
735 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
737 (ada_exception_sal): Make 'ops' const.
738 (ada_decode_exception_location): Likewise.
739 (ada_decode_assert_location): Likewise.
740 (catch_assert_command): Update.
741 (catch_ada_exception_command): Update.
742 (create_ada_exception_catchpoint): Make 'ops' const.
743 * breakpoint.c (set_raw_breakpoint_without_location)
744 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
746 (create_internal_breakpoint): Update.
747 (init_raw_breakpoint_without_location): Make 'ops' const.
748 (init_raw_breakpoint, init_catchpoint)
749 (create_fork_vfork_event_catchpoint)
750 (create_syscall_event_catchpoint, init_breakpoint_sal)
751 (create_breakpoint_sal, create_breakpoints_sal)
752 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
753 * breakpoint.h (struct breakpoint) <ops>: Now const.
754 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
757 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
759 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
761 2011-07-25 Pedro Alves <pedro@codesourcery.com>
763 * breakpoint.h (print_recreate_thread): Declare.
764 (struct breakpoint): Move step_count, pass_count,
765 number_on_target, static_trace_marker_id,
766 static_trace_marker_id_idx ...
767 (struct tracepoint): ... to this new struct.
768 (get_tracepoint, get_tracepoint_by_number_on_target)
769 (get_tracepoint_by_number): Change return type to struct
771 * breakpoint.c (is_tracepoint_type): New, factored out from
773 (is_tracepoint): Adjust.
774 (print_one_breakpoint_location): Cast to struct tracepoint as
775 necessary, and adjust.
776 (print_recreate_catch_fork, print_recreate_catch_vfork)
777 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
778 print_recreate_thread.
779 (init_breakpoint_sal): New, factored out from
780 create_breakpoint_sal.
781 (create_breakpoint_sal): Reimplement.
782 (create_breakpoint): Allocate a struct tracecepoint if the caller
783 wanted a tracepoint. Use init_breakpoint_sal and
785 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
786 (print_recreate_masked_watchpoint)
787 (print_recreate_exception_catchpoint): Call print_recreate_thread.
788 (tracepoint_print_one_detail): Adjust.
789 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
790 Dump the pass count here.
791 (update_static_tracepoint): Adjust.
792 (addr_string_to_sals): Adjust.
793 (create_tracepoint_from_upload): Adjust. Change return type to
794 struct tracepoint pointer.
795 (trace_pass_set_count): Change parameter type to struct tracepoint
797 (trace_pass_command): Adjust.
798 (get_tracepoint, get_tracepoint_by_number_on_target)
799 (get_tracepoint_by_number): Change return type to struct
800 tracepoint pointer, and adjust.
801 (print_recreate_thread): New, factored out from save_breakpoints.
802 (save_breakpoints): Don't print thread and task and passcount
804 * remote.c (remote_download_tracepoint): Adjust.
805 * tracepoint.c (trace_actions_command, validate_actionline)
806 (start_tracing, tfind_1, trace_find_tracepoint_command)
807 (trace_dump_command): Adjust.
808 (find_matching_tracepoint): Change return type to struct
809 tracepoint pointer, and adjust.
810 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
811 (tfile_trace_find, tfile_fetch_registers): Adjust.
812 * tracepoint.h (create_tracepoint_from_upload): Change return type
813 to struct tracepoint pointer.
814 * ada-lang.c (print_recreate_exception): Call
815 print_recreate_thread.
816 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
818 2011-07-25 Pedro Alves <pedro@codesourcery.com>
820 * breakpoint.h (struct breakpoint): Move ops as first field. Move
821 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
822 cond_exp_valid_block, val, val_valid, watchpoint_frame,
823 watchpoint_thread, watchpoint_triggered ...
824 (struct watchpoint): ... to this new struct.
825 (is_watchpoint): Declare.
826 (install_breakpoint): Add new `internal' parameter.
827 * breakpoint.c (is_watchpoint): Delete declaration.
828 (set_breakpoint_condition): Handle watchpoints.
829 (is_watchpoint): Make public.
830 (watchpoint_in_thread_scope): Change parameter type to struct
832 (watchpoint_del_at_next_stop): Change parameter type to struct
833 watchpoint. Remove assertion. Adjust.
834 (update_watchpoint): Ditto.
835 (insert_breakpoints, breakpoint_init_inferior)
836 (watchpoints_triggered, watchpoint_check)
837 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
838 (bpstat_stop_status, print_one_breakpoint_location)
839 (print_one_breakpoint_location, watchpoint_locations_match): Cast
840 to struct watchpoint as necessary, and adjust.
841 (install_breakpoint): Add `internal' argument. If true, don't
842 mention the new breakpoint. Use set_breakpoint_number.
843 (create_fork_vfork_event_catchpoint)
844 (create_syscall_event_catchpoint): Adjust.
845 (dtor_watchpoint): New.
846 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
847 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
848 (print_it_watchpoint, print_mention_watchpoint)
849 (print_recreate_watchpoint, insert_masked_watchpoint)
850 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
851 (print_one_detail_masked_watchpoint)
852 (print_mention_masked_watchpoint)
853 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
854 necessary, and adjust.
855 (watch_command_1): Allocate and initialize a struct watchpoint
856 instead of a struct breakpoint. Use install_breakpoint.
857 (catch_exec_command_1): Adjust.
858 (base_breakpoint_dtor): Delete accesses to watchpoint specific
860 (delete_breakpoint, enable_breakpoint_disp)
861 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
862 as necessary, and adjust.
863 (initialize_breakpoint_ops): Install dtor_watchpoint as
864 watchpoints' dtor method.
865 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
866 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
867 to struct watchpoint as necessary, and adjust.
869 2011-07-25 Pedro Alves <pedro@codesourcery.com>
871 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
872 the the base class ops table.
873 (catch_exception_breakpoint_ops)
874 (catch_exception_unhandled_breakpoint_ops)
875 (catch_assert_breakpoint_ops): Don't statically initialize.
876 (initialize_ada_catchpoint_ops): New.
877 (_initialize_ada_language): Call it.
878 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
879 (bkpt_breakpoint_ops): Forward declare.
880 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
881 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
882 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
883 (masked_watchpoint_breakpoint_ops)
884 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
885 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
886 base class ops table.
887 (null_re_set, null_check_status, null_works_in_software_mode)
888 (null_resources_needed, null_print_one_detail): Delete.
889 (bkpt_dtor): Rename to ...
890 (base_breakpoint_dtor): ... this. Make static.
891 (bkpt_allocate_location): Rename to ...
892 (base_breakpoint_allocate_location): ... this. Make static.
893 (base_breakpoint_re_set): New.
894 (internal_error_pure_virtual_called): New.
895 (base_breakpoint_insert_location, base_breakpoint_remove_location)
896 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
897 (base_breakpoint_works_in_software_mode)
898 (base_breakpoint_resources_needed, base_breakpoint_print_it)
899 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
900 (base_breakpoint_print_recreate): New functions.
901 (base_breakpoint_ops): New global.
902 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
903 (bkpt_breakpoint_hit): Make static.
904 (bkpt_check_status): Delete.
905 (bkpt_resources_needed): Make static.
906 (bkpt_works_in_software_mode): Delete.
907 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
909 (bkpt_breakpoint_ops, internal_breakpoint_ops)
910 (momentary_breakpoint_ops): Don't statically initialize.
911 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
913 (tracepoint_insert_location, tracepoint_remove_location)
914 (tracepoint_check_status, tracepoint_works_in_software_mode)
915 (tracepoint_print_it): Delete.
916 (tracepoint_breakpoint_ops): Don't statically initialize.
917 (initialize_breakpoint_ops): New.
918 (_initialize_breakpoint): Call it.
919 * breakpoint.h (null_re_set, null_works_in_software_mode)
920 (null_resources_needed, null_check_status, null_print_one_detail):
921 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
922 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
923 (bkpt_check_status, bkpt_resources_needed)
924 (bkpt_works_in_software_mode, bkpt_print_it)
925 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
927 (initialize_breakpoint_ops): Declare.
929 2011-07-25 Pedro Alves <pedro@codesourcery.com>
931 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
932 (momentary_bkpt_print_it): Simplify.
934 2011-07-25 Pedro Alves <pedro@codesourcery.com>
936 Split internal, momentary and user breakpoints breakpoint_ops
939 * breakpoint.c (internal_breakpoint_ops)
940 (momentary_breakpoint_ops): Forward declare.
941 (create_internal_breakpoint): Add new breakpoint_ops parameter.
942 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
943 (create_overlay_event_breakpoint)
944 (create_std_terminate_master_breakpoint)
945 (create_exception_master_breakpoint): Create breakpoints with
946 internal_breakpoint_ops vtable.
947 (set_longjmp_breakpoint): Create momentary breakpoints with
948 momentary_breakpoint_ops vtable, using
949 momentary_breakpoint_from_master.
950 (create_thread_event_breakpoint, create_jit_event_breakpoint)
951 (create_solib_event_breakpoint): Create breakpoints with
952 internal_breakpoint_ops vtable.
953 (set_momentary_breakpoint): Create breakpoints with
954 momentary_breakpoint_ops vtable.
955 (momentary_breakpoint_from_master): New, factored out from
956 clone_momentary_breakpoint.
957 (clone_momentary_breakpoint): Adjust.
958 (watch_command_1): Create scope breakpoints with
959 momentary_breakpoint_ops vtable.
960 (bkpt_re_set): Remove handling of internal and momentary
962 (bkpt_print_mention, bkpt_print_recreate): New.
963 (bkpt_breakpoint_ops): Adjust.
964 (internal_bkpt_re_set, internal_bkpt_check_status)
965 (internal_bkpt_print_it, internal_bkpt_print_mention)
966 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
967 (momentary_bkpt_re_set, momentary_bkpt_check_status)
968 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
969 (momentary_bkpt_print_recreate): New.
970 (momentary_breakpoint_ops): New.
972 2011-07-25 Pedro Alves <pedro@codesourcery.com>
974 Implement most breakpoint_ops methods for all breakpoint types,
975 and move the default handlings to the proper callbacks.
977 * breakpoint.c (update_watchpoint): Always call the breakpoint's
978 works_in_software_mode method.
979 (insert_bp_location): Go through breakpoint_ops->insert_location
980 for software and hardware watchpoints.
981 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
983 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
984 for software and hardware watchpoints.
985 (print_it_typical): Delete.
986 (print_bp_stop_message): Always call the breakpoint_ops->print_it
988 (watchpoint_check): Adjust comment.
989 (bpstat_check_location): Simply always call the breakpoint's
990 breakpoint_hit method.
991 (bpstat_stop_status): Always call the breakpoint's check_status
992 method. Remove special cases for watchpoints and internal event
993 breakpoints from here (moved to the check_status implementations).
994 (print_one_breakpoint_location): Assume b->ops is never NULL.
995 Remove static tracepoint marker id printing from here (moved to
996 the print_one_detail callback implementation of tracepoints).
997 (init_bp_location): Assert OPS is never NULL.
998 (allocate_bp_location): Always call the breakpoint's
999 allocate_location method, and remove the default code from here.
1000 (free_bp_location): Always call the location's dtor method, and
1001 remove the default code from here.
1002 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1003 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1004 parameter. Pass it down.
1005 (set_raw_breakpoint): Ditto.
1006 (print_it_catch_fork): Adjust to take a bpstat as argument.
1007 (catch_fork_breakpoint_ops): Install methods.
1008 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1009 (catch_vfork_breakpoint_ops): Install methods.
1010 (dtor_catch_syscall): Call the base dtor.
1011 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1012 (catch_syscall_breakpoint_ops): Install methods.
1013 (dtor_catch_exec): Call the base dtor.
1014 (print_it_catch_exec): Adjust to take a bpstat as argument.
1015 (catch_exec_breakpoint_ops): Install methods.
1016 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1017 the breakpoint's resources_needed method, and remove the default
1019 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1021 (clone_momentary_breakpoint): Clone the original's ops.
1022 (mention): Always call the breakpoint's print_mention method, and
1023 remove the default code from here.
1024 (create_breakpoint_sal): Adjust to pass the ops to
1025 set_raw_breakpoint rather than setting it manually.
1026 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1027 ops to set_raw_breakpoint_without_location rather than setting it
1029 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1030 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1031 (ranged_breakpoint_ops): Install methods.
1032 (break_range_command): Adjust to pass the ops to
1033 set_raw_breakpoint rather than setting it manually.
1034 (re_set_watchpoint, breakpoint_hit_watchpoint)
1035 (check_status_watchpoint, resources_needed_watchpoint)
1036 (works_in_software_mode_watchpoint, print_it_watchpoint)
1037 (print_mention_watchpoint, print_recreate_watchpoint): New
1039 (watchpoint_breakpoint_ops): Install new methods.
1040 (print_it_masked_watchpoint): New function.
1041 (masked_watchpoint_breakpoint_ops): Install new methods.
1042 (watch_command_1): Adjust to pass the right breakpoint_ops to
1043 set_raw_breakpoint_without_location rather than setting it
1044 manually later. Record the current pspace.
1045 (print_it_exception_catchpoint): Adjust to take a bpstat as
1047 (gnu_v3_exception_catchpoint_ops): Install new methods.
1048 (say_where): New function.
1049 (null_re_set, null_check_status, null_works_in_software_mode)
1050 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1052 (bp_location_ops): New global.
1053 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1054 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1055 (bkpt_check_status, bkpt_resources_needed)
1056 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1057 (bkpt_print_recreate): New functions.
1058 (bkpt_breakpoint_ops): New global.
1059 (tracepoint_re_set, tracepoint_insert_location)
1060 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1061 (tracepoint_check_status, tracepoint_works_in_software_mode)
1062 (tracepoint_print_it, tracepoint_print_one_detail)
1063 (tracepoint_print_mention, tracepoint_print_recreate): New
1065 (tracepoint_breakpoint_ops): New global.
1066 (delete_breakpoint): Always call the breakpoint's dtor method, and
1067 remove the default handling from here.
1068 (breakpoint_re_set_default): Make static.
1069 (breakpoint_re_set_one): Always call the breakpoints re_set
1070 method, and remove the default handling from here.
1071 (trace_command, ftrace_command, strace_command)
1072 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1073 to create_breakpoint.
1074 (save_breakpoints): Always call the breakpoint's print_recreate
1075 method, and remove the default handling from here.
1077 * ada-lang.c (dtor_exception): Call the base dtor.
1078 (re_set_exception): Call the base method.
1079 (print_it_exception, print_it_catch_exception): Adjust to take a
1081 (catch_exception_breakpoint_ops): Install methods.
1082 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1084 (catch_exception_unhandled_breakpoint_ops): Install methods.
1085 (print_it_catch_assert): Adjust to take a bpstat as argument.
1086 (catch_assert_breakpoint_ops): Install methods.
1088 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1089 to take a bpstat as argument.
1090 (enum print_stop_action): Add describing comments to each enum
1092 (breakpoint_re_set_default): Delete declaration.
1093 (null_re_set, null_works_in_software_mode, null_resources_needed)
1094 (null_check_status, null_print_one_detail): Declare.
1095 (bkpt_breakpoint_ops): Declare.
1096 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1097 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1098 (bkpt_check_status, bkpt_resources_needed)
1099 (bkpt_works_in_software_mode, bkpt_print_it)
1100 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1103 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1104 bkpt_breakpoint_ops.
1105 * python/py-breakpoint.c (bppy_init): Ditto.
1107 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1109 * MAINTAINERS (Write After Approval): Add myself to the list.
1111 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1113 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1115 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1117 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1118 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1119 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1121 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1122 (struct i386_debug_reg_state): New.
1123 (i386_init_dregs): New.
1125 (i386_cleanup_dregs): Use i386_init_dregs.
1126 (i386_show_dr): Add state parameter and adjust.
1127 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1129 (i386_remove_aligned_watchpoint): Likewise.
1130 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1131 (i386_update_inferior_debug_regs): New.
1132 (i386_insert_watchpoint): Work on a local mirror of the debug
1133 registers, and only update the inferior on success.
1134 (i386_remove_watchpoint): Ditto.
1135 (i386_region_ok_for_watchpoint): Adjust.
1136 (i386_stopped_data_address): Adjust.
1137 (i386_insert_hw_breakpoint): Adjust.
1138 (i386_remove_hw_breakpoint): Adjust.
1140 2011-07-22 Tom Tromey <tromey@redhat.com>
1142 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1143 from amd64_pseudo_register_read. Change arguments. Call
1144 mark_value_bytes_unavailable when needed.
1145 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1146 set_gdbarch_pseudo_register_read.
1147 * sentinel-frame.c (sentinel_frame_prev_register): Use
1148 regcache_cooked_read_value.
1149 * regcache.h (regcache_cooked_read_value): Declare.
1150 * regcache.c (regcache_cooked_read_value): New function.
1151 (regcache_cooked_read): Call
1152 gdbarch_pseudo_register_read_value if available.
1153 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1154 (i386_pseudo_register_read): Remove.
1155 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1156 i386_pseudo_register_read. Change arguments. Call
1157 mark_value_bytes_unavailable when needed.
1158 (i386_pseudo_register_read_value): New function.
1159 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1160 not set_gdbarch_pseudo_register_read.
1161 * gdbarch.sh (pseudo_register_read_value): New method.
1162 * gdbarch.c, gdbarch.h: Rebuild.
1163 * findvar.c (value_from_register): Call get_frame_register_value.
1165 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1167 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1169 (display_gdb_prompt): Likewise.
1170 (change_annotation_level): Likewise.
1171 (push_prompt): Likewise.
1172 (pop_prompt): Likewise.
1173 (handle_stop_sig): Use get_prompt with a level.
1174 * top.c (command_loop): Use get_prompt with a level.
1175 (set_async_annotation_level): Use set_prompt with a level.
1176 (get_prefix): New function.
1177 (set_prefix): Ditto.
1178 (set_suffix): Ditto.
1179 (get_suffix): Ditto.
1180 (get_prompt): Accept a level argument.
1181 (set_prompt): Accept a level argument. Free old prompts. Set
1182 new_async_prompt if level is 0.
1183 (init_main): Use set_prompt with a level. Do not set
1185 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1186 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1187 Modify set_prompt, get_prompt to account for levels.
1188 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1190 * python/python.c (before_prompt_hook): Use set_prompt.
1192 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1194 * defs.h: Add guard against inclusion in gdbserver.
1195 (struct ptid, ptid_t): Move to common/ptid.h.
1196 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1197 xsnprintf, internal_error): Move to common/common-utils.h.
1199 * gdb_assert.h: Move into common/ sub-directory.
1200 * gdb_locale.h: Ditto.
1201 * gdb_dirent.h: Ditto.
1202 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1203 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1204 Move into common/ptid.h.
1205 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1206 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1207 Change nomem to malloc_failure.
1208 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1209 * utils.c (nomem): Rename to malloc_failure.
1210 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1211 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1212 (gdb_buildargv): Change nomem to malloc_failure.
1213 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1214 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1215 ptid_is_pid): Move into common/ptid.c.
1216 (initialize_infrun): Delete initialization of null_ptid and
1218 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1219 linux_common_xfer_osdata.
1220 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1221 common/ptid.c and common/buffer.c.
1222 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1223 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1224 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1225 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1227 * common/gdb_assert.h: New.
1228 * common/gdb_dirent.h: New.
1229 * common/gdb_locale.h: New.
1230 * common/buffer.c: New.
1231 * common/buffer.h: New.
1232 * common/ptid.c: New.
1233 * common/ptid.h: New.
1234 * common/xml-utils.c: New.
1235 * common/xml-utils.h: New.
1236 * common/common-utils.c: New.
1237 * common/common-utils.h: New.
1238 * common/linux-osdata.c: New.
1239 * common/linux-osdata.h: New.
1240 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1241 * config/arm/linux.mh (NATDEPFILES): Ditto.
1242 * config/i386/linux.mh (NATDEPFILES): Ditto.
1243 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1244 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1245 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1246 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1247 * config/mips/linux.mh (NATDEPFILES): Ditto.
1248 * config/pa/linux.mh (NATDEPFILES): Ditto.
1249 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1250 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1251 * config/s390/s390.mh (NATDEPFILES): Ditto.
1252 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1253 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1254 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1256 2011-07-21 Matt Rice <ratmice@gmail.com>
1258 * NEWS: Add info macros and info definitions commands.
1260 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1262 * NEWS: Document Python prompt substitution hook.
1264 2011-07-18 Matt Rice <ratmice@gmail.com>
1267 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1268 * macrotab.c (foreach_macro): Ditto.
1269 (foreach_macro_in_scope): Ditto.
1270 * macrocmd.c (print_macro_callback): New function.
1271 (info_macro_command): Move some code to print_macro_definition.
1272 (print_macro_definition): New function.
1273 (print_one_macro): Add new arguments to callback.
1274 (info_definitions_command): New function.
1275 (info_macros_command): Ditto.
1276 (_initialize_macrocmd): Add info macros and info definitions commands.
1277 * symtab.c (add_macro_name): Add new arguments to callback.
1279 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1280 Tom Tromey <tromey@redhat.com>
1282 * top.c (set_prompt): Rewrite to free previous prompt, free
1283 asynch_new_prompt and set both on new prompts.
1284 * event-top.c (display_gdb_prompt): Add prompt substitution
1286 * python/python.c (before_prompt_hook): New function.
1288 2011-07-20 Matt Rice <ratmice@gmail.com>
1290 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1291 arguments to store_unsigned_integer.
1293 2011-07-20 Tom Tromey <tromey@redhat.com>
1295 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1296 in some declaration-only cases.
1298 2011-07-18 Tom Tromey <tromey@redhat.com>
1301 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1302 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1303 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1304 <debug_type_section>: New field.
1305 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1306 (load_cu): Use appropriate section.
1307 (create_signatured_type_table_from_index): Add 'section'
1309 (dwarf2_read_index): Only allow a single .debug_types section.
1310 (dw2_get_file_names): Use appropriate section.
1311 (read_type_comp_unit_head): Add 'section' argument.
1312 (create_debug_types_hash_table): Loop over all .debug_types
1314 (init_cu_die_reader): Use appropriate section.
1315 (process_psymtab_comp_unit, load_partial_comp_unit)
1316 (load_full_comp_unit, read_die_and_children, find_partial_die)
1317 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1318 (lookup_signatured_type_at_offset): Add 'section' argument.
1319 (read_signatured_type_at_offset): Add 'sect' argument.
1320 (read_signatured_type): Use appropriate section.
1321 (set_die_type, get_die_type_at_offset): Update.
1322 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1324 (write_psymtabs_to_index): Don't allow index with more than one
1325 .debug_types section.
1327 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1329 Fix crash if referenced CU is aged out.
1330 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1331 xfree of block.data.
1332 (indirect_pieced_value): New variable back_to, use to for xfree of
1334 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1336 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1337 (load_cu): New function from ...
1338 (dw2_do_instantiate_symtab): ... the code here ...
1339 (process_full_comp_unit): ... and here.
1340 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1343 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1345 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1348 2011-07-19 Gary Benson <gbenson@redhat.com>
1350 * infrun.c (struct execution_control_state): New member
1351 stop_func_filled_in.
1352 (clear_stop_func, fill_in_stop_func): New functions.
1353 (handle_inferior_event): Call clear_stop_func rather than
1354 manipulating the execution control state directly.
1355 Call fill_in_stop_func lazily as required rather than
1356 directly calling find_pc_partial_function in all cases.
1358 2011-07-18 Tom Tromey <tromey@redhat.com>
1360 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1361 checking for variable-sized array.
1363 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1365 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1366 of supported languages.
1367 * varobj.c: Add top definitions and basic implementation of the
1368 following callbacks: ada_number_of_children, ada_name_of_variable,
1369 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1370 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1371 (languages): Register Ada-specific callbacks.
1372 (variable_language): Add the Ada case in the language setter switch.
1374 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1376 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1378 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1381 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1382 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1383 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1384 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1385 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1386 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1387 (struct dwarf_expr_context_funcs): New, move here methods from ...
1388 (struct dwarf_expr_context): ... here. New fields funcs.
1389 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1390 (dwarf_expr_ctx_funcs): New.
1391 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1392 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1393 (needs_frame_ctx_funcs): New.
1394 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1396 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1398 * MAINTAINERS (Write After Approval): Add myself to the list.
1400 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1402 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1403 that CIE pointer of an FDE really points to a CIE .
1405 2011-07-15 Hui Zhu <teawater@gmail.com>
1407 * remote.c (remote_get_trace_status): Add comments.
1409 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1411 Code cleanup - constify struct lval_funcs.
1412 * dwarf2loc.c (pieced_value_funcs): Make it const.
1413 * infrun.c (siginfo_value_funcs): Likewise.
1414 * opencl-lang.c (opencl_value_funcs): Likewise.
1415 * valops.c (value_assign, value_ind): Make the funcs variable const.
1416 * value.c (struct value): Make location.computed.funcs target const.
1417 Rearrange the comments.
1418 (allocate_computed_value): Make the funcs parameter target const.
1419 (value_computed_funcs): Return the funcs target const.
1420 (value_free, value_copy, set_value_component_location): Make the funcs
1422 * value.h (allocate_computed_value): Make the funcs parameter target
1424 (value_computed_funcs): Return the funcs target const.
1425 * windows-tdep.c (tlb_value_funcs): Make it const.
1427 2011-07-14 Hui Zhu <teawater@gmail.com>
1429 * remote.c (remote_get_trace_status): Initialize p.
1431 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1434 * remote.c (remote_get_trace_status): New variable ex. Put
1435 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1437 2011-07-13 Tom Tromey <tromey@redhat.com>
1439 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1440 value_from_contents for final conversion.
1442 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1445 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1446 Indent prototypes so they do not get into tags.
1448 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1450 Code cleanup making also optimized out values lazy.
1451 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1452 allocate_optimized_out_value. Twice.
1453 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1454 * findvar.c (read_var_value): Likewise.
1455 * value.c (allocate_optimized_out_value): New function.
1456 * value.h (allocate_optimized_out_value): New declaration.
1458 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1460 Fix occasional crash of CTRL-C during DWARF read in.
1461 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1463 2011-07-11 Tom Tromey <tromey@redhat.com>
1465 * regcache.c (struct regcache_descr): Fix typo.
1466 * i387-tdep.c (i387_supply_xsave): Fix typo.
1468 2011-07-11 Tom Tromey <tromey@redhat.com>
1470 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1471 (read_file_scope, read_type_unit_scope): Use it.
1473 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1475 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1478 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1481 * python/python.c: Set gdbpy_should_print_stack default to off.
1482 (set_python): Deprecate maint set python print-stack to
1484 (_initialize_python): Deprecate maint set/show python print-stack.
1485 Add new prefix command, python. Add new setting, print-backtrace.
1486 * NEWS: Document set python print-stack. Document default change.
1488 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1490 * python/py-inferior.c (infpy_dealloc): New function.
1491 (inferior_to_inferior_object): Return a new object, or a
1492 new reference to the existing object.
1493 (find_thread_object): Cleanup references to inferior.
1494 (delete_thread_object): Ditto.
1495 * python/py-infthread.c (create_thread_object): Do not increment
1496 inferior reference count.
1498 2011-07-08 Tom Tromey <tromey@redhat.com>
1500 * dwarf2loc.c (locexpr_regname): New function.
1501 (locexpr_describe_location_piece): Use it.
1502 (disassemble_dwarf_expression): Add per_cu argument. Use
1504 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1505 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1507 (locexpr_describe_location_1): Add per_cu argument.
1508 (locexpr_describe_location): Update.
1509 (loclist_describe_location): Update.
1511 2011-07-08 Tom Tromey <tromey@redhat.com>
1513 * dwarf2expr.c (execute_stack_op): Add QUIT.
1515 2011-07-07 Hui Zhu <teawater@gmail.com>
1518 2011-07-06 Hui Zhu <teawater@gmail.com>
1519 * remote.c (remote_start_remote): Add TRY_CATCH for
1520 remote_get_trace_status.
1521 * tracepoint.c (disconnect_tracing): Ditto.
1523 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1525 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1526 variables as signed, not unsigned.
1528 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1530 * jit.c (jit_inferior_init): Reformat forward declaration.
1532 2011-07-06 Matt Rice <ratmice@gmail.com>
1534 * MAINTAINERS (Write After Approval): Add myself to the list.
1536 2011-07-06 Hui Zhu <teawater@gmail.com>
1538 * remote.c (remote_start_remote): Add TRY_CATCH for
1539 remote_get_trace_status.
1540 * tracepoint.c (disconnect_tracing): Ditto.
1542 2011-07-05 Tom Tromey <tromey@redhat.com>
1544 * symtab.c (operator_chars): Now static.
1545 * linespec.c (operator_chars): Don't declare.
1547 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1549 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1551 2011-07-05 Tom Tromey <tromey@redhat.com>
1553 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1554 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1555 (TYPE_CPLUS_REALLY_JAVA): New macro.
1556 * dwarf2read.c (process_structure_scope): Set
1557 TYPE_CPLUS_REALLY_JAVA.
1559 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1561 * ada-lang.c: Fix typos.
1562 * amd64-tdep.c: Likewise.
1563 * breakpoint.c: Likewise.
1564 * cli/cli-decode.c: Likewise.
1565 * findcmd.c: Likewise.
1566 * inline-frame.c: Likewise.
1567 * mi/mi-main.c: Likewise.
1568 * minsyms.c: Likewise.
1569 * monitor.c: Likewise.
1570 * monitor.h: Likewise.
1571 * prologue-value.c: Likewise.
1572 * reverse.c: Likewise.
1573 * s390-tdep.c: Likewise.
1575 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1577 * jit.c (jit_inferior_init): Forward declare.
1578 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1580 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1582 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1584 2011-07-04 Tristan Gingold <gingold@adacore.com>
1586 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1587 (tcb_fieldno): Add activation_link field.
1588 (get_known_tasks_addr): Moved and rewritten.
1589 (get_tcb_types_info): Set activation_link field.
1590 (read_known_tasks_array): Add parameter. Rewritten.
1591 (read_known_tasks_list): New function.
1592 (read_known_tasks): New function.
1593 (ada_build_task_list): Call read_known_tasks instead of
1594 read_known_tasks_array.
1595 * ravenscar-thread.c: Add first_task_name constant.
1596 (has_ravenscar_runtime): Check for task list too.
1598 2011-07-04 Tristan Gingold <gingold@adacore.com>
1600 * ada-tasks.c: Renames fieldno to actb_fieldno.
1601 (ada_get_task_number): Indentation.
1602 (get_tcb_types_info): Remove all parameters. Write directly
1604 (ptid_from_atcb_common): Adjust.
1605 (read_atcb): Adjust.
1607 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1609 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1611 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1613 * ui-out.c (ui_out_field_core_addr): Mention that the function
1614 description is in the header file.
1615 * ui-out.h (ui_out_field_core_addr): Document function.
1617 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1619 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1620 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1622 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1624 * symtab.c (expand_line_sal): Remove empty line.
1626 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1628 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1629 same way as ELFOSABI_NONE.
1630 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1632 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1634 * breakpoint.c: Fix typos in comments.
1635 * linespec.c: Likewise.
1636 * symtab.c: Likewise.
1638 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1640 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1641 section in separate object files.
1643 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1645 Fix false GCC warning.
1646 * linespec.c (decode_line_1): Initialize values.
1648 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1650 * linespec.c (find_method): Accept the function type automatically only
1651 if it was specified with parameter types.
1653 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1655 Stop on first linespec terminator instead of eating what we can.
1656 * linespec.c (is_linespec_boundary): New function.
1657 (name_end): Remove function.
1658 (keep_name_info): New parameter on_boundary, replace the body.
1659 (decode_line_1): Provide the parameter to keep_name_info.
1660 (decode_compound): Likewise. Drop the trailing java return type
1663 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1665 Fall back linespec to minimal symbols.
1666 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1667 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1668 (find_method, symbol_found): Change error to cplusplus_error.
1670 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1672 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1674 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1675 Tom Tromey <tromey@redhat.com>
1677 * dwarf2read.c (check_physname): New variable.
1678 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1679 (show_check_physname): New function.
1680 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1682 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1684 * machoread.c (macho_symfile_read): Delete OBE comment.
1686 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1688 * machoread.c (struct macho_oso_data): Delete.
1689 (current_oso): Delete.
1690 (macho_relocate_common_syms): New function, mostly extracted
1692 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1693 Remove code that sets and unset current_oso.
1694 (macho_symfile_relocate): Delete handling of common symbols,
1695 now moved to macho_relocate_common_syms.
1697 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1699 * darwin-nat.c (darwin_ptrace): Add documentation.
1700 Set errno to zero before calling ptrace. If ptrace returns
1701 -1 and errno is zero, then change then return zero.
1702 (darwin_kill_inferior): Issue a warning instead of triggering
1703 a failed assertion when the PT_KILL ptrace operations returned
1706 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1708 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1709 only when inf->private->no_ptrace.
1711 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1713 * ada-lang.c (print_it_exception): Print temporary catchpoints
1714 as "Temporary catchpoint".
1715 (print_mention_exception): Likewise.
1717 2011-07-01 Tom Tromey <tromey@redhat.com>
1719 * jv-lang.c (java_language_defn): Use java_printchar,
1721 (java_get_encoding): New function.
1722 (java_emit_char): Use generic_emit_char.
1723 (java_printchar): New function.
1724 (java_printstr): Likewise.
1726 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1728 * ada-typeprint.c (print_record_type): If unable to decode
1729 the name of the parent type, use the encoded name.
1731 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1733 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1734 pointer to constrained packed array type output.
1735 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1736 packed array output.
1738 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1740 * ada-typeprint.c (print_array_type): removed if condition on show
1741 being negative for bounds printing.
1743 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1745 * ada-lang.c (ada_identical_enum_types_p): New function.
1746 (symbols_are_identical_enums): New function.
1747 (remove_extra_symbols): Do nothing if NSYMS < 2.
1748 Use symbols_are_identical_enums.
1750 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1752 * ada-valprint.c (ada_value_print): Handle typedefs.
1754 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1756 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1758 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1760 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1761 (decode_constrained_packed_array): Likewise.
1762 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1764 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1766 * ada-exp.y (convert_char_literal): Handle typedef types.
1768 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1770 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1772 2011-06-30 Tom Tromey <tromey@redhat.com>
1774 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1775 * valops.c (find_overload_match): Call do_cleanups on early exit
1777 * solib.c (solib_find): Call do_cleanups on early exit path.
1779 2011-06-30 Tom Tromey <tromey@redhat.com>
1781 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1782 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1783 return paths. Defer final do_cleanups until last return.
1784 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1787 2011-06-30 Tom Tromey <tromey@redhat.com>
1789 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1791 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1793 * MAINTAINERS (Write After Approval): Add myself to the list.
1795 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1797 Disable epilogue unwinders on recent GCCs.
1798 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1799 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1800 * dwarf2read.c (process_full_comp_unit): Initialize
1801 EPILOGUE_UNWIND_VALID.
1802 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1803 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1804 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1806 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1808 Code cleanup - reformatting.
1809 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1810 (producer_is_gcc_ge_4): ... here, change the return value.
1811 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1814 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1816 Fix non-only rename list for Fortran modules import.
1817 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1818 cp_add_using_directive caller.
1819 (cp_add_using_directive): New parameter excludes, describe it. New
1820 variables ix and param. Compare if also excludes match. Allocate NEW
1821 with variable size, initialize EXCLUDES there.
1822 (cp_lookup_symbol_imports): New variable excludep, test
1823 current->EXCLUDES with it.
1824 * cp-support.h: Include vec.h.
1825 (struct using_direct): New field excludes, describe it.
1826 (DEF_VEC_P (const_char_ptr)): New.
1827 (cp_add_using_directive): New parameter excludes.
1828 * defs.h (const_char_ptr): New typedef.
1829 * dwarf2read.c (read_import_statement): New variables child_die,
1830 excludes and cleanups, read in excludes.
1831 (read_namespace): Adjust the cp_add_using_directive caller.
1833 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1836 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1837 negative comparisons.
1839 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
1841 * mi/mi-main.c (mi_cmd_list_features): Emit
1842 breakpoint-notifications.
1844 2011-06-29 Tom Tromey <tromey@redhat.com>
1847 * valprint.h (generic_emit_char, generic_printstr): Declare.
1848 * valprint.c (wchar_printable, append_string_as_wide)
1849 (print_wchar): Move from c-lang.c.
1850 (generic_emit_char): New function; mostly taken from c_emit_char.
1851 (generic_printstr): New function; mostly taken from c_printstr.
1852 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1853 represented as arrays.
1854 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1856 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1857 identically to TYPE_CODE_INT.
1858 * f-lang.c (f_get_encoding): New function.
1859 (f_emit_char): Use generic_emit_char.
1860 (f_printchar): Replace comment.
1861 (f_printstr): Use generic_printstr.
1862 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1863 "character" types specially.
1864 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1866 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1868 (c_emit_char): Call generic_emit_char.
1869 (c_printstr): Call generic_printstr.
1871 2011-06-29 Gary Benson <gbenson@redhat.com>
1873 * breakpoint.c (bpstat_what): Removed duplicated case.
1875 2011-06-28 Tom Tromey <tromey@redhat.com>
1877 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
1879 2011-06-27 Tom Tromey <tromey@redhat.com>
1881 * valops.c (find_overload_match): Call do_cleanups before early
1883 * top.c (execute_command): Call do_cleanups before early return.
1884 (command_loop): Likewise.
1885 * stack.c (backtrace_command): Make a null cleanup early. Don't
1886 conditionally call do_cleanups.
1887 * python/py-value.c (TRY_CATCH): Move cleanup handling into
1889 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
1890 so cleanups are always run.
1891 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
1892 * findcmd.c (parse_find_args): Call do_cleanups on early return
1894 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
1895 Don't conditionally call do_cleanups.
1896 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
1899 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1901 * MAINTAINERS (Write After Approval): Use default email address.
1903 2011-06-27 Joel Brobecker <brobecker@adacore.com>
1905 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
1907 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1909 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
1910 saved_regs_mask and copied_regs_mask fields.
1911 (sparc_record_save_insn): New prototype.
1912 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
1913 (sparc_record_save_insn): New function.
1914 (sparc_analyze_prologue): Add head comment. Recognize store insns
1915 of call-saved registers. Use OFFSET consistently. Recognize flat
1916 frames and cache their settings.
1917 (sparc32_skip_prologue): Handle flat frames.
1918 (sparc_frame_cache): Add frame_offset to the base address.
1919 (sparc32_frame_cache): Adjust to new frame description.
1920 (sparc32_frame_prev_register): Likewise.
1921 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1922 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1923 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1924 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
1925 frame by calling sparc_record_save_insn.
1926 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1927 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1928 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1930 2011-06-27 Tristan Gingold <gingold@adacore.com>
1932 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
1933 field by map_addr and map_len.
1934 (dwarf2_read_section): Adjust for the new bfd_mmap api.
1935 (munmap_section_buffer): Likewise.
1937 2011-06-24 Tom Tromey <tromey@redhat.com>
1939 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
1940 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1941 * python/python.c (gdbpy_parameter): Make 'arg' const.
1942 (execute_gdb_command): Likewise.
1943 (gdbpy_decode_line): Likewise. Copy it.
1944 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
1945 (gdbpy_write): Make 'arg' const.
1946 * python/py-type.c (typy_lookup_typename): Make 'type_name'
1948 (gdbpy_lookup_type): Likewise.
1949 * python/py-prettyprint.c (print_children): Make 'name' const.
1950 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
1951 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
1953 * python/py-function.c (fnpy_init): Make 'name' const.
1954 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
1955 (gdbpy_string_to_argv): Make 'input' const.
1956 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
1958 * gdbtypes.h (lookup_typename): Update.
1959 * gdbtypes.c (lookup_typename): Make 'name' const.
1960 (lookup_struct): Likewise.
1961 (lookup_union): Likewise.
1962 (lookup_enum): Likewise.
1964 2011-06-24 Tom Tromey <tromey@redhat.com>
1966 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
1967 gdb_thread_db.h. Move all common/ entries to be together.
1968 (TAGS): Don't depend on DEPFILES.
1970 2011-06-23 Yao Qi <yao@codesourcery.com>
1972 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
1973 * remote.c (remote_start_remote): ... here.
1974 * monitor.c (monitor_open): ... here.
1976 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
1978 * gdbtypes.c (append_composite_type_field_aligned): Fix
1979 calculation of bit position based on alignment.
1981 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1983 * breakpoint.c (bpstat_stop_status): Call the check_status
1984 breakpoint_ops method.
1985 (print_one_breakpoint_location): Also print the condition for Ada
1986 exception catchpoints.
1987 (allocate_bp_location): New, factored out from
1988 allocate_bp_location.
1989 (allocate_bp_location): Adjust. Call the owner breakpoint's
1990 allocate_location method, if there is one.
1991 (free_bp_location): Call the locations's dtor method, if there is
1993 (init_raw_breakpoint_without_location): New breakpoint_ops
1995 (set_raw_breakpoint_without_location): Adjust.
1996 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
1997 (set_raw_breakpoint): Adjust.
1998 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1999 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2000 re_set and check_status methods.
2001 (init_catchpoint): Don't memset, initialize thread, addr_string
2002 and enable_state. Pass the ops down to init_raw_breakpoint.
2003 (install_catchpoint): Rename to ...
2004 (install_breakpoint): ... this, and make extern.
2005 (create_fork_vfork_event_catchpoint): Adjust.
2006 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2007 re_set and check_status methods.
2008 (create_syscall_event_catchpoint): Adjust.
2009 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2010 (masked_watchpoint_breakpoint_ops): Install NULL
2011 allocate_location, re_set and check_status methods.
2012 (catch_exec_command_1): Adjust.
2013 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2014 re_set and check_status methods.
2015 (create_ada_exception_breakpoint): Rename to ...
2016 (init_ada_exception_breakpoint): ... this. Add a struct
2017 breakpoint parameter, and delete the exp_string, cond_string and
2018 cond parameters. Use init_raw_breakpoint, and don't install or
2019 mention the breakpoint yet. Don't clear breakpoint fields that
2020 init_raw_breakpoint already clears.
2021 (re_set_breakpoint): Delete, split into ...
2022 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2024 (breakpoint_re_set_one): Call the breakpoint's
2025 breakpoint_ops->re_set implementation, if there's one. Adjust.
2026 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2027 (struct bp_location_ops): New type.
2028 (struct bp_location): New field `ops'.
2029 (struct breakpoint_ops): New `allocate_location', `re_set' and
2030 `check_status' fields. Make `breakpoint_hit''s description match
2032 (init_bp_location): Declare.
2033 (breakpoint_re_set_default): Declare.
2034 (create_ada_exception_breakpoint): Rename to ...
2035 (init_ada_exception_breakpoint): ... this. Add a struct
2036 breakpoint parameter, and delete the exp_string, cond_string and
2038 (install_breakpoint): Declare.
2039 * ada-lang.c: Include exceptions.h.
2040 <Ada exceptions description>: Update.
2041 (struct ada_catchpoint_location): New type.
2042 (ada_catchpoint_location_dtor): New function.
2043 (ada_catchpoint_location_ops): New global.
2044 (ada_catchpoint): New type.
2045 (create_excep_cond_exprs): New function.
2046 (dtor_exception, allocate_location_exception, re_set_exception)
2047 (should_stop_exception, check_status_exception): New functions.
2048 (print_one_exception, print_mention_exception)
2049 (print_recreate_exception): Adjust.
2050 (dtor_catch_exception, allocate_location_catch_exception)
2051 (re_set_catch_exception, check_status_catch_exception): New
2053 (catch_exception_breakpoint_ops): Install them.
2054 (dtor_catch_exception_unhandled)
2055 (allocate_location_catch_exception_unhandled)
2056 (re_set_catch_exception_unhandled)
2057 (check_status_catch_exception_unhandled): New functions.
2058 (catch_exception_unhandled_breakpoint_ops): Install them.
2059 (dtor_catch_assert, allocate_location_catch_assert)
2060 (re_set_catch_assert, check_status_catch_assert): New functions.
2061 (catch_assert_breakpoint_ops): Install them.
2062 (ada_exception_catchpoint_p): Delete.
2063 (catch_ada_exception_command_split)
2064 (ada_exception_catchpoint_cond_string): Rename exp_string
2065 parameter to excep_string. Adjust.
2066 (ada_parse_catchpoint_condition): Delete.
2067 (ada_exception_sal): Rename the exp_string parameter to
2068 excep_string. Delete the cond_string and cond parameters.
2070 (ada_decode_exception_location): Rename the exp_string parameter
2071 to excep_string. Delete the cond_string and cond parameters.
2073 (create_ada_exception_catchpoint): New function.
2074 (catch_ada_exception_command, ada_decode_assert_location)
2075 (catch_assert_command): Adjust.
2076 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2078 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2080 * ada-lang.c: Include arch-utils.h.
2081 (ada_decode_exception_location): Make static.
2082 (catch_ada_exception_command): Moved here from breakpoint.c.
2083 (ada_decode_assert_location): Make static.
2084 (catch_assert_command): Moved here from breakpoint.c.
2085 (_initialize_ada_lang): Install the exception and assert
2086 catchpoint commands here.
2087 * ada-lang.h (ada_decode_exception_location)
2088 (ada_decode_assert_location): Delete declarations.
2089 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2091 (create_ada_exception_breakpoint): Make extern.
2092 (catch_ada_exception_command, catch_assert_command): Moved to
2094 (add_catch_command): Make extern.
2095 (_initilize_breakpoint): Don't install the exception and assert
2096 catchpoint commands here.
2097 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2099 (add_catch_command, create_ada_exception_breakpoint): Declare.
2101 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2103 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2104 the breakpoint to the breakpoint chain here.
2105 (set_raw_breakpoint_without_location): Add the breakpoint to the
2106 breakpoint chain here.
2107 (init_raw_breakpoint): Adjust comments.
2108 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2110 (init_catchpoint): Don't set the catchpoint's breakpoint number
2112 (install_catchpoint): New function.
2113 (create_fork_vfork_event_catchpoint)
2114 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2115 use install_catchpoint.
2117 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2119 * breakpoint.c (create_catchpoint_without_mention)
2120 (create_catchpoint): Delete.
2122 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2124 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2125 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2126 reference to exec_pathname.
2127 (struct exec_catchpoint): New type.
2128 (dtor_catch_exec): New function.
2129 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2130 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2131 (catch_exec_command_1): Adjust to use init_catchpoint.
2132 (delete_breakpoint): Remove reference to exec_pathname.
2134 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2136 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2137 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2138 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2139 reference to syscalls_to_be_caught.
2140 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2142 (struct syscall_catchpoint): New type.
2143 (dtor_catch_syscall): New function.
2144 (insert_catch_syscall, remove_catch_syscall)
2145 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2146 (print_recreate_catch_syscall): Adjust.
2147 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2148 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2149 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2150 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2151 (masked_watchpoint_breakpoint_ops)
2152 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2153 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2154 there is one. Remove references to syscalls_to_be_caught.
2155 (catching_syscall_number): Adjust.
2156 * ada-lang.c (catch_exception_breakpoint_ops)
2157 (catch_exception_unhandled_breakpoint_ops)
2158 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2160 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2162 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2164 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2165 reference to forked_inferior_pid.
2166 (struct fork_catchpoint): New type.
2167 (breakpoint_hit_catch_fork, print_it_catch_fork)
2168 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2169 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2170 (create_fork_vfork_event_catchpoint): Adjust to use
2173 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2175 * breakpoint.c (add_to_breakpoint_chain)
2176 (init_raw_breakpoint_without_location): New functions, factored
2178 (set_raw_breakpoint_without_location): ... this one.
2179 (init_raw_breakpoint): New function, factored out from
2180 set_raw_breakpoint and adjusted to use
2181 init_raw_breakpoint_without_location.
2182 (set_raw_breakpoint): Adjust.
2183 (init_catchpoint): New function, factored out from
2184 create_catchpoint_without_mention and adjusted to use
2185 init_raw_breakpoint.
2186 (create_catchpoint_without_mention): Adjust.
2188 2011-06-22 Tom Tromey <tromey@redhat.com>
2190 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2191 argument of 0 specially.
2193 2011-06-22 Yao Qi <yao@codesourcery.com>
2195 * infrun.c (handle_inferior_event): Remove write-only local variable
2196 `sw_single_step_trap_p'.
2198 2011-06-20 Tom Tromey <tromey@redhat.com>
2200 * symtab.c (lookup_language_this): End loop if block is NULL.
2202 2011-06-17 Tom Tromey <tromey@redhat.com>
2204 * valops.c (value_of_this): Use lookup_language_this.
2205 * symtab.h (lookup_language_this): Declare.
2206 * symtab.c (lookup_language_this): New function.
2207 (lookup_symbol_aux): Use lookup_language_this.
2208 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2210 2011-06-17 Tom Tromey <tromey@redhat.com>
2212 * value.h (value_of_this): Update.
2213 (value_of_local): Remove.
2214 * valops.c (value_of_this): Rename from value_of_local. Change
2216 * p-exp.y (exp): Update.
2217 (variable): Likewise.
2218 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2220 2011-06-17 Tom Tromey <tromey@redhat.com>
2222 * valops.c (value_of_local): Complain if NAME is NULL.
2223 * std-operator.def (OP_OBJC_SELF): Remove.
2224 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2225 * objc-exp.y (name_not_typename): Use OP_THIS.
2226 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2228 <OP_OBJC_SELF>: Remove.
2229 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2231 2011-06-16 Tristan Gingold <gingold@adacore.com>
2233 * python/py-events.h (gdb_py_events): Make it extern.
2234 * python/py-evtregistry.c (gdb_py_events): Declare.
2236 2011-06-16 Hui Zhu <teawater@gmail.com>
2238 * remote.c (remote_trace_set_readonly_regions): Add check for
2239 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2242 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2244 * arm-linux-tdep.c: Include "auxv.h".
2246 (ARM_LINUX_SIZEOF_VFP): Define.
2247 (arm_linux_supply_vfp): New function.
2248 (arm_linux_collect_vfp): Likewise.
2249 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2250 (arm_linux_fpa_regset_sections): New variable.
2251 (arm_linux_vfp_regset_sections): Likewise.
2252 (arm_linux_core_read_description): New function.
2253 (arm_linux_init_abi): Install arm_linux_core_read_description and
2254 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2255 appropriate for the architecture.
2256 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2257 (tdesc_arm_with_m): Declare.
2258 (tdesc_arm_with_iwmmxt): Likewise.
2259 (tdesc_arm_with_vfpv2): Likewise.
2260 (tdesc_arm_with_vfpv3): Likewise.
2261 (tdesc_arm_with_neon): Likewise.
2262 * arm-linux-nat.c: Move features/*.c includes ...
2263 * arm-tdep.c: ... here.
2264 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2265 target description data structures ...
2266 * arm-tdep.c (_initialize_arm_tdep): ... here.
2267 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2268 HWCAP_VFPv3D16): Move definitions ...
2269 * arm-linux-tdep.h: ... here.
2271 2011-06-15 Hui Zhu <teawater@gmail.com>
2273 * remote.c (remote_trace_set_readonly_regions): Add a check for
2276 2011-06-14 Tom Tromey <tromey@redhat.com>
2278 * coffread.c (coffread_objfile): Rename from current_objfile.
2279 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2280 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2282 2011-06-14 Tom Tromey <tromey@redhat.com>
2284 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2285 (class_symtab): Remove.
2286 (jv_dynamics_progspace_key): New global.
2287 (jv_per_objfile_free): Reset program space data. Update assert.
2288 Don't clear globals.
2289 (get_dynamics_objfile): Use and set program space data.
2290 (get_java_class_symtab): Use get_dynamics_objfile.
2291 (add_class_symbol): Likewise.
2292 (java_link_class_type): Likewise.
2293 (java_object_type, jv_clear_object_type, set_java_object_type):
2295 (get_java_object_type): Update. Don't cache result.
2296 (is_object_type): Don't call set_java_object_type.
2297 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2298 initialize jv_dynamics_progspace_key.
2300 2011-06-14 Tom Tromey <tromey@redhat.com>
2302 * symtab.h (current_objfile): Don't declare.
2303 * objfiles.h (current_objfile): Don't declare.
2304 * objfiles.c (current_objfile): Remove.
2305 * mdebugread.c (current_objfile): New file-scope global.
2306 * dbxread.c (current_objfile): New file-scope global.
2307 * coffread.c (current_objfile): New file-scope global.
2309 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2311 * top.h (line): Rename to ...
2312 (saved_command_line): ... this.
2313 (linesize): Rename to ...
2314 (saved_command_line_size): ... this.
2315 * top.c (line): Rename to ...
2316 (saved_command_line): ... this.
2317 (linesize): Rename to ...
2318 (saved_command_line_size): ... this.
2319 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2320 * event-top.c (command_line_handler): Adjust.
2321 * main.c (captured_main): Adjust.
2323 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2325 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2326 get_frame_func instead of get_frame_pc to determine the code
2327 address used to construct the frame ID.
2328 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2329 (i386_epilogue_frame_this_id): Likewise.
2330 (i386_epilogue_frame_prev_register): New function.
2331 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2332 (i386_stack_tramp_frame_sniffer): Fix coding style.
2333 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2334 (i386_gdbarch_init): Fix comments.
2336 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2338 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2339 instruction when walking back through the instruction stream.
2341 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2343 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2344 fullname parameters order.
2346 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2349 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2351 * psymtab.c (map_symbol_filenames_psymtab)
2352 (map_partial_symbol_filenames): Likewise.
2353 * psymtab.h: Include symfile.h.
2354 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2355 * symfile.h (symbol_filename_ftype): New.
2356 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2357 map_symbol_filenames, clarify more the naming in comment.
2359 2011-06-07 Doug Evans <dje@google.com>
2361 * cc-with-index.sh: Fix typos in comment.
2362 Look for ../../gdb, for fullname.exp.
2364 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2365 Pedro Alves <pedro@codesourcery.com>
2367 * cli/cli-cmds.c (shell_escape): Use waitpid.
2368 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2370 2011-06-07 Tristan Gingold <gingold@adacore.com>
2372 * xcoffread.c (dwarf2_xcoff_names): New variable.
2373 (aix_process_linenos): Add a guard.
2374 (xcoff_symfile_finish): Free dwarf2.
2375 (xcoff_initial_scan): Add dwarf2 support.
2377 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2379 * infcall.c (run_inferior_call): Don't mask async. Instead force
2380 a synchronous wait, if the target can async.
2382 * target.h (struct target_ops): Delete to_async_mask.
2383 (target_async_mask): Delete.
2384 * target.c (update_current_target): Delete references to to_async_mask.
2385 * linux-nat.c (linux_nat_async_mask_value): Delete.
2386 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2387 to linux_nat_async_mask_value.
2388 (linux_nat_async_mask): Delete.
2389 (linux_nat_async, linux_nat_close): Remove references to
2390 linux_nat_async_mask_value.
2391 * record.c (record_async_mask_value): Delete.
2392 (record_async): Remove references to record_async_mask_value.
2393 (record_async_mask): Delete.
2394 (record_can_async_p, record_is_async_p): Remove references to
2395 record_async_mask_value.
2396 (init_record_ops, init_record_core_ops): Remove references to
2398 * remote.c (remote_async_mask_value): Delete.
2399 (init_remote_ops): Remove reference to remote_async_mask.
2400 (remote_can_async_p, remote_is_async_p): Remove references to
2401 remote_async_mask_value.
2402 (remote_async): Remove references to remote_async_mask_value.
2403 (remote_async_mask): Delete.
2405 * infrun.c (fetch_inferior_event): Don't claim registers changed
2406 if the current thread is already not executing.
2408 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2410 From Stephen Kitt <steve@sk2.org>
2411 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2412 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2414 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2416 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2417 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2419 2011-06-03 Tom Tromey <tromey@redhat.com>
2421 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2423 * python/py-exitedevent.c (create_exited_event_object): Change
2424 type of 'exit_code'. Optionally add exit_code attribute.
2425 (emit_exited_event): Change type of 'exit_code'.
2426 * python/py-event.h (emit_exited_event): Update.
2427 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2428 * infrun.c (handle_inferior_event): Set exit code fields on
2430 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2432 * inferior.c (exit_inferior_1): Initialize new fields.
2434 2011-06-03 Tom Tromey <tromey@redhat.com>
2436 * dwarf2expr.c (get_signed_type): New function.
2437 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2439 2011-06-02 Keith Seitz <keiths@redhat.com>
2441 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2443 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2445 * top.h (simplified_command_loop): Delete declaration.
2447 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2449 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2450 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2452 2011-06-01 Yao Qi <yao@codesourcery.com>
2454 * objfiles.h (obj_section_addr): Update reference to objfile from
2456 (obj_section_endaddr): Likewise.
2458 2011-06-01 Daniel Jacobowitz <drow@false.org>
2460 * MAINTAINERS: Update my email address and affiliation. Also
2461 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2463 2010-05-31 Keith Seitz <keiths@redhat.com>
2466 * linespec.c (get_search_block): New function.
2467 (find_methods): Add FILE_SYMTATB parameter and use it and
2468 get_search_block to pass an appropriate block to
2469 lookup_symbol_in_namespace.
2470 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2471 Check if *ARGPTR starts with a filename first.
2472 If it does, call locate_first_half again to locate the next
2473 "first half" of the linespec.
2474 Pass FILE_SYMTATB to decode_objc and decode_compound.
2475 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2476 (locate_first_half): Stop on the first colon seen.
2477 (decode_compound): Add FILE_SYMTAB parameter.
2478 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2479 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2480 get_search_block with lookup_symbol.
2481 (find_method): Add FILE_SYMTAB parameter and pass it to
2483 (decode_objc): Use get_search_block.
2485 2010-05-31 Keith Seitz <keiths@redhat.com>
2488 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2489 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2490 and CP_ANONYMOUS_NAMESPACE_LEN.
2491 (cp_is_anonymous): Likewise.
2492 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2493 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2494 * dwarf2read.c (namespace_name): Likewise.
2495 (fixup_partial_die): Likewise.
2496 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2497 seen in the input, keep it.
2499 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2501 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2502 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2503 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2504 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2505 * remote.c (_initialize_remote): Register
2506 async_remote_interrupt_twice directly as
2507 sigint_remote_twice_token event.
2509 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2511 * target.h (enum inferior_event_type): Delete INF_ERROR.
2512 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2514 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2516 * interps.c (interp_set): Don't cancel continuations.
2518 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2520 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2522 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2524 * continuations.h (continuation_ftype): Add `err' parameter.
2525 Document parameters.
2526 (do_all_continuations, do_all_continuations_thread)
2527 (do_all_intermediate_continuations)
2528 (do_all_intermediate_continuations_thread)
2529 (do_all_inferior_continuations): Add `err' parameter.
2530 * continuations.c (do_my_continuations_1, do_my_continuations)
2531 (do_all_inferior_continuations, do_all_continuations_ptid)
2532 (do_all_continuations_thread_callback)
2533 (do_all_continuations_thread, do_all_continuations)
2534 (do_all_intermediate_continuations_thread_callback)
2535 (do_all_intermediate_continuations_thread)
2536 (do_all_intermediate_continuations): Add `err' parameter, and pass
2537 it down all the way to the continuations proper.
2538 * inf-loop.c (inferior_event_handler): If fetching an inferior
2539 event throws an error, don't pop the target, and still call the
2540 continuations, but with `err' set. Adjust all other continuation
2542 * breakpoint.c (until_break_command_continuation): Add `err'
2544 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2545 issue another step if `err' is set.
2546 (struct until_next_continuation_args): New.
2547 (until_next_continuation): Add `err' parameter. Adjust.
2548 (until_next_command): Adjust.
2549 (struct finish_command_continuation_args): Add `thread' field.
2550 (finish_command_continuation): Add `err' parameter. Handle it.
2551 (finish_forward): Adjust.
2552 (attach_command_continuation): Add `err' parameter. Handle it.
2553 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2554 cancel the continuations.
2555 * interps.c (interp_set): Adjust to cancel the continuations.
2556 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2557 continuations rather than discarding.
2558 (free_thread): Don't clear thread inferior resources here.
2559 (delete_thread_1): Do it here instead. And do it before removing
2560 the thread from the threads list. Tag the thread as exited before
2561 clearing thread inferior resources.
2563 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2565 * infcall.c (call_function_by_hand): Rephrase error message.
2567 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2569 * defs.h (struct thread_info, struct inferior): Delete forward
2571 * breakpoint.h (struct thread_info): New forward declaration.
2572 * observer.sh (struct inferior): New forward declaration.
2573 * python/python-internal.h (struct inferior): New forward
2576 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2578 * defs.h (struct continuation, continuation_ftype)
2579 (continuation_free_arg_ftype, add_continuation)
2580 (do_all_continuations, do_all_continuations_thread)
2581 (discard_all_continuations, discard_all_continuations_thread)
2582 (add_intermediate_continuation, do_all_intermediate_continuations)
2583 (do_all_intermediate_continuations_thread)
2584 (discard_all_intermediate_continuations)
2585 (discard_all_intermediate_continuations_thread)
2586 (add_inferior_continuation, do_all_inferior_continuations)
2587 (discard_all_inferior_continuations): Move to ...
2588 * continuations.h: ... this new file.
2589 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2590 infcmd.c, inferior.c, infrun.c, interps.c: Include
2593 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2594 Doug Evans <dje@google.com>
2596 Fix PR 10970, PR 12702.
2597 * linux-nat.c (linux_lwp_is_zombie): New function.
2598 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2599 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2601 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2603 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2605 (add_continuation, add_intermediate_continuation)
2606 (add_inferior_continuation): Use them.
2607 * continuations.c (struct continuation): Use them.
2608 (make_continuation_ftype): Delete.
2609 (make_continuation, add_inferior_continuation, add_continuation)
2610 (add_intermediate_continuation): Use continuation_ftype and
2611 continuation_free_arg_ftype. Rename parameters to shorter names.
2613 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2615 * continuations.c (make_continuation): Make it return void.
2616 (do_my_continuations): Rename to ...
2617 (do_my_continuations_1): ... this. Remove old_chain parameter and
2619 (do_my_continuations): New.
2620 (discard_my_continuations): Rename to ...
2621 (discard_my_continuations_1): ... this. Remove old_chain
2622 parameter and adjust.
2623 (discard_my_continuations): New.
2624 (add_inferior_continuation): Simplify.
2625 (do_all_inferior_continuations): Reimplement on top
2626 do_my_continuations.
2627 (discard_all_inferior_continuations): Simplify.
2628 (add_continuation): Simplify.
2629 (do_all_continuations_ptid): Simplify.
2630 (discard_all_continuations_thread_callback): Simplify.
2631 (add_intermediate_continuation): Simplify.
2632 (discard_all_intermediate_continuations_thread_callback):
2635 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2637 * utils.c (struct continuation, add_continuation)
2638 (add_inferior_continuation)
2639 (do_all_inferior_continuations, discard_all_inferior_continuations)
2640 (restore_thread_cleanup, do_all_continuations_ptid)
2641 (do_all_continuations_thread_callback)
2642 (do_all_continuations_thread, do_all_continuations)
2643 (discard_all_continuations_thread_callback)
2644 (discard_all_continuations_thread, discard_all_continuations)
2645 (add_intermediate_continuation)
2646 (do_all_intermediate_continuations_thread_callback)
2647 (do_all_intermediate_continuations_thread)
2648 (do_all_intermediate_continuations)
2649 (discard_all_intermediate_continuations_thread_callback)
2650 (discard_all_intermediate_continuations_thread)
2651 (discard_all_intermediate_continuations): Move to ...
2652 * continuations.c: ... this new file, and adjust to no longer
2653 implement continuations on top of cleanups.
2654 * Makefile.in (SFILES): Add continuations.c.
2655 (COMMON_OBS): Add continuations.o.
2657 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2659 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2660 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2661 Internal error on invalid values.
2662 * reverse.c: Don't handle EXEC_ERROR.
2663 * mi/mi-main.c: Don't handle EXEC_ERROR.
2665 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2667 * record.c: Include event-loop.h, inf-loop.h.
2668 (record_beneath_to_async): New global.
2669 (tmp_to_async): New global.
2670 (record_async_inferior_event_token): New global.
2671 (record_open_1): Don't error out if async is enabled.
2672 (record_open): Handle to_async. Create an async event source in
2674 (record_close): Delete the async event source.
2675 (record_resumed): New global.
2676 (record_execution_dir): New global.
2677 (record_resume, record_core_resume): Set them. Register the
2678 target on the event loop.
2679 (record_wait): Rename to ...
2680 (record_wait_1): ... this. Add more debug output. Handle
2681 TARGET_WNOHANG, and the target beneath returning
2682 TARGET_WAITKIND_IGNORE.
2683 (record_wait): Reimplement on top of record_wait_1.
2684 (record_async_mask_value): New global.
2685 (record_async, record_async_mask, record_can_async_p)
2686 (record_is_async_p, record_execution_direction): New functions.
2687 (init_record_ops, init_record_core_ops): Install new methods.
2688 * infrun.c (fetch_inferior_event): Temporarily switch the global
2689 execution direction to the direction the target was going.
2690 (execution_direction): Change type to int.
2691 * target.c (default_execution_direction): New function.
2692 (update_current_target): Inherit and de_fault
2693 to_execution_direction.
2694 * target.h (struct target_ops) <to_execution_direction>: New
2696 (target_execution_direction): New macro.
2697 * inferior.h (execution_direction): Change type to int.
2699 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2701 * infcall.c (call_function_by_hand): Don't allow calling functions
2702 in reverse execution mode.
2704 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2706 * infcmd.c (finish_command): Allow async finish in reverse.
2708 2011-05-26 Yao Qi <yao@codesourcery.com>
2710 * gdb_thread_db.h: Delete. Move to ...
2711 * common/gdb_thread_db.h: ... here.
2713 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2715 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2716 function's entry point instead of a manually managed momentary
2717 breakpoint, and only ever issue one proceed call.
2718 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2719 doing a reverse-finish, switch to stepi mode, to do another step.
2720 (insert_step_resume_breakpoint_at_sal): Make public.
2721 (normal_stop): No need to save function value return registers if
2723 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2725 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2727 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2728 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2729 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2731 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2732 step-resume breakpoints.
2733 (print_it_typical): Handle bp_hp_step_resume.
2734 (bpstat_what): Ditto.
2735 (bptype_string): Ditto.
2736 (print_one_breakpoint_location): Ditto.
2737 (allocate_bp_location): Ditto.
2739 (breakpoint_re_set_one): Ditto.
2740 * infrun.c (handle_inferior_event): Adjust. Split
2741 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2742 BPSTAT_WHAT_HP_STEP_RESUME.
2743 (insert_step_resume_breakpoint_at_sal): Rename to ...
2744 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2745 parameter. Handle it.
2746 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2747 insert_step_resume_breakpoint_at_sal_1.
2748 (insert_step_resume_breakpoint_at_frame): Rename to ...
2749 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2750 set a high-priority step-resume breakpoint.
2751 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2752 (insert_step_resume_breakpoint_at_caller): Ditto.
2754 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2756 * breakpoint.c (iterate_over_related_breakpoints): New.
2757 (do_map_delete_breakpoint): New.
2758 (delete_command): Pass do_map_delete_breakpoint to
2759 map_breakpoint_numbers.
2760 (do_disable_breakpoint): New.
2761 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2763 (do_enable_breakpoint): Rename to ...
2764 (enable_breakpoint_disp): ... this.
2765 (enable_breakpoint): Adjust.
2766 (do_enable_breakpoint): New.
2767 (enable_once_breakpoint): Delete.
2768 (do_map_enable_breakpoint): New.
2769 (do_map_enable_once_breakpoint): New.
2770 (enable_once_command, enable_delete_command)
2771 (delete_trace_command): Iterate over the breakpoint's related
2774 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2776 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2777 for ALPHA_ZERO_REGNUM.
2778 (alpha_supply_int_regs): Explicitly supply zero as the value for
2779 ALPHA_ZERO_REGNUM in the register cache.
2780 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2782 2011-05-26 Yao Qi <yao@codesourcery.com>
2784 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2786 2011-05-26 Tristan Gingold <gingold@adacore.com>
2788 * symfile.h (struct dwarf2_section_names): New type.
2789 (struct dwarf2_debug_sections): New type.
2790 (dwarf2_has_info): Add parameter.
2791 * dwarf2read.c (dwarf2_elf_names): New variable.
2792 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2793 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2794 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2795 (dwarf2_has_info): Add names parameter. Pass names
2796 to dwarf2_locate_sections.
2797 (section_is_p): Rewrite using the names parameter.
2798 (dwarf2_locate_sections): Use section names from the names parameter.
2799 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2800 * elfread.c (read_psyms): Ditto.
2801 * machoread.c (macho_symfile_read): Ditto.
2803 2011-05-25 Andreas Schwab <schwab@redhat.com>
2806 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2808 2011-05-24 Keith Seitz <keiths@redhat.com>
2811 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2812 (decode_compound): Unconditionally call keep_name_info.
2814 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2816 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2817 scope, clear its command list.
2818 (map_breakpoint_numbers): Don't walk the related breakpoints list
2821 2011-05-24 Tom Tromey <tromey@redhat.com>
2823 * MAINTAINERS: Move Jim Blandy to past maintainers.
2825 2011-05-24 Tristan Gingold <gingold@adacore.com>
2827 * symfile.h (enum dwarf2_section_enum): New type.
2828 (dwarf2_get_section_info): New prototype.
2829 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2830 section_name by sect. Use a switch to select the info.
2831 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2832 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2834 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2836 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2837 shared library event breakpoint if there's no execution.
2839 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2841 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2842 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2844 2011-05-23 Tom Tromey <tromey@redhat.com>
2846 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2849 2011-05-23 Doug Evans <dje@google.com>
2851 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2852 entry for RuntimeError to doc string.
2854 2011-05-23 Jerome Guitton <guitton@adacore.com>
2856 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2857 sequence for probing loops.
2859 2011-05-23 Pedro Alves <pedro@codesourcery.com>
2861 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2864 2011-05-21 Mark Kettenis <kettenis@gnu.org>
2866 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2867 zero as the value for %g0 in the register cache.
2868 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2869 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2871 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2873 * infrun.c (proceed): Set previous_inferior_ptid here.
2874 (init_wait_for_inferior): Initialize previous_inferior_ptid from
2875 inferior_ptid, not null_ptid.
2876 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
2877 (fetch_inferior_event): Nor here.
2879 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2881 * inf-loop.c (inferior_event_handler): Only output a message if
2884 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
2886 * MAINTAINERS: Update my e-mail address.
2888 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2890 * infrun.c (proceed): Switch the inferior event loop to
2891 INF_EXEC_COMPLETE if the target refused to resume from a
2894 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2896 * infcmd.c: Include "inf-loop.h".
2897 (step_once): When stepping into an inline subroutine, pretend the
2898 target has run. If the target can async, switch the inferior
2899 event loop to INF_EXEC_COMPLETE.
2900 * inferior.h (user_visible_resume_ptid): Declare.
2901 * infrun.c (user_visible_resume_ptid): New function, factored out
2904 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
2905 that the current thread is running. Merge async and sync
2908 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2910 * infcmd.c (step_1): Simplify synchronous case.
2912 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2914 * tracepoint.c: Include exceptions.h.
2915 (TFILE_PID): Move higher in file.
2916 (tfile_open): Delay pushing the tfile target until we're assured
2917 the tfile header is present in the file. Wrap reading the initial
2918 newline-terminated lines in TRY_CATCH. Pop the target if the
2919 initial setup failed. Add the tfile's thread immediately
2920 aftwards, before any non-essential setup. Don't skip
2921 post_create_inferior if there are no traceframes present in the
2923 (tfile_close): Remove redundant check for null before xfree call.
2924 (tfile_thread_alive): New function.
2925 (init_tfile_ops): Register it as to_thread_alive callback.
2927 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2929 * tracepoint.c (tfile_open): Delete #if 0'd code.
2931 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2933 Fix -readnow for -gdwarf-4 unused type units.
2934 * dwarf2read.c (struct signatured_type): Remove the field offset.
2935 (create_signatured_type_table_from_index): Remove its initialization.
2936 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
2937 instead. Add a complaint call.
2938 (process_psymtab_comp_unit): Change assignment to gdb_assert.
2939 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
2940 (lookup_signatured_type_at_offset, read_signatured_type)
2941 (write_one_signatured_type): Update the field for per_cu.
2943 2011-05-19 Tom Tromey <tromey@redhat.com>
2945 * python/py-inferior.c (python_inferior_exit): Use
2947 (python_on_resume): Likewise.
2949 2011-05-19 Matt Rice <ratmice@gmail.com>
2951 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2953 2011-05-19 Hui Zhu <teawater@gmail.com>
2955 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
2957 2011-05-19 Hui Zhu <teawater@gmail.com>
2959 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
2961 2011-05-18 Tom Tromey <tromey@redhat.com>
2963 * dwarf2read.c (dwarf2_add_field): Constify.
2964 * value.c (value_static_field): Constify.
2965 * gdbtypes.h (struct main_type) <field.field_location.physname>:
2967 * ax-gdb.c (gen_static_field): Constify
2969 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2971 * linux-nat.c (kill_callback): Use SIGKILL first.
2973 2011-05-18 Joel Brobecker <brobecker@adacore.com>
2975 * ada-lang.c (print_it_exception): Avoid use of sprintf.
2977 2011-05-18 Tom Tromey <tromey@redhat.com>
2979 * value.c (value_fn_field): Constify.
2980 * symtab.c (gdb_mangle_name): Constify.
2981 * stabsread.c (update_method_name_from_physname): Make 'physname'
2983 * p-typeprint.c (pascal_type_print_method_args): Make arguments
2984 const. Use explicit fputc_filtered loop.
2985 (pascal_type_print_base): Constify.
2986 * p-lang.h (pascal_type_print_method_args): Update.
2987 * linespec.c (add_matching_methods): Constify.
2988 (add_constructors): Likewise.
2989 * jv-typeprint.c (java_type_print_base): Constify.
2990 * gdbtypes.h (struct cplus_struct_type)
2991 <fn_fieldlist.fn_field.physname>: Now const.
2992 * dwarf2read.c (compute_delayed_physnames): Constify.
2993 (dwarf2_add_member_fn): Likewise.
2994 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
2996 2011-05-18 Pedro Alves <pedro@codesourcery.com>
2998 * infrun.c (resume): Mention which is the current thread, and its
2999 current PC in debug output.
3000 (prepare_to_proceed): Mention the thread switching in debug
3003 2011-05-18 Tom Tromey <tromey@redhat.com>
3005 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3006 path check. Use xmalloc and cleanups.
3007 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3009 2011-05-17 Tom Tromey <tromey@redhat.com>
3011 * cp-valprint.c (cp_print_value_fields): Catch errors from
3014 2011-05-17 Tom Tromey <tromey@redhat.com>
3016 * dwarf2read.c (dwarf2_get_die_type): Call
3017 get_die_type_at_offset.
3018 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3019 get_base_type function.
3021 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3023 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3026 2011-05-16 Doug Evans <dje@google.com>
3028 * python/py-auto-load.c (source_section_scripts): Mention objfile
3031 2011-05-15 Doug Evans <dje@google.com>
3033 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3034 (try_thread_db_load_from_pdir): Call it. If unable to find
3035 libthread_db in directory of libpthread, see if we're looking at
3036 the separate-debug-info copy.
3038 * python/py-autoload.c (print_script): Print "Missing" instead of
3039 "No" for missing scripts.
3040 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3042 2011-05-13 Doug Evans <dje@google.com>
3044 * ui-file.c (stdio_file_write_async_safe): Add comment.
3046 2011-05-14 Hui Zhu <teawater@gmail.com>
3048 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3050 2011-05-13 Doug Evans <dje@google.com>
3052 Support $pdir and $sdir in libthread-db-search-path.
3053 * NEWS: Mention $sdir,$pdir.
3054 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3055 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3056 (try_thread_db_load_from_sdir): New function.
3057 (try_thread_db_load_from_dir): New function.
3058 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3059 system directories if search of libthread-db-search-path fails,
3060 that is now done via $sdir.
3061 (has_libpthread): New function.
3062 (thread_db_load): Remove search for libthread_db in directory of
3063 libpthread, that is now done via $pdir.
3065 * NEWS: Mention "info auto-load-scripts".
3066 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3067 script_not_found_warning_printed.
3068 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3069 all callers updated. Initialize script_not_found_warning_printed.
3070 (get_auto_load_pspace_data_for_loading): New function.
3071 (maybe_add_script): New function.
3072 (source_section_scripts): Simplify. Only print one warning regardless
3073 of the number of auto-load scripts not found.
3074 (clear_section_scripts): Clear script_not_found_warning_printed.
3075 (auto_load_objfile_script): Record script in hash table.
3076 (count_matching_scripts): New function.
3077 (maybe_print_script): Renamed from maybe_print_section_script, all
3078 callers updated. Rewrite to use ui_out_*.
3079 (info_auto_load_scripts): Renamed from
3080 maintenance_print_section_scripts, all callers updated.
3081 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3082 renamed as "info auto-load-scripts".
3084 2011-05-13 Tom Tromey <tromey@redhat.com>
3086 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3087 (read_sleb128): Likewise.
3089 2011-05-13 Tom Tromey <tromey@redhat.com>
3091 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3094 2011-05-13 Doug Evans <dje@google.com>
3096 * linux-nat.c (debug_linux_nat_async): Delete.
3097 Replace all references to use debug_linux_nat instead.
3098 (show_debug_linux_nat_async): Delete.
3099 (sigchld_handler): Call ui_file_write_async_safe instead of
3101 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3102 * ui-file.c (struct ui_file): New member to_write_async_safe.
3103 (null_file_write_async_safe): New function.
3104 (ui_file_write_async_safe): New function.
3105 (set_ui_file_write_async_safe): New function.
3106 (ui_file_new): Initialize to_write_async_safe.
3107 (stdio_file_write_async_safe): New function.
3108 (struct stdio_file): New member fd.
3109 (stdio_file_new): Initialize to_write_async_safe, fd.
3110 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3112 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3113 (set_ui_file_write_async_safe): Declare.
3114 (ui_file_write_async_safe): Declare.
3116 2011-05-13 Tom Tromey <tromey@redhat.com>
3118 * utils.c (do_value_free): New function.
3119 (make_cleanup_value_free): Likewise.
3120 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3122 (dwarf2_loc_desc_needs_frame): Call
3123 make_cleanup_value_free_to_mark.
3124 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3125 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3127 (new_dwarf_expr_context): Don't call value_mark.
3128 * dwarf2-frame.c (execute_stack_op): Call
3129 make_cleanup_value_free_to_mark.
3130 * defs.h (make_cleanup_value_free): Declare.
3132 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3134 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3135 prepare_execute_command.
3136 * top.c (prepare_execute_command): Return cleanup.
3137 (execute_command): Use cleanup from prepare_execute_command.
3138 * top.h (prepare_execute_command): Change prototype to return
3140 * defs.h (struct value): Add opaque declaration.
3141 (make_cleanup_value_free_to_mark): Add prototype.
3142 * utils.c (do_value_free_to_mark): New function.
3143 (make_cleanup_value_free_to_mark): Likewise.
3145 2011-05-12 Tom Tromey <tromey@redhat.com>
3147 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3148 cast left-hand-side to unsigned.
3150 2011-05-12 Tom Tromey <tromey@redhat.com>
3153 * value.h (value_from_contents): Declare.
3154 * value.c (value_from_contents): New function.
3155 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3156 (dwarf2_get_die_type): New function.
3157 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3158 (allocate_piece_closure): Acquire reference to values.
3159 (read_pieced_value): Update for value-based expressions.
3160 (write_pieced_value): Likewise.
3161 (free_pieced_value_closure): Call value_free as needed.
3162 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3163 Update for value-based expressions.
3164 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3165 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3166 <get_base_type>: New field.
3167 (struct dwarf_expr_piece) <v.value>: Change type.
3168 <v.regno>: New field.
3169 (struct dwarf_expr_context) <mark>: New field.
3170 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3171 (dwarf_expr_pop, dwarf_expr_push): Remove.
3172 (dwarf_expr_push_address): Declare.
3173 * dwarf2expr.c (dwarf_arch_cookie): New global.
3174 (struct dwarf_gdbarch_types): New.
3175 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3177 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3179 (dwarf_expr_push_address): New function.
3180 (dwarf_expr_pop): Now static.
3181 (dwarf_expr_fetch): Change return type.
3182 (dwarf_require_integral): New function.
3183 (dwarf_expr_fetch): Simplify.
3184 (add_piece): Update.
3185 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3187 (execute_stack_op) <sign_ext>: Remove.
3188 Use values for DWARF stack.
3189 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3190 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3192 (_initialize_dwarf2expr): New function.
3193 (add_piece): Update.
3194 (new_dwarf_expr_context): Set new field.
3195 (free_dwarf_expr_context): Call value_free_to_mark.
3196 * dwarf2-frame.c (no_base_type): New function.
3197 (execute_stack_op): Set get_base_type field. Update.
3199 2011-05-12 Tom Tromey <tromey@redhat.com>
3201 * dwarf2read.c (read_common_block): Fix formatting.
3203 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3205 * breakpoint.c (disable_breakpoint): Disable all locations
3206 associated with a tracepoint on target if a trace experiment is
3208 (disable_command): Disable a specific tracepoint location on target if
3209 a trace experiment is running.
3210 (do_enable_breakpoint): Enable all locations associated with a
3211 tracepoint on target if a trace experiment is running.
3212 (enable_command) Enable a specific tracepoint location on target if a
3213 trace experiment is running.
3214 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3215 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3216 to_disable_tracepoint.
3217 * target.h: Add declaration of struct bp_location.
3218 (struct target_ops): Add new functions
3219 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3220 to_disable_tracepoint to target operations.
3221 (target_supports_enable_disable_tracepoint): New macro.
3222 (target_enable_tracepoint): New macro.
3223 (target_disable_tracepoint): New macro.
3224 * remote.c (struct remote_state): Add new field.
3225 (remote_enable_disable_tracepoint_feature): New.
3226 (remote_protocol_features): Add new entry.
3227 (remote_supports_enable_disable_tracepoint): New.
3228 (remote_enable_tracepoint): New.
3229 (remote_disable_tracepoint): New.
3230 (init_remote_ops): Add remote_enable_tracepoint,
3231 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3232 to remote operations.
3233 * tracepoint.c (start_tracing): Allow tracing to start without any
3234 tracepoints enabled with just a warning if they can be re-enabled
3236 * NEWS: Add news item for the new behaviour of the enable and disable
3237 GDB commands when applied to tracepoints.
3238 Add news items for the new remote packets QTEnable and QTDisable.
3240 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3242 * config.in: Regenerate.
3243 * configure: Regenerate.
3244 * configure.ac <--with-system-readline> (for readline_echoing_p):
3246 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3247 (tui_old_rl_echoing_p): ... here.
3248 (tui_setup_io): Rename extern declaration readline_echoing_p to
3249 _rl_echoing_p. Adjust assignments for the both renames.
3251 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3253 * symtab.c (lookup_symtab): Run cleanup before returning.
3255 2011-05-11 Tom Tromey <tromey@redhat.com>
3257 * dwarf2read.c (handle_data_member_location): New function.
3258 (dwarf2_add_field): Use it.
3259 (read_common_block): Likewise.
3261 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3263 Make addrs->SECTINDEX always defined.
3264 * symfile.c (relative_addr_info_to_section_offsets): Check for
3265 SECTINDEX -1, not for zero ADDR.
3266 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3267 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3268 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3271 2011-05-10 Doug Evans <dje@google.com>
3273 * linux-thread-db.c: Whitespace cleanup.
3274 (try_thread_db_load_1): Fix comment.
3276 * linux-thread-db.c (set_libthread_db_search_path): New function.
3277 (_initialize_thread_db): Add setter for libthread-db-search-path.
3279 2011-05-09 Doug Evans <dje@google.com>
3281 * NEWS: Mention --with-iconv-bin.
3282 * configure.ac: New option --with-iconv-bin.
3283 * configure: Regenerate.
3284 * config.in: Regenerate.
3285 * defs.h (relocate_gdb_directory): Declare.
3286 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3287 removed progname parameter, and exported. All callers updated.
3288 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3290 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3291 adding missing call to restore_child_signals_mask.
3293 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3295 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3297 * infrun.c (proceed, start_remote): Adjust.
3298 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3299 and adjust to not handle it.
3300 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3301 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3302 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3303 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3304 * windows-nat.c (do_initial_windows_stuff): Adjust.
3305 * infcmd.c (attach_command): Adjust.
3306 (notice_new_inferior): Adjust.
3308 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3310 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3311 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3312 * spu-tdep.c (op_selb): Use correct value.
3314 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3316 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3317 "parent" parameter to symbol_file_add_from_bfd call.
3319 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3320 Thiago Jung Bauermann <bauerman@br.ibm.com>
3322 Implement support for PowerPC BookE masked watchpoints.
3323 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3325 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3326 method. Initialize to NULL in all existing breakpoint_ops instances.
3327 (struct breakpoint) <hw_wp_mask>: New field.
3328 * breakpoint.c (is_masked_watchpoint): Add prototype.
3329 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3330 breakpoint's breakpoint_ops.works_in_software_mode if available.
3331 (watchpoints_triggered): Handle the case of a hardware masked
3333 (watchpoint_check): Likewise.
3334 (works_in_software_mode_watchpoint): New function.
3335 (insert_masked_watchpoint, remove_masked_watchpoint)
3336 (resources_needed_masked_watchpoint)
3337 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3338 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3339 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3341 (masked_watchpoint_breakpoint_ops): New structure.
3342 (watch_command_1): Check for the existence of the `mask' parameter.
3343 Set b->ops according to the type of hardware watchpoint being created.
3344 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3345 (ppc_linux_remove_mask_watchpoint)
3346 (ppc_linux_masked_watch_num_registers): New functions.
3347 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3348 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3349 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3350 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3351 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3352 (target_masked_watch_num_registers): New functions.
3353 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3354 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3356 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3357 (target_masked_watch_num_registers): Add prototypes.
3359 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3362 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3363 (producer_is_gcc_ge_4_0): New function.
3364 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3365 symtab->language code.
3366 (var_decode_location): Set cu->has_loclist.
3367 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3368 skip. Intialize force_skip from locations_valid. Move the prologue
3369 skipping code into two passes.
3370 * symtab.h (struct symtab): Make the primary field a bitfield. New
3371 field locations_valid.
3373 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3375 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3376 (classify_inner_name): Call cp_lookup_nested_type with
3378 * cp-namespace.c (cp_lookup_nested_type): New variable
3379 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3380 type_name_no_tag_or_error with saved_parent_type.
3381 * dwarf2read.c (load_partial_dies): Read in any children of
3382 DW_TAG_typedef with complaint in such case.
3383 * gdbtypes.c (type_name_no_tag_or_error): New function.
3384 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3385 * valops.c (destructor_name_p): New comment for parameter type. Remove
3386 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3387 * value.h (destructor_name_p): Remove type const.
3389 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3391 * symtab.c (compare_symbol_name): New function.
3392 (completion_list_add_name, expand_partial_symbol_name): Call it,
3393 remove the variable ncmp.
3394 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3397 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3399 Demote to sw watchpoint only in update_watchpoint.
3400 * breakpoint.c (update_watchpoint): Change between software and
3401 hardware watchpoint for all kinds of watchpoints, not just
3402 read/write ones. Determine b->exact value here instead of
3403 in watch_command_1. Error out if there are not enough resources
3404 for a read or access hardware watchpoint.
3405 (watch_command_1): Remove logic of checking whether there are
3406 enough resources available, since update_watchpoint will do that
3407 work now. Don't set b->exact here. Catch exceptions thrown by
3408 update_watchpoint and delete the watchpoint.
3409 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3410 Use target_exact_watchpoints instead.
3411 (delete_breakpoint): Notify observers only if deleted watchpoint
3412 has a breakpoint number assigned to it.
3414 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3416 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3418 2011-05-05 Jerome Guitton <guitton@adacore.com>
3420 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3422 (i386_stack_tramp_frame_unwind): New static global.
3423 (i386_match_pattern): New function, extracted from i386_match_insn.
3424 (i386_match_insn): Use i386_match_pattern.
3425 (i386_match_insn_block): New function.
3426 (i386_tramp_chain_in_reg_insns)
3427 (i386_tramp_chain_on_stack_insns): New static variables.
3428 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3431 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3433 * configure.host (xscale*): Don't handle target.
3434 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3437 2011-05-04 Yao Qi <yao@codesourcery.com>
3439 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3441 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3444 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3445 | * elfread.c (elf_symtab_read): Stop memory leak.
3447 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3449 * nto-tdep.c (nto_target): Replace deprecated call to
3450 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3452 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3454 Fix false GCC warning.
3455 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3457 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3459 * breakpoint.c (update_watchpoint): Move code to change
3460 the enable state of breakpoint from here ...
3461 (do_enable_breakpoint): ... to here.
3463 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3465 * valprint.c (val_print_array_elements): Fixed poor performance
3466 of printing very large arrays with repeat_count_threshold set
3467 to unlimited. New comment.
3469 2011-04-29 Tom Tromey <tromey@redhat.com>
3471 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3472 (mi_parse): Likewise.
3473 * breakpoint.c (break_range_command): Use sizeof char*, not
3475 (create_breakpoint): Likewise.
3476 (parse_breakpoint_sals): Likewise.
3478 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3480 * linux-nat.c (linux_child_remove_fork_catchpoint)
3481 (linux_child_remove_vfork_catchpoint)
3482 (linux_child_remove_exec_catchpoint): New functions.
3483 (linux_target_install_ops): Install them.
3485 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3489 * varobj.c (install_default_visualizer): Do not install a
3490 visualizer if the varobj is CPLUS_FAKE_CHILD.
3491 (construct_visualizer): Likewise.
3493 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3495 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3496 case insensitive comparison.
3498 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3500 * infrun.c (proceed): Revert previous change.
3501 (resume): Instead, handle the case of signal delivery while stepping
3502 off a breakpoint location here, and only if software single-stepping
3503 is used. Handle nested signals.
3505 2011-04-28 Yao Qi <yao@codesourcery.com>
3507 * arm-tdep.c (copy_unmodified): Rename to ...
3508 (arm_copy_unmodified): .. this. New.
3509 (copy_preload): Move common part to ...
3510 (install_preload): .. this. New.
3511 (arm_copy_preload): New.
3512 (copy_preload_reg): Move common part to ...
3513 (install_preload_reg): ... this. New.
3514 (arm_copy_preload_reg): New.
3515 (copy_b_bl_blx): Move common part to ...
3516 (install_b_bl_blx): .. this. New.
3517 (arm_copy_b_bl_blx): New.
3518 (copy_bx_blx_reg): Move common part to ...
3519 (install_bx_blx_reg): ... this. New.
3520 (arm_copy_bx_blx_reg): New.
3521 (copy_alu_reg): Move common part to ...
3522 (install_alu_reg): ... this. New.
3523 (arm_copy_alu_reg): New.
3524 (copy_alu_shifted_reg): Move common part to ...
3525 (install_alu_shifted_reg): ... this. New.
3526 (copy_ldr_str_ldrb_strb): Move common part to ...
3527 (install_ldr_str_ldrb_strb): ... this. New.
3528 (arm_copy_ldr_str_ldrb_strb): New.
3529 (copy_copro_load_store): Move some common part to ...
3530 (install_copy_copro_load_store): ... this. New.
3531 (arm_copy_copro_load_store): New.
3533 (arm_copy_svc): Renamed from copy_svc.
3534 (copy_undef): Delete.
3535 (arm_copy_undef): Renamed from copy_undef.
3536 (decode_ext_reg_ld_st): Delete.
3537 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3538 (decode_svc_copro): Delete.
3539 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3540 (copy_copro_load_store, copy_alu_imm): update callers.
3541 (copy_extra_ld_st, copy_block_xfer): Likewise.
3542 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3543 (decode_miscellaneous, decode_dp_misc): Likewise.
3544 (decode_ld_st_word_ubyte, decode_media): Likewise.
3545 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3546 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3547 (decode_unconditional, decode_miscellaneous): Likewise.
3548 (decode_media, decode_b_bl_ldmstm): Likewise.
3549 (arm_process_displaced_insn): Likewise..
3550 (decode_misc_memhint_neon): Delete.
3551 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3552 (decode_miscellaneous): Delete.
3553 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3554 (decode_dp_misc): Delete.
3555 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3556 (decode_ld_st_word_ubyte): Delete.
3557 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3558 (decode_media): Delete.
3559 (arm_decode_media): Renamed from decode_media.
3560 (decode_b_bl_ldmstm): Delete.
3561 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3562 (decode_ext_reg_ld_st): Delete.
3563 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3564 (decode_unconditional): Delete.
3565 (arm_decode_unconditional): Renamed from decode_unconditional.
3567 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3569 Case insensitive lookups implementation.
3570 * dwarf2read.c: Include ctype.h.
3571 (struct mapped_index): New field version.
3572 (mapped_index_string_hash): New parameter index_version. New comment
3573 for it. Call tolower appropriately.
3574 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3575 Choose the right index version for mapped_index_string_hash.
3576 (dwarf2_read_index): Support also the index version 5. Initialize the
3577 new struct mapped_index field version.
3578 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3579 (find_slot): Explain the version needs. Pass INT_MAX for the new
3581 (write_psymtabs_to_index): Produce version 5.
3582 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3583 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3584 * psymtab.c (lookup_partial_symbol): Find the
3585 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3587 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3589 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3590 (completion_list_add_name): New variable ncmp, initialize it, use it.
3591 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3592 * utils.c (strcmp_iw): Support case_sensitive_off.
3593 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3594 New function comment part. New variables saved_string1,
3595 saved_string2 and case_pass. Add a proper second pass.
3597 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3599 Replace re_comp/re_exec by regcomp/regexec.
3600 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3601 (search_symbols_name_matches): Use them, use regexec.
3602 (search_symbols): New variable retval_chain, adjust the use of
3603 old_chain against it. Replace re_comp by regcomp. Use the new struct
3604 search_symbols_data fields, use regexec instead of re_exec.
3606 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3608 Format the code for the next patch.
3609 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3610 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3611 New variables c1 and c2.
3613 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3615 * infrun.c (proceed): Do not single-step into signal delivery
3616 when stepping off a breakpoint location.
3617 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3618 (insert_step_resume_breakpoint_at_caller): Likewise.
3619 (insert_step_resume_breakpoint_at_sal): Likewise.
3620 (insert_longjmp_resume_breakpoint): Likewise.
3622 2011-04-27 Yao Qi <yao@codesourcery.com>
3624 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3626 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3628 * procfs.c (procfs_pass_signals): Fix advance declaration.
3630 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3632 * target.h (struct target_ops): Remove to_notice_signals;
3633 add to_pass_signals.
3634 (target_notice_signals): Remove.
3635 (target_pass_signals): Add prototype.
3636 * target.c (update_current_target): Remove to_notice_signals;
3637 mention to_pass_signals.
3638 (target_pass_signals): New function.
3639 (debug_to_notice_signals): Remove.
3640 (setup_target_debug): Do not install debug_to_notice_signals.
3642 * infrun.c (signal_pass): New global.
3643 (resume): Call target_pass_signals.
3644 (handle_inferior_event): Report all signals while stepping over
3645 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3646 are re-inserted when stepping over a signal handler.
3647 (signal_cache_update): New function.
3648 (signal_stop_update): Call it.
3649 (signal_print_update): Likewise.
3650 (signal_pass_update): Likewise.
3651 (handle_command): Call signal_cache_update and target_pass_signals
3652 instead of target_notice_signals.
3653 (_initialize_infrun): Initialize signal_pass.
3655 * linux-nat.c (pass_mask): New global.
3656 (linux_nat_pass_signals): New function.
3657 (linux_nat_create_inferior): Report all signals initially.
3658 (linux_nat_attach): Likewise.
3659 (linux_nat_resume): Use pass_mask to decide whether to directly
3660 handle an inferior signal.
3661 (linux_nat_wait_1): Likewise.
3662 (linux_nat_add_target): Install to_pass_signals callback.
3664 * nto-procfs.c (notice_signals): Remove.
3665 (procfs_resume): Do not call notice_signals.
3666 (procfs_notice_signals): Remove.
3667 (procfs_pass_signals): New function.
3668 (init_procfs_ops): Install to_pass_signals callback instead of
3669 to_notice_signals callback.
3670 (_initialize_procfs): Report all signals initially.
3672 * procfs.c (procfs_notice_signals): Remove.
3673 (procfs_pass_signals): New function.
3674 (procfs_target): Install to_pass_signals callback instead of
3675 to_notice_signals callback.
3676 (register_gdb_signals): Remove.
3677 (procfs_debug_inferior): Report all signals initially.
3678 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3680 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3681 parameters; use them instead of calling signal_..._state routines.
3682 (remote_notice_signals): Remove.
3683 (remote_start_remote): Report all signals initially.
3684 (remote_resume): Do not call remote_pass_signals.
3685 (_initialize_remote): Install to_pass_signals callback instead of
3686 to_notice_signals callback.
3688 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3690 * breakpoint.c (user_settable_breakpoint): Delete.
3691 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3692 (delete_command): Check user_breakpoint_p instead of looking at
3693 the breakpoint's type.
3694 (disable_command): Ditto.
3695 (enable_command): Ditto.
3696 (delete_trace_command): Use user_breakpoint_p instead of looking
3697 at the breakpoint number directly. When checking if there are
3698 user visible tracepoints, in order to know whether to ask the user
3699 for confirmation, check whether the breakpoint is actually a
3702 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3704 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3707 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3709 MI breakpoint notifications.
3711 * annotate.c (breakpoint_changed): Adjust parameter type.
3712 * breakpoint.c (set_breakpoint_condition): Adjust to change
3713 in breakpoint_modified type.
3714 (breakpoint_set_commands): Likewise.
3715 (do_map_commands_command): Likewise.
3716 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3717 changed after bumping hit count.
3718 (bpstat_stop_status): Likewise.
3719 (print_one_breakpoint_location): Don't wrap in tuple here.
3720 (print_one_breakpoint): Always print individual locations.
3721 For locations, use unnamed tuple.
3722 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3724 (create_catchpoint, create_syscall_event_catchpoint): Call
3725 breakpoint_created obsever.
3726 (mention): Don't call breakpoint_created observer.
3727 (create_breakpoint_sal): Call breakpoint_created observer.
3728 (create_breakpoint, watch_command_1): Likewise.
3729 (create_ada_exception_breakpoint): Likewise.
3730 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3731 (locations_are_equal): New.
3732 (update_breakpoint_locations): If locations were changed, notify.
3733 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3734 Call breakpoint_modified observer.
3736 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3737 (mi_cmd_break_insert): Don't set observers for modify and delete.
3738 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3739 (mi_breakpoint_created, mi_breakpoint_deleted)
3740 (mi_breakpoint_modified): New.
3741 (mi_interpreter_init): Hook the above.
3742 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3743 while -break-* commands are executing.
3744 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3745 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3747 (mi_ui_out_impl): Hook in mi_redirect.
3748 (mi_field_skip): True to the name, skip the field, don't output
3749 a field with an empty value.
3751 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3752 (gdbpy_breakpoint_deleted): Adjust.
3753 * tui/tui-hooks.c (tui_event_create_breakpoint)
3754 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3756 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3758 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3759 (procfs_remove_hw_watchpoint): Likewise.
3761 2011-04-26 Michael Walle <michael@walle.cc>
3763 * remote.c (remote_start_remote): Ack packet after sending the
3766 2011-04-26 Yao Qi <yao@codesourcery.com>
3768 * linux-nat.c: Move common macros to ...
3769 Include linux-ptrace.h.
3770 * common/linux-ptrace.h: ... here. New.
3772 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3774 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3775 !objfile_has_partial_symbols. New comment.
3776 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3777 SYM_READ_PSYMBOLS is not present. Extend the comment.
3778 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3780 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3782 * defs.h (ENUM_BITFIELD): Remove.
3784 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3785 Eli Zaretskii <eliz@gnu.org>
3787 * NEWS: Document the new gdbserver --once option.
3789 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3791 * MAINTAINERS: Update my email address.
3793 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3795 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3796 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3797 function call if __STDC_ISO_10646__ macro is defined.
3798 (intermediate_encoding): New prototype.
3799 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3800 to generate compile time error for unsupported gdb_wchar_t size.
3801 (ENDIAN_SUFFIX): New macro.
3802 (intermediate_encoding): New function.
3804 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3806 * ada-lang.c (struct add_partial_datum): Update the comment for
3807 expand_partial_symbol_name.
3808 (ada_add_partial_symbol_completions): Rename to ...
3809 (ada_expand_partial_symbol_name): ... here, change return type, update
3810 function comment, call symbol_completion_match instead of
3811 symbol_completion_add.
3812 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3813 and ada_expand_partial_symbol_name.
3814 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3816 (dw2_map_symbol_names): Remove.
3817 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3818 * psymtab.c (map_symbol_names_psymtab): Remove.
3819 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3820 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3822 (psym_functions): Unlist map_symbol_names_psymtab.
3823 (map_partial_symbol_names): Rename to ...
3824 (expand_partial_symbol_names): ... here, change the FUN type, call
3825 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3826 * psymtab.h (map_partial_symbol_names): Rename to ...
3827 (expand_partial_symbol_names): ... here, change the FUN type.
3828 * symfile.h (struct quick_symbol_functions): Update the description of
3829 expand_symtabs_matching. Remove map_symbol_names.
3830 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3831 (struct add_name_data): Update the comment for
3832 expand_partial_symbol_name.
3833 (add_partial_symbol_name): Rename to ...
3834 (expand_partial_symbol_name): ... here. Replace
3835 completion_list_add_name call by strncmp.
3836 (default_make_symbol_completion_list_break_on): Use now
3837 expand_partial_symbol_names and expand_partial_symbol_name.
3838 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3840 2011-04-20 Tom Tromey <tromey@redhat.com>
3842 * dwarf2read.c (save_gdb_index_command): Replace format
3843 documentation with a pointer to the manual.
3845 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3847 * regcache.c: Include remote.h.
3848 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3849 (regcache_dump): Handle regcache_dump_remote.
3850 (maintenance_print_remote_registers): New function.
3851 (_initialize_regcache): Install "maint print remote-registers"
3853 * remote.c (map_regcache_remote_table): New function, factored out
3855 (init_remote_state): ... here.
3856 (remote_register_number_and_offset): New.
3857 * remote.h (remote_register_number_and_offset): Declare.
3859 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3861 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3862 null_ptid, assume and allow a NULL address space, instead of
3863 asking the target for the ptid's address space.
3864 * infrun.c (ptid_is_pid): Remove assertion.
3866 2011-04-19 Tom Tromey <tromey@redhat.com>
3868 * windows-tdep.c (windows_xfer_shared_library):
3869 * windows-nat.c (get_module_name, windows_make_so):
3870 * v850-tdep.c (v850_handle_pushm):
3871 * utils.c (null_cleanup, gdb_realpath):
3872 * ui-out.c (get_next_header):
3873 * tracepoint.c (clear_traceframe_info):
3874 * symtab.c (lookup_symtab):
3875 * serial.h (struct serial_ops):
3876 * mipsread.c (read_alphacoff_dynamic_symtab):
3877 * infcmd.c (print_return_value):
3878 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
3879 * f-exp.y (parse_number):
3880 * exceptions.c (catch_exceptions):
3881 * dummy-frame.c (dummy_frame_this_id):
3882 * defs.h (struct cleanup):
3883 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
3884 * arm-tdep.c (arm_push_dummy_call):
3885 * amd64-tdep.h (amd64_collect_xsave):
3886 * amd64-tdep.c (amd64_collect_xsave):
3887 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
3888 * README (typing): Remove duplicate words.
3889 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
3890 * infrun.c (siginfo_value_read): Fix typo.
3891 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
3892 * top.c (source_line_number): Add comma.
3894 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
3896 * thread.c (any_live_thread_of_process): Prioritize threads
3897 that are not executing.
3898 * gdbthread.h (any_live_thread_of_process): Update comment
3899 as per above change.
3901 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
3903 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
3904 (scan_xcoff_symtab): Likewise.
3906 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3908 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
3911 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3912 Pedro Alves <pedro@codesourcery.com>
3914 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
3915 variables to simplify code and avoid == operator at end of
3916 line as this is against GNU coding standards.
3918 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3920 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
3921 lm_name to name_lm to avoid conflict with lm_name function.
3923 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3925 ARI fixes: Use only lowercase function name for static functions.
3926 * nto-tdep.c (LM_ADDR): Rename to...
3927 (lm_addr): New function name.
3928 (nto_relocate_section_addresses): Adapt to change above.
3929 * solib-sunos.c (LM_ADDR): Rename to...
3930 (lm_addr): New function name.
3931 (LM_NEXT): Rename to...
3932 (lm_next): New function name.
3933 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
3934 function name changes above.
3935 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
3936 (lm_addr_from_link_map): New function name.
3937 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3938 (has_lm_dynamic_from_link_map): New function name.
3939 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3940 (lm_dynamic_from_link_map): New function name.
3941 (LM_ADDR_CHECK): Rename to...
3942 (lm_addr_check): New function name.
3943 (LM_NEXT): Rename to...
3944 (lm_next): New function name.
3945 (LM_PREV): Rename to...
3946 (lm_prev): New function name.
3947 (LM_NAME): Rename to...
3948 (lm_name): New function name.
3949 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
3950 (ignore_first_link_map_entry): New function name.
3951 (svr4_keep_data_in_core): Adapt to function name changes above.
3952 (svr4_current_sos): Likewise.
3953 (enable_break): Likewise.
3954 (svr4_relocate_section_addresses): Likewise.
3956 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3959 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
3960 sprintf. Simplify code and avoid loosing memory.
3961 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
3962 (call0_frame_cache): Remove && operator from end of line.
3964 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3966 Fix libraries displacement if they change whether they were prelinked.
3967 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
3968 does not match. Comment why.
3970 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3972 * corelow.c: Include wrapper.h.
3973 (core_open): Call now gdb_target_find_new_threads.
3974 * wrapper.c: Include target.h.
3975 (gdb_target_find_new_threads): New.
3976 * wrapper.h (gdb_target_find_new_threads): New declaration.
3978 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3980 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
3981 even if !TARGET_HAS_EXECUTION.
3983 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3985 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
3986 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
3987 bfd_get_synthetic_symtab.
3988 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
3989 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
3990 parameter parent, remove the call to add_separate_debug_objfile.
3991 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
3992 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3993 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
3994 parent, new comment for it, call add_separate_debug_objfile for it.
3995 (symbol_file_add_separate): Pass objfile as the parameter parent,
3996 remove the call to add_separate_debug_objfile.
3997 (symbol_file_add_from_bfd): New parameter parent, pass it.
3998 (symbol_file_add): Pass NULL to the new parameter parent.
3999 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4001 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4003 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4006 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4008 Fix Python access to inlined frames.
4009 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4010 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4012 2011-04-15 Tom Tromey <tromey@redhat.com>
4014 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4016 2011-04-15 Gary Benson <gbenson@redhat.com>
4018 * MAINTAINERS: Add myself to write-after-approval section.
4020 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4022 * remote-sim.c (sim_command_completer): New function.
4023 (_initialize_remote_sim): Set completer to sim_command_completer.
4025 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4027 * breakpoint.c (print_exception_catchpoint): Rename to ...
4028 (print_it_exception_catchpoint): ... this.
4029 (gnu_v3_exception_catchpoint_ops): Update with new name
4030 for print_it_exception_catchpoint.
4032 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4034 * MAINTAINERS: Add myself for write after approval privileges.
4036 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4038 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4040 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4042 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4044 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4046 * breakpoint.c (save_breakpoints): Verify whether
4047 breakpoint_ops.print_recreate is defined before calling it.
4049 2011-04-11 Gary Benson <gbenson@redhat.com>
4051 Fix failure with --enable-maintainer-mode.
4052 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4054 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4057 * symtab.c (search_symbols): Reorder the KIND description in the
4058 function comment. Remove the unused 4th element of types, types2,
4059 types3 and types4. New gdb_assert on KIND.
4060 (symtab_symbol_info): Remove the unused 4th element of classnames.
4061 New gdb_assert on KIND.
4062 * symtab.h (enum search_domain): New warning in the enum comment.
4063 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4066 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4068 Fix crash of gdb save-index on a STABS file.
4069 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4072 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4074 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4075 * dwarf2read.c: Include ctype.h.
4076 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4078 (dwarf2_add_field): Fix new_field->accessibility by calling
4079 dwarf2_default_access_attribute. Restructure setting accessibility
4081 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4082 is_private and is_protected by calling
4083 dwarf2_default_access_attribute.
4085 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4087 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4088 to the initialization.
4090 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4092 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4095 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4097 Remove support for old Cygwin 1.5 versions.
4098 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4099 function on old Cygwin version.
4100 * windows-nat.c: Remove cygwin version check and always define
4101 __USEWIDE for Cygwin compilation.
4103 2011-04-07 Yao Qi <yao@codesourcery.com>
4105 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4107 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4108 (arm_copy_svc): Remove parameters INSN and TO.
4109 (decode_svc_copro): Update caller.
4110 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4111 from function pointer `copy_svc_os'.
4113 2011-04-07 Yao Qi <yao@codesourcery.com>
4115 * arm-tdep.c (cleanup_branch): Set a correct return address in
4116 LR for ARM and Thumb.
4118 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4121 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4122 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4123 in the function comment, a new note on values compatibility.
4124 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4125 * symtab.h (SYMBOL_HASH_NEXT): New.
4127 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4129 * ppc-linux-nat.c (check_condition): Add len output parameter.
4130 Set it based on the memory region referenced in the condition
4131 expression. Update all callers.
4133 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4135 Fix crash regression on systems featuring .gdb_index.
4136 * objfiles.c (free_objfile): Move the
4137 forget_cached_source_info_for_objfile call earlier. Comment it.
4138 Extend the comment for objfile_free_data.
4140 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4142 Fix regression of displaying the debug format.
4143 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4146 2011-04-04 Tom Tromey <tromey@redhat.com>
4148 * cli/cli-interp.c (struct captured_execute_command_args):
4150 (do_captured_execute_command): Remove.
4151 (safe_execute_command): Use TRY_CATCH.
4152 * cli/cli-script.c (struct wrapped_read_command_file_args):
4154 (wrapped_read_command_file): Remove.
4155 (script_from_file): Use TRY_CATCH.
4156 * exceptions.c (catch_exception): Remove.
4157 * exceptions.h (catch_exception): Remove.
4158 (deprecated_throw_reason): Update comment.
4159 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4160 argument to 'context'.
4161 (mi_execute_command): Use TRY_CATCH.
4162 * remote.c (struct start_remote_args): Remove.
4163 (remote_start_remote): Update; change arguments.
4164 (remote_open_1): Use TRY_CATCH.
4166 2011-04-04 Tom Tromey <tromey@redhat.com>
4168 * tracepoint.c (scope_info): Update.
4169 * symtab.c (decode_line_spec): Update.
4170 * python/python.c (gdbpy_decode_line): Update.
4171 * linespec.h (decode_line_1): Update.
4172 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4173 (decode_compound, find_method, symtab_from_filename)
4174 (decode_variable): Likewise.
4175 * cli/cli-cmds.c (edit_command): Update.
4176 (list_command): Update.
4177 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4179 (create_breakpoint): Update.
4180 (until_break_command): Update.
4181 (addr_string_to_sals): Update.
4182 (decode_line_spec_1): Update.
4184 2011-04-04 Tom Tromey <tromey@redhat.com>
4186 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4187 (do_captured_parse_breakpoint): Remove.
4188 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4189 Use TRY_CATCH directly.
4191 2011-04-04 Tom Tromey <tromey@redhat.com>
4193 * symtab.h (free_symtab): Remove.
4194 (forget_cached_source_info_for_objfile): Declare.
4195 * symmisc.c (free_symtab): Remove.
4196 * source.c (forget_cached_source_info_for_objfile): New function.
4197 (forget_cached_source_info): Use it.
4198 * objfiles.c (free_objfile): Simplify check before calling
4199 clear_current_source_symtab_and_line. Call
4200 forget_cached_source_info_for_objfile.
4202 2011-04-04 Tom Tromey <tromey@redhat.com>
4204 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4205 (new_symtab): Don't set `free_code' on symtab.
4206 (new_linetable): Properly handle size==0.
4207 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4208 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4210 * jv-lang.c (struct jv_per_objfile_data): New.
4211 (jv_per_objfile_free): Free the data.
4212 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4213 (get_java_class_symtab): Set the `dict' field on the
4214 jv_per_objfile_data.
4215 (free_class_block): Remove.
4216 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4219 2011-04-04 Tom Tromey <tromey@redhat.com>
4221 * symfile.c (reread_symbols): Update.
4222 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4224 * objfiles.c (allocate_objfile): Update.
4225 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4227 * cp-namespace.c (lookup_symbol_file): Don't call
4228 lookup_possible_namespace_symbol.
4229 (initialize_namespace_symtab, get_possible_namespace_block)
4230 (free_namespace_block, cp_check_possible_namespace_symbols)
4231 (check_possible_namespace_symbols_loop)
4232 (check_one_possible_namespace_symbol)
4233 (lookup_possible_namespace_symbol): Remove.
4234 (maintenance_cplus_namespace): Replace with notice.
4235 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4237 2011-04-04 Tom Tromey <tromey@redhat.com>
4239 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4240 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4241 * symmisc.c (free_symtab): Don't free debugformat.
4242 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4243 (record_debugformat, record_producer): Document.
4244 * buildsym.c (end_symtab): Don't save debugformat and producer
4246 (end_symtab): Don't free debugformat and producer fields.
4247 (record_debugformat): Don't call xstrdup.
4248 (record_producer): Likewise.
4250 2011-04-04 Tom Tromey <tromey@redhat.com>
4252 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4253 (source_line_charpos, source_charpos_line): Remove.
4255 2011-04-04 Tom Tromey <tromey@redhat.com>
4257 * symtab.h (domain_enum): Split in two...
4258 (enum search_domain): New.
4259 (search_symbols): Update.
4260 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4261 redundant declarations.
4262 (search_symbols): Change 'kind' argument to search_domain.
4264 (print_symbol_info): Likewise.
4265 (symtab_symbol_info): Likewise.
4266 * symfile.h (struct quick_symbol_functions)
4267 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4268 <expand_symtabs_matching>: Likewise.
4269 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4270 (expand_symtabs_matching_via_partial): Update.
4271 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4272 (dw2_expand_symtabs_for_function): Update.
4273 * block.h: Moved anonymous enum...
4274 * defs.h (enum block_enum): ... here. Now named.
4276 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4278 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4279 * version.in: Bump version to 7.3.50.20110403-cvs.
4281 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4283 * NEWS: Create a new section for the next release branch.
4284 Rename the section of the current branch, now that it has
4287 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4289 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4290 for "fpscr" in target description.
4292 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4294 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4295 initialize it. Delay HASH initialization. Strip the part after open
4296 parenthesis for languages with qualifiers. Call do_cleanups.
4298 2011-04-01 Tom Tromey <tromey@redhat.com>
4300 * utils.c (report_command_stats): Don't print `-' for negative
4303 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4305 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4306 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4309 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4311 * breakpoint.h (bpdisp_text): Add declaration.
4312 * breakpoint.c (bpdisp_text): Make non-static.
4313 * ada-lang.c: #include "mi/mi-common.h".
4314 (print_it_exception): Rewrite to improve GDB/MI output.
4316 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4318 * arm-tdep.h (struct address_space): Add forward declaration.
4320 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4322 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4323 * arm-tdep.c (arm_override_mode): New global.
4324 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4325 execution mode heuristics.
4326 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4327 second single-step breakpoint if needed, using
4328 arm_insert_single_step_breakpoint.
4329 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4330 ARM execution mode, do not call thumb_get_next_pc_raw.
4331 (arm_get_next_pc): Encode execution mode in return value. Call
4332 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4333 (arm_insert_single_step_breakpoint): New function.
4334 (arm_software_single_step): Call it.
4335 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4336 argument to return execution mode of sigreturn target.
4337 (arm_linux_syscall_next_pc): Use it.
4338 (arm_linux_copy_svc): Update call.
4339 (arm_linux_software_single_step): Call
4340 arm_insert_single_step_breakpoint.
4342 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4344 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4347 2011-03-31 Tom Tromey <tromey@redhat.com>
4349 * varobj.c (update_dynamic_varobj_children): Properly handle
4350 errors from iterator.
4352 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4354 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4355 struct linkage name twice.
4357 2011-03-31 Tom Tromey <tromey@redhat.com>
4359 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4360 missing ">" to message.
4362 2011-03-31 Tom Tromey <tromey@redhat.com>
4364 * varobj.c (instantiate_pretty_printer): Remove duplicate
4367 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4369 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4370 if neither saved value nor register available (e.g. signal frame).
4372 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4374 * macroexp.c (expand): Avoid uninitialized variable
4377 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4379 * breakpoint.c (break_range_command): Fix typo in comment.
4381 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4382 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4384 Implement support for PowerPC BookE ranged breakpoints.
4385 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4386 * breakpoint.h (struct bp_target_info) <length>: New member
4388 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4389 instead of struct breakpoint as argument, and also add ASPACE
4390 and BP_ADDR arguments. Update all callers.
4391 (struct breakpoint_ops) <print_one_detail>: New method.
4392 (struct breakpoint) <addr_string_range_end>: New member variable.
4393 * breakpoint.c (breakpoint_location_address_match): Add function
4395 (insert_bp_location): Set bl->target_info.length.
4396 (breakpoint_here_p): Call breakpoint_location_address_match.
4397 (moribund_breakpoint_here_p): Likewise.
4398 (regular_breakpoint_inserted_here_p): Likewise.
4399 (breakpoint_thread_match): Likewise.
4400 (bpstat_stop_status): Likewise.
4401 (bpstat_check_location): Move call to
4402 breakpoint_ops.breakpoint_hit to the top.
4403 (print_one_breakpoint_location): Call
4404 breakpoint_ops.print_one_detail if available.
4405 (breakpoint_address_match_range): New function.
4406 (breakpoint_location_address_match): Likewise.
4407 (breakpoint_locations_match): Compare the length field of the
4409 (hw_breakpoint_used_count): Count resources used by all locations
4410 in a breakpoint, and use breakpoint_ops.resources_needed if
4412 (breakpoint_hit_ranged_breakpoint): New function.
4413 (resources_needed_ranged_breakpoint): Likewise.
4414 (print_it_ranged_breakpoint): Likewise.
4415 (print_one_ranged_breakpoint): Likewise.
4416 (print_one_detail_ranged_breakpoint): Likewise.
4417 (print_mention_ranged_breakpoint): Likewise.
4418 (print_recreate_ranged_breakpoint): Likewise.
4419 (ranged_breakpoint_ops): New structure.
4420 (find_breakpoint_range_end): New function.
4421 (break_range_command): Likewise.
4422 (delete_breakpoint): Free addr_string_range_end.
4423 (update_breakpoint_locations): Add SALS_END argument. Update
4424 all callers. Calculate breakpoint length if a non-zero SALS_END
4425 is given. Call breakpoint_locations_match instead of
4426 breakpoint_address_match.
4427 (reset_breakpoint): Find SaL of the end of the range if B is a
4429 (_initialize_breakpoint): Register break-range command.
4430 * defs.h (print_core_address): Add function prototype.
4431 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4433 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4434 (ppc_linux_remove_hw_breakpoint): Likewise.
4435 (_initialize_ppc_linux_nat): Initialize
4436 to_ranged_break_num_registers.
4437 * target.c (update_current_target): Add comment about
4438 to_ranged_break_num_registers.
4439 (target_ranged_break_num_registers): New function.
4440 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4442 (target_ranged_break_num_registers): Add function prototype.
4443 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4444 * utils.c (print_core_address): ... here.
4446 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4448 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4449 variable compiler warning.
4451 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4453 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4455 (re_set_breakpoint): ... to here ...
4456 (addr_string_to_sals): ... and here.
4458 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4460 * Makefile.in (SFILES): Add missing C sources.
4461 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4462 Add missing headers.
4464 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4466 * .gitignore: New file.
4468 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4470 * NEWS: Mention new cfi device simulation.
4472 2011-03-29 Tom Tromey <tromey@redhat.com>
4474 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4475 otherwise anonymous types.
4476 (dwarf2_name): Likewise.
4477 * valops.c (value_struct_elt_for_reference): Refine artificial
4478 type logic. Call error if j==-1.
4480 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4482 Fix false GCC warning.
4483 * infcall.c (find_function_addr): Initialize funaddr.
4485 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4487 Fix mingw compilation with --enable-targets=all.
4488 * remote-mips.c (gdb_usleep.h): Include header.
4489 (mips_enter_debug): Use gdb_usleep instead of sleep.
4491 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4493 Support resolution of STT_GNU_IFUNC via breakpoints.
4494 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4495 bp_gnu_ifunc_resolver_return.
4496 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4497 the loop. Support bp_gnu_ifunc_resolver and
4498 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4499 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4501 (bptype_string, print_one_breakpoint_location): Support
4502 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4503 (user_settable_breakpoint): Return true also for
4504 bp_gnu_ifunc_resolver.
4505 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4506 bp_gnu_ifunc_resolver_return.
4507 (set_breakpoint_location_function): New parameter explicit_loc,
4508 describe it. Call find_pc_partial_function_gnu_ifunc with new
4509 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4510 EXPLICIT_LOC is not set.
4511 (set_raw_breakpoint): Set EXPLICIT_LOC for
4512 set_breakpoint_location_function.
4513 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4514 set_breakpoint_location_function.
4515 (mention): Support bp_gnu_ifunc_resolver and
4516 bp_gnu_ifunc_resolver_return.
4517 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4518 set_breakpoint_location_function.
4519 (update_breakpoint_locations): Remove static.
4520 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4521 bp_gnu_ifunc_resolver_return.
4522 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4523 bp_gnu_ifunc_resolver_return.
4524 (update_breakpoint_locations): New declaration.
4525 * elfread.c: Include gdbthread.h and regcache.h.
4526 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4528 (elf_gnu_ifunc_fns): Install them.
4529 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4530 (stub_gnu_ifunc_resolver_return_stop): New functions.
4531 (stub_gnu_ifunc_fns): Install them.
4532 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4533 and gnu_ifunc_resolver_return_stop.
4534 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4536 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4538 STT_GNU_IFUNC reader implementation.
4539 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4540 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4541 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4542 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4543 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4544 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4545 (elf_gnu_ifunc_resolve_addr): New.
4546 (elf_symfile_read): Call elf_rel_plt_read.
4547 (elf_gnu_ifunc_fns): New.
4548 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4549 Install elf_gnu_ifunc_fns.
4550 * infcall.c (find_function_return_type): New function.
4551 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4552 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4553 (stub_gnu_ifunc_resolve_name): New functions.
4554 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4555 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4556 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4558 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4560 Code cleanup for later STT_GNU_IFUNC support.
4561 * infcall.c (find_function_addr): Remove variable code, use explicit
4562 dereferences for it. Move VALUE_TYPE initialization later.
4564 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4566 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4567 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4568 (clear_pc_function_cache): Clear it.
4569 (find_pc_partial_function): Rename to ...
4570 (find_pc_partial_function_gnu_ifunc): ... this function. New
4571 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4572 (find_pc_partial_function): New wrapper for this function.
4573 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4575 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4577 GDB internal type support for STT_GNU_IFUNC.
4578 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4579 (elf_symtab_read): Set mst_text_gnu_ifunc for
4580 BSF_GNU_INDIRECT_FUNCTION.
4581 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4582 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4583 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4584 nodebug_got_plt_symbol.
4585 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4586 (TYPE_GNU_IFUNC): New.
4587 (struct main_type): New field flag_gnu_ifunc.
4588 (struct builtin_type): New field builtin_func_func.
4589 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4590 nodebug_got_plt_symbol.
4591 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4592 (in_gnu_ifunc_stub): New.
4593 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4595 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4596 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4597 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4599 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4600 * symtab.c (search_symbols): Likewise.
4601 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4602 and mst_slot_got_plt.
4603 (in_gnu_ifunc_stub): New declaration.
4605 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4607 Support a ring of related breakpoints.
4608 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4609 other functions, add gdb_assert.
4610 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4611 watchpoint_del_at_next_stop.
4612 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4613 (bpstat_stop_status): Handle ring in related_breakpoint.
4614 (set_raw_breakpoint_without_location): Initialize ring in
4616 (delete_breakpoint): Handle ring in related_breakpoint, use
4617 watchpoint_del_at_next_stop.
4618 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4620 2011-03-28 Tom Tromey <tromey@redhat.com>
4623 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4624 with `language_minimal'.
4626 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4628 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4629 instead of checking for STT_ARM_TFUNC symbol type.
4631 2011-03-25 Tom Tromey <tromey@redhat.com>
4633 * linespec.c (symbol_found): Restore line-based result for
4634 non-LOC_LABEL symbols.
4636 2011-03-25 Kai Tietz <ktietz@redhat.com>
4638 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4639 instead of strcmp for comparison.
4640 (tui_source_is_displayed): Likewise.
4641 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4643 2011-03-24 Mark Wielaard <mjw@redhat.com>
4645 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4647 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4648 (find_partial_die_in_comp_unit): Likewise in comment.
4649 (read_attribute_value): Likewise.
4650 (lookup_die_type): Likewise.
4651 (dwarf_form_name): Likewise.
4652 (dump_die_shallow): Likewise.
4653 (follow_die_ref_or_sig): Likewise.
4655 2011-03-24 Tom Tromey <tromey@redhat.com>
4657 PR breakpoints/11816:
4658 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4659 (decode_compound): Update.
4660 (find_function_symbol): New function.
4661 (decode_dollar): Update.
4662 (decode_label): Add 'function_symbol' parameter. Handle
4663 function-relative labels.
4664 (decode_variable): Update.
4665 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4666 not its line. Set `special_display' and canonical name for
4669 2011-03-24 Tom Tromey <tromey@redhat.com>
4671 * linespec.h (struct linespec_result) <special_display>: New
4673 * breakpoint.h (struct breakpoint) <display_canonical>: New
4675 * breakpoint.c (print_breakpoint_location): Respect
4677 (create_breakpoint_sal): Add 'display_canonical' parameter.
4678 (create_breakpoints_sal): Update.
4679 (create_breakpoint): Update.
4681 2011-03-24 Tom Tromey <tromey@redhat.com>
4683 * symtab.c (decode_line_spec): Update.
4684 * linespec.c (build_canonical_line_spec): Change type of
4686 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4687 (find_method, decode_all_digits, decode_dollar, decode_label)
4688 (symbol_found): Likewise.
4689 (init_linespec_result): New function.
4690 * breakpoint.c (struct captured_parse_breakpoint_args)
4691 <canonical_p>: New field, replaces addr_string_p.
4692 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4694 (parse_breakpoint_sals): Likewise.
4695 (do_captured_parse_breakpoint): Update.
4696 (create_breakpoint): Use struct linespec_result.
4697 (until_break_command): Update.
4698 (breakpoint_re_set_one): Update.
4699 (decode_line_spec_1): Update.
4700 * linespec.h (struct linespec_result): New.
4701 (init_linespec_result): Declare.
4703 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4705 * regcache.c (regcache_raw_read): If the target didn't supply a
4706 given raw register, mark it as unavailable.
4708 2011-03-23 Kai Tietz <ktietz@redhat.com>
4710 * breakpoint.c (clear_command): Use filename_cmp
4711 instead of strcmp for comparison.
4712 * buildsym.c (watch_main_source_file_lossage): Likewise.
4713 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4714 checking just for slash.
4715 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4716 strrchr and filename_cmp instead of strcmp for filenames.
4717 (add_old_header_file): Use filename_cmp
4718 instead of strcmp for comparison.
4719 * exec.c (exec_set_section_address): Likewise.
4720 * macrotab.c (macro_lookup_inclusion): Likewise.
4721 (macro_lookup_inclusion): Likewise.
4722 * elfread.c (_initialize_elfread): Likewise.
4723 (elfstab_offset_sections): Likewise.
4724 (elfstab_offset_sections): Use lbasename instead of
4726 * mdebugread.c (parse_partial_symbols): Likewise.
4727 (arse_partial_symbols): Use filename_(n)cmp instead of
4728 str(n)cmp for comparison.
4729 * minsyms.c (lookup_minimal_symbol): Likewise.
4730 * psymtab.c (read_psymtabs_with_filename): Likewise.
4731 * solib.c (solib_read_symbols): Likewise.
4732 (reload_shared_libraries_1): Likewise.
4733 * symmisc.c (maintenance_print_symbols): Likewise.
4734 * symfile.c (separate_debug_file_exists): Likewise.
4735 (reread_symbols): Likewise.
4736 (find_separate_debug_file_by_debuglink): Likewise.
4737 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4738 * source.c (add_path): Likewise.
4739 * symtab.c (filename_seen): Likewise.
4740 (file_matches): Likewise.
4741 (print_symbol_info): Likewise.
4742 (maybe_add_partial_symtab_filename): Likewise.
4743 (make_source_files_completion_list): Likewise.
4744 * xml-syscall.c (init_sysinfo): Likewise.
4745 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4746 IS_DIR_SEPARATOR for checking for trailing path separator.
4748 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4750 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4751 label abort_expression.
4752 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4753 DWARF_VALUE_OPTIMIZED_OUT.
4755 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4758 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4759 to linkage_name. Invert its value. Update the function comment.
4760 (c_type_print_varspec_suffix): Invert it at the caller.
4761 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4763 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4765 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4766 errors when reading the `stop_pc'.
4767 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4770 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4772 * NEWS: Document gdb.Write stream keyword.
4774 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4777 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4778 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4779 (dwarf2_add_field): Fix new_field->accessibility for
4780 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4782 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4786 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4787 other error classes. Do not print stack trace.
4789 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4791 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4792 (dwarf2_add_field): Fix new_field->accessibility for
4793 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4795 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4797 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4798 encountering a load via a non-SP register.
4800 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4802 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4803 field in returned unwinder.
4805 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4807 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4809 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4811 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4814 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4816 * frame.c (frame_unwind_register): Throw an error if unwinding the
4818 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4819 an unwind stop reason.
4820 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4821 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4822 UNWIND_UNAVAILABLE>: New.
4823 * inline-frame.c (inline_frame_unwind): Install
4824 default_frame_unwind_stop_reason.
4825 * frame-unwind.c: Include "exceptions.h".
4826 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4827 (default_frame_unwind_stop_reason): New.
4828 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4829 (default_frame_unwind_stop_reason): Declare.
4830 (struct frame_unwind) <stop_reason>: New function pointer.
4832 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4833 * dwarf2-frame.c: Include exceptions.h.
4834 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4835 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4836 computing the CFA. If such an error was thrown, set
4837 unavailable_retaddr.
4838 (dwarf2_frame_unwind_stop_reason): New.
4839 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4841 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4842 (dwarf2_signal_frame_unwind): Ditto.
4844 * amd64-tdep.c: Include "exceptions.h".
4845 (struct amd64_frame_cache): New field "base_p".
4846 (amd64_init_frame_cache): Clear it.
4847 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4848 Avoid reading registers with functions that throw if the register
4849 is not necessary to compute the frame base.
4850 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4851 swallowing NOT_AVAILABLE_ERROR.
4852 (amd64_frame_unwind_stop_reason): New.
4853 (amd64_frame_this_id): Don't build a frame id if the frame base
4855 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4856 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4857 base_p if the frame base was computable.
4858 (amd64_sigtramp_frame_unwind_stop_reason): New.
4859 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4860 frame base was unavailable.
4861 (amd64_sigtramp_frame_unwind): Install
4862 amd64_sigtramp_frame_unwind_stop_reason.
4863 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4864 base_p if the frame base was computable.
4865 (amd64_epilogue_frame_unwind_stop_reason): New.
4866 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4867 frame base was unavailable.
4868 (amd64_epilogue_frame_unwind): Install
4869 amd64_epilogue_frame_unwind_stop_reason.
4870 * i386-tdep.c: Include "exceptions.h".
4871 (struct i386_frame_cache): New field "base_p".
4872 (i386_init_frame_cache): Clear it.
4873 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
4874 Avoid reading registers with functions that throw if the register
4875 is not necessary to compute the frame base.
4876 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4877 swallowing NOT_AVAILABLE_ERROR.
4878 (i386_frame_unwind_stop_reason): New.
4879 (i386_frame_this_id): Don't build a frame id if the frame base was
4881 (i386_frame_prev_register): Handle unavailable SP.
4882 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
4883 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4884 base_p if the frame base was computable.
4885 (i386_epilogue_frame_unwind_stop_reason): New.
4886 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
4887 base was unavailable.
4888 (i386_epilogue_frame_unwind): Install
4889 i386_epilogue_frame_unwind_stop_reason.
4890 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4891 base_p if the frame base was computable.
4892 (i386_sigtramp_frame_unwind_stop_reason): New.
4893 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
4894 base was unavailable.
4895 (i386_sigtramp_frame_unwind): Install
4896 i386_sigtramp_frame_unwind_stop_reason.
4897 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
4898 type's size, not the register's.
4899 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
4901 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
4902 default_frame_unwind_stop_reason.
4903 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
4904 (alpha_heuristic_frame_unwind): Ditto.
4905 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
4906 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
4907 * avr-tdep.c (avr_frame_unwind): Ditto.
4908 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
4910 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
4911 * frv-tdep.c (frv_frame_unwind): Ditto.
4912 * h8300-tdep.c (h8300_frame_unwind): Ditto.
4913 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
4914 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
4915 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
4916 (hppa_stub_frame_unwind): Ditto.
4917 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
4918 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
4919 (ia64_libunwind_frame_unwind)
4920 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
4921 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
4922 * lm32-tdep.c (lm32_frame_unwind): Ditto.
4923 * m32c-tdep.c (m32c_unwind): Ditto.
4924 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
4925 * m32r-tdep.c (m32r_frame_unwind): Ditto.
4926 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
4927 * m68k-tdep.c (m68k_frame_unwind): Ditto.
4928 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
4929 * m88k-tdep.c (m88k_frame_unwind): Ditto.
4930 * mep-tdep.c (mep_frame_unwind): Ditto.
4931 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
4932 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
4933 (mips_stub_frame_unwind): Ditto.
4934 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
4935 * moxie-tdep.c (moxie_frame_unwind): Ditto.
4936 * mt-tdep.c (mt_frame_unwind): Ditto.
4937 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
4938 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
4939 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
4940 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
4941 (s390_sigtramp_frame_unwind): Ditto.
4942 * score-tdep.c (score_prologue_unwind): Ditto.
4943 * sh-tdep.c (sh_frame_unwind): Ditto.
4944 * sh64-tdep.c (sh64_frame_unwind): Ditto.
4945 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
4946 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
4947 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
4948 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
4949 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
4950 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
4951 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
4952 (sparc64obsd_trapframe_unwind): Ditto.
4953 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
4954 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
4955 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
4956 * v850-tdep.c (v850_frame_unwind): Ditto.
4957 * vax-tdep.c (vax_frame_unwind): Ditto.
4958 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
4959 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
4960 * xtensa-tdep.c (xtensa_unwind): Ditto.
4962 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4964 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
4965 there's always a frame. Use get_frame_pc_if_available instead of
4966 get_frame_pc, and if there's no PC available, don't look up a
4969 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4971 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
4974 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4976 * tracepoint.c (set_traceframe_context): Handle unavailable PC
4979 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4981 * frame.h (frame_unwind_caller_pc_if_available): Declare.
4982 * frame.c (frame_unwind_caller_pc_if_available): New.
4983 * stack.c (frame_info): Handle unavailable PC.
4985 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4987 * frame.c (frame_unwind_pc): Rename to ...
4988 (frame_unwind_pc_if_available): ... this. New `pc' output
4989 parameter. Change return type to int. Gracefully handle
4990 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
4991 happened, or 1 otherwise.
4992 (frame_unwind_pc): Reimplement on top of
4993 frame_unwind_pc_if_available.
4994 (get_frame_func): Rename to ...
4995 (get_frame_func_if_available): New `pc' output parameter. Change
4996 return type to int. Gracefully handle the PC not being available.
4997 (get_frame_func): Reimplement on top of
4998 get_frame_func_if_available.
4999 (select_frame): Handle the PC being unavailable.
5000 (get_prev_frame): Handle the PC being unavailable.
5001 (get_frame_pc_if_available): New.
5002 (get_frame_address_in_block_if_available): New.
5003 (find_frame_sal): Handle the frame PC not being available.
5004 * frame.h (get_frame_pc_if_available): Declare.
5005 (get_frame_address_in_block_if_available): Declare.
5006 (get_frame_func_if_available): Declare.
5007 * stack.c (print_frame_info): Handle the PC being unavailable.
5008 (find_frame_funname): Ditto.
5009 (print_frame): Handle the PC being unavailable.
5010 (get_frame_language): Ditto.
5011 * blockframe.c (get_frame_block): Ditto.
5012 * macroscope.c (default_macro_scope): Ditto.
5013 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5015 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5017 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5018 NOT_AVAILABLE_ERROR when evaluating the location expression.
5020 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5022 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5023 returning that the register piece is unavailable/optimized out.
5024 (write_pieced_value): Handle get_frame_register_bytes returning
5025 that the register piece is unavailable/optimized out when doing a
5026 read-modify write of a bitfield.
5027 * findvar.c (value_from_register): Handle get_frame_register_bytes
5028 returning that the register piece is unavailable/optimized out.
5029 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5030 and `unavailablep'. Throw error on bad debug info. Use
5031 frame_register instead of frame_register_read, to fill in the new
5033 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5035 * valops.c: (value_assign): Adjust, and handle
5036 get_frame_register_bytes failing.
5037 * spu-tdep.c: Include exceptions.h.
5038 (spu_software_single_step): Adjust, and handle
5039 get_frame_register_bytes failing.
5040 (spu_get_longjmp_target): Ditto.
5041 * gdbarch.sh (register_to_value): Change to return int. New
5042 parameters `optimizedp' and `unavailablep'.
5043 * gdbarch.h, gdbarch.c: Regenerate.
5044 * i386-tdep.c (i386_register_to_value): Adjust to new
5045 gdbarch_register_to_value interface.
5046 * i387-tdep.c (i387_register_to_value): Ditto.
5047 * i387-tdep.h (i387_register_to_value): Ditto.
5048 * alpha-tdep.c (alpha_register_to_value): Ditto.
5049 * ia64-tdep.c (ia64_register_to_value): Ditto.
5050 * m68k-tdep.c (m68k_register_to_value): Ditto.
5051 * mips-tdep.c (mips_register_to_value): Ditto.
5052 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5054 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5056 * findvar.c (value_of_register): Mark the value as unavailable, if
5057 the register is unavailable.
5058 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5059 (frame_register): New `unavailablep' parameter.
5060 (frame_register_read): Update comment.
5061 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5062 Set it if the register is unavailable. If the register is
5063 unavailable, clear the output buffer.
5064 (frame_register): New `unavailablep' parameter. Pass it down.
5065 (frame_unwind_register): Adjust.
5066 (put_frame_register): Adjust.
5067 (frame_register_read): Adjust. Also return false if the register
5069 (frame_register_unwind_location): Adjust.
5070 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5071 is unavailable, mark the value accordingly.
5072 * stack.c (frame_info): Handle unavailable registers.
5074 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5076 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5077 simplify, using regcache_cooked_read.
5079 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5081 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5082 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5083 (regcache_raw_read_unsigned, regcache_raw_read_part)
5084 (regcache_cooked_read, regcache_cooked_read_signed)
5085 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5086 (regcache_cooked_read_ftype): Change return to enum
5088 * regcache.c: Include exceptions.h
5089 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5090 (do_cooked_read): Change return to enum register_status. Always
5091 forward to regcache_cooked_read.
5092 (regcache_raw_read): Change return to enum register_status. If
5093 the register is not REG_VALID, memset the buffer. Return the
5095 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5096 return the register's status.
5097 (regcache_raw_read_unsigned): Ditto.
5098 (regcache_cooked_read): Change return to enum register_status.
5099 Assert that with read-only regcaches, the register's status must
5100 be known. If the regcache is read-only, and the register is not
5101 REG_VALID, memset the buffer. Return the register's status.
5102 (regcache_cooked_read_signed): Change return to enum
5103 register_status. Handle non-REG_VALID registers and return the
5105 (regcache_cooked_read_unsigned): Change return to enum
5106 register_status. Handle non-REG_VALID registers and return the
5108 (regcache_xfer_part, regcache_raw_read_part)
5109 (regcache_cooked_read_part): Change return to enum
5110 register_status. Return the register's status.
5111 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5113 (regcache_dump): Handle unavailable cooked registers.
5114 * frame.c (do_frame_register_read): Adjust interface to match
5115 regcache_cooked_read_ftype.
5116 * gdbarch.sh (pseudo_register_read): Change return to enum
5118 * gdbarch.h, gdbarch.c: Regenerate.
5120 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5122 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5123 register_status. If reading a raw register indicates the raw
5124 register is not valid, return the raw register's status,
5125 otherwise, return REG_VALID.
5126 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5127 register_status. Handle non-REG_VALID raw registers and return
5128 the register's status.
5129 * arm-tdep.c (arm_neon_quad_read)
5130 (arm_pseudo_read): Change return to enum register_status. Handle
5131 non-REG_VALID raw registers and return the register's status.
5132 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5133 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5134 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5135 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5136 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5138 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5139 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5140 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5141 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5142 (m32c_pseudo_register_read): Change return to enum
5143 register_status. Adjust.
5144 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5145 enum register_status. Return the register's status.
5146 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5147 register_status. Return the register's status.
5148 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5149 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5150 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5151 * rs6000-tdep.c (move_ev_register_func): New typedef.
5152 (e500_move_ev_register): Use it. Change return to enum
5153 register_status. Return the register's status.
5154 (do_regcache_raw_read): New function.
5155 (do_regcache_raw_write): New function.
5156 (e500_pseudo_register_read): Change return to enum
5157 register_status. Return the register's status. Use
5158 do_regcache_raw_read.
5159 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5160 (dfp_pseudo_register_read): Change return to enum register_status.
5161 Return the register's status.
5162 (vsx_pseudo_register_read): Ditto.
5163 (efpr_pseudo_register_read): Ditto.
5164 (rs6000_pseudo_register_read): Ditto.
5165 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5166 register_status. Return the register's status.
5167 * sh64-tdep.c (pseudo_register_read_portions): New function.
5168 (sh64_pseudo_register_read): Change return to enum
5169 register_status. Use pseudo_register_read_portions. Return the
5171 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5172 register_status. Return the register's status.
5173 * sh-tdep.c (pseudo_register_read_portions): New function.
5174 (sh_pseudo_register_read): Change return to enum register_status.
5175 Use pseudo_register_read_portions. Return the register's status.
5176 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5177 enum register_status. Return the register's status.
5178 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5179 * spu-tdep.c (spu_pseudo_register_read_spu)
5180 (spu_pseudo_register_read): Ditto.
5181 * xtensa-tdep.c (xtensa_register_read_masked)
5182 (xtensa_pseudo_register_read): Ditto.
5183 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5185 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5187 * python/py-value.c (valpy_getitem): Fix formatting of error function
5190 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5192 ARI fixes: Add missing internationalization markups throughout
5194 * darwin-nat-info.c: Ditto.
5197 * mi/mi-main.c: Ditto.
5199 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5201 ARI fixes: Add missing internationalization markups throughout
5204 * cp-name-parser.y: Ditto.
5207 * objc-exp.y: Ditto.
5210 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5212 ARI fixes: Messages should have no trailing new lines.
5213 * darwin-nat.c (mach_check_error): Remove trailing new line from
5214 warning function call message.
5215 * record.c (bfdcore_read): Idem for error call.
5217 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5219 * common/signals.c (target_signal_from_host): Add _ markup to error
5220 function call message.
5221 (target_signal_to_host): Add _ markup and remove trailing new line
5222 from warning call message.
5223 (target_signal_from_command): Add _ markup to error function call
5226 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5230 * python/python.c (gdbpy_write): Accept a stream argument and
5231 operate to the appropriate stream.
5232 (gdbpy_flush): Likewise.
5233 (_initialize_python): Add stream constants.
5234 (finish_python_initialization): Add GdbOutputErrorFile class.
5236 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5238 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5240 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5242 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5243 to store_signed_integer. Add debug message when relocating CALL
5244 instructions. Fix formatting of debug message.
5245 * i386-tdep.c (i386_relocate_instruction): Ditto.
5247 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5249 * target.h (struct target_ops): Remove to_lookup_symbol field.
5250 (target_lookup_symbol): Delete macro.
5251 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5252 (update_current_target, setup_target_debug): Remove handling
5253 of to_lookup_symbol target_ops field.
5254 * ada-tasks.c (get_known_tasks_addr): Remove use of
5255 target_lookup_symbol.
5256 * coffread.c (coff_symtab_read): Likewise.
5257 * dbxread.c (read_dbx_symtab): Ditto.
5259 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5262 * configure.ac: Add getthrds declaration check.
5263 * configure, config.in: Regenerate.
5264 * aix-thread.c (getthrds): Declare only if not already declared
5265 in procinfo.h. More declaration out of get_signaled_thread to
5268 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5270 * python/py-symtab.c: Populate symtab_object_methods,
5272 (stpy_is_valid): New function.
5273 (salpy_is_valid): Ditto.
5274 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5275 (sympy_is_valid): New function.
5276 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5277 (objfpy_is_valid): New function.
5278 * python/py-inferior.c: Populate inferior_object_methods.
5279 (infpy_is_valid): New function.
5280 * python/py-infthread.c: Populate thread_object_methods.
5281 (thpy_is_valid): New function.
5282 * python/py-block.c: Declare block_object_methods. Populate. Declare
5283 block_iterator_object_methods. Populate.
5284 (blpy_is_valid): New function.
5285 (blpy_iter_is_valid): Ditto.
5287 2011-03-16 Keith Seitz <keiths@redhat.com>
5289 * linespec.c (find_methods): Canonicalize NAME before looking
5291 (name_end): New function.
5292 (keep_name_info): New function.
5293 (decode_line_1): Use keep_name_info.
5294 (decode_compound): Likewise.
5295 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5296 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5299 * linespec.c (locate_first_half): Keep overload information, too.
5300 (decode_compound): Use a string to represent break characters
5302 If P points to a break character, do not increment it.
5303 For C++ and Java, keep overload information and relevant keywords.
5304 If we cannot find a symbol, search the minimal symbols.
5307 * linespec.c (decode_compound): Rename SAVED_ARG to
5309 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5311 Pass a valid block to lookup_symbol.
5312 (lookup_prefix_sym): Likewise.
5313 (find_method): Construct search name based on SYM_CLASS instead
5315 * psymtab.c (lookup_partial_symbol): Add language parameter.
5316 (lookup_symbol_aux_psymtabs): Likewise.
5317 Don't assume that the psymtab we found was the right one. Search
5318 for the desired symbol in the symtab to be certain.
5319 (psymtab_search_name): New function.
5320 (lookup_partial_symbol): Use psymtab_search_name.
5321 Add language parameter.
5322 (read_symtabs_for_function): Add language parameter and pass to
5323 lookup_partial_symbol.
5324 (find_symbol_file_from_partial): Likewise.
5326 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5329 * dwarf2read.c (noop_record_line): New function.
5330 (dwarf_decode_lines): Ignore line tables for GCd functions.
5332 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5334 Fix ARI warnings about new lines at the end of messages, which
5335 are unneeded as there is a new line added at the end of the message
5337 * darwin-nat.c (darwin_stop_inferior): Ditto.
5338 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5339 * dfp.c (decimal_to_number): Ditto.
5340 * exec.c (print_section_info): Ditto.
5341 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5342 * osdata.c (get_osdata): Ditto.
5343 * record.c (bfdcore_write): Ditto.
5344 * remote-mips.c (mips_readchar): Ditto.
5345 * remote.c (read_ptid): Ditto.
5346 * ser-mingw.c (ser_windows_raw): Ditto.
5347 * tracepoint.c (add_local_symbols): Ditto.
5348 * windows-nat.c (fake_create_process): Ditto.
5350 2011-03-16 Tom Tromey <tromey@redhat.com>
5352 * tracepoint.c (stop_tracing): Don't declare.
5353 * event-top.c (after_char_processing_hook): Add `(void)'.
5355 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5357 * NEWS: Add Parameter sub-classing description.
5359 2011-03-16 Kai Tietz <ktietz@redhat.com>
5361 * MAINTAINERS: Update my e-mail address.
5363 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5365 * MAINTAINERS: Add myself for write after approval privileges.
5367 2011-03-15 Michael Snyder <msnyder@vmware.com>
5369 * frame.c (find_frame_sal): Assert sym is not null.
5371 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5373 * objc-lang.c (selectors_info): Check strchr for null result.
5375 * stabsread.c (define_symbol): Guard against bad stabstring input.
5377 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5379 Remove trailing spaces and tabulations from pascal language
5384 p-valprint.c: Ditto.
5386 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5388 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5389 than LOW. Comment it.
5390 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5391 HIGHPC not strictly higher than LOWPC.
5393 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5395 Fix formatting of function declarations returning a pointer in
5397 * varobj.c (varobj_add_child): Ditto.
5398 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5399 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5401 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5403 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5404 for the "generic" vector ABI used with GCC 4.3 and later.
5405 (ppc64_sysv_abi_return_value): Likewise.
5407 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5409 * infcall.c (call_function_by_hand): Function return value is
5410 always a non_lval, even when using struct_return.
5412 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5414 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5415 (map_display_numbers): New.
5416 (do_delete_display): New.
5417 (undisplay_command): Use map_display_numbers.
5418 (do_enable_disable_display): New.
5419 (enable_disable_display_command): New function.
5420 (enable_display): Delete.
5421 (enable_display_command): New.
5422 (disable_display_command): Reimplement.
5423 (_initialize_printcmd): Adjust "enable display" command to use
5424 `enable_display_command' as callback.
5426 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5428 * NEWS: Add Python breakpoint 'stop' operation.
5430 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5432 * NEWS: Delete duplicate entry. Fix typo.
5434 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5436 Fix ARI warning about function names in first column.
5437 Put prototype declaration on same line as return type.
5438 * objc-exp.y: Ditto.
5440 * python/py-stopevent.h: Ditto.
5441 For long function names, split parameters to
5442 allow function name on same line as return type.
5443 * solib-pa64.c: Ditto.
5446 For long function declaration, use single line.
5447 * hppa-tdep.h: Ditto.
5448 * inferior.h: Ditto.
5450 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5452 * python/python.h: Declare gdbpy_should_stop and
5453 gdbpy_breakpoint_has_py_cond.
5454 * python/python.c: Add python.h to includes. Remove python.h from
5455 HAVE_PYTHON definition
5456 (gdbpy_should_stop): New dummy function.
5457 (gdbpy_breakpoint_has_py_cond): New dummy function.
5458 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5459 sub-classing capabilities.
5460 (gdbpy_should_stop): New function.
5461 (gdbpy_breakpoint_has_py_cond): New function.
5462 (local_setattro): New function.
5463 * breakpoint.c (condition_command): Add check for Python 'stop'
5465 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5466 operation function as part of stop/continue tests.
5468 2011-03-14 Tom Tromey <tromey@redhat.com>
5471 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5472 (needs_frame_dwarf_call): Likewise.
5474 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5476 Fix ARI warning about functions without parameters that do not
5478 * breakpoint.c (all_tracepoints): Replace () by (void).
5479 * f-exp.y (match_string_literal): Ditto.
5481 * m2-exp.y (yylex): Ditto.
5482 * mep-tdep.c (current_me_module): Ditto.
5483 (current_options): Ditto.
5484 (current_cop_data_bus_width): Ditto.
5485 (current_cr_names): Ditto.
5486 (current_cr_is_float): Ditto.
5487 (current_ccr_names): Ditto.
5488 * objc-exp.y (yylex): Ditto.
5489 * p-exp.y (yylex): Ditto.
5490 * remote.c (send_interrupt_sequence): Ditto.
5491 * tracepoint.c (current_trace_status): Ditto.
5492 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5493 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5495 2011-03-11 Michael Snyder <msnyder@vmware.com>
5497 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5498 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5499 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5500 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5501 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5503 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5504 (delete_async_event_handler): Ditto.
5506 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5508 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5510 * top.c (set_verbose): Assert showcmd was found.
5512 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5514 * xtensa-tdep.c (warning_once): Correct style issues.
5516 2011-03-11 Yao Qi <yao@codesourcery.com>
5518 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5520 2011-03-11 Andreas Schwab <schwab@redhat.com>
5522 * common/aclocal.m4: Remove.
5524 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5526 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5527 (xtensa_write_register, xtensa_read_register): Likewise.
5528 (xtensa_hextochar): Removed.
5529 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5531 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5533 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5534 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5535 (xtensa_alloc_frame_cache): Add initialization for new fields.
5536 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5537 (warning_once): New function.
5538 (xtensa_insn_kind): New item c0opc_and.
5539 (call0_classify_opcode): Add the case for AND instruction.
5540 (call0_track_op): Change arguments. New local variable litbase.
5541 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5542 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5544 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5545 (call0_analyze_prologue): Update the comments. Change arguments.
5546 Add the variety of updates to handle extended prologues, which now can
5547 conduct dynamic stack adjustments.
5548 (call0_frame_cache): Likewise.
5549 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5550 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5552 2011-03-10 Michael Snyder <msnyder@vmware.com>
5554 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5555 (cmd_qtframe): Ditto.
5556 (cmd_qtbuffer): Ditto.
5557 (cmd_bigqtbuffer): Ditto.
5559 2011-03-10 Tom Tromey <tromey@redhat.com>
5561 * tracepoint.c (trace_actions_command): Update.
5562 * thread.c (thread_apply_command): Update.
5563 * reverse.c (delete_bookmark_command): Update.
5564 (bookmarks_info): Update.
5565 * printcmd.c (undisplay_command): Update.
5566 * memattr.c (mem_enable_command): Update.
5567 (mem_disable_command): Update.
5568 (mem_delete_command): Update.
5569 * inferior.c (detach_inferior_command): Update.
5570 (kill_inferior_command): Update.
5571 (remove_inferior_command): Update.
5572 * cli/cli-utils.h (struct get_number_or_range_state): New.
5573 (init_number_or_range): Declare.
5574 (get_number_or_range): Update.
5575 * cli/cli-utils.c (init_number_or_range): New function.
5576 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5578 (number_is_in_list): Update.
5579 * breakpoint.h (get_tracepoint_by_number): Update.
5580 * breakpoint.c (map_breakpoint_numbers): Update for change to
5581 get_number_or_range.
5582 (find_location_by_number): Use get_number, not
5583 get_number_or_range.
5584 (trace_pass_set_count): New function.
5585 (trace_pass_command): Update for change to get_number_or_range.
5587 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5590 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5592 * python/py-param.c (add_setshow_generic): Add set/show callback
5593 parameters. Register Python object context.
5594 (get_show_value): New function.
5595 (get_set_value): New function.
5596 (call_doc_function): New function.
5597 (get_doc_string): Move behind get_show_value/get_set_value.
5599 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5601 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5603 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5605 * xtensa-tdep.c (xtensa_read_register): Add comment.
5606 (xtensa_write_register): Likewise.
5607 (xtensa_hextochar): Add comment and update to match coding conventions.
5608 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5609 (execute_l32e, execute_s32e, execute_code): Update comments.
5610 (xtensa_exception_handler_t): Update to match coding conventions.
5611 (xtensa_insn_kind): Likewise.
5613 2011-03-09 Michael Snyder <msnyder@vmware.com>
5615 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5617 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5619 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5621 2011-03-09 Tom Tromey <tromey@redhat.com>
5623 * thread.c (restore_selected_frame): Handle frame_level == -1.
5624 (make_cleanup_restore_current_thread): Use
5625 get_selected_frame_if_set.
5626 * frame.h (get_selected_frame_if_set): Declare.
5627 * frame.c (get_selected_frame_if_set): New function.
5629 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5631 * cli/cli-cmds.c (shell_escape): Use lbasename.
5632 * coffread.c (coff_start_symtab): Constify parameter.
5633 (complete_symtab): Constify `name' parameter.
5634 (coff_symtab_read): Constify `filestring' local.
5635 (coff_getfilename): Constify return and `result' local.
5637 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5638 * linux-fork.c (info_checkpoints_command): Use lbasename.
5639 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5640 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5641 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5642 * procfs.c (procfs_make_note_section): Use lbasename.
5643 * tui/tui-io.c (printable_part): Constity return and parameter.
5645 (print_filename): Constify parameters, and local `s'.
5646 (tui_rl_display_match_list): Constify local `temp'.
5648 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5651 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5652 Fix DWARF-3+ DW_AT_accessibility default assumption.
5653 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5654 cu->header.version >= 3.
5656 2011-03-09 Yao Qi <yao@codesourcery.com>
5658 * common/Makefile.in: Remove.
5659 * common/configure: Remove.
5660 * common/configure.ac: Remove.
5662 2011-03-09 Yao Qi <yao@codesourcery.com>
5665 2011-02-11 Yao Qi <yao@codesourcery.com>
5667 * common/Makefile.in: Add copyright header.
5669 2011-02-11 Yao Qi <yao@codesourcery.com>
5671 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5673 * configure.ac: Add common to sub dir.
5674 * configure: Regenerate.
5676 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5678 * xtensa-tdep.c (call0_ret): New function.
5679 (xtensa_skip_prologue): Speed up analysis.
5681 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5683 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5684 while executing MI command -data-list-changed-registers.
5686 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5688 * xtensa-tdep.c (xtensa_read_register): New function.
5689 (xtensa_write_register): New function.
5690 (xtensa_find_register_by_name): New function.
5691 (xtensa_windowed_frame_cache): Update comments in type description.
5692 (xtensa_frame_cache): Likewise.
5693 (xtensa_window_interrupt_insn): New function.
5694 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5695 (xtensa_insn_kind): Add new instructions.
5696 (rwx_special_register): New function.
5697 (call0_classify_opcode): Add new instructions to the analysis.
5698 (a0_saved, a7_saved, a11_saved): New variables.
5699 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5700 (execute_l32e): New function.
5701 (execute_s32e): New function.
5702 (xtensa_exception_handler_t): New type.
5703 (execute_code): New function.
5704 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5705 analysis for Xtensa Window Exception handlers.
5707 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5709 * xtensa-tdep.c (TX_PS): New.
5710 (windowing_enabled): Update to count for Call0 ABI.
5711 (xtensa_hextochar): New.
5712 (xtensa_init_reggroups): Make algorithm generic.
5713 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5715 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5717 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5719 2011-03-08 Michael Snyder <msnyder@vmware.com>
5721 * i386-tdep.c (i386_follow_jump): Check return value of
5723 (i386_analyze_struct_return): Ditto.
5724 (i386_skip_probe): Ditto.
5725 (i386_match_insn): Ditto.
5726 (i386_skip_noop): Ditto.
5727 (i386_analyze_frame_setup): Ditto.
5728 (i386_analyze_register_saves): Ditto.
5729 (i386_skip_prologue): Ditto.
5730 (i386_skip_main_prologue): Ditto.
5732 * target.c (read_whatever_is_readable): Fix memory leak.
5734 * i386-tdep.c (i386_process_record): Document fall through.
5736 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5738 Fix DWARF-3+ DW_AT_accessibility default assumption.
5739 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5740 cu->header.version >= 3.
5742 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5744 * remote.c (remote_check_symbols): Skip if the target has no
5747 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5749 * target.c (read_whatever_is_readable): Reformat comment,
5750 with a minor typo fix. Minor reformatting of the code.
5752 2011-03-08 Yao Qi <yao@codesourcery.com>
5754 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5755 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5756 Use cached result instead of calling displaced_in_arm_mode again.
5757 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5758 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5759 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5760 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5761 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5762 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5763 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5764 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5765 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5766 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5767 (arm_catch_kernel_helper_return): Likewise.
5768 * gdb/arm-tdep.h : Update function declarations.
5770 2011-03-07 Michael Snyder <msnyder@vmware.com>
5772 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5774 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5776 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5778 * elfread.c (elf_symtab_read): Stop memory leak.
5780 * main.c (captured_main): Fix memory leak.
5782 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5784 * ada-lang.c (compare_names): Call is_name_suffix with string1
5787 2011-03-07 Tom Tromey <tromey@redhat.com>
5789 * xcoffread.c (xcoff_sym_fns): Update.
5790 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5791 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5792 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5793 (symbol_file_add_with_addrs_or_offsets): Likewise.
5794 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5795 * somread.c (som_sym_fns): Update.
5796 * psymtab.h (require_partial_symbols): Declare.
5797 * psymtab.c (require_partial_symbols): New function.
5798 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5799 (ALL_OBJFILE_PSYMTABS): Undef.
5800 (ALL_PSYMTABS): Move from psympriv.h.
5801 (lookup_partial_symtab, find_pc_sect_psymtab)
5802 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5803 (find_last_source_symtab_from_partial)
5804 (forget_cached_source_info_partial)
5805 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5806 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5807 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5808 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5809 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5810 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5811 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5812 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5813 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5815 * mipsread.c (ecoff_sym_fns): Update.
5816 * machoread.c (macho_sym_fns): Update.
5817 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5818 (read_psyms): New function.
5819 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5820 (elf_sym_fns_lazy_psyms): New global.
5821 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5822 dwarf2_build_psymtabs.
5823 * dbxread.c (aout_sym_fns): Update.
5824 * coffread.c (coff_sym_fns): Update.
5826 2011-03-07 Tom Tromey <tromey@redhat.com>
5828 * infrun.c (print_exited_reason): Include inferior id and pid in
5831 2011-03-07 Tom Tromey <tromey@redhat.com>
5833 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5835 (target_has_execution_1): Update.
5836 (target_has_execution_current): Declare.
5837 (target_has_execution): Call target_has_execution_current.
5838 (default_child_has_execution): Update.
5839 * target.c (default_child_has_execution): Add 'the_ptid'
5841 (target_has_execution_1): Likewise.
5842 (target_has_execution_current): New function.
5843 (add_target): Update.
5844 (init_dummy_target): Update.
5845 * remote-m32r-sdi.c (m32r_has_execution): New function.
5846 (init_m32r_ops): Use it.
5847 * record.c (record_core_has_execution): Now static. Add
5848 'the_ptid' parameter.
5849 * inferior.c (have_live_inferiors): Don't save current thread.
5850 Use target_has_execution_1.
5852 2011-03-07 Yao Qi <yao@codesourcery.com>
5854 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5856 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5858 * elfread.c (elf_symtab_read): Minor reformatting.
5860 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5862 * objc-lang.c (selectors_info): Minor reformatting.
5864 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5866 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5868 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5869 Michael Snyder <msnyder@vmware.com>
5871 * ada-valprint.c (ada_val_print_array): Move the declaration of
5872 "byte_order" and "elttype" inside the block where these variables
5873 are actually used. Remove some special handling for the case
5874 where "elttype" and "eltlen" are null. Replace by a comment
5875 and a couple of assertion checks.
5877 2011-03-05 Michael Snyder <msnyder@vmware.com>
5879 * source.c (add_path): Replace semicolon at end of block.
5880 * dwarf2expr.c (execute_stack_op): Ditto.
5882 2011-03-05 Mike Frysinger <vapier@gentoo.org>
5884 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
5885 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
5886 (bfin-*-*): Likewise.
5888 2011-03-05 Michael Snyder <msnyder@vmware.com>
5890 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
5891 * mdebugread.c (parse_symbol): Ditto.
5892 * parse.c (parse_exp_in_context): Ditto.
5893 * source.c (add_path): Ditto.
5894 * utils.c (gnu_debuglink_crc32): Ditto.
5895 * varobj.c (variable_language): Ditto.
5897 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
5899 2011-03-04 Michael Snyder <msnyder@vmware.com>
5901 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
5903 * symfile.c (simple_overlay_update): Check for null return value
5904 from lookup_minimal_symbol.
5906 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
5908 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5910 * eval.c (parse_and_eval_address_1): Remove function.
5911 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
5912 instead of parse_and_eval_address_1.
5913 * value.h (parse_and_eval_address_1): Remove prototype.
5915 2011-03-04 Michael Snyder <msnyder@vmware.com>
5917 * remote.c (putpkt_binary): Document that case stmt falls through.
5919 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5921 * breakpointc (print_it_typical): Move NULL check from here...
5922 (print_bp_stop_message): ... to here.
5924 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
5926 * breakpoint.c (enable_command): Use break instead of continue,
5927 and fill in a missing break.
5928 (disable_command): Ditto.
5930 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5932 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
5933 (terminal_save_ours): Remove misleading comment.
5934 (inflow_inferior_data_cleanup): Free ttystate.
5935 (inflow_inferior_exit): Likewise.
5936 (copy_terminal_info): Copy ttystate.
5938 * serial.c (serial_copy_tty_state): New function.
5939 * serial.h (serial_copy_tty_state): Add prototype.
5940 (struct serial_ops): Add copy_tty_state callback.
5941 * ser-base.c (ser_base_copy_tty_state): New function.
5942 * ser-base.h (ser_base_copy_tty_state): Add prototype.
5943 * ser-go32.c (dos_copy_tty_state): New function.
5944 (dos_ops): Install copy_tty_state callback.
5945 * ser-mingw.c (_initialize_ser_windows): Likewise.
5946 * ser-pipe.c (_initialize_ser_pipe): Likewise.
5947 * ser-unix.c (hardwire_copy_tty_state): New function.
5948 (_initialize_ser_hardwire): Install it.
5950 2011-03-04 Michael Snyder <msnyder@vmware.com>
5952 * breakpoint.c (create_breakpoint): Add missing break statement.
5954 Reverting this patch:
5955 * infcall.c (call_function_by_hand): Add break statements for lint.
5957 Reverting this patch:
5958 * cli/cli-script.c (script_from_file): Add break for lint.
5960 2011-03-04 Michael Snyder <msnyder@vmware.com>
5962 * solib.c (reload_shared_libraries_1): Close memory leak.
5964 2011-03-03 Tom Tromey <tromey@redhat.com>
5967 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
5970 2011-03-03 Michael Snyder <msnyder@vmware.com>
5972 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
5973 fields of struct 'st' to zero.
5975 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
5976 sal.pspace before calling set_current_source_symtab_and_line.
5978 2011-03-03 Yao Qi <yao@codesourcery.com>
5980 * Makefile.in (configure-common): Remove. Let Makefile
5981 in dir common to rebuild itself.
5982 (common/Makefile): Likewise.
5984 2011-03-03 Joel Brobecker <brobecker@adacore.com>
5986 * utils.c (parse_escape): Add i18n markup in error message.
5988 2011-03-03 Yao Qi <yao@codesourcery.com>
5990 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
5992 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
5993 (displaced_write_reg, displaced_read_reg): Likewise.
5994 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
5995 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5996 (cleanup_branch): Replace magic number 14 and 15 with
5997 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
5999 2011-03-02 Michael Snyder <msnyder@vmware.com>
6001 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6003 * cli/cli-script.c (script_from_file): Add break for lint.
6005 * mdebugread.c (parse_partial_symbols): Fix indent.
6007 * target-descriptions.c (tdesc_gdb_type): No need to call
6008 xstrdup, callee saves a copy.
6010 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6012 * infcall.c (call_function_by_hand): Add break statements for lint.
6014 * utils.c (parse_escape): Escape the escape char.
6016 * python/py-inferior.c (build_inferior_list): Error out if
6017 PyList_Append fails.
6018 (gdbpy_inferiors): Error out if build_inferior_list fails.
6020 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6023 * record.c (record_restore): Move printf to before error return.
6025 2011-03-02 Yao Qi <yao@codesourcery.com>
6027 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6028 is_thumb and insn_size.
6029 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6030 on both ARM and Thumb mode.
6031 (arm_process_displaced_insn): Set is_thumb and insn_size.
6032 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6033 (arm_displaced_step_fixup): Likewise.
6035 2011-03-01 Michael Snyder <msnyder@vmware.com>
6037 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6039 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6041 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6043 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6045 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6048 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6049 which shadows function parameter.
6051 * tracepoint.c (create_tsv_from_upload): Superfluous call
6052 to xstrdup. Callee already calls xstrdup.
6054 * linespec.c (decode_line_1): Remove unnecessary null check.
6056 * tracepoint.c (scope_info): Fix mem leak, remove underused
6059 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6060 superfluous null check.
6062 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6063 (value_of_builtin_frame_fp_reg): Ditto.
6065 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6067 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6070 * linespec.c (decode_line_1): Check for null before dereference.
6072 * reverse.c (record_restore): Move null-check to before pointer
6075 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6077 * objc-lang.c (selectors_info): Add explanitory comment.
6078 (classes_info): Ditto.
6080 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6082 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6083 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6084 versions of the trampoline. Handle Thumb vs. ARM addresses.
6085 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6086 (arm_linux_init_abi): Install it.
6087 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6088 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6090 2011-02-28 Michael Snyder <msnyder@vmware.com>
6092 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6093 a little bigger, to avoid possibility of an overflow.
6095 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6096 buffers a little bigger, to avoid possibility of an overflow.
6098 * coffread.c (coff_getfilename): Add check to avoid overflow.
6100 * objc-lang.c (selectors_info): Add a small safety margin to
6102 (classes_info): Error out on too long REGEXP.
6104 * infrun.c (handle_inferior_event): Remove unused function call.
6106 * fork-child.c (fork_inferior): Remove ifdef'd code and
6109 * linux-thread-db.c (attach_thread): Discard unused value.
6111 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6113 * remote.c (remote_get_noisy_reply): Discard unused value.
6114 (remote_vcont_resume): Ditto.
6115 (remote_stop_ns): Ditto.
6117 * linespec.c (decode_objc): Delete unused variable.
6119 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6121 * dwarf2read.c (add_partial_symbol): Discard unused values.
6122 (read_base_type): Delete unused variable.
6124 * dbxread.c (read_dbx_symtab): Discard unused value.
6126 * eval.c (evaluate_subexp_standard): Delete unused variable,
6127 and discard unused values.
6129 * infcmd.c (_initialize_infcmd): Discard unused values.
6131 * stabsread.c (rs6000_builtin_type): Missing break statement.
6133 * dbxread.c (process_one_symbol): Discard unused value.
6135 * coffread.c (coff_end_symtab): Delete unused variable.
6137 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6138 (dwarf2_add_typedef): Delete unused variable.
6139 (read_namespace): Ditto.
6140 (dwarf_decode_macros): Ditto.
6142 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6144 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6146 * p-valprint.c (pascal_val_print): Discard unused value.
6148 * utils.c (nquery): Call va_end before return;
6152 * proc-service.c (ps_plog): Call va_end before return.
6154 2011-02-28 Tom Tromey <tromey@redhat.com>
6156 * python/python.c (gdbpy_value_cst): New global.
6157 (_initialize_python): Initialize it.
6158 * python/python-internal.h (gdbpy_value_cst): Declare.
6159 * python/py-value.c (convert_value_from_python): Use
6162 2011-02-28 Michael Snyder <msnyder@vmware.com>
6164 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6166 * breakpoint.c (catch_syscall_completer): Free malloced list.
6168 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6170 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6171 (lval_func_check_synthetic_pointer): Ditto.
6172 (lval_func_free_closure): Fix use-after-free.
6174 2011-02-28 Tom Tromey <tromey@redhat.com>
6176 * psymtab.c (expand_partial_symbol_tables): Use
6177 ALL_OBJFILE_PSYMTABS.
6179 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6181 * objc-lang.c (selectors_info): Error on too long REGEXP.
6183 2011-02-28 Michael Snyder <msnyder@vmware.com>
6185 * python/py-param.c (set_parameter_value): Add missing
6188 * linux-record.c (record_linux_system_call): Add missing
6191 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6193 * breakpoint.c (print_one_breakpoint_location): Remove unused
6194 argument PRINT_ADDRESS_BITS. Update callers.
6195 (print_one_breakpoint): Likewise.
6197 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6199 * breakpoint.c (wrap_indent_at_field): New function.
6200 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6201 Allocate ui_stream locally instead of using STB argument.
6202 (print_one_breakpoint_location): Update call.
6203 * ui-out.c (ui_out_query_field): New function.
6204 * ui-out.h (ui_out_query_field): Add prototype.
6206 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6208 From Michael Snyder <msnyder@vmware.com>
6209 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6211 2011-02-27 Michael Snyder <msnyder@vmware.com>
6213 * objc-lang.c (selectors_info): Prevent string overrun.
6215 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6218 * symtab.c (rbreak_command): Move variable 'file_name' to
6221 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6222 param with a local variable of the same name.
6224 2011-02-27 Michael Snyder <msnyder@vmware.com>
6226 * value.c (value_from_history_ref): New function.
6227 * value.h (value_from_history_ref): Export.
6228 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6229 to parse value history references.
6230 * cli/cli-utils.h (get_number_trailer): Update comment.
6232 2011-02-27 Michael Snyder <msnyder@vmware.com>
6234 * inferior.c (detach_inferior_command): Use get_number_or_range.
6235 (kill_inferior_command): Ditto.
6236 (remove_inferior_command): Ditto.
6237 (initialize_inferiors): Make command names plural.
6238 Update help strings.
6240 2011-02-27 Michael Snyder <msnyder@vmware.com>
6242 * darwin-nat-info.c: Fix comment typo.
6243 * dwarf2expr.h: Ditto.
6244 * fbsd-nat.c: Ditto.
6245 * fbsd-nat.h: Ditto.
6246 * frame-unwind.h: Ditto.
6248 * hppa-hpux-tdep.c: Ditto.
6249 * i386-linux-nat.c: Ditto.
6250 * linux-nat.c: Ditto.
6251 * nbsd-nat.c: Ditto.
6252 * nbsd-nat.h: Ditto.
6253 * ppc-linux-tdep.c: Ditto.
6256 * tui/tui-winsource.c: Ditto.
6258 2011-02-26 Michael Snyder <msnyder@vmware.com>
6260 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6262 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6264 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6265 with a local variable of the same name.
6267 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6268 param with a local variable of the same name.
6269 (i387_supply_xsave): Ditto.
6271 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6272 that it does not shadow a function parameter.
6274 * i386-nat.c (i386_length_and_rw_bits): Document that case
6275 statement is meant to fall through.
6277 * expprint.c (dump_subexp_body_standard): Document that case
6278 statement is meant to fall through.
6280 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6281 dead if statement. Condition can't be false.
6283 2011-02-25 Michael Snyder <msnyder@vmware.com>
6285 * arm-tdep.c: Fix typos in comments.
6286 * bsd-uthread.c: Ditto.
6287 * completer.c: Ditto.
6289 * cp-namespace.c: Ditto.
6290 * cp-support.c: Ditto.
6291 * cris-tdep.c: Ditto.
6293 * dwarf2read.c: Ditto.
6295 * gdbtypes.h: Ditto.
6296 * inferior.h: Ditto.
6297 * mdebugread.c: Ditto.
6298 * mips-tdep.c: Ditto.
6299 * ppc-linux-nat.c: Ditto.
6300 * ppc-linux-tdep.c: Ditto.
6301 * printcmd.c: Ditto.
6302 * sol-thread.c: Ditto.
6303 * solib-frv.c: Ditto.
6305 * sparc64-tdep.c: Ditto.
6306 * spu-tdep.c: Ditto.
6307 * stabsread.c: Ditto.
6312 * python/py-block.c: Ditto.
6313 * python/py-symbol.c: Ditto.
6314 * python/py-symtab.c: Ditto.
6315 * python/py-value.c: Ditto.
6316 * tui/tui-win.c: Ditto.
6318 2011-02-25 Michael Snyder <msnyder@vmware.com>
6320 * inferior.c (print_inferior): Accept a string instead of an int
6321 for requested_inferiors, and use get_number_or_range to parse it.
6322 (info_inferiors_command): Pass args string to print_inferior.
6323 (initialize_inferiors): Change help string for info inferiors.
6324 * inferior.h (print_inferior): Export prototype change.
6326 2011-02-25 Tom Tromey <tromey@redhat.com>
6328 * common/ax.def (invalid2): Set to 0x31.
6330 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6332 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6334 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6336 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6338 2011-02-24 Michael Snyder <msnyder@vmware.com>
6340 * Makefile.in (clean): Make clean should remove generated files
6341 observer.h and observer.inc.
6343 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6345 Revert the following patch (not approved yet):
6346 2011-02-21 Hui Zhu <teawater@gmail.com>
6347 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6348 * ax-gdb.c (gen_printf_expr_callback): New function.
6349 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6350 * ax-general.c (ax_memcpy): New function.
6351 (ax_print): Handle "printf".
6353 * ax.h (ax_memcpy): Forward declare.
6354 * common/ax.def (invalid2): Removed.
6355 (printf): New entry.
6356 * printcmd.c (printcmd.h): New include.
6357 (string_printf): New function.
6358 (ui_printf): Removed.
6359 (printf_command): Remove static. Call string_printf.
6360 (eval_command): Call string_printf.
6361 * printcmd.h: New file.
6362 * tracepoint.c (validate_actionline,
6363 encode_actions_1): handle printf_command.
6365 2011-02-23 Tom Tromey <tromey@redhat.com>
6367 * ax-general.c (ax_pick): Add missing newline.
6369 2011-02-23 Michael Snyder <msnyder@vmware.com>
6371 * breakpoint.c (breakpoint_1): Change first argument from an int
6372 to a char pointer, so that the function now accepts a list of
6373 breakpoints rather than just one. Use new function
6374 'number_is_in_list' to implement.
6375 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6376 (watchpoints_info): Ditto.
6377 (tracepoints_info): Ditto.
6378 (maintenance_info_breakpoints): Ditto.
6379 (_initialize_breakpoint): Update help strings to reflect the fact
6380 that these functions can now take more than one argument.
6381 * cli/cli-utils.c (number_is_in_list): New function.
6382 * cli/cli-utils.h (number_is_in_list): Export.
6384 2011-02-23 Michael Snyder <msnyder@vmware.com>
6386 * memattr.c (mem_enable_command): Use get_number_or_range.
6387 (mem_disable_command): Ditto.
6388 (mem_delete_command): Ditto.
6389 (_initialize_mem): Tweak usage message to reflect multiple
6392 2011-02-22 Doug Evans <dje@google.com>
6394 Add gdb.lookup_global_symbol python function.
6396 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6397 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6398 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6400 2011-02-22 Tom Tromey <tromey@redhat.com>
6402 * language.c (language_class_name_from_physname): Rename
6403 'curr_language' argument to 'lang'; use in body.
6405 2011-02-22 Michael Snyder <msnyder@vmware.com>
6407 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6409 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6411 * frame-unwind.h: Fix comment to mention the this frame, not the
6414 2011-02-22 Tom Tromey <tromey@redhat.com>
6416 * symfile.c (auto_solib_limit): Remove.
6417 * symfile.h (auto_solib_limit): Remove.
6419 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6421 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6423 2011-02-21 Michael Snyder <msnyder@vmware.com>
6425 * gdbthread.h (print_thread_info): Change prototype.
6426 * thread.c (print_thread_info): Accept char* instead of int for
6427 requested_threads argument. Use new function number_is_in_list
6428 to determine which threads to list.
6429 (info_threads_command): Pass char* to print_thread_info.
6430 * cli/cli-utils.c (number_is_in_list): New function.
6431 * cli/cli-utils.h (number_is_in_list): Export.
6432 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6434 (print_one_inferior): Ditto.
6435 (mi_cmd_list_thread_groups): Ditto.
6437 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6439 * common/Makefile.in (CFLAGS): New.
6440 (COMPILE): Add $(CFLAGS).
6442 2011-02-21 Tom Tromey <tromey@redhat.com>
6444 * breakpoint.c (catch_syscall_command_1): Fix typo.
6446 2011-02-21 Tom Tromey <tromey@redhat.com>
6448 * reverse.c: Include cli-utils.h.
6449 * printcmd.c: Include cli-utils.h.
6450 (string_printf): Use skip_spaces.
6451 * cli/cli-utils.h: New file.
6452 * cli/cli-utils.c: New file.
6453 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6454 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6455 * breakpoint.h (get_number, get_number_or_range): Move to
6457 * breakpoint.c: Include cli-utils.h.
6458 (get_number_trailer, get_number, get_number_or_range)
6459 (ep_skip_leading_whitespace): Move to cli-utils.c.
6460 (create_breakpoint_sal, find_condition_and_thread)
6461 (decode_static_tracepoint_spec, watch_command_1)
6462 (watch_maybe_just_location, ep_parse_optional_if_clause)
6463 (catch_fork_command_1, catch_exec_command_1)
6464 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6465 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6466 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6467 (HFILES_NO_SRCDIR): Add cli-utils.h.
6468 (cli-utils.o): New target.
6470 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6472 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6473 before calling discard_all_inferiors.
6475 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6477 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6478 (struct builtin_opencl_type): Remove.
6479 (builtin_opencl_type): Change return type to "struct type **".
6480 (lookup_opencl_vector_type): Update caller.
6481 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6482 (build_opencl_types): Install plain array of "struct type *"
6483 instead of "struct builtin_opencl_type".
6485 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6486 Ulrich Weigand <uweigand@de.ibm.com>
6488 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6489 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6490 (struct arm_linux_hwbp_cap): New type.
6491 (arm_linux_get_hwbp_cap): New function.
6492 (arm_linux_get_hw_breakpoint_count): Likewise.
6493 (arm_linux_get_hw_watchpoint_count): Likewise.
6494 (arm_linux_can_use_hw_breakpoint): Likewise.
6495 (arm_hwbp_type): New type.
6496 (arm_hwbp_control_t): Likewise.
6497 (struct arm_linux_hw_breakpoint): Likewise.
6498 (struct arm_linux_thread_points): Likewise.
6499 (arm_threads): New global variable.
6500 (arm_linux_find_breakpoints_by_tid): New function.
6501 (arm_hwbp_control_initialize): Likewise.
6502 (arm_hwbp_control_is_enabled): Likewise.
6503 (arm_hwbp_control_disable): Likewise.
6504 (arm_linux_hw_breakpoint_initialize): Likewise.
6505 (arm_linux_get_hwbp_type): Likewise.
6506 (arm_linux_hw_watchpoint_initialize): Likewise.
6507 (arm_linux_hw_breakpoint_equal): Likewise.
6508 (arm_linux_insert_hw_breakpoint1): Likewise.
6509 (arm_linux_remove_hw_breakpoint1): Likewise.
6510 (arm_linux_insert_hw_breakpoint): Likewise.
6511 (arm_linux_remove_hw_breakpoint): Likewise.
6512 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6513 (arm_linux_insert_watchpoint): Likewise.
6514 (arm_linux_remove_watchpoint): Likewise.
6515 (arm_linux_stopped_data_address): Likewise.
6516 (arm_linux_stopped_by_watchpoint): Likewise.
6517 (arm_linux_watchpoint_addr_within_range): Likewise.
6518 (arm_linux_new_thread): Likewise.
6519 (arm_linux_thread_exit): Likewise.
6520 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6521 related target callbacks. Register arm_linux_new_thread and
6522 arm_linux_thread_exit.
6523 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6524 * arm-tdep.c (arm_pc_is_thumb): Make global.
6525 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6527 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6529 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6530 per-frame locations while within a function epilogue.
6532 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6534 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6535 to GNU coding standards.
6537 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6539 Allow use of mingw native on Windows 95 OS.
6540 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6541 (ser_windows_close): Only call CancelIo if function exists.
6542 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6543 to check for existence of CancelIo function in kernel32 DLL.
6545 2011-02-21 Hui Zhu <teawater@gmail.com>
6547 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6548 * ax-gdb.c (gen_printf_expr_callback): New function.
6549 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6550 * ax-general.c (ax_memcpy): New function.
6551 (ax_print): Handle "printf".
6553 * ax.h (ax_memcpy): Forward declare.
6554 * common/ax.def (invalid2): Removed.
6555 (printf): New entry.
6556 * printcmd.c (printcmd.h): New include.
6557 (string_printf): New function.
6558 (ui_printf): Removed.
6559 (printf_command): Remove static. Call string_printf.
6560 (eval_command): Call string_printf.
6561 * printcmd.h: New file.
6562 * tracepoint.c (validate_actionline,
6563 encode_actions_1): handle printf_command.
6565 2011-02-19 Michael Snyder <msnyder@vmware.com>
6567 * reverse.c (delete_one_bookmark): Argument is now bookmark
6568 id rather than pointer to bookmark struct.
6569 (delete_bookmark_command): Use get_number_or_range.
6570 (goto_bookmark_command): Parse with get_number instead of strtoul.
6571 (bookmark_1): New function. Print info for one bookmark.
6572 (bookmarks_info): Use get_number_or_range and bookmark_1.
6574 2011-02-18 Michael Snyder <msnyder@vmware.com>
6576 * thread.c (info_threads_command): Re-implement using
6577 get_number_or_range.
6578 (thread_apply_command): Ditto.
6580 2011-02-18 Tom Tromey <tromey@redhat.com>
6582 * common/ax.def: New file.
6583 * ax.h (enum agent_op): Use ax.def.
6584 * ax-general.c (aop_map): Use ax.def.
6586 2011-02-18 Tom Tromey <tromey@redhat.com>
6588 * ax-general.c (aop_map): Add pick and rot.
6589 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6590 <DW_OP_rot>: Implement.
6591 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6593 * ax-general.c (ax_pick): New function.
6595 2011-02-18 Tom Tromey <tromey@redhat.com>
6597 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6599 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6600 Tom Tromey <tromey@redhat.com>
6602 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6603 make_symbol_overload_list_block with NULL BLOCK.
6604 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6606 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6608 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6609 * breakpoint.h (get_number_or_range): Declare.
6610 * printcmd.c (ALL_DISPLAYS): Declare.
6611 (delete_display): Reimplement taking a display pointer.
6612 (undisplay_command): Accept a range of displays to delete, using
6613 get_number_or_range.
6615 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6617 * c-valprint.c (c_val_print): Add embedded_offset to address
6618 for arrays of unspecified length.
6619 * p-valprint.c (pascal_val_print): Likewise.
6621 2011-02-18 Yao Qi <yao@codesourcery.com>
6623 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6624 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6625 (thumb_process_displaced_insn): New.
6626 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6627 call to arm_process_displaced_insn.
6628 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6630 2011-02-17 Tom Tromey <tromey@redhat.com>
6632 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6633 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6634 compile_dwarf_to_ax. No longer static. Call
6635 dwarf2_compile_cfa_to_ax.
6636 (locexpr_tracepoint_var_ref): Update.
6637 (loclist_tracepoint_var_ref): Update.
6638 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6639 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6640 argument; add 'gdbarch' and 'pc'.
6641 (dwarf2_compile_cfa_to_ax): New function.
6642 (dwarf2_frame_cache): Update.
6644 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6646 * ada-lang.c (ada_type_of_array): Fix the size of the array
6647 in the case of an unconstrained packed array.
6649 2011-02-17 Yao Qi <yao@codesourcery.com>
6651 * common/Makefile.in: Add more targets for make.
6653 2011-02-16 Tom Tromey <tromey@redhat.com>
6655 * dwarf2loc.c (unimplemented): Fix typo.
6657 2011-02-16 Tom Tromey <tromey@redhat.com>
6659 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6660 (compile_dwarf_to_ax) <default>: Use unimplemented.
6661 <DW_OP_deref>: Update.
6662 (disassemble_dwarf_expression): Update.
6663 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6664 (decode_locdesc): Update.
6665 * dwarf2expr.h (dwarf_stack_op_name): Update.
6667 2011-02-16 Tom Tromey <tromey@redhat.com>
6669 * ax.h (struct aop_map) <name>: Now const.
6671 2011-02-16 Tom Tromey <tromey@redhat.com>
6673 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6676 2011-02-16 Yao Qi <yao@codesourcery.com>
6678 * infrun.c (get_displaced_step_closure_by_addr): New.
6679 * inferior.h: Declare it.
6680 * arm-tdep.c: (arm_pc_is_thumb): Call
6681 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6684 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6685 Jan Kratochvil <jan.kratochvil@redhat.com>
6688 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6690 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6691 Jan Kratochvil <jan.kratochvil@redhat.com>
6693 * value.c (value_contents_copy_raw): Extend describing comment.
6694 Assert that the destination contents we're overwriting are wholly
6696 (value_contents_copy): Extend describing comment.
6698 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6699 Jan Kratochvil <jan.kratochvil@redhat.com>
6701 * value.c (value_available_contents_eq): Remove redundant local
6702 variables. Fix available contents comparision.
6703 * value.h (value_available_contents_eq): Extend describing
6706 2011-02-16 Yao Qi <yao@codesourcery.com>
6708 * thread.c (info_threads_command): Add missing i18n markup and remove
6711 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6713 * breakpoint.c (longjmp_names): New variable.
6714 (struct breakpoint_objfile_data): New type.
6715 (breakpoint_objfile_key): New variable.
6716 (msym_not_found): New variable.
6717 (msym_not_found_p): New predicate.
6718 (get_breakpoint_objfile_data): New function.
6719 (create_overlay_event_breakpoint): Check per-objfile cache for
6721 (create_longjmp_master_breakpoint): Likewise.
6722 (create_std_terminate_master_breakpoint): Likewise.
6723 (create_exception_master_breakpoint): Likewise.
6724 (_initialize_breakpoint): Register per-objfile data key.
6726 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6728 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6730 (create_longjmp_master_breakpoint): Loop over longjmp names.
6731 (create_std_terminate_master_breakpoint): Const-propagate parameter
6733 (update_breakpoints_after_exec): Adjust.
6734 (breakpoint_re_set): Adjust.
6736 2011-02-15 Michael Snyder <msnyder@vmware.com>
6738 * thread.c (info_threads_command): Process arg as thread id,
6739 or list of thread ids.
6740 (thread_find_command): New command.
6741 (_initialize_thread): Document argument for info threads.
6742 Document 'thread find' command.
6743 * NEWS: Document new command "thread find".
6745 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6747 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6748 * aclocal.m4: Regenerated with aclocal-1.11.1.
6749 * common/configure: Regenerate with autoconf-2.64.
6751 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6753 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6754 bool data type to a size of one byte.
6756 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6757 Jan Kratochvil <jan.kratochvil@redhat.com>
6759 * target.c (memory_xfer_live_readonly_partial): Document where to
6760 look for interface description.
6762 2011-02-15 Yao Qi <yao@codesourcery.com>
6765 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6766 order to store PC value on stack instead of text section.
6768 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6770 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6771 the EFP register set size.
6772 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6773 data from the VMX register.
6774 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6775 and write data from/to the VMX register.
6777 2011-02-14 Michael Snyder <msnyder@vmware.com>
6779 * command.h (enum command_class): New class 'no_set_class', for
6780 "show" commands without a corresponding "set" command.
6781 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6782 * copying.c (_initialize_copying): Ditto for "show copying" and
6784 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6786 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6787 which there is no corresponding "set" command (eg. "show copying").
6789 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6790 Jan Kratochvil <jan.kratochvil@redhat.com>
6792 * exec.c (section_table_available_memory): Change `len' parameter
6794 * exec.h (section_table_available_memory): Ditto.
6795 * value.h (read_value_memory): Rename the `offset' parameter to
6798 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6799 Jan Kratochvil <jan.kratochvil@redhat.com>
6801 * memrange.c (compare_mem_ranges): Mention sort order in
6803 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6804 * tracepoint.c (traceframe_available_memory): Extend comment to
6805 mention what happens to RESULT when the target does not support
6808 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6809 Jan Kratochvil <jan.kratochvil@redhat.com>
6811 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6814 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6816 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6817 No longer handle NULL values.
6819 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6821 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6822 * value.c: Include "exceptions.h".
6823 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6825 * cp-abi.c: Include gdb_assert.h.
6826 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6827 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6829 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6830 parameters. No longer returns -1 on error.
6831 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6833 * cp-valprint.c: Include exceptions.h.
6834 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6835 the baseclass_offset. Handle unavailable base classes. Use
6836 val_print_invalid_address.
6837 * p-valprint.c: Include exceptions.h.
6838 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6839 when fetching the baseclass_offset. No longer expect
6840 baseclass_offset returning -1. Handle unavailable base classes.
6841 Use val_print_invalid_address.
6842 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6843 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6844 `embedded_offset' and `val' parameters. Adjust.
6845 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6846 parameter, and change its type to gdb_byte pointer. Add
6847 `embedded_offset' and `val' parameters. Adjust. No longer expect
6848 baseclass_offset returning -1.
6849 (value_dynamic_cast): Use value_contents_for_printing rather than
6850 value_contents. Adjust.
6851 (search_struct_field): No longer expect baseclass_offset returning
6853 (search_struct_method): If reading memory from the target is
6854 necessary, wrap it in a new value to pass to baseclass_offset. No
6855 longer expect baseclass_offset returning -1.
6856 (find_method_list): No longer expect baseclass_offset returning
6857 -1. Use value_contents_for_printing rather than value_contents.
6858 * valprint.c (val_print_invalid_address): New function.
6859 * valprint.h (val_print_invalid_address): Declare.
6860 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6861 and `val' parameters. No longer expect baseclass_offset returning
6863 * gnu-v2-abi.c: Include "exceptions.h".
6864 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6865 parameters. Handle unavailable memory. Recurse through
6866 gnuv2_baseclass_offset directly, rather than through
6867 baseclass_offset. No longer returns -1 on not found, instead
6869 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6870 `val' parameters. Adjust.
6872 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6874 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
6875 almost but not quite adjacent.
6877 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6879 * value.h (value_entirely_available): Declare.
6880 * value.c (value_entirely_available): New function.
6881 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6882 real type if the pointer is unavailable.
6884 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6886 * valops.c (value_repeat): Use read_value_memory instead of
6889 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6891 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
6892 * value.c (value_contents_copy_raw, value_contents_copy): New
6894 (value_primitive_field): Use value_contents_copy_raw instead of
6896 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
6898 (value_array, value_slice): Ditto.
6899 * valarith.c (value_subscripted_rvalue): Use
6900 value_contents_copy_raw instead of memcpy.
6902 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6904 <unavailable> references.
6906 * valops.c (get_value_at): Use value_from_contents_and_address,
6907 avoiding read_memory.
6909 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6911 * c-valprint.c (c_val_print): Print a string with unavailable
6912 contents as an array.
6914 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6916 * value.h (unpack_bits_as_long): Delete declaration.
6917 (unpack_value_bits_as_long): Declare.
6918 (unpack_value_field_as_long): Declare.
6919 (value_field_bitfield): Declare.
6920 * value.c (unpack_bits_as_long): Rename to...
6921 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
6922 value parameters. Return the extracted result in a new output
6923 parameter. If the value contents are unavailable, return false,
6924 otherwise return true.
6925 (unpack_value_bits_as_long): New.
6926 (unpack_field_as_long): Rename to...
6927 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
6928 Add embedded_offset and value parameters. Return the extracted
6929 result in a new output parameter. If the value contents are
6930 unavailable, return false, otherwise return true.
6931 (unpack_value_field_as_long): New.
6932 (unpack_field_as_long_1): New.
6933 (unpack_field_as_long): Reimplement as wrapper around
6934 unpack_value_field_as_long_1.
6935 (value_field_bitfield): New function.
6936 * valops.c (value_fetch_lazy): When fetching a bitfield, use
6937 unpack_value_bits_as_long. Mark the value as unavailable, if it
6939 * jv-valprint.c (java_print_value_fields): Use
6940 value_field_bitfield.
6941 * p-valprint.c (pascal_object_print_value_fields): Use
6942 value_field_bitfield.
6943 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
6945 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6947 * value.c (get_internalvar_integer): Also return the int value of
6948 TYPE_CODE_INT INTERNALVAR_VALUE values.
6949 (set_internalvar): Don't special case TYPE_CODE_INT.
6951 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6953 * value.c (struct internalvar) <enum internalvar_kind>: Remove
6954 INTERNALVAR_POINTER.
6956 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
6957 (set_internalvar): Remove special TYPE_CODE_PTR handling.
6958 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
6960 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6962 * value.h (value_available_contents_eq): Declare.
6963 * value.c (find_first_range_overlap): New function.
6964 (value_available_contents_eq): New function.
6965 * valprint.c (val_print_array_elements): Use
6966 value_available_contents_eq.
6967 * ada-valprint.c (val_print_packed_array_elements): Use
6968 value_available_contents_eq.
6969 * jv-valprint.c (java_value_print): Use
6970 value_available_contents_eq.
6972 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6974 * target.c (target_read_live_memory): New function.
6975 (memory_xfer_live_readonly_partial): New.
6976 (memory_xfer_partial): If reading from a traceframe, fallback to
6977 reading unavailable read-only memory from read-only regions of
6979 * tracepoint.c (disconnect_tracing): Adjust.
6980 (set_current_traceframe): New, factored out from
6981 set_traceframe_number.
6982 (set_traceframe_number): Reimplement to only change the traceframe
6983 number on the GDB side.
6984 (do_restore_current_traceframe_cleanup): Adjust.
6985 (make_cleanup_restore_traceframe_number): New.
6986 (cur_traceframe_number): New global.
6987 (tfile_open): Set cur_traceframe_number to no traceframe.
6988 (set_tfile_traceframe): New function.
6989 (tfile_trace_find): If looking up a traceframe using any method
6990 other than by number, make sure the current tfile traceframe
6991 matches gdb's current traceframe. Update the current tfile
6992 traceframe if the lookup succeeded.
6993 (tfile_fetch_registers, tfile_xfer_partial)
6994 (tfile_get_trace_state_variable_value): Make sure the remote
6995 traceframe matches gdb's current traceframe.
6996 * remote.c (remote_traceframe_number): New global.
6997 (remote_open_1): Set it to -1.
6998 (set_remote_traceframe): New function.
6999 (remote_fetch_registers, remote_store_registers)
7000 (remote_xfer_memory, remote_xfer_partial)
7001 (remote_get_trace_state_variable_value): Make sure the remote
7002 traceframe matches gdb's current traceframe.
7003 (remote_trace_find): If looking up a traceframe using any method
7004 other than by number, make sure the current remote traceframe
7005 matches gdb's current traceframe. Update the current remote
7006 traceframe if the lookup succeeded.
7007 * infrun.c (fetch_inferior_event): Adjust.
7008 * tracepoint.h (set_current_traceframe): Declare.
7009 (get_traceframe_number, set_traceframe_number): Add describing
7012 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7014 Mark pieces of values as unavailable if the corresponding memory
7017 * valops.c: Include tracepoint.h.
7018 (value_fetch_lazy): Use read_value_memory.
7019 (read_value_memory): New.
7020 * value.h (read_value_memory): Declare.
7021 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7022 * exec.c (section_table_available_memory): New function.
7023 * exec.h (section_table_available_memory): Declare.
7025 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7027 * Makefile.in (SFILES): Add memrange.c.
7028 (HFILES_NO_SRCDIR): Add memrange.h.
7029 (COMMON_OBS): Add memrange.o.
7030 * memrange.c: New file.
7031 * memrange.h: New file.
7032 * tracepoint.c: Include memrange.h.
7033 (struct mem_range): Delete.
7034 (mem_range_s): Delete.
7035 (traceframe_available_memory): New function.
7036 * tracepoint.h (traceframe_available_memory): Declare.
7038 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7040 * target.h (struct traceframe_info): Forward declare.
7041 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7042 (struct target_ops) <to_traceframe_info>: New field.
7043 (target_traceframe_info): New.
7044 * target.c (update_current_target): Inherit and default
7046 * remote.c (PACKET_qXfer_traceframe_info): New.
7047 (remote_protocol_features): Register qXfer:traceframe-info:read.
7048 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7049 (remote_traceframe_info): New.
7050 (init_remote_ops): Install it.
7051 (_initialize_remote): Install "set/show remote traceframe-info"
7053 * tracepoint.h (parse_traceframe_info): Declare.
7054 * tracepoint.c (struct mem_range): New.
7055 (mem_range_s): New typedef.
7056 (struct traceframe_info): New.
7057 (traceframe_info): New global.
7058 (free_traceframe_info): New function.
7059 (clear_traceframe_info): New function.
7060 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7062 (build_traceframe_info): New function.
7063 (tfile_traceframe_info): New function.
7064 (init_tfile_ops): Install tfile_traceframe_info.
7065 (traceframe_info_start_memory, free_result): New functions.
7066 (memory_attributes, traceframe_info_elements): New globals.
7067 (parse_traceframe_info, get_traceframe_info): New functions.
7068 * features/traceframe-info.dtd: New file.
7069 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7071 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7073 Base support for <unavailable> value contents.
7075 * value.h (value_bytes_available): Declare.
7076 (mark_value_bytes_unavailable): Declare.
7077 * value.c (struct range): New struct.
7078 (range_s): New typedef.
7079 (ranges_overlap): New function.
7080 (range_lessthan): New function.
7081 (ranges_contain_p): New function.
7082 (struct value) <unavailable>: New field.
7083 (value_bytes_available): New function.
7084 (mark_value_bytes_unavailable): New function.
7085 (require_not_optimized_out): Constify parameter.
7086 (require_available): New function.
7087 (value_contents_all, value_contents): Require all bytes be
7089 (value_free): Free `unavailable'.
7090 (value_copy): Copy `unavailable'.
7091 * valprint.h (val_print_unavailable): Declare.
7092 * valprint.c (valprint_check_validity): Rename `offset' parameter
7093 to `embedded_offset'. If printing a scalar, check whether the
7094 value chunk is available.
7095 (val_print_unavailable): New.
7096 (val_print_scalar_formatted): Check whether the value is
7098 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7099 pretty-printing unavailable values.
7101 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7103 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7104 * c-typeprint.c (c_type_print_args): Update the function comment. New
7105 variable param_type, initialize it. Remove const/volatile qualifiers
7106 for language_cplus and !show_artificial. Use param_type.
7108 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7110 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7111 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7112 * symtab.h (struct symtab) <next>: Comment extension.
7114 2011-02-12 Yao Qi <yao@codesourcery.com>
7116 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7118 2011-02-11 Yao Qi <yao@codesourcery.com>
7120 * common/Makefile.in: Add copyright header.
7122 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7124 * infrun.c (proceed): Move switching out and in of tfind mode from
7126 (fetch_inferior_event): ... to here.
7128 2011-02-11 Yao Qi <yao@codesourcery.com>
7130 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7132 * configure.ac: Add common to sub dir.
7133 * configure: Regenerate.
7135 2011-02-11 Yao Qi <yao@codesourcery.com>
7139 * common/Makefile.in: New.
7140 * common/configure.ac: New.
7141 * common/aclocal.m4: New.
7142 * common/configure: Generate.
7144 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7146 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7147 side of the parenthesis.
7150 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7151 * vec.h (VEC_block_remove): Fix comment.
7153 2011-02-08 Michael Snyder <msnyder@vmware.com>
7155 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7157 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7159 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7160 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7163 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7166 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7168 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7169 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7171 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7173 * dwarf2read.c (read_subroutine_type): Set special calling
7174 convention flag for functions compiled by IBM XL C for OpenCL.
7175 * ppc-sysv-tdep.c: Include "dwarf2.h"
7176 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7178 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7179 IBM OpenCL vector types calling convention.
7180 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7181 (ppc_sysv_abi_broken_return_value): Likewise.
7182 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7183 types calling convention.
7184 (ppc64_sysv_abi_return_value): Likewise.
7185 * spu-tdep.c: Include "dwarf2.h"
7186 (spu_return_value): Implement IBM OpenCL vector types calling
7189 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7191 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7192 correct ABI for AltiVec vector arguments.
7194 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7196 * valprint.c (val_print): Extend comment.
7197 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7198 interface explanation to val_print.
7199 (ada_val_print_array): Adjust comment to current interface.
7200 (print_field_values): Adjust comment to current interface.
7201 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7202 explanation to val_print.
7203 * f-valprint.c (f_val_print): Ditto.
7204 * jv-valprint.c (java_val_print): Ditto.
7205 * m2-valprint.c (m2_val_print): Ditto.
7206 * p-valprint.c (pascal_val_print): Ditto.
7208 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7210 * breakpoint.c (parse_breakpoint_sals): Fix description.
7212 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7213 Oguz Kayral <oguzkayral@gmail.com>
7215 * python/py-inferior.c (python_on_normal_stop): New function.
7216 (python_on_resume): New function.
7217 (python_inferior_exit): New function.
7218 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7219 inferior_exit observers.
7220 * python/py-evtregistry.c: New file.
7221 * python/py-threadevent.c : New file.
7222 * python/py-event.c: New file.
7223 * python/py-evts.c: New file.
7224 * python/py-continueevent.c: New file.
7225 * python/py-bpevent.c: New file.
7226 * python/py-signalevent.c: New file.
7227 * python/py-exetiedevent.c: New file.
7228 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7229 Move struct breakpoint_object from here...
7230 * python/python-internal.h: ... to here.
7231 * python/py-event.h: New file.
7232 * python/py-events.h: New file.
7233 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7234 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7235 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7236 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7237 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7238 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7239 Add build rules for all the above.
7241 2011-02-04 Tom Tromey <tromey@redhat.com>
7243 * dwarf2read.c (dwarf2_section_empty_p): New function.
7244 (dwarf2_read_section): Use dwarf2_section_empty_p.
7245 (dwarf2_section_size): New function.
7246 (dwarf2_get_section_info): Unconditionally read section.
7247 (dwarf2_read_index): Use dwarf2_section_empty_p.
7248 (partial_read_comp_unit_head): Use dwarf2_section_size.
7249 (dwarf2_symbol_mark_computed): Likewise.
7251 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7253 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7255 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7257 * mips-linux-tdep.c: Include xml-syscall.h.
7258 (mips_linux_get_syscall_number): New function.
7259 (mips_linux_init_abi): Add calls to
7260 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7261 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7262 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7263 * syscalls/mips-n32-linux.xml: New file.
7264 * syscalls/mips-n64-linux.xml: New file.
7265 * syscalls/mips-o32-linux.xml: New file.
7267 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7269 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7270 Complain about inverted range entries.
7271 (dwarf2_record_block_ranges): Likewise.
7273 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7276 * breakpoint.c (update_watchpoint): Fix name of the
7277 update_global_location_list function.
7278 (print_one_breakpoint): Fix typo.
7279 (_initialize_breakpoint): Remove extra space in hbreak help
7281 * breakpoint.h (struct bp_location) <length>: Fix field
7284 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7286 * regcache.c (registers_changed_ptid): Don't explictly always
7287 clear `current_regcache'. Only clear current_thread_ptid and
7288 current_thread_arch when PTID matches. Only reinit the frame
7289 cache if PTID matches the current inferior_ptid. Move alloca(0)
7291 (registers_changed): ... here.
7293 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7295 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7296 starts with __stack_chk_guard as stack guard symbol.
7298 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7300 * disasm.c (compare_lines): Handle the end of sequence markers
7301 within the line table to better support disassembling over
7302 compilation unit boundaries.
7304 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7306 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7307 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7308 implementation even if no symbols are available.
7309 (thumb_analyze_prologue): Update call to skip_prologue_function.
7310 (arm_analyze_prologue): Likewise.
7312 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7314 * arm-tdep.c: Include "observer.h".
7315 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7316 (arm_exidx_data_key): New static variable.
7317 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7318 (struct arm_exidx_data): Likewise.
7319 (arm_exidx_data_free): New function.
7320 (arm_compare_exidx_entries): Likewise.
7321 (arm_obj_section_from_vma): Likewise.
7322 (arm_exidx_new_objfile): Likewise.
7323 (arm_find_exidx_entry): Likewise.
7324 (arm_exidx_fill_cache): Likewise.
7325 (arm_exidx_unwind_sniffer): Likewise.
7326 (arm_exidx_unwind): New global variable.
7327 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7328 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7329 observer. Register arm_exidx_data_key as objfile data.
7331 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7333 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7334 due to accessing uninitialized variable. Fix indentation.
7336 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7338 * c-valprint.c (c_value_print): When doing virtual base pointer
7339 adjustment, create a new value with adjusted contents rather than
7340 changing the contents of the value being printed (and getting it
7343 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7345 * xml-support.c (xml_find_attribute): New.
7346 (xinclude_start_include): Use it.
7347 * xml-support.h (xml_find_attribute): Declare.
7348 * memory-map.c (memory_map_start_memory)
7349 (memory_map_start_property): Use xml_find_attribute.
7350 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7352 * remote.c (start_thread): Use xml_find_attribute.
7353 * solib-target.c (library_list_start_segment)
7354 (library_list_start_section, library_list_start_library)
7355 (library_list_start_list): Use xml_find_attribute.
7356 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7357 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7358 (tdesc_start_field): Use xml_find_attribute.
7360 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7362 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7363 (BUILD_OCL_VTYPES): Update.
7365 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7367 * configure.ac: Work around non-GNU sed limitation when computing
7368 python version number.
7369 * configure: Regenerate.
7371 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7373 Fix debug printing of TYPE_INSTANCE.
7374 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7375 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7377 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7379 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7380 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7381 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7382 * ada-operator.inc: Rename the file to ...
7383 * ada-operator.def: ... here, wrap all the entries by macro OP.
7384 * expprint.c (op_name_standard): Remove all the entries. Include
7385 "std-operator.def" instead.
7386 * expression.h (enum exp_opcode): Include "std-operator.def" and
7387 "ada-operator.def". Move all the entries ...
7388 * std-operator.def: ... here, wrap all the entries by macro OP.
7390 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7392 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7393 * breakpoint.c (remove_jit_event_breakpoints): New function.
7394 * jit.c (jit_descriptor_addr): Delete.
7395 (registering_code): Delete.
7396 (clear_int): Delete.
7397 (jit_inferior_data): New variable.
7398 (struct jit_inferior_data): New type.
7399 (get_jit_inferior_data): New function.
7400 (jit_inferior_data_cleanup): New function.
7401 (jit_read_descriptor): Adjust.
7402 (jit_register_code): Adjust.
7403 (jit_breakpoint_re_set_internal): New function; move code here ...
7404 (jit_inferior_init): ... from here.
7405 (jit_breakpoint_re_set): Adjust.
7406 (jit_reset_inferior_data_and_breakpoints): New function.
7407 (jit_inferior_created_observer): Adjust.
7408 (jit_inferior_exit_hook): Adjust.
7409 (jit_executable_changed_observer): New function.
7410 (jit_event_handler): Adjust.
7411 (_initialize_jit): Adjust.
7413 2011-01-31 Michael Snyder <msnyder@vmware.com>
7415 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7418 2011-01-31 Tom Tromey <tromey@redhat.com>
7421 * python/python.c (execute_gdb_command): Call
7422 prevent_dont_repeat.
7423 * top.c (suppress_dont_repeat): New global.
7424 (dont_repeat): Use it.
7425 (prevent_dont_repeat): New function.
7426 * command.h (prevent_dont_repeat): Declare.
7428 2011-01-31 Tom Tromey <tromey@redhat.com>
7430 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7431 * python/py-breakpoint.c (bppy_set_silent): Use
7432 breakpoint_set_silent.
7433 (bppy_set_thread): Use breakpoint_set_thread.
7434 (bppy_set_task): Use breakpoint_set_task.
7435 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7436 (breakpoint_set_task): Declare.
7437 (make_breakpoint_silent): Remove.
7438 * breakpoint.c (breakpoint_set_silent): New function.
7439 (breakpoint_set_thread): Likewise.
7440 (breakpoint_set_task): Likewise.
7441 (make_breakpoint_silent): Remove.
7443 2011-01-31 Tom Tromey <tromey@redhat.com>
7445 * breakpoint.h (user_breakpoint_p): Declare.
7446 * breakpoint.c (user_breakpoint_p): New function.
7447 (breakpoint_1): Use it.
7448 (save_breakpoints): Likewise.
7450 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7452 * configure.ac: Add handling of Python distribution on Windows.
7453 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7454 sysconfig variables are not defined, then do not use them.
7455 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7456 instead. On Windows, return all paths using forward-slashes
7457 rather than backslashes.
7459 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7461 * configure.ac: Remove fallback behavior for building
7462 against Python. Remove tweaking of Python include path.
7463 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7464 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7465 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7466 Always restore CPPFLAGS and LIBS after linking test.
7467 * configure: Regenerated.
7468 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7469 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7470 * python/python-internal.h: Adjust includes of Python .h files.
7472 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7474 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7477 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7479 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7482 2011-01-31 Yao Qi <yao@codesourcery.com>
7484 * arm-linux-nat.c: Update calls to regcache_register_status
7485 instead of regcache_valid_p.
7486 * aix-thread.c: Likewise.
7487 * i386gnu-nat.c: Likewise.
7489 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7492 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7493 touching TYPE_FIELD_ARTIFICIAL.
7495 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7497 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7500 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7502 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7503 selected, don't try iterating over the traceframe's blocks.
7504 (tfile_has_stack): If there's no traceframe selected, then there's
7506 (tfile_has_registers): If there's no traceframe selected, then
7507 there's no registers.
7509 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7511 * target.c (memory_xfer_partial): No need to restore shadows if we
7512 haven't read anything.
7514 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7516 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7517 and val_print_scalar_formatted.
7519 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7521 * tracepoint.c (tfile_read): New.
7522 (tfile_open): Use it.
7523 (tfile_get_traceframe_address): Use it.
7524 (tfile_trace_find): Use it.
7525 (walk_blocks_callback_func): New typedef.
7526 (match_blocktype): New function.
7527 (traceframe_walk_blocks): New function.
7528 (traceframe_find_block_type): New function.
7529 (tfile_fetch_registers, tfile_xfer_partial)
7530 (tfile_get_trace_state_variable_value): Use
7531 traceframe_find_block_type and tfile_read.
7533 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7535 * remote-mips.c: Add internationalization mark ups. Remove
7536 trailing \n from already marked up strings.
7538 2011-01-26 Tom Tromey <tromey@redhat.com>
7540 * python/py-prettyprint.c (print_string_repr): Clear
7541 'addressprint' option when calling val_print_string.
7542 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7543 option when calling val_print_string.
7545 2011-01-26 Tom Tromey <tromey@redhat.com>
7547 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7549 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7551 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7552 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7553 (gdb_py_long_as_ulongest): New defines.
7554 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7555 (gdb_py_int_as_long): Declare.
7556 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7557 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7558 (valpy_long): Add comment.
7559 * python/py-utils.c (get_addr_from_python): Use
7560 gdb_py_long_as_ulongest. Handle overflow properly.
7561 (gdb_py_object_from_longest): New function.
7562 (gdb_py_object_from_ulongest): Likewise.
7563 (gdb_py_int_as_long): Likewise.
7564 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7565 * python/py-symtab.c (salpy_get_pc): Use
7566 gdb_py_long_from_ulongest.
7567 (salpy_get_line): Use PyInt_FromLong.
7568 * python/py-param.c (set_parameter_value): Use
7570 * python/py-lazy-string.c (stpy_get_address): Use
7571 gdb_py_long_from_ulongest.
7572 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7573 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7574 * python/py-breakpoint.c (bppy_set_thread): Use
7576 (bppy_set_task): Likewise.
7577 (bppy_set_ignore_count): Likewise.
7578 (bppy_set_hit_count): Likewise.
7579 * python/py-block.c (blpy_get_start): Use
7580 gdb_py_object_from_ulongest.
7581 (blpy_get_end): Likewise.
7582 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7584 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7587 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7588 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7589 equality test for objfile, initialize addr_low if needed.
7591 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7593 * tui/tui-regs.c (tui_register_format): Remove dead code.
7595 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7597 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7598 instead of print_scalar_formatted.
7599 (print_scalar_formatted): Don't handle 's' format strings here,
7600 and add an assertion that we never see such format here.
7601 * valprint.h (val_print_scalar_formatted): Declare.
7602 * valprint.c (val_print_scalar_formatted): New.
7603 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7604 instead of print_scalar_formatted.
7605 * jv-valprint.c (java_val_print): Ditto.
7606 * p-valprint.c (pascal_val_print): Ditto.
7607 * ada-valprint.c (ada_val_print_1): Ditto.
7608 * f-valprint.c (f_val_print): Ditto.
7609 * infcmd.c (registers_info): Ditto.
7610 * m2-valprint.c (m2_val_print): Ditto.
7612 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7614 * m2-valprint.c (print_unbounded_array): Pass
7615 value_contents_for_printing rather than value_contents, to
7616 m2_print_array_contents. Also pass in the value.
7618 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7620 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7621 (save_gdb_index_command): Switch to .gdb_index version 4.
7623 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7625 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7626 than frame_register, and always pass a valid value to val_print.
7628 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7630 Centralize printing "<optimized out>".
7632 * valprint.h (val_print_optimized_out): Declare.
7633 * cp-valprint.c (cp_print_value_fields): Use
7634 val_print_optimized_out.
7635 * jv-valprint.c (java_print_value_fields): Ditto.
7636 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7637 * printcmd.c (print_formatted): Ditto.
7638 * valprint.c (valprint_check_validity): Ditto.
7639 (value_check_printable): Ditto.
7640 (val_print_optimized_out): New.
7642 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7644 * infcmd.c (default_print_registers_info): Allocate values so to
7645 never pass a NULL value to val_print.
7647 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7649 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7650 boolean. Make sure to always pass a value that matches the
7651 contents buffer to callees. Preserve `address' for following
7653 * value.c (value_contents_for_printing_const): New.
7654 (value_address): Constify value argument.
7655 * value.h (value_contents_for_printing_const): Declare.
7656 (value_address): Constify value argument.
7658 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7660 * regcache.c (struct regcache_descr): Rename
7661 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7662 and sizeof_cooked_register_valid_p to
7663 sizeof_cooked_register_status.
7664 (init_regcache_descr): Adjust.
7665 (struct regcache): Rename register_valid_p field to
7667 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7668 (do_cooked_read): Adjust.
7669 (regcache_valid_p): Rename to ...
7670 (regcache_register_status): ... this. Adjust.
7671 (regcache_invalidate): Adjust.
7672 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7674 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7675 as unavailable, not valid.
7676 (regcache_dump): Adjust.
7677 * regcache.h (enum register_status): New.
7678 (regcache_register_status): Declare.
7679 (regcache_invalidate): Delete declaration.
7680 * corelow.c (get_core_registers): Adjust.
7681 * tracepoint.c (tfile_fetch_registers): Adjust.
7682 * trad-frame.c (REG_VALUE): Rename to ...
7683 (TF_REG_VALUE): ... this.
7684 (REG_UNKNOWN): Rename to ...
7685 (TF_REG_UNKNOWN): ... this.
7686 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7687 * mi/mi-main.c (register_changed_p): Adjust.
7689 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7691 * regcache.c (struct regcache_descr): Remove outdated comment.
7692 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7694 (regcache_xmalloc): Rename to ...
7695 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7696 Allocate the regcache type accordingly.
7697 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7698 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7699 cooked registers, not raw.
7700 (regcache_dup_no_passthrough): Delete.
7701 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7702 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7703 mention obsolete write_register_bytes.
7704 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7706 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7708 Stop remote_read_bytes from handling partial reads itself.
7710 * remote-fileio.c: Include target.h.
7711 (remote_fileio_write_bytes): Delete.
7712 (remote_fileio_func_open, remote_fileio_func_write)
7713 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7715 (remote_fileio_func_stat): Use target_read_memory and
7716 target_write_memory.
7717 (remote_fileio_func_gettimeofday): Use target_write_memory.
7718 (remote_fileio_func_system): Use target_read_memory.
7719 * remote.c (remote_write_bytes): Make it static.
7720 (remote_read_bytes): Don't handle partial reads here.
7721 * remote.h (remote_read_bytes): Delete declaration.
7723 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7725 Simplify XML parsing a bit.
7727 * xml-support.h (gdb_xml_parse_quick): Declare.
7728 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7729 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7731 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7732 gdb_xml_create_parser_and_cleanup_1.
7733 (gdb_xml_parse_quick): New.
7734 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7735 * osdata.c (osdata_parse): Ditto.
7736 * remote.c (remote_threads_info): Ditto.
7737 * solib-target.c (solib_target_parse_libraries): Ditto.
7738 * xml-syscall.c (syscall_parse_xml): Ditto.
7739 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7741 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7743 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7744 with remote-mips.o added to gdb_target_obs.
7745 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7747 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7749 * ada-valprint.c (val_print_packed_array_elements): Pass the
7750 correct struct value to val_print.
7751 (ada_val_print_1): Ditto.
7753 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7755 Don't lose embedded_offset in printing routines throughout.
7757 * valprint.h (val_print_array_elements): Change prototype.
7758 * valprint.c (val_print_array_elements): Add `embedded_offset'
7759 parameter, and adjust to pass it down to val_print, while passing
7760 `valaddr' or `address' unmodified. Take embedded_offset into
7761 account when checking repetitions.
7762 * c-valprint.c (c_val_print): Pass embedded_offset to
7763 val_print_array_elements instead of adjusting `valaddr' and
7765 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7766 embedded_offset to val_print_array_elements instead of adjusting
7768 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7769 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7770 val_print_array_elements and pascal_object_print_value_fields
7771 instead of adjusting `valaddr'.
7772 (pascal_object_print_value_fields): Add `offset' parameter, and
7774 (pascal_object_print_value): Add `offset' parameter, and adjust to
7776 (pascal_object_print_static_field): Use
7777 value_contents_for_printing/value_embedded_offset, rather than
7779 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7780 parameter, and adjust to use it. Use
7781 value_contents_for_printing/value_embedded_offset, rather than
7783 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7784 (ada_val_print_array): Add `offset' parameter, and adjust to use
7786 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7787 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7788 Instead work with offsets. Use
7789 value_contents_for_printing/value_embedded_offset, rather than
7790 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7791 and use value_from_pointer to extract a target pointer, rather
7792 than value_from_longest.
7793 (print_variant_part): Add `offset' parameter. Replace
7794 `outer_valaddr' parameter by a new `outer_offset' parameter.
7795 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7796 (ada_value_print): Use
7797 value_contents_for_printing/value_embedded_offset, rather than
7799 (print_record): Add `offset' parameter, and adjust to pass it
7801 (print_field_values): Add `offset' parameter. Replace
7802 `outer_valaddr' parameter by a new `outer_offset' parameter.
7803 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7804 Use value_contents_for_printing/value_embedded_offset, rather than
7806 * d-valprint.c (dynamic_array_type): Use
7807 value_contents_for_printing/value_embedded_offset, rather than
7809 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7810 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7811 (java_print_value_fields): Take `offset' into account. Don't
7812 re-adjust `valaddr'. Instead pass down adjusted offsets.
7813 (java_val_print): Take `embedded_offset' into account. Pass it to
7814 java_print_value_fields.
7815 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7816 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7817 down adjusted offsets.
7818 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7819 (f_val_print): Take `embedded_offset' into account.
7821 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7823 * inflow.c: Include "gdbcmd.h".
7824 (interactive_mode): New static global, moved here from top.c.
7825 (show_interactive_mode): New function, moved here from top.c.
7826 use gdb_has_a_terminal instead of input_from_terminal_p to
7827 determine the current mode.
7828 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7830 (_initialize_inflow): Add the "set/show interactive-mode"
7831 commands. Moved here from top.c, after having adjusted slightly
7833 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7835 (input_from_terminal_p): Remove handling of "interactive-mode"
7836 setting, moved to infow.c.
7837 (init_main): Remove creation of the "set/show interactive-mode"
7838 commands, moved to inflow.c.
7840 2011-01-19 Joel Brobecker <brobecker@adacore.com>
7842 * NEWS: Add entry for native ia64-hpux support.
7844 2011-01-19 Tom Tromey <tromey@redhat.com>
7847 * thread.c (free_thread): Free 'name'.
7848 (print_thread_info): Emit thread name. Change CLI output.
7849 (thread_name_command): New function.
7850 (do_captured_thread_select): Emit newline.
7851 (_initialize_thread): Register 'thread name' command.
7852 * target.h (struct target_ops) <to_thread_name>: New field.
7853 (target_thread_name): New macro.
7854 * target.c (update_current_target): Handle to_thread_name.
7855 * python/py-infthread.c (thpy_get_name): New function.
7856 (thpy_set_name): Likewise.
7857 (thread_object_getset): Add "name".
7858 * linux-nat.c (linux_nat_thread_name): New function.
7859 (linux_nat_add_target): Set to_thread_name.
7860 * gdbthread.h (struct thread_info) <name>: New field.
7862 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7864 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7865 (ada_val_print_1): Likewise.
7867 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7869 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7870 upper limit address is not greater than the function end address
7871 when the upper limit could not be computed using the debugging
7874 2011-01-17 Tom Tromey <tromey@redhat.com>
7876 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
7878 * utils.c: Include gdb_regex.h.
7879 (do_regfree_cleanup): New function.
7880 (make_regfree_cleanup): Likewise.
7881 (get_regcomp_error): Likewise.
7882 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
7884 2011-01-17 Tom Tromey <tromey@redhat.com>
7886 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
7889 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7891 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
7892 for internal variables.
7893 (last_was_structop): New static variable.
7894 (COMPLETE): New token.
7895 (field_exp): New rule to group all '.' suffix handling.
7896 Add mark_struct_expression calls when approriate to be able
7897 to correctly find fields for completion.
7898 (yylex): Adapt to handle field completion and set INTVAR when
7901 2011-01-14 Yao Qi <yao@codesourcery.com>
7903 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
7904 save_reggroup, restore_reggroup and all_reggroup.
7906 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7908 * ada-valprint. (ada_printchar): Use the correct type length
7909 in call to ada_emit_char.
7910 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
7912 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7914 * solib-som.h (hpux_major_release): Declare variable here.
7915 * solib-som.c: Remove <sys/utsname.h> header.
7916 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
7917 (hpux_major_release): Make global, change default value to
7918 DEFAULT_HPUX_MAJOR_RELEASE.
7919 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7920 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
7921 Add "solib-som.h" header.
7922 (set_hpux_major_release): New function.
7923 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
7925 2011-01-14 Mike Frysinger <vapier@gentoo.org>
7927 * configure.tgt (*-*-uclinux*): Match more Linux os targets
7929 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7931 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
7932 new-line at end of warning message.
7933 (ia64_hpux_store_register): Remove trailing new-line at end of
7935 * ia64-hpux-tdep.c: Rephrase comment.
7936 * solib-ia64-hpux.c (struct dld_info): Change type of field
7937 dld_flags from "long long" to ULONGEST.
7939 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7941 * target.h (deprecated_child_ops): Delete declaration.
7942 * target.c (deprecated_child_ops): Delete definition.
7944 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7946 * Makefile.in (hpux-thread.o): Delete rule.
7947 * configure.ac: Don't check for HPUX DCE threads support.
7948 * configure, config.in: Regenerate.
7949 * hppa-hpux-nat.c (child_suppress_run): Delete.
7950 (hppa_hpux_child_can_run): Delete.
7951 (_initialize_hppa_hpux_nat): Don't override to_can_run.
7952 * hpux-thread.c: Delete.
7954 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7956 * hpux-thread.c (hpux_pid_to_str): Delete.
7958 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7960 * ada-valprint.c (ada_emit_char): Remove strange code.
7961 Check that c is <= UCHAR_MAX before passing it to isascii.
7962 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
7964 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7966 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
7967 to the case where instream is stdin.
7969 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7971 * ia64-tdep.h (struct regcache): Forward declare.
7972 (struct ia64_infcall_ops): New struct type.
7973 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
7975 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
7976 Renames ia64_find_global_pointer.
7977 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
7978 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
7979 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
7981 (ia64_infcall_ops): New static global constant.
7982 (ia64_gdbarch_init): Set tdep->infcall_ops.
7983 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
7984 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
7985 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
7986 (ia64_hpux_dummy_code): New static global constant.
7987 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
7988 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
7989 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
7991 (ia64_hpux_infcall_ops): New static global constant.
7992 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
7993 for inferior function calls to work properly on ia64-hpux.
7995 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7997 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
7998 * ia64-tdep.h (struct frame_info): forward declaration.
7999 (struct gdbarch_tdep): Add field size_of_register_frame.
8000 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8001 to determine the size of the register frame.
8002 (ia64_size_of_register_frame): New function.
8003 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8004 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8005 (IA64_HPUX_UREG_REASON): New macro.
8006 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8008 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8009 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8010 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8013 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8015 Add support for ia64-hpux.
8016 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8017 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8019 * configure.host: Add handling for ia64-hpux hosts. Add associated
8021 * configure.tgt: Add handling for ia64-hpux targets.
8022 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8023 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8024 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8026 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8028 [ttrace] Compute thread list immediately after attach.
8029 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8031 (inf_ttrace_attach): Use it.
8033 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8035 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8036 if we could not determine the frame's function address. Instead,
8037 use the frame's PC, and then continue.
8039 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8041 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8042 not already defined.
8044 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8046 * ia64-tdep.c (ia64_struct_type_p): New function.
8047 (ia64_extract_return_value): Handle integral values that are
8048 less than 8 bytes long.
8049 (ia64_push_dummy_call): Likewise.
8051 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8053 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8054 floatformat_ia64_ext.
8055 (floatformat_ia64_ext_big): New static const.
8056 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8058 2011-01-12 Tom Tromey <tromey@redhat.com>
8060 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8062 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8063 (mi_cmd_thread_list_ids): Likewise.
8064 (mi_cmd_data_list_changed_registers): Likewise.
8065 (mi_cmd_data_list_register_values): Likewise.
8066 (mi_cmd_data_write_register_values): Likewise.
8067 (mi_cmd_data_evaluate_expression): Likewise.
8068 (mi_cmd_data_read_memory): Likewise.
8069 (mi_cmd_data_read_memory_bytes): Likewise.
8070 (mi_cmd_data_write_memory): Likewise.
8071 (mi_cmd_enable_timings): Likewise.
8072 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8073 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8074 (mi_cmd_var_delete): Likewise.
8075 (mi_cmd_var_set_format): Likewise.
8076 (mi_cmd_var_show_format): Likewise.
8077 (mi_cmd_var_info_num_children): Likewise.
8078 (mi_cmd_var_list_children): Likewise.
8079 (mi_cmd_var_info_type): Likewise.
8080 (mi_cmd_var_info_expression): Likewise.
8081 (mi_cmd_var_show_attributes): Likewise.
8082 (mi_cmd_var_assign): Likewise.
8083 (mi_cmd_var_update): Likewise.
8084 (mi_cmd_enable_pretty_printing): Likewise.
8085 (mi_cmd_var_set_update_range): Likewise.
8086 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8088 (mi_cmd_target_file_put): Likewise.
8089 (mi_cmd_target_file_delete): Likewise.
8090 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8092 (mi_cmd_stack_info_depth): Likewise.
8093 (mi_cmd_stack_list_locals): Likewise.
8094 (mi_cmd_stack_list_args): Likewise.
8095 (mi_cmd_stack_select_frame): Likewise.
8096 (mi_cmd_stack_select_frame): Likewise.
8097 (mi_cmd_stack_info_frame): Likewise.
8098 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8100 (mi_cmd_file_list_exec_source_files): Likewise.
8101 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8102 (mi_cmd_env_cd): Likewise.
8103 (mi_cmd_env_path): Likewise.
8104 (mi_cmd_env_dir): Likewise.
8105 (mi_cmd_inferior_tty_show): Likewise.
8106 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8107 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8108 (mi_cmd_break_watch): Likewise.
8110 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8112 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8113 (ppc_linux_insert_hw_breakpoint): Likewise.
8114 (ppc_linux_remove_hw_breakpoint): Likewise.
8115 (ppc_linux_insert_watchpoint): Likewise.
8117 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8118 Jan Kratochvil <jan.kratochvil@redhat.com>
8120 PR fortran/11104 and DWARF unbound arrays detection.
8121 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8122 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8123 unspecified upper bound.
8124 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8125 variables array_size_array, tmp_type and offset_item. New variable
8126 array. Remove call to f77_get_upperbound. New variables array_type
8127 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8128 the final call to deprecated_set_value_type.
8130 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8132 Make value allocations more lazy.
8133 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8134 instead of allocate_value and set_value_lazy when possible.
8135 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8136 instead of allocate_value and set_value_lazy.
8137 * findvar.c (value_of_register_lazy): Likewise.
8138 (read_var_value): Remove V preallocation, call just check_typedef in
8139 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8140 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8141 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8142 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8143 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8144 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8145 the end, remove set_value_lazy there.
8146 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8147 instead of allocate_value and set_value_lazy when possible.
8148 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8149 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8150 of allocate_value and set_value_lazy.
8151 (value_from_contents_and_address): Use allocate_value_lazy instead of
8152 allocate_value and set_value_lazy when possible.
8154 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8156 * disasm.c (dump_insns): Support dumping opcodes for MI.
8157 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8158 dumping of instruction opcodes.
8160 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8162 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8165 2011-01-11 Tom Tromey <tromey@redhat.com>
8167 * thread.c (do_captured_thread_select): Emit newline before
8170 2011-01-11 Michael Snyder <msnyder@vmware.com>
8172 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8173 * score-tdep.c: Ditto.
8174 * score-tdep.h: Ditto.
8175 * ser-base.c: Ditto.
8176 * ser-go32.c: Ditto.
8179 * ser-mingw.c: Ditto.
8180 * ser-pipe.c: Ditto.
8182 * ser-unix.c: Ditto.
8183 * sh64-tdep.c: Ditto.
8184 * shnbsd-nat.c: Ditto.
8188 * solib-darwin.c: Ditto.
8189 * solib-frv.c: Ditto.
8191 * solib-irix.c: Ditto.
8192 * solib-osf.c: Ditto.
8193 * solib-pa64.c: Ditto.
8194 * solib-som.c: Ditto.
8195 * solib-spu.c: Ditto.
8196 * solib-sunos.c: Ditto.
8197 * solib-svr4.c: Ditto.
8199 * sol-thread.c: Ditto.
8203 * sparc64-linux-tdep.c: Ditto.
8204 * sparc64-tdep.c: Ditto.
8205 * sparc-linux-nat.c: Ditto.
8206 * sparc-linux-tdep.c: Ditto.
8207 * sparc-sol2-nat.c: Ditto.
8208 * sparc-sol2-tdep.c: Ditto.
8209 * sparc-tdep.c: Ditto.
8210 * sparc-tdep.h: Ditto.
8211 * spu-tdep.c: Ditto.
8212 * stabsread.c: Ditto.
8213 * stabsread.h: Ditto.
8221 * target-descriptions.c: Ditto.
8222 * target-descriptions.h: Ditto.
8224 * target-memory.c: Ditto.
8225 * terminal.h: Ditto.
8228 * tracepoint.c: Ditto.
8229 * tracepoint.h: Ditto.
8230 * trad-frame.h: Ditto.
8231 * typeprint.c: Ditto.
8233 2011-01-11 Michael Snyder <msnyder@vmware.com>
8235 * ui-file.c: Comment cleanup, mostly periods and spaces.
8240 * v850-tdep.c: Ditto.
8241 * valarith.c: Ditto.
8243 * valprint.c: Ditto.
8244 * valprint.h: Ditto.
8249 * vax-tdep.c: Ditto.
8253 * windows-nat.c: Ditto.
8254 * windows-tdep.c: Ditto.
8255 * xcoffread.c: Ditto.
8256 * xcoffsolib.c: Ditto.
8257 * xml-support.c: Ditto.
8258 * xstormy16-tdep.c: Ditto.
8259 * xtensa-tdep.c: Ditto.
8260 * xtensa-tdep.h: Ditto.
8262 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8264 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8265 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8267 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8268 Thiago Jung Bauermann <bauerman@br.ibm.com>
8270 Implement support for PowerPC BookE ranged watchpoints.
8272 (struct breakpoint_ops) <resources_needed>: New method.
8273 Initialize to NULL in all existing breakpoint_ops instances.
8274 (struct breakpoint) <exact>: New field.
8275 (target_exact_watchpoints): Declare external global.
8276 * breakpoint.c (target_exact_watchpoints): New global flag.
8277 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8278 b->enable_state to bp_enabled before calling
8279 hw_watchpoint_used_count.
8280 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8281 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8283 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8284 if the watchpoint is exact.
8285 (resources_needed_watchpoint): New function.
8286 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8287 (watch_command_1): Set b->exact if the user asked for an exact
8288 watchpoint and one can be set.
8289 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8290 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8291 the user asks for an exact watchpoint and one can be set. Return
8292 number of needed debug registers to watch the expression.
8293 * gdbtypes.c (is_scalar_type): New function, based on
8294 valprint.c:scalar_type_p.
8295 (is_scalar_type_recursive): New function.
8296 * gdbtypes.h (is_scalar_type_recursive): Declare.
8297 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8298 handle regions when ranged watchpoints are available.
8299 (create_watchpoint_request): New function.
8300 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8301 create_watchpoint_request.
8302 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8303 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8304 `set powerpc' and `show powerpc' commands.
8305 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8306 Mention documentation comment in the target macro.
8307 (target_region_ok_for_hw_watchpoint): Document return value.
8309 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8311 * breakpoint.c (update_watchpoint): Decide on using a software or
8312 hardware watchpoint after the bp_locations are created.
8314 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8316 Convert hardware watchpoints to use breakpoint_ops.
8317 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8318 <insert_location>: ... this. Return int instead of void.
8319 Accept pointer to struct bp_location instead of pointer to
8320 struct breakpoint. Adapt all implementations.
8321 (breakpoint_ops) <remove>: Rename to...
8322 <remove_location>: ... this. Accept pointer to struct bp_location
8323 instead of pointer to struct breakpoint. Adapt all implementations.
8324 * breakpoint.c (insert_catchpoint): Delete function.
8325 (insert_bp_location): Call the watchpoint or catchpoint's
8326 breakpoint_ops.insert method.
8327 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8328 breakpoint_ops.remove method.
8329 (insert_watchpoint, remove_watchpoint): New functions.
8330 (watchpoint_breakpoint_ops): New structure.
8331 (watch_command_1): Initialize the OPS field.
8332 * inf-child.c (inf_child_insert_fork_catchpoint)
8333 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8334 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8335 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8337 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8338 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8339 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8340 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8341 * target.c (update_current_target): Change default implementation of
8342 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8343 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8344 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8345 to_set_syscall_catchpoint to return_one.
8346 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8347 (debug_to_insert_exec_catchpoint): Report return value.
8348 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8349 (to_insert_exec_catchpoint): Change declaration to return int instead
8352 2011-01-11 Michael Snyder <msnyder@vmware.com>
8354 * arm-tdep.c: Internationalization.
8357 * fork-child.c: Ditto.
8358 * nto-procfs.c: Ditto.
8359 * ppc-sysv-tdep.c: Ditto.
8361 * remote-mips.c: Ditto.
8363 * rs6000-nat.c: Ditto.
8364 * rs6000-tdep.c: Ditto.
8368 * xml-support.c: Ditto.
8369 * mi/mi-cmd-break.c: Ditto.
8370 * mi/mi-cmd-var.c: Ditto.
8371 * mi/mi-interp.c: Ditto.
8372 * mi/mi-main.c: Ditto.
8374 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8376 * remote-sim.c (gdbsim_store_register): Update API to
8377 sim_store_register to check more error conditions.
8379 2011-01-10 Michael Snyder <msnyder@vmware.com>
8381 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8382 * nto-tdep.c: Ditto.
8383 * nto-tdep.h: Ditto.
8384 * objc-exp.y: Ditto.
8385 * objc-lang.c: Ditto.
8386 * objfiles.c: Ditto.
8387 * objfiles.h: Ditto.
8388 * observer.c: Ditto.
8389 * opencl-lang.c: Ditto.
8392 * parser-defs.h: Ditto.
8395 * posix-hdep.c: Ditto.
8396 * ppcbug-rom.c: Ditto.
8397 * ppc-linux-nat.c: Ditto.
8398 * ppc-linux-tdep.c: Ditto.
8399 * ppc-linux-tdep.h: Ditto.
8400 * ppcnbsd-tdep.c: Ditto.
8401 * ppcobsd-tdep.c: Ditto.
8402 * ppcobsd-tdep.h: Ditto.
8403 * ppc-sysv-tdep.c: Ditto.
8404 * ppc-tdep.h: Ditto.
8405 * printcmd.c: Ditto.
8406 * proc-abi.c: Ditto.
8407 * proc-flags.c: Ditto.
8409 * proc-utils.h: Ditto.
8410 * progspace.h: Ditto.
8411 * prologue-value.c: Ditto.
8412 * prologue-value.h: Ditto.
8413 * psympriv.h: Ditto.
8415 * p-typeprint.c: Ditto.
8416 * p-valprint.c: Ditto.
8417 * ravenscar-sparc-thread.c: Ditto.
8418 * ravenscar-thread.c: Ditto.
8419 * ravenscar-thread.h: Ditto.
8421 * regcache.c: Ditto.
8422 * regcache.h: Ditto.
8424 * remote-fileio.c: Ditto.
8425 * remote-fileio.h: Ditto.
8427 * remote-m32r-sdi.c: Ditto.
8428 * remote-mips.c: Ditto.
8429 * remote-sim.c: Ditto.
8430 * rs6000-aix-tdep.c: Ditto.
8431 * rs6000-nat.c: Ditto.
8432 * rs6000-tdep.c: Ditto.
8434 2011-01-10 Michael Snyder <msnyder@vmware.com>
8436 * charset.c (validate): Internationalization.
8437 * coffread.c (read_one_sym): Ditto.
8438 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8439 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8440 * inflow.c (new_tty): Ditto.
8441 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8442 * m32c-tdep.c (m32c_return_value): Ditto.
8443 * mep-tdep.c (mep_store_return_value): Ditto.
8444 * score-tdep.c (score7_fetch_insn): Ditto.
8445 * ser-mingw.c (pipe_windows_open): Ditto.
8446 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8447 * spu-tdep.c (spu_register_type): Ditto.
8448 * tracepoint.c (trace_find_command): Ditto.
8449 * valarith.c (value_pos): Ditto.
8451 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8453 * ada-valprint.c (printstr): Minor comment reformatting.
8455 2011-01-08 Michael Snyder <msnyder@vmware.com>
8457 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8460 2011-01-08 Michael Snyder <msnyder@vmware.com>
8462 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8463 * hppa-hpux-tdep.c: Ditto.
8464 * hppa-linux-nat.c: Ditto.
8465 * hppa-linux-tdep.c: Ditto.
8466 * hppanbsd-tdep.c: Ditto.
8467 * hppa-tdep.c: Ditto.
8468 * hppa-tdep.h: Ditto.
8469 * hpux-thread.c: Ditto.
8470 * i386-cygwin-tdep.c: Ditto.
8471 * i386-darwin-nat.c: Ditto.
8472 * i386gnu-nat.c: Ditto.
8473 * i386-linux-nat.c: Ditto.
8474 * i386-linux-tdep.c: Ditto.
8475 * i386-nat.c: Ditto.
8476 * i386-nat.h: Ditto.
8477 * i386nbsd-tdep.c: Ditto.
8478 * i386-sol2-nat.c: Ditto.
8479 * i386-stub.c: Ditto.
8480 * i386-tdep.c: Ditto.
8481 * i386-tdep.h: Ditto.
8482 * i387-tdep.c: Ditto.
8483 * ia64-linux-nat.c: Ditto.
8484 * ia64-linux-tdep.c: Ditto.
8485 * ia64-tdep.c: Ditto.
8489 * inferior.c: Ditto.
8490 * inferior.h: Ditto.
8496 * iq2000-tdep.c: Ditto.
8497 * irix5-nat.c: Ditto.
8503 * jv-typeprint.c: Ditto.
8504 * jv-valprint.c: Ditto.
8505 * language.c: Ditto.
8506 * language.h: Ditto.
8507 * linespec.c: Ditto.
8508 * linux-fork.c: Ditto.
8509 * linux-nat.c: Ditto.
8510 * linux-thread-db.c: Ditto.
8511 * lm32-tdep.c: Ditto.
8513 2011-01-08 Michael Snyder <msnyder@vmware.com>
8515 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8517 * m2-typeprint.c: Ditto.
8518 * m2-valprint.c: Ditto.
8519 * m32c-tdep.c: Ditto.
8520 * m32r-linux-nat.c: Ditto.
8521 * m32r-rom.c: Ditto.
8522 * m32r-tdep.c: Ditto.
8523 * m32r-tdep.h: Ditto.
8524 * m68hc11-tdep.c: Ditto.
8525 * m58klinux-nat.c: Ditto.
8526 * m68k-tdep.c: Ditto.
8527 * m88k-tdep.c: Ditto.
8528 * m88k-tdep.h: Ditto.
8529 * machoread.c: Ditto.
8530 * macrocmd.c: Ditto.
8531 * macroexp.c: Ditto.
8532 * macrotab.c: Ditto.
8535 * mdebugread.c: Ditto.
8536 * mdebugread.h: Ditto.
8539 * memory-map.h: Ditto.
8540 * mep-tdep.c: Ditto.
8541 * microblaze-rom.c: Ditto.
8542 * microblaze-tdep.c: Ditto.
8544 * mips-irix-tdep.c: Ditto.
8545 * mips-linux-nat.c: Ditto.
8546 * mips-linux-tdep.c: Ditto.
8547 * mips-linux-tdep.h: Ditto.
8548 * mipsnbsd-nat.c: Ditto.
8549 * mipsnbsd-tdep.c: Ditto.
8550 * mipsread.c: Ditto.
8551 * mips-tdep.c: Ditto.
8552 * mips-tdep.h: Ditto.
8553 * mn10300-linux-tdep.c: Ditto.
8554 * mn10300-tdep.c: Ditto.
8555 * mn10300-tdep.h: Ditto.
8558 * moxie-tdep.c: Ditto.
8559 * moxie-tdep.h: Ditto.
8562 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8564 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8566 2011-01-08 Robert Millan <rmh@gnu.org>
8568 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8570 2011-01-07 Michael Snyder <msnyder@vmware.com>
8572 * charset.c (_initialize_charset): Fix typo in string.
8574 2011-01-07 Michael Snyder <msnyder@vmware.com>
8576 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8578 * tui/tui-layout.c (tui_set_layout_for_display_command):
8579 Split line so that operator goes to beginning of line.
8580 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8581 assignment out of if statement.
8583 2011-01-07 Michael Snyder <msnyder@vmware.com>
8585 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8586 * ada-lang.h: Ditto.
8587 * ada-tasks.c: Ditto.
8588 * ada-valprint.c: Ditto.
8589 * aix-threads.c: Ditto.
8590 * alpha-linux-nat.c: Ditto.
8591 * alpha-linux-tdep.c: Ditto.
8592 * alpha-mdebug-tdep.c: Ditto.
8593 * alpha-nat.c: Ditto.
8594 * alpha-osf1-tdep.c: Ditto.
8595 * alpha-tdep.c: Ditto.
8596 * alphabsd-nat.c: Ditto.
8597 * alphabsd-tdep.c: Ditto.
8598 * amd64-darwin-tdep.c: Ditto.
8599 * amd64-linux-nat.c: Ditto.
8600 * amd64-linux-tdep.c: Ditto.
8601 * amd64-sol2-tdep.c: Ditto.
8602 * amd64-tdep.c: Ditto.
8603 * amd64-fbsd-tdep.c: Ditto.
8604 * amd64-nbsd-tdep.c: Ditto.
8605 * amd64-obsd-tdep.c: Ditto.
8606 * amd64-linux-nat.c: Ditto.
8607 * amd64-linux-tdep.c: Ditto.
8608 * arm-tdep.c: Ditto.
8609 * arm-tdep.h: Ditto.
8610 * armnbsd-nat.c: Ditto.
8611 * avr-tdep.c: Ditto.
8612 * bfin-tdep.c: Ditto.
8614 * c-typeprintc: Ditto.
8615 * c-valprint.c: Ditto.
8616 * coff-pe-read.h: Ditto.
8617 * coffreead.c: Ditto.
8618 * cris-tdep.c: Ditto.
8620 * darwin-nat-info.c: Ditto.
8621 * darwin-nat.c: Ditto.
8622 * dbug-rom.c: Ditto.
8626 * dec-thread.c: Ditto.
8628 * demangle.c: Ditto.
8629 * dicos-tdep.c: Ditto.
8630 * dictionary.c: Ditto.
8631 * dictionary.h: Ditto.
8632 * dink32-rom.c: Ditto.
8634 * doublest.c: Ditto.
8636 * dummy-frame.c: Ditto.
8637 * dwarf2-frame.c: Ditto.
8638 * dwarf2expr.c: Ditto.
8639 * dwarf2loc.c: Ditto.
8640 * dwarf2read.c: Ditto.
8644 * event-top.h: Ditto.
8645 * exceptions.c: Ditto.
8646 * exceptions.h: Ditto.
8648 * expprint.c: Ditto.
8649 * expression.h: Ditto.
8653 * f-typeprint.c: Ditto.
8654 * f-valprint.c: Ditto.
8655 * fbsd-nat.c: Ditto.
8657 * fork-child.c: Ditto.
8660 * frv-linux-tdep.c: Ditto.
8661 * frv-tdep.c: Ditto.
8663 * gdb-stabs.h: Ditto.
8664 * gdb_assert.h: Ditto.
8665 * gdb_string.h: Ditto.
8666 * gdb_thread_db.h: Ditto.
8667 * gdb_wait.h: Ditto.
8668 * gdbarch.sh: Ditto.
8670 * gdbthread.h: Ditto.
8671 * gdbtypes.c: Ditto.
8672 * gdbtypes.h: Ditto.
8675 * gnu-v2-abi.c: Ditto.
8676 * gnu-v3-abi.c: Ditto.
8677 * go32-nat.c: Ditto.
8678 * gdbarch.c: Regenerate.
8679 * gdbarch.h: Regenerate.
8681 2011-01-07 Michael Snyder <msnyder@vmware.com>
8683 * ax-gdb.c: Adjust some long output strings.
8684 * breakpoint.c: Ditto.
8689 * linux-nat.c: Ditto.
8690 * solib-pa64.c: Ditto.
8691 * solib-som.c: Ditto.
8693 2011-01-06 Tom Tromey <tromey@redhat.com>
8697 * python/python.c (GdbMethods): Add "newest_frame" method.
8698 * python/python-internal.h (gdbpy_newest_frame): Declare.
8699 * python/py-frame.c (gdbpy_newest_frame): New function.
8701 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8703 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8704 * jit.c (jit_debug): New variable.
8705 (show_jit_debug): New function.
8706 (struct target_buffer): Use ULONGEST.
8707 (bfd_open_from_target_memory): Likewise.
8708 (jit_register_code, jit_inferior_init): Add debug output.
8709 (_initialize_jit): Register "debug jit" command.
8711 2011-01-06 Tom Tromey <tromey@redhat.com>
8713 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8714 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8717 2011-01-06 Tom Tromey <tromey@redhat.com>
8719 * python/py-frame.c (frapy_block): Use get_frame_block.
8721 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8723 Do not stop on SIGPRIO signals by default
8724 * infrun.c (_initialize_infrun): Unset signal_stop and
8725 signal_print for TARGET_SIGNAL_PRIO.
8727 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8729 * ada-tasks.c: Fix style violation in comment.
8731 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8733 * linespec.c (decode_compound, find_method): Remove trailing \n
8734 at end of error string.
8735 * solib-irix.c (irix_current_sos): Likewise.
8736 * varobj.c (uninstall_variable): Likewise.
8738 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8740 * copyright.py: New script.
8741 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8742 Launch emacs without exec'ing. Call copyright.py afterwards.
8744 2011-01-05 Michael Snyder <msnyder@vmware.com>
8746 * addrmap.c: Shorten lines of >= 80 columns.
8747 * arch-utils.c: Ditto.
8748 * arch-utils.h: Ditto.
8750 * ax-general.c: Ditto.
8752 * blockframe.c: Ditto.
8753 * breakpoint.c: Ditto.
8754 * buildsym.c: Ditto.
8756 * c-typeprint.c: Ditto.
8758 * coffread.c: Ditto.
8762 * cp-namespace.c: Ditto.
8763 * cp-support.c: Ditto.
8764 * dbug-rom.c: Ditto.
8769 * dictionary.c: Ditto.
8771 * doublest.c: Ditto.
8772 * dwarf2-frame.c: Ditto.
8773 * dwarf2expr.c: Ditto.
8774 * dwarf2loc.c: Ditto.
8775 * dwarf2read.c: Ditto.
8778 * event-loop.c: Ditto.
8779 * event-loop.h: Ditto.
8780 * exceptions.h: Ditto.
8782 * expprint.c: Ditto.
8783 * expression.h: Ditto.
8785 * f-valprint.c: Ditto.
8787 * frame-base.c: Ditto.
8788 * frame-unwind.c: Ditto.
8789 * frame-unwind.h: Ditto.
8793 * gdb-stabs.h: Ditto.
8794 * gdb_assert.h: Ditto.
8795 * gdb_dirent.h: Ditto.
8796 * gdb_obstack.h: Ditto.
8798 * gdbtypes.c: Ditto.
8799 * gdbtypes.h: Ditto.
8800 * inf-ttrace.c: Ditto.
8805 * inline-frame.h: Ditto.
8806 * language.c: Ditto.
8807 * language.h: Ditto.
8808 * libunwind-frame.c: Ditto.
8809 * libunwind-frame.h: Ditto.
8810 * linespec.c: Ditto.
8811 * linux-nat.c: Ditto.
8812 * linux-nat.h: Ditto.
8813 * linux-thread-db.c: Ditto.
8814 * machoread.c: Ditto.
8815 * macroexp.c: Ditto.
8816 * macrotab.c: Ditto.
8819 * mdebugread.c: Ditto.
8824 * objfiles.c: Ditto.
8825 * objfiles.h: Ditto.
8827 * p-typeprint.c: Ditto.
8828 * p-valprint.c: Ditto.
8830 * printcmd.c: Ditto.
8831 * proc-events.c: Ditto.
8833 * progspace.c: Ditto.
8834 * progspace.h: Ditto.
8835 * psympriv.h: Ditto.
8838 * regcache.c: Ditto.
8839 * regcache.h: Ditto.
8840 * remote-fileio.c: Ditto.
8842 * ser-mingw.c: Ditto.
8844 * ser-unix.c: Ditto.
8847 * solib-frv.c: Ditto.
8848 * solib-irix.c: Ditto.
8849 * solib-osf.c: Ditto.
8850 * solib-pa64.c: Ditto.
8851 * solib-som.c: Ditto.
8852 * solib-sunos.c: Ditto.
8853 * solib-svr4.c: Ditto.
8854 * solib-target.c: Ditto.
8858 * stabsread.c: Ditto.
8859 * stabsread.c: Ditto.
8862 * symfile-mem.c: Ditto.
8868 * target-descriptions.c: Ditto.
8869 * target-memory.c: Ditto.
8872 * terminal.h: Ditto.
8875 * tracepoint.c: Ditto.
8876 * tracepoint.h: Ditto.
8880 * user-regs.c: Ditto.
8881 * user-regs.h: Ditto.
8883 * valarith.c: Ditto.
8885 * valprint.c: Ditto.
8886 * valprint.h: Ditto.
8891 * xcoffread.c: Ditto.
8892 * xcoffsolib.c: Ditto.
8893 * xcoffsolib.h: Ditto.
8894 * xml-syscall.c: Ditto.
8895 * xml-tdesc.c: Ditto.
8897 2011-01-05 Michael Snyder <msnyder@vmware.com>
8899 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
8900 * cli/cli-decode.c: Ditto.
8901 * cli/cli-dump.c: Ditto.
8902 * cli/cli-logging.c: Ditto.
8903 * cli/cli-script.c: Ditto.
8904 * cli/cli-setshow.c: Ditto.
8905 * common/signals.c: Ditto.
8906 * mi/mi-cmd-break.c: Ditto.
8907 * mi/mi-cmd-disas.c: Ditto.
8908 * mi/mi-cmd-stack.c: Ditto.
8909 * mi/mi-cmd-var.c: Ditto.
8910 * mi/mi-cmds.c: Ditto.
8911 * mi/mi-common.h: Ditto.
8912 * mi/mi-console.c: Ditto.
8913 * mi/mi-interp.c: Ditto.
8914 * mi/mi-main.c: Ditto.
8915 * osf-share/cma_attr.c: Ditto.
8916 * osf-share/cma_deb_core.h: Ditto.
8917 * osf-share/cma_debug_client.h: Ditto.
8918 * osf-share/cma_handle.h: Ditto.
8919 * osf-share/cma_mutex.h: Ditto.
8920 * osf-share/cma_stack_int.h: Ditto.
8921 * osf-share/cma_tcb_defs.h: Ditto.
8922 * python/py-auto-load.c: Ditto.
8923 * python/py-breakpoint.c: Ditto.
8924 * python/py-cmd.c: Ditto.
8925 * python/py-frame.c: Ditto.
8926 * python/py-objfile.c: Ditto.
8927 * python/py-param.c: Ditto.
8928 * python/py-progspace.c: Ditto.
8929 * python/py-symbol.c: Ditto.
8930 * python/py-value.c: Ditto.
8931 * python/python-internal.h: Ditto.
8932 * python/python.c: Ditto.
8933 * tui/tui-data.c: Ditto.
8934 * tui/tui-disasm.c: Ditto.
8935 * tui/tui-hooks.c: Ditto.
8936 * tui/tui-io.c: Ditto.
8937 * tui/tui-layout.c: Ditto.
8938 * tui/tui-regs.c: Ditto.
8939 * tui/tui-source.c: Ditto.
8940 * tui/tui-stack.c: Ditto.
8941 * tui/tui-win.c: Ditto.
8942 * tui/tui-windata.c: Ditto.
8943 * tui/tui-winsource.c: Ditto.
8945 2011-01-05 Joel Brobecker <brobecker@adacore.com>
8947 * configure.ac, gdb.1: Copyright year update.
8949 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8951 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
8952 this_pc_in_block, morestack_msym and morestack_name. Check for
8953 "__morestack" minimal symbol there.
8955 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8957 * symfile.c (find_sym_fns): Add call to dont_repeat.
8959 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8961 Copyright year update in most files (performed by copyright.sh).
8963 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8965 * top.c (print_gdb_version): Update copyright year in version output.
8967 For older changes see ChangeLog-2010.
8973 version-control: never