1 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
5 and the static keyword.
6 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
8 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
9 * mi/mi-main.c (get_register): Remove stb initialization and the static
12 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14 Code cleanup - make mi_opt const.
15 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
17 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
18 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
19 (mi_cmd_env_dir): Likewise.
20 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
21 (mi_cmd_target_file_put): Likewise.
22 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
23 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
24 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
25 (mi_valid_noargs): Make opts const.
26 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
27 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
28 (mi_cmd_data_read_memory): Likewise.
29 (mi_cmd_data_read_memory_bytes): Likewise.
30 (mi_cmd_data_write_memory): Likewise.
32 2011-08-26 Matt Rice <ratmice@gmail.com>
34 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
35 bcache_xmalloc, replace bcache_xmalloc with call to
36 psymbol_bcache_init for psymbol_cache.
37 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
39 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
41 * inf-loop.c (inferior_event_handler): Add exception_print in
44 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
46 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
47 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
48 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
49 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
50 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
51 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
52 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
53 * infrun.c (fetch_inferior_event): Call
54 make_bpstat_clear_actions_cleanup.
55 * top.c (execute_command): New variable cleanup_if_error, call
56 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
57 * utils.c (do_bpstat_clear_actions_cleanup)
58 (make_bpstat_clear_actions_cleanup): New functions.
60 2011-08-26 Pedro Alves <pedro@codesourcery.com>
62 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
63 either the parent or the child forks. Rename a couple locals.
65 2011-08-26 Pedro Alves <pedro@codesourcery.com>
67 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
68 library call. Avoid reading the `status' local if all waitpid
71 2011-08-26 Pedro Alves <pedro@codesourcery.com>
73 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
74 opening /proc/PID/task always succeeds.
76 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
78 * linespec.c (symtab_from_filename): Check for the end of string.
80 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
83 * varobj.c (cplus_describe_child): Add the keyword
84 'class' to the output of the method when dealing
85 with a cast to a base class.
87 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
89 No functionality change.
90 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
91 function comment a reference, new variables tp and bs, move here code
93 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
94 describe it in the comment.
95 * exceptions.c (throw_exception): Remove variable tp, move the code for
96 bpstat_clear_actions to bpstat_clear_actions.
98 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
100 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
101 * linux-nat.c: Include linux-procfs.h.
102 (linux_proc_get_tgid): Move to ...
103 * common/linux-procfs.c: ... here. New file.
104 * common/linux-procfs.h: New file.
105 * linux-thread-db.c: Include linux-procfs.h.
106 * Makefile.in: Update dependencies.
107 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
108 * config/arm/linux.mh: Likewise.
109 * config/i386/linux.mh: Likewise.
110 * config/i386/linux64.mh: Likewise.
111 * config/ia64/linux.mh: Likewise.
112 * config/m32r/linux.mh: Likewise.
113 * config/m68k/linux.mh: Likewise.
114 * config/mips/linux.mh: Likewise.
115 * config/pa/linux.mh: Likewise.
116 * config/pa/linux.mh: Likewise.
117 * config/powerpc/linux.mh: Likewise.
118 * config/powerpc/ppc64-linux.mh: Likewise.
119 * config/powerpc/spu-linux.mh: Likewise.
120 * config/sparc/linux.mh: Likewise.
121 * config/sparc/linux64.mh: Likewise.
122 * config/xtensa/linux.mh: Likewise.
124 2011-08-24 Hui Zhu <teawater@gmail.com>
126 * tracepoint.c (cond_string_is_same): New function.
127 (find_matching_tracepoint): Add condition check
128 by cond_string_is_same.
130 2011-08-23 Josh Matthews <josh@joshmatthews.net>
132 Fix build error in Darwin port.
133 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
135 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
138 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
139 (command_line_is_silent): New function.
140 (bpstat_do_actions_1): No longer use commands_left, use
141 command_line_is_silent for commands.
142 (bpstat_alloc): Remove clearing of commands_left.
143 (bpstat_stop_status): Remove initialization of commands_left, use
144 command_line_is_silent.
145 * breakpoint.h (struct bpstats): Remove commands_left.
147 2011-08-18 Keith Seitz <keiths@redhat.com>
150 * cp-name-parser.y (struct demangle_info): Remove unused
153 (allocate_info): Change return type to struct demangle_info *.
154 Always allocate a new demangle_info.
155 Remove unused PREV pointer.
156 (cp_new_demangle_parse_info): New function.
157 (cp_demangled_name_parse_free): New function.
158 (do_demangled_name_parse_free_cleanup): New function.
159 (make_cleanup_cp_demangled_name_parse_free): New function.
160 (cp_demangled_name_to_comp): Change return type to
161 struct demangle_parse_info *.
162 Allocate a new storage for each call.
163 (main): Update usage for cp_demangled_name_to_comp
165 * cp-support.h (struct demangle_parse_info): New structure.
166 (cp_demangled_name_to_comp): Update API change for
168 (cp_new_demangle_parse_info): Declare.
169 (make_cleanup_cp_demangled_name_parse_free): New declaration.
170 (cp_demangled_name_parse_free): Declare.
171 * cp-support.c (cp_canonicalize_string): Update API
172 change for cp_demangled_name_to_comp.
173 (mangled_name_to_comp): Likewise.
174 Return struct demangle_parse_info, too.
175 (cp_class_name_from_physname): Update mangled_name_to_comp
177 (method_name_from_physname): Likewise.
178 (cp_func_name): Update API change for cp_demangled_name_to_comp.
179 (cp_remove_params): Likewise.
180 * python/py-type.c (typy_legacy_template_argument): Likewise.
182 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
183 (cp_merge_demangle_parse_infos): Declare.
184 * cp-support.c (ignore_typedefs): New file global.
185 (copy_string_to_obstack): New function.
186 (inspect_type): New function.
187 (replace_typedefs): New function.
188 (replace_typedefs_qualified_name): New function.
189 (cp_canonicalize_string_no_typedefs): New function.
190 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
191 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
192 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
193 instead of cp_canonicalize_string.
194 (find_method): Likewise.
195 (decode_compound): Before looking up the name, call
196 cp_canonicalize_string_no_typedefs.
197 (decode_variable): Likewise.
199 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
200 Tom Tromey <tromey@redhat.com>
201 Matt Rice <ratmice@gmail.com>
203 * python/lib/gdb/prompt.py: New file.
204 * python/lib/gdb/command/prompt.py: New file.
205 * NEWS: Document set extended-prompt and gdb.prompt library
207 2011-08-16 Yao Qi <yao@codesourcery.com>
209 * tic6x-linux-tdep.c: Move const arrays definition from here...
210 * tic6x-tdep.c: to here ...
212 2011-08-14 Yao Qi <yao@codesourcery.com>
214 * NEWS: New port to Texas Instruments TMS320C6x.
216 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
217 Bernd Schmidt <bernds@codesourcery.com>
218 Yao Qi <yao@codesourcery.com>
220 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
221 * solib-dsbt.c: New file. Support DSBT shared object.
222 * tic6x-linux-tdep.c: New file.
223 * tic6x-tdep.c: New file.
224 * tic6x-tdep.h: New file.
226 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
227 Yao Qi <yao@codesourcery.com>
229 * remote.c (PACKET_qXfer_fdpic): New enum value.
230 (remote_protocol_features): Add qXfer:fdpic:read packet.
231 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
232 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
233 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
235 2011-08-14 Yao Qi <yao@codesourcery.com>
237 Target description for tic6x.
238 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
239 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
240 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
241 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
242 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
243 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
244 * features/tic6x-c64xp-linux.xml: New.
245 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
246 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
247 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
248 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
249 * regformats/tic6x-c64xp.dat,
250 regformats/tic6x-c62x-linux.dat: Generated.
251 * regformats/tic6x-c64x-linux.dat,
252 regformats/tic6x-c64xp-linux.dat: Generated.
253 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
254 features/tic6x-*.c files.
255 Add regformats/tic6x-*.dat files.
257 2011-08-12 Doug Evans <dje@google.com>
259 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
260 * python/py-symbol.c (sympy_get_type): New function.
261 (symbol_object_getset): Add "type".
263 2011-08-12 Pedro Alves <pedro@codesourcery.com>
267 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
269 (tui_show_register_group): Don't store a byte buffer in the data
271 (tui_register_format): Skip registers with an empty name.
272 (tui_get_register): Store a struct value in the data element's
273 value field instead of a byte buffer holding the raw register
274 contents. Account for optimized-out and unavailable registers
275 when comparing register contents.
277 2011-08-09 Pedro Alves <pedro@codesourcery.com>
279 * printcmd.c (current_display_number): Update comment.
280 (disable_current_display_cleanup): Delete.
281 (do_one_display): Use make_cleanup_restore_integer. Gracefully
282 catch errors thrown while evaluating and printing the display.
284 2011-08-09 Tom Tromey <tromey@redhat.com>
286 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
288 2011-08-09 Pedro Alves <pedro@codesourcery.com>
290 * elfread.c (elf_symtab_read): Rework comments.
291 * maint.c (maintenance_command): Ditto.
292 * somread.c (som_symtab_read): Ditto.
293 * solib.c (solib_find, solib_map_sections, update_solib_list)
294 (solib_add, info_sharedlibrary_command, solib_name_from_address)
295 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
296 (sharedlibrary_command, no_shared_libraries): Ditto.
297 * solib-irix.c (locate_base, disable_break, enable_break)
298 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
299 (irix_current_sos, irix_open_symbol_file_object)
300 (irix_special_symbol_handling): Ditto.
301 * solib-sunos.c (locate_base, first_link_map_member)
302 (sunos_current_sos, disable_break, enable_break)
303 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
305 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
306 (open_symbol_file_object, svr4_current_sos, enable_break)
307 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
309 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
310 (frv_current_sos, enable_break, frv_special_symbol_handling)
311 (frv_solib_create_inferior_hook): Ditto.
312 * solist.h (struct target_so_ops): Extend the comments of the
313 special_symbol_handling, current_sos and open_symbol_file_object
316 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
318 * python/lib/gdb/__init__.py: Auto-load files in command and
319 function directories.
320 * python/python.c (finish_python_initialization): Use
322 * python/lib/gdb/command/pretty_printers.py: Self register
324 * NEWS: Document auto-loading.
326 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
328 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
329 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
330 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
332 2011-08-08 Tom Tromey <tromey@redhat.com>
334 * breakpoint.c (clean_up_filters): Remove.
335 (catch_syscall_split_args): Use VEC_cleanup.
337 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
339 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
340 (main): Uncomment "Demangling error\n".
342 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
344 * solib-target.c (segment_attributes): Make them static.
345 (section_attributes, library_children, library_attributes): Likewise.
346 (library_list_children, library_list_attributes): Likesise.
347 (library_list_elements): Likewise.
349 2011-08-05 Pedro Alves <pedro@codesourcery.com>
351 * exceptions.c (throw_exception): Don't disable the current
353 * printcmd.c (disable_current_display_cleanup): New function.
354 (do_one_display): Install a cleanup to disable the current display
355 if doing the display throws.
357 2011-08-05 Eli Zaretskii <eliz@gnu.org>
359 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
360 initialization of the tp_new member to the corresponding
361 gdbpy_initialize_* function.
362 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
363 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
364 * python/py-function.c (gdbpy_initialize_functions): Likewise.
365 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
366 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
368 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
370 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
371 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
372 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
373 references to current_uiout.
375 2011-08-04 Pedro Alves <pedro@codesourcery.com>
377 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
378 (start_event_loop): Use TRY_CATCH instead of catch_errors.
379 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
380 * top.c (gdb_readline_wrapper): Adjust.
381 * tui/tui-interp.c (tui_command_loop):
382 (_initialize_tui_interp): Don't install it.
384 2011-08-04 Pedro Alves <pedro@codesourcery.com>
386 * ui-out.h (uiout): Rename to ...
387 (current_uiout): ... this.
388 * ui-out.c (uiout): Rename to ...
389 (current_uiout): ... this.
390 * ada-lang.c (print_it_exception, print_one_exception)
391 (print_mention_exception): Adjust.
392 * breakpoint.c (watchpoint_check): Adjust.
393 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
394 (default_collect_info, watchpoints_info, print_one_catch_fork)
395 (print_one_catch_vfork, print_one_catch_syscall)
396 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
397 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
398 (print_it_watchpoint, print_mention_watchpoint)
399 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
400 (print_it_exception_catchpoint, print_one_exception_catchpoint)
401 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
402 (bkpt_print_mention, momentary_bkpt_print_it)
403 (tracepoint_print_mention, update_static_tracepoint)
404 (tracepoints_info, save_breakpoints): Adjust.
405 * cli-out.c (field_separator): Adjust.
406 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
407 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
408 * frame.c (get_current_frame): Adjust.
409 * infcmd.c (run_command_1, print_return_value): Adjust.
410 * inferior.c (inferior_command, info_inferiors_command): Adjust.
411 * infrun.c (print_end_stepping_range_reason): Adjust.
412 (print_signal_exited_reason, print_exited_reason): Adjust.
413 (print_signal_received_reason, print_no_history_reason): Adjust.
414 * interps.c (interp_set): Adjust.
415 * osdata.c (info_osdata_command): Adjust.
416 * progspace.c (maintenance_info_program_spaces_command): Adjust.
417 * remote-fileio.c (remote_fileio_request): Adjust.
418 * remote.c (show_remote_cmd): Adjust.
419 * solib.c (info_sharedlibrary_command): Adjust.
420 * source.c (print_source_lines_base): Adjust.
421 * stack.c (print_stack_frame): Adjust.
422 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
423 * symfile-mem.c (add_vsyscall_page): Adjust.
424 * symfile.c (load_progress, generic_load)
425 (print_transfer_performance): Adjust.
426 * thread.c (info_threads_command, restore_selected_frame)
427 (thread_command): Adjust.
428 * top.c (make_cleanup_restore_ui_file): Adjust.
429 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
430 (print_one_static_tracepoint_marker): Adjust.
431 * cli/cli-cmds.c (print_disassembly): Adjust.
432 * cli/cli-decode.c (print_doc_line): Adjust.
433 * cli/cli-interp.c (safe_execute_command): Adjust.
434 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
435 (handle_redirections): Adjust.
436 * cli/cli-script.c (show_user_1): Adjust.
437 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
438 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
439 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
440 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
441 (mi_cmd_env_dir): Adjust.
442 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
443 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
444 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
445 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
446 (list_args_or_locals): Adjust.
447 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
448 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
449 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
450 (mi_cmd_var_list_children, mi_cmd_var_info_type)
451 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
452 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
453 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
454 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
455 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
456 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
457 (list_available_thread_groups, mi_cmd_list_thread_groups)
458 (mi_cmd_data_list_register_names)
459 (mi_cmd_data_list_changed_registers)
460 (mi_cmd_data_list_register_values, get_register)
461 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
462 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
463 (mi_cmd_list_target_features, mi_cmd_add_inferior)
464 (mi_execute_command, mi_load_progress): Adjust.
465 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
466 * python/py-auto-load.c (print_script, info_auto_load_scripts):
468 * python/py-breakpoint.c (bppy_get_commands): Adjust.
469 * tui/tui-interp.c (tui_command_loop): Adjust.
470 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
472 2011-08-04 Pedro Alves <pedro@codesourcery.com>
474 * exceptions.c (struct catcher): Remove saved_uiout field.
475 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
476 no longer save/resvore the global ui_out builder.
477 (catch_exceptions_with_msg): Save/override/restore the global
478 ui_out builder manually instead of relying on TRY_CATCH to do it.
479 (catch_errors): Save/restore the global ui_out builder manually
480 instead of relying on TRY_CATCH to do it.
481 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
484 * cli/cli-interp.c (safe_execute_command): Save/override/restore
485 the global ui_out builder manually instead of relying on TRY_CATCH
488 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
490 * breakpoint.c (update_global_location_list): Ensure
491 invariant 'first loc marked not duplicated and inserted,
492 following locs marked duplicated/not inserted' is respected
493 for multiple locations at the same address.
494 (unduplicated_should_be_inserted) New function.
495 (swap_insertion) New function.
497 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
499 * stack.c (print_frame_arguments_choices): Comment typo fix.
501 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
504 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
505 * breakpoint.c (insert_bp_location): Remove disabled_breaks
506 argument. Update callers.
508 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
511 * doublest.c (convert_doublest_to_floatformat): Pass correct
512 mantissa length to put_field.
514 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
516 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
517 exception_print code path.
518 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
519 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
520 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
522 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
525 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
526 Remove, merge them into ...
527 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
528 variable args and its initialization.
529 (struct print_args_args, print_args_stub): Remove, merge them into
531 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
533 (do_gdb_disassembly): ... here. Remove variable args and its
535 (print_frame): Remove variable args and its initialization, new
536 variable gdbarch and numargs (from print_args_stub), inline here
537 print_args_stub with a TRY_CATCH.
538 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
540 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
541 New variable e, remove variable btargs and its initialization.
543 2011-08-01 Tristan Gingold <gingold@adacore.com>
545 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
547 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
549 * breakpoint.c (insert_bp_location): Document return value.
550 (insert_breakpoint_locations): Fix documentation.
551 (remove_breakpoints): Add documentation.
553 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
555 * breakpoint.c (insert_bp_location): Remove disabled_breaks
556 argument. Update callers.
558 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
560 * stack.c (print_frame_info): Comment typo fix.
562 2011-07-29 Sterling Augustine <saugustine@google.com>
564 * MAINTAINERS (Write After Approval): Add myself to the list.
566 2011-07-29 Tom Tromey <tromey@redhat.com>
568 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
569 (library_list_start_segment): Update.
570 (library_list_start_section): Update.
572 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
574 * varobj.c (value_get_print_value): Move hint check later into the
575 function. Comment function. Free thevalue before reusing it.
577 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
578 Pedro Alves <pedro@codesourcery.com>
580 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
582 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
583 Assert the result kind.
584 * value.h (value_one): Remove parameter lv.
586 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
588 Fix crash on lval_computed values.
589 * valops.c (value_zero): Use not_lval for lval_computed.
591 2011-07-27 Tom Tromey <tromey@redhat.com>
593 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
594 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
596 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
598 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
599 "ptype" by their typedefs difference.
601 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
603 * dwarf2expr.c (ctx_no_read_reg): New function.
604 * dwarf2expr.h (ctx_no_read_reg): New declaration.
605 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
606 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
607 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
609 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
611 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
612 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
614 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
615 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
616 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
617 (ctx_no_get_base_type): Move the functions here.
618 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
619 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
620 (ctx_no_get_base_type): New declarations.
622 2011-07-27 Tom Tromey <tromey@redhat.com>
624 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
626 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
627 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
629 2011-07-26 Sterling Augustine <saugustine@google.com>
631 * cli/cli-dump.c (dump_binary_file): Change parameter type to
633 (dump_bfd_file): Likewise.
635 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
637 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
638 (remote_hw_watchpoint_length_limit): New variable.
639 (_initialize_remote) add set,show cmds for this new variable.
640 * gdb.texinfo: document these new commands.
641 * NEWS: Mention these new commands.
643 2011-07-26 Pedro Alves <pedro@codesourcery.com>
645 * breakpoint.c (works_in_software_mode_watchpoint): Also return
646 true for software watchpoints.
648 2011-07-26 Joel Brobecker <brobecker@adacore.com>
652 2011-07-26 Tom Tromey <tromey@redhat.com>
654 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
655 * dwarf2read.c (read_indirect_string_at_offset): New function.
656 (read_indirect_string): Use it.
657 (dwarf_decode_macro_bytes): New function, taken from
658 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
659 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
660 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
662 (struct dwarf2_per_objfile) <macro>: New field.
663 (dwarf2_elf_names): Add .debug_macro.
664 (dwarf2_macros_too_long_complaint): Add 'section' argument.
665 (dwarf2_locate_sections): Handle new section.
666 (read_file_scope): Handle DW_AT_GNU_macros.
667 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
669 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
671 * NEWS: Mention dcache configuration.
672 * dcache.c (dcache_set_list, dcache_show_list): New variables.
673 (dcache_size, dcache_line_size): New variables.
674 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
675 (struct dcache_block): Make it expandable.
676 (struct dcache_struct): New field.
677 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
678 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
679 (dcache_poke_byte, dcache_print_line): Adjust.
680 (set_dcache_size, set_dcache_line_size): New functions.
681 (set_dcache_command, show_dcache_command): New functions.
682 (_initialize_dcache): Add new commands.
684 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
686 * progspace.h (struct program_space): Add solib_add_generation.
687 * infcmd.c (post_create_inferior): Only call solib_add if not
689 * solib.c (solib_add): Increment solib_add_generation.
691 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
693 Fix implicit pointer offsets.
694 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
697 2011-07-25 Tom Tromey <tromey@redhat.com>
699 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
701 (ada_exception_sal): Make 'ops' const.
702 (ada_decode_exception_location): Likewise.
703 (ada_decode_assert_location): Likewise.
704 (catch_assert_command): Update.
705 (catch_ada_exception_command): Update.
706 (create_ada_exception_catchpoint): Make 'ops' const.
707 * breakpoint.c (set_raw_breakpoint_without_location)
708 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
710 (create_internal_breakpoint): Update.
711 (init_raw_breakpoint_without_location): Make 'ops' const.
712 (init_raw_breakpoint, init_catchpoint)
713 (create_fork_vfork_event_catchpoint)
714 (create_syscall_event_catchpoint, init_breakpoint_sal)
715 (create_breakpoint_sal, create_breakpoints_sal)
716 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
717 * breakpoint.h (struct breakpoint) <ops>: Now const.
718 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
721 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
723 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
725 2011-07-25 Pedro Alves <pedro@codesourcery.com>
727 * breakpoint.h (print_recreate_thread): Declare.
728 (struct breakpoint): Move step_count, pass_count,
729 number_on_target, static_trace_marker_id,
730 static_trace_marker_id_idx ...
731 (struct tracepoint): ... to this new struct.
732 (get_tracepoint, get_tracepoint_by_number_on_target)
733 (get_tracepoint_by_number): Change return type to struct
735 * breakpoint.c (is_tracepoint_type): New, factored out from
737 (is_tracepoint): Adjust.
738 (print_one_breakpoint_location): Cast to struct tracepoint as
739 necessary, and adjust.
740 (print_recreate_catch_fork, print_recreate_catch_vfork)
741 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
742 print_recreate_thread.
743 (init_breakpoint_sal): New, factored out from
744 create_breakpoint_sal.
745 (create_breakpoint_sal): Reimplement.
746 (create_breakpoint): Allocate a struct tracecepoint if the caller
747 wanted a tracepoint. Use init_breakpoint_sal and
749 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
750 (print_recreate_masked_watchpoint)
751 (print_recreate_exception_catchpoint): Call print_recreate_thread.
752 (tracepoint_print_one_detail): Adjust.
753 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
754 Dump the pass count here.
755 (update_static_tracepoint): Adjust.
756 (addr_string_to_sals): Adjust.
757 (create_tracepoint_from_upload): Adjust. Change return type to
758 struct tracepoint pointer.
759 (trace_pass_set_count): Change parameter type to struct tracepoint
761 (trace_pass_command): Adjust.
762 (get_tracepoint, get_tracepoint_by_number_on_target)
763 (get_tracepoint_by_number): Change return type to struct
764 tracepoint pointer, and adjust.
765 (print_recreate_thread): New, factored out from save_breakpoints.
766 (save_breakpoints): Don't print thread and task and passcount
768 * remote.c (remote_download_tracepoint): Adjust.
769 * tracepoint.c (trace_actions_command, validate_actionline)
770 (start_tracing, tfind_1, trace_find_tracepoint_command)
771 (trace_dump_command): Adjust.
772 (find_matching_tracepoint): Change return type to struct
773 tracepoint pointer, and adjust.
774 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
775 (tfile_trace_find, tfile_fetch_registers): Adjust.
776 * tracepoint.h (create_tracepoint_from_upload): Change return type
777 to struct tracepoint pointer.
778 * ada-lang.c (print_recreate_exception): Call
779 print_recreate_thread.
780 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
782 2011-07-25 Pedro Alves <pedro@codesourcery.com>
784 * breakpoint.h (struct breakpoint): Move ops as first field. Move
785 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
786 cond_exp_valid_block, val, val_valid, watchpoint_frame,
787 watchpoint_thread, watchpoint_triggered ...
788 (struct watchpoint): ... to this new struct.
789 (is_watchpoint): Declare.
790 (install_breakpoint): Add new `internal' parameter.
791 * breakpoint.c (is_watchpoint): Delete declaration.
792 (set_breakpoint_condition): Handle watchpoints.
793 (is_watchpoint): Make public.
794 (watchpoint_in_thread_scope): Change parameter type to struct
796 (watchpoint_del_at_next_stop): Change parameter type to struct
797 watchpoint. Remove assertion. Adjust.
798 (update_watchpoint): Ditto.
799 (insert_breakpoints, breakpoint_init_inferior)
800 (watchpoints_triggered, watchpoint_check)
801 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
802 (bpstat_stop_status, print_one_breakpoint_location)
803 (print_one_breakpoint_location, watchpoint_locations_match): Cast
804 to struct watchpoint as necessary, and adjust.
805 (install_breakpoint): Add `internal' argument. If true, don't
806 mention the new breakpoint. Use set_breakpoint_number.
807 (create_fork_vfork_event_catchpoint)
808 (create_syscall_event_catchpoint): Adjust.
809 (dtor_watchpoint): New.
810 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
811 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
812 (print_it_watchpoint, print_mention_watchpoint)
813 (print_recreate_watchpoint, insert_masked_watchpoint)
814 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
815 (print_one_detail_masked_watchpoint)
816 (print_mention_masked_watchpoint)
817 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
818 necessary, and adjust.
819 (watch_command_1): Allocate and initialize a struct watchpoint
820 instead of a struct breakpoint. Use install_breakpoint.
821 (catch_exec_command_1): Adjust.
822 (base_breakpoint_dtor): Delete accesses to watchpoint specific
824 (delete_breakpoint, enable_breakpoint_disp)
825 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
826 as necessary, and adjust.
827 (initialize_breakpoint_ops): Install dtor_watchpoint as
828 watchpoints' dtor method.
829 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
830 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
831 to struct watchpoint as necessary, and adjust.
833 2011-07-25 Pedro Alves <pedro@codesourcery.com>
835 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
836 the the base class ops table.
837 (catch_exception_breakpoint_ops)
838 (catch_exception_unhandled_breakpoint_ops)
839 (catch_assert_breakpoint_ops): Don't statically initialize.
840 (initialize_ada_catchpoint_ops): New.
841 (_initialize_ada_language): Call it.
842 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
843 (bkpt_breakpoint_ops): Forward declare.
844 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
845 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
846 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
847 (masked_watchpoint_breakpoint_ops)
848 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
849 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
850 base class ops table.
851 (null_re_set, null_check_status, null_works_in_software_mode)
852 (null_resources_needed, null_print_one_detail): Delete.
853 (bkpt_dtor): Rename to ...
854 (base_breakpoint_dtor): ... this. Make static.
855 (bkpt_allocate_location): Rename to ...
856 (base_breakpoint_allocate_location): ... this. Make static.
857 (base_breakpoint_re_set): New.
858 (internal_error_pure_virtual_called): New.
859 (base_breakpoint_insert_location, base_breakpoint_remove_location)
860 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
861 (base_breakpoint_works_in_software_mode)
862 (base_breakpoint_resources_needed, base_breakpoint_print_it)
863 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
864 (base_breakpoint_print_recreate): New functions.
865 (base_breakpoint_ops): New global.
866 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
867 (bkpt_breakpoint_hit): Make static.
868 (bkpt_check_status): Delete.
869 (bkpt_resources_needed): Make static.
870 (bkpt_works_in_software_mode): Delete.
871 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
873 (bkpt_breakpoint_ops, internal_breakpoint_ops)
874 (momentary_breakpoint_ops): Don't statically initialize.
875 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
877 (tracepoint_insert_location, tracepoint_remove_location)
878 (tracepoint_check_status, tracepoint_works_in_software_mode)
879 (tracepoint_print_it): Delete.
880 (tracepoint_breakpoint_ops): Don't statically initialize.
881 (initialize_breakpoint_ops): New.
882 (_initialize_breakpoint): Call it.
883 * breakpoint.h (null_re_set, null_works_in_software_mode)
884 (null_resources_needed, null_check_status, null_print_one_detail):
885 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
886 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
887 (bkpt_check_status, bkpt_resources_needed)
888 (bkpt_works_in_software_mode, bkpt_print_it)
889 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
891 (initialize_breakpoint_ops): Declare.
893 2011-07-25 Pedro Alves <pedro@codesourcery.com>
895 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
896 (momentary_bkpt_print_it): Simplify.
898 2011-07-25 Pedro Alves <pedro@codesourcery.com>
900 Split internal, momentary and user breakpoints breakpoint_ops
903 * breakpoint.c (internal_breakpoint_ops)
904 (momentary_breakpoint_ops): Forward declare.
905 (create_internal_breakpoint): Add new breakpoint_ops parameter.
906 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
907 (create_overlay_event_breakpoint)
908 (create_std_terminate_master_breakpoint)
909 (create_exception_master_breakpoint): Create breakpoints with
910 internal_breakpoint_ops vtable.
911 (set_longjmp_breakpoint): Create momentary breakpoints with
912 momentary_breakpoint_ops vtable, using
913 momentary_breakpoint_from_master.
914 (create_thread_event_breakpoint, create_jit_event_breakpoint)
915 (create_solib_event_breakpoint): Create breakpoints with
916 internal_breakpoint_ops vtable.
917 (set_momentary_breakpoint): Create breakpoints with
918 momentary_breakpoint_ops vtable.
919 (momentary_breakpoint_from_master): New, factored out from
920 clone_momentary_breakpoint.
921 (clone_momentary_breakpoint): Adjust.
922 (watch_command_1): Create scope breakpoints with
923 momentary_breakpoint_ops vtable.
924 (bkpt_re_set): Remove handling of internal and momentary
926 (bkpt_print_mention, bkpt_print_recreate): New.
927 (bkpt_breakpoint_ops): Adjust.
928 (internal_bkpt_re_set, internal_bkpt_check_status)
929 (internal_bkpt_print_it, internal_bkpt_print_mention)
930 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
931 (momentary_bkpt_re_set, momentary_bkpt_check_status)
932 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
933 (momentary_bkpt_print_recreate): New.
934 (momentary_breakpoint_ops): New.
936 2011-07-25 Pedro Alves <pedro@codesourcery.com>
938 Implement most breakpoint_ops methods for all breakpoint types,
939 and move the default handlings to the proper callbacks.
941 * breakpoint.c (update_watchpoint): Always call the breakpoint's
942 works_in_software_mode method.
943 (insert_bp_location): Go through breakpoint_ops->insert_location
944 for software and hardware watchpoints.
945 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
947 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
948 for software and hardware watchpoints.
949 (print_it_typical): Delete.
950 (print_bp_stop_message): Always call the breakpoint_ops->print_it
952 (watchpoint_check): Adjust comment.
953 (bpstat_check_location): Simply always call the breakpoint's
954 breakpoint_hit method.
955 (bpstat_stop_status): Always call the breakpoint's check_status
956 method. Remove special cases for watchpoints and internal event
957 breakpoints from here (moved to the check_status implementations).
958 (print_one_breakpoint_location): Assume b->ops is never NULL.
959 Remove static tracepoint marker id printing from here (moved to
960 the print_one_detail callback implementation of tracepoints).
961 (init_bp_location): Assert OPS is never NULL.
962 (allocate_bp_location): Always call the breakpoint's
963 allocate_location method, and remove the default code from here.
964 (free_bp_location): Always call the location's dtor method, and
965 remove the default code from here.
966 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
967 (set_raw_breakpoint_without_location): Add new breakpoint_ops
968 parameter. Pass it down.
969 (set_raw_breakpoint): Ditto.
970 (print_it_catch_fork): Adjust to take a bpstat as argument.
971 (catch_fork_breakpoint_ops): Install methods.
972 (print_it_catch_vfork): Adjust to take a bpstat as argument.
973 (catch_vfork_breakpoint_ops): Install methods.
974 (dtor_catch_syscall): Call the base dtor.
975 (print_it_catch_syscall): Adjust to take a bpstat as argument.
976 (catch_syscall_breakpoint_ops): Install methods.
977 (dtor_catch_exec): Call the base dtor.
978 (print_it_catch_exec): Adjust to take a bpstat as argument.
979 (catch_exec_breakpoint_ops): Install methods.
980 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
981 the breakpoint's resources_needed method, and remove the default
983 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
985 (clone_momentary_breakpoint): Clone the original's ops.
986 (mention): Always call the breakpoint's print_mention method, and
987 remove the default code from here.
988 (create_breakpoint_sal): Adjust to pass the ops to
989 set_raw_breakpoint rather than setting it manually.
990 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
991 ops to set_raw_breakpoint_without_location rather than setting it
993 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
994 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
995 (ranged_breakpoint_ops): Install methods.
996 (break_range_command): Adjust to pass the ops to
997 set_raw_breakpoint rather than setting it manually.
998 (re_set_watchpoint, breakpoint_hit_watchpoint)
999 (check_status_watchpoint, resources_needed_watchpoint)
1000 (works_in_software_mode_watchpoint, print_it_watchpoint)
1001 (print_mention_watchpoint, print_recreate_watchpoint): New
1003 (watchpoint_breakpoint_ops): Install new methods.
1004 (print_it_masked_watchpoint): New function.
1005 (masked_watchpoint_breakpoint_ops): Install new methods.
1006 (watch_command_1): Adjust to pass the right breakpoint_ops to
1007 set_raw_breakpoint_without_location rather than setting it
1008 manually later. Record the current pspace.
1009 (print_it_exception_catchpoint): Adjust to take a bpstat as
1011 (gnu_v3_exception_catchpoint_ops): Install new methods.
1012 (say_where): New function.
1013 (null_re_set, null_check_status, null_works_in_software_mode)
1014 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1016 (bp_location_ops): New global.
1017 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1018 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1019 (bkpt_check_status, bkpt_resources_needed)
1020 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1021 (bkpt_print_recreate): New functions.
1022 (bkpt_breakpoint_ops): New global.
1023 (tracepoint_re_set, tracepoint_insert_location)
1024 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1025 (tracepoint_check_status, tracepoint_works_in_software_mode)
1026 (tracepoint_print_it, tracepoint_print_one_detail)
1027 (tracepoint_print_mention, tracepoint_print_recreate): New
1029 (tracepoint_breakpoint_ops): New global.
1030 (delete_breakpoint): Always call the breakpoint's dtor method, and
1031 remove the default handling from here.
1032 (breakpoint_re_set_default): Make static.
1033 (breakpoint_re_set_one): Always call the breakpoints re_set
1034 method, and remove the default handling from here.
1035 (trace_command, ftrace_command, strace_command)
1036 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1037 to create_breakpoint.
1038 (save_breakpoints): Always call the breakpoint's print_recreate
1039 method, and remove the default handling from here.
1041 * ada-lang.c (dtor_exception): Call the base dtor.
1042 (re_set_exception): Call the base method.
1043 (print_it_exception, print_it_catch_exception): Adjust to take a
1045 (catch_exception_breakpoint_ops): Install methods.
1046 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1048 (catch_exception_unhandled_breakpoint_ops): Install methods.
1049 (print_it_catch_assert): Adjust to take a bpstat as argument.
1050 (catch_assert_breakpoint_ops): Install methods.
1052 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1053 to take a bpstat as argument.
1054 (enum print_stop_action): Add describing comments to each enum
1056 (breakpoint_re_set_default): Delete declaration.
1057 (null_re_set, null_works_in_software_mode, null_resources_needed)
1058 (null_check_status, null_print_one_detail): Declare.
1059 (bkpt_breakpoint_ops): Declare.
1060 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1061 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1062 (bkpt_check_status, bkpt_resources_needed)
1063 (bkpt_works_in_software_mode, bkpt_print_it)
1064 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1067 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1068 bkpt_breakpoint_ops.
1069 * python/py-breakpoint.c (bppy_init): Ditto.
1071 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1073 * MAINTAINERS (Write After Approval): Add myself to the list.
1075 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1077 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1079 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1081 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1082 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1083 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1085 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1086 (struct i386_debug_reg_state): New.
1087 (i386_init_dregs): New.
1089 (i386_cleanup_dregs): Use i386_init_dregs.
1090 (i386_show_dr): Add state parameter and adjust.
1091 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1093 (i386_remove_aligned_watchpoint): Likewise.
1094 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1095 (i386_update_inferior_debug_regs): New.
1096 (i386_insert_watchpoint): Work on a local mirror of the debug
1097 registers, and only update the inferior on success.
1098 (i386_remove_watchpoint): Ditto.
1099 (i386_region_ok_for_watchpoint): Adjust.
1100 (i386_stopped_data_address): Adjust.
1101 (i386_insert_hw_breakpoint): Adjust.
1102 (i386_remove_hw_breakpoint): Adjust.
1104 2011-07-22 Tom Tromey <tromey@redhat.com>
1106 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1107 from amd64_pseudo_register_read. Change arguments. Call
1108 mark_value_bytes_unavailable when needed.
1109 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1110 set_gdbarch_pseudo_register_read.
1111 * sentinel-frame.c (sentinel_frame_prev_register): Use
1112 regcache_cooked_read_value.
1113 * regcache.h (regcache_cooked_read_value): Declare.
1114 * regcache.c (regcache_cooked_read_value): New function.
1115 (regcache_cooked_read): Call
1116 gdbarch_pseudo_register_read_value if available.
1117 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1118 (i386_pseudo_register_read): Remove.
1119 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1120 i386_pseudo_register_read. Change arguments. Call
1121 mark_value_bytes_unavailable when needed.
1122 (i386_pseudo_register_read_value): New function.
1123 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1124 not set_gdbarch_pseudo_register_read.
1125 * gdbarch.sh (pseudo_register_read_value): New method.
1126 * gdbarch.c, gdbarch.h: Rebuild.
1127 * findvar.c (value_from_register): Call get_frame_register_value.
1129 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1131 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1133 (display_gdb_prompt): Likewise.
1134 (change_annotation_level): Likewise.
1135 (push_prompt): Likewise.
1136 (pop_prompt): Likewise.
1137 (handle_stop_sig): Use get_prompt with a level.
1138 * top.c (command_loop): Use get_prompt with a level.
1139 (set_async_annotation_level): Use set_prompt with a level.
1140 (get_prefix): New function.
1141 (set_prefix): Ditto.
1142 (set_suffix): Ditto.
1143 (get_suffix): Ditto.
1144 (get_prompt): Accept a level argument.
1145 (set_prompt): Accept a level argument. Free old prompts. Set
1146 new_async_prompt if level is 0.
1147 (init_main): Use set_prompt with a level. Do not set
1149 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1150 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1151 Modify set_prompt, get_prompt to account for levels.
1152 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1154 * python/python.c (before_prompt_hook): Use set_prompt.
1156 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1158 * defs.h: Add guard against inclusion in gdbserver.
1159 (struct ptid, ptid_t): Move to common/ptid.h.
1160 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1161 xsnprintf, internal_error): Move to common/common-utils.h.
1163 * gdb_assert.h: Move into common/ sub-directory.
1164 * gdb_locale.h: Ditto.
1165 * gdb_dirent.h: Ditto.
1166 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1167 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1168 Move into common/ptid.h.
1169 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1170 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1171 Change nomem to malloc_failure.
1172 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1173 * utils.c (nomem): Rename to malloc_failure.
1174 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1175 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1176 (gdb_buildargv): Change nomem to malloc_failure.
1177 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1178 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1179 ptid_is_pid): Move into common/ptid.c.
1180 (initialize_infrun): Delete initialization of null_ptid and
1182 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1183 linux_common_xfer_osdata.
1184 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1185 common/ptid.c and common/buffer.c.
1186 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1187 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1188 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1189 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1191 * common/gdb_assert.h: New.
1192 * common/gdb_dirent.h: New.
1193 * common/gdb_locale.h: New.
1194 * common/buffer.c: New.
1195 * common/buffer.h: New.
1196 * common/ptid.c: New.
1197 * common/ptid.h: New.
1198 * common/xml-utils.c: New.
1199 * common/xml-utils.h: New.
1200 * common/common-utils.c: New.
1201 * common/common-utils.h: New.
1202 * common/linux-osdata.c: New.
1203 * common/linux-osdata.h: New.
1204 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1205 * config/arm/linux.mh (NATDEPFILES): Ditto.
1206 * config/i386/linux.mh (NATDEPFILES): Ditto.
1207 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1208 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1209 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1210 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1211 * config/mips/linux.mh (NATDEPFILES): Ditto.
1212 * config/pa/linux.mh (NATDEPFILES): Ditto.
1213 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1214 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1215 * config/s390/s390.mh (NATDEPFILES): Ditto.
1216 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1217 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1218 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1220 2011-07-21 Matt Rice <ratmice@gmail.com>
1222 * NEWS: Add info macros and info definitions commands.
1224 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1226 * NEWS: Document Python prompt substitution hook.
1228 2011-07-18 Matt Rice <ratmice@gmail.com>
1231 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1232 * macrotab.c (foreach_macro): Ditto.
1233 (foreach_macro_in_scope): Ditto.
1234 * macrocmd.c (print_macro_callback): New function.
1235 (info_macro_command): Move some code to print_macro_definition.
1236 (print_macro_definition): New function.
1237 (print_one_macro): Add new arguments to callback.
1238 (info_definitions_command): New function.
1239 (info_macros_command): Ditto.
1240 (_initialize_macrocmd): Add info macros and info definitions commands.
1241 * symtab.c (add_macro_name): Add new arguments to callback.
1243 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1244 Tom Tromey <tromey@redhat.com>
1246 * top.c (set_prompt): Rewrite to free previous prompt, free
1247 asynch_new_prompt and set both on new prompts.
1248 * event-top.c (display_gdb_prompt): Add prompt substitution
1250 * python/python.c (before_prompt_hook): New function.
1252 2011-07-20 Matt Rice <ratmice@gmail.com>
1254 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1255 arguments to store_unsigned_integer.
1257 2011-07-20 Tom Tromey <tromey@redhat.com>
1259 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1260 in some declaration-only cases.
1262 2011-07-18 Tom Tromey <tromey@redhat.com>
1265 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1266 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1267 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1268 <debug_type_section>: New field.
1269 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1270 (load_cu): Use appropriate section.
1271 (create_signatured_type_table_from_index): Add 'section'
1273 (dwarf2_read_index): Only allow a single .debug_types section.
1274 (dw2_get_file_names): Use appropriate section.
1275 (read_type_comp_unit_head): Add 'section' argument.
1276 (create_debug_types_hash_table): Loop over all .debug_types
1278 (init_cu_die_reader): Use appropriate section.
1279 (process_psymtab_comp_unit, load_partial_comp_unit)
1280 (load_full_comp_unit, read_die_and_children, find_partial_die)
1281 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1282 (lookup_signatured_type_at_offset): Add 'section' argument.
1283 (read_signatured_type_at_offset): Add 'sect' argument.
1284 (read_signatured_type): Use appropriate section.
1285 (set_die_type, get_die_type_at_offset): Update.
1286 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1288 (write_psymtabs_to_index): Don't allow index with more than one
1289 .debug_types section.
1291 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1293 Fix crash if referenced CU is aged out.
1294 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1295 xfree of block.data.
1296 (indirect_pieced_value): New variable back_to, use to for xfree of
1298 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1300 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1301 (load_cu): New function from ...
1302 (dw2_do_instantiate_symtab): ... the code here ...
1303 (process_full_comp_unit): ... and here.
1304 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1307 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1309 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1312 2011-07-19 Gary Benson <gbenson@redhat.com>
1314 * infrun.c (struct execution_control_state): New member
1315 stop_func_filled_in.
1316 (clear_stop_func, fill_in_stop_func): New functions.
1317 (handle_inferior_event): Call clear_stop_func rather than
1318 manipulating the execution control state directly.
1319 Call fill_in_stop_func lazily as required rather than
1320 directly calling find_pc_partial_function in all cases.
1322 2011-07-18 Tom Tromey <tromey@redhat.com>
1324 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1325 checking for variable-sized array.
1327 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1329 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1330 of supported languages.
1331 * varobj.c: Add top definitions and basic implementation of the
1332 following callbacks: ada_number_of_children, ada_name_of_variable,
1333 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1334 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1335 (languages): Register Ada-specific callbacks.
1336 (variable_language): Add the Ada case in the language setter switch.
1338 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1340 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1342 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1345 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1346 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1347 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1348 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1349 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1350 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1351 (struct dwarf_expr_context_funcs): New, move here methods from ...
1352 (struct dwarf_expr_context): ... here. New fields funcs.
1353 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1354 (dwarf_expr_ctx_funcs): New.
1355 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1356 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1357 (needs_frame_ctx_funcs): New.
1358 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1360 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1362 * MAINTAINERS (Write After Approval): Add myself to the list.
1364 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1366 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1367 that CIE pointer of an FDE really points to a CIE .
1369 2011-07-15 Hui Zhu <teawater@gmail.com>
1371 * remote.c (remote_get_trace_status): Add comments.
1373 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1375 Code cleanup - constify struct lval_funcs.
1376 * dwarf2loc.c (pieced_value_funcs): Make it const.
1377 * infrun.c (siginfo_value_funcs): Likewise.
1378 * opencl-lang.c (opencl_value_funcs): Likewise.
1379 * valops.c (value_assign, value_ind): Make the funcs variable const.
1380 * value.c (struct value): Make location.computed.funcs target const.
1381 Rearrange the comments.
1382 (allocate_computed_value): Make the funcs parameter target const.
1383 (value_computed_funcs): Return the funcs target const.
1384 (value_free, value_copy, set_value_component_location): Make the funcs
1386 * value.h (allocate_computed_value): Make the funcs parameter target
1388 (value_computed_funcs): Return the funcs target const.
1389 * windows-tdep.c (tlb_value_funcs): Make it const.
1391 2011-07-14 Hui Zhu <teawater@gmail.com>
1393 * remote.c (remote_get_trace_status): Initialize p.
1395 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1398 * remote.c (remote_get_trace_status): New variable ex. Put
1399 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1401 2011-07-13 Tom Tromey <tromey@redhat.com>
1403 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1404 value_from_contents for final conversion.
1406 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1409 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1410 Indent prototypes so they do not get into tags.
1412 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1414 Code cleanup making also optimized out values lazy.
1415 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1416 allocate_optimized_out_value. Twice.
1417 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1418 * findvar.c (read_var_value): Likewise.
1419 * value.c (allocate_optimized_out_value): New function.
1420 * value.h (allocate_optimized_out_value): New declaration.
1422 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1424 Fix occasional crash of CTRL-C during DWARF read in.
1425 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1427 2011-07-11 Tom Tromey <tromey@redhat.com>
1429 * regcache.c (struct regcache_descr): Fix typo.
1430 * i387-tdep.c (i387_supply_xsave): Fix typo.
1432 2011-07-11 Tom Tromey <tromey@redhat.com>
1434 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1435 (read_file_scope, read_type_unit_scope): Use it.
1437 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1439 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1442 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1445 * python/python.c: Set gdbpy_should_print_stack default to off.
1446 (set_python): Deprecate maint set python print-stack to
1448 (_initialize_python): Deprecate maint set/show python print-stack.
1449 Add new prefix command, python. Add new setting, print-backtrace.
1450 * NEWS: Document set python print-stack. Document default change.
1452 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1454 * python/py-inferior.c (infpy_dealloc): New function.
1455 (inferior_to_inferior_object): Return a new object, or a
1456 new reference to the existing object.
1457 (find_thread_object): Cleanup references to inferior.
1458 (delete_thread_object): Ditto.
1459 * python/py-infthread.c (create_thread_object): Do not increment
1460 inferior reference count.
1462 2011-07-08 Tom Tromey <tromey@redhat.com>
1464 * dwarf2loc.c (locexpr_regname): New function.
1465 (locexpr_describe_location_piece): Use it.
1466 (disassemble_dwarf_expression): Add per_cu argument. Use
1468 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1469 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1471 (locexpr_describe_location_1): Add per_cu argument.
1472 (locexpr_describe_location): Update.
1473 (loclist_describe_location): Update.
1475 2011-07-08 Tom Tromey <tromey@redhat.com>
1477 * dwarf2expr.c (execute_stack_op): Add QUIT.
1479 2011-07-07 Hui Zhu <teawater@gmail.com>
1482 2011-07-06 Hui Zhu <teawater@gmail.com>
1483 * remote.c (remote_start_remote): Add TRY_CATCH for
1484 remote_get_trace_status.
1485 * tracepoint.c (disconnect_tracing): Ditto.
1487 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1489 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1490 variables as signed, not unsigned.
1492 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1494 * jit.c (jit_inferior_init): Reformat forward declaration.
1496 2011-07-06 Matt Rice <ratmice@gmail.com>
1498 * MAINTAINERS (Write After Approval): Add myself to the list.
1500 2011-07-06 Hui Zhu <teawater@gmail.com>
1502 * remote.c (remote_start_remote): Add TRY_CATCH for
1503 remote_get_trace_status.
1504 * tracepoint.c (disconnect_tracing): Ditto.
1506 2011-07-05 Tom Tromey <tromey@redhat.com>
1508 * symtab.c (operator_chars): Now static.
1509 * linespec.c (operator_chars): Don't declare.
1511 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1513 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1515 2011-07-05 Tom Tromey <tromey@redhat.com>
1517 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1518 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1519 (TYPE_CPLUS_REALLY_JAVA): New macro.
1520 * dwarf2read.c (process_structure_scope): Set
1521 TYPE_CPLUS_REALLY_JAVA.
1523 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1525 * ada-lang.c: Fix typos.
1526 * amd64-tdep.c: Likewise.
1527 * breakpoint.c: Likewise.
1528 * cli/cli-decode.c: Likewise.
1529 * findcmd.c: Likewise.
1530 * inline-frame.c: Likewise.
1531 * mi/mi-main.c: Likewise.
1532 * minsyms.c: Likewise.
1533 * monitor.c: Likewise.
1534 * monitor.h: Likewise.
1535 * prologue-value.c: Likewise.
1536 * reverse.c: Likewise.
1537 * s390-tdep.c: Likewise.
1539 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1541 * jit.c (jit_inferior_init): Forward declare.
1542 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1544 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1546 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1548 2011-07-04 Tristan Gingold <gingold@adacore.com>
1550 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1551 (tcb_fieldno): Add activation_link field.
1552 (get_known_tasks_addr): Moved and rewritten.
1553 (get_tcb_types_info): Set activation_link field.
1554 (read_known_tasks_array): Add parameter. Rewritten.
1555 (read_known_tasks_list): New function.
1556 (read_known_tasks): New function.
1557 (ada_build_task_list): Call read_known_tasks instead of
1558 read_known_tasks_array.
1559 * ravenscar-thread.c: Add first_task_name constant.
1560 (has_ravenscar_runtime): Check for task list too.
1562 2011-07-04 Tristan Gingold <gingold@adacore.com>
1564 * ada-tasks.c: Renames fieldno to actb_fieldno.
1565 (ada_get_task_number): Indentation.
1566 (get_tcb_types_info): Remove all parameters. Write directly
1568 (ptid_from_atcb_common): Adjust.
1569 (read_atcb): Adjust.
1571 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1573 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1575 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1577 * ui-out.c (ui_out_field_core_addr): Mention that the function
1578 description is in the header file.
1579 * ui-out.h (ui_out_field_core_addr): Document function.
1581 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1583 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1584 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1586 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1588 * symtab.c (expand_line_sal): Remove empty line.
1590 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1592 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1593 same way as ELFOSABI_NONE.
1594 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1596 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1598 * breakpoint.c: Fix typos in comments.
1599 * linespec.c: Likewise.
1600 * symtab.c: Likewise.
1602 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1604 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1605 section in separate object files.
1607 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1609 Fix false GCC warning.
1610 * linespec.c (decode_line_1): Initialize values.
1612 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1614 * linespec.c (find_method): Accept the function type automatically only
1615 if it was specified with parameter types.
1617 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1619 Stop on first linespec terminator instead of eating what we can.
1620 * linespec.c (is_linespec_boundary): New function.
1621 (name_end): Remove function.
1622 (keep_name_info): New parameter on_boundary, replace the body.
1623 (decode_line_1): Provide the parameter to keep_name_info.
1624 (decode_compound): Likewise. Drop the trailing java return type
1627 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1629 Fall back linespec to minimal symbols.
1630 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1631 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1632 (find_method, symbol_found): Change error to cplusplus_error.
1634 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1636 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1638 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1639 Tom Tromey <tromey@redhat.com>
1641 * dwarf2read.c (check_physname): New variable.
1642 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1643 (show_check_physname): New function.
1644 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1646 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1648 * machoread.c (macho_symfile_read): Delete OBE comment.
1650 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1652 * machoread.c (struct macho_oso_data): Delete.
1653 (current_oso): Delete.
1654 (macho_relocate_common_syms): New function, mostly extracted
1656 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1657 Remove code that sets and unset current_oso.
1658 (macho_symfile_relocate): Delete handling of common symbols,
1659 now moved to macho_relocate_common_syms.
1661 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1663 * darwin-nat.c (darwin_ptrace): Add documentation.
1664 Set errno to zero before calling ptrace. If ptrace returns
1665 -1 and errno is zero, then change then return zero.
1666 (darwin_kill_inferior): Issue a warning instead of triggering
1667 a failed assertion when the PT_KILL ptrace operations returned
1670 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1672 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1673 only when inf->private->no_ptrace.
1675 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1677 * ada-lang.c (print_it_exception): Print temporary catchpoints
1678 as "Temporary catchpoint".
1679 (print_mention_exception): Likewise.
1681 2011-07-01 Tom Tromey <tromey@redhat.com>
1683 * jv-lang.c (java_language_defn): Use java_printchar,
1685 (java_get_encoding): New function.
1686 (java_emit_char): Use generic_emit_char.
1687 (java_printchar): New function.
1688 (java_printstr): Likewise.
1690 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1692 * ada-typeprint.c (print_record_type): If unable to decode
1693 the name of the parent type, use the encoded name.
1695 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1697 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1698 pointer to constrained packed array type output.
1699 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1700 packed array output.
1702 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1704 * ada-typeprint.c (print_array_type): removed if condition on show
1705 being negative for bounds printing.
1707 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1709 * ada-lang.c (ada_identical_enum_types_p): New function.
1710 (symbols_are_identical_enums): New function.
1711 (remove_extra_symbols): Do nothing if NSYMS < 2.
1712 Use symbols_are_identical_enums.
1714 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1716 * ada-valprint.c (ada_value_print): Handle typedefs.
1718 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1720 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1722 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1724 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1725 (decode_constrained_packed_array): Likewise.
1726 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1728 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1730 * ada-exp.y (convert_char_literal): Handle typedef types.
1732 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1734 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1736 2011-06-30 Tom Tromey <tromey@redhat.com>
1738 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1739 * valops.c (find_overload_match): Call do_cleanups on early exit
1741 * solib.c (solib_find): Call do_cleanups on early exit path.
1743 2011-06-30 Tom Tromey <tromey@redhat.com>
1745 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1746 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1747 return paths. Defer final do_cleanups until last return.
1748 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1751 2011-06-30 Tom Tromey <tromey@redhat.com>
1753 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1755 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1757 * MAINTAINERS (Write After Approval): Add myself to the list.
1759 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1761 Disable epilogue unwinders on recent GCCs.
1762 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1763 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1764 * dwarf2read.c (process_full_comp_unit): Initialize
1765 EPILOGUE_UNWIND_VALID.
1766 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1767 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1768 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1770 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1772 Code cleanup - reformatting.
1773 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1774 (producer_is_gcc_ge_4): ... here, change the return value.
1775 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1778 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1780 Fix non-only rename list for Fortran modules import.
1781 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1782 cp_add_using_directive caller.
1783 (cp_add_using_directive): New parameter excludes, describe it. New
1784 variables ix and param. Compare if also excludes match. Allocate NEW
1785 with variable size, initialize EXCLUDES there.
1786 (cp_lookup_symbol_imports): New variable excludep, test
1787 current->EXCLUDES with it.
1788 * cp-support.h: Include vec.h.
1789 (struct using_direct): New field excludes, describe it.
1790 (DEF_VEC_P (const_char_ptr)): New.
1791 (cp_add_using_directive): New parameter excludes.
1792 * defs.h (const_char_ptr): New typedef.
1793 * dwarf2read.c (read_import_statement): New variables child_die,
1794 excludes and cleanups, read in excludes.
1795 (read_namespace): Adjust the cp_add_using_directive caller.
1797 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1800 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1801 negative comparisons.
1803 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
1805 * mi/mi-main.c (mi_cmd_list_features): Emit
1806 breakpoint-notifications.
1808 2011-06-29 Tom Tromey <tromey@redhat.com>
1811 * valprint.h (generic_emit_char, generic_printstr): Declare.
1812 * valprint.c (wchar_printable, append_string_as_wide)
1813 (print_wchar): Move from c-lang.c.
1814 (generic_emit_char): New function; mostly taken from c_emit_char.
1815 (generic_printstr): New function; mostly taken from c_printstr.
1816 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1817 represented as arrays.
1818 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1820 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1821 identically to TYPE_CODE_INT.
1822 * f-lang.c (f_get_encoding): New function.
1823 (f_emit_char): Use generic_emit_char.
1824 (f_printchar): Replace comment.
1825 (f_printstr): Use generic_printstr.
1826 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1827 "character" types specially.
1828 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1830 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1832 (c_emit_char): Call generic_emit_char.
1833 (c_printstr): Call generic_printstr.
1835 2011-06-29 Gary Benson <gbenson@redhat.com>
1837 * breakpoint.c (bpstat_what): Removed duplicated case.
1839 2011-06-28 Tom Tromey <tromey@redhat.com>
1841 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
1843 2011-06-27 Tom Tromey <tromey@redhat.com>
1845 * valops.c (find_overload_match): Call do_cleanups before early
1847 * top.c (execute_command): Call do_cleanups before early return.
1848 (command_loop): Likewise.
1849 * stack.c (backtrace_command): Make a null cleanup early. Don't
1850 conditionally call do_cleanups.
1851 * python/py-value.c (TRY_CATCH): Move cleanup handling into
1853 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
1854 so cleanups are always run.
1855 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
1856 * findcmd.c (parse_find_args): Call do_cleanups on early return
1858 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
1859 Don't conditionally call do_cleanups.
1860 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
1863 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1865 * MAINTAINERS (Write After Approval): Use default email address.
1867 2011-06-27 Joel Brobecker <brobecker@adacore.com>
1869 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
1871 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1873 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
1874 saved_regs_mask and copied_regs_mask fields.
1875 (sparc_record_save_insn): New prototype.
1876 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
1877 (sparc_record_save_insn): New function.
1878 (sparc_analyze_prologue): Add head comment. Recognize store insns
1879 of call-saved registers. Use OFFSET consistently. Recognize flat
1880 frames and cache their settings.
1881 (sparc32_skip_prologue): Handle flat frames.
1882 (sparc_frame_cache): Add frame_offset to the base address.
1883 (sparc32_frame_cache): Adjust to new frame description.
1884 (sparc32_frame_prev_register): Likewise.
1885 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1886 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1887 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1888 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
1889 frame by calling sparc_record_save_insn.
1890 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1891 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1892 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1894 2011-06-27 Tristan Gingold <gingold@adacore.com>
1896 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
1897 field by map_addr and map_len.
1898 (dwarf2_read_section): Adjust for the new bfd_mmap api.
1899 (munmap_section_buffer): Likewise.
1901 2011-06-24 Tom Tromey <tromey@redhat.com>
1903 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
1904 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1905 * python/python.c (gdbpy_parameter): Make 'arg' const.
1906 (execute_gdb_command): Likewise.
1907 (gdbpy_decode_line): Likewise. Copy it.
1908 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
1909 (gdbpy_write): Make 'arg' const.
1910 * python/py-type.c (typy_lookup_typename): Make 'type_name'
1912 (gdbpy_lookup_type): Likewise.
1913 * python/py-prettyprint.c (print_children): Make 'name' const.
1914 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
1915 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
1917 * python/py-function.c (fnpy_init): Make 'name' const.
1918 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
1919 (gdbpy_string_to_argv): Make 'input' const.
1920 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
1922 * gdbtypes.h (lookup_typename): Update.
1923 * gdbtypes.c (lookup_typename): Make 'name' const.
1924 (lookup_struct): Likewise.
1925 (lookup_union): Likewise.
1926 (lookup_enum): Likewise.
1928 2011-06-24 Tom Tromey <tromey@redhat.com>
1930 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
1931 gdb_thread_db.h. Move all common/ entries to be together.
1932 (TAGS): Don't depend on DEPFILES.
1934 2011-06-23 Yao Qi <yao@codesourcery.com>
1936 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
1937 * remote.c (remote_start_remote): ... here.
1938 * monitor.c (monitor_open): ... here.
1940 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
1942 * gdbtypes.c (append_composite_type_field_aligned): Fix
1943 calculation of bit position based on alignment.
1945 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1947 * breakpoint.c (bpstat_stop_status): Call the check_status
1948 breakpoint_ops method.
1949 (print_one_breakpoint_location): Also print the condition for Ada
1950 exception catchpoints.
1951 (allocate_bp_location): New, factored out from
1952 allocate_bp_location.
1953 (allocate_bp_location): Adjust. Call the owner breakpoint's
1954 allocate_location method, if there is one.
1955 (free_bp_location): Call the locations's dtor method, if there is
1957 (init_raw_breakpoint_without_location): New breakpoint_ops
1959 (set_raw_breakpoint_without_location): Adjust.
1960 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
1961 (set_raw_breakpoint): Adjust.
1962 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1963 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
1964 re_set and check_status methods.
1965 (init_catchpoint): Don't memset, initialize thread, addr_string
1966 and enable_state. Pass the ops down to init_raw_breakpoint.
1967 (install_catchpoint): Rename to ...
1968 (install_breakpoint): ... this, and make extern.
1969 (create_fork_vfork_event_catchpoint): Adjust.
1970 (catch_exec_breakpoint_ops): Install NULL allocate_location,
1971 re_set and check_status methods.
1972 (create_syscall_event_catchpoint): Adjust.
1973 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1974 (masked_watchpoint_breakpoint_ops): Install NULL
1975 allocate_location, re_set and check_status methods.
1976 (catch_exec_command_1): Adjust.
1977 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
1978 re_set and check_status methods.
1979 (create_ada_exception_breakpoint): Rename to ...
1980 (init_ada_exception_breakpoint): ... this. Add a struct
1981 breakpoint parameter, and delete the exp_string, cond_string and
1982 cond parameters. Use init_raw_breakpoint, and don't install or
1983 mention the breakpoint yet. Don't clear breakpoint fields that
1984 init_raw_breakpoint already clears.
1985 (re_set_breakpoint): Delete, split into ...
1986 (breakpoint_re_set_default, prepare_re_set_context): ... these new
1988 (breakpoint_re_set_one): Call the breakpoint's
1989 breakpoint_ops->re_set implementation, if there's one. Adjust.
1990 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
1991 (struct bp_location_ops): New type.
1992 (struct bp_location): New field `ops'.
1993 (struct breakpoint_ops): New `allocate_location', `re_set' and
1994 `check_status' fields. Make `breakpoint_hit''s description match
1996 (init_bp_location): Declare.
1997 (breakpoint_re_set_default): Declare.
1998 (create_ada_exception_breakpoint): Rename to ...
1999 (init_ada_exception_breakpoint): ... this. Add a struct
2000 breakpoint parameter, and delete the exp_string, cond_string and
2002 (install_breakpoint): Declare.
2003 * ada-lang.c: Include exceptions.h.
2004 <Ada exceptions description>: Update.
2005 (struct ada_catchpoint_location): New type.
2006 (ada_catchpoint_location_dtor): New function.
2007 (ada_catchpoint_location_ops): New global.
2008 (ada_catchpoint): New type.
2009 (create_excep_cond_exprs): New function.
2010 (dtor_exception, allocate_location_exception, re_set_exception)
2011 (should_stop_exception, check_status_exception): New functions.
2012 (print_one_exception, print_mention_exception)
2013 (print_recreate_exception): Adjust.
2014 (dtor_catch_exception, allocate_location_catch_exception)
2015 (re_set_catch_exception, check_status_catch_exception): New
2017 (catch_exception_breakpoint_ops): Install them.
2018 (dtor_catch_exception_unhandled)
2019 (allocate_location_catch_exception_unhandled)
2020 (re_set_catch_exception_unhandled)
2021 (check_status_catch_exception_unhandled): New functions.
2022 (catch_exception_unhandled_breakpoint_ops): Install them.
2023 (dtor_catch_assert, allocate_location_catch_assert)
2024 (re_set_catch_assert, check_status_catch_assert): New functions.
2025 (catch_assert_breakpoint_ops): Install them.
2026 (ada_exception_catchpoint_p): Delete.
2027 (catch_ada_exception_command_split)
2028 (ada_exception_catchpoint_cond_string): Rename exp_string
2029 parameter to excep_string. Adjust.
2030 (ada_parse_catchpoint_condition): Delete.
2031 (ada_exception_sal): Rename the exp_string parameter to
2032 excep_string. Delete the cond_string and cond parameters.
2034 (ada_decode_exception_location): Rename the exp_string parameter
2035 to excep_string. Delete the cond_string and cond parameters.
2037 (create_ada_exception_catchpoint): New function.
2038 (catch_ada_exception_command, ada_decode_assert_location)
2039 (catch_assert_command): Adjust.
2040 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2042 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2044 * ada-lang.c: Include arch-utils.h.
2045 (ada_decode_exception_location): Make static.
2046 (catch_ada_exception_command): Moved here from breakpoint.c.
2047 (ada_decode_assert_location): Make static.
2048 (catch_assert_command): Moved here from breakpoint.c.
2049 (_initialize_ada_lang): Install the exception and assert
2050 catchpoint commands here.
2051 * ada-lang.h (ada_decode_exception_location)
2052 (ada_decode_assert_location): Delete declarations.
2053 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2055 (create_ada_exception_breakpoint): Make extern.
2056 (catch_ada_exception_command, catch_assert_command): Moved to
2058 (add_catch_command): Make extern.
2059 (_initilize_breakpoint): Don't install the exception and assert
2060 catchpoint commands here.
2061 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2063 (add_catch_command, create_ada_exception_breakpoint): Declare.
2065 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2067 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2068 the breakpoint to the breakpoint chain here.
2069 (set_raw_breakpoint_without_location): Add the breakpoint to the
2070 breakpoint chain here.
2071 (init_raw_breakpoint): Adjust comments.
2072 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2074 (init_catchpoint): Don't set the catchpoint's breakpoint number
2076 (install_catchpoint): New function.
2077 (create_fork_vfork_event_catchpoint)
2078 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2079 use install_catchpoint.
2081 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2083 * breakpoint.c (create_catchpoint_without_mention)
2084 (create_catchpoint): Delete.
2086 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2088 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2089 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2090 reference to exec_pathname.
2091 (struct exec_catchpoint): New type.
2092 (dtor_catch_exec): New function.
2093 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2094 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2095 (catch_exec_command_1): Adjust to use init_catchpoint.
2096 (delete_breakpoint): Remove reference to exec_pathname.
2098 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2100 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2101 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2102 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2103 reference to syscalls_to_be_caught.
2104 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2106 (struct syscall_catchpoint): New type.
2107 (dtor_catch_syscall): New function.
2108 (insert_catch_syscall, remove_catch_syscall)
2109 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2110 (print_recreate_catch_syscall): Adjust.
2111 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2112 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2113 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2114 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2115 (masked_watchpoint_breakpoint_ops)
2116 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2117 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2118 there is one. Remove references to syscalls_to_be_caught.
2119 (catching_syscall_number): Adjust.
2120 * ada-lang.c (catch_exception_breakpoint_ops)
2121 (catch_exception_unhandled_breakpoint_ops)
2122 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2124 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2126 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2128 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2129 reference to forked_inferior_pid.
2130 (struct fork_catchpoint): New type.
2131 (breakpoint_hit_catch_fork, print_it_catch_fork)
2132 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2133 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2134 (create_fork_vfork_event_catchpoint): Adjust to use
2137 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2139 * breakpoint.c (add_to_breakpoint_chain)
2140 (init_raw_breakpoint_without_location): New functions, factored
2142 (set_raw_breakpoint_without_location): ... this one.
2143 (init_raw_breakpoint): New function, factored out from
2144 set_raw_breakpoint and adjusted to use
2145 init_raw_breakpoint_without_location.
2146 (set_raw_breakpoint): Adjust.
2147 (init_catchpoint): New function, factored out from
2148 create_catchpoint_without_mention and adjusted to use
2149 init_raw_breakpoint.
2150 (create_catchpoint_without_mention): Adjust.
2152 2011-06-22 Tom Tromey <tromey@redhat.com>
2154 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2155 argument of 0 specially.
2157 2011-06-22 Yao Qi <yao@codesourcery.com>
2159 * infrun.c (handle_inferior_event): Remove write-only local variable
2160 `sw_single_step_trap_p'.
2162 2011-06-20 Tom Tromey <tromey@redhat.com>
2164 * symtab.c (lookup_language_this): End loop if block is NULL.
2166 2011-06-17 Tom Tromey <tromey@redhat.com>
2168 * valops.c (value_of_this): Use lookup_language_this.
2169 * symtab.h (lookup_language_this): Declare.
2170 * symtab.c (lookup_language_this): New function.
2171 (lookup_symbol_aux): Use lookup_language_this.
2172 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2174 2011-06-17 Tom Tromey <tromey@redhat.com>
2176 * value.h (value_of_this): Update.
2177 (value_of_local): Remove.
2178 * valops.c (value_of_this): Rename from value_of_local. Change
2180 * p-exp.y (exp): Update.
2181 (variable): Likewise.
2182 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2184 2011-06-17 Tom Tromey <tromey@redhat.com>
2186 * valops.c (value_of_local): Complain if NAME is NULL.
2187 * std-operator.def (OP_OBJC_SELF): Remove.
2188 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2189 * objc-exp.y (name_not_typename): Use OP_THIS.
2190 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2192 <OP_OBJC_SELF>: Remove.
2193 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2195 2011-06-16 Tristan Gingold <gingold@adacore.com>
2197 * python/py-events.h (gdb_py_events): Make it extern.
2198 * python/py-evtregistry.c (gdb_py_events): Declare.
2200 2011-06-16 Hui Zhu <teawater@gmail.com>
2202 * remote.c (remote_trace_set_readonly_regions): Add check for
2203 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2206 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2208 * arm-linux-tdep.c: Include "auxv.h".
2210 (ARM_LINUX_SIZEOF_VFP): Define.
2211 (arm_linux_supply_vfp): New function.
2212 (arm_linux_collect_vfp): Likewise.
2213 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2214 (arm_linux_fpa_regset_sections): New variable.
2215 (arm_linux_vfp_regset_sections): Likewise.
2216 (arm_linux_core_read_description): New function.
2217 (arm_linux_init_abi): Install arm_linux_core_read_description and
2218 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2219 appropriate for the architecture.
2220 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2221 (tdesc_arm_with_m): Declare.
2222 (tdesc_arm_with_iwmmxt): Likewise.
2223 (tdesc_arm_with_vfpv2): Likewise.
2224 (tdesc_arm_with_vfpv3): Likewise.
2225 (tdesc_arm_with_neon): Likewise.
2226 * arm-linux-nat.c: Move features/*.c includes ...
2227 * arm-tdep.c: ... here.
2228 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2229 target description data structures ...
2230 * arm-tdep.c (_initialize_arm_tdep): ... here.
2231 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2232 HWCAP_VFPv3D16): Move definitions ...
2233 * arm-linux-tdep.h: ... here.
2235 2011-06-15 Hui Zhu <teawater@gmail.com>
2237 * remote.c (remote_trace_set_readonly_regions): Add a check for
2240 2011-06-14 Tom Tromey <tromey@redhat.com>
2242 * coffread.c (coffread_objfile): Rename from current_objfile.
2243 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2244 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2246 2011-06-14 Tom Tromey <tromey@redhat.com>
2248 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2249 (class_symtab): Remove.
2250 (jv_dynamics_progspace_key): New global.
2251 (jv_per_objfile_free): Reset program space data. Update assert.
2252 Don't clear globals.
2253 (get_dynamics_objfile): Use and set program space data.
2254 (get_java_class_symtab): Use get_dynamics_objfile.
2255 (add_class_symbol): Likewise.
2256 (java_link_class_type): Likewise.
2257 (java_object_type, jv_clear_object_type, set_java_object_type):
2259 (get_java_object_type): Update. Don't cache result.
2260 (is_object_type): Don't call set_java_object_type.
2261 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2262 initialize jv_dynamics_progspace_key.
2264 2011-06-14 Tom Tromey <tromey@redhat.com>
2266 * symtab.h (current_objfile): Don't declare.
2267 * objfiles.h (current_objfile): Don't declare.
2268 * objfiles.c (current_objfile): Remove.
2269 * mdebugread.c (current_objfile): New file-scope global.
2270 * dbxread.c (current_objfile): New file-scope global.
2271 * coffread.c (current_objfile): New file-scope global.
2273 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2275 * top.h (line): Rename to ...
2276 (saved_command_line): ... this.
2277 (linesize): Rename to ...
2278 (saved_command_line_size): ... this.
2279 * top.c (line): Rename to ...
2280 (saved_command_line): ... this.
2281 (linesize): Rename to ...
2282 (saved_command_line_size): ... this.
2283 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2284 * event-top.c (command_line_handler): Adjust.
2285 * main.c (captured_main): Adjust.
2287 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2289 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2290 get_frame_func instead of get_frame_pc to determine the code
2291 address used to construct the frame ID.
2292 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2293 (i386_epilogue_frame_this_id): Likewise.
2294 (i386_epilogue_frame_prev_register): New function.
2295 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2296 (i386_stack_tramp_frame_sniffer): Fix coding style.
2297 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2298 (i386_gdbarch_init): Fix comments.
2300 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2302 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2303 instruction when walking back through the instruction stream.
2305 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2307 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2308 fullname parameters order.
2310 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2313 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2315 * psymtab.c (map_symbol_filenames_psymtab)
2316 (map_partial_symbol_filenames): Likewise.
2317 * psymtab.h: Include symfile.h.
2318 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2319 * symfile.h (symbol_filename_ftype): New.
2320 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2321 map_symbol_filenames, clarify more the naming in comment.
2323 2011-06-07 Doug Evans <dje@google.com>
2325 * cc-with-index.sh: Fix typos in comment.
2326 Look for ../../gdb, for fullname.exp.
2328 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2329 Pedro Alves <pedro@codesourcery.com>
2331 * cli/cli-cmds.c (shell_escape): Use waitpid.
2332 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2334 2011-06-07 Tristan Gingold <gingold@adacore.com>
2336 * xcoffread.c (dwarf2_xcoff_names): New variable.
2337 (aix_process_linenos): Add a guard.
2338 (xcoff_symfile_finish): Free dwarf2.
2339 (xcoff_initial_scan): Add dwarf2 support.
2341 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2343 * infcall.c (run_inferior_call): Don't mask async. Instead force
2344 a synchronous wait, if the target can async.
2346 * target.h (struct target_ops): Delete to_async_mask.
2347 (target_async_mask): Delete.
2348 * target.c (update_current_target): Delete references to to_async_mask.
2349 * linux-nat.c (linux_nat_async_mask_value): Delete.
2350 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2351 to linux_nat_async_mask_value.
2352 (linux_nat_async_mask): Delete.
2353 (linux_nat_async, linux_nat_close): Remove references to
2354 linux_nat_async_mask_value.
2355 * record.c (record_async_mask_value): Delete.
2356 (record_async): Remove references to record_async_mask_value.
2357 (record_async_mask): Delete.
2358 (record_can_async_p, record_is_async_p): Remove references to
2359 record_async_mask_value.
2360 (init_record_ops, init_record_core_ops): Remove references to
2362 * remote.c (remote_async_mask_value): Delete.
2363 (init_remote_ops): Remove reference to remote_async_mask.
2364 (remote_can_async_p, remote_is_async_p): Remove references to
2365 remote_async_mask_value.
2366 (remote_async): Remove references to remote_async_mask_value.
2367 (remote_async_mask): Delete.
2369 * infrun.c (fetch_inferior_event): Don't claim registers changed
2370 if the current thread is already not executing.
2372 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2374 From Stephen Kitt <steve@sk2.org>
2375 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2376 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2378 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2380 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2381 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2383 2011-06-03 Tom Tromey <tromey@redhat.com>
2385 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2387 * python/py-exitedevent.c (create_exited_event_object): Change
2388 type of 'exit_code'. Optionally add exit_code attribute.
2389 (emit_exited_event): Change type of 'exit_code'.
2390 * python/py-event.h (emit_exited_event): Update.
2391 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2392 * infrun.c (handle_inferior_event): Set exit code fields on
2394 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2396 * inferior.c (exit_inferior_1): Initialize new fields.
2398 2011-06-03 Tom Tromey <tromey@redhat.com>
2400 * dwarf2expr.c (get_signed_type): New function.
2401 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2403 2011-06-02 Keith Seitz <keiths@redhat.com>
2405 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2407 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2409 * top.h (simplified_command_loop): Delete declaration.
2411 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2413 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2414 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2416 2011-06-01 Yao Qi <yao@codesourcery.com>
2418 * objfiles.h (obj_section_addr): Update reference to objfile from
2420 (obj_section_endaddr): Likewise.
2422 2011-06-01 Daniel Jacobowitz <drow@false.org>
2424 * MAINTAINERS: Update my email address and affiliation. Also
2425 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2427 2010-05-31 Keith Seitz <keiths@redhat.com>
2430 * linespec.c (get_search_block): New function.
2431 (find_methods): Add FILE_SYMTATB parameter and use it and
2432 get_search_block to pass an appropriate block to
2433 lookup_symbol_in_namespace.
2434 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2435 Check if *ARGPTR starts with a filename first.
2436 If it does, call locate_first_half again to locate the next
2437 "first half" of the linespec.
2438 Pass FILE_SYMTATB to decode_objc and decode_compound.
2439 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2440 (locate_first_half): Stop on the first colon seen.
2441 (decode_compound): Add FILE_SYMTAB parameter.
2442 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2443 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2444 get_search_block with lookup_symbol.
2445 (find_method): Add FILE_SYMTAB parameter and pass it to
2447 (decode_objc): Use get_search_block.
2449 2010-05-31 Keith Seitz <keiths@redhat.com>
2452 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2453 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2454 and CP_ANONYMOUS_NAMESPACE_LEN.
2455 (cp_is_anonymous): Likewise.
2456 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2457 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2458 * dwarf2read.c (namespace_name): Likewise.
2459 (fixup_partial_die): Likewise.
2460 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2461 seen in the input, keep it.
2463 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2465 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2466 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2467 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2468 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2469 * remote.c (_initialize_remote): Register
2470 async_remote_interrupt_twice directly as
2471 sigint_remote_twice_token event.
2473 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2475 * target.h (enum inferior_event_type): Delete INF_ERROR.
2476 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2478 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2480 * interps.c (interp_set): Don't cancel continuations.
2482 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2484 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2486 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2488 * continuations.h (continuation_ftype): Add `err' parameter.
2489 Document parameters.
2490 (do_all_continuations, do_all_continuations_thread)
2491 (do_all_intermediate_continuations)
2492 (do_all_intermediate_continuations_thread)
2493 (do_all_inferior_continuations): Add `err' parameter.
2494 * continuations.c (do_my_continuations_1, do_my_continuations)
2495 (do_all_inferior_continuations, do_all_continuations_ptid)
2496 (do_all_continuations_thread_callback)
2497 (do_all_continuations_thread, do_all_continuations)
2498 (do_all_intermediate_continuations_thread_callback)
2499 (do_all_intermediate_continuations_thread)
2500 (do_all_intermediate_continuations): Add `err' parameter, and pass
2501 it down all the way to the continuations proper.
2502 * inf-loop.c (inferior_event_handler): If fetching an inferior
2503 event throws an error, don't pop the target, and still call the
2504 continuations, but with `err' set. Adjust all other continuation
2506 * breakpoint.c (until_break_command_continuation): Add `err'
2508 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2509 issue another step if `err' is set.
2510 (struct until_next_continuation_args): New.
2511 (until_next_continuation): Add `err' parameter. Adjust.
2512 (until_next_command): Adjust.
2513 (struct finish_command_continuation_args): Add `thread' field.
2514 (finish_command_continuation): Add `err' parameter. Handle it.
2515 (finish_forward): Adjust.
2516 (attach_command_continuation): Add `err' parameter. Handle it.
2517 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2518 cancel the continuations.
2519 * interps.c (interp_set): Adjust to cancel the continuations.
2520 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2521 continuations rather than discarding.
2522 (free_thread): Don't clear thread inferior resources here.
2523 (delete_thread_1): Do it here instead. And do it before removing
2524 the thread from the threads list. Tag the thread as exited before
2525 clearing thread inferior resources.
2527 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2529 * infcall.c (call_function_by_hand): Rephrase error message.
2531 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2533 * defs.h (struct thread_info, struct inferior): Delete forward
2535 * breakpoint.h (struct thread_info): New forward declaration.
2536 * observer.sh (struct inferior): New forward declaration.
2537 * python/python-internal.h (struct inferior): New forward
2540 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2542 * defs.h (struct continuation, continuation_ftype)
2543 (continuation_free_arg_ftype, add_continuation)
2544 (do_all_continuations, do_all_continuations_thread)
2545 (discard_all_continuations, discard_all_continuations_thread)
2546 (add_intermediate_continuation, do_all_intermediate_continuations)
2547 (do_all_intermediate_continuations_thread)
2548 (discard_all_intermediate_continuations)
2549 (discard_all_intermediate_continuations_thread)
2550 (add_inferior_continuation, do_all_inferior_continuations)
2551 (discard_all_inferior_continuations): Move to ...
2552 * continuations.h: ... this new file.
2553 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2554 infcmd.c, inferior.c, infrun.c, interps.c: Include
2557 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2558 Doug Evans <dje@google.com>
2560 Fix PR 10970, PR 12702.
2561 * linux-nat.c (linux_lwp_is_zombie): New function.
2562 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2563 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2565 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2567 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2569 (add_continuation, add_intermediate_continuation)
2570 (add_inferior_continuation): Use them.
2571 * continuations.c (struct continuation): Use them.
2572 (make_continuation_ftype): Delete.
2573 (make_continuation, add_inferior_continuation, add_continuation)
2574 (add_intermediate_continuation): Use continuation_ftype and
2575 continuation_free_arg_ftype. Rename parameters to shorter names.
2577 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2579 * continuations.c (make_continuation): Make it return void.
2580 (do_my_continuations): Rename to ...
2581 (do_my_continuations_1): ... this. Remove old_chain parameter and
2583 (do_my_continuations): New.
2584 (discard_my_continuations): Rename to ...
2585 (discard_my_continuations_1): ... this. Remove old_chain
2586 parameter and adjust.
2587 (discard_my_continuations): New.
2588 (add_inferior_continuation): Simplify.
2589 (do_all_inferior_continuations): Reimplement on top
2590 do_my_continuations.
2591 (discard_all_inferior_continuations): Simplify.
2592 (add_continuation): Simplify.
2593 (do_all_continuations_ptid): Simplify.
2594 (discard_all_continuations_thread_callback): Simplify.
2595 (add_intermediate_continuation): Simplify.
2596 (discard_all_intermediate_continuations_thread_callback):
2599 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2601 * utils.c (struct continuation, add_continuation)
2602 (add_inferior_continuation)
2603 (do_all_inferior_continuations, discard_all_inferior_continuations)
2604 (restore_thread_cleanup, do_all_continuations_ptid)
2605 (do_all_continuations_thread_callback)
2606 (do_all_continuations_thread, do_all_continuations)
2607 (discard_all_continuations_thread_callback)
2608 (discard_all_continuations_thread, discard_all_continuations)
2609 (add_intermediate_continuation)
2610 (do_all_intermediate_continuations_thread_callback)
2611 (do_all_intermediate_continuations_thread)
2612 (do_all_intermediate_continuations)
2613 (discard_all_intermediate_continuations_thread_callback)
2614 (discard_all_intermediate_continuations_thread)
2615 (discard_all_intermediate_continuations): Move to ...
2616 * continuations.c: ... this new file, and adjust to no longer
2617 implement continuations on top of cleanups.
2618 * Makefile.in (SFILES): Add continuations.c.
2619 (COMMON_OBS): Add continuations.o.
2621 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2623 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2624 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2625 Internal error on invalid values.
2626 * reverse.c: Don't handle EXEC_ERROR.
2627 * mi/mi-main.c: Don't handle EXEC_ERROR.
2629 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2631 * record.c: Include event-loop.h, inf-loop.h.
2632 (record_beneath_to_async): New global.
2633 (tmp_to_async): New global.
2634 (record_async_inferior_event_token): New global.
2635 (record_open_1): Don't error out if async is enabled.
2636 (record_open): Handle to_async. Create an async event source in
2638 (record_close): Delete the async event source.
2639 (record_resumed): New global.
2640 (record_execution_dir): New global.
2641 (record_resume, record_core_resume): Set them. Register the
2642 target on the event loop.
2643 (record_wait): Rename to ...
2644 (record_wait_1): ... this. Add more debug output. Handle
2645 TARGET_WNOHANG, and the target beneath returning
2646 TARGET_WAITKIND_IGNORE.
2647 (record_wait): Reimplement on top of record_wait_1.
2648 (record_async_mask_value): New global.
2649 (record_async, record_async_mask, record_can_async_p)
2650 (record_is_async_p, record_execution_direction): New functions.
2651 (init_record_ops, init_record_core_ops): Install new methods.
2652 * infrun.c (fetch_inferior_event): Temporarily switch the global
2653 execution direction to the direction the target was going.
2654 (execution_direction): Change type to int.
2655 * target.c (default_execution_direction): New function.
2656 (update_current_target): Inherit and de_fault
2657 to_execution_direction.
2658 * target.h (struct target_ops) <to_execution_direction>: New
2660 (target_execution_direction): New macro.
2661 * inferior.h (execution_direction): Change type to int.
2663 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2665 * infcall.c (call_function_by_hand): Don't allow calling functions
2666 in reverse execution mode.
2668 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2670 * infcmd.c (finish_command): Allow async finish in reverse.
2672 2011-05-26 Yao Qi <yao@codesourcery.com>
2674 * gdb_thread_db.h: Delete. Move to ...
2675 * common/gdb_thread_db.h: ... here.
2677 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2679 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2680 function's entry point instead of a manually managed momentary
2681 breakpoint, and only ever issue one proceed call.
2682 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2683 doing a reverse-finish, switch to stepi mode, to do another step.
2684 (insert_step_resume_breakpoint_at_sal): Make public.
2685 (normal_stop): No need to save function value return registers if
2687 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2689 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2691 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2692 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2693 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2695 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2696 step-resume breakpoints.
2697 (print_it_typical): Handle bp_hp_step_resume.
2698 (bpstat_what): Ditto.
2699 (bptype_string): Ditto.
2700 (print_one_breakpoint_location): Ditto.
2701 (allocate_bp_location): Ditto.
2703 (breakpoint_re_set_one): Ditto.
2704 * infrun.c (handle_inferior_event): Adjust. Split
2705 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2706 BPSTAT_WHAT_HP_STEP_RESUME.
2707 (insert_step_resume_breakpoint_at_sal): Rename to ...
2708 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2709 parameter. Handle it.
2710 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2711 insert_step_resume_breakpoint_at_sal_1.
2712 (insert_step_resume_breakpoint_at_frame): Rename to ...
2713 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2714 set a high-priority step-resume breakpoint.
2715 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2716 (insert_step_resume_breakpoint_at_caller): Ditto.
2718 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2720 * breakpoint.c (iterate_over_related_breakpoints): New.
2721 (do_map_delete_breakpoint): New.
2722 (delete_command): Pass do_map_delete_breakpoint to
2723 map_breakpoint_numbers.
2724 (do_disable_breakpoint): New.
2725 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2727 (do_enable_breakpoint): Rename to ...
2728 (enable_breakpoint_disp): ... this.
2729 (enable_breakpoint): Adjust.
2730 (do_enable_breakpoint): New.
2731 (enable_once_breakpoint): Delete.
2732 (do_map_enable_breakpoint): New.
2733 (do_map_enable_once_breakpoint): New.
2734 (enable_once_command, enable_delete_command)
2735 (delete_trace_command): Iterate over the breakpoint's related
2738 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2740 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2741 for ALPHA_ZERO_REGNUM.
2742 (alpha_supply_int_regs): Explicitly supply zero as the value for
2743 ALPHA_ZERO_REGNUM in the register cache.
2744 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2746 2011-05-26 Yao Qi <yao@codesourcery.com>
2748 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2750 2011-05-26 Tristan Gingold <gingold@adacore.com>
2752 * symfile.h (struct dwarf2_section_names): New type.
2753 (struct dwarf2_debug_sections): New type.
2754 (dwarf2_has_info): Add parameter.
2755 * dwarf2read.c (dwarf2_elf_names): New variable.
2756 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2757 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2758 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2759 (dwarf2_has_info): Add names parameter. Pass names
2760 to dwarf2_locate_sections.
2761 (section_is_p): Rewrite using the names parameter.
2762 (dwarf2_locate_sections): Use section names from the names parameter.
2763 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2764 * elfread.c (read_psyms): Ditto.
2765 * machoread.c (macho_symfile_read): Ditto.
2767 2011-05-25 Andreas Schwab <schwab@redhat.com>
2770 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2772 2011-05-24 Keith Seitz <keiths@redhat.com>
2775 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2776 (decode_compound): Unconditionally call keep_name_info.
2778 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2780 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2781 scope, clear its command list.
2782 (map_breakpoint_numbers): Don't walk the related breakpoints list
2785 2011-05-24 Tom Tromey <tromey@redhat.com>
2787 * MAINTAINERS: Move Jim Blandy to past maintainers.
2789 2011-05-24 Tristan Gingold <gingold@adacore.com>
2791 * symfile.h (enum dwarf2_section_enum): New type.
2792 (dwarf2_get_section_info): New prototype.
2793 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2794 section_name by sect. Use a switch to select the info.
2795 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2796 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2798 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2800 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2801 shared library event breakpoint if there's no execution.
2803 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2805 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2806 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2808 2011-05-23 Tom Tromey <tromey@redhat.com>
2810 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2813 2011-05-23 Doug Evans <dje@google.com>
2815 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2816 entry for RuntimeError to doc string.
2818 2011-05-23 Jerome Guitton <guitton@adacore.com>
2820 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2821 sequence for probing loops.
2823 2011-05-23 Pedro Alves <pedro@codesourcery.com>
2825 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2828 2011-05-21 Mark Kettenis <kettenis@gnu.org>
2830 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2831 zero as the value for %g0 in the register cache.
2832 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2833 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2835 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2837 * infrun.c (proceed): Set previous_inferior_ptid here.
2838 (init_wait_for_inferior): Initialize previous_inferior_ptid from
2839 inferior_ptid, not null_ptid.
2840 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
2841 (fetch_inferior_event): Nor here.
2843 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2845 * inf-loop.c (inferior_event_handler): Only output a message if
2848 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
2850 * MAINTAINERS: Update my e-mail address.
2852 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2854 * infrun.c (proceed): Switch the inferior event loop to
2855 INF_EXEC_COMPLETE if the target refused to resume from a
2858 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2860 * infcmd.c: Include "inf-loop.h".
2861 (step_once): When stepping into an inline subroutine, pretend the
2862 target has run. If the target can async, switch the inferior
2863 event loop to INF_EXEC_COMPLETE.
2864 * inferior.h (user_visible_resume_ptid): Declare.
2865 * infrun.c (user_visible_resume_ptid): New function, factored out
2868 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
2869 that the current thread is running. Merge async and sync
2872 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2874 * infcmd.c (step_1): Simplify synchronous case.
2876 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2878 * tracepoint.c: Include exceptions.h.
2879 (TFILE_PID): Move higher in file.
2880 (tfile_open): Delay pushing the tfile target until we're assured
2881 the tfile header is present in the file. Wrap reading the initial
2882 newline-terminated lines in TRY_CATCH. Pop the target if the
2883 initial setup failed. Add the tfile's thread immediately
2884 aftwards, before any non-essential setup. Don't skip
2885 post_create_inferior if there are no traceframes present in the
2887 (tfile_close): Remove redundant check for null before xfree call.
2888 (tfile_thread_alive): New function.
2889 (init_tfile_ops): Register it as to_thread_alive callback.
2891 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2893 * tracepoint.c (tfile_open): Delete #if 0'd code.
2895 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2897 Fix -readnow for -gdwarf-4 unused type units.
2898 * dwarf2read.c (struct signatured_type): Remove the field offset.
2899 (create_signatured_type_table_from_index): Remove its initialization.
2900 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
2901 instead. Add a complaint call.
2902 (process_psymtab_comp_unit): Change assignment to gdb_assert.
2903 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
2904 (lookup_signatured_type_at_offset, read_signatured_type)
2905 (write_one_signatured_type): Update the field for per_cu.
2907 2011-05-19 Tom Tromey <tromey@redhat.com>
2909 * python/py-inferior.c (python_inferior_exit): Use
2911 (python_on_resume): Likewise.
2913 2011-05-19 Matt Rice <ratmice@gmail.com>
2915 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2917 2011-05-19 Hui Zhu <teawater@gmail.com>
2919 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
2921 2011-05-19 Hui Zhu <teawater@gmail.com>
2923 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
2925 2011-05-18 Tom Tromey <tromey@redhat.com>
2927 * dwarf2read.c (dwarf2_add_field): Constify.
2928 * value.c (value_static_field): Constify.
2929 * gdbtypes.h (struct main_type) <field.field_location.physname>:
2931 * ax-gdb.c (gen_static_field): Constify
2933 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2935 * linux-nat.c (kill_callback): Use SIGKILL first.
2937 2011-05-18 Joel Brobecker <brobecker@adacore.com>
2939 * ada-lang.c (print_it_exception): Avoid use of sprintf.
2941 2011-05-18 Tom Tromey <tromey@redhat.com>
2943 * value.c (value_fn_field): Constify.
2944 * symtab.c (gdb_mangle_name): Constify.
2945 * stabsread.c (update_method_name_from_physname): Make 'physname'
2947 * p-typeprint.c (pascal_type_print_method_args): Make arguments
2948 const. Use explicit fputc_filtered loop.
2949 (pascal_type_print_base): Constify.
2950 * p-lang.h (pascal_type_print_method_args): Update.
2951 * linespec.c (add_matching_methods): Constify.
2952 (add_constructors): Likewise.
2953 * jv-typeprint.c (java_type_print_base): Constify.
2954 * gdbtypes.h (struct cplus_struct_type)
2955 <fn_fieldlist.fn_field.physname>: Now const.
2956 * dwarf2read.c (compute_delayed_physnames): Constify.
2957 (dwarf2_add_member_fn): Likewise.
2958 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
2960 2011-05-18 Pedro Alves <pedro@codesourcery.com>
2962 * infrun.c (resume): Mention which is the current thread, and its
2963 current PC in debug output.
2964 (prepare_to_proceed): Mention the thread switching in debug
2967 2011-05-18 Tom Tromey <tromey@redhat.com>
2969 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
2970 path check. Use xmalloc and cleanups.
2971 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
2973 2011-05-17 Tom Tromey <tromey@redhat.com>
2975 * cp-valprint.c (cp_print_value_fields): Catch errors from
2978 2011-05-17 Tom Tromey <tromey@redhat.com>
2980 * dwarf2read.c (dwarf2_get_die_type): Call
2981 get_die_type_at_offset.
2982 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
2983 get_base_type function.
2985 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
2987 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
2990 2011-05-16 Doug Evans <dje@google.com>
2992 * python/py-auto-load.c (source_section_scripts): Mention objfile
2995 2011-05-15 Doug Evans <dje@google.com>
2997 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
2998 (try_thread_db_load_from_pdir): Call it. If unable to find
2999 libthread_db in directory of libpthread, see if we're looking at
3000 the separate-debug-info copy.
3002 * python/py-autoload.c (print_script): Print "Missing" instead of
3003 "No" for missing scripts.
3004 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3006 2011-05-13 Doug Evans <dje@google.com>
3008 * ui-file.c (stdio_file_write_async_safe): Add comment.
3010 2011-05-14 Hui Zhu <teawater@gmail.com>
3012 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3014 2011-05-13 Doug Evans <dje@google.com>
3016 Support $pdir and $sdir in libthread-db-search-path.
3017 * NEWS: Mention $sdir,$pdir.
3018 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3019 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3020 (try_thread_db_load_from_sdir): New function.
3021 (try_thread_db_load_from_dir): New function.
3022 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3023 system directories if search of libthread-db-search-path fails,
3024 that is now done via $sdir.
3025 (has_libpthread): New function.
3026 (thread_db_load): Remove search for libthread_db in directory of
3027 libpthread, that is now done via $pdir.
3029 * NEWS: Mention "info auto-load-scripts".
3030 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3031 script_not_found_warning_printed.
3032 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3033 all callers updated. Initialize script_not_found_warning_printed.
3034 (get_auto_load_pspace_data_for_loading): New function.
3035 (maybe_add_script): New function.
3036 (source_section_scripts): Simplify. Only print one warning regardless
3037 of the number of auto-load scripts not found.
3038 (clear_section_scripts): Clear script_not_found_warning_printed.
3039 (auto_load_objfile_script): Record script in hash table.
3040 (count_matching_scripts): New function.
3041 (maybe_print_script): Renamed from maybe_print_section_script, all
3042 callers updated. Rewrite to use ui_out_*.
3043 (info_auto_load_scripts): Renamed from
3044 maintenance_print_section_scripts, all callers updated.
3045 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3046 renamed as "info auto-load-scripts".
3048 2011-05-13 Tom Tromey <tromey@redhat.com>
3050 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3051 (read_sleb128): Likewise.
3053 2011-05-13 Tom Tromey <tromey@redhat.com>
3055 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3058 2011-05-13 Doug Evans <dje@google.com>
3060 * linux-nat.c (debug_linux_nat_async): Delete.
3061 Replace all references to use debug_linux_nat instead.
3062 (show_debug_linux_nat_async): Delete.
3063 (sigchld_handler): Call ui_file_write_async_safe instead of
3065 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3066 * ui-file.c (struct ui_file): New member to_write_async_safe.
3067 (null_file_write_async_safe): New function.
3068 (ui_file_write_async_safe): New function.
3069 (set_ui_file_write_async_safe): New function.
3070 (ui_file_new): Initialize to_write_async_safe.
3071 (stdio_file_write_async_safe): New function.
3072 (struct stdio_file): New member fd.
3073 (stdio_file_new): Initialize to_write_async_safe, fd.
3074 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3076 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3077 (set_ui_file_write_async_safe): Declare.
3078 (ui_file_write_async_safe): Declare.
3080 2011-05-13 Tom Tromey <tromey@redhat.com>
3082 * utils.c (do_value_free): New function.
3083 (make_cleanup_value_free): Likewise.
3084 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3086 (dwarf2_loc_desc_needs_frame): Call
3087 make_cleanup_value_free_to_mark.
3088 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3089 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3091 (new_dwarf_expr_context): Don't call value_mark.
3092 * dwarf2-frame.c (execute_stack_op): Call
3093 make_cleanup_value_free_to_mark.
3094 * defs.h (make_cleanup_value_free): Declare.
3096 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3098 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3099 prepare_execute_command.
3100 * top.c (prepare_execute_command): Return cleanup.
3101 (execute_command): Use cleanup from prepare_execute_command.
3102 * top.h (prepare_execute_command): Change prototype to return
3104 * defs.h (struct value): Add opaque declaration.
3105 (make_cleanup_value_free_to_mark): Add prototype.
3106 * utils.c (do_value_free_to_mark): New function.
3107 (make_cleanup_value_free_to_mark): Likewise.
3109 2011-05-12 Tom Tromey <tromey@redhat.com>
3111 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3112 cast left-hand-side to unsigned.
3114 2011-05-12 Tom Tromey <tromey@redhat.com>
3117 * value.h (value_from_contents): Declare.
3118 * value.c (value_from_contents): New function.
3119 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3120 (dwarf2_get_die_type): New function.
3121 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3122 (allocate_piece_closure): Acquire reference to values.
3123 (read_pieced_value): Update for value-based expressions.
3124 (write_pieced_value): Likewise.
3125 (free_pieced_value_closure): Call value_free as needed.
3126 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3127 Update for value-based expressions.
3128 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3129 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3130 <get_base_type>: New field.
3131 (struct dwarf_expr_piece) <v.value>: Change type.
3132 <v.regno>: New field.
3133 (struct dwarf_expr_context) <mark>: New field.
3134 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3135 (dwarf_expr_pop, dwarf_expr_push): Remove.
3136 (dwarf_expr_push_address): Declare.
3137 * dwarf2expr.c (dwarf_arch_cookie): New global.
3138 (struct dwarf_gdbarch_types): New.
3139 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3141 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3143 (dwarf_expr_push_address): New function.
3144 (dwarf_expr_pop): Now static.
3145 (dwarf_expr_fetch): Change return type.
3146 (dwarf_require_integral): New function.
3147 (dwarf_expr_fetch): Simplify.
3148 (add_piece): Update.
3149 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3151 (execute_stack_op) <sign_ext>: Remove.
3152 Use values for DWARF stack.
3153 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3154 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3156 (_initialize_dwarf2expr): New function.
3157 (add_piece): Update.
3158 (new_dwarf_expr_context): Set new field.
3159 (free_dwarf_expr_context): Call value_free_to_mark.
3160 * dwarf2-frame.c (no_base_type): New function.
3161 (execute_stack_op): Set get_base_type field. Update.
3163 2011-05-12 Tom Tromey <tromey@redhat.com>
3165 * dwarf2read.c (read_common_block): Fix formatting.
3167 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3169 * breakpoint.c (disable_breakpoint): Disable all locations
3170 associated with a tracepoint on target if a trace experiment is
3172 (disable_command): Disable a specific tracepoint location on target if
3173 a trace experiment is running.
3174 (do_enable_breakpoint): Enable all locations associated with a
3175 tracepoint on target if a trace experiment is running.
3176 (enable_command) Enable a specific tracepoint location on target if a
3177 trace experiment is running.
3178 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3179 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3180 to_disable_tracepoint.
3181 * target.h: Add declaration of struct bp_location.
3182 (struct target_ops): Add new functions
3183 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3184 to_disable_tracepoint to target operations.
3185 (target_supports_enable_disable_tracepoint): New macro.
3186 (target_enable_tracepoint): New macro.
3187 (target_disable_tracepoint): New macro.
3188 * remote.c (struct remote_state): Add new field.
3189 (remote_enable_disable_tracepoint_feature): New.
3190 (remote_protocol_features): Add new entry.
3191 (remote_supports_enable_disable_tracepoint): New.
3192 (remote_enable_tracepoint): New.
3193 (remote_disable_tracepoint): New.
3194 (init_remote_ops): Add remote_enable_tracepoint,
3195 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3196 to remote operations.
3197 * tracepoint.c (start_tracing): Allow tracing to start without any
3198 tracepoints enabled with just a warning if they can be re-enabled
3200 * NEWS: Add news item for the new behaviour of the enable and disable
3201 GDB commands when applied to tracepoints.
3202 Add news items for the new remote packets QTEnable and QTDisable.
3204 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3206 * config.in: Regenerate.
3207 * configure: Regenerate.
3208 * configure.ac <--with-system-readline> (for readline_echoing_p):
3210 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3211 (tui_old_rl_echoing_p): ... here.
3212 (tui_setup_io): Rename extern declaration readline_echoing_p to
3213 _rl_echoing_p. Adjust assignments for the both renames.
3215 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3217 * symtab.c (lookup_symtab): Run cleanup before returning.
3219 2011-05-11 Tom Tromey <tromey@redhat.com>
3221 * dwarf2read.c (handle_data_member_location): New function.
3222 (dwarf2_add_field): Use it.
3223 (read_common_block): Likewise.
3225 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3227 Make addrs->SECTINDEX always defined.
3228 * symfile.c (relative_addr_info_to_section_offsets): Check for
3229 SECTINDEX -1, not for zero ADDR.
3230 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3231 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3232 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3235 2011-05-10 Doug Evans <dje@google.com>
3237 * linux-thread-db.c: Whitespace cleanup.
3238 (try_thread_db_load_1): Fix comment.
3240 * linux-thread-db.c (set_libthread_db_search_path): New function.
3241 (_initialize_thread_db): Add setter for libthread-db-search-path.
3243 2011-05-09 Doug Evans <dje@google.com>
3245 * NEWS: Mention --with-iconv-bin.
3246 * configure.ac: New option --with-iconv-bin.
3247 * configure: Regenerate.
3248 * config.in: Regenerate.
3249 * defs.h (relocate_gdb_directory): Declare.
3250 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3251 removed progname parameter, and exported. All callers updated.
3252 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3254 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3255 adding missing call to restore_child_signals_mask.
3257 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3259 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3261 * infrun.c (proceed, start_remote): Adjust.
3262 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3263 and adjust to not handle it.
3264 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3265 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3266 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3267 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3268 * windows-nat.c (do_initial_windows_stuff): Adjust.
3269 * infcmd.c (attach_command): Adjust.
3270 (notice_new_inferior): Adjust.
3272 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3274 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3275 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3276 * spu-tdep.c (op_selb): Use correct value.
3278 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3280 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3281 "parent" parameter to symbol_file_add_from_bfd call.
3283 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3284 Thiago Jung Bauermann <bauerman@br.ibm.com>
3286 Implement support for PowerPC BookE masked watchpoints.
3287 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3289 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3290 method. Initialize to NULL in all existing breakpoint_ops instances.
3291 (struct breakpoint) <hw_wp_mask>: New field.
3292 * breakpoint.c (is_masked_watchpoint): Add prototype.
3293 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3294 breakpoint's breakpoint_ops.works_in_software_mode if available.
3295 (watchpoints_triggered): Handle the case of a hardware masked
3297 (watchpoint_check): Likewise.
3298 (works_in_software_mode_watchpoint): New function.
3299 (insert_masked_watchpoint, remove_masked_watchpoint)
3300 (resources_needed_masked_watchpoint)
3301 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3302 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3303 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3305 (masked_watchpoint_breakpoint_ops): New structure.
3306 (watch_command_1): Check for the existence of the `mask' parameter.
3307 Set b->ops according to the type of hardware watchpoint being created.
3308 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3309 (ppc_linux_remove_mask_watchpoint)
3310 (ppc_linux_masked_watch_num_registers): New functions.
3311 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3312 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3313 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3314 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3315 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3316 (target_masked_watch_num_registers): New functions.
3317 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3318 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3320 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3321 (target_masked_watch_num_registers): Add prototypes.
3323 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3326 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3327 (producer_is_gcc_ge_4_0): New function.
3328 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3329 symtab->language code.
3330 (var_decode_location): Set cu->has_loclist.
3331 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3332 skip. Intialize force_skip from locations_valid. Move the prologue
3333 skipping code into two passes.
3334 * symtab.h (struct symtab): Make the primary field a bitfield. New
3335 field locations_valid.
3337 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3339 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3340 (classify_inner_name): Call cp_lookup_nested_type with
3342 * cp-namespace.c (cp_lookup_nested_type): New variable
3343 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3344 type_name_no_tag_or_error with saved_parent_type.
3345 * dwarf2read.c (load_partial_dies): Read in any children of
3346 DW_TAG_typedef with complaint in such case.
3347 * gdbtypes.c (type_name_no_tag_or_error): New function.
3348 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3349 * valops.c (destructor_name_p): New comment for parameter type. Remove
3350 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3351 * value.h (destructor_name_p): Remove type const.
3353 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3355 * symtab.c (compare_symbol_name): New function.
3356 (completion_list_add_name, expand_partial_symbol_name): Call it,
3357 remove the variable ncmp.
3358 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3361 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3363 Demote to sw watchpoint only in update_watchpoint.
3364 * breakpoint.c (update_watchpoint): Change between software and
3365 hardware watchpoint for all kinds of watchpoints, not just
3366 read/write ones. Determine b->exact value here instead of
3367 in watch_command_1. Error out if there are not enough resources
3368 for a read or access hardware watchpoint.
3369 (watch_command_1): Remove logic of checking whether there are
3370 enough resources available, since update_watchpoint will do that
3371 work now. Don't set b->exact here. Catch exceptions thrown by
3372 update_watchpoint and delete the watchpoint.
3373 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3374 Use target_exact_watchpoints instead.
3375 (delete_breakpoint): Notify observers only if deleted watchpoint
3376 has a breakpoint number assigned to it.
3378 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3380 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3382 2011-05-05 Jerome Guitton <guitton@adacore.com>
3384 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3386 (i386_stack_tramp_frame_unwind): New static global.
3387 (i386_match_pattern): New function, extracted from i386_match_insn.
3388 (i386_match_insn): Use i386_match_pattern.
3389 (i386_match_insn_block): New function.
3390 (i386_tramp_chain_in_reg_insns)
3391 (i386_tramp_chain_on_stack_insns): New static variables.
3392 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3395 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3397 * configure.host (xscale*): Don't handle target.
3398 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3401 2011-05-04 Yao Qi <yao@codesourcery.com>
3403 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3405 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3408 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3409 | * elfread.c (elf_symtab_read): Stop memory leak.
3411 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3413 * nto-tdep.c (nto_target): Replace deprecated call to
3414 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3416 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3418 Fix false GCC warning.
3419 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3421 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3423 * breakpoint.c (update_watchpoint): Move code to change
3424 the enable state of breakpoint from here ...
3425 (do_enable_breakpoint): ... to here.
3427 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3429 * valprint.c (val_print_array_elements): Fixed poor performance
3430 of printing very large arrays with repeat_count_threshold set
3431 to unlimited. New comment.
3433 2011-04-29 Tom Tromey <tromey@redhat.com>
3435 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3436 (mi_parse): Likewise.
3437 * breakpoint.c (break_range_command): Use sizeof char*, not
3439 (create_breakpoint): Likewise.
3440 (parse_breakpoint_sals): Likewise.
3442 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3444 * linux-nat.c (linux_child_remove_fork_catchpoint)
3445 (linux_child_remove_vfork_catchpoint)
3446 (linux_child_remove_exec_catchpoint): New functions.
3447 (linux_target_install_ops): Install them.
3449 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3453 * varobj.c (install_default_visualizer): Do not install a
3454 visualizer if the varobj is CPLUS_FAKE_CHILD.
3455 (construct_visualizer): Likewise.
3457 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3459 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3460 case insensitive comparison.
3462 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3464 * infrun.c (proceed): Revert previous change.
3465 (resume): Instead, handle the case of signal delivery while stepping
3466 off a breakpoint location here, and only if software single-stepping
3467 is used. Handle nested signals.
3469 2011-04-28 Yao Qi <yao@codesourcery.com>
3471 * arm-tdep.c (copy_unmodified): Rename to ...
3472 (arm_copy_unmodified): .. this. New.
3473 (copy_preload): Move common part to ...
3474 (install_preload): .. this. New.
3475 (arm_copy_preload): New.
3476 (copy_preload_reg): Move common part to ...
3477 (install_preload_reg): ... this. New.
3478 (arm_copy_preload_reg): New.
3479 (copy_b_bl_blx): Move common part to ...
3480 (install_b_bl_blx): .. this. New.
3481 (arm_copy_b_bl_blx): New.
3482 (copy_bx_blx_reg): Move common part to ...
3483 (install_bx_blx_reg): ... this. New.
3484 (arm_copy_bx_blx_reg): New.
3485 (copy_alu_reg): Move common part to ...
3486 (install_alu_reg): ... this. New.
3487 (arm_copy_alu_reg): New.
3488 (copy_alu_shifted_reg): Move common part to ...
3489 (install_alu_shifted_reg): ... this. New.
3490 (copy_ldr_str_ldrb_strb): Move common part to ...
3491 (install_ldr_str_ldrb_strb): ... this. New.
3492 (arm_copy_ldr_str_ldrb_strb): New.
3493 (copy_copro_load_store): Move some common part to ...
3494 (install_copy_copro_load_store): ... this. New.
3495 (arm_copy_copro_load_store): New.
3497 (arm_copy_svc): Renamed from copy_svc.
3498 (copy_undef): Delete.
3499 (arm_copy_undef): Renamed from copy_undef.
3500 (decode_ext_reg_ld_st): Delete.
3501 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3502 (decode_svc_copro): Delete.
3503 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3504 (copy_copro_load_store, copy_alu_imm): update callers.
3505 (copy_extra_ld_st, copy_block_xfer): Likewise.
3506 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3507 (decode_miscellaneous, decode_dp_misc): Likewise.
3508 (decode_ld_st_word_ubyte, decode_media): Likewise.
3509 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3510 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3511 (decode_unconditional, decode_miscellaneous): Likewise.
3512 (decode_media, decode_b_bl_ldmstm): Likewise.
3513 (arm_process_displaced_insn): Likewise..
3514 (decode_misc_memhint_neon): Delete.
3515 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3516 (decode_miscellaneous): Delete.
3517 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3518 (decode_dp_misc): Delete.
3519 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3520 (decode_ld_st_word_ubyte): Delete.
3521 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3522 (decode_media): Delete.
3523 (arm_decode_media): Renamed from decode_media.
3524 (decode_b_bl_ldmstm): Delete.
3525 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3526 (decode_ext_reg_ld_st): Delete.
3527 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3528 (decode_unconditional): Delete.
3529 (arm_decode_unconditional): Renamed from decode_unconditional.
3531 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3533 Case insensitive lookups implementation.
3534 * dwarf2read.c: Include ctype.h.
3535 (struct mapped_index): New field version.
3536 (mapped_index_string_hash): New parameter index_version. New comment
3537 for it. Call tolower appropriately.
3538 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3539 Choose the right index version for mapped_index_string_hash.
3540 (dwarf2_read_index): Support also the index version 5. Initialize the
3541 new struct mapped_index field version.
3542 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3543 (find_slot): Explain the version needs. Pass INT_MAX for the new
3545 (write_psymtabs_to_index): Produce version 5.
3546 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3547 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3548 * psymtab.c (lookup_partial_symbol): Find the
3549 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3551 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3553 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3554 (completion_list_add_name): New variable ncmp, initialize it, use it.
3555 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3556 * utils.c (strcmp_iw): Support case_sensitive_off.
3557 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3558 New function comment part. New variables saved_string1,
3559 saved_string2 and case_pass. Add a proper second pass.
3561 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3563 Replace re_comp/re_exec by regcomp/regexec.
3564 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3565 (search_symbols_name_matches): Use them, use regexec.
3566 (search_symbols): New variable retval_chain, adjust the use of
3567 old_chain against it. Replace re_comp by regcomp. Use the new struct
3568 search_symbols_data fields, use regexec instead of re_exec.
3570 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3572 Format the code for the next patch.
3573 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3574 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3575 New variables c1 and c2.
3577 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3579 * infrun.c (proceed): Do not single-step into signal delivery
3580 when stepping off a breakpoint location.
3581 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3582 (insert_step_resume_breakpoint_at_caller): Likewise.
3583 (insert_step_resume_breakpoint_at_sal): Likewise.
3584 (insert_longjmp_resume_breakpoint): Likewise.
3586 2011-04-27 Yao Qi <yao@codesourcery.com>
3588 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3590 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3592 * procfs.c (procfs_pass_signals): Fix advance declaration.
3594 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3596 * target.h (struct target_ops): Remove to_notice_signals;
3597 add to_pass_signals.
3598 (target_notice_signals): Remove.
3599 (target_pass_signals): Add prototype.
3600 * target.c (update_current_target): Remove to_notice_signals;
3601 mention to_pass_signals.
3602 (target_pass_signals): New function.
3603 (debug_to_notice_signals): Remove.
3604 (setup_target_debug): Do not install debug_to_notice_signals.
3606 * infrun.c (signal_pass): New global.
3607 (resume): Call target_pass_signals.
3608 (handle_inferior_event): Report all signals while stepping over
3609 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3610 are re-inserted when stepping over a signal handler.
3611 (signal_cache_update): New function.
3612 (signal_stop_update): Call it.
3613 (signal_print_update): Likewise.
3614 (signal_pass_update): Likewise.
3615 (handle_command): Call signal_cache_update and target_pass_signals
3616 instead of target_notice_signals.
3617 (_initialize_infrun): Initialize signal_pass.
3619 * linux-nat.c (pass_mask): New global.
3620 (linux_nat_pass_signals): New function.
3621 (linux_nat_create_inferior): Report all signals initially.
3622 (linux_nat_attach): Likewise.
3623 (linux_nat_resume): Use pass_mask to decide whether to directly
3624 handle an inferior signal.
3625 (linux_nat_wait_1): Likewise.
3626 (linux_nat_add_target): Install to_pass_signals callback.
3628 * nto-procfs.c (notice_signals): Remove.
3629 (procfs_resume): Do not call notice_signals.
3630 (procfs_notice_signals): Remove.
3631 (procfs_pass_signals): New function.
3632 (init_procfs_ops): Install to_pass_signals callback instead of
3633 to_notice_signals callback.
3634 (_initialize_procfs): Report all signals initially.
3636 * procfs.c (procfs_notice_signals): Remove.
3637 (procfs_pass_signals): New function.
3638 (procfs_target): Install to_pass_signals callback instead of
3639 to_notice_signals callback.
3640 (register_gdb_signals): Remove.
3641 (procfs_debug_inferior): Report all signals initially.
3642 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3644 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3645 parameters; use them instead of calling signal_..._state routines.
3646 (remote_notice_signals): Remove.
3647 (remote_start_remote): Report all signals initially.
3648 (remote_resume): Do not call remote_pass_signals.
3649 (_initialize_remote): Install to_pass_signals callback instead of
3650 to_notice_signals callback.
3652 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3654 * breakpoint.c (user_settable_breakpoint): Delete.
3655 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3656 (delete_command): Check user_breakpoint_p instead of looking at
3657 the breakpoint's type.
3658 (disable_command): Ditto.
3659 (enable_command): Ditto.
3660 (delete_trace_command): Use user_breakpoint_p instead of looking
3661 at the breakpoint number directly. When checking if there are
3662 user visible tracepoints, in order to know whether to ask the user
3663 for confirmation, check whether the breakpoint is actually a
3666 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3668 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3671 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3673 MI breakpoint notifications.
3675 * annotate.c (breakpoint_changed): Adjust parameter type.
3676 * breakpoint.c (set_breakpoint_condition): Adjust to change
3677 in breakpoint_modified type.
3678 (breakpoint_set_commands): Likewise.
3679 (do_map_commands_command): Likewise.
3680 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3681 changed after bumping hit count.
3682 (bpstat_stop_status): Likewise.
3683 (print_one_breakpoint_location): Don't wrap in tuple here.
3684 (print_one_breakpoint): Always print individual locations.
3685 For locations, use unnamed tuple.
3686 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3688 (create_catchpoint, create_syscall_event_catchpoint): Call
3689 breakpoint_created obsever.
3690 (mention): Don't call breakpoint_created observer.
3691 (create_breakpoint_sal): Call breakpoint_created observer.
3692 (create_breakpoint, watch_command_1): Likewise.
3693 (create_ada_exception_breakpoint): Likewise.
3694 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3695 (locations_are_equal): New.
3696 (update_breakpoint_locations): If locations were changed, notify.
3697 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3698 Call breakpoint_modified observer.
3700 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3701 (mi_cmd_break_insert): Don't set observers for modify and delete.
3702 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3703 (mi_breakpoint_created, mi_breakpoint_deleted)
3704 (mi_breakpoint_modified): New.
3705 (mi_interpreter_init): Hook the above.
3706 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3707 while -break-* commands are executing.
3708 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3709 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3711 (mi_ui_out_impl): Hook in mi_redirect.
3712 (mi_field_skip): True to the name, skip the field, don't output
3713 a field with an empty value.
3715 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3716 (gdbpy_breakpoint_deleted): Adjust.
3717 * tui/tui-hooks.c (tui_event_create_breakpoint)
3718 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3720 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3722 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3723 (procfs_remove_hw_watchpoint): Likewise.
3725 2011-04-26 Michael Walle <michael@walle.cc>
3727 * remote.c (remote_start_remote): Ack packet after sending the
3730 2011-04-26 Yao Qi <yao@codesourcery.com>
3732 * linux-nat.c: Move common macros to ...
3733 Include linux-ptrace.h.
3734 * common/linux-ptrace.h: ... here. New.
3736 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3738 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3739 !objfile_has_partial_symbols. New comment.
3740 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3741 SYM_READ_PSYMBOLS is not present. Extend the comment.
3742 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3744 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3746 * defs.h (ENUM_BITFIELD): Remove.
3748 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3749 Eli Zaretskii <eliz@gnu.org>
3751 * NEWS: Document the new gdbserver --once option.
3753 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3755 * MAINTAINERS: Update my email address.
3757 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3759 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3760 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3761 function call if __STDC_ISO_10646__ macro is defined.
3762 (intermediate_encoding): New prototype.
3763 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3764 to generate compile time error for unsupported gdb_wchar_t size.
3765 (ENDIAN_SUFFIX): New macro.
3766 (intermediate_encoding): New function.
3768 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3770 * ada-lang.c (struct add_partial_datum): Update the comment for
3771 expand_partial_symbol_name.
3772 (ada_add_partial_symbol_completions): Rename to ...
3773 (ada_expand_partial_symbol_name): ... here, change return type, update
3774 function comment, call symbol_completion_match instead of
3775 symbol_completion_add.
3776 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3777 and ada_expand_partial_symbol_name.
3778 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3780 (dw2_map_symbol_names): Remove.
3781 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3782 * psymtab.c (map_symbol_names_psymtab): Remove.
3783 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3784 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3786 (psym_functions): Unlist map_symbol_names_psymtab.
3787 (map_partial_symbol_names): Rename to ...
3788 (expand_partial_symbol_names): ... here, change the FUN type, call
3789 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3790 * psymtab.h (map_partial_symbol_names): Rename to ...
3791 (expand_partial_symbol_names): ... here, change the FUN type.
3792 * symfile.h (struct quick_symbol_functions): Update the description of
3793 expand_symtabs_matching. Remove map_symbol_names.
3794 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3795 (struct add_name_data): Update the comment for
3796 expand_partial_symbol_name.
3797 (add_partial_symbol_name): Rename to ...
3798 (expand_partial_symbol_name): ... here. Replace
3799 completion_list_add_name call by strncmp.
3800 (default_make_symbol_completion_list_break_on): Use now
3801 expand_partial_symbol_names and expand_partial_symbol_name.
3802 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3804 2011-04-20 Tom Tromey <tromey@redhat.com>
3806 * dwarf2read.c (save_gdb_index_command): Replace format
3807 documentation with a pointer to the manual.
3809 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3811 * regcache.c: Include remote.h.
3812 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3813 (regcache_dump): Handle regcache_dump_remote.
3814 (maintenance_print_remote_registers): New function.
3815 (_initialize_regcache): Install "maint print remote-registers"
3817 * remote.c (map_regcache_remote_table): New function, factored out
3819 (init_remote_state): ... here.
3820 (remote_register_number_and_offset): New.
3821 * remote.h (remote_register_number_and_offset): Declare.
3823 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3825 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3826 null_ptid, assume and allow a NULL address space, instead of
3827 asking the target for the ptid's address space.
3828 * infrun.c (ptid_is_pid): Remove assertion.
3830 2011-04-19 Tom Tromey <tromey@redhat.com>
3832 * windows-tdep.c (windows_xfer_shared_library):
3833 * windows-nat.c (get_module_name, windows_make_so):
3834 * v850-tdep.c (v850_handle_pushm):
3835 * utils.c (null_cleanup, gdb_realpath):
3836 * ui-out.c (get_next_header):
3837 * tracepoint.c (clear_traceframe_info):
3838 * symtab.c (lookup_symtab):
3839 * serial.h (struct serial_ops):
3840 * mipsread.c (read_alphacoff_dynamic_symtab):
3841 * infcmd.c (print_return_value):
3842 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
3843 * f-exp.y (parse_number):
3844 * exceptions.c (catch_exceptions):
3845 * dummy-frame.c (dummy_frame_this_id):
3846 * defs.h (struct cleanup):
3847 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
3848 * arm-tdep.c (arm_push_dummy_call):
3849 * amd64-tdep.h (amd64_collect_xsave):
3850 * amd64-tdep.c (amd64_collect_xsave):
3851 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
3852 * README (typing): Remove duplicate words.
3853 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
3854 * infrun.c (siginfo_value_read): Fix typo.
3855 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
3856 * top.c (source_line_number): Add comma.
3858 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
3860 * thread.c (any_live_thread_of_process): Prioritize threads
3861 that are not executing.
3862 * gdbthread.h (any_live_thread_of_process): Update comment
3863 as per above change.
3865 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
3867 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
3868 (scan_xcoff_symtab): Likewise.
3870 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3872 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
3875 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3876 Pedro Alves <pedro@codesourcery.com>
3878 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
3879 variables to simplify code and avoid == operator at end of
3880 line as this is against GNU coding standards.
3882 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3884 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
3885 lm_name to name_lm to avoid conflict with lm_name function.
3887 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3889 ARI fixes: Use only lowercase function name for static functions.
3890 * nto-tdep.c (LM_ADDR): Rename to...
3891 (lm_addr): New function name.
3892 (nto_relocate_section_addresses): Adapt to change above.
3893 * solib-sunos.c (LM_ADDR): Rename to...
3894 (lm_addr): New function name.
3895 (LM_NEXT): Rename to...
3896 (lm_next): New function name.
3897 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
3898 function name changes above.
3899 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
3900 (lm_addr_from_link_map): New function name.
3901 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3902 (has_lm_dynamic_from_link_map): New function name.
3903 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3904 (lm_dynamic_from_link_map): New function name.
3905 (LM_ADDR_CHECK): Rename to...
3906 (lm_addr_check): New function name.
3907 (LM_NEXT): Rename to...
3908 (lm_next): New function name.
3909 (LM_PREV): Rename to...
3910 (lm_prev): New function name.
3911 (LM_NAME): Rename to...
3912 (lm_name): New function name.
3913 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
3914 (ignore_first_link_map_entry): New function name.
3915 (svr4_keep_data_in_core): Adapt to function name changes above.
3916 (svr4_current_sos): Likewise.
3917 (enable_break): Likewise.
3918 (svr4_relocate_section_addresses): Likewise.
3920 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3923 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
3924 sprintf. Simplify code and avoid loosing memory.
3925 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
3926 (call0_frame_cache): Remove && operator from end of line.
3928 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3930 Fix libraries displacement if they change whether they were prelinked.
3931 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
3932 does not match. Comment why.
3934 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3936 * corelow.c: Include wrapper.h.
3937 (core_open): Call now gdb_target_find_new_threads.
3938 * wrapper.c: Include target.h.
3939 (gdb_target_find_new_threads): New.
3940 * wrapper.h (gdb_target_find_new_threads): New declaration.
3942 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3944 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
3945 even if !TARGET_HAS_EXECUTION.
3947 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3949 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
3950 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
3951 bfd_get_synthetic_symtab.
3952 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
3953 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
3954 parameter parent, remove the call to add_separate_debug_objfile.
3955 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
3956 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3957 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
3958 parent, new comment for it, call add_separate_debug_objfile for it.
3959 (symbol_file_add_separate): Pass objfile as the parameter parent,
3960 remove the call to add_separate_debug_objfile.
3961 (symbol_file_add_from_bfd): New parameter parent, pass it.
3962 (symbol_file_add): Pass NULL to the new parameter parent.
3963 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
3965 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3967 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
3970 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3972 Fix Python access to inlined frames.
3973 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
3974 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
3976 2011-04-15 Tom Tromey <tromey@redhat.com>
3978 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
3980 2011-04-15 Gary Benson <gbenson@redhat.com>
3982 * MAINTAINERS: Add myself to write-after-approval section.
3984 2011-04-14 Mike Frysinger <vapier@gentoo.org>
3986 * remote-sim.c (sim_command_completer): New function.
3987 (_initialize_remote_sim): Set completer to sim_command_completer.
3989 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3991 * breakpoint.c (print_exception_catchpoint): Rename to ...
3992 (print_it_exception_catchpoint): ... this.
3993 (gnu_v3_exception_catchpoint_ops): Update with new name
3994 for print_it_exception_catchpoint.
3996 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
3998 * MAINTAINERS: Add myself for write after approval privileges.
4000 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4002 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4004 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4006 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4008 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4010 * breakpoint.c (save_breakpoints): Verify whether
4011 breakpoint_ops.print_recreate is defined before calling it.
4013 2011-04-11 Gary Benson <gbenson@redhat.com>
4015 Fix failure with --enable-maintainer-mode.
4016 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4018 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4021 * symtab.c (search_symbols): Reorder the KIND description in the
4022 function comment. Remove the unused 4th element of types, types2,
4023 types3 and types4. New gdb_assert on KIND.
4024 (symtab_symbol_info): Remove the unused 4th element of classnames.
4025 New gdb_assert on KIND.
4026 * symtab.h (enum search_domain): New warning in the enum comment.
4027 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4030 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4032 Fix crash of gdb save-index on a STABS file.
4033 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4036 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4038 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4039 * dwarf2read.c: Include ctype.h.
4040 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4042 (dwarf2_add_field): Fix new_field->accessibility by calling
4043 dwarf2_default_access_attribute. Restructure setting accessibility
4045 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4046 is_private and is_protected by calling
4047 dwarf2_default_access_attribute.
4049 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4051 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4052 to the initialization.
4054 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4056 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4059 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4061 Remove support for old Cygwin 1.5 versions.
4062 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4063 function on old Cygwin version.
4064 * windows-nat.c: Remove cygwin version check and always define
4065 __USEWIDE for Cygwin compilation.
4067 2011-04-07 Yao Qi <yao@codesourcery.com>
4069 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4071 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4072 (arm_copy_svc): Remove parameters INSN and TO.
4073 (decode_svc_copro): Update caller.
4074 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4075 from function pointer `copy_svc_os'.
4077 2011-04-07 Yao Qi <yao@codesourcery.com>
4079 * arm-tdep.c (cleanup_branch): Set a correct return address in
4080 LR for ARM and Thumb.
4082 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4085 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4086 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4087 in the function comment, a new note on values compatibility.
4088 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4089 * symtab.h (SYMBOL_HASH_NEXT): New.
4091 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4093 * ppc-linux-nat.c (check_condition): Add len output parameter.
4094 Set it based on the memory region referenced in the condition
4095 expression. Update all callers.
4097 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4099 Fix crash regression on systems featuring .gdb_index.
4100 * objfiles.c (free_objfile): Move the
4101 forget_cached_source_info_for_objfile call earlier. Comment it.
4102 Extend the comment for objfile_free_data.
4104 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4106 Fix regression of displaying the debug format.
4107 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4110 2011-04-04 Tom Tromey <tromey@redhat.com>
4112 * cli/cli-interp.c (struct captured_execute_command_args):
4114 (do_captured_execute_command): Remove.
4115 (safe_execute_command): Use TRY_CATCH.
4116 * cli/cli-script.c (struct wrapped_read_command_file_args):
4118 (wrapped_read_command_file): Remove.
4119 (script_from_file): Use TRY_CATCH.
4120 * exceptions.c (catch_exception): Remove.
4121 * exceptions.h (catch_exception): Remove.
4122 (deprecated_throw_reason): Update comment.
4123 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4124 argument to 'context'.
4125 (mi_execute_command): Use TRY_CATCH.
4126 * remote.c (struct start_remote_args): Remove.
4127 (remote_start_remote): Update; change arguments.
4128 (remote_open_1): Use TRY_CATCH.
4130 2011-04-04 Tom Tromey <tromey@redhat.com>
4132 * tracepoint.c (scope_info): Update.
4133 * symtab.c (decode_line_spec): Update.
4134 * python/python.c (gdbpy_decode_line): Update.
4135 * linespec.h (decode_line_1): Update.
4136 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4137 (decode_compound, find_method, symtab_from_filename)
4138 (decode_variable): Likewise.
4139 * cli/cli-cmds.c (edit_command): Update.
4140 (list_command): Update.
4141 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4143 (create_breakpoint): Update.
4144 (until_break_command): Update.
4145 (addr_string_to_sals): Update.
4146 (decode_line_spec_1): Update.
4148 2011-04-04 Tom Tromey <tromey@redhat.com>
4150 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4151 (do_captured_parse_breakpoint): Remove.
4152 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4153 Use TRY_CATCH directly.
4155 2011-04-04 Tom Tromey <tromey@redhat.com>
4157 * symtab.h (free_symtab): Remove.
4158 (forget_cached_source_info_for_objfile): Declare.
4159 * symmisc.c (free_symtab): Remove.
4160 * source.c (forget_cached_source_info_for_objfile): New function.
4161 (forget_cached_source_info): Use it.
4162 * objfiles.c (free_objfile): Simplify check before calling
4163 clear_current_source_symtab_and_line. Call
4164 forget_cached_source_info_for_objfile.
4166 2011-04-04 Tom Tromey <tromey@redhat.com>
4168 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4169 (new_symtab): Don't set `free_code' on symtab.
4170 (new_linetable): Properly handle size==0.
4171 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4172 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4174 * jv-lang.c (struct jv_per_objfile_data): New.
4175 (jv_per_objfile_free): Free the data.
4176 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4177 (get_java_class_symtab): Set the `dict' field on the
4178 jv_per_objfile_data.
4179 (free_class_block): Remove.
4180 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4183 2011-04-04 Tom Tromey <tromey@redhat.com>
4185 * symfile.c (reread_symbols): Update.
4186 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4188 * objfiles.c (allocate_objfile): Update.
4189 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4191 * cp-namespace.c (lookup_symbol_file): Don't call
4192 lookup_possible_namespace_symbol.
4193 (initialize_namespace_symtab, get_possible_namespace_block)
4194 (free_namespace_block, cp_check_possible_namespace_symbols)
4195 (check_possible_namespace_symbols_loop)
4196 (check_one_possible_namespace_symbol)
4197 (lookup_possible_namespace_symbol): Remove.
4198 (maintenance_cplus_namespace): Replace with notice.
4199 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4201 2011-04-04 Tom Tromey <tromey@redhat.com>
4203 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4204 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4205 * symmisc.c (free_symtab): Don't free debugformat.
4206 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4207 (record_debugformat, record_producer): Document.
4208 * buildsym.c (end_symtab): Don't save debugformat and producer
4210 (end_symtab): Don't free debugformat and producer fields.
4211 (record_debugformat): Don't call xstrdup.
4212 (record_producer): Likewise.
4214 2011-04-04 Tom Tromey <tromey@redhat.com>
4216 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4217 (source_line_charpos, source_charpos_line): Remove.
4219 2011-04-04 Tom Tromey <tromey@redhat.com>
4221 * symtab.h (domain_enum): Split in two...
4222 (enum search_domain): New.
4223 (search_symbols): Update.
4224 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4225 redundant declarations.
4226 (search_symbols): Change 'kind' argument to search_domain.
4228 (print_symbol_info): Likewise.
4229 (symtab_symbol_info): Likewise.
4230 * symfile.h (struct quick_symbol_functions)
4231 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4232 <expand_symtabs_matching>: Likewise.
4233 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4234 (expand_symtabs_matching_via_partial): Update.
4235 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4236 (dw2_expand_symtabs_for_function): Update.
4237 * block.h: Moved anonymous enum...
4238 * defs.h (enum block_enum): ... here. Now named.
4240 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4242 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4243 * version.in: Bump version to 7.3.50.20110403-cvs.
4245 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4247 * NEWS: Create a new section for the next release branch.
4248 Rename the section of the current branch, now that it has
4251 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4253 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4254 for "fpscr" in target description.
4256 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4258 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4259 initialize it. Delay HASH initialization. Strip the part after open
4260 parenthesis for languages with qualifiers. Call do_cleanups.
4262 2011-04-01 Tom Tromey <tromey@redhat.com>
4264 * utils.c (report_command_stats): Don't print `-' for negative
4267 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4269 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4270 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4273 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4275 * breakpoint.h (bpdisp_text): Add declaration.
4276 * breakpoint.c (bpdisp_text): Make non-static.
4277 * ada-lang.c: #include "mi/mi-common.h".
4278 (print_it_exception): Rewrite to improve GDB/MI output.
4280 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4282 * arm-tdep.h (struct address_space): Add forward declaration.
4284 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4286 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4287 * arm-tdep.c (arm_override_mode): New global.
4288 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4289 execution mode heuristics.
4290 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4291 second single-step breakpoint if needed, using
4292 arm_insert_single_step_breakpoint.
4293 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4294 ARM execution mode, do not call thumb_get_next_pc_raw.
4295 (arm_get_next_pc): Encode execution mode in return value. Call
4296 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4297 (arm_insert_single_step_breakpoint): New function.
4298 (arm_software_single_step): Call it.
4299 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4300 argument to return execution mode of sigreturn target.
4301 (arm_linux_syscall_next_pc): Use it.
4302 (arm_linux_copy_svc): Update call.
4303 (arm_linux_software_single_step): Call
4304 arm_insert_single_step_breakpoint.
4306 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4308 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4311 2011-03-31 Tom Tromey <tromey@redhat.com>
4313 * varobj.c (update_dynamic_varobj_children): Properly handle
4314 errors from iterator.
4316 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4318 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4319 struct linkage name twice.
4321 2011-03-31 Tom Tromey <tromey@redhat.com>
4323 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4324 missing ">" to message.
4326 2011-03-31 Tom Tromey <tromey@redhat.com>
4328 * varobj.c (instantiate_pretty_printer): Remove duplicate
4331 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4333 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4334 if neither saved value nor register available (e.g. signal frame).
4336 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4338 * macroexp.c (expand): Avoid uninitialized variable
4341 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4343 * breakpoint.c (break_range_command): Fix typo in comment.
4345 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4346 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4348 Implement support for PowerPC BookE ranged breakpoints.
4349 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4350 * breakpoint.h (struct bp_target_info) <length>: New member
4352 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4353 instead of struct breakpoint as argument, and also add ASPACE
4354 and BP_ADDR arguments. Update all callers.
4355 (struct breakpoint_ops) <print_one_detail>: New method.
4356 (struct breakpoint) <addr_string_range_end>: New member variable.
4357 * breakpoint.c (breakpoint_location_address_match): Add function
4359 (insert_bp_location): Set bl->target_info.length.
4360 (breakpoint_here_p): Call breakpoint_location_address_match.
4361 (moribund_breakpoint_here_p): Likewise.
4362 (regular_breakpoint_inserted_here_p): Likewise.
4363 (breakpoint_thread_match): Likewise.
4364 (bpstat_stop_status): Likewise.
4365 (bpstat_check_location): Move call to
4366 breakpoint_ops.breakpoint_hit to the top.
4367 (print_one_breakpoint_location): Call
4368 breakpoint_ops.print_one_detail if available.
4369 (breakpoint_address_match_range): New function.
4370 (breakpoint_location_address_match): Likewise.
4371 (breakpoint_locations_match): Compare the length field of the
4373 (hw_breakpoint_used_count): Count resources used by all locations
4374 in a breakpoint, and use breakpoint_ops.resources_needed if
4376 (breakpoint_hit_ranged_breakpoint): New function.
4377 (resources_needed_ranged_breakpoint): Likewise.
4378 (print_it_ranged_breakpoint): Likewise.
4379 (print_one_ranged_breakpoint): Likewise.
4380 (print_one_detail_ranged_breakpoint): Likewise.
4381 (print_mention_ranged_breakpoint): Likewise.
4382 (print_recreate_ranged_breakpoint): Likewise.
4383 (ranged_breakpoint_ops): New structure.
4384 (find_breakpoint_range_end): New function.
4385 (break_range_command): Likewise.
4386 (delete_breakpoint): Free addr_string_range_end.
4387 (update_breakpoint_locations): Add SALS_END argument. Update
4388 all callers. Calculate breakpoint length if a non-zero SALS_END
4389 is given. Call breakpoint_locations_match instead of
4390 breakpoint_address_match.
4391 (reset_breakpoint): Find SaL of the end of the range if B is a
4393 (_initialize_breakpoint): Register break-range command.
4394 * defs.h (print_core_address): Add function prototype.
4395 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4397 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4398 (ppc_linux_remove_hw_breakpoint): Likewise.
4399 (_initialize_ppc_linux_nat): Initialize
4400 to_ranged_break_num_registers.
4401 * target.c (update_current_target): Add comment about
4402 to_ranged_break_num_registers.
4403 (target_ranged_break_num_registers): New function.
4404 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4406 (target_ranged_break_num_registers): Add function prototype.
4407 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4408 * utils.c (print_core_address): ... here.
4410 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4412 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4413 variable compiler warning.
4415 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4417 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4419 (re_set_breakpoint): ... to here ...
4420 (addr_string_to_sals): ... and here.
4422 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4424 * Makefile.in (SFILES): Add missing C sources.
4425 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4426 Add missing headers.
4428 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4430 * .gitignore: New file.
4432 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4434 * NEWS: Mention new cfi device simulation.
4436 2011-03-29 Tom Tromey <tromey@redhat.com>
4438 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4439 otherwise anonymous types.
4440 (dwarf2_name): Likewise.
4441 * valops.c (value_struct_elt_for_reference): Refine artificial
4442 type logic. Call error if j==-1.
4444 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4446 Fix false GCC warning.
4447 * infcall.c (find_function_addr): Initialize funaddr.
4449 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4451 Fix mingw compilation with --enable-targets=all.
4452 * remote-mips.c (gdb_usleep.h): Include header.
4453 (mips_enter_debug): Use gdb_usleep instead of sleep.
4455 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4457 Support resolution of STT_GNU_IFUNC via breakpoints.
4458 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4459 bp_gnu_ifunc_resolver_return.
4460 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4461 the loop. Support bp_gnu_ifunc_resolver and
4462 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4463 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4465 (bptype_string, print_one_breakpoint_location): Support
4466 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4467 (user_settable_breakpoint): Return true also for
4468 bp_gnu_ifunc_resolver.
4469 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4470 bp_gnu_ifunc_resolver_return.
4471 (set_breakpoint_location_function): New parameter explicit_loc,
4472 describe it. Call find_pc_partial_function_gnu_ifunc with new
4473 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4474 EXPLICIT_LOC is not set.
4475 (set_raw_breakpoint): Set EXPLICIT_LOC for
4476 set_breakpoint_location_function.
4477 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4478 set_breakpoint_location_function.
4479 (mention): Support bp_gnu_ifunc_resolver and
4480 bp_gnu_ifunc_resolver_return.
4481 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4482 set_breakpoint_location_function.
4483 (update_breakpoint_locations): Remove static.
4484 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4485 bp_gnu_ifunc_resolver_return.
4486 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4487 bp_gnu_ifunc_resolver_return.
4488 (update_breakpoint_locations): New declaration.
4489 * elfread.c: Include gdbthread.h and regcache.h.
4490 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4492 (elf_gnu_ifunc_fns): Install them.
4493 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4494 (stub_gnu_ifunc_resolver_return_stop): New functions.
4495 (stub_gnu_ifunc_fns): Install them.
4496 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4497 and gnu_ifunc_resolver_return_stop.
4498 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4500 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4502 STT_GNU_IFUNC reader implementation.
4503 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4504 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4505 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4506 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4507 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4508 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4509 (elf_gnu_ifunc_resolve_addr): New.
4510 (elf_symfile_read): Call elf_rel_plt_read.
4511 (elf_gnu_ifunc_fns): New.
4512 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4513 Install elf_gnu_ifunc_fns.
4514 * infcall.c (find_function_return_type): New function.
4515 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4516 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4517 (stub_gnu_ifunc_resolve_name): New functions.
4518 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4519 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4520 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4522 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4524 Code cleanup for later STT_GNU_IFUNC support.
4525 * infcall.c (find_function_addr): Remove variable code, use explicit
4526 dereferences for it. Move VALUE_TYPE initialization later.
4528 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4530 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4531 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4532 (clear_pc_function_cache): Clear it.
4533 (find_pc_partial_function): Rename to ...
4534 (find_pc_partial_function_gnu_ifunc): ... this function. New
4535 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4536 (find_pc_partial_function): New wrapper for this function.
4537 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4539 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4541 GDB internal type support for STT_GNU_IFUNC.
4542 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4543 (elf_symtab_read): Set mst_text_gnu_ifunc for
4544 BSF_GNU_INDIRECT_FUNCTION.
4545 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4546 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4547 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4548 nodebug_got_plt_symbol.
4549 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4550 (TYPE_GNU_IFUNC): New.
4551 (struct main_type): New field flag_gnu_ifunc.
4552 (struct builtin_type): New field builtin_func_func.
4553 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4554 nodebug_got_plt_symbol.
4555 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4556 (in_gnu_ifunc_stub): New.
4557 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4559 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4560 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4561 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4563 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4564 * symtab.c (search_symbols): Likewise.
4565 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4566 and mst_slot_got_plt.
4567 (in_gnu_ifunc_stub): New declaration.
4569 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4571 Support a ring of related breakpoints.
4572 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4573 other functions, add gdb_assert.
4574 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4575 watchpoint_del_at_next_stop.
4576 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4577 (bpstat_stop_status): Handle ring in related_breakpoint.
4578 (set_raw_breakpoint_without_location): Initialize ring in
4580 (delete_breakpoint): Handle ring in related_breakpoint, use
4581 watchpoint_del_at_next_stop.
4582 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4584 2011-03-28 Tom Tromey <tromey@redhat.com>
4587 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4588 with `language_minimal'.
4590 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4592 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4593 instead of checking for STT_ARM_TFUNC symbol type.
4595 2011-03-25 Tom Tromey <tromey@redhat.com>
4597 * linespec.c (symbol_found): Restore line-based result for
4598 non-LOC_LABEL symbols.
4600 2011-03-25 Kai Tietz <ktietz@redhat.com>
4602 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4603 instead of strcmp for comparison.
4604 (tui_source_is_displayed): Likewise.
4605 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4607 2011-03-24 Mark Wielaard <mjw@redhat.com>
4609 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4611 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4612 (find_partial_die_in_comp_unit): Likewise in comment.
4613 (read_attribute_value): Likewise.
4614 (lookup_die_type): Likewise.
4615 (dwarf_form_name): Likewise.
4616 (dump_die_shallow): Likewise.
4617 (follow_die_ref_or_sig): Likewise.
4619 2011-03-24 Tom Tromey <tromey@redhat.com>
4621 PR breakpoints/11816:
4622 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4623 (decode_compound): Update.
4624 (find_function_symbol): New function.
4625 (decode_dollar): Update.
4626 (decode_label): Add 'function_symbol' parameter. Handle
4627 function-relative labels.
4628 (decode_variable): Update.
4629 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4630 not its line. Set `special_display' and canonical name for
4633 2011-03-24 Tom Tromey <tromey@redhat.com>
4635 * linespec.h (struct linespec_result) <special_display>: New
4637 * breakpoint.h (struct breakpoint) <display_canonical>: New
4639 * breakpoint.c (print_breakpoint_location): Respect
4641 (create_breakpoint_sal): Add 'display_canonical' parameter.
4642 (create_breakpoints_sal): Update.
4643 (create_breakpoint): Update.
4645 2011-03-24 Tom Tromey <tromey@redhat.com>
4647 * symtab.c (decode_line_spec): Update.
4648 * linespec.c (build_canonical_line_spec): Change type of
4650 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4651 (find_method, decode_all_digits, decode_dollar, decode_label)
4652 (symbol_found): Likewise.
4653 (init_linespec_result): New function.
4654 * breakpoint.c (struct captured_parse_breakpoint_args)
4655 <canonical_p>: New field, replaces addr_string_p.
4656 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4658 (parse_breakpoint_sals): Likewise.
4659 (do_captured_parse_breakpoint): Update.
4660 (create_breakpoint): Use struct linespec_result.
4661 (until_break_command): Update.
4662 (breakpoint_re_set_one): Update.
4663 (decode_line_spec_1): Update.
4664 * linespec.h (struct linespec_result): New.
4665 (init_linespec_result): Declare.
4667 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4669 * regcache.c (regcache_raw_read): If the target didn't supply a
4670 given raw register, mark it as unavailable.
4672 2011-03-23 Kai Tietz <ktietz@redhat.com>
4674 * breakpoint.c (clear_command): Use filename_cmp
4675 instead of strcmp for comparison.
4676 * buildsym.c (watch_main_source_file_lossage): Likewise.
4677 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4678 checking just for slash.
4679 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4680 strrchr and filename_cmp instead of strcmp for filenames.
4681 (add_old_header_file): Use filename_cmp
4682 instead of strcmp for comparison.
4683 * exec.c (exec_set_section_address): Likewise.
4684 * macrotab.c (macro_lookup_inclusion): Likewise.
4685 (macro_lookup_inclusion): Likewise.
4686 * elfread.c (_initialize_elfread): Likewise.
4687 (elfstab_offset_sections): Likewise.
4688 (elfstab_offset_sections): Use lbasename instead of
4690 * mdebugread.c (parse_partial_symbols): Likewise.
4691 (arse_partial_symbols): Use filename_(n)cmp instead of
4692 str(n)cmp for comparison.
4693 * minsyms.c (lookup_minimal_symbol): Likewise.
4694 * psymtab.c (read_psymtabs_with_filename): Likewise.
4695 * solib.c (solib_read_symbols): Likewise.
4696 (reload_shared_libraries_1): Likewise.
4697 * symmisc.c (maintenance_print_symbols): Likewise.
4698 * symfile.c (separate_debug_file_exists): Likewise.
4699 (reread_symbols): Likewise.
4700 (find_separate_debug_file_by_debuglink): Likewise.
4701 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4702 * source.c (add_path): Likewise.
4703 * symtab.c (filename_seen): Likewise.
4704 (file_matches): Likewise.
4705 (print_symbol_info): Likewise.
4706 (maybe_add_partial_symtab_filename): Likewise.
4707 (make_source_files_completion_list): Likewise.
4708 * xml-syscall.c (init_sysinfo): Likewise.
4709 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4710 IS_DIR_SEPARATOR for checking for trailing path separator.
4712 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4714 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4715 label abort_expression.
4716 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4717 DWARF_VALUE_OPTIMIZED_OUT.
4719 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4722 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4723 to linkage_name. Invert its value. Update the function comment.
4724 (c_type_print_varspec_suffix): Invert it at the caller.
4725 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4727 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4729 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4730 errors when reading the `stop_pc'.
4731 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4734 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4736 * NEWS: Document gdb.Write stream keyword.
4738 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4741 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4742 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4743 (dwarf2_add_field): Fix new_field->accessibility for
4744 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4746 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4750 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4751 other error classes. Do not print stack trace.
4753 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4755 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4756 (dwarf2_add_field): Fix new_field->accessibility for
4757 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4759 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4761 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4762 encountering a load via a non-SP register.
4764 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4766 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4767 field in returned unwinder.
4769 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4771 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4773 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4775 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4778 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4780 * frame.c (frame_unwind_register): Throw an error if unwinding the
4782 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4783 an unwind stop reason.
4784 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4785 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4786 UNWIND_UNAVAILABLE>: New.
4787 * inline-frame.c (inline_frame_unwind): Install
4788 default_frame_unwind_stop_reason.
4789 * frame-unwind.c: Include "exceptions.h".
4790 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4791 (default_frame_unwind_stop_reason): New.
4792 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4793 (default_frame_unwind_stop_reason): Declare.
4794 (struct frame_unwind) <stop_reason>: New function pointer.
4796 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4797 * dwarf2-frame.c: Include exceptions.h.
4798 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4799 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4800 computing the CFA. If such an error was thrown, set
4801 unavailable_retaddr.
4802 (dwarf2_frame_unwind_stop_reason): New.
4803 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4805 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4806 (dwarf2_signal_frame_unwind): Ditto.
4808 * amd64-tdep.c: Include "exceptions.h".
4809 (struct amd64_frame_cache): New field "base_p".
4810 (amd64_init_frame_cache): Clear it.
4811 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4812 Avoid reading registers with functions that throw if the register
4813 is not necessary to compute the frame base.
4814 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4815 swallowing NOT_AVAILABLE_ERROR.
4816 (amd64_frame_unwind_stop_reason): New.
4817 (amd64_frame_this_id): Don't build a frame id if the frame base
4819 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4820 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4821 base_p if the frame base was computable.
4822 (amd64_sigtramp_frame_unwind_stop_reason): New.
4823 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4824 frame base was unavailable.
4825 (amd64_sigtramp_frame_unwind): Install
4826 amd64_sigtramp_frame_unwind_stop_reason.
4827 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4828 base_p if the frame base was computable.
4829 (amd64_epilogue_frame_unwind_stop_reason): New.
4830 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4831 frame base was unavailable.
4832 (amd64_epilogue_frame_unwind): Install
4833 amd64_epilogue_frame_unwind_stop_reason.
4834 * i386-tdep.c: Include "exceptions.h".
4835 (struct i386_frame_cache): New field "base_p".
4836 (i386_init_frame_cache): Clear it.
4837 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
4838 Avoid reading registers with functions that throw if the register
4839 is not necessary to compute the frame base.
4840 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4841 swallowing NOT_AVAILABLE_ERROR.
4842 (i386_frame_unwind_stop_reason): New.
4843 (i386_frame_this_id): Don't build a frame id if the frame base was
4845 (i386_frame_prev_register): Handle unavailable SP.
4846 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
4847 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4848 base_p if the frame base was computable.
4849 (i386_epilogue_frame_unwind_stop_reason): New.
4850 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
4851 base was unavailable.
4852 (i386_epilogue_frame_unwind): Install
4853 i386_epilogue_frame_unwind_stop_reason.
4854 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4855 base_p if the frame base was computable.
4856 (i386_sigtramp_frame_unwind_stop_reason): New.
4857 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
4858 base was unavailable.
4859 (i386_sigtramp_frame_unwind): Install
4860 i386_sigtramp_frame_unwind_stop_reason.
4861 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
4862 type's size, not the register's.
4863 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
4865 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
4866 default_frame_unwind_stop_reason.
4867 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
4868 (alpha_heuristic_frame_unwind): Ditto.
4869 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
4870 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
4871 * avr-tdep.c (avr_frame_unwind): Ditto.
4872 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
4874 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
4875 * frv-tdep.c (frv_frame_unwind): Ditto.
4876 * h8300-tdep.c (h8300_frame_unwind): Ditto.
4877 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
4878 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
4879 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
4880 (hppa_stub_frame_unwind): Ditto.
4881 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
4882 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
4883 (ia64_libunwind_frame_unwind)
4884 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
4885 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
4886 * lm32-tdep.c (lm32_frame_unwind): Ditto.
4887 * m32c-tdep.c (m32c_unwind): Ditto.
4888 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
4889 * m32r-tdep.c (m32r_frame_unwind): Ditto.
4890 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
4891 * m68k-tdep.c (m68k_frame_unwind): Ditto.
4892 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
4893 * m88k-tdep.c (m88k_frame_unwind): Ditto.
4894 * mep-tdep.c (mep_frame_unwind): Ditto.
4895 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
4896 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
4897 (mips_stub_frame_unwind): Ditto.
4898 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
4899 * moxie-tdep.c (moxie_frame_unwind): Ditto.
4900 * mt-tdep.c (mt_frame_unwind): Ditto.
4901 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
4902 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
4903 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
4904 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
4905 (s390_sigtramp_frame_unwind): Ditto.
4906 * score-tdep.c (score_prologue_unwind): Ditto.
4907 * sh-tdep.c (sh_frame_unwind): Ditto.
4908 * sh64-tdep.c (sh64_frame_unwind): Ditto.
4909 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
4910 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
4911 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
4912 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
4913 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
4914 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
4915 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
4916 (sparc64obsd_trapframe_unwind): Ditto.
4917 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
4918 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
4919 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
4920 * v850-tdep.c (v850_frame_unwind): Ditto.
4921 * vax-tdep.c (vax_frame_unwind): Ditto.
4922 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
4923 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
4924 * xtensa-tdep.c (xtensa_unwind): Ditto.
4926 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4928 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
4929 there's always a frame. Use get_frame_pc_if_available instead of
4930 get_frame_pc, and if there's no PC available, don't look up a
4933 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4935 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
4938 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4940 * tracepoint.c (set_traceframe_context): Handle unavailable PC
4943 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4945 * frame.h (frame_unwind_caller_pc_if_available): Declare.
4946 * frame.c (frame_unwind_caller_pc_if_available): New.
4947 * stack.c (frame_info): Handle unavailable PC.
4949 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4951 * frame.c (frame_unwind_pc): Rename to ...
4952 (frame_unwind_pc_if_available): ... this. New `pc' output
4953 parameter. Change return type to int. Gracefully handle
4954 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
4955 happened, or 1 otherwise.
4956 (frame_unwind_pc): Reimplement on top of
4957 frame_unwind_pc_if_available.
4958 (get_frame_func): Rename to ...
4959 (get_frame_func_if_available): New `pc' output parameter. Change
4960 return type to int. Gracefully handle the PC not being available.
4961 (get_frame_func): Reimplement on top of
4962 get_frame_func_if_available.
4963 (select_frame): Handle the PC being unavailable.
4964 (get_prev_frame): Handle the PC being unavailable.
4965 (get_frame_pc_if_available): New.
4966 (get_frame_address_in_block_if_available): New.
4967 (find_frame_sal): Handle the frame PC not being available.
4968 * frame.h (get_frame_pc_if_available): Declare.
4969 (get_frame_address_in_block_if_available): Declare.
4970 (get_frame_func_if_available): Declare.
4971 * stack.c (print_frame_info): Handle the PC being unavailable.
4972 (find_frame_funname): Ditto.
4973 (print_frame): Handle the PC being unavailable.
4974 (get_frame_language): Ditto.
4975 * blockframe.c (get_frame_block): Ditto.
4976 * macroscope.c (default_macro_scope): Ditto.
4977 * tui/tui-stack.c (tui_show_frame_info): Ditto.
4979 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4981 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
4982 NOT_AVAILABLE_ERROR when evaluating the location expression.
4984 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4986 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
4987 returning that the register piece is unavailable/optimized out.
4988 (write_pieced_value): Handle get_frame_register_bytes returning
4989 that the register piece is unavailable/optimized out when doing a
4990 read-modify write of a bitfield.
4991 * findvar.c (value_from_register): Handle get_frame_register_bytes
4992 returning that the register piece is unavailable/optimized out.
4993 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
4994 and `unavailablep'. Throw error on bad debug info. Use
4995 frame_register instead of frame_register_read, to fill in the new
4997 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
4999 * valops.c: (value_assign): Adjust, and handle
5000 get_frame_register_bytes failing.
5001 * spu-tdep.c: Include exceptions.h.
5002 (spu_software_single_step): Adjust, and handle
5003 get_frame_register_bytes failing.
5004 (spu_get_longjmp_target): Ditto.
5005 * gdbarch.sh (register_to_value): Change to return int. New
5006 parameters `optimizedp' and `unavailablep'.
5007 * gdbarch.h, gdbarch.c: Regenerate.
5008 * i386-tdep.c (i386_register_to_value): Adjust to new
5009 gdbarch_register_to_value interface.
5010 * i387-tdep.c (i387_register_to_value): Ditto.
5011 * i387-tdep.h (i387_register_to_value): Ditto.
5012 * alpha-tdep.c (alpha_register_to_value): Ditto.
5013 * ia64-tdep.c (ia64_register_to_value): Ditto.
5014 * m68k-tdep.c (m68k_register_to_value): Ditto.
5015 * mips-tdep.c (mips_register_to_value): Ditto.
5016 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5018 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5020 * findvar.c (value_of_register): Mark the value as unavailable, if
5021 the register is unavailable.
5022 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5023 (frame_register): New `unavailablep' parameter.
5024 (frame_register_read): Update comment.
5025 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5026 Set it if the register is unavailable. If the register is
5027 unavailable, clear the output buffer.
5028 (frame_register): New `unavailablep' parameter. Pass it down.
5029 (frame_unwind_register): Adjust.
5030 (put_frame_register): Adjust.
5031 (frame_register_read): Adjust. Also return false if the register
5033 (frame_register_unwind_location): Adjust.
5034 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5035 is unavailable, mark the value accordingly.
5036 * stack.c (frame_info): Handle unavailable registers.
5038 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5040 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5041 simplify, using regcache_cooked_read.
5043 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5045 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5046 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5047 (regcache_raw_read_unsigned, regcache_raw_read_part)
5048 (regcache_cooked_read, regcache_cooked_read_signed)
5049 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5050 (regcache_cooked_read_ftype): Change return to enum
5052 * regcache.c: Include exceptions.h
5053 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5054 (do_cooked_read): Change return to enum register_status. Always
5055 forward to regcache_cooked_read.
5056 (regcache_raw_read): Change return to enum register_status. If
5057 the register is not REG_VALID, memset the buffer. Return the
5059 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5060 return the register's status.
5061 (regcache_raw_read_unsigned): Ditto.
5062 (regcache_cooked_read): Change return to enum register_status.
5063 Assert that with read-only regcaches, the register's status must
5064 be known. If the regcache is read-only, and the register is not
5065 REG_VALID, memset the buffer. Return the register's status.
5066 (regcache_cooked_read_signed): Change return to enum
5067 register_status. Handle non-REG_VALID registers and return the
5069 (regcache_cooked_read_unsigned): Change return to enum
5070 register_status. Handle non-REG_VALID registers and return the
5072 (regcache_xfer_part, regcache_raw_read_part)
5073 (regcache_cooked_read_part): Change return to enum
5074 register_status. Return the register's status.
5075 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5077 (regcache_dump): Handle unavailable cooked registers.
5078 * frame.c (do_frame_register_read): Adjust interface to match
5079 regcache_cooked_read_ftype.
5080 * gdbarch.sh (pseudo_register_read): Change return to enum
5082 * gdbarch.h, gdbarch.c: Regenerate.
5084 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5086 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5087 register_status. If reading a raw register indicates the raw
5088 register is not valid, return the raw register's status,
5089 otherwise, return REG_VALID.
5090 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5091 register_status. Handle non-REG_VALID raw registers and return
5092 the register's status.
5093 * arm-tdep.c (arm_neon_quad_read)
5094 (arm_pseudo_read): Change return to enum register_status. Handle
5095 non-REG_VALID raw registers and return the register's status.
5096 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5097 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5098 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5099 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5100 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5102 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5103 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5104 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5105 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5106 (m32c_pseudo_register_read): Change return to enum
5107 register_status. Adjust.
5108 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5109 enum register_status. Return the register's status.
5110 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5111 register_status. Return the register's status.
5112 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5113 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5114 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5115 * rs6000-tdep.c (move_ev_register_func): New typedef.
5116 (e500_move_ev_register): Use it. Change return to enum
5117 register_status. Return the register's status.
5118 (do_regcache_raw_read): New function.
5119 (do_regcache_raw_write): New function.
5120 (e500_pseudo_register_read): Change return to enum
5121 register_status. Return the register's status. Use
5122 do_regcache_raw_read.
5123 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5124 (dfp_pseudo_register_read): Change return to enum register_status.
5125 Return the register's status.
5126 (vsx_pseudo_register_read): Ditto.
5127 (efpr_pseudo_register_read): Ditto.
5128 (rs6000_pseudo_register_read): Ditto.
5129 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5130 register_status. Return the register's status.
5131 * sh64-tdep.c (pseudo_register_read_portions): New function.
5132 (sh64_pseudo_register_read): Change return to enum
5133 register_status. Use pseudo_register_read_portions. Return the
5135 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5136 register_status. Return the register's status.
5137 * sh-tdep.c (pseudo_register_read_portions): New function.
5138 (sh_pseudo_register_read): Change return to enum register_status.
5139 Use pseudo_register_read_portions. Return the register's status.
5140 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5141 enum register_status. Return the register's status.
5142 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5143 * spu-tdep.c (spu_pseudo_register_read_spu)
5144 (spu_pseudo_register_read): Ditto.
5145 * xtensa-tdep.c (xtensa_register_read_masked)
5146 (xtensa_pseudo_register_read): Ditto.
5147 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5149 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5151 * python/py-value.c (valpy_getitem): Fix formatting of error function
5154 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5156 ARI fixes: Add missing internationalization markups throughout
5158 * darwin-nat-info.c: Ditto.
5161 * mi/mi-main.c: Ditto.
5163 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5165 ARI fixes: Add missing internationalization markups throughout
5168 * cp-name-parser.y: Ditto.
5171 * objc-exp.y: Ditto.
5174 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5176 ARI fixes: Messages should have no trailing new lines.
5177 * darwin-nat.c (mach_check_error): Remove trailing new line from
5178 warning function call message.
5179 * record.c (bfdcore_read): Idem for error call.
5181 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5183 * common/signals.c (target_signal_from_host): Add _ markup to error
5184 function call message.
5185 (target_signal_to_host): Add _ markup and remove trailing new line
5186 from warning call message.
5187 (target_signal_from_command): Add _ markup to error function call
5190 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5194 * python/python.c (gdbpy_write): Accept a stream argument and
5195 operate to the appropriate stream.
5196 (gdbpy_flush): Likewise.
5197 (_initialize_python): Add stream constants.
5198 (finish_python_initialization): Add GdbOutputErrorFile class.
5200 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5202 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5204 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5206 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5207 to store_signed_integer. Add debug message when relocating CALL
5208 instructions. Fix formatting of debug message.
5209 * i386-tdep.c (i386_relocate_instruction): Ditto.
5211 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5213 * target.h (struct target_ops): Remove to_lookup_symbol field.
5214 (target_lookup_symbol): Delete macro.
5215 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5216 (update_current_target, setup_target_debug): Remove handling
5217 of to_lookup_symbol target_ops field.
5218 * ada-tasks.c (get_known_tasks_addr): Remove use of
5219 target_lookup_symbol.
5220 * coffread.c (coff_symtab_read): Likewise.
5221 * dbxread.c (read_dbx_symtab): Ditto.
5223 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5226 * configure.ac: Add getthrds declaration check.
5227 * configure, config.in: Regenerate.
5228 * aix-thread.c (getthrds): Declare only if not already declared
5229 in procinfo.h. More declaration out of get_signaled_thread to
5232 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5234 * python/py-symtab.c: Populate symtab_object_methods,
5236 (stpy_is_valid): New function.
5237 (salpy_is_valid): Ditto.
5238 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5239 (sympy_is_valid): New function.
5240 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5241 (objfpy_is_valid): New function.
5242 * python/py-inferior.c: Populate inferior_object_methods.
5243 (infpy_is_valid): New function.
5244 * python/py-infthread.c: Populate thread_object_methods.
5245 (thpy_is_valid): New function.
5246 * python/py-block.c: Declare block_object_methods. Populate. Declare
5247 block_iterator_object_methods. Populate.
5248 (blpy_is_valid): New function.
5249 (blpy_iter_is_valid): Ditto.
5251 2011-03-16 Keith Seitz <keiths@redhat.com>
5253 * linespec.c (find_methods): Canonicalize NAME before looking
5255 (name_end): New function.
5256 (keep_name_info): New function.
5257 (decode_line_1): Use keep_name_info.
5258 (decode_compound): Likewise.
5259 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5260 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5263 * linespec.c (locate_first_half): Keep overload information, too.
5264 (decode_compound): Use a string to represent break characters
5266 If P points to a break character, do not increment it.
5267 For C++ and Java, keep overload information and relevant keywords.
5268 If we cannot find a symbol, search the minimal symbols.
5271 * linespec.c (decode_compound): Rename SAVED_ARG to
5273 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5275 Pass a valid block to lookup_symbol.
5276 (lookup_prefix_sym): Likewise.
5277 (find_method): Construct search name based on SYM_CLASS instead
5279 * psymtab.c (lookup_partial_symbol): Add language parameter.
5280 (lookup_symbol_aux_psymtabs): Likewise.
5281 Don't assume that the psymtab we found was the right one. Search
5282 for the desired symbol in the symtab to be certain.
5283 (psymtab_search_name): New function.
5284 (lookup_partial_symbol): Use psymtab_search_name.
5285 Add language parameter.
5286 (read_symtabs_for_function): Add language parameter and pass to
5287 lookup_partial_symbol.
5288 (find_symbol_file_from_partial): Likewise.
5290 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5293 * dwarf2read.c (noop_record_line): New function.
5294 (dwarf_decode_lines): Ignore line tables for GCd functions.
5296 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5298 Fix ARI warnings about new lines at the end of messages, which
5299 are unneeded as there is a new line added at the end of the message
5301 * darwin-nat.c (darwin_stop_inferior): Ditto.
5302 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5303 * dfp.c (decimal_to_number): Ditto.
5304 * exec.c (print_section_info): Ditto.
5305 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5306 * osdata.c (get_osdata): Ditto.
5307 * record.c (bfdcore_write): Ditto.
5308 * remote-mips.c (mips_readchar): Ditto.
5309 * remote.c (read_ptid): Ditto.
5310 * ser-mingw.c (ser_windows_raw): Ditto.
5311 * tracepoint.c (add_local_symbols): Ditto.
5312 * windows-nat.c (fake_create_process): Ditto.
5314 2011-03-16 Tom Tromey <tromey@redhat.com>
5316 * tracepoint.c (stop_tracing): Don't declare.
5317 * event-top.c (after_char_processing_hook): Add `(void)'.
5319 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5321 * NEWS: Add Parameter sub-classing description.
5323 2011-03-16 Kai Tietz <ktietz@redhat.com>
5325 * MAINTAINERS: Update my e-mail address.
5327 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5329 * MAINTAINERS: Add myself for write after approval privileges.
5331 2011-03-15 Michael Snyder <msnyder@vmware.com>
5333 * frame.c (find_frame_sal): Assert sym is not null.
5335 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5337 * objc-lang.c (selectors_info): Check strchr for null result.
5339 * stabsread.c (define_symbol): Guard against bad stabstring input.
5341 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5343 Remove trailing spaces and tabulations from pascal language
5348 p-valprint.c: Ditto.
5350 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5352 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5353 than LOW. Comment it.
5354 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5355 HIGHPC not strictly higher than LOWPC.
5357 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5359 Fix formatting of function declarations returning a pointer in
5361 * varobj.c (varobj_add_child): Ditto.
5362 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5363 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5365 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5367 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5368 for the "generic" vector ABI used with GCC 4.3 and later.
5369 (ppc64_sysv_abi_return_value): Likewise.
5371 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5373 * infcall.c (call_function_by_hand): Function return value is
5374 always a non_lval, even when using struct_return.
5376 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5378 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5379 (map_display_numbers): New.
5380 (do_delete_display): New.
5381 (undisplay_command): Use map_display_numbers.
5382 (do_enable_disable_display): New.
5383 (enable_disable_display_command): New function.
5384 (enable_display): Delete.
5385 (enable_display_command): New.
5386 (disable_display_command): Reimplement.
5387 (_initialize_printcmd): Adjust "enable display" command to use
5388 `enable_display_command' as callback.
5390 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5392 * NEWS: Add Python breakpoint 'stop' operation.
5394 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5396 * NEWS: Delete duplicate entry. Fix typo.
5398 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5400 Fix ARI warning about function names in first column.
5401 Put prototype declaration on same line as return type.
5402 * objc-exp.y: Ditto.
5404 * python/py-stopevent.h: Ditto.
5405 For long function names, split parameters to
5406 allow function name on same line as return type.
5407 * solib-pa64.c: Ditto.
5410 For long function declaration, use single line.
5411 * hppa-tdep.h: Ditto.
5412 * inferior.h: Ditto.
5414 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5416 * python/python.h: Declare gdbpy_should_stop and
5417 gdbpy_breakpoint_has_py_cond.
5418 * python/python.c: Add python.h to includes. Remove python.h from
5419 HAVE_PYTHON definition
5420 (gdbpy_should_stop): New dummy function.
5421 (gdbpy_breakpoint_has_py_cond): New dummy function.
5422 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5423 sub-classing capabilities.
5424 (gdbpy_should_stop): New function.
5425 (gdbpy_breakpoint_has_py_cond): New function.
5426 (local_setattro): New function.
5427 * breakpoint.c (condition_command): Add check for Python 'stop'
5429 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5430 operation function as part of stop/continue tests.
5432 2011-03-14 Tom Tromey <tromey@redhat.com>
5435 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5436 (needs_frame_dwarf_call): Likewise.
5438 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5440 Fix ARI warning about functions without parameters that do not
5442 * breakpoint.c (all_tracepoints): Replace () by (void).
5443 * f-exp.y (match_string_literal): Ditto.
5445 * m2-exp.y (yylex): Ditto.
5446 * mep-tdep.c (current_me_module): Ditto.
5447 (current_options): Ditto.
5448 (current_cop_data_bus_width): Ditto.
5449 (current_cr_names): Ditto.
5450 (current_cr_is_float): Ditto.
5451 (current_ccr_names): Ditto.
5452 * objc-exp.y (yylex): Ditto.
5453 * p-exp.y (yylex): Ditto.
5454 * remote.c (send_interrupt_sequence): Ditto.
5455 * tracepoint.c (current_trace_status): Ditto.
5456 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5457 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5459 2011-03-11 Michael Snyder <msnyder@vmware.com>
5461 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5462 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5463 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5464 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5465 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5467 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5468 (delete_async_event_handler): Ditto.
5470 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5472 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5474 * top.c (set_verbose): Assert showcmd was found.
5476 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5478 * xtensa-tdep.c (warning_once): Correct style issues.
5480 2011-03-11 Yao Qi <yao@codesourcery.com>
5482 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5484 2011-03-11 Andreas Schwab <schwab@redhat.com>
5486 * common/aclocal.m4: Remove.
5488 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5490 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5491 (xtensa_write_register, xtensa_read_register): Likewise.
5492 (xtensa_hextochar): Removed.
5493 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5495 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5497 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5498 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5499 (xtensa_alloc_frame_cache): Add initialization for new fields.
5500 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5501 (warning_once): New function.
5502 (xtensa_insn_kind): New item c0opc_and.
5503 (call0_classify_opcode): Add the case for AND instruction.
5504 (call0_track_op): Change arguments. New local variable litbase.
5505 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5506 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5508 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5509 (call0_analyze_prologue): Update the comments. Change arguments.
5510 Add the variety of updates to handle extended prologues, which now can
5511 conduct dynamic stack adjustments.
5512 (call0_frame_cache): Likewise.
5513 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5514 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5516 2011-03-10 Michael Snyder <msnyder@vmware.com>
5518 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5519 (cmd_qtframe): Ditto.
5520 (cmd_qtbuffer): Ditto.
5521 (cmd_bigqtbuffer): Ditto.
5523 2011-03-10 Tom Tromey <tromey@redhat.com>
5525 * tracepoint.c (trace_actions_command): Update.
5526 * thread.c (thread_apply_command): Update.
5527 * reverse.c (delete_bookmark_command): Update.
5528 (bookmarks_info): Update.
5529 * printcmd.c (undisplay_command): Update.
5530 * memattr.c (mem_enable_command): Update.
5531 (mem_disable_command): Update.
5532 (mem_delete_command): Update.
5533 * inferior.c (detach_inferior_command): Update.
5534 (kill_inferior_command): Update.
5535 (remove_inferior_command): Update.
5536 * cli/cli-utils.h (struct get_number_or_range_state): New.
5537 (init_number_or_range): Declare.
5538 (get_number_or_range): Update.
5539 * cli/cli-utils.c (init_number_or_range): New function.
5540 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5542 (number_is_in_list): Update.
5543 * breakpoint.h (get_tracepoint_by_number): Update.
5544 * breakpoint.c (map_breakpoint_numbers): Update for change to
5545 get_number_or_range.
5546 (find_location_by_number): Use get_number, not
5547 get_number_or_range.
5548 (trace_pass_set_count): New function.
5549 (trace_pass_command): Update for change to get_number_or_range.
5551 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5554 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5556 * python/py-param.c (add_setshow_generic): Add set/show callback
5557 parameters. Register Python object context.
5558 (get_show_value): New function.
5559 (get_set_value): New function.
5560 (call_doc_function): New function.
5561 (get_doc_string): Move behind get_show_value/get_set_value.
5563 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5565 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5567 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5569 * xtensa-tdep.c (xtensa_read_register): Add comment.
5570 (xtensa_write_register): Likewise.
5571 (xtensa_hextochar): Add comment and update to match coding conventions.
5572 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5573 (execute_l32e, execute_s32e, execute_code): Update comments.
5574 (xtensa_exception_handler_t): Update to match coding conventions.
5575 (xtensa_insn_kind): Likewise.
5577 2011-03-09 Michael Snyder <msnyder@vmware.com>
5579 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5581 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5583 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5585 2011-03-09 Tom Tromey <tromey@redhat.com>
5587 * thread.c (restore_selected_frame): Handle frame_level == -1.
5588 (make_cleanup_restore_current_thread): Use
5589 get_selected_frame_if_set.
5590 * frame.h (get_selected_frame_if_set): Declare.
5591 * frame.c (get_selected_frame_if_set): New function.
5593 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5595 * cli/cli-cmds.c (shell_escape): Use lbasename.
5596 * coffread.c (coff_start_symtab): Constify parameter.
5597 (complete_symtab): Constify `name' parameter.
5598 (coff_symtab_read): Constify `filestring' local.
5599 (coff_getfilename): Constify return and `result' local.
5601 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5602 * linux-fork.c (info_checkpoints_command): Use lbasename.
5603 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5604 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5605 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5606 * procfs.c (procfs_make_note_section): Use lbasename.
5607 * tui/tui-io.c (printable_part): Constity return and parameter.
5609 (print_filename): Constify parameters, and local `s'.
5610 (tui_rl_display_match_list): Constify local `temp'.
5612 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5615 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5616 Fix DWARF-3+ DW_AT_accessibility default assumption.
5617 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5618 cu->header.version >= 3.
5620 2011-03-09 Yao Qi <yao@codesourcery.com>
5622 * common/Makefile.in: Remove.
5623 * common/configure: Remove.
5624 * common/configure.ac: Remove.
5626 2011-03-09 Yao Qi <yao@codesourcery.com>
5629 2011-02-11 Yao Qi <yao@codesourcery.com>
5631 * common/Makefile.in: Add copyright header.
5633 2011-02-11 Yao Qi <yao@codesourcery.com>
5635 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5637 * configure.ac: Add common to sub dir.
5638 * configure: Regenerate.
5640 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5642 * xtensa-tdep.c (call0_ret): New function.
5643 (xtensa_skip_prologue): Speed up analysis.
5645 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5647 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5648 while executing MI command -data-list-changed-registers.
5650 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5652 * xtensa-tdep.c (xtensa_read_register): New function.
5653 (xtensa_write_register): New function.
5654 (xtensa_find_register_by_name): New function.
5655 (xtensa_windowed_frame_cache): Update comments in type description.
5656 (xtensa_frame_cache): Likewise.
5657 (xtensa_window_interrupt_insn): New function.
5658 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5659 (xtensa_insn_kind): Add new instructions.
5660 (rwx_special_register): New function.
5661 (call0_classify_opcode): Add new instructions to the analysis.
5662 (a0_saved, a7_saved, a11_saved): New variables.
5663 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5664 (execute_l32e): New function.
5665 (execute_s32e): New function.
5666 (xtensa_exception_handler_t): New type.
5667 (execute_code): New function.
5668 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5669 analysis for Xtensa Window Exception handlers.
5671 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5673 * xtensa-tdep.c (TX_PS): New.
5674 (windowing_enabled): Update to count for Call0 ABI.
5675 (xtensa_hextochar): New.
5676 (xtensa_init_reggroups): Make algorithm generic.
5677 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5679 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5681 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5683 2011-03-08 Michael Snyder <msnyder@vmware.com>
5685 * i386-tdep.c (i386_follow_jump): Check return value of
5687 (i386_analyze_struct_return): Ditto.
5688 (i386_skip_probe): Ditto.
5689 (i386_match_insn): Ditto.
5690 (i386_skip_noop): Ditto.
5691 (i386_analyze_frame_setup): Ditto.
5692 (i386_analyze_register_saves): Ditto.
5693 (i386_skip_prologue): Ditto.
5694 (i386_skip_main_prologue): Ditto.
5696 * target.c (read_whatever_is_readable): Fix memory leak.
5698 * i386-tdep.c (i386_process_record): Document fall through.
5700 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5702 Fix DWARF-3+ DW_AT_accessibility default assumption.
5703 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5704 cu->header.version >= 3.
5706 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5708 * remote.c (remote_check_symbols): Skip if the target has no
5711 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5713 * target.c (read_whatever_is_readable): Reformat comment,
5714 with a minor typo fix. Minor reformatting of the code.
5716 2011-03-08 Yao Qi <yao@codesourcery.com>
5718 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5719 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5720 Use cached result instead of calling displaced_in_arm_mode again.
5721 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5722 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5723 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5724 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5725 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5726 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5727 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5728 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5729 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5730 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5731 (arm_catch_kernel_helper_return): Likewise.
5732 * gdb/arm-tdep.h : Update function declarations.
5734 2011-03-07 Michael Snyder <msnyder@vmware.com>
5736 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5738 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5740 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5742 * elfread.c (elf_symtab_read): Stop memory leak.
5744 * main.c (captured_main): Fix memory leak.
5746 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5748 * ada-lang.c (compare_names): Call is_name_suffix with string1
5751 2011-03-07 Tom Tromey <tromey@redhat.com>
5753 * xcoffread.c (xcoff_sym_fns): Update.
5754 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5755 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5756 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5757 (symbol_file_add_with_addrs_or_offsets): Likewise.
5758 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5759 * somread.c (som_sym_fns): Update.
5760 * psymtab.h (require_partial_symbols): Declare.
5761 * psymtab.c (require_partial_symbols): New function.
5762 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5763 (ALL_OBJFILE_PSYMTABS): Undef.
5764 (ALL_PSYMTABS): Move from psympriv.h.
5765 (lookup_partial_symtab, find_pc_sect_psymtab)
5766 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5767 (find_last_source_symtab_from_partial)
5768 (forget_cached_source_info_partial)
5769 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5770 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5771 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5772 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5773 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5774 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5775 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5776 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5777 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5779 * mipsread.c (ecoff_sym_fns): Update.
5780 * machoread.c (macho_sym_fns): Update.
5781 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5782 (read_psyms): New function.
5783 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5784 (elf_sym_fns_lazy_psyms): New global.
5785 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5786 dwarf2_build_psymtabs.
5787 * dbxread.c (aout_sym_fns): Update.
5788 * coffread.c (coff_sym_fns): Update.
5790 2011-03-07 Tom Tromey <tromey@redhat.com>
5792 * infrun.c (print_exited_reason): Include inferior id and pid in
5795 2011-03-07 Tom Tromey <tromey@redhat.com>
5797 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5799 (target_has_execution_1): Update.
5800 (target_has_execution_current): Declare.
5801 (target_has_execution): Call target_has_execution_current.
5802 (default_child_has_execution): Update.
5803 * target.c (default_child_has_execution): Add 'the_ptid'
5805 (target_has_execution_1): Likewise.
5806 (target_has_execution_current): New function.
5807 (add_target): Update.
5808 (init_dummy_target): Update.
5809 * remote-m32r-sdi.c (m32r_has_execution): New function.
5810 (init_m32r_ops): Use it.
5811 * record.c (record_core_has_execution): Now static. Add
5812 'the_ptid' parameter.
5813 * inferior.c (have_live_inferiors): Don't save current thread.
5814 Use target_has_execution_1.
5816 2011-03-07 Yao Qi <yao@codesourcery.com>
5818 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5820 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5822 * elfread.c (elf_symtab_read): Minor reformatting.
5824 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5826 * objc-lang.c (selectors_info): Minor reformatting.
5828 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5830 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5832 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5833 Michael Snyder <msnyder@vmware.com>
5835 * ada-valprint.c (ada_val_print_array): Move the declaration of
5836 "byte_order" and "elttype" inside the block where these variables
5837 are actually used. Remove some special handling for the case
5838 where "elttype" and "eltlen" are null. Replace by a comment
5839 and a couple of assertion checks.
5841 2011-03-05 Michael Snyder <msnyder@vmware.com>
5843 * source.c (add_path): Replace semicolon at end of block.
5844 * dwarf2expr.c (execute_stack_op): Ditto.
5846 2011-03-05 Mike Frysinger <vapier@gentoo.org>
5848 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
5849 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
5850 (bfin-*-*): Likewise.
5852 2011-03-05 Michael Snyder <msnyder@vmware.com>
5854 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
5855 * mdebugread.c (parse_symbol): Ditto.
5856 * parse.c (parse_exp_in_context): Ditto.
5857 * source.c (add_path): Ditto.
5858 * utils.c (gnu_debuglink_crc32): Ditto.
5859 * varobj.c (variable_language): Ditto.
5861 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
5863 2011-03-04 Michael Snyder <msnyder@vmware.com>
5865 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
5867 * symfile.c (simple_overlay_update): Check for null return value
5868 from lookup_minimal_symbol.
5870 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
5872 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5874 * eval.c (parse_and_eval_address_1): Remove function.
5875 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
5876 instead of parse_and_eval_address_1.
5877 * value.h (parse_and_eval_address_1): Remove prototype.
5879 2011-03-04 Michael Snyder <msnyder@vmware.com>
5881 * remote.c (putpkt_binary): Document that case stmt falls through.
5883 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5885 * breakpointc (print_it_typical): Move NULL check from here...
5886 (print_bp_stop_message): ... to here.
5888 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
5890 * breakpoint.c (enable_command): Use break instead of continue,
5891 and fill in a missing break.
5892 (disable_command): Ditto.
5894 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5896 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
5897 (terminal_save_ours): Remove misleading comment.
5898 (inflow_inferior_data_cleanup): Free ttystate.
5899 (inflow_inferior_exit): Likewise.
5900 (copy_terminal_info): Copy ttystate.
5902 * serial.c (serial_copy_tty_state): New function.
5903 * serial.h (serial_copy_tty_state): Add prototype.
5904 (struct serial_ops): Add copy_tty_state callback.
5905 * ser-base.c (ser_base_copy_tty_state): New function.
5906 * ser-base.h (ser_base_copy_tty_state): Add prototype.
5907 * ser-go32.c (dos_copy_tty_state): New function.
5908 (dos_ops): Install copy_tty_state callback.
5909 * ser-mingw.c (_initialize_ser_windows): Likewise.
5910 * ser-pipe.c (_initialize_ser_pipe): Likewise.
5911 * ser-unix.c (hardwire_copy_tty_state): New function.
5912 (_initialize_ser_hardwire): Install it.
5914 2011-03-04 Michael Snyder <msnyder@vmware.com>
5916 * breakpoint.c (create_breakpoint): Add missing break statement.
5918 Reverting this patch:
5919 * infcall.c (call_function_by_hand): Add break statements for lint.
5921 Reverting this patch:
5922 * cli/cli-script.c (script_from_file): Add break for lint.
5924 2011-03-04 Michael Snyder <msnyder@vmware.com>
5926 * solib.c (reload_shared_libraries_1): Close memory leak.
5928 2011-03-03 Tom Tromey <tromey@redhat.com>
5931 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
5934 2011-03-03 Michael Snyder <msnyder@vmware.com>
5936 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
5937 fields of struct 'st' to zero.
5939 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
5940 sal.pspace before calling set_current_source_symtab_and_line.
5942 2011-03-03 Yao Qi <yao@codesourcery.com>
5944 * Makefile.in (configure-common): Remove. Let Makefile
5945 in dir common to rebuild itself.
5946 (common/Makefile): Likewise.
5948 2011-03-03 Joel Brobecker <brobecker@adacore.com>
5950 * utils.c (parse_escape): Add i18n markup in error message.
5952 2011-03-03 Yao Qi <yao@codesourcery.com>
5954 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
5956 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
5957 (displaced_write_reg, displaced_read_reg): Likewise.
5958 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
5959 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5960 (cleanup_branch): Replace magic number 14 and 15 with
5961 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
5963 2011-03-02 Michael Snyder <msnyder@vmware.com>
5965 * maint.c (maintenance_do_deprecate): No need to check for NULL.
5967 * cli/cli-script.c (script_from_file): Add break for lint.
5969 * mdebugread.c (parse_partial_symbols): Fix indent.
5971 * target-descriptions.c (tdesc_gdb_type): No need to call
5972 xstrdup, callee saves a copy.
5974 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
5976 * infcall.c (call_function_by_hand): Add break statements for lint.
5978 * utils.c (parse_escape): Escape the escape char.
5980 * python/py-inferior.c (build_inferior_list): Error out if
5981 PyList_Append fails.
5982 (gdbpy_inferiors): Error out if build_inferior_list fails.
5984 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
5987 * record.c (record_restore): Move printf to before error return.
5989 2011-03-02 Yao Qi <yao@codesourcery.com>
5991 * arm-tdep.h (struct displaced_step_closure): Add two new fields
5992 is_thumb and insn_size.
5993 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
5994 on both ARM and Thumb mode.
5995 (arm_process_displaced_insn): Set is_thumb and insn_size.
5996 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
5997 (arm_displaced_step_fixup): Likewise.
5999 2011-03-01 Michael Snyder <msnyder@vmware.com>
6001 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6003 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6005 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6007 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6009 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6012 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6013 which shadows function parameter.
6015 * tracepoint.c (create_tsv_from_upload): Superfluous call
6016 to xstrdup. Callee already calls xstrdup.
6018 * linespec.c (decode_line_1): Remove unnecessary null check.
6020 * tracepoint.c (scope_info): Fix mem leak, remove underused
6023 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6024 superfluous null check.
6026 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6027 (value_of_builtin_frame_fp_reg): Ditto.
6029 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6031 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6034 * linespec.c (decode_line_1): Check for null before dereference.
6036 * reverse.c (record_restore): Move null-check to before pointer
6039 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6041 * objc-lang.c (selectors_info): Add explanitory comment.
6042 (classes_info): Ditto.
6044 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6046 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6047 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6048 versions of the trampoline. Handle Thumb vs. ARM addresses.
6049 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6050 (arm_linux_init_abi): Install it.
6051 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6052 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6054 2011-02-28 Michael Snyder <msnyder@vmware.com>
6056 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6057 a little bigger, to avoid possibility of an overflow.
6059 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6060 buffers a little bigger, to avoid possibility of an overflow.
6062 * coffread.c (coff_getfilename): Add check to avoid overflow.
6064 * objc-lang.c (selectors_info): Add a small safety margin to
6066 (classes_info): Error out on too long REGEXP.
6068 * infrun.c (handle_inferior_event): Remove unused function call.
6070 * fork-child.c (fork_inferior): Remove ifdef'd code and
6073 * linux-thread-db.c (attach_thread): Discard unused value.
6075 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6077 * remote.c (remote_get_noisy_reply): Discard unused value.
6078 (remote_vcont_resume): Ditto.
6079 (remote_stop_ns): Ditto.
6081 * linespec.c (decode_objc): Delete unused variable.
6083 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6085 * dwarf2read.c (add_partial_symbol): Discard unused values.
6086 (read_base_type): Delete unused variable.
6088 * dbxread.c (read_dbx_symtab): Discard unused value.
6090 * eval.c (evaluate_subexp_standard): Delete unused variable,
6091 and discard unused values.
6093 * infcmd.c (_initialize_infcmd): Discard unused values.
6095 * stabsread.c (rs6000_builtin_type): Missing break statement.
6097 * dbxread.c (process_one_symbol): Discard unused value.
6099 * coffread.c (coff_end_symtab): Delete unused variable.
6101 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6102 (dwarf2_add_typedef): Delete unused variable.
6103 (read_namespace): Ditto.
6104 (dwarf_decode_macros): Ditto.
6106 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6108 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6110 * p-valprint.c (pascal_val_print): Discard unused value.
6112 * utils.c (nquery): Call va_end before return;
6116 * proc-service.c (ps_plog): Call va_end before return.
6118 2011-02-28 Tom Tromey <tromey@redhat.com>
6120 * python/python.c (gdbpy_value_cst): New global.
6121 (_initialize_python): Initialize it.
6122 * python/python-internal.h (gdbpy_value_cst): Declare.
6123 * python/py-value.c (convert_value_from_python): Use
6126 2011-02-28 Michael Snyder <msnyder@vmware.com>
6128 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6130 * breakpoint.c (catch_syscall_completer): Free malloced list.
6132 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6134 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6135 (lval_func_check_synthetic_pointer): Ditto.
6136 (lval_func_free_closure): Fix use-after-free.
6138 2011-02-28 Tom Tromey <tromey@redhat.com>
6140 * psymtab.c (expand_partial_symbol_tables): Use
6141 ALL_OBJFILE_PSYMTABS.
6143 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6145 * objc-lang.c (selectors_info): Error on too long REGEXP.
6147 2011-02-28 Michael Snyder <msnyder@vmware.com>
6149 * python/py-param.c (set_parameter_value): Add missing
6152 * linux-record.c (record_linux_system_call): Add missing
6155 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6157 * breakpoint.c (print_one_breakpoint_location): Remove unused
6158 argument PRINT_ADDRESS_BITS. Update callers.
6159 (print_one_breakpoint): Likewise.
6161 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6163 * breakpoint.c (wrap_indent_at_field): New function.
6164 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6165 Allocate ui_stream locally instead of using STB argument.
6166 (print_one_breakpoint_location): Update call.
6167 * ui-out.c (ui_out_query_field): New function.
6168 * ui-out.h (ui_out_query_field): Add prototype.
6170 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6172 From Michael Snyder <msnyder@vmware.com>
6173 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6175 2011-02-27 Michael Snyder <msnyder@vmware.com>
6177 * objc-lang.c (selectors_info): Prevent string overrun.
6179 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6182 * symtab.c (rbreak_command): Move variable 'file_name' to
6185 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6186 param with a local variable of the same name.
6188 2011-02-27 Michael Snyder <msnyder@vmware.com>
6190 * value.c (value_from_history_ref): New function.
6191 * value.h (value_from_history_ref): Export.
6192 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6193 to parse value history references.
6194 * cli/cli-utils.h (get_number_trailer): Update comment.
6196 2011-02-27 Michael Snyder <msnyder@vmware.com>
6198 * inferior.c (detach_inferior_command): Use get_number_or_range.
6199 (kill_inferior_command): Ditto.
6200 (remove_inferior_command): Ditto.
6201 (initialize_inferiors): Make command names plural.
6202 Update help strings.
6204 2011-02-27 Michael Snyder <msnyder@vmware.com>
6206 * darwin-nat-info.c: Fix comment typo.
6207 * dwarf2expr.h: Ditto.
6208 * fbsd-nat.c: Ditto.
6209 * fbsd-nat.h: Ditto.
6210 * frame-unwind.h: Ditto.
6212 * hppa-hpux-tdep.c: Ditto.
6213 * i386-linux-nat.c: Ditto.
6214 * linux-nat.c: Ditto.
6215 * nbsd-nat.c: Ditto.
6216 * nbsd-nat.h: Ditto.
6217 * ppc-linux-tdep.c: Ditto.
6220 * tui/tui-winsource.c: Ditto.
6222 2011-02-26 Michael Snyder <msnyder@vmware.com>
6224 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6226 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6228 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6229 with a local variable of the same name.
6231 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6232 param with a local variable of the same name.
6233 (i387_supply_xsave): Ditto.
6235 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6236 that it does not shadow a function parameter.
6238 * i386-nat.c (i386_length_and_rw_bits): Document that case
6239 statement is meant to fall through.
6241 * expprint.c (dump_subexp_body_standard): Document that case
6242 statement is meant to fall through.
6244 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6245 dead if statement. Condition can't be false.
6247 2011-02-25 Michael Snyder <msnyder@vmware.com>
6249 * arm-tdep.c: Fix typos in comments.
6250 * bsd-uthread.c: Ditto.
6251 * completer.c: Ditto.
6253 * cp-namespace.c: Ditto.
6254 * cp-support.c: Ditto.
6255 * cris-tdep.c: Ditto.
6257 * dwarf2read.c: Ditto.
6259 * gdbtypes.h: Ditto.
6260 * inferior.h: Ditto.
6261 * mdebugread.c: Ditto.
6262 * mips-tdep.c: Ditto.
6263 * ppc-linux-nat.c: Ditto.
6264 * ppc-linux-tdep.c: Ditto.
6265 * printcmd.c: Ditto.
6266 * sol-thread.c: Ditto.
6267 * solib-frv.c: Ditto.
6269 * sparc64-tdep.c: Ditto.
6270 * spu-tdep.c: Ditto.
6271 * stabsread.c: Ditto.
6276 * python/py-block.c: Ditto.
6277 * python/py-symbol.c: Ditto.
6278 * python/py-symtab.c: Ditto.
6279 * python/py-value.c: Ditto.
6280 * tui/tui-win.c: Ditto.
6282 2011-02-25 Michael Snyder <msnyder@vmware.com>
6284 * inferior.c (print_inferior): Accept a string instead of an int
6285 for requested_inferiors, and use get_number_or_range to parse it.
6286 (info_inferiors_command): Pass args string to print_inferior.
6287 (initialize_inferiors): Change help string for info inferiors.
6288 * inferior.h (print_inferior): Export prototype change.
6290 2011-02-25 Tom Tromey <tromey@redhat.com>
6292 * common/ax.def (invalid2): Set to 0x31.
6294 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6296 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6298 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6300 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6302 2011-02-24 Michael Snyder <msnyder@vmware.com>
6304 * Makefile.in (clean): Make clean should remove generated files
6305 observer.h and observer.inc.
6307 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6309 Revert the following patch (not approved yet):
6310 2011-02-21 Hui Zhu <teawater@gmail.com>
6311 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6312 * ax-gdb.c (gen_printf_expr_callback): New function.
6313 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6314 * ax-general.c (ax_memcpy): New function.
6315 (ax_print): Handle "printf".
6317 * ax.h (ax_memcpy): Forward declare.
6318 * common/ax.def (invalid2): Removed.
6319 (printf): New entry.
6320 * printcmd.c (printcmd.h): New include.
6321 (string_printf): New function.
6322 (ui_printf): Removed.
6323 (printf_command): Remove static. Call string_printf.
6324 (eval_command): Call string_printf.
6325 * printcmd.h: New file.
6326 * tracepoint.c (validate_actionline,
6327 encode_actions_1): handle printf_command.
6329 2011-02-23 Tom Tromey <tromey@redhat.com>
6331 * ax-general.c (ax_pick): Add missing newline.
6333 2011-02-23 Michael Snyder <msnyder@vmware.com>
6335 * breakpoint.c (breakpoint_1): Change first argument from an int
6336 to a char pointer, so that the function now accepts a list of
6337 breakpoints rather than just one. Use new function
6338 'number_is_in_list' to implement.
6339 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6340 (watchpoints_info): Ditto.
6341 (tracepoints_info): Ditto.
6342 (maintenance_info_breakpoints): Ditto.
6343 (_initialize_breakpoint): Update help strings to reflect the fact
6344 that these functions can now take more than one argument.
6345 * cli/cli-utils.c (number_is_in_list): New function.
6346 * cli/cli-utils.h (number_is_in_list): Export.
6348 2011-02-23 Michael Snyder <msnyder@vmware.com>
6350 * memattr.c (mem_enable_command): Use get_number_or_range.
6351 (mem_disable_command): Ditto.
6352 (mem_delete_command): Ditto.
6353 (_initialize_mem): Tweak usage message to reflect multiple
6356 2011-02-22 Doug Evans <dje@google.com>
6358 Add gdb.lookup_global_symbol python function.
6360 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6361 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6362 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6364 2011-02-22 Tom Tromey <tromey@redhat.com>
6366 * language.c (language_class_name_from_physname): Rename
6367 'curr_language' argument to 'lang'; use in body.
6369 2011-02-22 Michael Snyder <msnyder@vmware.com>
6371 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6373 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6375 * frame-unwind.h: Fix comment to mention the this frame, not the
6378 2011-02-22 Tom Tromey <tromey@redhat.com>
6380 * symfile.c (auto_solib_limit): Remove.
6381 * symfile.h (auto_solib_limit): Remove.
6383 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6385 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6387 2011-02-21 Michael Snyder <msnyder@vmware.com>
6389 * gdbthread.h (print_thread_info): Change prototype.
6390 * thread.c (print_thread_info): Accept char* instead of int for
6391 requested_threads argument. Use new function number_is_in_list
6392 to determine which threads to list.
6393 (info_threads_command): Pass char* to print_thread_info.
6394 * cli/cli-utils.c (number_is_in_list): New function.
6395 * cli/cli-utils.h (number_is_in_list): Export.
6396 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6398 (print_one_inferior): Ditto.
6399 (mi_cmd_list_thread_groups): Ditto.
6401 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6403 * common/Makefile.in (CFLAGS): New.
6404 (COMPILE): Add $(CFLAGS).
6406 2011-02-21 Tom Tromey <tromey@redhat.com>
6408 * breakpoint.c (catch_syscall_command_1): Fix typo.
6410 2011-02-21 Tom Tromey <tromey@redhat.com>
6412 * reverse.c: Include cli-utils.h.
6413 * printcmd.c: Include cli-utils.h.
6414 (string_printf): Use skip_spaces.
6415 * cli/cli-utils.h: New file.
6416 * cli/cli-utils.c: New file.
6417 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6418 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6419 * breakpoint.h (get_number, get_number_or_range): Move to
6421 * breakpoint.c: Include cli-utils.h.
6422 (get_number_trailer, get_number, get_number_or_range)
6423 (ep_skip_leading_whitespace): Move to cli-utils.c.
6424 (create_breakpoint_sal, find_condition_and_thread)
6425 (decode_static_tracepoint_spec, watch_command_1)
6426 (watch_maybe_just_location, ep_parse_optional_if_clause)
6427 (catch_fork_command_1, catch_exec_command_1)
6428 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6429 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6430 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6431 (HFILES_NO_SRCDIR): Add cli-utils.h.
6432 (cli-utils.o): New target.
6434 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6436 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6437 before calling discard_all_inferiors.
6439 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6441 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6442 (struct builtin_opencl_type): Remove.
6443 (builtin_opencl_type): Change return type to "struct type **".
6444 (lookup_opencl_vector_type): Update caller.
6445 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6446 (build_opencl_types): Install plain array of "struct type *"
6447 instead of "struct builtin_opencl_type".
6449 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6450 Ulrich Weigand <uweigand@de.ibm.com>
6452 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6453 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6454 (struct arm_linux_hwbp_cap): New type.
6455 (arm_linux_get_hwbp_cap): New function.
6456 (arm_linux_get_hw_breakpoint_count): Likewise.
6457 (arm_linux_get_hw_watchpoint_count): Likewise.
6458 (arm_linux_can_use_hw_breakpoint): Likewise.
6459 (arm_hwbp_type): New type.
6460 (arm_hwbp_control_t): Likewise.
6461 (struct arm_linux_hw_breakpoint): Likewise.
6462 (struct arm_linux_thread_points): Likewise.
6463 (arm_threads): New global variable.
6464 (arm_linux_find_breakpoints_by_tid): New function.
6465 (arm_hwbp_control_initialize): Likewise.
6466 (arm_hwbp_control_is_enabled): Likewise.
6467 (arm_hwbp_control_disable): Likewise.
6468 (arm_linux_hw_breakpoint_initialize): Likewise.
6469 (arm_linux_get_hwbp_type): Likewise.
6470 (arm_linux_hw_watchpoint_initialize): Likewise.
6471 (arm_linux_hw_breakpoint_equal): Likewise.
6472 (arm_linux_insert_hw_breakpoint1): Likewise.
6473 (arm_linux_remove_hw_breakpoint1): Likewise.
6474 (arm_linux_insert_hw_breakpoint): Likewise.
6475 (arm_linux_remove_hw_breakpoint): Likewise.
6476 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6477 (arm_linux_insert_watchpoint): Likewise.
6478 (arm_linux_remove_watchpoint): Likewise.
6479 (arm_linux_stopped_data_address): Likewise.
6480 (arm_linux_stopped_by_watchpoint): Likewise.
6481 (arm_linux_watchpoint_addr_within_range): Likewise.
6482 (arm_linux_new_thread): Likewise.
6483 (arm_linux_thread_exit): Likewise.
6484 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6485 related target callbacks. Register arm_linux_new_thread and
6486 arm_linux_thread_exit.
6487 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6488 * arm-tdep.c (arm_pc_is_thumb): Make global.
6489 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6491 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6493 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6494 per-frame locations while within a function epilogue.
6496 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6498 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6499 to GNU coding standards.
6501 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6503 Allow use of mingw native on Windows 95 OS.
6504 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6505 (ser_windows_close): Only call CancelIo if function exists.
6506 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6507 to check for existence of CancelIo function in kernel32 DLL.
6509 2011-02-21 Hui Zhu <teawater@gmail.com>
6511 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6512 * ax-gdb.c (gen_printf_expr_callback): New function.
6513 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6514 * ax-general.c (ax_memcpy): New function.
6515 (ax_print): Handle "printf".
6517 * ax.h (ax_memcpy): Forward declare.
6518 * common/ax.def (invalid2): Removed.
6519 (printf): New entry.
6520 * printcmd.c (printcmd.h): New include.
6521 (string_printf): New function.
6522 (ui_printf): Removed.
6523 (printf_command): Remove static. Call string_printf.
6524 (eval_command): Call string_printf.
6525 * printcmd.h: New file.
6526 * tracepoint.c (validate_actionline,
6527 encode_actions_1): handle printf_command.
6529 2011-02-19 Michael Snyder <msnyder@vmware.com>
6531 * reverse.c (delete_one_bookmark): Argument is now bookmark
6532 id rather than pointer to bookmark struct.
6533 (delete_bookmark_command): Use get_number_or_range.
6534 (goto_bookmark_command): Parse with get_number instead of strtoul.
6535 (bookmark_1): New function. Print info for one bookmark.
6536 (bookmarks_info): Use get_number_or_range and bookmark_1.
6538 2011-02-18 Michael Snyder <msnyder@vmware.com>
6540 * thread.c (info_threads_command): Re-implement using
6541 get_number_or_range.
6542 (thread_apply_command): Ditto.
6544 2011-02-18 Tom Tromey <tromey@redhat.com>
6546 * common/ax.def: New file.
6547 * ax.h (enum agent_op): Use ax.def.
6548 * ax-general.c (aop_map): Use ax.def.
6550 2011-02-18 Tom Tromey <tromey@redhat.com>
6552 * ax-general.c (aop_map): Add pick and rot.
6553 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6554 <DW_OP_rot>: Implement.
6555 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6557 * ax-general.c (ax_pick): New function.
6559 2011-02-18 Tom Tromey <tromey@redhat.com>
6561 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6563 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6564 Tom Tromey <tromey@redhat.com>
6566 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6567 make_symbol_overload_list_block with NULL BLOCK.
6568 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6570 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6572 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6573 * breakpoint.h (get_number_or_range): Declare.
6574 * printcmd.c (ALL_DISPLAYS): Declare.
6575 (delete_display): Reimplement taking a display pointer.
6576 (undisplay_command): Accept a range of displays to delete, using
6577 get_number_or_range.
6579 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6581 * c-valprint.c (c_val_print): Add embedded_offset to address
6582 for arrays of unspecified length.
6583 * p-valprint.c (pascal_val_print): Likewise.
6585 2011-02-18 Yao Qi <yao@codesourcery.com>
6587 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6588 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6589 (thumb_process_displaced_insn): New.
6590 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6591 call to arm_process_displaced_insn.
6592 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6594 2011-02-17 Tom Tromey <tromey@redhat.com>
6596 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6597 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6598 compile_dwarf_to_ax. No longer static. Call
6599 dwarf2_compile_cfa_to_ax.
6600 (locexpr_tracepoint_var_ref): Update.
6601 (loclist_tracepoint_var_ref): Update.
6602 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6603 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6604 argument; add 'gdbarch' and 'pc'.
6605 (dwarf2_compile_cfa_to_ax): New function.
6606 (dwarf2_frame_cache): Update.
6608 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6610 * ada-lang.c (ada_type_of_array): Fix the size of the array
6611 in the case of an unconstrained packed array.
6613 2011-02-17 Yao Qi <yao@codesourcery.com>
6615 * common/Makefile.in: Add more targets for make.
6617 2011-02-16 Tom Tromey <tromey@redhat.com>
6619 * dwarf2loc.c (unimplemented): Fix typo.
6621 2011-02-16 Tom Tromey <tromey@redhat.com>
6623 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6624 (compile_dwarf_to_ax) <default>: Use unimplemented.
6625 <DW_OP_deref>: Update.
6626 (disassemble_dwarf_expression): Update.
6627 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6628 (decode_locdesc): Update.
6629 * dwarf2expr.h (dwarf_stack_op_name): Update.
6631 2011-02-16 Tom Tromey <tromey@redhat.com>
6633 * ax.h (struct aop_map) <name>: Now const.
6635 2011-02-16 Tom Tromey <tromey@redhat.com>
6637 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6640 2011-02-16 Yao Qi <yao@codesourcery.com>
6642 * infrun.c (get_displaced_step_closure_by_addr): New.
6643 * inferior.h: Declare it.
6644 * arm-tdep.c: (arm_pc_is_thumb): Call
6645 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6648 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6649 Jan Kratochvil <jan.kratochvil@redhat.com>
6652 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6654 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6655 Jan Kratochvil <jan.kratochvil@redhat.com>
6657 * value.c (value_contents_copy_raw): Extend describing comment.
6658 Assert that the destination contents we're overwriting are wholly
6660 (value_contents_copy): Extend describing comment.
6662 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6663 Jan Kratochvil <jan.kratochvil@redhat.com>
6665 * value.c (value_available_contents_eq): Remove redundant local
6666 variables. Fix available contents comparision.
6667 * value.h (value_available_contents_eq): Extend describing
6670 2011-02-16 Yao Qi <yao@codesourcery.com>
6672 * thread.c (info_threads_command): Add missing i18n markup and remove
6675 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6677 * breakpoint.c (longjmp_names): New variable.
6678 (struct breakpoint_objfile_data): New type.
6679 (breakpoint_objfile_key): New variable.
6680 (msym_not_found): New variable.
6681 (msym_not_found_p): New predicate.
6682 (get_breakpoint_objfile_data): New function.
6683 (create_overlay_event_breakpoint): Check per-objfile cache for
6685 (create_longjmp_master_breakpoint): Likewise.
6686 (create_std_terminate_master_breakpoint): Likewise.
6687 (create_exception_master_breakpoint): Likewise.
6688 (_initialize_breakpoint): Register per-objfile data key.
6690 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6692 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6694 (create_longjmp_master_breakpoint): Loop over longjmp names.
6695 (create_std_terminate_master_breakpoint): Const-propagate parameter
6697 (update_breakpoints_after_exec): Adjust.
6698 (breakpoint_re_set): Adjust.
6700 2011-02-15 Michael Snyder <msnyder@vmware.com>
6702 * thread.c (info_threads_command): Process arg as thread id,
6703 or list of thread ids.
6704 (thread_find_command): New command.
6705 (_initialize_thread): Document argument for info threads.
6706 Document 'thread find' command.
6707 * NEWS: Document new command "thread find".
6709 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6711 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6712 * aclocal.m4: Regenerated with aclocal-1.11.1.
6713 * common/configure: Regenerate with autoconf-2.64.
6715 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6717 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6718 bool data type to a size of one byte.
6720 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6721 Jan Kratochvil <jan.kratochvil@redhat.com>
6723 * target.c (memory_xfer_live_readonly_partial): Document where to
6724 look for interface description.
6726 2011-02-15 Yao Qi <yao@codesourcery.com>
6729 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6730 order to store PC value on stack instead of text section.
6732 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6734 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6735 the EFP register set size.
6736 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6737 data from the VMX register.
6738 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6739 and write data from/to the VMX register.
6741 2011-02-14 Michael Snyder <msnyder@vmware.com>
6743 * command.h (enum command_class): New class 'no_set_class', for
6744 "show" commands without a corresponding "set" command.
6745 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6746 * copying.c (_initialize_copying): Ditto for "show copying" and
6748 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6750 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6751 which there is no corresponding "set" command (eg. "show copying").
6753 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6754 Jan Kratochvil <jan.kratochvil@redhat.com>
6756 * exec.c (section_table_available_memory): Change `len' parameter
6758 * exec.h (section_table_available_memory): Ditto.
6759 * value.h (read_value_memory): Rename the `offset' parameter to
6762 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6763 Jan Kratochvil <jan.kratochvil@redhat.com>
6765 * memrange.c (compare_mem_ranges): Mention sort order in
6767 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6768 * tracepoint.c (traceframe_available_memory): Extend comment to
6769 mention what happens to RESULT when the target does not support
6772 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6773 Jan Kratochvil <jan.kratochvil@redhat.com>
6775 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6778 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6780 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6781 No longer handle NULL values.
6783 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6785 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6786 * value.c: Include "exceptions.h".
6787 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6789 * cp-abi.c: Include gdb_assert.h.
6790 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6791 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6793 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6794 parameters. No longer returns -1 on error.
6795 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6797 * cp-valprint.c: Include exceptions.h.
6798 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6799 the baseclass_offset. Handle unavailable base classes. Use
6800 val_print_invalid_address.
6801 * p-valprint.c: Include exceptions.h.
6802 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6803 when fetching the baseclass_offset. No longer expect
6804 baseclass_offset returning -1. Handle unavailable base classes.
6805 Use val_print_invalid_address.
6806 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6807 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6808 `embedded_offset' and `val' parameters. Adjust.
6809 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6810 parameter, and change its type to gdb_byte pointer. Add
6811 `embedded_offset' and `val' parameters. Adjust. No longer expect
6812 baseclass_offset returning -1.
6813 (value_dynamic_cast): Use value_contents_for_printing rather than
6814 value_contents. Adjust.
6815 (search_struct_field): No longer expect baseclass_offset returning
6817 (search_struct_method): If reading memory from the target is
6818 necessary, wrap it in a new value to pass to baseclass_offset. No
6819 longer expect baseclass_offset returning -1.
6820 (find_method_list): No longer expect baseclass_offset returning
6821 -1. Use value_contents_for_printing rather than value_contents.
6822 * valprint.c (val_print_invalid_address): New function.
6823 * valprint.h (val_print_invalid_address): Declare.
6824 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6825 and `val' parameters. No longer expect baseclass_offset returning
6827 * gnu-v2-abi.c: Include "exceptions.h".
6828 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6829 parameters. Handle unavailable memory. Recurse through
6830 gnuv2_baseclass_offset directly, rather than through
6831 baseclass_offset. No longer returns -1 on not found, instead
6833 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6834 `val' parameters. Adjust.
6836 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6838 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
6839 almost but not quite adjacent.
6841 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6843 * value.h (value_entirely_available): Declare.
6844 * value.c (value_entirely_available): New function.
6845 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6846 real type if the pointer is unavailable.
6848 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6850 * valops.c (value_repeat): Use read_value_memory instead of
6853 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6855 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
6856 * value.c (value_contents_copy_raw, value_contents_copy): New
6858 (value_primitive_field): Use value_contents_copy_raw instead of
6860 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
6862 (value_array, value_slice): Ditto.
6863 * valarith.c (value_subscripted_rvalue): Use
6864 value_contents_copy_raw instead of memcpy.
6866 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6868 <unavailable> references.
6870 * valops.c (get_value_at): Use value_from_contents_and_address,
6871 avoiding read_memory.
6873 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6875 * c-valprint.c (c_val_print): Print a string with unavailable
6876 contents as an array.
6878 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6880 * value.h (unpack_bits_as_long): Delete declaration.
6881 (unpack_value_bits_as_long): Declare.
6882 (unpack_value_field_as_long): Declare.
6883 (value_field_bitfield): Declare.
6884 * value.c (unpack_bits_as_long): Rename to...
6885 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
6886 value parameters. Return the extracted result in a new output
6887 parameter. If the value contents are unavailable, return false,
6888 otherwise return true.
6889 (unpack_value_bits_as_long): New.
6890 (unpack_field_as_long): Rename to...
6891 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
6892 Add embedded_offset and value parameters. Return the extracted
6893 result in a new output parameter. If the value contents are
6894 unavailable, return false, otherwise return true.
6895 (unpack_value_field_as_long): New.
6896 (unpack_field_as_long_1): New.
6897 (unpack_field_as_long): Reimplement as wrapper around
6898 unpack_value_field_as_long_1.
6899 (value_field_bitfield): New function.
6900 * valops.c (value_fetch_lazy): When fetching a bitfield, use
6901 unpack_value_bits_as_long. Mark the value as unavailable, if it
6903 * jv-valprint.c (java_print_value_fields): Use
6904 value_field_bitfield.
6905 * p-valprint.c (pascal_object_print_value_fields): Use
6906 value_field_bitfield.
6907 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
6909 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6911 * value.c (get_internalvar_integer): Also return the int value of
6912 TYPE_CODE_INT INTERNALVAR_VALUE values.
6913 (set_internalvar): Don't special case TYPE_CODE_INT.
6915 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6917 * value.c (struct internalvar) <enum internalvar_kind>: Remove
6918 INTERNALVAR_POINTER.
6920 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
6921 (set_internalvar): Remove special TYPE_CODE_PTR handling.
6922 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
6924 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6926 * value.h (value_available_contents_eq): Declare.
6927 * value.c (find_first_range_overlap): New function.
6928 (value_available_contents_eq): New function.
6929 * valprint.c (val_print_array_elements): Use
6930 value_available_contents_eq.
6931 * ada-valprint.c (val_print_packed_array_elements): Use
6932 value_available_contents_eq.
6933 * jv-valprint.c (java_value_print): Use
6934 value_available_contents_eq.
6936 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6938 * target.c (target_read_live_memory): New function.
6939 (memory_xfer_live_readonly_partial): New.
6940 (memory_xfer_partial): If reading from a traceframe, fallback to
6941 reading unavailable read-only memory from read-only regions of
6943 * tracepoint.c (disconnect_tracing): Adjust.
6944 (set_current_traceframe): New, factored out from
6945 set_traceframe_number.
6946 (set_traceframe_number): Reimplement to only change the traceframe
6947 number on the GDB side.
6948 (do_restore_current_traceframe_cleanup): Adjust.
6949 (make_cleanup_restore_traceframe_number): New.
6950 (cur_traceframe_number): New global.
6951 (tfile_open): Set cur_traceframe_number to no traceframe.
6952 (set_tfile_traceframe): New function.
6953 (tfile_trace_find): If looking up a traceframe using any method
6954 other than by number, make sure the current tfile traceframe
6955 matches gdb's current traceframe. Update the current tfile
6956 traceframe if the lookup succeeded.
6957 (tfile_fetch_registers, tfile_xfer_partial)
6958 (tfile_get_trace_state_variable_value): Make sure the remote
6959 traceframe matches gdb's current traceframe.
6960 * remote.c (remote_traceframe_number): New global.
6961 (remote_open_1): Set it to -1.
6962 (set_remote_traceframe): New function.
6963 (remote_fetch_registers, remote_store_registers)
6964 (remote_xfer_memory, remote_xfer_partial)
6965 (remote_get_trace_state_variable_value): Make sure the remote
6966 traceframe matches gdb's current traceframe.
6967 (remote_trace_find): If looking up a traceframe using any method
6968 other than by number, make sure the current remote traceframe
6969 matches gdb's current traceframe. Update the current remote
6970 traceframe if the lookup succeeded.
6971 * infrun.c (fetch_inferior_event): Adjust.
6972 * tracepoint.h (set_current_traceframe): Declare.
6973 (get_traceframe_number, set_traceframe_number): Add describing
6976 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6978 Mark pieces of values as unavailable if the corresponding memory
6981 * valops.c: Include tracepoint.h.
6982 (value_fetch_lazy): Use read_value_memory.
6983 (read_value_memory): New.
6984 * value.h (read_value_memory): Declare.
6985 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
6986 * exec.c (section_table_available_memory): New function.
6987 * exec.h (section_table_available_memory): Declare.
6989 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6991 * Makefile.in (SFILES): Add memrange.c.
6992 (HFILES_NO_SRCDIR): Add memrange.h.
6993 (COMMON_OBS): Add memrange.o.
6994 * memrange.c: New file.
6995 * memrange.h: New file.
6996 * tracepoint.c: Include memrange.h.
6997 (struct mem_range): Delete.
6998 (mem_range_s): Delete.
6999 (traceframe_available_memory): New function.
7000 * tracepoint.h (traceframe_available_memory): Declare.
7002 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7004 * target.h (struct traceframe_info): Forward declare.
7005 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7006 (struct target_ops) <to_traceframe_info>: New field.
7007 (target_traceframe_info): New.
7008 * target.c (update_current_target): Inherit and default
7010 * remote.c (PACKET_qXfer_traceframe_info): New.
7011 (remote_protocol_features): Register qXfer:traceframe-info:read.
7012 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7013 (remote_traceframe_info): New.
7014 (init_remote_ops): Install it.
7015 (_initialize_remote): Install "set/show remote traceframe-info"
7017 * tracepoint.h (parse_traceframe_info): Declare.
7018 * tracepoint.c (struct mem_range): New.
7019 (mem_range_s): New typedef.
7020 (struct traceframe_info): New.
7021 (traceframe_info): New global.
7022 (free_traceframe_info): New function.
7023 (clear_traceframe_info): New function.
7024 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7026 (build_traceframe_info): New function.
7027 (tfile_traceframe_info): New function.
7028 (init_tfile_ops): Install tfile_traceframe_info.
7029 (traceframe_info_start_memory, free_result): New functions.
7030 (memory_attributes, traceframe_info_elements): New globals.
7031 (parse_traceframe_info, get_traceframe_info): New functions.
7032 * features/traceframe-info.dtd: New file.
7033 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7035 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7037 Base support for <unavailable> value contents.
7039 * value.h (value_bytes_available): Declare.
7040 (mark_value_bytes_unavailable): Declare.
7041 * value.c (struct range): New struct.
7042 (range_s): New typedef.
7043 (ranges_overlap): New function.
7044 (range_lessthan): New function.
7045 (ranges_contain_p): New function.
7046 (struct value) <unavailable>: New field.
7047 (value_bytes_available): New function.
7048 (mark_value_bytes_unavailable): New function.
7049 (require_not_optimized_out): Constify parameter.
7050 (require_available): New function.
7051 (value_contents_all, value_contents): Require all bytes be
7053 (value_free): Free `unavailable'.
7054 (value_copy): Copy `unavailable'.
7055 * valprint.h (val_print_unavailable): Declare.
7056 * valprint.c (valprint_check_validity): Rename `offset' parameter
7057 to `embedded_offset'. If printing a scalar, check whether the
7058 value chunk is available.
7059 (val_print_unavailable): New.
7060 (val_print_scalar_formatted): Check whether the value is
7062 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7063 pretty-printing unavailable values.
7065 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7067 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7068 * c-typeprint.c (c_type_print_args): Update the function comment. New
7069 variable param_type, initialize it. Remove const/volatile qualifiers
7070 for language_cplus and !show_artificial. Use param_type.
7072 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7074 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7075 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7076 * symtab.h (struct symtab) <next>: Comment extension.
7078 2011-02-12 Yao Qi <yao@codesourcery.com>
7080 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7082 2011-02-11 Yao Qi <yao@codesourcery.com>
7084 * common/Makefile.in: Add copyright header.
7086 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7088 * infrun.c (proceed): Move switching out and in of tfind mode from
7090 (fetch_inferior_event): ... to here.
7092 2011-02-11 Yao Qi <yao@codesourcery.com>
7094 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7096 * configure.ac: Add common to sub dir.
7097 * configure: Regenerate.
7099 2011-02-11 Yao Qi <yao@codesourcery.com>
7103 * common/Makefile.in: New.
7104 * common/configure.ac: New.
7105 * common/aclocal.m4: New.
7106 * common/configure: Generate.
7108 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7110 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7111 side of the parenthesis.
7114 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7115 * vec.h (VEC_block_remove): Fix comment.
7117 2011-02-08 Michael Snyder <msnyder@vmware.com>
7119 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7121 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7123 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7124 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7127 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7130 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7132 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7133 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7135 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7137 * dwarf2read.c (read_subroutine_type): Set special calling
7138 convention flag for functions compiled by IBM XL C for OpenCL.
7139 * ppc-sysv-tdep.c: Include "dwarf2.h"
7140 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7142 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7143 IBM OpenCL vector types calling convention.
7144 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7145 (ppc_sysv_abi_broken_return_value): Likewise.
7146 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7147 types calling convention.
7148 (ppc64_sysv_abi_return_value): Likewise.
7149 * spu-tdep.c: Include "dwarf2.h"
7150 (spu_return_value): Implement IBM OpenCL vector types calling
7153 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7155 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7156 correct ABI for AltiVec vector arguments.
7158 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7160 * valprint.c (val_print): Extend comment.
7161 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7162 interface explanation to val_print.
7163 (ada_val_print_array): Adjust comment to current interface.
7164 (print_field_values): Adjust comment to current interface.
7165 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7166 explanation to val_print.
7167 * f-valprint.c (f_val_print): Ditto.
7168 * jv-valprint.c (java_val_print): Ditto.
7169 * m2-valprint.c (m2_val_print): Ditto.
7170 * p-valprint.c (pascal_val_print): Ditto.
7172 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7174 * breakpoint.c (parse_breakpoint_sals): Fix description.
7176 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7177 Oguz Kayral <oguzkayral@gmail.com>
7179 * python/py-inferior.c (python_on_normal_stop): New function.
7180 (python_on_resume): New function.
7181 (python_inferior_exit): New function.
7182 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7183 inferior_exit observers.
7184 * python/py-evtregistry.c: New file.
7185 * python/py-threadevent.c : New file.
7186 * python/py-event.c: New file.
7187 * python/py-evts.c: New file.
7188 * python/py-continueevent.c: New file.
7189 * python/py-bpevent.c: New file.
7190 * python/py-signalevent.c: New file.
7191 * python/py-exetiedevent.c: New file.
7192 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7193 Move struct breakpoint_object from here...
7194 * python/python-internal.h: ... to here.
7195 * python/py-event.h: New file.
7196 * python/py-events.h: New file.
7197 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7198 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7199 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7200 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7201 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7202 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7203 Add build rules for all the above.
7205 2011-02-04 Tom Tromey <tromey@redhat.com>
7207 * dwarf2read.c (dwarf2_section_empty_p): New function.
7208 (dwarf2_read_section): Use dwarf2_section_empty_p.
7209 (dwarf2_section_size): New function.
7210 (dwarf2_get_section_info): Unconditionally read section.
7211 (dwarf2_read_index): Use dwarf2_section_empty_p.
7212 (partial_read_comp_unit_head): Use dwarf2_section_size.
7213 (dwarf2_symbol_mark_computed): Likewise.
7215 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7217 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7219 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7221 * mips-linux-tdep.c: Include xml-syscall.h.
7222 (mips_linux_get_syscall_number): New function.
7223 (mips_linux_init_abi): Add calls to
7224 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7225 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7226 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7227 * syscalls/mips-n32-linux.xml: New file.
7228 * syscalls/mips-n64-linux.xml: New file.
7229 * syscalls/mips-o32-linux.xml: New file.
7231 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7233 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7234 Complain about inverted range entries.
7235 (dwarf2_record_block_ranges): Likewise.
7237 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7240 * breakpoint.c (update_watchpoint): Fix name of the
7241 update_global_location_list function.
7242 (print_one_breakpoint): Fix typo.
7243 (_initialize_breakpoint): Remove extra space in hbreak help
7245 * breakpoint.h (struct bp_location) <length>: Fix field
7248 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7250 * regcache.c (registers_changed_ptid): Don't explictly always
7251 clear `current_regcache'. Only clear current_thread_ptid and
7252 current_thread_arch when PTID matches. Only reinit the frame
7253 cache if PTID matches the current inferior_ptid. Move alloca(0)
7255 (registers_changed): ... here.
7257 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7259 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7260 starts with __stack_chk_guard as stack guard symbol.
7262 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7264 * disasm.c (compare_lines): Handle the end of sequence markers
7265 within the line table to better support disassembling over
7266 compilation unit boundaries.
7268 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7270 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7271 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7272 implementation even if no symbols are available.
7273 (thumb_analyze_prologue): Update call to skip_prologue_function.
7274 (arm_analyze_prologue): Likewise.
7276 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7278 * arm-tdep.c: Include "observer.h".
7279 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7280 (arm_exidx_data_key): New static variable.
7281 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7282 (struct arm_exidx_data): Likewise.
7283 (arm_exidx_data_free): New function.
7284 (arm_compare_exidx_entries): Likewise.
7285 (arm_obj_section_from_vma): Likewise.
7286 (arm_exidx_new_objfile): Likewise.
7287 (arm_find_exidx_entry): Likewise.
7288 (arm_exidx_fill_cache): Likewise.
7289 (arm_exidx_unwind_sniffer): Likewise.
7290 (arm_exidx_unwind): New global variable.
7291 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7292 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7293 observer. Register arm_exidx_data_key as objfile data.
7295 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7297 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7298 due to accessing uninitialized variable. Fix indentation.
7300 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7302 * c-valprint.c (c_value_print): When doing virtual base pointer
7303 adjustment, create a new value with adjusted contents rather than
7304 changing the contents of the value being printed (and getting it
7307 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7309 * xml-support.c (xml_find_attribute): New.
7310 (xinclude_start_include): Use it.
7311 * xml-support.h (xml_find_attribute): Declare.
7312 * memory-map.c (memory_map_start_memory)
7313 (memory_map_start_property): Use xml_find_attribute.
7314 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7316 * remote.c (start_thread): Use xml_find_attribute.
7317 * solib-target.c (library_list_start_segment)
7318 (library_list_start_section, library_list_start_library)
7319 (library_list_start_list): Use xml_find_attribute.
7320 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7321 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7322 (tdesc_start_field): Use xml_find_attribute.
7324 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7326 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7327 (BUILD_OCL_VTYPES): Update.
7329 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7331 * configure.ac: Work around non-GNU sed limitation when computing
7332 python version number.
7333 * configure: Regenerate.
7335 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7337 Fix debug printing of TYPE_INSTANCE.
7338 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7339 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7341 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7343 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7344 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7345 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7346 * ada-operator.inc: Rename the file to ...
7347 * ada-operator.def: ... here, wrap all the entries by macro OP.
7348 * expprint.c (op_name_standard): Remove all the entries. Include
7349 "std-operator.def" instead.
7350 * expression.h (enum exp_opcode): Include "std-operator.def" and
7351 "ada-operator.def". Move all the entries ...
7352 * std-operator.def: ... here, wrap all the entries by macro OP.
7354 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7356 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7357 * breakpoint.c (remove_jit_event_breakpoints): New function.
7358 * jit.c (jit_descriptor_addr): Delete.
7359 (registering_code): Delete.
7360 (clear_int): Delete.
7361 (jit_inferior_data): New variable.
7362 (struct jit_inferior_data): New type.
7363 (get_jit_inferior_data): New function.
7364 (jit_inferior_data_cleanup): New function.
7365 (jit_read_descriptor): Adjust.
7366 (jit_register_code): Adjust.
7367 (jit_breakpoint_re_set_internal): New function; move code here ...
7368 (jit_inferior_init): ... from here.
7369 (jit_breakpoint_re_set): Adjust.
7370 (jit_reset_inferior_data_and_breakpoints): New function.
7371 (jit_inferior_created_observer): Adjust.
7372 (jit_inferior_exit_hook): Adjust.
7373 (jit_executable_changed_observer): New function.
7374 (jit_event_handler): Adjust.
7375 (_initialize_jit): Adjust.
7377 2011-01-31 Michael Snyder <msnyder@vmware.com>
7379 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7382 2011-01-31 Tom Tromey <tromey@redhat.com>
7385 * python/python.c (execute_gdb_command): Call
7386 prevent_dont_repeat.
7387 * top.c (suppress_dont_repeat): New global.
7388 (dont_repeat): Use it.
7389 (prevent_dont_repeat): New function.
7390 * command.h (prevent_dont_repeat): Declare.
7392 2011-01-31 Tom Tromey <tromey@redhat.com>
7394 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7395 * python/py-breakpoint.c (bppy_set_silent): Use
7396 breakpoint_set_silent.
7397 (bppy_set_thread): Use breakpoint_set_thread.
7398 (bppy_set_task): Use breakpoint_set_task.
7399 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7400 (breakpoint_set_task): Declare.
7401 (make_breakpoint_silent): Remove.
7402 * breakpoint.c (breakpoint_set_silent): New function.
7403 (breakpoint_set_thread): Likewise.
7404 (breakpoint_set_task): Likewise.
7405 (make_breakpoint_silent): Remove.
7407 2011-01-31 Tom Tromey <tromey@redhat.com>
7409 * breakpoint.h (user_breakpoint_p): Declare.
7410 * breakpoint.c (user_breakpoint_p): New function.
7411 (breakpoint_1): Use it.
7412 (save_breakpoints): Likewise.
7414 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7416 * configure.ac: Add handling of Python distribution on Windows.
7417 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7418 sysconfig variables are not defined, then do not use them.
7419 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7420 instead. On Windows, return all paths using forward-slashes
7421 rather than backslashes.
7423 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7425 * configure.ac: Remove fallback behavior for building
7426 against Python. Remove tweaking of Python include path.
7427 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7428 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7429 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7430 Always restore CPPFLAGS and LIBS after linking test.
7431 * configure: Regenerated.
7432 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7433 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7434 * python/python-internal.h: Adjust includes of Python .h files.
7436 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7438 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7441 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7443 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7446 2011-01-31 Yao Qi <yao@codesourcery.com>
7448 * arm-linux-nat.c: Update calls to regcache_register_status
7449 instead of regcache_valid_p.
7450 * aix-thread.c: Likewise.
7451 * i386gnu-nat.c: Likewise.
7453 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7456 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7457 touching TYPE_FIELD_ARTIFICIAL.
7459 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7461 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7464 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7466 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7467 selected, don't try iterating over the traceframe's blocks.
7468 (tfile_has_stack): If there's no traceframe selected, then there's
7470 (tfile_has_registers): If there's no traceframe selected, then
7471 there's no registers.
7473 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7475 * target.c (memory_xfer_partial): No need to restore shadows if we
7476 haven't read anything.
7478 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7480 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7481 and val_print_scalar_formatted.
7483 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7485 * tracepoint.c (tfile_read): New.
7486 (tfile_open): Use it.
7487 (tfile_get_traceframe_address): Use it.
7488 (tfile_trace_find): Use it.
7489 (walk_blocks_callback_func): New typedef.
7490 (match_blocktype): New function.
7491 (traceframe_walk_blocks): New function.
7492 (traceframe_find_block_type): New function.
7493 (tfile_fetch_registers, tfile_xfer_partial)
7494 (tfile_get_trace_state_variable_value): Use
7495 traceframe_find_block_type and tfile_read.
7497 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7499 * remote-mips.c: Add internationalization mark ups. Remove
7500 trailing \n from already marked up strings.
7502 2011-01-26 Tom Tromey <tromey@redhat.com>
7504 * python/py-prettyprint.c (print_string_repr): Clear
7505 'addressprint' option when calling val_print_string.
7506 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7507 option when calling val_print_string.
7509 2011-01-26 Tom Tromey <tromey@redhat.com>
7511 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7513 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7515 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7516 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7517 (gdb_py_long_as_ulongest): New defines.
7518 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7519 (gdb_py_int_as_long): Declare.
7520 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7521 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7522 (valpy_long): Add comment.
7523 * python/py-utils.c (get_addr_from_python): Use
7524 gdb_py_long_as_ulongest. Handle overflow properly.
7525 (gdb_py_object_from_longest): New function.
7526 (gdb_py_object_from_ulongest): Likewise.
7527 (gdb_py_int_as_long): Likewise.
7528 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7529 * python/py-symtab.c (salpy_get_pc): Use
7530 gdb_py_long_from_ulongest.
7531 (salpy_get_line): Use PyInt_FromLong.
7532 * python/py-param.c (set_parameter_value): Use
7534 * python/py-lazy-string.c (stpy_get_address): Use
7535 gdb_py_long_from_ulongest.
7536 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7537 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7538 * python/py-breakpoint.c (bppy_set_thread): Use
7540 (bppy_set_task): Likewise.
7541 (bppy_set_ignore_count): Likewise.
7542 (bppy_set_hit_count): Likewise.
7543 * python/py-block.c (blpy_get_start): Use
7544 gdb_py_object_from_ulongest.
7545 (blpy_get_end): Likewise.
7546 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7548 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7551 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7552 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7553 equality test for objfile, initialize addr_low if needed.
7555 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7557 * tui/tui-regs.c (tui_register_format): Remove dead code.
7559 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7561 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7562 instead of print_scalar_formatted.
7563 (print_scalar_formatted): Don't handle 's' format strings here,
7564 and add an assertion that we never see such format here.
7565 * valprint.h (val_print_scalar_formatted): Declare.
7566 * valprint.c (val_print_scalar_formatted): New.
7567 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7568 instead of print_scalar_formatted.
7569 * jv-valprint.c (java_val_print): Ditto.
7570 * p-valprint.c (pascal_val_print): Ditto.
7571 * ada-valprint.c (ada_val_print_1): Ditto.
7572 * f-valprint.c (f_val_print): Ditto.
7573 * infcmd.c (registers_info): Ditto.
7574 * m2-valprint.c (m2_val_print): Ditto.
7576 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7578 * m2-valprint.c (print_unbounded_array): Pass
7579 value_contents_for_printing rather than value_contents, to
7580 m2_print_array_contents. Also pass in the value.
7582 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7584 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7585 (save_gdb_index_command): Switch to .gdb_index version 4.
7587 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7589 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7590 than frame_register, and always pass a valid value to val_print.
7592 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7594 Centralize printing "<optimized out>".
7596 * valprint.h (val_print_optimized_out): Declare.
7597 * cp-valprint.c (cp_print_value_fields): Use
7598 val_print_optimized_out.
7599 * jv-valprint.c (java_print_value_fields): Ditto.
7600 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7601 * printcmd.c (print_formatted): Ditto.
7602 * valprint.c (valprint_check_validity): Ditto.
7603 (value_check_printable): Ditto.
7604 (val_print_optimized_out): New.
7606 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7608 * infcmd.c (default_print_registers_info): Allocate values so to
7609 never pass a NULL value to val_print.
7611 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7613 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7614 boolean. Make sure to always pass a value that matches the
7615 contents buffer to callees. Preserve `address' for following
7617 * value.c (value_contents_for_printing_const): New.
7618 (value_address): Constify value argument.
7619 * value.h (value_contents_for_printing_const): Declare.
7620 (value_address): Constify value argument.
7622 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7624 * regcache.c (struct regcache_descr): Rename
7625 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7626 and sizeof_cooked_register_valid_p to
7627 sizeof_cooked_register_status.
7628 (init_regcache_descr): Adjust.
7629 (struct regcache): Rename register_valid_p field to
7631 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7632 (do_cooked_read): Adjust.
7633 (regcache_valid_p): Rename to ...
7634 (regcache_register_status): ... this. Adjust.
7635 (regcache_invalidate): Adjust.
7636 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7638 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7639 as unavailable, not valid.
7640 (regcache_dump): Adjust.
7641 * regcache.h (enum register_status): New.
7642 (regcache_register_status): Declare.
7643 (regcache_invalidate): Delete declaration.
7644 * corelow.c (get_core_registers): Adjust.
7645 * tracepoint.c (tfile_fetch_registers): Adjust.
7646 * trad-frame.c (REG_VALUE): Rename to ...
7647 (TF_REG_VALUE): ... this.
7648 (REG_UNKNOWN): Rename to ...
7649 (TF_REG_UNKNOWN): ... this.
7650 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7651 * mi/mi-main.c (register_changed_p): Adjust.
7653 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7655 * regcache.c (struct regcache_descr): Remove outdated comment.
7656 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7658 (regcache_xmalloc): Rename to ...
7659 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7660 Allocate the regcache type accordingly.
7661 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7662 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7663 cooked registers, not raw.
7664 (regcache_dup_no_passthrough): Delete.
7665 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7666 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7667 mention obsolete write_register_bytes.
7668 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7670 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7672 Stop remote_read_bytes from handling partial reads itself.
7674 * remote-fileio.c: Include target.h.
7675 (remote_fileio_write_bytes): Delete.
7676 (remote_fileio_func_open, remote_fileio_func_write)
7677 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7679 (remote_fileio_func_stat): Use target_read_memory and
7680 target_write_memory.
7681 (remote_fileio_func_gettimeofday): Use target_write_memory.
7682 (remote_fileio_func_system): Use target_read_memory.
7683 * remote.c (remote_write_bytes): Make it static.
7684 (remote_read_bytes): Don't handle partial reads here.
7685 * remote.h (remote_read_bytes): Delete declaration.
7687 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7689 Simplify XML parsing a bit.
7691 * xml-support.h (gdb_xml_parse_quick): Declare.
7692 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7693 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7695 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7696 gdb_xml_create_parser_and_cleanup_1.
7697 (gdb_xml_parse_quick): New.
7698 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7699 * osdata.c (osdata_parse): Ditto.
7700 * remote.c (remote_threads_info): Ditto.
7701 * solib-target.c (solib_target_parse_libraries): Ditto.
7702 * xml-syscall.c (syscall_parse_xml): Ditto.
7703 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7705 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7707 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7708 with remote-mips.o added to gdb_target_obs.
7709 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7711 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7713 * ada-valprint.c (val_print_packed_array_elements): Pass the
7714 correct struct value to val_print.
7715 (ada_val_print_1): Ditto.
7717 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7719 Don't lose embedded_offset in printing routines throughout.
7721 * valprint.h (val_print_array_elements): Change prototype.
7722 * valprint.c (val_print_array_elements): Add `embedded_offset'
7723 parameter, and adjust to pass it down to val_print, while passing
7724 `valaddr' or `address' unmodified. Take embedded_offset into
7725 account when checking repetitions.
7726 * c-valprint.c (c_val_print): Pass embedded_offset to
7727 val_print_array_elements instead of adjusting `valaddr' and
7729 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7730 embedded_offset to val_print_array_elements instead of adjusting
7732 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7733 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7734 val_print_array_elements and pascal_object_print_value_fields
7735 instead of adjusting `valaddr'.
7736 (pascal_object_print_value_fields): Add `offset' parameter, and
7738 (pascal_object_print_value): Add `offset' parameter, and adjust to
7740 (pascal_object_print_static_field): Use
7741 value_contents_for_printing/value_embedded_offset, rather than
7743 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7744 parameter, and adjust to use it. Use
7745 value_contents_for_printing/value_embedded_offset, rather than
7747 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7748 (ada_val_print_array): Add `offset' parameter, and adjust to use
7750 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7751 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7752 Instead work with offsets. Use
7753 value_contents_for_printing/value_embedded_offset, rather than
7754 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7755 and use value_from_pointer to extract a target pointer, rather
7756 than value_from_longest.
7757 (print_variant_part): Add `offset' parameter. Replace
7758 `outer_valaddr' parameter by a new `outer_offset' parameter.
7759 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7760 (ada_value_print): Use
7761 value_contents_for_printing/value_embedded_offset, rather than
7763 (print_record): Add `offset' parameter, and adjust to pass it
7765 (print_field_values): Add `offset' parameter. Replace
7766 `outer_valaddr' parameter by a new `outer_offset' parameter.
7767 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7768 Use value_contents_for_printing/value_embedded_offset, rather than
7770 * d-valprint.c (dynamic_array_type): Use
7771 value_contents_for_printing/value_embedded_offset, rather than
7773 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7774 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7775 (java_print_value_fields): Take `offset' into account. Don't
7776 re-adjust `valaddr'. Instead pass down adjusted offsets.
7777 (java_val_print): Take `embedded_offset' into account. Pass it to
7778 java_print_value_fields.
7779 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7780 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7781 down adjusted offsets.
7782 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7783 (f_val_print): Take `embedded_offset' into account.
7785 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7787 * inflow.c: Include "gdbcmd.h".
7788 (interactive_mode): New static global, moved here from top.c.
7789 (show_interactive_mode): New function, moved here from top.c.
7790 use gdb_has_a_terminal instead of input_from_terminal_p to
7791 determine the current mode.
7792 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7794 (_initialize_inflow): Add the "set/show interactive-mode"
7795 commands. Moved here from top.c, after having adjusted slightly
7797 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7799 (input_from_terminal_p): Remove handling of "interactive-mode"
7800 setting, moved to infow.c.
7801 (init_main): Remove creation of the "set/show interactive-mode"
7802 commands, moved to inflow.c.
7804 2011-01-19 Joel Brobecker <brobecker@adacore.com>
7806 * NEWS: Add entry for native ia64-hpux support.
7808 2011-01-19 Tom Tromey <tromey@redhat.com>
7811 * thread.c (free_thread): Free 'name'.
7812 (print_thread_info): Emit thread name. Change CLI output.
7813 (thread_name_command): New function.
7814 (do_captured_thread_select): Emit newline.
7815 (_initialize_thread): Register 'thread name' command.
7816 * target.h (struct target_ops) <to_thread_name>: New field.
7817 (target_thread_name): New macro.
7818 * target.c (update_current_target): Handle to_thread_name.
7819 * python/py-infthread.c (thpy_get_name): New function.
7820 (thpy_set_name): Likewise.
7821 (thread_object_getset): Add "name".
7822 * linux-nat.c (linux_nat_thread_name): New function.
7823 (linux_nat_add_target): Set to_thread_name.
7824 * gdbthread.h (struct thread_info) <name>: New field.
7826 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7828 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7829 (ada_val_print_1): Likewise.
7831 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7833 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7834 upper limit address is not greater than the function end address
7835 when the upper limit could not be computed using the debugging
7838 2011-01-17 Tom Tromey <tromey@redhat.com>
7840 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
7842 * utils.c: Include gdb_regex.h.
7843 (do_regfree_cleanup): New function.
7844 (make_regfree_cleanup): Likewise.
7845 (get_regcomp_error): Likewise.
7846 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
7848 2011-01-17 Tom Tromey <tromey@redhat.com>
7850 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
7853 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7855 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
7856 for internal variables.
7857 (last_was_structop): New static variable.
7858 (COMPLETE): New token.
7859 (field_exp): New rule to group all '.' suffix handling.
7860 Add mark_struct_expression calls when approriate to be able
7861 to correctly find fields for completion.
7862 (yylex): Adapt to handle field completion and set INTVAR when
7865 2011-01-14 Yao Qi <yao@codesourcery.com>
7867 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
7868 save_reggroup, restore_reggroup and all_reggroup.
7870 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7872 * ada-valprint. (ada_printchar): Use the correct type length
7873 in call to ada_emit_char.
7874 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
7876 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7878 * solib-som.h (hpux_major_release): Declare variable here.
7879 * solib-som.c: Remove <sys/utsname.h> header.
7880 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
7881 (hpux_major_release): Make global, change default value to
7882 DEFAULT_HPUX_MAJOR_RELEASE.
7883 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7884 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
7885 Add "solib-som.h" header.
7886 (set_hpux_major_release): New function.
7887 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
7889 2011-01-14 Mike Frysinger <vapier@gentoo.org>
7891 * configure.tgt (*-*-uclinux*): Match more Linux os targets
7893 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7895 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
7896 new-line at end of warning message.
7897 (ia64_hpux_store_register): Remove trailing new-line at end of
7899 * ia64-hpux-tdep.c: Rephrase comment.
7900 * solib-ia64-hpux.c (struct dld_info): Change type of field
7901 dld_flags from "long long" to ULONGEST.
7903 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7905 * target.h (deprecated_child_ops): Delete declaration.
7906 * target.c (deprecated_child_ops): Delete definition.
7908 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7910 * Makefile.in (hpux-thread.o): Delete rule.
7911 * configure.ac: Don't check for HPUX DCE threads support.
7912 * configure, config.in: Regenerate.
7913 * hppa-hpux-nat.c (child_suppress_run): Delete.
7914 (hppa_hpux_child_can_run): Delete.
7915 (_initialize_hppa_hpux_nat): Don't override to_can_run.
7916 * hpux-thread.c: Delete.
7918 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7920 * hpux-thread.c (hpux_pid_to_str): Delete.
7922 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7924 * ada-valprint.c (ada_emit_char): Remove strange code.
7925 Check that c is <= UCHAR_MAX before passing it to isascii.
7926 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
7928 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7930 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
7931 to the case where instream is stdin.
7933 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7935 * ia64-tdep.h (struct regcache): Forward declare.
7936 (struct ia64_infcall_ops): New struct type.
7937 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
7939 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
7940 Renames ia64_find_global_pointer.
7941 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
7942 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
7943 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
7945 (ia64_infcall_ops): New static global constant.
7946 (ia64_gdbarch_init): Set tdep->infcall_ops.
7947 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
7948 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
7949 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
7950 (ia64_hpux_dummy_code): New static global constant.
7951 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
7952 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
7953 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
7955 (ia64_hpux_infcall_ops): New static global constant.
7956 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
7957 for inferior function calls to work properly on ia64-hpux.
7959 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7961 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
7962 * ia64-tdep.h (struct frame_info): forward declaration.
7963 (struct gdbarch_tdep): Add field size_of_register_frame.
7964 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
7965 to determine the size of the register frame.
7966 (ia64_size_of_register_frame): New function.
7967 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
7968 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
7969 (IA64_HPUX_UREG_REASON): New macro.
7970 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
7972 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
7973 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
7974 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
7977 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7979 Add support for ia64-hpux.
7980 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
7981 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
7983 * configure.host: Add handling for ia64-hpux hosts. Add associated
7985 * configure.tgt: Add handling for ia64-hpux targets.
7986 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
7987 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
7988 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
7990 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7992 [ttrace] Compute thread list immediately after attach.
7993 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
7995 (inf_ttrace_attach): Use it.
7997 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7999 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8000 if we could not determine the frame's function address. Instead,
8001 use the frame's PC, and then continue.
8003 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8005 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8006 not already defined.
8008 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8010 * ia64-tdep.c (ia64_struct_type_p): New function.
8011 (ia64_extract_return_value): Handle integral values that are
8012 less than 8 bytes long.
8013 (ia64_push_dummy_call): Likewise.
8015 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8017 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8018 floatformat_ia64_ext.
8019 (floatformat_ia64_ext_big): New static const.
8020 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8022 2011-01-12 Tom Tromey <tromey@redhat.com>
8024 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8026 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8027 (mi_cmd_thread_list_ids): Likewise.
8028 (mi_cmd_data_list_changed_registers): Likewise.
8029 (mi_cmd_data_list_register_values): Likewise.
8030 (mi_cmd_data_write_register_values): Likewise.
8031 (mi_cmd_data_evaluate_expression): Likewise.
8032 (mi_cmd_data_read_memory): Likewise.
8033 (mi_cmd_data_read_memory_bytes): Likewise.
8034 (mi_cmd_data_write_memory): Likewise.
8035 (mi_cmd_enable_timings): Likewise.
8036 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8037 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8038 (mi_cmd_var_delete): Likewise.
8039 (mi_cmd_var_set_format): Likewise.
8040 (mi_cmd_var_show_format): Likewise.
8041 (mi_cmd_var_info_num_children): Likewise.
8042 (mi_cmd_var_list_children): Likewise.
8043 (mi_cmd_var_info_type): Likewise.
8044 (mi_cmd_var_info_expression): Likewise.
8045 (mi_cmd_var_show_attributes): Likewise.
8046 (mi_cmd_var_assign): Likewise.
8047 (mi_cmd_var_update): Likewise.
8048 (mi_cmd_enable_pretty_printing): Likewise.
8049 (mi_cmd_var_set_update_range): Likewise.
8050 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8052 (mi_cmd_target_file_put): Likewise.
8053 (mi_cmd_target_file_delete): Likewise.
8054 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8056 (mi_cmd_stack_info_depth): Likewise.
8057 (mi_cmd_stack_list_locals): Likewise.
8058 (mi_cmd_stack_list_args): Likewise.
8059 (mi_cmd_stack_select_frame): Likewise.
8060 (mi_cmd_stack_select_frame): Likewise.
8061 (mi_cmd_stack_info_frame): Likewise.
8062 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8064 (mi_cmd_file_list_exec_source_files): Likewise.
8065 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8066 (mi_cmd_env_cd): Likewise.
8067 (mi_cmd_env_path): Likewise.
8068 (mi_cmd_env_dir): Likewise.
8069 (mi_cmd_inferior_tty_show): Likewise.
8070 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8071 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8072 (mi_cmd_break_watch): Likewise.
8074 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8076 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8077 (ppc_linux_insert_hw_breakpoint): Likewise.
8078 (ppc_linux_remove_hw_breakpoint): Likewise.
8079 (ppc_linux_insert_watchpoint): Likewise.
8081 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8082 Jan Kratochvil <jan.kratochvil@redhat.com>
8084 PR fortran/11104 and DWARF unbound arrays detection.
8085 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8086 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8087 unspecified upper bound.
8088 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8089 variables array_size_array, tmp_type and offset_item. New variable
8090 array. Remove call to f77_get_upperbound. New variables array_type
8091 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8092 the final call to deprecated_set_value_type.
8094 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8096 Make value allocations more lazy.
8097 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8098 instead of allocate_value and set_value_lazy when possible.
8099 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8100 instead of allocate_value and set_value_lazy.
8101 * findvar.c (value_of_register_lazy): Likewise.
8102 (read_var_value): Remove V preallocation, call just check_typedef in
8103 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8104 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8105 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8106 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8107 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8108 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8109 the end, remove set_value_lazy there.
8110 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8111 instead of allocate_value and set_value_lazy when possible.
8112 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8113 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8114 of allocate_value and set_value_lazy.
8115 (value_from_contents_and_address): Use allocate_value_lazy instead of
8116 allocate_value and set_value_lazy when possible.
8118 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8120 * disasm.c (dump_insns): Support dumping opcodes for MI.
8121 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8122 dumping of instruction opcodes.
8124 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8126 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8129 2011-01-11 Tom Tromey <tromey@redhat.com>
8131 * thread.c (do_captured_thread_select): Emit newline before
8134 2011-01-11 Michael Snyder <msnyder@vmware.com>
8136 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8137 * score-tdep.c: Ditto.
8138 * score-tdep.h: Ditto.
8139 * ser-base.c: Ditto.
8140 * ser-go32.c: Ditto.
8143 * ser-mingw.c: Ditto.
8144 * ser-pipe.c: Ditto.
8146 * ser-unix.c: Ditto.
8147 * sh64-tdep.c: Ditto.
8148 * shnbsd-nat.c: Ditto.
8152 * solib-darwin.c: Ditto.
8153 * solib-frv.c: Ditto.
8155 * solib-irix.c: Ditto.
8156 * solib-osf.c: Ditto.
8157 * solib-pa64.c: Ditto.
8158 * solib-som.c: Ditto.
8159 * solib-spu.c: Ditto.
8160 * solib-sunos.c: Ditto.
8161 * solib-svr4.c: Ditto.
8163 * sol-thread.c: Ditto.
8167 * sparc64-linux-tdep.c: Ditto.
8168 * sparc64-tdep.c: Ditto.
8169 * sparc-linux-nat.c: Ditto.
8170 * sparc-linux-tdep.c: Ditto.
8171 * sparc-sol2-nat.c: Ditto.
8172 * sparc-sol2-tdep.c: Ditto.
8173 * sparc-tdep.c: Ditto.
8174 * sparc-tdep.h: Ditto.
8175 * spu-tdep.c: Ditto.
8176 * stabsread.c: Ditto.
8177 * stabsread.h: Ditto.
8185 * target-descriptions.c: Ditto.
8186 * target-descriptions.h: Ditto.
8188 * target-memory.c: Ditto.
8189 * terminal.h: Ditto.
8192 * tracepoint.c: Ditto.
8193 * tracepoint.h: Ditto.
8194 * trad-frame.h: Ditto.
8195 * typeprint.c: Ditto.
8197 2011-01-11 Michael Snyder <msnyder@vmware.com>
8199 * ui-file.c: Comment cleanup, mostly periods and spaces.
8204 * v850-tdep.c: Ditto.
8205 * valarith.c: Ditto.
8207 * valprint.c: Ditto.
8208 * valprint.h: Ditto.
8213 * vax-tdep.c: Ditto.
8217 * windows-nat.c: Ditto.
8218 * windows-tdep.c: Ditto.
8219 * xcoffread.c: Ditto.
8220 * xcoffsolib.c: Ditto.
8221 * xml-support.c: Ditto.
8222 * xstormy16-tdep.c: Ditto.
8223 * xtensa-tdep.c: Ditto.
8224 * xtensa-tdep.h: Ditto.
8226 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8228 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8229 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8231 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8232 Thiago Jung Bauermann <bauerman@br.ibm.com>
8234 Implement support for PowerPC BookE ranged watchpoints.
8236 (struct breakpoint_ops) <resources_needed>: New method.
8237 Initialize to NULL in all existing breakpoint_ops instances.
8238 (struct breakpoint) <exact>: New field.
8239 (target_exact_watchpoints): Declare external global.
8240 * breakpoint.c (target_exact_watchpoints): New global flag.
8241 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8242 b->enable_state to bp_enabled before calling
8243 hw_watchpoint_used_count.
8244 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8245 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8247 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8248 if the watchpoint is exact.
8249 (resources_needed_watchpoint): New function.
8250 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8251 (watch_command_1): Set b->exact if the user asked for an exact
8252 watchpoint and one can be set.
8253 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8254 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8255 the user asks for an exact watchpoint and one can be set. Return
8256 number of needed debug registers to watch the expression.
8257 * gdbtypes.c (is_scalar_type): New function, based on
8258 valprint.c:scalar_type_p.
8259 (is_scalar_type_recursive): New function.
8260 * gdbtypes.h (is_scalar_type_recursive): Declare.
8261 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8262 handle regions when ranged watchpoints are available.
8263 (create_watchpoint_request): New function.
8264 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8265 create_watchpoint_request.
8266 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8267 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8268 `set powerpc' and `show powerpc' commands.
8269 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8270 Mention documentation comment in the target macro.
8271 (target_region_ok_for_hw_watchpoint): Document return value.
8273 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8275 * breakpoint.c (update_watchpoint): Decide on using a software or
8276 hardware watchpoint after the bp_locations are created.
8278 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8280 Convert hardware watchpoints to use breakpoint_ops.
8281 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8282 <insert_location>: ... this. Return int instead of void.
8283 Accept pointer to struct bp_location instead of pointer to
8284 struct breakpoint. Adapt all implementations.
8285 (breakpoint_ops) <remove>: Rename to...
8286 <remove_location>: ... this. Accept pointer to struct bp_location
8287 instead of pointer to struct breakpoint. Adapt all implementations.
8288 * breakpoint.c (insert_catchpoint): Delete function.
8289 (insert_bp_location): Call the watchpoint or catchpoint's
8290 breakpoint_ops.insert method.
8291 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8292 breakpoint_ops.remove method.
8293 (insert_watchpoint, remove_watchpoint): New functions.
8294 (watchpoint_breakpoint_ops): New structure.
8295 (watch_command_1): Initialize the OPS field.
8296 * inf-child.c (inf_child_insert_fork_catchpoint)
8297 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8298 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8299 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8301 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8302 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8303 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8304 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8305 * target.c (update_current_target): Change default implementation of
8306 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8307 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8308 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8309 to_set_syscall_catchpoint to return_one.
8310 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8311 (debug_to_insert_exec_catchpoint): Report return value.
8312 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8313 (to_insert_exec_catchpoint): Change declaration to return int instead
8316 2011-01-11 Michael Snyder <msnyder@vmware.com>
8318 * arm-tdep.c: Internationalization.
8321 * fork-child.c: Ditto.
8322 * nto-procfs.c: Ditto.
8323 * ppc-sysv-tdep.c: Ditto.
8325 * remote-mips.c: Ditto.
8327 * rs6000-nat.c: Ditto.
8328 * rs6000-tdep.c: Ditto.
8332 * xml-support.c: Ditto.
8333 * mi/mi-cmd-break.c: Ditto.
8334 * mi/mi-cmd-var.c: Ditto.
8335 * mi/mi-interp.c: Ditto.
8336 * mi/mi-main.c: Ditto.
8338 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8340 * remote-sim.c (gdbsim_store_register): Update API to
8341 sim_store_register to check more error conditions.
8343 2011-01-10 Michael Snyder <msnyder@vmware.com>
8345 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8346 * nto-tdep.c: Ditto.
8347 * nto-tdep.h: Ditto.
8348 * objc-exp.y: Ditto.
8349 * objc-lang.c: Ditto.
8350 * objfiles.c: Ditto.
8351 * objfiles.h: Ditto.
8352 * observer.c: Ditto.
8353 * opencl-lang.c: Ditto.
8356 * parser-defs.h: Ditto.
8359 * posix-hdep.c: Ditto.
8360 * ppcbug-rom.c: Ditto.
8361 * ppc-linux-nat.c: Ditto.
8362 * ppc-linux-tdep.c: Ditto.
8363 * ppc-linux-tdep.h: Ditto.
8364 * ppcnbsd-tdep.c: Ditto.
8365 * ppcobsd-tdep.c: Ditto.
8366 * ppcobsd-tdep.h: Ditto.
8367 * ppc-sysv-tdep.c: Ditto.
8368 * ppc-tdep.h: Ditto.
8369 * printcmd.c: Ditto.
8370 * proc-abi.c: Ditto.
8371 * proc-flags.c: Ditto.
8373 * proc-utils.h: Ditto.
8374 * progspace.h: Ditto.
8375 * prologue-value.c: Ditto.
8376 * prologue-value.h: Ditto.
8377 * psympriv.h: Ditto.
8379 * p-typeprint.c: Ditto.
8380 * p-valprint.c: Ditto.
8381 * ravenscar-sparc-thread.c: Ditto.
8382 * ravenscar-thread.c: Ditto.
8383 * ravenscar-thread.h: Ditto.
8385 * regcache.c: Ditto.
8386 * regcache.h: Ditto.
8388 * remote-fileio.c: Ditto.
8389 * remote-fileio.h: Ditto.
8391 * remote-m32r-sdi.c: Ditto.
8392 * remote-mips.c: Ditto.
8393 * remote-sim.c: Ditto.
8394 * rs6000-aix-tdep.c: Ditto.
8395 * rs6000-nat.c: Ditto.
8396 * rs6000-tdep.c: Ditto.
8398 2011-01-10 Michael Snyder <msnyder@vmware.com>
8400 * charset.c (validate): Internationalization.
8401 * coffread.c (read_one_sym): Ditto.
8402 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8403 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8404 * inflow.c (new_tty): Ditto.
8405 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8406 * m32c-tdep.c (m32c_return_value): Ditto.
8407 * mep-tdep.c (mep_store_return_value): Ditto.
8408 * score-tdep.c (score7_fetch_insn): Ditto.
8409 * ser-mingw.c (pipe_windows_open): Ditto.
8410 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8411 * spu-tdep.c (spu_register_type): Ditto.
8412 * tracepoint.c (trace_find_command): Ditto.
8413 * valarith.c (value_pos): Ditto.
8415 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8417 * ada-valprint.c (printstr): Minor comment reformatting.
8419 2011-01-08 Michael Snyder <msnyder@vmware.com>
8421 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8424 2011-01-08 Michael Snyder <msnyder@vmware.com>
8426 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8427 * hppa-hpux-tdep.c: Ditto.
8428 * hppa-linux-nat.c: Ditto.
8429 * hppa-linux-tdep.c: Ditto.
8430 * hppanbsd-tdep.c: Ditto.
8431 * hppa-tdep.c: Ditto.
8432 * hppa-tdep.h: Ditto.
8433 * hpux-thread.c: Ditto.
8434 * i386-cygwin-tdep.c: Ditto.
8435 * i386-darwin-nat.c: Ditto.
8436 * i386gnu-nat.c: Ditto.
8437 * i386-linux-nat.c: Ditto.
8438 * i386-linux-tdep.c: Ditto.
8439 * i386-nat.c: Ditto.
8440 * i386-nat.h: Ditto.
8441 * i386nbsd-tdep.c: Ditto.
8442 * i386-sol2-nat.c: Ditto.
8443 * i386-stub.c: Ditto.
8444 * i386-tdep.c: Ditto.
8445 * i386-tdep.h: Ditto.
8446 * i387-tdep.c: Ditto.
8447 * ia64-linux-nat.c: Ditto.
8448 * ia64-linux-tdep.c: Ditto.
8449 * ia64-tdep.c: Ditto.
8453 * inferior.c: Ditto.
8454 * inferior.h: Ditto.
8460 * iq2000-tdep.c: Ditto.
8461 * irix5-nat.c: Ditto.
8467 * jv-typeprint.c: Ditto.
8468 * jv-valprint.c: Ditto.
8469 * language.c: Ditto.
8470 * language.h: Ditto.
8471 * linespec.c: Ditto.
8472 * linux-fork.c: Ditto.
8473 * linux-nat.c: Ditto.
8474 * linux-thread-db.c: Ditto.
8475 * lm32-tdep.c: Ditto.
8477 2011-01-08 Michael Snyder <msnyder@vmware.com>
8479 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8481 * m2-typeprint.c: Ditto.
8482 * m2-valprint.c: Ditto.
8483 * m32c-tdep.c: Ditto.
8484 * m32r-linux-nat.c: Ditto.
8485 * m32r-rom.c: Ditto.
8486 * m32r-tdep.c: Ditto.
8487 * m32r-tdep.h: Ditto.
8488 * m68hc11-tdep.c: Ditto.
8489 * m58klinux-nat.c: Ditto.
8490 * m68k-tdep.c: Ditto.
8491 * m88k-tdep.c: Ditto.
8492 * m88k-tdep.h: Ditto.
8493 * machoread.c: Ditto.
8494 * macrocmd.c: Ditto.
8495 * macroexp.c: Ditto.
8496 * macrotab.c: Ditto.
8499 * mdebugread.c: Ditto.
8500 * mdebugread.h: Ditto.
8503 * memory-map.h: Ditto.
8504 * mep-tdep.c: Ditto.
8505 * microblaze-rom.c: Ditto.
8506 * microblaze-tdep.c: Ditto.
8508 * mips-irix-tdep.c: Ditto.
8509 * mips-linux-nat.c: Ditto.
8510 * mips-linux-tdep.c: Ditto.
8511 * mips-linux-tdep.h: Ditto.
8512 * mipsnbsd-nat.c: Ditto.
8513 * mipsnbsd-tdep.c: Ditto.
8514 * mipsread.c: Ditto.
8515 * mips-tdep.c: Ditto.
8516 * mips-tdep.h: Ditto.
8517 * mn10300-linux-tdep.c: Ditto.
8518 * mn10300-tdep.c: Ditto.
8519 * mn10300-tdep.h: Ditto.
8522 * moxie-tdep.c: Ditto.
8523 * moxie-tdep.h: Ditto.
8526 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8528 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8530 2011-01-08 Robert Millan <rmh@gnu.org>
8532 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8534 2011-01-07 Michael Snyder <msnyder@vmware.com>
8536 * charset.c (_initialize_charset): Fix typo in string.
8538 2011-01-07 Michael Snyder <msnyder@vmware.com>
8540 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8542 * tui/tui-layout.c (tui_set_layout_for_display_command):
8543 Split line so that operator goes to beginning of line.
8544 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8545 assignment out of if statement.
8547 2011-01-07 Michael Snyder <msnyder@vmware.com>
8549 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8550 * ada-lang.h: Ditto.
8551 * ada-tasks.c: Ditto.
8552 * ada-valprint.c: Ditto.
8553 * aix-threads.c: Ditto.
8554 * alpha-linux-nat.c: Ditto.
8555 * alpha-linux-tdep.c: Ditto.
8556 * alpha-mdebug-tdep.c: Ditto.
8557 * alpha-nat.c: Ditto.
8558 * alpha-osf1-tdep.c: Ditto.
8559 * alpha-tdep.c: Ditto.
8560 * alphabsd-nat.c: Ditto.
8561 * alphabsd-tdep.c: Ditto.
8562 * amd64-darwin-tdep.c: Ditto.
8563 * amd64-linux-nat.c: Ditto.
8564 * amd64-linux-tdep.c: Ditto.
8565 * amd64-sol2-tdep.c: Ditto.
8566 * amd64-tdep.c: Ditto.
8567 * amd64-fbsd-tdep.c: Ditto.
8568 * amd64-nbsd-tdep.c: Ditto.
8569 * amd64-obsd-tdep.c: Ditto.
8570 * amd64-linux-nat.c: Ditto.
8571 * amd64-linux-tdep.c: Ditto.
8572 * arm-tdep.c: Ditto.
8573 * arm-tdep.h: Ditto.
8574 * armnbsd-nat.c: Ditto.
8575 * avr-tdep.c: Ditto.
8576 * bfin-tdep.c: Ditto.
8578 * c-typeprintc: Ditto.
8579 * c-valprint.c: Ditto.
8580 * coff-pe-read.h: Ditto.
8581 * coffreead.c: Ditto.
8582 * cris-tdep.c: Ditto.
8584 * darwin-nat-info.c: Ditto.
8585 * darwin-nat.c: Ditto.
8586 * dbug-rom.c: Ditto.
8590 * dec-thread.c: Ditto.
8592 * demangle.c: Ditto.
8593 * dicos-tdep.c: Ditto.
8594 * dictionary.c: Ditto.
8595 * dictionary.h: Ditto.
8596 * dink32-rom.c: Ditto.
8598 * doublest.c: Ditto.
8600 * dummy-frame.c: Ditto.
8601 * dwarf2-frame.c: Ditto.
8602 * dwarf2expr.c: Ditto.
8603 * dwarf2loc.c: Ditto.
8604 * dwarf2read.c: Ditto.
8608 * event-top.h: Ditto.
8609 * exceptions.c: Ditto.
8610 * exceptions.h: Ditto.
8612 * expprint.c: Ditto.
8613 * expression.h: Ditto.
8617 * f-typeprint.c: Ditto.
8618 * f-valprint.c: Ditto.
8619 * fbsd-nat.c: Ditto.
8621 * fork-child.c: Ditto.
8624 * frv-linux-tdep.c: Ditto.
8625 * frv-tdep.c: Ditto.
8627 * gdb-stabs.h: Ditto.
8628 * gdb_assert.h: Ditto.
8629 * gdb_string.h: Ditto.
8630 * gdb_thread_db.h: Ditto.
8631 * gdb_wait.h: Ditto.
8632 * gdbarch.sh: Ditto.
8634 * gdbthread.h: Ditto.
8635 * gdbtypes.c: Ditto.
8636 * gdbtypes.h: Ditto.
8639 * gnu-v2-abi.c: Ditto.
8640 * gnu-v3-abi.c: Ditto.
8641 * go32-nat.c: Ditto.
8642 * gdbarch.c: Regenerate.
8643 * gdbarch.h: Regenerate.
8645 2011-01-07 Michael Snyder <msnyder@vmware.com>
8647 * ax-gdb.c: Adjust some long output strings.
8648 * breakpoint.c: Ditto.
8653 * linux-nat.c: Ditto.
8654 * solib-pa64.c: Ditto.
8655 * solib-som.c: Ditto.
8657 2011-01-06 Tom Tromey <tromey@redhat.com>
8661 * python/python.c (GdbMethods): Add "newest_frame" method.
8662 * python/python-internal.h (gdbpy_newest_frame): Declare.
8663 * python/py-frame.c (gdbpy_newest_frame): New function.
8665 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8667 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8668 * jit.c (jit_debug): New variable.
8669 (show_jit_debug): New function.
8670 (struct target_buffer): Use ULONGEST.
8671 (bfd_open_from_target_memory): Likewise.
8672 (jit_register_code, jit_inferior_init): Add debug output.
8673 (_initialize_jit): Register "debug jit" command.
8675 2011-01-06 Tom Tromey <tromey@redhat.com>
8677 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8678 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8681 2011-01-06 Tom Tromey <tromey@redhat.com>
8683 * python/py-frame.c (frapy_block): Use get_frame_block.
8685 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8687 Do not stop on SIGPRIO signals by default
8688 * infrun.c (_initialize_infrun): Unset signal_stop and
8689 signal_print for TARGET_SIGNAL_PRIO.
8691 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8693 * ada-tasks.c: Fix style violation in comment.
8695 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8697 * linespec.c (decode_compound, find_method): Remove trailing \n
8698 at end of error string.
8699 * solib-irix.c (irix_current_sos): Likewise.
8700 * varobj.c (uninstall_variable): Likewise.
8702 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8704 * copyright.py: New script.
8705 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8706 Launch emacs without exec'ing. Call copyright.py afterwards.
8708 2011-01-05 Michael Snyder <msnyder@vmware.com>
8710 * addrmap.c: Shorten lines of >= 80 columns.
8711 * arch-utils.c: Ditto.
8712 * arch-utils.h: Ditto.
8714 * ax-general.c: Ditto.
8716 * blockframe.c: Ditto.
8717 * breakpoint.c: Ditto.
8718 * buildsym.c: Ditto.
8720 * c-typeprint.c: Ditto.
8722 * coffread.c: Ditto.
8726 * cp-namespace.c: Ditto.
8727 * cp-support.c: Ditto.
8728 * dbug-rom.c: Ditto.
8733 * dictionary.c: Ditto.
8735 * doublest.c: Ditto.
8736 * dwarf2-frame.c: Ditto.
8737 * dwarf2expr.c: Ditto.
8738 * dwarf2loc.c: Ditto.
8739 * dwarf2read.c: Ditto.
8742 * event-loop.c: Ditto.
8743 * event-loop.h: Ditto.
8744 * exceptions.h: Ditto.
8746 * expprint.c: Ditto.
8747 * expression.h: Ditto.
8749 * f-valprint.c: Ditto.
8751 * frame-base.c: Ditto.
8752 * frame-unwind.c: Ditto.
8753 * frame-unwind.h: Ditto.
8757 * gdb-stabs.h: Ditto.
8758 * gdb_assert.h: Ditto.
8759 * gdb_dirent.h: Ditto.
8760 * gdb_obstack.h: Ditto.
8762 * gdbtypes.c: Ditto.
8763 * gdbtypes.h: Ditto.
8764 * inf-ttrace.c: Ditto.
8769 * inline-frame.h: Ditto.
8770 * language.c: Ditto.
8771 * language.h: Ditto.
8772 * libunwind-frame.c: Ditto.
8773 * libunwind-frame.h: Ditto.
8774 * linespec.c: Ditto.
8775 * linux-nat.c: Ditto.
8776 * linux-nat.h: Ditto.
8777 * linux-thread-db.c: Ditto.
8778 * machoread.c: Ditto.
8779 * macroexp.c: Ditto.
8780 * macrotab.c: Ditto.
8783 * mdebugread.c: Ditto.
8788 * objfiles.c: Ditto.
8789 * objfiles.h: Ditto.
8791 * p-typeprint.c: Ditto.
8792 * p-valprint.c: Ditto.
8794 * printcmd.c: Ditto.
8795 * proc-events.c: Ditto.
8797 * progspace.c: Ditto.
8798 * progspace.h: Ditto.
8799 * psympriv.h: Ditto.
8802 * regcache.c: Ditto.
8803 * regcache.h: Ditto.
8804 * remote-fileio.c: Ditto.
8806 * ser-mingw.c: Ditto.
8808 * ser-unix.c: Ditto.
8811 * solib-frv.c: Ditto.
8812 * solib-irix.c: Ditto.
8813 * solib-osf.c: Ditto.
8814 * solib-pa64.c: Ditto.
8815 * solib-som.c: Ditto.
8816 * solib-sunos.c: Ditto.
8817 * solib-svr4.c: Ditto.
8818 * solib-target.c: Ditto.
8822 * stabsread.c: Ditto.
8823 * stabsread.c: Ditto.
8826 * symfile-mem.c: Ditto.
8832 * target-descriptions.c: Ditto.
8833 * target-memory.c: Ditto.
8836 * terminal.h: Ditto.
8839 * tracepoint.c: Ditto.
8840 * tracepoint.h: Ditto.
8844 * user-regs.c: Ditto.
8845 * user-regs.h: Ditto.
8847 * valarith.c: Ditto.
8849 * valprint.c: Ditto.
8850 * valprint.h: Ditto.
8855 * xcoffread.c: Ditto.
8856 * xcoffsolib.c: Ditto.
8857 * xcoffsolib.h: Ditto.
8858 * xml-syscall.c: Ditto.
8859 * xml-tdesc.c: Ditto.
8861 2011-01-05 Michael Snyder <msnyder@vmware.com>
8863 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
8864 * cli/cli-decode.c: Ditto.
8865 * cli/cli-dump.c: Ditto.
8866 * cli/cli-logging.c: Ditto.
8867 * cli/cli-script.c: Ditto.
8868 * cli/cli-setshow.c: Ditto.
8869 * common/signals.c: Ditto.
8870 * mi/mi-cmd-break.c: Ditto.
8871 * mi/mi-cmd-disas.c: Ditto.
8872 * mi/mi-cmd-stack.c: Ditto.
8873 * mi/mi-cmd-var.c: Ditto.
8874 * mi/mi-cmds.c: Ditto.
8875 * mi/mi-common.h: Ditto.
8876 * mi/mi-console.c: Ditto.
8877 * mi/mi-interp.c: Ditto.
8878 * mi/mi-main.c: Ditto.
8879 * osf-share/cma_attr.c: Ditto.
8880 * osf-share/cma_deb_core.h: Ditto.
8881 * osf-share/cma_debug_client.h: Ditto.
8882 * osf-share/cma_handle.h: Ditto.
8883 * osf-share/cma_mutex.h: Ditto.
8884 * osf-share/cma_stack_int.h: Ditto.
8885 * osf-share/cma_tcb_defs.h: Ditto.
8886 * python/py-auto-load.c: Ditto.
8887 * python/py-breakpoint.c: Ditto.
8888 * python/py-cmd.c: Ditto.
8889 * python/py-frame.c: Ditto.
8890 * python/py-objfile.c: Ditto.
8891 * python/py-param.c: Ditto.
8892 * python/py-progspace.c: Ditto.
8893 * python/py-symbol.c: Ditto.
8894 * python/py-value.c: Ditto.
8895 * python/python-internal.h: Ditto.
8896 * python/python.c: Ditto.
8897 * tui/tui-data.c: Ditto.
8898 * tui/tui-disasm.c: Ditto.
8899 * tui/tui-hooks.c: Ditto.
8900 * tui/tui-io.c: Ditto.
8901 * tui/tui-layout.c: Ditto.
8902 * tui/tui-regs.c: Ditto.
8903 * tui/tui-source.c: Ditto.
8904 * tui/tui-stack.c: Ditto.
8905 * tui/tui-win.c: Ditto.
8906 * tui/tui-windata.c: Ditto.
8907 * tui/tui-winsource.c: Ditto.
8909 2011-01-05 Joel Brobecker <brobecker@adacore.com>
8911 * configure.ac, gdb.1: Copyright year update.
8913 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8915 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
8916 this_pc_in_block, morestack_msym and morestack_name. Check for
8917 "__morestack" minimal symbol there.
8919 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8921 * symfile.c (find_sym_fns): Add call to dont_repeat.
8923 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8925 Copyright year update in most files (performed by copyright.sh).
8927 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8929 * top.c (print_gdb_version): Update copyright year in version output.
8931 For older changes see ChangeLog-2010.
8937 version-control: never