1 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * inf-loop.c (inferior_event_handler): Add exception_print in
6 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
9 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
10 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
11 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
12 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
13 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
14 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
15 * infrun.c (fetch_inferior_event): Call
16 make_bpstat_clear_actions_cleanup.
17 * top.c (execute_command): New variable cleanup_if_error, call
18 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
19 * utils.c (do_bpstat_clear_actions_cleanup)
20 (make_bpstat_clear_actions_cleanup): New functions.
22 2011-08-26 Pedro Alves <pedro@codesourcery.com>
24 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
25 either the parent or the child forks. Rename a couple locals.
27 2011-08-26 Pedro Alves <pedro@codesourcery.com>
29 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
30 library call. Avoid reading the `status' local if all waitpid
33 2011-08-26 Pedro Alves <pedro@codesourcery.com>
35 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
36 opening /proc/PID/task always succeeds.
38 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
40 * linespec.c (symtab_from_filename): Check for the end of string.
42 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
45 * varobj.c (cplus_describe_child): Add the keyword
46 'class' to the output of the method when dealing
47 with a cast to a base class.
49 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
51 No functionality change.
52 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
53 function comment a reference, new variables tp and bs, move here code
55 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
56 describe it in the comment.
57 * exceptions.c (throw_exception): Remove variable tp, move the code for
58 bpstat_clear_actions to bpstat_clear_actions.
60 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
62 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
63 * linux-nat.c: Include linux-procfs.h.
64 (linux_proc_get_tgid): Move to ...
65 * common/linux-procfs.c: ... here. New file.
66 * common/linux-procfs.h: New file.
67 * linux-thread-db.c: Include linux-procfs.h.
68 * Makefile.in: Update dependencies.
69 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
70 * config/arm/linux.mh: Likewise.
71 * config/i386/linux.mh: Likewise.
72 * config/i386/linux64.mh: Likewise.
73 * config/ia64/linux.mh: Likewise.
74 * config/m32r/linux.mh: Likewise.
75 * config/m68k/linux.mh: Likewise.
76 * config/mips/linux.mh: Likewise.
77 * config/pa/linux.mh: Likewise.
78 * config/pa/linux.mh: Likewise.
79 * config/powerpc/linux.mh: Likewise.
80 * config/powerpc/ppc64-linux.mh: Likewise.
81 * config/powerpc/spu-linux.mh: Likewise.
82 * config/sparc/linux.mh: Likewise.
83 * config/sparc/linux64.mh: Likewise.
84 * config/xtensa/linux.mh: Likewise.
86 2011-08-24 Hui Zhu <teawater@gmail.com>
88 * tracepoint.c (cond_string_is_same): New function.
89 (find_matching_tracepoint): Add condition check
90 by cond_string_is_same.
92 2011-08-23 Josh Matthews <josh@joshmatthews.net>
94 Fix build error in Darwin port.
95 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
97 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
100 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
101 (command_line_is_silent): New function.
102 (bpstat_do_actions_1): No longer use commands_left, use
103 command_line_is_silent for commands.
104 (bpstat_alloc): Remove clearing of commands_left.
105 (bpstat_stop_status): Remove initialization of commands_left, use
106 command_line_is_silent.
107 * breakpoint.h (struct bpstats): Remove commands_left.
109 2011-08-18 Keith Seitz <keiths@redhat.com>
112 * cp-name-parser.y (struct demangle_info): Remove unused
115 (allocate_info): Change return type to struct demangle_info *.
116 Always allocate a new demangle_info.
117 Remove unused PREV pointer.
118 (cp_new_demangle_parse_info): New function.
119 (cp_demangled_name_parse_free): New function.
120 (do_demangled_name_parse_free_cleanup): New function.
121 (make_cleanup_cp_demangled_name_parse_free): New function.
122 (cp_demangled_name_to_comp): Change return type to
123 struct demangle_parse_info *.
124 Allocate a new storage for each call.
125 (main): Update usage for cp_demangled_name_to_comp
127 * cp-support.h (struct demangle_parse_info): New structure.
128 (cp_demangled_name_to_comp): Update API change for
130 (cp_new_demangle_parse_info): Declare.
131 (make_cleanup_cp_demangled_name_parse_free): New declaration.
132 (cp_demangled_name_parse_free): Declare.
133 * cp-support.c (cp_canonicalize_string): Update API
134 change for cp_demangled_name_to_comp.
135 (mangled_name_to_comp): Likewise.
136 Return struct demangle_parse_info, too.
137 (cp_class_name_from_physname): Update mangled_name_to_comp
139 (method_name_from_physname): Likewise.
140 (cp_func_name): Update API change for cp_demangled_name_to_comp.
141 (cp_remove_params): Likewise.
142 * python/py-type.c (typy_legacy_template_argument): Likewise.
144 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
145 (cp_merge_demangle_parse_infos): Declare.
146 * cp-support.c (ignore_typedefs): New file global.
147 (copy_string_to_obstack): New function.
148 (inspect_type): New function.
149 (replace_typedefs): New function.
150 (replace_typedefs_qualified_name): New function.
151 (cp_canonicalize_string_no_typedefs): New function.
152 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
153 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
154 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
155 instead of cp_canonicalize_string.
156 (find_method): Likewise.
157 (decode_compound): Before looking up the name, call
158 cp_canonicalize_string_no_typedefs.
159 (decode_variable): Likewise.
161 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
162 Tom Tromey <tromey@redhat.com>
163 Matt Rice <ratmice@gmail.com>
165 * python/lib/gdb/prompt.py: New file.
166 * python/lib/gdb/command/prompt.py: New file.
167 * NEWS: Document set extended-prompt and gdb.prompt library
169 2011-08-16 Yao Qi <yao@codesourcery.com>
171 * tic6x-linux-tdep.c: Move const arrays definition from here...
172 * tic6x-tdep.c: to here ...
174 2011-08-14 Yao Qi <yao@codesourcery.com>
176 * NEWS: New port to Texas Instruments TMS320C6x.
178 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
179 Bernd Schmidt <bernds@codesourcery.com>
180 Yao Qi <yao@codesourcery.com>
182 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
183 * solib-dsbt.c: New file. Support DSBT shared object.
184 * tic6x-linux-tdep.c: New file.
185 * tic6x-tdep.c: New file.
186 * tic6x-tdep.h: New file.
188 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
189 Yao Qi <yao@codesourcery.com>
191 * remote.c (PACKET_qXfer_fdpic): New enum value.
192 (remote_protocol_features): Add qXfer:fdpic:read packet.
193 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
194 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
195 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
197 2011-08-14 Yao Qi <yao@codesourcery.com>
199 Target description for tic6x.
200 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
201 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
202 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
203 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
204 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
205 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
206 * features/tic6x-c64xp-linux.xml: New.
207 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
208 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
209 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
210 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
211 * regformats/tic6x-c64xp.dat,
212 regformats/tic6x-c62x-linux.dat: Generated.
213 * regformats/tic6x-c64x-linux.dat,
214 regformats/tic6x-c64xp-linux.dat: Generated.
215 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
216 features/tic6x-*.c files.
217 Add regformats/tic6x-*.dat files.
219 2011-08-12 Doug Evans <dje@google.com>
221 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
222 * python/py-symbol.c (sympy_get_type): New function.
223 (symbol_object_getset): Add "type".
225 2011-08-12 Pedro Alves <pedro@codesourcery.com>
229 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
231 (tui_show_register_group): Don't store a byte buffer in the data
233 (tui_register_format): Skip registers with an empty name.
234 (tui_get_register): Store a struct value in the data element's
235 value field instead of a byte buffer holding the raw register
236 contents. Account for optimized-out and unavailable registers
237 when comparing register contents.
239 2011-08-09 Pedro Alves <pedro@codesourcery.com>
241 * printcmd.c (current_display_number): Update comment.
242 (disable_current_display_cleanup): Delete.
243 (do_one_display): Use make_cleanup_restore_integer. Gracefully
244 catch errors thrown while evaluating and printing the display.
246 2011-08-09 Tom Tromey <tromey@redhat.com>
248 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
250 2011-08-09 Pedro Alves <pedro@codesourcery.com>
252 * elfread.c (elf_symtab_read): Rework comments.
253 * maint.c (maintenance_command): Ditto.
254 * somread.c (som_symtab_read): Ditto.
255 * solib.c (solib_find, solib_map_sections, update_solib_list)
256 (solib_add, info_sharedlibrary_command, solib_name_from_address)
257 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
258 (sharedlibrary_command, no_shared_libraries): Ditto.
259 * solib-irix.c (locate_base, disable_break, enable_break)
260 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
261 (irix_current_sos, irix_open_symbol_file_object)
262 (irix_special_symbol_handling): Ditto.
263 * solib-sunos.c (locate_base, first_link_map_member)
264 (sunos_current_sos, disable_break, enable_break)
265 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
267 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
268 (open_symbol_file_object, svr4_current_sos, enable_break)
269 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
271 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
272 (frv_current_sos, enable_break, frv_special_symbol_handling)
273 (frv_solib_create_inferior_hook): Ditto.
274 * solist.h (struct target_so_ops): Extend the comments of the
275 special_symbol_handling, current_sos and open_symbol_file_object
278 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
280 * python/lib/gdb/__init__.py: Auto-load files in command and
281 function directories.
282 * python/python.c (finish_python_initialization): Use
284 * python/lib/gdb/command/pretty_printers.py: Self register
286 * NEWS: Document auto-loading.
288 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
290 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
291 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
292 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
294 2011-08-08 Tom Tromey <tromey@redhat.com>
296 * breakpoint.c (clean_up_filters): Remove.
297 (catch_syscall_split_args): Use VEC_cleanup.
299 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
301 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
302 (main): Uncomment "Demangling error\n".
304 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
306 * solib-target.c (segment_attributes): Make them static.
307 (section_attributes, library_children, library_attributes): Likewise.
308 (library_list_children, library_list_attributes): Likesise.
309 (library_list_elements): Likewise.
311 2011-08-05 Pedro Alves <pedro@codesourcery.com>
313 * exceptions.c (throw_exception): Don't disable the current
315 * printcmd.c (disable_current_display_cleanup): New function.
316 (do_one_display): Install a cleanup to disable the current display
317 if doing the display throws.
319 2011-08-05 Eli Zaretskii <eliz@gnu.org>
321 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
322 initialization of the tp_new member to the corresponding
323 gdbpy_initialize_* function.
324 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
325 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
326 * python/py-function.c (gdbpy_initialize_functions): Likewise.
327 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
328 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
330 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
332 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
333 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
334 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
335 references to current_uiout.
337 2011-08-04 Pedro Alves <pedro@codesourcery.com>
339 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
340 (start_event_loop): Use TRY_CATCH instead of catch_errors.
341 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
342 * top.c (gdb_readline_wrapper): Adjust.
343 * tui/tui-interp.c (tui_command_loop):
344 (_initialize_tui_interp): Don't install it.
346 2011-08-04 Pedro Alves <pedro@codesourcery.com>
348 * ui-out.h (uiout): Rename to ...
349 (current_uiout): ... this.
350 * ui-out.c (uiout): Rename to ...
351 (current_uiout): ... this.
352 * ada-lang.c (print_it_exception, print_one_exception)
353 (print_mention_exception): Adjust.
354 * breakpoint.c (watchpoint_check): Adjust.
355 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
356 (default_collect_info, watchpoints_info, print_one_catch_fork)
357 (print_one_catch_vfork, print_one_catch_syscall)
358 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
359 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
360 (print_it_watchpoint, print_mention_watchpoint)
361 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
362 (print_it_exception_catchpoint, print_one_exception_catchpoint)
363 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
364 (bkpt_print_mention, momentary_bkpt_print_it)
365 (tracepoint_print_mention, update_static_tracepoint)
366 (tracepoints_info, save_breakpoints): Adjust.
367 * cli-out.c (field_separator): Adjust.
368 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
369 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
370 * frame.c (get_current_frame): Adjust.
371 * infcmd.c (run_command_1, print_return_value): Adjust.
372 * inferior.c (inferior_command, info_inferiors_command): Adjust.
373 * infrun.c (print_end_stepping_range_reason): Adjust.
374 (print_signal_exited_reason, print_exited_reason): Adjust.
375 (print_signal_received_reason, print_no_history_reason): Adjust.
376 * interps.c (interp_set): Adjust.
377 * osdata.c (info_osdata_command): Adjust.
378 * progspace.c (maintenance_info_program_spaces_command): Adjust.
379 * remote-fileio.c (remote_fileio_request): Adjust.
380 * remote.c (show_remote_cmd): Adjust.
381 * solib.c (info_sharedlibrary_command): Adjust.
382 * source.c (print_source_lines_base): Adjust.
383 * stack.c (print_stack_frame): Adjust.
384 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
385 * symfile-mem.c (add_vsyscall_page): Adjust.
386 * symfile.c (load_progress, generic_load)
387 (print_transfer_performance): Adjust.
388 * thread.c (info_threads_command, restore_selected_frame)
389 (thread_command): Adjust.
390 * top.c (make_cleanup_restore_ui_file): Adjust.
391 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
392 (print_one_static_tracepoint_marker): Adjust.
393 * cli/cli-cmds.c (print_disassembly): Adjust.
394 * cli/cli-decode.c (print_doc_line): Adjust.
395 * cli/cli-interp.c (safe_execute_command): Adjust.
396 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
397 (handle_redirections): Adjust.
398 * cli/cli-script.c (show_user_1): Adjust.
399 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
400 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
401 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
402 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
403 (mi_cmd_env_dir): Adjust.
404 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
405 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
406 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
407 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
408 (list_args_or_locals): Adjust.
409 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
410 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
411 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
412 (mi_cmd_var_list_children, mi_cmd_var_info_type)
413 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
414 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
415 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
416 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
417 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
418 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
419 (list_available_thread_groups, mi_cmd_list_thread_groups)
420 (mi_cmd_data_list_register_names)
421 (mi_cmd_data_list_changed_registers)
422 (mi_cmd_data_list_register_values, get_register)
423 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
424 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
425 (mi_cmd_list_target_features, mi_cmd_add_inferior)
426 (mi_execute_command, mi_load_progress): Adjust.
427 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
428 * python/py-auto-load.c (print_script, info_auto_load_scripts):
430 * python/py-breakpoint.c (bppy_get_commands): Adjust.
431 * tui/tui-interp.c (tui_command_loop): Adjust.
432 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
434 2011-08-04 Pedro Alves <pedro@codesourcery.com>
436 * exceptions.c (struct catcher): Remove saved_uiout field.
437 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
438 no longer save/resvore the global ui_out builder.
439 (catch_exceptions_with_msg): Save/override/restore the global
440 ui_out builder manually instead of relying on TRY_CATCH to do it.
441 (catch_errors): Save/restore the global ui_out builder manually
442 instead of relying on TRY_CATCH to do it.
443 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
446 * cli/cli-interp.c (safe_execute_command): Save/override/restore
447 the global ui_out builder manually instead of relying on TRY_CATCH
450 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
452 * breakpoint.c (update_global_location_list): Ensure
453 invariant 'first loc marked not duplicated and inserted,
454 following locs marked duplicated/not inserted' is respected
455 for multiple locations at the same address.
456 (unduplicated_should_be_inserted) New function.
457 (swap_insertion) New function.
459 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
461 * stack.c (print_frame_arguments_choices): Comment typo fix.
463 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
466 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
467 * breakpoint.c (insert_bp_location): Remove disabled_breaks
468 argument. Update callers.
470 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
473 * doublest.c (convert_doublest_to_floatformat): Pass correct
474 mantissa length to put_field.
476 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
478 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
479 exception_print code path.
480 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
481 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
482 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
484 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
487 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
488 Remove, merge them into ...
489 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
490 variable args and its initialization.
491 (struct print_args_args, print_args_stub): Remove, merge them into
493 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
495 (do_gdb_disassembly): ... here. Remove variable args and its
497 (print_frame): Remove variable args and its initialization, new
498 variable gdbarch and numargs (from print_args_stub), inline here
499 print_args_stub with a TRY_CATCH.
500 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
502 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
503 New variable e, remove variable btargs and its initialization.
505 2011-08-01 Tristan Gingold <gingold@adacore.com>
507 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
509 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
511 * breakpoint.c (insert_bp_location): Document return value.
512 (insert_breakpoint_locations): Fix documentation.
513 (remove_breakpoints): Add documentation.
515 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
517 * breakpoint.c (insert_bp_location): Remove disabled_breaks
518 argument. Update callers.
520 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
522 * stack.c (print_frame_info): Comment typo fix.
524 2011-07-29 Sterling Augustine <saugustine@google.com>
526 * MAINTAINERS (Write After Approval): Add myself to the list.
528 2011-07-29 Tom Tromey <tromey@redhat.com>
530 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
531 (library_list_start_segment): Update.
532 (library_list_start_section): Update.
534 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
536 * varobj.c (value_get_print_value): Move hint check later into the
537 function. Comment function. Free thevalue before reusing it.
539 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
540 Pedro Alves <pedro@codesourcery.com>
542 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
544 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
545 Assert the result kind.
546 * value.h (value_one): Remove parameter lv.
548 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
550 Fix crash on lval_computed values.
551 * valops.c (value_zero): Use not_lval for lval_computed.
553 2011-07-27 Tom Tromey <tromey@redhat.com>
555 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
556 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
558 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
560 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
561 "ptype" by their typedefs difference.
563 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
565 * dwarf2expr.c (ctx_no_read_reg): New function.
566 * dwarf2expr.h (ctx_no_read_reg): New declaration.
567 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
568 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
569 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
571 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
573 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
574 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
576 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
577 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
578 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
579 (ctx_no_get_base_type): Move the functions here.
580 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
581 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
582 (ctx_no_get_base_type): New declarations.
584 2011-07-27 Tom Tromey <tromey@redhat.com>
586 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
588 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
589 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
591 2011-07-26 Sterling Augustine <saugustine@google.com>
593 * cli/cli-dump.c (dump_binary_file): Change parameter type to
595 (dump_bfd_file): Likewise.
597 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
599 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
600 (remote_hw_watchpoint_length_limit): New variable.
601 (_initialize_remote) add set,show cmds for this new variable.
602 * gdb.texinfo: document these new commands.
603 * NEWS: Mention these new commands.
605 2011-07-26 Pedro Alves <pedro@codesourcery.com>
607 * breakpoint.c (works_in_software_mode_watchpoint): Also return
608 true for software watchpoints.
610 2011-07-26 Joel Brobecker <brobecker@adacore.com>
614 2011-07-26 Tom Tromey <tromey@redhat.com>
616 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
617 * dwarf2read.c (read_indirect_string_at_offset): New function.
618 (read_indirect_string): Use it.
619 (dwarf_decode_macro_bytes): New function, taken from
620 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
621 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
622 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
624 (struct dwarf2_per_objfile) <macro>: New field.
625 (dwarf2_elf_names): Add .debug_macro.
626 (dwarf2_macros_too_long_complaint): Add 'section' argument.
627 (dwarf2_locate_sections): Handle new section.
628 (read_file_scope): Handle DW_AT_GNU_macros.
629 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
631 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
633 * NEWS: Mention dcache configuration.
634 * dcache.c (dcache_set_list, dcache_show_list): New variables.
635 (dcache_size, dcache_line_size): New variables.
636 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
637 (struct dcache_block): Make it expandable.
638 (struct dcache_struct): New field.
639 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
640 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
641 (dcache_poke_byte, dcache_print_line): Adjust.
642 (set_dcache_size, set_dcache_line_size): New functions.
643 (set_dcache_command, show_dcache_command): New functions.
644 (_initialize_dcache): Add new commands.
646 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
648 * progspace.h (struct program_space): Add solib_add_generation.
649 * infcmd.c (post_create_inferior): Only call solib_add if not
651 * solib.c (solib_add): Increment solib_add_generation.
653 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
655 Fix implicit pointer offsets.
656 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
659 2011-07-25 Tom Tromey <tromey@redhat.com>
661 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
663 (ada_exception_sal): Make 'ops' const.
664 (ada_decode_exception_location): Likewise.
665 (ada_decode_assert_location): Likewise.
666 (catch_assert_command): Update.
667 (catch_ada_exception_command): Update.
668 (create_ada_exception_catchpoint): Make 'ops' const.
669 * breakpoint.c (set_raw_breakpoint_without_location)
670 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
672 (create_internal_breakpoint): Update.
673 (init_raw_breakpoint_without_location): Make 'ops' const.
674 (init_raw_breakpoint, init_catchpoint)
675 (create_fork_vfork_event_catchpoint)
676 (create_syscall_event_catchpoint, init_breakpoint_sal)
677 (create_breakpoint_sal, create_breakpoints_sal)
678 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
679 * breakpoint.h (struct breakpoint) <ops>: Now const.
680 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
683 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
685 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
687 2011-07-25 Pedro Alves <pedro@codesourcery.com>
689 * breakpoint.h (print_recreate_thread): Declare.
690 (struct breakpoint): Move step_count, pass_count,
691 number_on_target, static_trace_marker_id,
692 static_trace_marker_id_idx ...
693 (struct tracepoint): ... to this new struct.
694 (get_tracepoint, get_tracepoint_by_number_on_target)
695 (get_tracepoint_by_number): Change return type to struct
697 * breakpoint.c (is_tracepoint_type): New, factored out from
699 (is_tracepoint): Adjust.
700 (print_one_breakpoint_location): Cast to struct tracepoint as
701 necessary, and adjust.
702 (print_recreate_catch_fork, print_recreate_catch_vfork)
703 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
704 print_recreate_thread.
705 (init_breakpoint_sal): New, factored out from
706 create_breakpoint_sal.
707 (create_breakpoint_sal): Reimplement.
708 (create_breakpoint): Allocate a struct tracecepoint if the caller
709 wanted a tracepoint. Use init_breakpoint_sal and
711 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
712 (print_recreate_masked_watchpoint)
713 (print_recreate_exception_catchpoint): Call print_recreate_thread.
714 (tracepoint_print_one_detail): Adjust.
715 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
716 Dump the pass count here.
717 (update_static_tracepoint): Adjust.
718 (addr_string_to_sals): Adjust.
719 (create_tracepoint_from_upload): Adjust. Change return type to
720 struct tracepoint pointer.
721 (trace_pass_set_count): Change parameter type to struct tracepoint
723 (trace_pass_command): Adjust.
724 (get_tracepoint, get_tracepoint_by_number_on_target)
725 (get_tracepoint_by_number): Change return type to struct
726 tracepoint pointer, and adjust.
727 (print_recreate_thread): New, factored out from save_breakpoints.
728 (save_breakpoints): Don't print thread and task and passcount
730 * remote.c (remote_download_tracepoint): Adjust.
731 * tracepoint.c (trace_actions_command, validate_actionline)
732 (start_tracing, tfind_1, trace_find_tracepoint_command)
733 (trace_dump_command): Adjust.
734 (find_matching_tracepoint): Change return type to struct
735 tracepoint pointer, and adjust.
736 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
737 (tfile_trace_find, tfile_fetch_registers): Adjust.
738 * tracepoint.h (create_tracepoint_from_upload): Change return type
739 to struct tracepoint pointer.
740 * ada-lang.c (print_recreate_exception): Call
741 print_recreate_thread.
742 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
744 2011-07-25 Pedro Alves <pedro@codesourcery.com>
746 * breakpoint.h (struct breakpoint): Move ops as first field. Move
747 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
748 cond_exp_valid_block, val, val_valid, watchpoint_frame,
749 watchpoint_thread, watchpoint_triggered ...
750 (struct watchpoint): ... to this new struct.
751 (is_watchpoint): Declare.
752 (install_breakpoint): Add new `internal' parameter.
753 * breakpoint.c (is_watchpoint): Delete declaration.
754 (set_breakpoint_condition): Handle watchpoints.
755 (is_watchpoint): Make public.
756 (watchpoint_in_thread_scope): Change parameter type to struct
758 (watchpoint_del_at_next_stop): Change parameter type to struct
759 watchpoint. Remove assertion. Adjust.
760 (update_watchpoint): Ditto.
761 (insert_breakpoints, breakpoint_init_inferior)
762 (watchpoints_triggered, watchpoint_check)
763 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
764 (bpstat_stop_status, print_one_breakpoint_location)
765 (print_one_breakpoint_location, watchpoint_locations_match): Cast
766 to struct watchpoint as necessary, and adjust.
767 (install_breakpoint): Add `internal' argument. If true, don't
768 mention the new breakpoint. Use set_breakpoint_number.
769 (create_fork_vfork_event_catchpoint)
770 (create_syscall_event_catchpoint): Adjust.
771 (dtor_watchpoint): New.
772 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
773 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
774 (print_it_watchpoint, print_mention_watchpoint)
775 (print_recreate_watchpoint, insert_masked_watchpoint)
776 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
777 (print_one_detail_masked_watchpoint)
778 (print_mention_masked_watchpoint)
779 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
780 necessary, and adjust.
781 (watch_command_1): Allocate and initialize a struct watchpoint
782 instead of a struct breakpoint. Use install_breakpoint.
783 (catch_exec_command_1): Adjust.
784 (base_breakpoint_dtor): Delete accesses to watchpoint specific
786 (delete_breakpoint, enable_breakpoint_disp)
787 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
788 as necessary, and adjust.
789 (initialize_breakpoint_ops): Install dtor_watchpoint as
790 watchpoints' dtor method.
791 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
792 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
793 to struct watchpoint as necessary, and adjust.
795 2011-07-25 Pedro Alves <pedro@codesourcery.com>
797 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
798 the the base class ops table.
799 (catch_exception_breakpoint_ops)
800 (catch_exception_unhandled_breakpoint_ops)
801 (catch_assert_breakpoint_ops): Don't statically initialize.
802 (initialize_ada_catchpoint_ops): New.
803 (_initialize_ada_language): Call it.
804 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
805 (bkpt_breakpoint_ops): Forward declare.
806 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
807 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
808 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
809 (masked_watchpoint_breakpoint_ops)
810 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
811 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
812 base class ops table.
813 (null_re_set, null_check_status, null_works_in_software_mode)
814 (null_resources_needed, null_print_one_detail): Delete.
815 (bkpt_dtor): Rename to ...
816 (base_breakpoint_dtor): ... this. Make static.
817 (bkpt_allocate_location): Rename to ...
818 (base_breakpoint_allocate_location): ... this. Make static.
819 (base_breakpoint_re_set): New.
820 (internal_error_pure_virtual_called): New.
821 (base_breakpoint_insert_location, base_breakpoint_remove_location)
822 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
823 (base_breakpoint_works_in_software_mode)
824 (base_breakpoint_resources_needed, base_breakpoint_print_it)
825 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
826 (base_breakpoint_print_recreate): New functions.
827 (base_breakpoint_ops): New global.
828 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
829 (bkpt_breakpoint_hit): Make static.
830 (bkpt_check_status): Delete.
831 (bkpt_resources_needed): Make static.
832 (bkpt_works_in_software_mode): Delete.
833 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
835 (bkpt_breakpoint_ops, internal_breakpoint_ops)
836 (momentary_breakpoint_ops): Don't statically initialize.
837 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
839 (tracepoint_insert_location, tracepoint_remove_location)
840 (tracepoint_check_status, tracepoint_works_in_software_mode)
841 (tracepoint_print_it): Delete.
842 (tracepoint_breakpoint_ops): Don't statically initialize.
843 (initialize_breakpoint_ops): New.
844 (_initialize_breakpoint): Call it.
845 * breakpoint.h (null_re_set, null_works_in_software_mode)
846 (null_resources_needed, null_check_status, null_print_one_detail):
847 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
848 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
849 (bkpt_check_status, bkpt_resources_needed)
850 (bkpt_works_in_software_mode, bkpt_print_it)
851 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
853 (initialize_breakpoint_ops): Declare.
855 2011-07-25 Pedro Alves <pedro@codesourcery.com>
857 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
858 (momentary_bkpt_print_it): Simplify.
860 2011-07-25 Pedro Alves <pedro@codesourcery.com>
862 Split internal, momentary and user breakpoints breakpoint_ops
865 * breakpoint.c (internal_breakpoint_ops)
866 (momentary_breakpoint_ops): Forward declare.
867 (create_internal_breakpoint): Add new breakpoint_ops parameter.
868 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
869 (create_overlay_event_breakpoint)
870 (create_std_terminate_master_breakpoint)
871 (create_exception_master_breakpoint): Create breakpoints with
872 internal_breakpoint_ops vtable.
873 (set_longjmp_breakpoint): Create momentary breakpoints with
874 momentary_breakpoint_ops vtable, using
875 momentary_breakpoint_from_master.
876 (create_thread_event_breakpoint, create_jit_event_breakpoint)
877 (create_solib_event_breakpoint): Create breakpoints with
878 internal_breakpoint_ops vtable.
879 (set_momentary_breakpoint): Create breakpoints with
880 momentary_breakpoint_ops vtable.
881 (momentary_breakpoint_from_master): New, factored out from
882 clone_momentary_breakpoint.
883 (clone_momentary_breakpoint): Adjust.
884 (watch_command_1): Create scope breakpoints with
885 momentary_breakpoint_ops vtable.
886 (bkpt_re_set): Remove handling of internal and momentary
888 (bkpt_print_mention, bkpt_print_recreate): New.
889 (bkpt_breakpoint_ops): Adjust.
890 (internal_bkpt_re_set, internal_bkpt_check_status)
891 (internal_bkpt_print_it, internal_bkpt_print_mention)
892 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
893 (momentary_bkpt_re_set, momentary_bkpt_check_status)
894 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
895 (momentary_bkpt_print_recreate): New.
896 (momentary_breakpoint_ops): New.
898 2011-07-25 Pedro Alves <pedro@codesourcery.com>
900 Implement most breakpoint_ops methods for all breakpoint types,
901 and move the default handlings to the proper callbacks.
903 * breakpoint.c (update_watchpoint): Always call the breakpoint's
904 works_in_software_mode method.
905 (insert_bp_location): Go through breakpoint_ops->insert_location
906 for software and hardware watchpoints.
907 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
909 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
910 for software and hardware watchpoints.
911 (print_it_typical): Delete.
912 (print_bp_stop_message): Always call the breakpoint_ops->print_it
914 (watchpoint_check): Adjust comment.
915 (bpstat_check_location): Simply always call the breakpoint's
916 breakpoint_hit method.
917 (bpstat_stop_status): Always call the breakpoint's check_status
918 method. Remove special cases for watchpoints and internal event
919 breakpoints from here (moved to the check_status implementations).
920 (print_one_breakpoint_location): Assume b->ops is never NULL.
921 Remove static tracepoint marker id printing from here (moved to
922 the print_one_detail callback implementation of tracepoints).
923 (init_bp_location): Assert OPS is never NULL.
924 (allocate_bp_location): Always call the breakpoint's
925 allocate_location method, and remove the default code from here.
926 (free_bp_location): Always call the location's dtor method, and
927 remove the default code from here.
928 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
929 (set_raw_breakpoint_without_location): Add new breakpoint_ops
930 parameter. Pass it down.
931 (set_raw_breakpoint): Ditto.
932 (print_it_catch_fork): Adjust to take a bpstat as argument.
933 (catch_fork_breakpoint_ops): Install methods.
934 (print_it_catch_vfork): Adjust to take a bpstat as argument.
935 (catch_vfork_breakpoint_ops): Install methods.
936 (dtor_catch_syscall): Call the base dtor.
937 (print_it_catch_syscall): Adjust to take a bpstat as argument.
938 (catch_syscall_breakpoint_ops): Install methods.
939 (dtor_catch_exec): Call the base dtor.
940 (print_it_catch_exec): Adjust to take a bpstat as argument.
941 (catch_exec_breakpoint_ops): Install methods.
942 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
943 the breakpoint's resources_needed method, and remove the default
945 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
947 (clone_momentary_breakpoint): Clone the original's ops.
948 (mention): Always call the breakpoint's print_mention method, and
949 remove the default code from here.
950 (create_breakpoint_sal): Adjust to pass the ops to
951 set_raw_breakpoint rather than setting it manually.
952 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
953 ops to set_raw_breakpoint_without_location rather than setting it
955 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
956 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
957 (ranged_breakpoint_ops): Install methods.
958 (break_range_command): Adjust to pass the ops to
959 set_raw_breakpoint rather than setting it manually.
960 (re_set_watchpoint, breakpoint_hit_watchpoint)
961 (check_status_watchpoint, resources_needed_watchpoint)
962 (works_in_software_mode_watchpoint, print_it_watchpoint)
963 (print_mention_watchpoint, print_recreate_watchpoint): New
965 (watchpoint_breakpoint_ops): Install new methods.
966 (print_it_masked_watchpoint): New function.
967 (masked_watchpoint_breakpoint_ops): Install new methods.
968 (watch_command_1): Adjust to pass the right breakpoint_ops to
969 set_raw_breakpoint_without_location rather than setting it
970 manually later. Record the current pspace.
971 (print_it_exception_catchpoint): Adjust to take a bpstat as
973 (gnu_v3_exception_catchpoint_ops): Install new methods.
974 (say_where): New function.
975 (null_re_set, null_check_status, null_works_in_software_mode)
976 (null_resources_needed, null_print_one_detail, bp_location_dtor):
978 (bp_location_ops): New global.
979 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
980 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
981 (bkpt_check_status, bkpt_resources_needed)
982 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
983 (bkpt_print_recreate): New functions.
984 (bkpt_breakpoint_ops): New global.
985 (tracepoint_re_set, tracepoint_insert_location)
986 (tracepoint_remove_location, tracepoint_breakpoint_hit)
987 (tracepoint_check_status, tracepoint_works_in_software_mode)
988 (tracepoint_print_it, tracepoint_print_one_detail)
989 (tracepoint_print_mention, tracepoint_print_recreate): New
991 (tracepoint_breakpoint_ops): New global.
992 (delete_breakpoint): Always call the breakpoint's dtor method, and
993 remove the default handling from here.
994 (breakpoint_re_set_default): Make static.
995 (breakpoint_re_set_one): Always call the breakpoints re_set
996 method, and remove the default handling from here.
997 (trace_command, ftrace_command, strace_command)
998 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
999 to create_breakpoint.
1000 (save_breakpoints): Always call the breakpoint's print_recreate
1001 method, and remove the default handling from here.
1003 * ada-lang.c (dtor_exception): Call the base dtor.
1004 (re_set_exception): Call the base method.
1005 (print_it_exception, print_it_catch_exception): Adjust to take a
1007 (catch_exception_breakpoint_ops): Install methods.
1008 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1010 (catch_exception_unhandled_breakpoint_ops): Install methods.
1011 (print_it_catch_assert): Adjust to take a bpstat as argument.
1012 (catch_assert_breakpoint_ops): Install methods.
1014 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1015 to take a bpstat as argument.
1016 (enum print_stop_action): Add describing comments to each enum
1018 (breakpoint_re_set_default): Delete declaration.
1019 (null_re_set, null_works_in_software_mode, null_resources_needed)
1020 (null_check_status, null_print_one_detail): Declare.
1021 (bkpt_breakpoint_ops): Declare.
1022 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1023 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1024 (bkpt_check_status, bkpt_resources_needed)
1025 (bkpt_works_in_software_mode, bkpt_print_it)
1026 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1029 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1030 bkpt_breakpoint_ops.
1031 * python/py-breakpoint.c (bppy_init): Ditto.
1033 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1035 * MAINTAINERS (Write After Approval): Add myself to the list.
1037 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1039 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1041 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1043 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1044 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1045 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1047 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1048 (struct i386_debug_reg_state): New.
1049 (i386_init_dregs): New.
1051 (i386_cleanup_dregs): Use i386_init_dregs.
1052 (i386_show_dr): Add state parameter and adjust.
1053 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1055 (i386_remove_aligned_watchpoint): Likewise.
1056 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1057 (i386_update_inferior_debug_regs): New.
1058 (i386_insert_watchpoint): Work on a local mirror of the debug
1059 registers, and only update the inferior on success.
1060 (i386_remove_watchpoint): Ditto.
1061 (i386_region_ok_for_watchpoint): Adjust.
1062 (i386_stopped_data_address): Adjust.
1063 (i386_insert_hw_breakpoint): Adjust.
1064 (i386_remove_hw_breakpoint): Adjust.
1066 2011-07-22 Tom Tromey <tromey@redhat.com>
1068 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1069 from amd64_pseudo_register_read. Change arguments. Call
1070 mark_value_bytes_unavailable when needed.
1071 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1072 set_gdbarch_pseudo_register_read.
1073 * sentinel-frame.c (sentinel_frame_prev_register): Use
1074 regcache_cooked_read_value.
1075 * regcache.h (regcache_cooked_read_value): Declare.
1076 * regcache.c (regcache_cooked_read_value): New function.
1077 (regcache_cooked_read): Call
1078 gdbarch_pseudo_register_read_value if available.
1079 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1080 (i386_pseudo_register_read): Remove.
1081 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1082 i386_pseudo_register_read. Change arguments. Call
1083 mark_value_bytes_unavailable when needed.
1084 (i386_pseudo_register_read_value): New function.
1085 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1086 not set_gdbarch_pseudo_register_read.
1087 * gdbarch.sh (pseudo_register_read_value): New method.
1088 * gdbarch.c, gdbarch.h: Rebuild.
1089 * findvar.c (value_from_register): Call get_frame_register_value.
1091 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1093 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1095 (display_gdb_prompt): Likewise.
1096 (change_annotation_level): Likewise.
1097 (push_prompt): Likewise.
1098 (pop_prompt): Likewise.
1099 (handle_stop_sig): Use get_prompt with a level.
1100 * top.c (command_loop): Use get_prompt with a level.
1101 (set_async_annotation_level): Use set_prompt with a level.
1102 (get_prefix): New function.
1103 (set_prefix): Ditto.
1104 (set_suffix): Ditto.
1105 (get_suffix): Ditto.
1106 (get_prompt): Accept a level argument.
1107 (set_prompt): Accept a level argument. Free old prompts. Set
1108 new_async_prompt if level is 0.
1109 (init_main): Use set_prompt with a level. Do not set
1111 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1112 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1113 Modify set_prompt, get_prompt to account for levels.
1114 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1116 * python/python.c (before_prompt_hook): Use set_prompt.
1118 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1120 * defs.h: Add guard against inclusion in gdbserver.
1121 (struct ptid, ptid_t): Move to common/ptid.h.
1122 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1123 xsnprintf, internal_error): Move to common/common-utils.h.
1125 * gdb_assert.h: Move into common/ sub-directory.
1126 * gdb_locale.h: Ditto.
1127 * gdb_dirent.h: Ditto.
1128 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1129 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1130 Move into common/ptid.h.
1131 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1132 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1133 Change nomem to malloc_failure.
1134 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1135 * utils.c (nomem): Rename to malloc_failure.
1136 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1137 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1138 (gdb_buildargv): Change nomem to malloc_failure.
1139 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1140 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1141 ptid_is_pid): Move into common/ptid.c.
1142 (initialize_infrun): Delete initialization of null_ptid and
1144 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1145 linux_common_xfer_osdata.
1146 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1147 common/ptid.c and common/buffer.c.
1148 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1149 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1150 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1151 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1153 * common/gdb_assert.h: New.
1154 * common/gdb_dirent.h: New.
1155 * common/gdb_locale.h: New.
1156 * common/buffer.c: New.
1157 * common/buffer.h: New.
1158 * common/ptid.c: New.
1159 * common/ptid.h: New.
1160 * common/xml-utils.c: New.
1161 * common/xml-utils.h: New.
1162 * common/common-utils.c: New.
1163 * common/common-utils.h: New.
1164 * common/linux-osdata.c: New.
1165 * common/linux-osdata.h: New.
1166 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1167 * config/arm/linux.mh (NATDEPFILES): Ditto.
1168 * config/i386/linux.mh (NATDEPFILES): Ditto.
1169 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1170 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1171 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1172 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1173 * config/mips/linux.mh (NATDEPFILES): Ditto.
1174 * config/pa/linux.mh (NATDEPFILES): Ditto.
1175 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1176 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1177 * config/s390/s390.mh (NATDEPFILES): Ditto.
1178 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1179 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1180 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1182 2011-07-21 Matt Rice <ratmice@gmail.com>
1184 * NEWS: Add info macros and info definitions commands.
1186 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1188 * NEWS: Document Python prompt substitution hook.
1190 2011-07-18 Matt Rice <ratmice@gmail.com>
1193 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1194 * macrotab.c (foreach_macro): Ditto.
1195 (foreach_macro_in_scope): Ditto.
1196 * macrocmd.c (print_macro_callback): New function.
1197 (info_macro_command): Move some code to print_macro_definition.
1198 (print_macro_definition): New function.
1199 (print_one_macro): Add new arguments to callback.
1200 (info_definitions_command): New function.
1201 (info_macros_command): Ditto.
1202 (_initialize_macrocmd): Add info macros and info definitions commands.
1203 * symtab.c (add_macro_name): Add new arguments to callback.
1205 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1206 Tom Tromey <tromey@redhat.com>
1208 * top.c (set_prompt): Rewrite to free previous prompt, free
1209 asynch_new_prompt and set both on new prompts.
1210 * event-top.c (display_gdb_prompt): Add prompt substitution
1212 * python/python.c (before_prompt_hook): New function.
1214 2011-07-20 Matt Rice <ratmice@gmail.com>
1216 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1217 arguments to store_unsigned_integer.
1219 2011-07-20 Tom Tromey <tromey@redhat.com>
1221 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1222 in some declaration-only cases.
1224 2011-07-18 Tom Tromey <tromey@redhat.com>
1227 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1228 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1229 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1230 <debug_type_section>: New field.
1231 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1232 (load_cu): Use appropriate section.
1233 (create_signatured_type_table_from_index): Add 'section'
1235 (dwarf2_read_index): Only allow a single .debug_types section.
1236 (dw2_get_file_names): Use appropriate section.
1237 (read_type_comp_unit_head): Add 'section' argument.
1238 (create_debug_types_hash_table): Loop over all .debug_types
1240 (init_cu_die_reader): Use appropriate section.
1241 (process_psymtab_comp_unit, load_partial_comp_unit)
1242 (load_full_comp_unit, read_die_and_children, find_partial_die)
1243 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1244 (lookup_signatured_type_at_offset): Add 'section' argument.
1245 (read_signatured_type_at_offset): Add 'sect' argument.
1246 (read_signatured_type): Use appropriate section.
1247 (set_die_type, get_die_type_at_offset): Update.
1248 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1250 (write_psymtabs_to_index): Don't allow index with more than one
1251 .debug_types section.
1253 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1255 Fix crash if referenced CU is aged out.
1256 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1257 xfree of block.data.
1258 (indirect_pieced_value): New variable back_to, use to for xfree of
1260 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1262 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1263 (load_cu): New function from ...
1264 (dw2_do_instantiate_symtab): ... the code here ...
1265 (process_full_comp_unit): ... and here.
1266 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1269 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1271 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1274 2011-07-19 Gary Benson <gbenson@redhat.com>
1276 * infrun.c (struct execution_control_state): New member
1277 stop_func_filled_in.
1278 (clear_stop_func, fill_in_stop_func): New functions.
1279 (handle_inferior_event): Call clear_stop_func rather than
1280 manipulating the execution control state directly.
1281 Call fill_in_stop_func lazily as required rather than
1282 directly calling find_pc_partial_function in all cases.
1284 2011-07-18 Tom Tromey <tromey@redhat.com>
1286 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1287 checking for variable-sized array.
1289 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1291 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1292 of supported languages.
1293 * varobj.c: Add top definitions and basic implementation of the
1294 following callbacks: ada_number_of_children, ada_name_of_variable,
1295 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1296 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1297 (languages): Register Ada-specific callbacks.
1298 (variable_language): Add the Ada case in the language setter switch.
1300 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1302 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1304 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1307 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1308 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1309 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1310 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1311 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1312 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1313 (struct dwarf_expr_context_funcs): New, move here methods from ...
1314 (struct dwarf_expr_context): ... here. New fields funcs.
1315 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1316 (dwarf_expr_ctx_funcs): New.
1317 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1318 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1319 (needs_frame_ctx_funcs): New.
1320 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1322 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1324 * MAINTAINERS (Write After Approval): Add myself to the list.
1326 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1328 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1329 that CIE pointer of an FDE really points to a CIE .
1331 2011-07-15 Hui Zhu <teawater@gmail.com>
1333 * remote.c (remote_get_trace_status): Add comments.
1335 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1337 Code cleanup - constify struct lval_funcs.
1338 * dwarf2loc.c (pieced_value_funcs): Make it const.
1339 * infrun.c (siginfo_value_funcs): Likewise.
1340 * opencl-lang.c (opencl_value_funcs): Likewise.
1341 * valops.c (value_assign, value_ind): Make the funcs variable const.
1342 * value.c (struct value): Make location.computed.funcs target const.
1343 Rearrange the comments.
1344 (allocate_computed_value): Make the funcs parameter target const.
1345 (value_computed_funcs): Return the funcs target const.
1346 (value_free, value_copy, set_value_component_location): Make the funcs
1348 * value.h (allocate_computed_value): Make the funcs parameter target
1350 (value_computed_funcs): Return the funcs target const.
1351 * windows-tdep.c (tlb_value_funcs): Make it const.
1353 2011-07-14 Hui Zhu <teawater@gmail.com>
1355 * remote.c (remote_get_trace_status): Initialize p.
1357 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1360 * remote.c (remote_get_trace_status): New variable ex. Put
1361 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1363 2011-07-13 Tom Tromey <tromey@redhat.com>
1365 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1366 value_from_contents for final conversion.
1368 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1371 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1372 Indent prototypes so they do not get into tags.
1374 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1376 Code cleanup making also optimized out values lazy.
1377 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1378 allocate_optimized_out_value. Twice.
1379 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1380 * findvar.c (read_var_value): Likewise.
1381 * value.c (allocate_optimized_out_value): New function.
1382 * value.h (allocate_optimized_out_value): New declaration.
1384 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1386 Fix occasional crash of CTRL-C during DWARF read in.
1387 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1389 2011-07-11 Tom Tromey <tromey@redhat.com>
1391 * regcache.c (struct regcache_descr): Fix typo.
1392 * i387-tdep.c (i387_supply_xsave): Fix typo.
1394 2011-07-11 Tom Tromey <tromey@redhat.com>
1396 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1397 (read_file_scope, read_type_unit_scope): Use it.
1399 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1401 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1404 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1407 * python/python.c: Set gdbpy_should_print_stack default to off.
1408 (set_python): Deprecate maint set python print-stack to
1410 (_initialize_python): Deprecate maint set/show python print-stack.
1411 Add new prefix command, python. Add new setting, print-backtrace.
1412 * NEWS: Document set python print-stack. Document default change.
1414 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1416 * python/py-inferior.c (infpy_dealloc): New function.
1417 (inferior_to_inferior_object): Return a new object, or a
1418 new reference to the existing object.
1419 (find_thread_object): Cleanup references to inferior.
1420 (delete_thread_object): Ditto.
1421 * python/py-infthread.c (create_thread_object): Do not increment
1422 inferior reference count.
1424 2011-07-08 Tom Tromey <tromey@redhat.com>
1426 * dwarf2loc.c (locexpr_regname): New function.
1427 (locexpr_describe_location_piece): Use it.
1428 (disassemble_dwarf_expression): Add per_cu argument. Use
1430 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1431 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1433 (locexpr_describe_location_1): Add per_cu argument.
1434 (locexpr_describe_location): Update.
1435 (loclist_describe_location): Update.
1437 2011-07-08 Tom Tromey <tromey@redhat.com>
1439 * dwarf2expr.c (execute_stack_op): Add QUIT.
1441 2011-07-07 Hui Zhu <teawater@gmail.com>
1444 2011-07-06 Hui Zhu <teawater@gmail.com>
1445 * remote.c (remote_start_remote): Add TRY_CATCH for
1446 remote_get_trace_status.
1447 * tracepoint.c (disconnect_tracing): Ditto.
1449 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1451 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1452 variables as signed, not unsigned.
1454 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1456 * jit.c (jit_inferior_init): Reformat forward declaration.
1458 2011-07-06 Matt Rice <ratmice@gmail.com>
1460 * MAINTAINERS (Write After Approval): Add myself to the list.
1462 2011-07-06 Hui Zhu <teawater@gmail.com>
1464 * remote.c (remote_start_remote): Add TRY_CATCH for
1465 remote_get_trace_status.
1466 * tracepoint.c (disconnect_tracing): Ditto.
1468 2011-07-05 Tom Tromey <tromey@redhat.com>
1470 * symtab.c (operator_chars): Now static.
1471 * linespec.c (operator_chars): Don't declare.
1473 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1475 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1477 2011-07-05 Tom Tromey <tromey@redhat.com>
1479 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1480 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1481 (TYPE_CPLUS_REALLY_JAVA): New macro.
1482 * dwarf2read.c (process_structure_scope): Set
1483 TYPE_CPLUS_REALLY_JAVA.
1485 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1487 * ada-lang.c: Fix typos.
1488 * amd64-tdep.c: Likewise.
1489 * breakpoint.c: Likewise.
1490 * cli/cli-decode.c: Likewise.
1491 * findcmd.c: Likewise.
1492 * inline-frame.c: Likewise.
1493 * mi/mi-main.c: Likewise.
1494 * minsyms.c: Likewise.
1495 * monitor.c: Likewise.
1496 * monitor.h: Likewise.
1497 * prologue-value.c: Likewise.
1498 * reverse.c: Likewise.
1499 * s390-tdep.c: Likewise.
1501 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1503 * jit.c (jit_inferior_init): Forward declare.
1504 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1506 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1508 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1510 2011-07-04 Tristan Gingold <gingold@adacore.com>
1512 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1513 (tcb_fieldno): Add activation_link field.
1514 (get_known_tasks_addr): Moved and rewritten.
1515 (get_tcb_types_info): Set activation_link field.
1516 (read_known_tasks_array): Add parameter. Rewritten.
1517 (read_known_tasks_list): New function.
1518 (read_known_tasks): New function.
1519 (ada_build_task_list): Call read_known_tasks instead of
1520 read_known_tasks_array.
1521 * ravenscar-thread.c: Add first_task_name constant.
1522 (has_ravenscar_runtime): Check for task list too.
1524 2011-07-04 Tristan Gingold <gingold@adacore.com>
1526 * ada-tasks.c: Renames fieldno to actb_fieldno.
1527 (ada_get_task_number): Indentation.
1528 (get_tcb_types_info): Remove all parameters. Write directly
1530 (ptid_from_atcb_common): Adjust.
1531 (read_atcb): Adjust.
1533 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1535 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1537 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1539 * ui-out.c (ui_out_field_core_addr): Mention that the function
1540 description is in the header file.
1541 * ui-out.h (ui_out_field_core_addr): Document function.
1543 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1545 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1546 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1548 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1550 * symtab.c (expand_line_sal): Remove empty line.
1552 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1554 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1555 same way as ELFOSABI_NONE.
1556 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1558 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1560 * breakpoint.c: Fix typos in comments.
1561 * linespec.c: Likewise.
1562 * symtab.c: Likewise.
1564 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1566 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1567 section in separate object files.
1569 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1571 Fix false GCC warning.
1572 * linespec.c (decode_line_1): Initialize values.
1574 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1576 * linespec.c (find_method): Accept the function type automatically only
1577 if it was specified with parameter types.
1579 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1581 Stop on first linespec terminator instead of eating what we can.
1582 * linespec.c (is_linespec_boundary): New function.
1583 (name_end): Remove function.
1584 (keep_name_info): New parameter on_boundary, replace the body.
1585 (decode_line_1): Provide the parameter to keep_name_info.
1586 (decode_compound): Likewise. Drop the trailing java return type
1589 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1591 Fall back linespec to minimal symbols.
1592 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1593 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1594 (find_method, symbol_found): Change error to cplusplus_error.
1596 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1598 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1600 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1601 Tom Tromey <tromey@redhat.com>
1603 * dwarf2read.c (check_physname): New variable.
1604 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1605 (show_check_physname): New function.
1606 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1608 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1610 * machoread.c (macho_symfile_read): Delete OBE comment.
1612 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1614 * machoread.c (struct macho_oso_data): Delete.
1615 (current_oso): Delete.
1616 (macho_relocate_common_syms): New function, mostly extracted
1618 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1619 Remove code that sets and unset current_oso.
1620 (macho_symfile_relocate): Delete handling of common symbols,
1621 now moved to macho_relocate_common_syms.
1623 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1625 * darwin-nat.c (darwin_ptrace): Add documentation.
1626 Set errno to zero before calling ptrace. If ptrace returns
1627 -1 and errno is zero, then change then return zero.
1628 (darwin_kill_inferior): Issue a warning instead of triggering
1629 a failed assertion when the PT_KILL ptrace operations returned
1632 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1634 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1635 only when inf->private->no_ptrace.
1637 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1639 * ada-lang.c (print_it_exception): Print temporary catchpoints
1640 as "Temporary catchpoint".
1641 (print_mention_exception): Likewise.
1643 2011-07-01 Tom Tromey <tromey@redhat.com>
1645 * jv-lang.c (java_language_defn): Use java_printchar,
1647 (java_get_encoding): New function.
1648 (java_emit_char): Use generic_emit_char.
1649 (java_printchar): New function.
1650 (java_printstr): Likewise.
1652 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1654 * ada-typeprint.c (print_record_type): If unable to decode
1655 the name of the parent type, use the encoded name.
1657 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1659 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1660 pointer to constrained packed array type output.
1661 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1662 packed array output.
1664 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1666 * ada-typeprint.c (print_array_type): removed if condition on show
1667 being negative for bounds printing.
1669 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1671 * ada-lang.c (ada_identical_enum_types_p): New function.
1672 (symbols_are_identical_enums): New function.
1673 (remove_extra_symbols): Do nothing if NSYMS < 2.
1674 Use symbols_are_identical_enums.
1676 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1678 * ada-valprint.c (ada_value_print): Handle typedefs.
1680 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1682 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1684 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1686 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1687 (decode_constrained_packed_array): Likewise.
1688 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1690 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1692 * ada-exp.y (convert_char_literal): Handle typedef types.
1694 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1696 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1698 2011-06-30 Tom Tromey <tromey@redhat.com>
1700 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1701 * valops.c (find_overload_match): Call do_cleanups on early exit
1703 * solib.c (solib_find): Call do_cleanups on early exit path.
1705 2011-06-30 Tom Tromey <tromey@redhat.com>
1707 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1708 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1709 return paths. Defer final do_cleanups until last return.
1710 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1713 2011-06-30 Tom Tromey <tromey@redhat.com>
1715 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1717 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1719 * MAINTAINERS (Write After Approval): Add myself to the list.
1721 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1723 Disable epilogue unwinders on recent GCCs.
1724 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1725 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1726 * dwarf2read.c (process_full_comp_unit): Initialize
1727 EPILOGUE_UNWIND_VALID.
1728 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1729 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1730 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1732 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1734 Code cleanup - reformatting.
1735 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1736 (producer_is_gcc_ge_4): ... here, change the return value.
1737 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1740 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1742 Fix non-only rename list for Fortran modules import.
1743 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1744 cp_add_using_directive caller.
1745 (cp_add_using_directive): New parameter excludes, describe it. New
1746 variables ix and param. Compare if also excludes match. Allocate NEW
1747 with variable size, initialize EXCLUDES there.
1748 (cp_lookup_symbol_imports): New variable excludep, test
1749 current->EXCLUDES with it.
1750 * cp-support.h: Include vec.h.
1751 (struct using_direct): New field excludes, describe it.
1752 (DEF_VEC_P (const_char_ptr)): New.
1753 (cp_add_using_directive): New parameter excludes.
1754 * defs.h (const_char_ptr): New typedef.
1755 * dwarf2read.c (read_import_statement): New variables child_die,
1756 excludes and cleanups, read in excludes.
1757 (read_namespace): Adjust the cp_add_using_directive caller.
1759 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1762 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1763 negative comparisons.
1765 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
1767 * mi/mi-main.c (mi_cmd_list_features): Emit
1768 breakpoint-notifications.
1770 2011-06-29 Tom Tromey <tromey@redhat.com>
1773 * valprint.h (generic_emit_char, generic_printstr): Declare.
1774 * valprint.c (wchar_printable, append_string_as_wide)
1775 (print_wchar): Move from c-lang.c.
1776 (generic_emit_char): New function; mostly taken from c_emit_char.
1777 (generic_printstr): New function; mostly taken from c_printstr.
1778 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1779 represented as arrays.
1780 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1782 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1783 identically to TYPE_CODE_INT.
1784 * f-lang.c (f_get_encoding): New function.
1785 (f_emit_char): Use generic_emit_char.
1786 (f_printchar): Replace comment.
1787 (f_printstr): Use generic_printstr.
1788 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1789 "character" types specially.
1790 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1792 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1794 (c_emit_char): Call generic_emit_char.
1795 (c_printstr): Call generic_printstr.
1797 2011-06-29 Gary Benson <gbenson@redhat.com>
1799 * breakpoint.c (bpstat_what): Removed duplicated case.
1801 2011-06-28 Tom Tromey <tromey@redhat.com>
1803 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
1805 2011-06-27 Tom Tromey <tromey@redhat.com>
1807 * valops.c (find_overload_match): Call do_cleanups before early
1809 * top.c (execute_command): Call do_cleanups before early return.
1810 (command_loop): Likewise.
1811 * stack.c (backtrace_command): Make a null cleanup early. Don't
1812 conditionally call do_cleanups.
1813 * python/py-value.c (TRY_CATCH): Move cleanup handling into
1815 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
1816 so cleanups are always run.
1817 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
1818 * findcmd.c (parse_find_args): Call do_cleanups on early return
1820 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
1821 Don't conditionally call do_cleanups.
1822 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
1825 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1827 * MAINTAINERS (Write After Approval): Use default email address.
1829 2011-06-27 Joel Brobecker <brobecker@adacore.com>
1831 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
1833 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1835 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
1836 saved_regs_mask and copied_regs_mask fields.
1837 (sparc_record_save_insn): New prototype.
1838 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
1839 (sparc_record_save_insn): New function.
1840 (sparc_analyze_prologue): Add head comment. Recognize store insns
1841 of call-saved registers. Use OFFSET consistently. Recognize flat
1842 frames and cache their settings.
1843 (sparc32_skip_prologue): Handle flat frames.
1844 (sparc_frame_cache): Add frame_offset to the base address.
1845 (sparc32_frame_cache): Adjust to new frame description.
1846 (sparc32_frame_prev_register): Likewise.
1847 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1848 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1849 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1850 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
1851 frame by calling sparc_record_save_insn.
1852 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1853 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1854 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1856 2011-06-27 Tristan Gingold <gingold@adacore.com>
1858 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
1859 field by map_addr and map_len.
1860 (dwarf2_read_section): Adjust for the new bfd_mmap api.
1861 (munmap_section_buffer): Likewise.
1863 2011-06-24 Tom Tromey <tromey@redhat.com>
1865 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
1866 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1867 * python/python.c (gdbpy_parameter): Make 'arg' const.
1868 (execute_gdb_command): Likewise.
1869 (gdbpy_decode_line): Likewise. Copy it.
1870 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
1871 (gdbpy_write): Make 'arg' const.
1872 * python/py-type.c (typy_lookup_typename): Make 'type_name'
1874 (gdbpy_lookup_type): Likewise.
1875 * python/py-prettyprint.c (print_children): Make 'name' const.
1876 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
1877 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
1879 * python/py-function.c (fnpy_init): Make 'name' const.
1880 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
1881 (gdbpy_string_to_argv): Make 'input' const.
1882 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
1884 * gdbtypes.h (lookup_typename): Update.
1885 * gdbtypes.c (lookup_typename): Make 'name' const.
1886 (lookup_struct): Likewise.
1887 (lookup_union): Likewise.
1888 (lookup_enum): Likewise.
1890 2011-06-24 Tom Tromey <tromey@redhat.com>
1892 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
1893 gdb_thread_db.h. Move all common/ entries to be together.
1894 (TAGS): Don't depend on DEPFILES.
1896 2011-06-23 Yao Qi <yao@codesourcery.com>
1898 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
1899 * remote.c (remote_start_remote): ... here.
1900 * monitor.c (monitor_open): ... here.
1902 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
1904 * gdbtypes.c (append_composite_type_field_aligned): Fix
1905 calculation of bit position based on alignment.
1907 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1909 * breakpoint.c (bpstat_stop_status): Call the check_status
1910 breakpoint_ops method.
1911 (print_one_breakpoint_location): Also print the condition for Ada
1912 exception catchpoints.
1913 (allocate_bp_location): New, factored out from
1914 allocate_bp_location.
1915 (allocate_bp_location): Adjust. Call the owner breakpoint's
1916 allocate_location method, if there is one.
1917 (free_bp_location): Call the locations's dtor method, if there is
1919 (init_raw_breakpoint_without_location): New breakpoint_ops
1921 (set_raw_breakpoint_without_location): Adjust.
1922 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
1923 (set_raw_breakpoint): Adjust.
1924 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1925 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
1926 re_set and check_status methods.
1927 (init_catchpoint): Don't memset, initialize thread, addr_string
1928 and enable_state. Pass the ops down to init_raw_breakpoint.
1929 (install_catchpoint): Rename to ...
1930 (install_breakpoint): ... this, and make extern.
1931 (create_fork_vfork_event_catchpoint): Adjust.
1932 (catch_exec_breakpoint_ops): Install NULL allocate_location,
1933 re_set and check_status methods.
1934 (create_syscall_event_catchpoint): Adjust.
1935 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1936 (masked_watchpoint_breakpoint_ops): Install NULL
1937 allocate_location, re_set and check_status methods.
1938 (catch_exec_command_1): Adjust.
1939 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
1940 re_set and check_status methods.
1941 (create_ada_exception_breakpoint): Rename to ...
1942 (init_ada_exception_breakpoint): ... this. Add a struct
1943 breakpoint parameter, and delete the exp_string, cond_string and
1944 cond parameters. Use init_raw_breakpoint, and don't install or
1945 mention the breakpoint yet. Don't clear breakpoint fields that
1946 init_raw_breakpoint already clears.
1947 (re_set_breakpoint): Delete, split into ...
1948 (breakpoint_re_set_default, prepare_re_set_context): ... these new
1950 (breakpoint_re_set_one): Call the breakpoint's
1951 breakpoint_ops->re_set implementation, if there's one. Adjust.
1952 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
1953 (struct bp_location_ops): New type.
1954 (struct bp_location): New field `ops'.
1955 (struct breakpoint_ops): New `allocate_location', `re_set' and
1956 `check_status' fields. Make `breakpoint_hit''s description match
1958 (init_bp_location): Declare.
1959 (breakpoint_re_set_default): Declare.
1960 (create_ada_exception_breakpoint): Rename to ...
1961 (init_ada_exception_breakpoint): ... this. Add a struct
1962 breakpoint parameter, and delete the exp_string, cond_string and
1964 (install_breakpoint): Declare.
1965 * ada-lang.c: Include exceptions.h.
1966 <Ada exceptions description>: Update.
1967 (struct ada_catchpoint_location): New type.
1968 (ada_catchpoint_location_dtor): New function.
1969 (ada_catchpoint_location_ops): New global.
1970 (ada_catchpoint): New type.
1971 (create_excep_cond_exprs): New function.
1972 (dtor_exception, allocate_location_exception, re_set_exception)
1973 (should_stop_exception, check_status_exception): New functions.
1974 (print_one_exception, print_mention_exception)
1975 (print_recreate_exception): Adjust.
1976 (dtor_catch_exception, allocate_location_catch_exception)
1977 (re_set_catch_exception, check_status_catch_exception): New
1979 (catch_exception_breakpoint_ops): Install them.
1980 (dtor_catch_exception_unhandled)
1981 (allocate_location_catch_exception_unhandled)
1982 (re_set_catch_exception_unhandled)
1983 (check_status_catch_exception_unhandled): New functions.
1984 (catch_exception_unhandled_breakpoint_ops): Install them.
1985 (dtor_catch_assert, allocate_location_catch_assert)
1986 (re_set_catch_assert, check_status_catch_assert): New functions.
1987 (catch_assert_breakpoint_ops): Install them.
1988 (ada_exception_catchpoint_p): Delete.
1989 (catch_ada_exception_command_split)
1990 (ada_exception_catchpoint_cond_string): Rename exp_string
1991 parameter to excep_string. Adjust.
1992 (ada_parse_catchpoint_condition): Delete.
1993 (ada_exception_sal): Rename the exp_string parameter to
1994 excep_string. Delete the cond_string and cond parameters.
1996 (ada_decode_exception_location): Rename the exp_string parameter
1997 to excep_string. Delete the cond_string and cond parameters.
1999 (create_ada_exception_catchpoint): New function.
2000 (catch_ada_exception_command, ada_decode_assert_location)
2001 (catch_assert_command): Adjust.
2002 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2004 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2006 * ada-lang.c: Include arch-utils.h.
2007 (ada_decode_exception_location): Make static.
2008 (catch_ada_exception_command): Moved here from breakpoint.c.
2009 (ada_decode_assert_location): Make static.
2010 (catch_assert_command): Moved here from breakpoint.c.
2011 (_initialize_ada_lang): Install the exception and assert
2012 catchpoint commands here.
2013 * ada-lang.h (ada_decode_exception_location)
2014 (ada_decode_assert_location): Delete declarations.
2015 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2017 (create_ada_exception_breakpoint): Make extern.
2018 (catch_ada_exception_command, catch_assert_command): Moved to
2020 (add_catch_command): Make extern.
2021 (_initilize_breakpoint): Don't install the exception and assert
2022 catchpoint commands here.
2023 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2025 (add_catch_command, create_ada_exception_breakpoint): Declare.
2027 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2029 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2030 the breakpoint to the breakpoint chain here.
2031 (set_raw_breakpoint_without_location): Add the breakpoint to the
2032 breakpoint chain here.
2033 (init_raw_breakpoint): Adjust comments.
2034 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2036 (init_catchpoint): Don't set the catchpoint's breakpoint number
2038 (install_catchpoint): New function.
2039 (create_fork_vfork_event_catchpoint)
2040 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2041 use install_catchpoint.
2043 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2045 * breakpoint.c (create_catchpoint_without_mention)
2046 (create_catchpoint): Delete.
2048 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2050 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2051 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2052 reference to exec_pathname.
2053 (struct exec_catchpoint): New type.
2054 (dtor_catch_exec): New function.
2055 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2056 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2057 (catch_exec_command_1): Adjust to use init_catchpoint.
2058 (delete_breakpoint): Remove reference to exec_pathname.
2060 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2062 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2063 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2064 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2065 reference to syscalls_to_be_caught.
2066 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2068 (struct syscall_catchpoint): New type.
2069 (dtor_catch_syscall): New function.
2070 (insert_catch_syscall, remove_catch_syscall)
2071 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2072 (print_recreate_catch_syscall): Adjust.
2073 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2074 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2075 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2076 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2077 (masked_watchpoint_breakpoint_ops)
2078 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2079 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2080 there is one. Remove references to syscalls_to_be_caught.
2081 (catching_syscall_number): Adjust.
2082 * ada-lang.c (catch_exception_breakpoint_ops)
2083 (catch_exception_unhandled_breakpoint_ops)
2084 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2086 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2088 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2090 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2091 reference to forked_inferior_pid.
2092 (struct fork_catchpoint): New type.
2093 (breakpoint_hit_catch_fork, print_it_catch_fork)
2094 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2095 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2096 (create_fork_vfork_event_catchpoint): Adjust to use
2099 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2101 * breakpoint.c (add_to_breakpoint_chain)
2102 (init_raw_breakpoint_without_location): New functions, factored
2104 (set_raw_breakpoint_without_location): ... this one.
2105 (init_raw_breakpoint): New function, factored out from
2106 set_raw_breakpoint and adjusted to use
2107 init_raw_breakpoint_without_location.
2108 (set_raw_breakpoint): Adjust.
2109 (init_catchpoint): New function, factored out from
2110 create_catchpoint_without_mention and adjusted to use
2111 init_raw_breakpoint.
2112 (create_catchpoint_without_mention): Adjust.
2114 2011-06-22 Tom Tromey <tromey@redhat.com>
2116 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2117 argument of 0 specially.
2119 2011-06-22 Yao Qi <yao@codesourcery.com>
2121 * infrun.c (handle_inferior_event): Remove write-only local variable
2122 `sw_single_step_trap_p'.
2124 2011-06-20 Tom Tromey <tromey@redhat.com>
2126 * symtab.c (lookup_language_this): End loop if block is NULL.
2128 2011-06-17 Tom Tromey <tromey@redhat.com>
2130 * valops.c (value_of_this): Use lookup_language_this.
2131 * symtab.h (lookup_language_this): Declare.
2132 * symtab.c (lookup_language_this): New function.
2133 (lookup_symbol_aux): Use lookup_language_this.
2134 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2136 2011-06-17 Tom Tromey <tromey@redhat.com>
2138 * value.h (value_of_this): Update.
2139 (value_of_local): Remove.
2140 * valops.c (value_of_this): Rename from value_of_local. Change
2142 * p-exp.y (exp): Update.
2143 (variable): Likewise.
2144 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2146 2011-06-17 Tom Tromey <tromey@redhat.com>
2148 * valops.c (value_of_local): Complain if NAME is NULL.
2149 * std-operator.def (OP_OBJC_SELF): Remove.
2150 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2151 * objc-exp.y (name_not_typename): Use OP_THIS.
2152 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2154 <OP_OBJC_SELF>: Remove.
2155 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2157 2011-06-16 Tristan Gingold <gingold@adacore.com>
2159 * python/py-events.h (gdb_py_events): Make it extern.
2160 * python/py-evtregistry.c (gdb_py_events): Declare.
2162 2011-06-16 Hui Zhu <teawater@gmail.com>
2164 * remote.c (remote_trace_set_readonly_regions): Add check for
2165 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2168 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2170 * arm-linux-tdep.c: Include "auxv.h".
2172 (ARM_LINUX_SIZEOF_VFP): Define.
2173 (arm_linux_supply_vfp): New function.
2174 (arm_linux_collect_vfp): Likewise.
2175 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2176 (arm_linux_fpa_regset_sections): New variable.
2177 (arm_linux_vfp_regset_sections): Likewise.
2178 (arm_linux_core_read_description): New function.
2179 (arm_linux_init_abi): Install arm_linux_core_read_description and
2180 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2181 appropriate for the architecture.
2182 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2183 (tdesc_arm_with_m): Declare.
2184 (tdesc_arm_with_iwmmxt): Likewise.
2185 (tdesc_arm_with_vfpv2): Likewise.
2186 (tdesc_arm_with_vfpv3): Likewise.
2187 (tdesc_arm_with_neon): Likewise.
2188 * arm-linux-nat.c: Move features/*.c includes ...
2189 * arm-tdep.c: ... here.
2190 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2191 target description data structures ...
2192 * arm-tdep.c (_initialize_arm_tdep): ... here.
2193 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2194 HWCAP_VFPv3D16): Move definitions ...
2195 * arm-linux-tdep.h: ... here.
2197 2011-06-15 Hui Zhu <teawater@gmail.com>
2199 * remote.c (remote_trace_set_readonly_regions): Add a check for
2202 2011-06-14 Tom Tromey <tromey@redhat.com>
2204 * coffread.c (coffread_objfile): Rename from current_objfile.
2205 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2206 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2208 2011-06-14 Tom Tromey <tromey@redhat.com>
2210 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2211 (class_symtab): Remove.
2212 (jv_dynamics_progspace_key): New global.
2213 (jv_per_objfile_free): Reset program space data. Update assert.
2214 Don't clear globals.
2215 (get_dynamics_objfile): Use and set program space data.
2216 (get_java_class_symtab): Use get_dynamics_objfile.
2217 (add_class_symbol): Likewise.
2218 (java_link_class_type): Likewise.
2219 (java_object_type, jv_clear_object_type, set_java_object_type):
2221 (get_java_object_type): Update. Don't cache result.
2222 (is_object_type): Don't call set_java_object_type.
2223 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2224 initialize jv_dynamics_progspace_key.
2226 2011-06-14 Tom Tromey <tromey@redhat.com>
2228 * symtab.h (current_objfile): Don't declare.
2229 * objfiles.h (current_objfile): Don't declare.
2230 * objfiles.c (current_objfile): Remove.
2231 * mdebugread.c (current_objfile): New file-scope global.
2232 * dbxread.c (current_objfile): New file-scope global.
2233 * coffread.c (current_objfile): New file-scope global.
2235 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2237 * top.h (line): Rename to ...
2238 (saved_command_line): ... this.
2239 (linesize): Rename to ...
2240 (saved_command_line_size): ... this.
2241 * top.c (line): Rename to ...
2242 (saved_command_line): ... this.
2243 (linesize): Rename to ...
2244 (saved_command_line_size): ... this.
2245 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2246 * event-top.c (command_line_handler): Adjust.
2247 * main.c (captured_main): Adjust.
2249 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2251 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2252 get_frame_func instead of get_frame_pc to determine the code
2253 address used to construct the frame ID.
2254 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2255 (i386_epilogue_frame_this_id): Likewise.
2256 (i386_epilogue_frame_prev_register): New function.
2257 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2258 (i386_stack_tramp_frame_sniffer): Fix coding style.
2259 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2260 (i386_gdbarch_init): Fix comments.
2262 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2264 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2265 instruction when walking back through the instruction stream.
2267 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2269 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2270 fullname parameters order.
2272 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2275 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2277 * psymtab.c (map_symbol_filenames_psymtab)
2278 (map_partial_symbol_filenames): Likewise.
2279 * psymtab.h: Include symfile.h.
2280 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2281 * symfile.h (symbol_filename_ftype): New.
2282 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2283 map_symbol_filenames, clarify more the naming in comment.
2285 2011-06-07 Doug Evans <dje@google.com>
2287 * cc-with-index.sh: Fix typos in comment.
2288 Look for ../../gdb, for fullname.exp.
2290 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2291 Pedro Alves <pedro@codesourcery.com>
2293 * cli/cli-cmds.c (shell_escape): Use waitpid.
2294 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2296 2011-06-07 Tristan Gingold <gingold@adacore.com>
2298 * xcoffread.c (dwarf2_xcoff_names): New variable.
2299 (aix_process_linenos): Add a guard.
2300 (xcoff_symfile_finish): Free dwarf2.
2301 (xcoff_initial_scan): Add dwarf2 support.
2303 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2305 * infcall.c (run_inferior_call): Don't mask async. Instead force
2306 a synchronous wait, if the target can async.
2308 * target.h (struct target_ops): Delete to_async_mask.
2309 (target_async_mask): Delete.
2310 * target.c (update_current_target): Delete references to to_async_mask.
2311 * linux-nat.c (linux_nat_async_mask_value): Delete.
2312 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2313 to linux_nat_async_mask_value.
2314 (linux_nat_async_mask): Delete.
2315 (linux_nat_async, linux_nat_close): Remove references to
2316 linux_nat_async_mask_value.
2317 * record.c (record_async_mask_value): Delete.
2318 (record_async): Remove references to record_async_mask_value.
2319 (record_async_mask): Delete.
2320 (record_can_async_p, record_is_async_p): Remove references to
2321 record_async_mask_value.
2322 (init_record_ops, init_record_core_ops): Remove references to
2324 * remote.c (remote_async_mask_value): Delete.
2325 (init_remote_ops): Remove reference to remote_async_mask.
2326 (remote_can_async_p, remote_is_async_p): Remove references to
2327 remote_async_mask_value.
2328 (remote_async): Remove references to remote_async_mask_value.
2329 (remote_async_mask): Delete.
2331 * infrun.c (fetch_inferior_event): Don't claim registers changed
2332 if the current thread is already not executing.
2334 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2336 From Stephen Kitt <steve@sk2.org>
2337 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2338 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2340 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2342 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2343 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2345 2011-06-03 Tom Tromey <tromey@redhat.com>
2347 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2349 * python/py-exitedevent.c (create_exited_event_object): Change
2350 type of 'exit_code'. Optionally add exit_code attribute.
2351 (emit_exited_event): Change type of 'exit_code'.
2352 * python/py-event.h (emit_exited_event): Update.
2353 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2354 * infrun.c (handle_inferior_event): Set exit code fields on
2356 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2358 * inferior.c (exit_inferior_1): Initialize new fields.
2360 2011-06-03 Tom Tromey <tromey@redhat.com>
2362 * dwarf2expr.c (get_signed_type): New function.
2363 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2365 2011-06-02 Keith Seitz <keiths@redhat.com>
2367 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2369 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2371 * top.h (simplified_command_loop): Delete declaration.
2373 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2375 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2376 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2378 2011-06-01 Yao Qi <yao@codesourcery.com>
2380 * objfiles.h (obj_section_addr): Update reference to objfile from
2382 (obj_section_endaddr): Likewise.
2384 2011-06-01 Daniel Jacobowitz <drow@false.org>
2386 * MAINTAINERS: Update my email address and affiliation. Also
2387 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2389 2010-05-31 Keith Seitz <keiths@redhat.com>
2392 * linespec.c (get_search_block): New function.
2393 (find_methods): Add FILE_SYMTATB parameter and use it and
2394 get_search_block to pass an appropriate block to
2395 lookup_symbol_in_namespace.
2396 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2397 Check if *ARGPTR starts with a filename first.
2398 If it does, call locate_first_half again to locate the next
2399 "first half" of the linespec.
2400 Pass FILE_SYMTATB to decode_objc and decode_compound.
2401 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2402 (locate_first_half): Stop on the first colon seen.
2403 (decode_compound): Add FILE_SYMTAB parameter.
2404 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2405 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2406 get_search_block with lookup_symbol.
2407 (find_method): Add FILE_SYMTAB parameter and pass it to
2409 (decode_objc): Use get_search_block.
2411 2010-05-31 Keith Seitz <keiths@redhat.com>
2414 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2415 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2416 and CP_ANONYMOUS_NAMESPACE_LEN.
2417 (cp_is_anonymous): Likewise.
2418 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2419 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2420 * dwarf2read.c (namespace_name): Likewise.
2421 (fixup_partial_die): Likewise.
2422 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2423 seen in the input, keep it.
2425 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2427 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2428 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2429 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2430 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2431 * remote.c (_initialize_remote): Register
2432 async_remote_interrupt_twice directly as
2433 sigint_remote_twice_token event.
2435 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2437 * target.h (enum inferior_event_type): Delete INF_ERROR.
2438 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2440 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2442 * interps.c (interp_set): Don't cancel continuations.
2444 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2446 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2448 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2450 * continuations.h (continuation_ftype): Add `err' parameter.
2451 Document parameters.
2452 (do_all_continuations, do_all_continuations_thread)
2453 (do_all_intermediate_continuations)
2454 (do_all_intermediate_continuations_thread)
2455 (do_all_inferior_continuations): Add `err' parameter.
2456 * continuations.c (do_my_continuations_1, do_my_continuations)
2457 (do_all_inferior_continuations, do_all_continuations_ptid)
2458 (do_all_continuations_thread_callback)
2459 (do_all_continuations_thread, do_all_continuations)
2460 (do_all_intermediate_continuations_thread_callback)
2461 (do_all_intermediate_continuations_thread)
2462 (do_all_intermediate_continuations): Add `err' parameter, and pass
2463 it down all the way to the continuations proper.
2464 * inf-loop.c (inferior_event_handler): If fetching an inferior
2465 event throws an error, don't pop the target, and still call the
2466 continuations, but with `err' set. Adjust all other continuation
2468 * breakpoint.c (until_break_command_continuation): Add `err'
2470 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2471 issue another step if `err' is set.
2472 (struct until_next_continuation_args): New.
2473 (until_next_continuation): Add `err' parameter. Adjust.
2474 (until_next_command): Adjust.
2475 (struct finish_command_continuation_args): Add `thread' field.
2476 (finish_command_continuation): Add `err' parameter. Handle it.
2477 (finish_forward): Adjust.
2478 (attach_command_continuation): Add `err' parameter. Handle it.
2479 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2480 cancel the continuations.
2481 * interps.c (interp_set): Adjust to cancel the continuations.
2482 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2483 continuations rather than discarding.
2484 (free_thread): Don't clear thread inferior resources here.
2485 (delete_thread_1): Do it here instead. And do it before removing
2486 the thread from the threads list. Tag the thread as exited before
2487 clearing thread inferior resources.
2489 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2491 * infcall.c (call_function_by_hand): Rephrase error message.
2493 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2495 * defs.h (struct thread_info, struct inferior): Delete forward
2497 * breakpoint.h (struct thread_info): New forward declaration.
2498 * observer.sh (struct inferior): New forward declaration.
2499 * python/python-internal.h (struct inferior): New forward
2502 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2504 * defs.h (struct continuation, continuation_ftype)
2505 (continuation_free_arg_ftype, add_continuation)
2506 (do_all_continuations, do_all_continuations_thread)
2507 (discard_all_continuations, discard_all_continuations_thread)
2508 (add_intermediate_continuation, do_all_intermediate_continuations)
2509 (do_all_intermediate_continuations_thread)
2510 (discard_all_intermediate_continuations)
2511 (discard_all_intermediate_continuations_thread)
2512 (add_inferior_continuation, do_all_inferior_continuations)
2513 (discard_all_inferior_continuations): Move to ...
2514 * continuations.h: ... this new file.
2515 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2516 infcmd.c, inferior.c, infrun.c, interps.c: Include
2519 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2520 Doug Evans <dje@google.com>
2522 Fix PR 10970, PR 12702.
2523 * linux-nat.c (linux_lwp_is_zombie): New function.
2524 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2525 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2527 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2529 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2531 (add_continuation, add_intermediate_continuation)
2532 (add_inferior_continuation): Use them.
2533 * continuations.c (struct continuation): Use them.
2534 (make_continuation_ftype): Delete.
2535 (make_continuation, add_inferior_continuation, add_continuation)
2536 (add_intermediate_continuation): Use continuation_ftype and
2537 continuation_free_arg_ftype. Rename parameters to shorter names.
2539 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2541 * continuations.c (make_continuation): Make it return void.
2542 (do_my_continuations): Rename to ...
2543 (do_my_continuations_1): ... this. Remove old_chain parameter and
2545 (do_my_continuations): New.
2546 (discard_my_continuations): Rename to ...
2547 (discard_my_continuations_1): ... this. Remove old_chain
2548 parameter and adjust.
2549 (discard_my_continuations): New.
2550 (add_inferior_continuation): Simplify.
2551 (do_all_inferior_continuations): Reimplement on top
2552 do_my_continuations.
2553 (discard_all_inferior_continuations): Simplify.
2554 (add_continuation): Simplify.
2555 (do_all_continuations_ptid): Simplify.
2556 (discard_all_continuations_thread_callback): Simplify.
2557 (add_intermediate_continuation): Simplify.
2558 (discard_all_intermediate_continuations_thread_callback):
2561 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2563 * utils.c (struct continuation, add_continuation)
2564 (add_inferior_continuation)
2565 (do_all_inferior_continuations, discard_all_inferior_continuations)
2566 (restore_thread_cleanup, do_all_continuations_ptid)
2567 (do_all_continuations_thread_callback)
2568 (do_all_continuations_thread, do_all_continuations)
2569 (discard_all_continuations_thread_callback)
2570 (discard_all_continuations_thread, discard_all_continuations)
2571 (add_intermediate_continuation)
2572 (do_all_intermediate_continuations_thread_callback)
2573 (do_all_intermediate_continuations_thread)
2574 (do_all_intermediate_continuations)
2575 (discard_all_intermediate_continuations_thread_callback)
2576 (discard_all_intermediate_continuations_thread)
2577 (discard_all_intermediate_continuations): Move to ...
2578 * continuations.c: ... this new file, and adjust to no longer
2579 implement continuations on top of cleanups.
2580 * Makefile.in (SFILES): Add continuations.c.
2581 (COMMON_OBS): Add continuations.o.
2583 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2585 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2586 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2587 Internal error on invalid values.
2588 * reverse.c: Don't handle EXEC_ERROR.
2589 * mi/mi-main.c: Don't handle EXEC_ERROR.
2591 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2593 * record.c: Include event-loop.h, inf-loop.h.
2594 (record_beneath_to_async): New global.
2595 (tmp_to_async): New global.
2596 (record_async_inferior_event_token): New global.
2597 (record_open_1): Don't error out if async is enabled.
2598 (record_open): Handle to_async. Create an async event source in
2600 (record_close): Delete the async event source.
2601 (record_resumed): New global.
2602 (record_execution_dir): New global.
2603 (record_resume, record_core_resume): Set them. Register the
2604 target on the event loop.
2605 (record_wait): Rename to ...
2606 (record_wait_1): ... this. Add more debug output. Handle
2607 TARGET_WNOHANG, and the target beneath returning
2608 TARGET_WAITKIND_IGNORE.
2609 (record_wait): Reimplement on top of record_wait_1.
2610 (record_async_mask_value): New global.
2611 (record_async, record_async_mask, record_can_async_p)
2612 (record_is_async_p, record_execution_direction): New functions.
2613 (init_record_ops, init_record_core_ops): Install new methods.
2614 * infrun.c (fetch_inferior_event): Temporarily switch the global
2615 execution direction to the direction the target was going.
2616 (execution_direction): Change type to int.
2617 * target.c (default_execution_direction): New function.
2618 (update_current_target): Inherit and de_fault
2619 to_execution_direction.
2620 * target.h (struct target_ops) <to_execution_direction>: New
2622 (target_execution_direction): New macro.
2623 * inferior.h (execution_direction): Change type to int.
2625 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2627 * infcall.c (call_function_by_hand): Don't allow calling functions
2628 in reverse execution mode.
2630 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2632 * infcmd.c (finish_command): Allow async finish in reverse.
2634 2011-05-26 Yao Qi <yao@codesourcery.com>
2636 * gdb_thread_db.h: Delete. Move to ...
2637 * common/gdb_thread_db.h: ... here.
2639 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2641 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2642 function's entry point instead of a manually managed momentary
2643 breakpoint, and only ever issue one proceed call.
2644 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2645 doing a reverse-finish, switch to stepi mode, to do another step.
2646 (insert_step_resume_breakpoint_at_sal): Make public.
2647 (normal_stop): No need to save function value return registers if
2649 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2651 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2653 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2654 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2655 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2657 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2658 step-resume breakpoints.
2659 (print_it_typical): Handle bp_hp_step_resume.
2660 (bpstat_what): Ditto.
2661 (bptype_string): Ditto.
2662 (print_one_breakpoint_location): Ditto.
2663 (allocate_bp_location): Ditto.
2665 (breakpoint_re_set_one): Ditto.
2666 * infrun.c (handle_inferior_event): Adjust. Split
2667 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2668 BPSTAT_WHAT_HP_STEP_RESUME.
2669 (insert_step_resume_breakpoint_at_sal): Rename to ...
2670 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2671 parameter. Handle it.
2672 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2673 insert_step_resume_breakpoint_at_sal_1.
2674 (insert_step_resume_breakpoint_at_frame): Rename to ...
2675 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2676 set a high-priority step-resume breakpoint.
2677 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2678 (insert_step_resume_breakpoint_at_caller): Ditto.
2680 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2682 * breakpoint.c (iterate_over_related_breakpoints): New.
2683 (do_map_delete_breakpoint): New.
2684 (delete_command): Pass do_map_delete_breakpoint to
2685 map_breakpoint_numbers.
2686 (do_disable_breakpoint): New.
2687 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2689 (do_enable_breakpoint): Rename to ...
2690 (enable_breakpoint_disp): ... this.
2691 (enable_breakpoint): Adjust.
2692 (do_enable_breakpoint): New.
2693 (enable_once_breakpoint): Delete.
2694 (do_map_enable_breakpoint): New.
2695 (do_map_enable_once_breakpoint): New.
2696 (enable_once_command, enable_delete_command)
2697 (delete_trace_command): Iterate over the breakpoint's related
2700 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2702 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2703 for ALPHA_ZERO_REGNUM.
2704 (alpha_supply_int_regs): Explicitly supply zero as the value for
2705 ALPHA_ZERO_REGNUM in the register cache.
2706 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2708 2011-05-26 Yao Qi <yao@codesourcery.com>
2710 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2712 2011-05-26 Tristan Gingold <gingold@adacore.com>
2714 * symfile.h (struct dwarf2_section_names): New type.
2715 (struct dwarf2_debug_sections): New type.
2716 (dwarf2_has_info): Add parameter.
2717 * dwarf2read.c (dwarf2_elf_names): New variable.
2718 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2719 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2720 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2721 (dwarf2_has_info): Add names parameter. Pass names
2722 to dwarf2_locate_sections.
2723 (section_is_p): Rewrite using the names parameter.
2724 (dwarf2_locate_sections): Use section names from the names parameter.
2725 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2726 * elfread.c (read_psyms): Ditto.
2727 * machoread.c (macho_symfile_read): Ditto.
2729 2011-05-25 Andreas Schwab <schwab@redhat.com>
2732 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2734 2011-05-24 Keith Seitz <keiths@redhat.com>
2737 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2738 (decode_compound): Unconditionally call keep_name_info.
2740 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2742 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2743 scope, clear its command list.
2744 (map_breakpoint_numbers): Don't walk the related breakpoints list
2747 2011-05-24 Tom Tromey <tromey@redhat.com>
2749 * MAINTAINERS: Move Jim Blandy to past maintainers.
2751 2011-05-24 Tristan Gingold <gingold@adacore.com>
2753 * symfile.h (enum dwarf2_section_enum): New type.
2754 (dwarf2_get_section_info): New prototype.
2755 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2756 section_name by sect. Use a switch to select the info.
2757 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2758 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2760 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2762 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2763 shared library event breakpoint if there's no execution.
2765 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2767 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2768 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2770 2011-05-23 Tom Tromey <tromey@redhat.com>
2772 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2775 2011-05-23 Doug Evans <dje@google.com>
2777 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2778 entry for RuntimeError to doc string.
2780 2011-05-23 Jerome Guitton <guitton@adacore.com>
2782 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2783 sequence for probing loops.
2785 2011-05-23 Pedro Alves <pedro@codesourcery.com>
2787 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2790 2011-05-21 Mark Kettenis <kettenis@gnu.org>
2792 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2793 zero as the value for %g0 in the register cache.
2794 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2795 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2797 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2799 * infrun.c (proceed): Set previous_inferior_ptid here.
2800 (init_wait_for_inferior): Initialize previous_inferior_ptid from
2801 inferior_ptid, not null_ptid.
2802 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
2803 (fetch_inferior_event): Nor here.
2805 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2807 * inf-loop.c (inferior_event_handler): Only output a message if
2810 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
2812 * MAINTAINERS: Update my e-mail address.
2814 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2816 * infrun.c (proceed): Switch the inferior event loop to
2817 INF_EXEC_COMPLETE if the target refused to resume from a
2820 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2822 * infcmd.c: Include "inf-loop.h".
2823 (step_once): When stepping into an inline subroutine, pretend the
2824 target has run. If the target can async, switch the inferior
2825 event loop to INF_EXEC_COMPLETE.
2826 * inferior.h (user_visible_resume_ptid): Declare.
2827 * infrun.c (user_visible_resume_ptid): New function, factored out
2830 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
2831 that the current thread is running. Merge async and sync
2834 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2836 * infcmd.c (step_1): Simplify synchronous case.
2838 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2840 * tracepoint.c: Include exceptions.h.
2841 (TFILE_PID): Move higher in file.
2842 (tfile_open): Delay pushing the tfile target until we're assured
2843 the tfile header is present in the file. Wrap reading the initial
2844 newline-terminated lines in TRY_CATCH. Pop the target if the
2845 initial setup failed. Add the tfile's thread immediately
2846 aftwards, before any non-essential setup. Don't skip
2847 post_create_inferior if there are no traceframes present in the
2849 (tfile_close): Remove redundant check for null before xfree call.
2850 (tfile_thread_alive): New function.
2851 (init_tfile_ops): Register it as to_thread_alive callback.
2853 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2855 * tracepoint.c (tfile_open): Delete #if 0'd code.
2857 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2859 Fix -readnow for -gdwarf-4 unused type units.
2860 * dwarf2read.c (struct signatured_type): Remove the field offset.
2861 (create_signatured_type_table_from_index): Remove its initialization.
2862 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
2863 instead. Add a complaint call.
2864 (process_psymtab_comp_unit): Change assignment to gdb_assert.
2865 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
2866 (lookup_signatured_type_at_offset, read_signatured_type)
2867 (write_one_signatured_type): Update the field for per_cu.
2869 2011-05-19 Tom Tromey <tromey@redhat.com>
2871 * python/py-inferior.c (python_inferior_exit): Use
2873 (python_on_resume): Likewise.
2875 2011-05-19 Matt Rice <ratmice@gmail.com>
2877 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2879 2011-05-19 Hui Zhu <teawater@gmail.com>
2881 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
2883 2011-05-19 Hui Zhu <teawater@gmail.com>
2885 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
2887 2011-05-18 Tom Tromey <tromey@redhat.com>
2889 * dwarf2read.c (dwarf2_add_field): Constify.
2890 * value.c (value_static_field): Constify.
2891 * gdbtypes.h (struct main_type) <field.field_location.physname>:
2893 * ax-gdb.c (gen_static_field): Constify
2895 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2897 * linux-nat.c (kill_callback): Use SIGKILL first.
2899 2011-05-18 Joel Brobecker <brobecker@adacore.com>
2901 * ada-lang.c (print_it_exception): Avoid use of sprintf.
2903 2011-05-18 Tom Tromey <tromey@redhat.com>
2905 * value.c (value_fn_field): Constify.
2906 * symtab.c (gdb_mangle_name): Constify.
2907 * stabsread.c (update_method_name_from_physname): Make 'physname'
2909 * p-typeprint.c (pascal_type_print_method_args): Make arguments
2910 const. Use explicit fputc_filtered loop.
2911 (pascal_type_print_base): Constify.
2912 * p-lang.h (pascal_type_print_method_args): Update.
2913 * linespec.c (add_matching_methods): Constify.
2914 (add_constructors): Likewise.
2915 * jv-typeprint.c (java_type_print_base): Constify.
2916 * gdbtypes.h (struct cplus_struct_type)
2917 <fn_fieldlist.fn_field.physname>: Now const.
2918 * dwarf2read.c (compute_delayed_physnames): Constify.
2919 (dwarf2_add_member_fn): Likewise.
2920 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
2922 2011-05-18 Pedro Alves <pedro@codesourcery.com>
2924 * infrun.c (resume): Mention which is the current thread, and its
2925 current PC in debug output.
2926 (prepare_to_proceed): Mention the thread switching in debug
2929 2011-05-18 Tom Tromey <tromey@redhat.com>
2931 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
2932 path check. Use xmalloc and cleanups.
2933 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
2935 2011-05-17 Tom Tromey <tromey@redhat.com>
2937 * cp-valprint.c (cp_print_value_fields): Catch errors from
2940 2011-05-17 Tom Tromey <tromey@redhat.com>
2942 * dwarf2read.c (dwarf2_get_die_type): Call
2943 get_die_type_at_offset.
2944 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
2945 get_base_type function.
2947 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
2949 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
2952 2011-05-16 Doug Evans <dje@google.com>
2954 * python/py-auto-load.c (source_section_scripts): Mention objfile
2957 2011-05-15 Doug Evans <dje@google.com>
2959 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
2960 (try_thread_db_load_from_pdir): Call it. If unable to find
2961 libthread_db in directory of libpthread, see if we're looking at
2962 the separate-debug-info copy.
2964 * python/py-autoload.c (print_script): Print "Missing" instead of
2965 "No" for missing scripts.
2966 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
2968 2011-05-13 Doug Evans <dje@google.com>
2970 * ui-file.c (stdio_file_write_async_safe): Add comment.
2972 2011-05-14 Hui Zhu <teawater@gmail.com>
2974 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
2976 2011-05-13 Doug Evans <dje@google.com>
2978 Support $pdir and $sdir in libthread-db-search-path.
2979 * NEWS: Mention $sdir,$pdir.
2980 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
2981 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
2982 (try_thread_db_load_from_sdir): New function.
2983 (try_thread_db_load_from_dir): New function.
2984 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
2985 system directories if search of libthread-db-search-path fails,
2986 that is now done via $sdir.
2987 (has_libpthread): New function.
2988 (thread_db_load): Remove search for libthread_db in directory of
2989 libpthread, that is now done via $pdir.
2991 * NEWS: Mention "info auto-load-scripts".
2992 * python/py-auto-load.c (struct auto_load_pspace_info): New member
2993 script_not_found_warning_printed.
2994 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
2995 all callers updated. Initialize script_not_found_warning_printed.
2996 (get_auto_load_pspace_data_for_loading): New function.
2997 (maybe_add_script): New function.
2998 (source_section_scripts): Simplify. Only print one warning regardless
2999 of the number of auto-load scripts not found.
3000 (clear_section_scripts): Clear script_not_found_warning_printed.
3001 (auto_load_objfile_script): Record script in hash table.
3002 (count_matching_scripts): New function.
3003 (maybe_print_script): Renamed from maybe_print_section_script, all
3004 callers updated. Rewrite to use ui_out_*.
3005 (info_auto_load_scripts): Renamed from
3006 maintenance_print_section_scripts, all callers updated.
3007 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3008 renamed as "info auto-load-scripts".
3010 2011-05-13 Tom Tromey <tromey@redhat.com>
3012 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3013 (read_sleb128): Likewise.
3015 2011-05-13 Tom Tromey <tromey@redhat.com>
3017 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3020 2011-05-13 Doug Evans <dje@google.com>
3022 * linux-nat.c (debug_linux_nat_async): Delete.
3023 Replace all references to use debug_linux_nat instead.
3024 (show_debug_linux_nat_async): Delete.
3025 (sigchld_handler): Call ui_file_write_async_safe instead of
3027 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3028 * ui-file.c (struct ui_file): New member to_write_async_safe.
3029 (null_file_write_async_safe): New function.
3030 (ui_file_write_async_safe): New function.
3031 (set_ui_file_write_async_safe): New function.
3032 (ui_file_new): Initialize to_write_async_safe.
3033 (stdio_file_write_async_safe): New function.
3034 (struct stdio_file): New member fd.
3035 (stdio_file_new): Initialize to_write_async_safe, fd.
3036 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3038 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3039 (set_ui_file_write_async_safe): Declare.
3040 (ui_file_write_async_safe): Declare.
3042 2011-05-13 Tom Tromey <tromey@redhat.com>
3044 * utils.c (do_value_free): New function.
3045 (make_cleanup_value_free): Likewise.
3046 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3048 (dwarf2_loc_desc_needs_frame): Call
3049 make_cleanup_value_free_to_mark.
3050 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3051 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3053 (new_dwarf_expr_context): Don't call value_mark.
3054 * dwarf2-frame.c (execute_stack_op): Call
3055 make_cleanup_value_free_to_mark.
3056 * defs.h (make_cleanup_value_free): Declare.
3058 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3060 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3061 prepare_execute_command.
3062 * top.c (prepare_execute_command): Return cleanup.
3063 (execute_command): Use cleanup from prepare_execute_command.
3064 * top.h (prepare_execute_command): Change prototype to return
3066 * defs.h (struct value): Add opaque declaration.
3067 (make_cleanup_value_free_to_mark): Add prototype.
3068 * utils.c (do_value_free_to_mark): New function.
3069 (make_cleanup_value_free_to_mark): Likewise.
3071 2011-05-12 Tom Tromey <tromey@redhat.com>
3073 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3074 cast left-hand-side to unsigned.
3076 2011-05-12 Tom Tromey <tromey@redhat.com>
3079 * value.h (value_from_contents): Declare.
3080 * value.c (value_from_contents): New function.
3081 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3082 (dwarf2_get_die_type): New function.
3083 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3084 (allocate_piece_closure): Acquire reference to values.
3085 (read_pieced_value): Update for value-based expressions.
3086 (write_pieced_value): Likewise.
3087 (free_pieced_value_closure): Call value_free as needed.
3088 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3089 Update for value-based expressions.
3090 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3091 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3092 <get_base_type>: New field.
3093 (struct dwarf_expr_piece) <v.value>: Change type.
3094 <v.regno>: New field.
3095 (struct dwarf_expr_context) <mark>: New field.
3096 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3097 (dwarf_expr_pop, dwarf_expr_push): Remove.
3098 (dwarf_expr_push_address): Declare.
3099 * dwarf2expr.c (dwarf_arch_cookie): New global.
3100 (struct dwarf_gdbarch_types): New.
3101 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3103 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3105 (dwarf_expr_push_address): New function.
3106 (dwarf_expr_pop): Now static.
3107 (dwarf_expr_fetch): Change return type.
3108 (dwarf_require_integral): New function.
3109 (dwarf_expr_fetch): Simplify.
3110 (add_piece): Update.
3111 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3113 (execute_stack_op) <sign_ext>: Remove.
3114 Use values for DWARF stack.
3115 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3116 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3118 (_initialize_dwarf2expr): New function.
3119 (add_piece): Update.
3120 (new_dwarf_expr_context): Set new field.
3121 (free_dwarf_expr_context): Call value_free_to_mark.
3122 * dwarf2-frame.c (no_base_type): New function.
3123 (execute_stack_op): Set get_base_type field. Update.
3125 2011-05-12 Tom Tromey <tromey@redhat.com>
3127 * dwarf2read.c (read_common_block): Fix formatting.
3129 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3131 * breakpoint.c (disable_breakpoint): Disable all locations
3132 associated with a tracepoint on target if a trace experiment is
3134 (disable_command): Disable a specific tracepoint location on target if
3135 a trace experiment is running.
3136 (do_enable_breakpoint): Enable all locations associated with a
3137 tracepoint on target if a trace experiment is running.
3138 (enable_command) Enable a specific tracepoint location on target if a
3139 trace experiment is running.
3140 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3141 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3142 to_disable_tracepoint.
3143 * target.h: Add declaration of struct bp_location.
3144 (struct target_ops): Add new functions
3145 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3146 to_disable_tracepoint to target operations.
3147 (target_supports_enable_disable_tracepoint): New macro.
3148 (target_enable_tracepoint): New macro.
3149 (target_disable_tracepoint): New macro.
3150 * remote.c (struct remote_state): Add new field.
3151 (remote_enable_disable_tracepoint_feature): New.
3152 (remote_protocol_features): Add new entry.
3153 (remote_supports_enable_disable_tracepoint): New.
3154 (remote_enable_tracepoint): New.
3155 (remote_disable_tracepoint): New.
3156 (init_remote_ops): Add remote_enable_tracepoint,
3157 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3158 to remote operations.
3159 * tracepoint.c (start_tracing): Allow tracing to start without any
3160 tracepoints enabled with just a warning if they can be re-enabled
3162 * NEWS: Add news item for the new behaviour of the enable and disable
3163 GDB commands when applied to tracepoints.
3164 Add news items for the new remote packets QTEnable and QTDisable.
3166 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3168 * config.in: Regenerate.
3169 * configure: Regenerate.
3170 * configure.ac <--with-system-readline> (for readline_echoing_p):
3172 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3173 (tui_old_rl_echoing_p): ... here.
3174 (tui_setup_io): Rename extern declaration readline_echoing_p to
3175 _rl_echoing_p. Adjust assignments for the both renames.
3177 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3179 * symtab.c (lookup_symtab): Run cleanup before returning.
3181 2011-05-11 Tom Tromey <tromey@redhat.com>
3183 * dwarf2read.c (handle_data_member_location): New function.
3184 (dwarf2_add_field): Use it.
3185 (read_common_block): Likewise.
3187 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3189 Make addrs->SECTINDEX always defined.
3190 * symfile.c (relative_addr_info_to_section_offsets): Check for
3191 SECTINDEX -1, not for zero ADDR.
3192 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3193 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3194 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3197 2011-05-10 Doug Evans <dje@google.com>
3199 * linux-thread-db.c: Whitespace cleanup.
3200 (try_thread_db_load_1): Fix comment.
3202 * linux-thread-db.c (set_libthread_db_search_path): New function.
3203 (_initialize_thread_db): Add setter for libthread-db-search-path.
3205 2011-05-09 Doug Evans <dje@google.com>
3207 * NEWS: Mention --with-iconv-bin.
3208 * configure.ac: New option --with-iconv-bin.
3209 * configure: Regenerate.
3210 * config.in: Regenerate.
3211 * defs.h (relocate_gdb_directory): Declare.
3212 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3213 removed progname parameter, and exported. All callers updated.
3214 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3216 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3217 adding missing call to restore_child_signals_mask.
3219 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3221 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3223 * infrun.c (proceed, start_remote): Adjust.
3224 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3225 and adjust to not handle it.
3226 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3227 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3228 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3229 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3230 * windows-nat.c (do_initial_windows_stuff): Adjust.
3231 * infcmd.c (attach_command): Adjust.
3232 (notice_new_inferior): Adjust.
3234 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3236 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3237 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3238 * spu-tdep.c (op_selb): Use correct value.
3240 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3242 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3243 "parent" parameter to symbol_file_add_from_bfd call.
3245 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3246 Thiago Jung Bauermann <bauerman@br.ibm.com>
3248 Implement support for PowerPC BookE masked watchpoints.
3249 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3251 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3252 method. Initialize to NULL in all existing breakpoint_ops instances.
3253 (struct breakpoint) <hw_wp_mask>: New field.
3254 * breakpoint.c (is_masked_watchpoint): Add prototype.
3255 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3256 breakpoint's breakpoint_ops.works_in_software_mode if available.
3257 (watchpoints_triggered): Handle the case of a hardware masked
3259 (watchpoint_check): Likewise.
3260 (works_in_software_mode_watchpoint): New function.
3261 (insert_masked_watchpoint, remove_masked_watchpoint)
3262 (resources_needed_masked_watchpoint)
3263 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3264 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3265 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3267 (masked_watchpoint_breakpoint_ops): New structure.
3268 (watch_command_1): Check for the existence of the `mask' parameter.
3269 Set b->ops according to the type of hardware watchpoint being created.
3270 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3271 (ppc_linux_remove_mask_watchpoint)
3272 (ppc_linux_masked_watch_num_registers): New functions.
3273 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3274 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3275 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3276 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3277 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3278 (target_masked_watch_num_registers): New functions.
3279 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3280 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3282 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3283 (target_masked_watch_num_registers): Add prototypes.
3285 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3288 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3289 (producer_is_gcc_ge_4_0): New function.
3290 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3291 symtab->language code.
3292 (var_decode_location): Set cu->has_loclist.
3293 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3294 skip. Intialize force_skip from locations_valid. Move the prologue
3295 skipping code into two passes.
3296 * symtab.h (struct symtab): Make the primary field a bitfield. New
3297 field locations_valid.
3299 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3301 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3302 (classify_inner_name): Call cp_lookup_nested_type with
3304 * cp-namespace.c (cp_lookup_nested_type): New variable
3305 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3306 type_name_no_tag_or_error with saved_parent_type.
3307 * dwarf2read.c (load_partial_dies): Read in any children of
3308 DW_TAG_typedef with complaint in such case.
3309 * gdbtypes.c (type_name_no_tag_or_error): New function.
3310 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3311 * valops.c (destructor_name_p): New comment for parameter type. Remove
3312 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3313 * value.h (destructor_name_p): Remove type const.
3315 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3317 * symtab.c (compare_symbol_name): New function.
3318 (completion_list_add_name, expand_partial_symbol_name): Call it,
3319 remove the variable ncmp.
3320 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3323 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3325 Demote to sw watchpoint only in update_watchpoint.
3326 * breakpoint.c (update_watchpoint): Change between software and
3327 hardware watchpoint for all kinds of watchpoints, not just
3328 read/write ones. Determine b->exact value here instead of
3329 in watch_command_1. Error out if there are not enough resources
3330 for a read or access hardware watchpoint.
3331 (watch_command_1): Remove logic of checking whether there are
3332 enough resources available, since update_watchpoint will do that
3333 work now. Don't set b->exact here. Catch exceptions thrown by
3334 update_watchpoint and delete the watchpoint.
3335 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3336 Use target_exact_watchpoints instead.
3337 (delete_breakpoint): Notify observers only if deleted watchpoint
3338 has a breakpoint number assigned to it.
3340 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3342 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3344 2011-05-05 Jerome Guitton <guitton@adacore.com>
3346 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3348 (i386_stack_tramp_frame_unwind): New static global.
3349 (i386_match_pattern): New function, extracted from i386_match_insn.
3350 (i386_match_insn): Use i386_match_pattern.
3351 (i386_match_insn_block): New function.
3352 (i386_tramp_chain_in_reg_insns)
3353 (i386_tramp_chain_on_stack_insns): New static variables.
3354 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3357 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3359 * configure.host (xscale*): Don't handle target.
3360 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3363 2011-05-04 Yao Qi <yao@codesourcery.com>
3365 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3367 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3370 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3371 | * elfread.c (elf_symtab_read): Stop memory leak.
3373 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3375 * nto-tdep.c (nto_target): Replace deprecated call to
3376 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3378 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3380 Fix false GCC warning.
3381 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3383 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3385 * breakpoint.c (update_watchpoint): Move code to change
3386 the enable state of breakpoint from here ...
3387 (do_enable_breakpoint): ... to here.
3389 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3391 * valprint.c (val_print_array_elements): Fixed poor performance
3392 of printing very large arrays with repeat_count_threshold set
3393 to unlimited. New comment.
3395 2011-04-29 Tom Tromey <tromey@redhat.com>
3397 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3398 (mi_parse): Likewise.
3399 * breakpoint.c (break_range_command): Use sizeof char*, not
3401 (create_breakpoint): Likewise.
3402 (parse_breakpoint_sals): Likewise.
3404 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3406 * linux-nat.c (linux_child_remove_fork_catchpoint)
3407 (linux_child_remove_vfork_catchpoint)
3408 (linux_child_remove_exec_catchpoint): New functions.
3409 (linux_target_install_ops): Install them.
3411 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3415 * varobj.c (install_default_visualizer): Do not install a
3416 visualizer if the varobj is CPLUS_FAKE_CHILD.
3417 (construct_visualizer): Likewise.
3419 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3421 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3422 case insensitive comparison.
3424 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3426 * infrun.c (proceed): Revert previous change.
3427 (resume): Instead, handle the case of signal delivery while stepping
3428 off a breakpoint location here, and only if software single-stepping
3429 is used. Handle nested signals.
3431 2011-04-28 Yao Qi <yao@codesourcery.com>
3433 * arm-tdep.c (copy_unmodified): Rename to ...
3434 (arm_copy_unmodified): .. this. New.
3435 (copy_preload): Move common part to ...
3436 (install_preload): .. this. New.
3437 (arm_copy_preload): New.
3438 (copy_preload_reg): Move common part to ...
3439 (install_preload_reg): ... this. New.
3440 (arm_copy_preload_reg): New.
3441 (copy_b_bl_blx): Move common part to ...
3442 (install_b_bl_blx): .. this. New.
3443 (arm_copy_b_bl_blx): New.
3444 (copy_bx_blx_reg): Move common part to ...
3445 (install_bx_blx_reg): ... this. New.
3446 (arm_copy_bx_blx_reg): New.
3447 (copy_alu_reg): Move common part to ...
3448 (install_alu_reg): ... this. New.
3449 (arm_copy_alu_reg): New.
3450 (copy_alu_shifted_reg): Move common part to ...
3451 (install_alu_shifted_reg): ... this. New.
3452 (copy_ldr_str_ldrb_strb): Move common part to ...
3453 (install_ldr_str_ldrb_strb): ... this. New.
3454 (arm_copy_ldr_str_ldrb_strb): New.
3455 (copy_copro_load_store): Move some common part to ...
3456 (install_copy_copro_load_store): ... this. New.
3457 (arm_copy_copro_load_store): New.
3459 (arm_copy_svc): Renamed from copy_svc.
3460 (copy_undef): Delete.
3461 (arm_copy_undef): Renamed from copy_undef.
3462 (decode_ext_reg_ld_st): Delete.
3463 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3464 (decode_svc_copro): Delete.
3465 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3466 (copy_copro_load_store, copy_alu_imm): update callers.
3467 (copy_extra_ld_st, copy_block_xfer): Likewise.
3468 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3469 (decode_miscellaneous, decode_dp_misc): Likewise.
3470 (decode_ld_st_word_ubyte, decode_media): Likewise.
3471 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3472 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3473 (decode_unconditional, decode_miscellaneous): Likewise.
3474 (decode_media, decode_b_bl_ldmstm): Likewise.
3475 (arm_process_displaced_insn): Likewise..
3476 (decode_misc_memhint_neon): Delete.
3477 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3478 (decode_miscellaneous): Delete.
3479 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3480 (decode_dp_misc): Delete.
3481 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3482 (decode_ld_st_word_ubyte): Delete.
3483 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3484 (decode_media): Delete.
3485 (arm_decode_media): Renamed from decode_media.
3486 (decode_b_bl_ldmstm): Delete.
3487 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3488 (decode_ext_reg_ld_st): Delete.
3489 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3490 (decode_unconditional): Delete.
3491 (arm_decode_unconditional): Renamed from decode_unconditional.
3493 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3495 Case insensitive lookups implementation.
3496 * dwarf2read.c: Include ctype.h.
3497 (struct mapped_index): New field version.
3498 (mapped_index_string_hash): New parameter index_version. New comment
3499 for it. Call tolower appropriately.
3500 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3501 Choose the right index version for mapped_index_string_hash.
3502 (dwarf2_read_index): Support also the index version 5. Initialize the
3503 new struct mapped_index field version.
3504 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3505 (find_slot): Explain the version needs. Pass INT_MAX for the new
3507 (write_psymtabs_to_index): Produce version 5.
3508 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3509 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3510 * psymtab.c (lookup_partial_symbol): Find the
3511 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3513 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3515 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3516 (completion_list_add_name): New variable ncmp, initialize it, use it.
3517 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3518 * utils.c (strcmp_iw): Support case_sensitive_off.
3519 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3520 New function comment part. New variables saved_string1,
3521 saved_string2 and case_pass. Add a proper second pass.
3523 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3525 Replace re_comp/re_exec by regcomp/regexec.
3526 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3527 (search_symbols_name_matches): Use them, use regexec.
3528 (search_symbols): New variable retval_chain, adjust the use of
3529 old_chain against it. Replace re_comp by regcomp. Use the new struct
3530 search_symbols_data fields, use regexec instead of re_exec.
3532 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3534 Format the code for the next patch.
3535 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3536 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3537 New variables c1 and c2.
3539 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3541 * infrun.c (proceed): Do not single-step into signal delivery
3542 when stepping off a breakpoint location.
3543 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3544 (insert_step_resume_breakpoint_at_caller): Likewise.
3545 (insert_step_resume_breakpoint_at_sal): Likewise.
3546 (insert_longjmp_resume_breakpoint): Likewise.
3548 2011-04-27 Yao Qi <yao@codesourcery.com>
3550 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3552 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3554 * procfs.c (procfs_pass_signals): Fix advance declaration.
3556 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3558 * target.h (struct target_ops): Remove to_notice_signals;
3559 add to_pass_signals.
3560 (target_notice_signals): Remove.
3561 (target_pass_signals): Add prototype.
3562 * target.c (update_current_target): Remove to_notice_signals;
3563 mention to_pass_signals.
3564 (target_pass_signals): New function.
3565 (debug_to_notice_signals): Remove.
3566 (setup_target_debug): Do not install debug_to_notice_signals.
3568 * infrun.c (signal_pass): New global.
3569 (resume): Call target_pass_signals.
3570 (handle_inferior_event): Report all signals while stepping over
3571 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3572 are re-inserted when stepping over a signal handler.
3573 (signal_cache_update): New function.
3574 (signal_stop_update): Call it.
3575 (signal_print_update): Likewise.
3576 (signal_pass_update): Likewise.
3577 (handle_command): Call signal_cache_update and target_pass_signals
3578 instead of target_notice_signals.
3579 (_initialize_infrun): Initialize signal_pass.
3581 * linux-nat.c (pass_mask): New global.
3582 (linux_nat_pass_signals): New function.
3583 (linux_nat_create_inferior): Report all signals initially.
3584 (linux_nat_attach): Likewise.
3585 (linux_nat_resume): Use pass_mask to decide whether to directly
3586 handle an inferior signal.
3587 (linux_nat_wait_1): Likewise.
3588 (linux_nat_add_target): Install to_pass_signals callback.
3590 * nto-procfs.c (notice_signals): Remove.
3591 (procfs_resume): Do not call notice_signals.
3592 (procfs_notice_signals): Remove.
3593 (procfs_pass_signals): New function.
3594 (init_procfs_ops): Install to_pass_signals callback instead of
3595 to_notice_signals callback.
3596 (_initialize_procfs): Report all signals initially.
3598 * procfs.c (procfs_notice_signals): Remove.
3599 (procfs_pass_signals): New function.
3600 (procfs_target): Install to_pass_signals callback instead of
3601 to_notice_signals callback.
3602 (register_gdb_signals): Remove.
3603 (procfs_debug_inferior): Report all signals initially.
3604 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3606 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3607 parameters; use them instead of calling signal_..._state routines.
3608 (remote_notice_signals): Remove.
3609 (remote_start_remote): Report all signals initially.
3610 (remote_resume): Do not call remote_pass_signals.
3611 (_initialize_remote): Install to_pass_signals callback instead of
3612 to_notice_signals callback.
3614 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3616 * breakpoint.c (user_settable_breakpoint): Delete.
3617 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3618 (delete_command): Check user_breakpoint_p instead of looking at
3619 the breakpoint's type.
3620 (disable_command): Ditto.
3621 (enable_command): Ditto.
3622 (delete_trace_command): Use user_breakpoint_p instead of looking
3623 at the breakpoint number directly. When checking if there are
3624 user visible tracepoints, in order to know whether to ask the user
3625 for confirmation, check whether the breakpoint is actually a
3628 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3630 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3633 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3635 MI breakpoint notifications.
3637 * annotate.c (breakpoint_changed): Adjust parameter type.
3638 * breakpoint.c (set_breakpoint_condition): Adjust to change
3639 in breakpoint_modified type.
3640 (breakpoint_set_commands): Likewise.
3641 (do_map_commands_command): Likewise.
3642 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3643 changed after bumping hit count.
3644 (bpstat_stop_status): Likewise.
3645 (print_one_breakpoint_location): Don't wrap in tuple here.
3646 (print_one_breakpoint): Always print individual locations.
3647 For locations, use unnamed tuple.
3648 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3650 (create_catchpoint, create_syscall_event_catchpoint): Call
3651 breakpoint_created obsever.
3652 (mention): Don't call breakpoint_created observer.
3653 (create_breakpoint_sal): Call breakpoint_created observer.
3654 (create_breakpoint, watch_command_1): Likewise.
3655 (create_ada_exception_breakpoint): Likewise.
3656 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3657 (locations_are_equal): New.
3658 (update_breakpoint_locations): If locations were changed, notify.
3659 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3660 Call breakpoint_modified observer.
3662 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3663 (mi_cmd_break_insert): Don't set observers for modify and delete.
3664 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3665 (mi_breakpoint_created, mi_breakpoint_deleted)
3666 (mi_breakpoint_modified): New.
3667 (mi_interpreter_init): Hook the above.
3668 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3669 while -break-* commands are executing.
3670 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3671 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3673 (mi_ui_out_impl): Hook in mi_redirect.
3674 (mi_field_skip): True to the name, skip the field, don't output
3675 a field with an empty value.
3677 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3678 (gdbpy_breakpoint_deleted): Adjust.
3679 * tui/tui-hooks.c (tui_event_create_breakpoint)
3680 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3682 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3684 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3685 (procfs_remove_hw_watchpoint): Likewise.
3687 2011-04-26 Michael Walle <michael@walle.cc>
3689 * remote.c (remote_start_remote): Ack packet after sending the
3692 2011-04-26 Yao Qi <yao@codesourcery.com>
3694 * linux-nat.c: Move common macros to ...
3695 Include linux-ptrace.h.
3696 * common/linux-ptrace.h: ... here. New.
3698 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3700 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3701 !objfile_has_partial_symbols. New comment.
3702 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3703 SYM_READ_PSYMBOLS is not present. Extend the comment.
3704 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3706 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3708 * defs.h (ENUM_BITFIELD): Remove.
3710 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3711 Eli Zaretskii <eliz@gnu.org>
3713 * NEWS: Document the new gdbserver --once option.
3715 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3717 * MAINTAINERS: Update my email address.
3719 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3721 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3722 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3723 function call if __STDC_ISO_10646__ macro is defined.
3724 (intermediate_encoding): New prototype.
3725 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3726 to generate compile time error for unsupported gdb_wchar_t size.
3727 (ENDIAN_SUFFIX): New macro.
3728 (intermediate_encoding): New function.
3730 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3732 * ada-lang.c (struct add_partial_datum): Update the comment for
3733 expand_partial_symbol_name.
3734 (ada_add_partial_symbol_completions): Rename to ...
3735 (ada_expand_partial_symbol_name): ... here, change return type, update
3736 function comment, call symbol_completion_match instead of
3737 symbol_completion_add.
3738 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3739 and ada_expand_partial_symbol_name.
3740 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3742 (dw2_map_symbol_names): Remove.
3743 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3744 * psymtab.c (map_symbol_names_psymtab): Remove.
3745 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3746 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3748 (psym_functions): Unlist map_symbol_names_psymtab.
3749 (map_partial_symbol_names): Rename to ...
3750 (expand_partial_symbol_names): ... here, change the FUN type, call
3751 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3752 * psymtab.h (map_partial_symbol_names): Rename to ...
3753 (expand_partial_symbol_names): ... here, change the FUN type.
3754 * symfile.h (struct quick_symbol_functions): Update the description of
3755 expand_symtabs_matching. Remove map_symbol_names.
3756 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3757 (struct add_name_data): Update the comment for
3758 expand_partial_symbol_name.
3759 (add_partial_symbol_name): Rename to ...
3760 (expand_partial_symbol_name): ... here. Replace
3761 completion_list_add_name call by strncmp.
3762 (default_make_symbol_completion_list_break_on): Use now
3763 expand_partial_symbol_names and expand_partial_symbol_name.
3764 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3766 2011-04-20 Tom Tromey <tromey@redhat.com>
3768 * dwarf2read.c (save_gdb_index_command): Replace format
3769 documentation with a pointer to the manual.
3771 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3773 * regcache.c: Include remote.h.
3774 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3775 (regcache_dump): Handle regcache_dump_remote.
3776 (maintenance_print_remote_registers): New function.
3777 (_initialize_regcache): Install "maint print remote-registers"
3779 * remote.c (map_regcache_remote_table): New function, factored out
3781 (init_remote_state): ... here.
3782 (remote_register_number_and_offset): New.
3783 * remote.h (remote_register_number_and_offset): Declare.
3785 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3787 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3788 null_ptid, assume and allow a NULL address space, instead of
3789 asking the target for the ptid's address space.
3790 * infrun.c (ptid_is_pid): Remove assertion.
3792 2011-04-19 Tom Tromey <tromey@redhat.com>
3794 * windows-tdep.c (windows_xfer_shared_library):
3795 * windows-nat.c (get_module_name, windows_make_so):
3796 * v850-tdep.c (v850_handle_pushm):
3797 * utils.c (null_cleanup, gdb_realpath):
3798 * ui-out.c (get_next_header):
3799 * tracepoint.c (clear_traceframe_info):
3800 * symtab.c (lookup_symtab):
3801 * serial.h (struct serial_ops):
3802 * mipsread.c (read_alphacoff_dynamic_symtab):
3803 * infcmd.c (print_return_value):
3804 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
3805 * f-exp.y (parse_number):
3806 * exceptions.c (catch_exceptions):
3807 * dummy-frame.c (dummy_frame_this_id):
3808 * defs.h (struct cleanup):
3809 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
3810 * arm-tdep.c (arm_push_dummy_call):
3811 * amd64-tdep.h (amd64_collect_xsave):
3812 * amd64-tdep.c (amd64_collect_xsave):
3813 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
3814 * README (typing): Remove duplicate words.
3815 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
3816 * infrun.c (siginfo_value_read): Fix typo.
3817 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
3818 * top.c (source_line_number): Add comma.
3820 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
3822 * thread.c (any_live_thread_of_process): Prioritize threads
3823 that are not executing.
3824 * gdbthread.h (any_live_thread_of_process): Update comment
3825 as per above change.
3827 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
3829 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
3830 (scan_xcoff_symtab): Likewise.
3832 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3834 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
3837 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3838 Pedro Alves <pedro@codesourcery.com>
3840 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
3841 variables to simplify code and avoid == operator at end of
3842 line as this is against GNU coding standards.
3844 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3846 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
3847 lm_name to name_lm to avoid conflict with lm_name function.
3849 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3851 ARI fixes: Use only lowercase function name for static functions.
3852 * nto-tdep.c (LM_ADDR): Rename to...
3853 (lm_addr): New function name.
3854 (nto_relocate_section_addresses): Adapt to change above.
3855 * solib-sunos.c (LM_ADDR): Rename to...
3856 (lm_addr): New function name.
3857 (LM_NEXT): Rename to...
3858 (lm_next): New function name.
3859 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
3860 function name changes above.
3861 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
3862 (lm_addr_from_link_map): New function name.
3863 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3864 (has_lm_dynamic_from_link_map): New function name.
3865 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3866 (lm_dynamic_from_link_map): New function name.
3867 (LM_ADDR_CHECK): Rename to...
3868 (lm_addr_check): New function name.
3869 (LM_NEXT): Rename to...
3870 (lm_next): New function name.
3871 (LM_PREV): Rename to...
3872 (lm_prev): New function name.
3873 (LM_NAME): Rename to...
3874 (lm_name): New function name.
3875 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
3876 (ignore_first_link_map_entry): New function name.
3877 (svr4_keep_data_in_core): Adapt to function name changes above.
3878 (svr4_current_sos): Likewise.
3879 (enable_break): Likewise.
3880 (svr4_relocate_section_addresses): Likewise.
3882 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3885 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
3886 sprintf. Simplify code and avoid loosing memory.
3887 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
3888 (call0_frame_cache): Remove && operator from end of line.
3890 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3892 Fix libraries displacement if they change whether they were prelinked.
3893 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
3894 does not match. Comment why.
3896 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3898 * corelow.c: Include wrapper.h.
3899 (core_open): Call now gdb_target_find_new_threads.
3900 * wrapper.c: Include target.h.
3901 (gdb_target_find_new_threads): New.
3902 * wrapper.h (gdb_target_find_new_threads): New declaration.
3904 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3906 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
3907 even if !TARGET_HAS_EXECUTION.
3909 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3911 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
3912 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
3913 bfd_get_synthetic_symtab.
3914 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
3915 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
3916 parameter parent, remove the call to add_separate_debug_objfile.
3917 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
3918 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3919 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
3920 parent, new comment for it, call add_separate_debug_objfile for it.
3921 (symbol_file_add_separate): Pass objfile as the parameter parent,
3922 remove the call to add_separate_debug_objfile.
3923 (symbol_file_add_from_bfd): New parameter parent, pass it.
3924 (symbol_file_add): Pass NULL to the new parameter parent.
3925 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
3927 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3929 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
3932 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3934 Fix Python access to inlined frames.
3935 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
3936 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
3938 2011-04-15 Tom Tromey <tromey@redhat.com>
3940 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
3942 2011-04-15 Gary Benson <gbenson@redhat.com>
3944 * MAINTAINERS: Add myself to write-after-approval section.
3946 2011-04-14 Mike Frysinger <vapier@gentoo.org>
3948 * remote-sim.c (sim_command_completer): New function.
3949 (_initialize_remote_sim): Set completer to sim_command_completer.
3951 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3953 * breakpoint.c (print_exception_catchpoint): Rename to ...
3954 (print_it_exception_catchpoint): ... this.
3955 (gnu_v3_exception_catchpoint_ops): Update with new name
3956 for print_it_exception_catchpoint.
3958 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
3960 * MAINTAINERS: Add myself for write after approval privileges.
3962 2011-04-13 Marek Polacek <mpolacek@redhat.com>
3964 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3966 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3968 * breakpoint.c (watch_command_1): Remove colon from exp_string.
3970 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3972 * breakpoint.c (save_breakpoints): Verify whether
3973 breakpoint_ops.print_recreate is defined before calling it.
3975 2011-04-11 Gary Benson <gbenson@redhat.com>
3977 Fix failure with --enable-maintainer-mode.
3978 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
3980 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3983 * symtab.c (search_symbols): Reorder the KIND description in the
3984 function comment. Remove the unused 4th element of types, types2,
3985 types3 and types4. New gdb_assert on KIND.
3986 (symtab_symbol_info): Remove the unused 4th element of classnames.
3987 New gdb_assert on KIND.
3988 * symtab.h (enum search_domain): New warning in the enum comment.
3989 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
3992 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3994 Fix crash of gdb save-index on a STABS file.
3995 * dwarf2read.c (write_psymtabs_to_index): Return also on no
3998 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4000 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4001 * dwarf2read.c: Include ctype.h.
4002 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4004 (dwarf2_add_field): Fix new_field->accessibility by calling
4005 dwarf2_default_access_attribute. Restructure setting accessibility
4007 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4008 is_private and is_protected by calling
4009 dwarf2_default_access_attribute.
4011 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4013 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4014 to the initialization.
4016 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4018 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4021 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4023 Remove support for old Cygwin 1.5 versions.
4024 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4025 function on old Cygwin version.
4026 * windows-nat.c: Remove cygwin version check and always define
4027 __USEWIDE for Cygwin compilation.
4029 2011-04-07 Yao Qi <yao@codesourcery.com>
4031 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4033 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4034 (arm_copy_svc): Remove parameters INSN and TO.
4035 (decode_svc_copro): Update caller.
4036 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4037 from function pointer `copy_svc_os'.
4039 2011-04-07 Yao Qi <yao@codesourcery.com>
4041 * arm-tdep.c (cleanup_branch): Set a correct return address in
4042 LR for ARM and Thumb.
4044 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4047 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4048 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4049 in the function comment, a new note on values compatibility.
4050 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4051 * symtab.h (SYMBOL_HASH_NEXT): New.
4053 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4055 * ppc-linux-nat.c (check_condition): Add len output parameter.
4056 Set it based on the memory region referenced in the condition
4057 expression. Update all callers.
4059 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4061 Fix crash regression on systems featuring .gdb_index.
4062 * objfiles.c (free_objfile): Move the
4063 forget_cached_source_info_for_objfile call earlier. Comment it.
4064 Extend the comment for objfile_free_data.
4066 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4068 Fix regression of displaying the debug format.
4069 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4072 2011-04-04 Tom Tromey <tromey@redhat.com>
4074 * cli/cli-interp.c (struct captured_execute_command_args):
4076 (do_captured_execute_command): Remove.
4077 (safe_execute_command): Use TRY_CATCH.
4078 * cli/cli-script.c (struct wrapped_read_command_file_args):
4080 (wrapped_read_command_file): Remove.
4081 (script_from_file): Use TRY_CATCH.
4082 * exceptions.c (catch_exception): Remove.
4083 * exceptions.h (catch_exception): Remove.
4084 (deprecated_throw_reason): Update comment.
4085 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4086 argument to 'context'.
4087 (mi_execute_command): Use TRY_CATCH.
4088 * remote.c (struct start_remote_args): Remove.
4089 (remote_start_remote): Update; change arguments.
4090 (remote_open_1): Use TRY_CATCH.
4092 2011-04-04 Tom Tromey <tromey@redhat.com>
4094 * tracepoint.c (scope_info): Update.
4095 * symtab.c (decode_line_spec): Update.
4096 * python/python.c (gdbpy_decode_line): Update.
4097 * linespec.h (decode_line_1): Update.
4098 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4099 (decode_compound, find_method, symtab_from_filename)
4100 (decode_variable): Likewise.
4101 * cli/cli-cmds.c (edit_command): Update.
4102 (list_command): Update.
4103 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4105 (create_breakpoint): Update.
4106 (until_break_command): Update.
4107 (addr_string_to_sals): Update.
4108 (decode_line_spec_1): Update.
4110 2011-04-04 Tom Tromey <tromey@redhat.com>
4112 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4113 (do_captured_parse_breakpoint): Remove.
4114 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4115 Use TRY_CATCH directly.
4117 2011-04-04 Tom Tromey <tromey@redhat.com>
4119 * symtab.h (free_symtab): Remove.
4120 (forget_cached_source_info_for_objfile): Declare.
4121 * symmisc.c (free_symtab): Remove.
4122 * source.c (forget_cached_source_info_for_objfile): New function.
4123 (forget_cached_source_info): Use it.
4124 * objfiles.c (free_objfile): Simplify check before calling
4125 clear_current_source_symtab_and_line. Call
4126 forget_cached_source_info_for_objfile.
4128 2011-04-04 Tom Tromey <tromey@redhat.com>
4130 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4131 (new_symtab): Don't set `free_code' on symtab.
4132 (new_linetable): Properly handle size==0.
4133 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4134 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4136 * jv-lang.c (struct jv_per_objfile_data): New.
4137 (jv_per_objfile_free): Free the data.
4138 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4139 (get_java_class_symtab): Set the `dict' field on the
4140 jv_per_objfile_data.
4141 (free_class_block): Remove.
4142 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4145 2011-04-04 Tom Tromey <tromey@redhat.com>
4147 * symfile.c (reread_symbols): Update.
4148 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4150 * objfiles.c (allocate_objfile): Update.
4151 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4153 * cp-namespace.c (lookup_symbol_file): Don't call
4154 lookup_possible_namespace_symbol.
4155 (initialize_namespace_symtab, get_possible_namespace_block)
4156 (free_namespace_block, cp_check_possible_namespace_symbols)
4157 (check_possible_namespace_symbols_loop)
4158 (check_one_possible_namespace_symbol)
4159 (lookup_possible_namespace_symbol): Remove.
4160 (maintenance_cplus_namespace): Replace with notice.
4161 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4163 2011-04-04 Tom Tromey <tromey@redhat.com>
4165 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4166 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4167 * symmisc.c (free_symtab): Don't free debugformat.
4168 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4169 (record_debugformat, record_producer): Document.
4170 * buildsym.c (end_symtab): Don't save debugformat and producer
4172 (end_symtab): Don't free debugformat and producer fields.
4173 (record_debugformat): Don't call xstrdup.
4174 (record_producer): Likewise.
4176 2011-04-04 Tom Tromey <tromey@redhat.com>
4178 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4179 (source_line_charpos, source_charpos_line): Remove.
4181 2011-04-04 Tom Tromey <tromey@redhat.com>
4183 * symtab.h (domain_enum): Split in two...
4184 (enum search_domain): New.
4185 (search_symbols): Update.
4186 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4187 redundant declarations.
4188 (search_symbols): Change 'kind' argument to search_domain.
4190 (print_symbol_info): Likewise.
4191 (symtab_symbol_info): Likewise.
4192 * symfile.h (struct quick_symbol_functions)
4193 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4194 <expand_symtabs_matching>: Likewise.
4195 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4196 (expand_symtabs_matching_via_partial): Update.
4197 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4198 (dw2_expand_symtabs_for_function): Update.
4199 * block.h: Moved anonymous enum...
4200 * defs.h (enum block_enum): ... here. Now named.
4202 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4204 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4205 * version.in: Bump version to 7.3.50.20110403-cvs.
4207 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4209 * NEWS: Create a new section for the next release branch.
4210 Rename the section of the current branch, now that it has
4213 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4215 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4216 for "fpscr" in target description.
4218 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4220 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4221 initialize it. Delay HASH initialization. Strip the part after open
4222 parenthesis for languages with qualifiers. Call do_cleanups.
4224 2011-04-01 Tom Tromey <tromey@redhat.com>
4226 * utils.c (report_command_stats): Don't print `-' for negative
4229 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4231 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4232 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4235 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4237 * breakpoint.h (bpdisp_text): Add declaration.
4238 * breakpoint.c (bpdisp_text): Make non-static.
4239 * ada-lang.c: #include "mi/mi-common.h".
4240 (print_it_exception): Rewrite to improve GDB/MI output.
4242 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4244 * arm-tdep.h (struct address_space): Add forward declaration.
4246 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4248 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4249 * arm-tdep.c (arm_override_mode): New global.
4250 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4251 execution mode heuristics.
4252 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4253 second single-step breakpoint if needed, using
4254 arm_insert_single_step_breakpoint.
4255 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4256 ARM execution mode, do not call thumb_get_next_pc_raw.
4257 (arm_get_next_pc): Encode execution mode in return value. Call
4258 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4259 (arm_insert_single_step_breakpoint): New function.
4260 (arm_software_single_step): Call it.
4261 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4262 argument to return execution mode of sigreturn target.
4263 (arm_linux_syscall_next_pc): Use it.
4264 (arm_linux_copy_svc): Update call.
4265 (arm_linux_software_single_step): Call
4266 arm_insert_single_step_breakpoint.
4268 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4270 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4273 2011-03-31 Tom Tromey <tromey@redhat.com>
4275 * varobj.c (update_dynamic_varobj_children): Properly handle
4276 errors from iterator.
4278 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4280 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4281 struct linkage name twice.
4283 2011-03-31 Tom Tromey <tromey@redhat.com>
4285 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4286 missing ">" to message.
4288 2011-03-31 Tom Tromey <tromey@redhat.com>
4290 * varobj.c (instantiate_pretty_printer): Remove duplicate
4293 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4295 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4296 if neither saved value nor register available (e.g. signal frame).
4298 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4300 * macroexp.c (expand): Avoid uninitialized variable
4303 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4305 * breakpoint.c (break_range_command): Fix typo in comment.
4307 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4308 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4310 Implement support for PowerPC BookE ranged breakpoints.
4311 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4312 * breakpoint.h (struct bp_target_info) <length>: New member
4314 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4315 instead of struct breakpoint as argument, and also add ASPACE
4316 and BP_ADDR arguments. Update all callers.
4317 (struct breakpoint_ops) <print_one_detail>: New method.
4318 (struct breakpoint) <addr_string_range_end>: New member variable.
4319 * breakpoint.c (breakpoint_location_address_match): Add function
4321 (insert_bp_location): Set bl->target_info.length.
4322 (breakpoint_here_p): Call breakpoint_location_address_match.
4323 (moribund_breakpoint_here_p): Likewise.
4324 (regular_breakpoint_inserted_here_p): Likewise.
4325 (breakpoint_thread_match): Likewise.
4326 (bpstat_stop_status): Likewise.
4327 (bpstat_check_location): Move call to
4328 breakpoint_ops.breakpoint_hit to the top.
4329 (print_one_breakpoint_location): Call
4330 breakpoint_ops.print_one_detail if available.
4331 (breakpoint_address_match_range): New function.
4332 (breakpoint_location_address_match): Likewise.
4333 (breakpoint_locations_match): Compare the length field of the
4335 (hw_breakpoint_used_count): Count resources used by all locations
4336 in a breakpoint, and use breakpoint_ops.resources_needed if
4338 (breakpoint_hit_ranged_breakpoint): New function.
4339 (resources_needed_ranged_breakpoint): Likewise.
4340 (print_it_ranged_breakpoint): Likewise.
4341 (print_one_ranged_breakpoint): Likewise.
4342 (print_one_detail_ranged_breakpoint): Likewise.
4343 (print_mention_ranged_breakpoint): Likewise.
4344 (print_recreate_ranged_breakpoint): Likewise.
4345 (ranged_breakpoint_ops): New structure.
4346 (find_breakpoint_range_end): New function.
4347 (break_range_command): Likewise.
4348 (delete_breakpoint): Free addr_string_range_end.
4349 (update_breakpoint_locations): Add SALS_END argument. Update
4350 all callers. Calculate breakpoint length if a non-zero SALS_END
4351 is given. Call breakpoint_locations_match instead of
4352 breakpoint_address_match.
4353 (reset_breakpoint): Find SaL of the end of the range if B is a
4355 (_initialize_breakpoint): Register break-range command.
4356 * defs.h (print_core_address): Add function prototype.
4357 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4359 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4360 (ppc_linux_remove_hw_breakpoint): Likewise.
4361 (_initialize_ppc_linux_nat): Initialize
4362 to_ranged_break_num_registers.
4363 * target.c (update_current_target): Add comment about
4364 to_ranged_break_num_registers.
4365 (target_ranged_break_num_registers): New function.
4366 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4368 (target_ranged_break_num_registers): Add function prototype.
4369 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4370 * utils.c (print_core_address): ... here.
4372 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4374 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4375 variable compiler warning.
4377 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4379 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4381 (re_set_breakpoint): ... to here ...
4382 (addr_string_to_sals): ... and here.
4384 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4386 * Makefile.in (SFILES): Add missing C sources.
4387 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4388 Add missing headers.
4390 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4392 * .gitignore: New file.
4394 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4396 * NEWS: Mention new cfi device simulation.
4398 2011-03-29 Tom Tromey <tromey@redhat.com>
4400 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4401 otherwise anonymous types.
4402 (dwarf2_name): Likewise.
4403 * valops.c (value_struct_elt_for_reference): Refine artificial
4404 type logic. Call error if j==-1.
4406 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4408 Fix false GCC warning.
4409 * infcall.c (find_function_addr): Initialize funaddr.
4411 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4413 Fix mingw compilation with --enable-targets=all.
4414 * remote-mips.c (gdb_usleep.h): Include header.
4415 (mips_enter_debug): Use gdb_usleep instead of sleep.
4417 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4419 Support resolution of STT_GNU_IFUNC via breakpoints.
4420 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4421 bp_gnu_ifunc_resolver_return.
4422 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4423 the loop. Support bp_gnu_ifunc_resolver and
4424 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4425 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4427 (bptype_string, print_one_breakpoint_location): Support
4428 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4429 (user_settable_breakpoint): Return true also for
4430 bp_gnu_ifunc_resolver.
4431 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4432 bp_gnu_ifunc_resolver_return.
4433 (set_breakpoint_location_function): New parameter explicit_loc,
4434 describe it. Call find_pc_partial_function_gnu_ifunc with new
4435 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4436 EXPLICIT_LOC is not set.
4437 (set_raw_breakpoint): Set EXPLICIT_LOC for
4438 set_breakpoint_location_function.
4439 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4440 set_breakpoint_location_function.
4441 (mention): Support bp_gnu_ifunc_resolver and
4442 bp_gnu_ifunc_resolver_return.
4443 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4444 set_breakpoint_location_function.
4445 (update_breakpoint_locations): Remove static.
4446 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4447 bp_gnu_ifunc_resolver_return.
4448 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4449 bp_gnu_ifunc_resolver_return.
4450 (update_breakpoint_locations): New declaration.
4451 * elfread.c: Include gdbthread.h and regcache.h.
4452 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4454 (elf_gnu_ifunc_fns): Install them.
4455 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4456 (stub_gnu_ifunc_resolver_return_stop): New functions.
4457 (stub_gnu_ifunc_fns): Install them.
4458 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4459 and gnu_ifunc_resolver_return_stop.
4460 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4462 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4464 STT_GNU_IFUNC reader implementation.
4465 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4466 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4467 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4468 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4469 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4470 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4471 (elf_gnu_ifunc_resolve_addr): New.
4472 (elf_symfile_read): Call elf_rel_plt_read.
4473 (elf_gnu_ifunc_fns): New.
4474 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4475 Install elf_gnu_ifunc_fns.
4476 * infcall.c (find_function_return_type): New function.
4477 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4478 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4479 (stub_gnu_ifunc_resolve_name): New functions.
4480 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4481 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4482 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4484 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4486 Code cleanup for later STT_GNU_IFUNC support.
4487 * infcall.c (find_function_addr): Remove variable code, use explicit
4488 dereferences for it. Move VALUE_TYPE initialization later.
4490 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4492 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4493 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4494 (clear_pc_function_cache): Clear it.
4495 (find_pc_partial_function): Rename to ...
4496 (find_pc_partial_function_gnu_ifunc): ... this function. New
4497 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4498 (find_pc_partial_function): New wrapper for this function.
4499 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4501 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4503 GDB internal type support for STT_GNU_IFUNC.
4504 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4505 (elf_symtab_read): Set mst_text_gnu_ifunc for
4506 BSF_GNU_INDIRECT_FUNCTION.
4507 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4508 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4509 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4510 nodebug_got_plt_symbol.
4511 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4512 (TYPE_GNU_IFUNC): New.
4513 (struct main_type): New field flag_gnu_ifunc.
4514 (struct builtin_type): New field builtin_func_func.
4515 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4516 nodebug_got_plt_symbol.
4517 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4518 (in_gnu_ifunc_stub): New.
4519 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4521 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4522 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4523 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4525 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4526 * symtab.c (search_symbols): Likewise.
4527 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4528 and mst_slot_got_plt.
4529 (in_gnu_ifunc_stub): New declaration.
4531 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4533 Support a ring of related breakpoints.
4534 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4535 other functions, add gdb_assert.
4536 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4537 watchpoint_del_at_next_stop.
4538 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4539 (bpstat_stop_status): Handle ring in related_breakpoint.
4540 (set_raw_breakpoint_without_location): Initialize ring in
4542 (delete_breakpoint): Handle ring in related_breakpoint, use
4543 watchpoint_del_at_next_stop.
4544 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4546 2011-03-28 Tom Tromey <tromey@redhat.com>
4549 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4550 with `language_minimal'.
4552 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4554 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4555 instead of checking for STT_ARM_TFUNC symbol type.
4557 2011-03-25 Tom Tromey <tromey@redhat.com>
4559 * linespec.c (symbol_found): Restore line-based result for
4560 non-LOC_LABEL symbols.
4562 2011-03-25 Kai Tietz <ktietz@redhat.com>
4564 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4565 instead of strcmp for comparison.
4566 (tui_source_is_displayed): Likewise.
4567 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4569 2011-03-24 Mark Wielaard <mjw@redhat.com>
4571 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4573 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4574 (find_partial_die_in_comp_unit): Likewise in comment.
4575 (read_attribute_value): Likewise.
4576 (lookup_die_type): Likewise.
4577 (dwarf_form_name): Likewise.
4578 (dump_die_shallow): Likewise.
4579 (follow_die_ref_or_sig): Likewise.
4581 2011-03-24 Tom Tromey <tromey@redhat.com>
4583 PR breakpoints/11816:
4584 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4585 (decode_compound): Update.
4586 (find_function_symbol): New function.
4587 (decode_dollar): Update.
4588 (decode_label): Add 'function_symbol' parameter. Handle
4589 function-relative labels.
4590 (decode_variable): Update.
4591 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4592 not its line. Set `special_display' and canonical name for
4595 2011-03-24 Tom Tromey <tromey@redhat.com>
4597 * linespec.h (struct linespec_result) <special_display>: New
4599 * breakpoint.h (struct breakpoint) <display_canonical>: New
4601 * breakpoint.c (print_breakpoint_location): Respect
4603 (create_breakpoint_sal): Add 'display_canonical' parameter.
4604 (create_breakpoints_sal): Update.
4605 (create_breakpoint): Update.
4607 2011-03-24 Tom Tromey <tromey@redhat.com>
4609 * symtab.c (decode_line_spec): Update.
4610 * linespec.c (build_canonical_line_spec): Change type of
4612 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4613 (find_method, decode_all_digits, decode_dollar, decode_label)
4614 (symbol_found): Likewise.
4615 (init_linespec_result): New function.
4616 * breakpoint.c (struct captured_parse_breakpoint_args)
4617 <canonical_p>: New field, replaces addr_string_p.
4618 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4620 (parse_breakpoint_sals): Likewise.
4621 (do_captured_parse_breakpoint): Update.
4622 (create_breakpoint): Use struct linespec_result.
4623 (until_break_command): Update.
4624 (breakpoint_re_set_one): Update.
4625 (decode_line_spec_1): Update.
4626 * linespec.h (struct linespec_result): New.
4627 (init_linespec_result): Declare.
4629 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4631 * regcache.c (regcache_raw_read): If the target didn't supply a
4632 given raw register, mark it as unavailable.
4634 2011-03-23 Kai Tietz <ktietz@redhat.com>
4636 * breakpoint.c (clear_command): Use filename_cmp
4637 instead of strcmp for comparison.
4638 * buildsym.c (watch_main_source_file_lossage): Likewise.
4639 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4640 checking just for slash.
4641 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4642 strrchr and filename_cmp instead of strcmp for filenames.
4643 (add_old_header_file): Use filename_cmp
4644 instead of strcmp for comparison.
4645 * exec.c (exec_set_section_address): Likewise.
4646 * macrotab.c (macro_lookup_inclusion): Likewise.
4647 (macro_lookup_inclusion): Likewise.
4648 * elfread.c (_initialize_elfread): Likewise.
4649 (elfstab_offset_sections): Likewise.
4650 (elfstab_offset_sections): Use lbasename instead of
4652 * mdebugread.c (parse_partial_symbols): Likewise.
4653 (arse_partial_symbols): Use filename_(n)cmp instead of
4654 str(n)cmp for comparison.
4655 * minsyms.c (lookup_minimal_symbol): Likewise.
4656 * psymtab.c (read_psymtabs_with_filename): Likewise.
4657 * solib.c (solib_read_symbols): Likewise.
4658 (reload_shared_libraries_1): Likewise.
4659 * symmisc.c (maintenance_print_symbols): Likewise.
4660 * symfile.c (separate_debug_file_exists): Likewise.
4661 (reread_symbols): Likewise.
4662 (find_separate_debug_file_by_debuglink): Likewise.
4663 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4664 * source.c (add_path): Likewise.
4665 * symtab.c (filename_seen): Likewise.
4666 (file_matches): Likewise.
4667 (print_symbol_info): Likewise.
4668 (maybe_add_partial_symtab_filename): Likewise.
4669 (make_source_files_completion_list): Likewise.
4670 * xml-syscall.c (init_sysinfo): Likewise.
4671 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4672 IS_DIR_SEPARATOR for checking for trailing path separator.
4674 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4676 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4677 label abort_expression.
4678 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4679 DWARF_VALUE_OPTIMIZED_OUT.
4681 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4684 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4685 to linkage_name. Invert its value. Update the function comment.
4686 (c_type_print_varspec_suffix): Invert it at the caller.
4687 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4689 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4691 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4692 errors when reading the `stop_pc'.
4693 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4696 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4698 * NEWS: Document gdb.Write stream keyword.
4700 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4703 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4704 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4705 (dwarf2_add_field): Fix new_field->accessibility for
4706 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4708 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4712 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4713 other error classes. Do not print stack trace.
4715 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4717 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4718 (dwarf2_add_field): Fix new_field->accessibility for
4719 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4721 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4723 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4724 encountering a load via a non-SP register.
4726 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4728 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4729 field in returned unwinder.
4731 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4733 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4735 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4737 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4740 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4742 * frame.c (frame_unwind_register): Throw an error if unwinding the
4744 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4745 an unwind stop reason.
4746 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4747 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4748 UNWIND_UNAVAILABLE>: New.
4749 * inline-frame.c (inline_frame_unwind): Install
4750 default_frame_unwind_stop_reason.
4751 * frame-unwind.c: Include "exceptions.h".
4752 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4753 (default_frame_unwind_stop_reason): New.
4754 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4755 (default_frame_unwind_stop_reason): Declare.
4756 (struct frame_unwind) <stop_reason>: New function pointer.
4758 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4759 * dwarf2-frame.c: Include exceptions.h.
4760 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4761 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4762 computing the CFA. If such an error was thrown, set
4763 unavailable_retaddr.
4764 (dwarf2_frame_unwind_stop_reason): New.
4765 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4767 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4768 (dwarf2_signal_frame_unwind): Ditto.
4770 * amd64-tdep.c: Include "exceptions.h".
4771 (struct amd64_frame_cache): New field "base_p".
4772 (amd64_init_frame_cache): Clear it.
4773 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4774 Avoid reading registers with functions that throw if the register
4775 is not necessary to compute the frame base.
4776 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4777 swallowing NOT_AVAILABLE_ERROR.
4778 (amd64_frame_unwind_stop_reason): New.
4779 (amd64_frame_this_id): Don't build a frame id if the frame base
4781 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4782 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4783 base_p if the frame base was computable.
4784 (amd64_sigtramp_frame_unwind_stop_reason): New.
4785 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4786 frame base was unavailable.
4787 (amd64_sigtramp_frame_unwind): Install
4788 amd64_sigtramp_frame_unwind_stop_reason.
4789 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4790 base_p if the frame base was computable.
4791 (amd64_epilogue_frame_unwind_stop_reason): New.
4792 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4793 frame base was unavailable.
4794 (amd64_epilogue_frame_unwind): Install
4795 amd64_epilogue_frame_unwind_stop_reason.
4796 * i386-tdep.c: Include "exceptions.h".
4797 (struct i386_frame_cache): New field "base_p".
4798 (i386_init_frame_cache): Clear it.
4799 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
4800 Avoid reading registers with functions that throw if the register
4801 is not necessary to compute the frame base.
4802 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4803 swallowing NOT_AVAILABLE_ERROR.
4804 (i386_frame_unwind_stop_reason): New.
4805 (i386_frame_this_id): Don't build a frame id if the frame base was
4807 (i386_frame_prev_register): Handle unavailable SP.
4808 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
4809 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4810 base_p if the frame base was computable.
4811 (i386_epilogue_frame_unwind_stop_reason): New.
4812 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
4813 base was unavailable.
4814 (i386_epilogue_frame_unwind): Install
4815 i386_epilogue_frame_unwind_stop_reason.
4816 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4817 base_p if the frame base was computable.
4818 (i386_sigtramp_frame_unwind_stop_reason): New.
4819 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
4820 base was unavailable.
4821 (i386_sigtramp_frame_unwind): Install
4822 i386_sigtramp_frame_unwind_stop_reason.
4823 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
4824 type's size, not the register's.
4825 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
4827 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
4828 default_frame_unwind_stop_reason.
4829 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
4830 (alpha_heuristic_frame_unwind): Ditto.
4831 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
4832 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
4833 * avr-tdep.c (avr_frame_unwind): Ditto.
4834 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
4836 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
4837 * frv-tdep.c (frv_frame_unwind): Ditto.
4838 * h8300-tdep.c (h8300_frame_unwind): Ditto.
4839 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
4840 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
4841 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
4842 (hppa_stub_frame_unwind): Ditto.
4843 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
4844 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
4845 (ia64_libunwind_frame_unwind)
4846 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
4847 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
4848 * lm32-tdep.c (lm32_frame_unwind): Ditto.
4849 * m32c-tdep.c (m32c_unwind): Ditto.
4850 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
4851 * m32r-tdep.c (m32r_frame_unwind): Ditto.
4852 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
4853 * m68k-tdep.c (m68k_frame_unwind): Ditto.
4854 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
4855 * m88k-tdep.c (m88k_frame_unwind): Ditto.
4856 * mep-tdep.c (mep_frame_unwind): Ditto.
4857 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
4858 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
4859 (mips_stub_frame_unwind): Ditto.
4860 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
4861 * moxie-tdep.c (moxie_frame_unwind): Ditto.
4862 * mt-tdep.c (mt_frame_unwind): Ditto.
4863 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
4864 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
4865 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
4866 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
4867 (s390_sigtramp_frame_unwind): Ditto.
4868 * score-tdep.c (score_prologue_unwind): Ditto.
4869 * sh-tdep.c (sh_frame_unwind): Ditto.
4870 * sh64-tdep.c (sh64_frame_unwind): Ditto.
4871 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
4872 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
4873 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
4874 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
4875 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
4876 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
4877 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
4878 (sparc64obsd_trapframe_unwind): Ditto.
4879 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
4880 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
4881 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
4882 * v850-tdep.c (v850_frame_unwind): Ditto.
4883 * vax-tdep.c (vax_frame_unwind): Ditto.
4884 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
4885 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
4886 * xtensa-tdep.c (xtensa_unwind): Ditto.
4888 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4890 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
4891 there's always a frame. Use get_frame_pc_if_available instead of
4892 get_frame_pc, and if there's no PC available, don't look up a
4895 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4897 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
4900 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4902 * tracepoint.c (set_traceframe_context): Handle unavailable PC
4905 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4907 * frame.h (frame_unwind_caller_pc_if_available): Declare.
4908 * frame.c (frame_unwind_caller_pc_if_available): New.
4909 * stack.c (frame_info): Handle unavailable PC.
4911 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4913 * frame.c (frame_unwind_pc): Rename to ...
4914 (frame_unwind_pc_if_available): ... this. New `pc' output
4915 parameter. Change return type to int. Gracefully handle
4916 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
4917 happened, or 1 otherwise.
4918 (frame_unwind_pc): Reimplement on top of
4919 frame_unwind_pc_if_available.
4920 (get_frame_func): Rename to ...
4921 (get_frame_func_if_available): New `pc' output parameter. Change
4922 return type to int. Gracefully handle the PC not being available.
4923 (get_frame_func): Reimplement on top of
4924 get_frame_func_if_available.
4925 (select_frame): Handle the PC being unavailable.
4926 (get_prev_frame): Handle the PC being unavailable.
4927 (get_frame_pc_if_available): New.
4928 (get_frame_address_in_block_if_available): New.
4929 (find_frame_sal): Handle the frame PC not being available.
4930 * frame.h (get_frame_pc_if_available): Declare.
4931 (get_frame_address_in_block_if_available): Declare.
4932 (get_frame_func_if_available): Declare.
4933 * stack.c (print_frame_info): Handle the PC being unavailable.
4934 (find_frame_funname): Ditto.
4935 (print_frame): Handle the PC being unavailable.
4936 (get_frame_language): Ditto.
4937 * blockframe.c (get_frame_block): Ditto.
4938 * macroscope.c (default_macro_scope): Ditto.
4939 * tui/tui-stack.c (tui_show_frame_info): Ditto.
4941 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4943 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
4944 NOT_AVAILABLE_ERROR when evaluating the location expression.
4946 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4948 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
4949 returning that the register piece is unavailable/optimized out.
4950 (write_pieced_value): Handle get_frame_register_bytes returning
4951 that the register piece is unavailable/optimized out when doing a
4952 read-modify write of a bitfield.
4953 * findvar.c (value_from_register): Handle get_frame_register_bytes
4954 returning that the register piece is unavailable/optimized out.
4955 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
4956 and `unavailablep'. Throw error on bad debug info. Use
4957 frame_register instead of frame_register_read, to fill in the new
4959 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
4961 * valops.c: (value_assign): Adjust, and handle
4962 get_frame_register_bytes failing.
4963 * spu-tdep.c: Include exceptions.h.
4964 (spu_software_single_step): Adjust, and handle
4965 get_frame_register_bytes failing.
4966 (spu_get_longjmp_target): Ditto.
4967 * gdbarch.sh (register_to_value): Change to return int. New
4968 parameters `optimizedp' and `unavailablep'.
4969 * gdbarch.h, gdbarch.c: Regenerate.
4970 * i386-tdep.c (i386_register_to_value): Adjust to new
4971 gdbarch_register_to_value interface.
4972 * i387-tdep.c (i387_register_to_value): Ditto.
4973 * i387-tdep.h (i387_register_to_value): Ditto.
4974 * alpha-tdep.c (alpha_register_to_value): Ditto.
4975 * ia64-tdep.c (ia64_register_to_value): Ditto.
4976 * m68k-tdep.c (m68k_register_to_value): Ditto.
4977 * mips-tdep.c (mips_register_to_value): Ditto.
4978 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
4980 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4982 * findvar.c (value_of_register): Mark the value as unavailable, if
4983 the register is unavailable.
4984 * frame.h (frame_register_unwind): New `unavailablep' parameter.
4985 (frame_register): New `unavailablep' parameter.
4986 (frame_register_read): Update comment.
4987 * frame.c (frame_register_unwind): New `unavailablep' parameter.
4988 Set it if the register is unavailable. If the register is
4989 unavailable, clear the output buffer.
4990 (frame_register): New `unavailablep' parameter. Pass it down.
4991 (frame_unwind_register): Adjust.
4992 (put_frame_register): Adjust.
4993 (frame_register_read): Adjust. Also return false if the register
4995 (frame_register_unwind_location): Adjust.
4996 * sentinel-frame.c (sentinel_frame_prev_register): If the register
4997 is unavailable, mark the value accordingly.
4998 * stack.c (frame_info): Handle unavailable registers.
5000 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5002 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5003 simplify, using regcache_cooked_read.
5005 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5007 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5008 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5009 (regcache_raw_read_unsigned, regcache_raw_read_part)
5010 (regcache_cooked_read, regcache_cooked_read_signed)
5011 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5012 (regcache_cooked_read_ftype): Change return to enum
5014 * regcache.c: Include exceptions.h
5015 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5016 (do_cooked_read): Change return to enum register_status. Always
5017 forward to regcache_cooked_read.
5018 (regcache_raw_read): Change return to enum register_status. If
5019 the register is not REG_VALID, memset the buffer. Return the
5021 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5022 return the register's status.
5023 (regcache_raw_read_unsigned): Ditto.
5024 (regcache_cooked_read): Change return to enum register_status.
5025 Assert that with read-only regcaches, the register's status must
5026 be known. If the regcache is read-only, and the register is not
5027 REG_VALID, memset the buffer. Return the register's status.
5028 (regcache_cooked_read_signed): Change return to enum
5029 register_status. Handle non-REG_VALID registers and return the
5031 (regcache_cooked_read_unsigned): Change return to enum
5032 register_status. Handle non-REG_VALID registers and return the
5034 (regcache_xfer_part, regcache_raw_read_part)
5035 (regcache_cooked_read_part): Change return to enum
5036 register_status. Return the register's status.
5037 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5039 (regcache_dump): Handle unavailable cooked registers.
5040 * frame.c (do_frame_register_read): Adjust interface to match
5041 regcache_cooked_read_ftype.
5042 * gdbarch.sh (pseudo_register_read): Change return to enum
5044 * gdbarch.h, gdbarch.c: Regenerate.
5046 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5048 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5049 register_status. If reading a raw register indicates the raw
5050 register is not valid, return the raw register's status,
5051 otherwise, return REG_VALID.
5052 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5053 register_status. Handle non-REG_VALID raw registers and return
5054 the register's status.
5055 * arm-tdep.c (arm_neon_quad_read)
5056 (arm_pseudo_read): Change return to enum register_status. Handle
5057 non-REG_VALID raw registers and return the register's status.
5058 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5059 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5060 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5061 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5062 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5064 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5065 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5066 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5067 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5068 (m32c_pseudo_register_read): Change return to enum
5069 register_status. Adjust.
5070 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5071 enum register_status. Return the register's status.
5072 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5073 register_status. Return the register's status.
5074 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5075 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5076 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5077 * rs6000-tdep.c (move_ev_register_func): New typedef.
5078 (e500_move_ev_register): Use it. Change return to enum
5079 register_status. Return the register's status.
5080 (do_regcache_raw_read): New function.
5081 (do_regcache_raw_write): New function.
5082 (e500_pseudo_register_read): Change return to enum
5083 register_status. Return the register's status. Use
5084 do_regcache_raw_read.
5085 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5086 (dfp_pseudo_register_read): Change return to enum register_status.
5087 Return the register's status.
5088 (vsx_pseudo_register_read): Ditto.
5089 (efpr_pseudo_register_read): Ditto.
5090 (rs6000_pseudo_register_read): Ditto.
5091 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5092 register_status. Return the register's status.
5093 * sh64-tdep.c (pseudo_register_read_portions): New function.
5094 (sh64_pseudo_register_read): Change return to enum
5095 register_status. Use pseudo_register_read_portions. Return the
5097 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5098 register_status. Return the register's status.
5099 * sh-tdep.c (pseudo_register_read_portions): New function.
5100 (sh_pseudo_register_read): Change return to enum register_status.
5101 Use pseudo_register_read_portions. Return the register's status.
5102 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5103 enum register_status. Return the register's status.
5104 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5105 * spu-tdep.c (spu_pseudo_register_read_spu)
5106 (spu_pseudo_register_read): Ditto.
5107 * xtensa-tdep.c (xtensa_register_read_masked)
5108 (xtensa_pseudo_register_read): Ditto.
5109 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5111 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5113 * python/py-value.c (valpy_getitem): Fix formatting of error function
5116 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5118 ARI fixes: Add missing internationalization markups throughout
5120 * darwin-nat-info.c: Ditto.
5123 * mi/mi-main.c: Ditto.
5125 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5127 ARI fixes: Add missing internationalization markups throughout
5130 * cp-name-parser.y: Ditto.
5133 * objc-exp.y: Ditto.
5136 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5138 ARI fixes: Messages should have no trailing new lines.
5139 * darwin-nat.c (mach_check_error): Remove trailing new line from
5140 warning function call message.
5141 * record.c (bfdcore_read): Idem for error call.
5143 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5145 * common/signals.c (target_signal_from_host): Add _ markup to error
5146 function call message.
5147 (target_signal_to_host): Add _ markup and remove trailing new line
5148 from warning call message.
5149 (target_signal_from_command): Add _ markup to error function call
5152 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5156 * python/python.c (gdbpy_write): Accept a stream argument and
5157 operate to the appropriate stream.
5158 (gdbpy_flush): Likewise.
5159 (_initialize_python): Add stream constants.
5160 (finish_python_initialization): Add GdbOutputErrorFile class.
5162 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5164 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5166 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5168 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5169 to store_signed_integer. Add debug message when relocating CALL
5170 instructions. Fix formatting of debug message.
5171 * i386-tdep.c (i386_relocate_instruction): Ditto.
5173 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5175 * target.h (struct target_ops): Remove to_lookup_symbol field.
5176 (target_lookup_symbol): Delete macro.
5177 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5178 (update_current_target, setup_target_debug): Remove handling
5179 of to_lookup_symbol target_ops field.
5180 * ada-tasks.c (get_known_tasks_addr): Remove use of
5181 target_lookup_symbol.
5182 * coffread.c (coff_symtab_read): Likewise.
5183 * dbxread.c (read_dbx_symtab): Ditto.
5185 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5188 * configure.ac: Add getthrds declaration check.
5189 * configure, config.in: Regenerate.
5190 * aix-thread.c (getthrds): Declare only if not already declared
5191 in procinfo.h. More declaration out of get_signaled_thread to
5194 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5196 * python/py-symtab.c: Populate symtab_object_methods,
5198 (stpy_is_valid): New function.
5199 (salpy_is_valid): Ditto.
5200 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5201 (sympy_is_valid): New function.
5202 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5203 (objfpy_is_valid): New function.
5204 * python/py-inferior.c: Populate inferior_object_methods.
5205 (infpy_is_valid): New function.
5206 * python/py-infthread.c: Populate thread_object_methods.
5207 (thpy_is_valid): New function.
5208 * python/py-block.c: Declare block_object_methods. Populate. Declare
5209 block_iterator_object_methods. Populate.
5210 (blpy_is_valid): New function.
5211 (blpy_iter_is_valid): Ditto.
5213 2011-03-16 Keith Seitz <keiths@redhat.com>
5215 * linespec.c (find_methods): Canonicalize NAME before looking
5217 (name_end): New function.
5218 (keep_name_info): New function.
5219 (decode_line_1): Use keep_name_info.
5220 (decode_compound): Likewise.
5221 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5222 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5225 * linespec.c (locate_first_half): Keep overload information, too.
5226 (decode_compound): Use a string to represent break characters
5228 If P points to a break character, do not increment it.
5229 For C++ and Java, keep overload information and relevant keywords.
5230 If we cannot find a symbol, search the minimal symbols.
5233 * linespec.c (decode_compound): Rename SAVED_ARG to
5235 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5237 Pass a valid block to lookup_symbol.
5238 (lookup_prefix_sym): Likewise.
5239 (find_method): Construct search name based on SYM_CLASS instead
5241 * psymtab.c (lookup_partial_symbol): Add language parameter.
5242 (lookup_symbol_aux_psymtabs): Likewise.
5243 Don't assume that the psymtab we found was the right one. Search
5244 for the desired symbol in the symtab to be certain.
5245 (psymtab_search_name): New function.
5246 (lookup_partial_symbol): Use psymtab_search_name.
5247 Add language parameter.
5248 (read_symtabs_for_function): Add language parameter and pass to
5249 lookup_partial_symbol.
5250 (find_symbol_file_from_partial): Likewise.
5252 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5255 * dwarf2read.c (noop_record_line): New function.
5256 (dwarf_decode_lines): Ignore line tables for GCd functions.
5258 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5260 Fix ARI warnings about new lines at the end of messages, which
5261 are unneeded as there is a new line added at the end of the message
5263 * darwin-nat.c (darwin_stop_inferior): Ditto.
5264 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5265 * dfp.c (decimal_to_number): Ditto.
5266 * exec.c (print_section_info): Ditto.
5267 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5268 * osdata.c (get_osdata): Ditto.
5269 * record.c (bfdcore_write): Ditto.
5270 * remote-mips.c (mips_readchar): Ditto.
5271 * remote.c (read_ptid): Ditto.
5272 * ser-mingw.c (ser_windows_raw): Ditto.
5273 * tracepoint.c (add_local_symbols): Ditto.
5274 * windows-nat.c (fake_create_process): Ditto.
5276 2011-03-16 Tom Tromey <tromey@redhat.com>
5278 * tracepoint.c (stop_tracing): Don't declare.
5279 * event-top.c (after_char_processing_hook): Add `(void)'.
5281 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5283 * NEWS: Add Parameter sub-classing description.
5285 2011-03-16 Kai Tietz <ktietz@redhat.com>
5287 * MAINTAINERS: Update my e-mail address.
5289 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5291 * MAINTAINERS: Add myself for write after approval privileges.
5293 2011-03-15 Michael Snyder <msnyder@vmware.com>
5295 * frame.c (find_frame_sal): Assert sym is not null.
5297 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5299 * objc-lang.c (selectors_info): Check strchr for null result.
5301 * stabsread.c (define_symbol): Guard against bad stabstring input.
5303 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5305 Remove trailing spaces and tabulations from pascal language
5310 p-valprint.c: Ditto.
5312 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5314 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5315 than LOW. Comment it.
5316 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5317 HIGHPC not strictly higher than LOWPC.
5319 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5321 Fix formatting of function declarations returning a pointer in
5323 * varobj.c (varobj_add_child): Ditto.
5324 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5325 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5327 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5329 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5330 for the "generic" vector ABI used with GCC 4.3 and later.
5331 (ppc64_sysv_abi_return_value): Likewise.
5333 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5335 * infcall.c (call_function_by_hand): Function return value is
5336 always a non_lval, even when using struct_return.
5338 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5340 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5341 (map_display_numbers): New.
5342 (do_delete_display): New.
5343 (undisplay_command): Use map_display_numbers.
5344 (do_enable_disable_display): New.
5345 (enable_disable_display_command): New function.
5346 (enable_display): Delete.
5347 (enable_display_command): New.
5348 (disable_display_command): Reimplement.
5349 (_initialize_printcmd): Adjust "enable display" command to use
5350 `enable_display_command' as callback.
5352 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5354 * NEWS: Add Python breakpoint 'stop' operation.
5356 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5358 * NEWS: Delete duplicate entry. Fix typo.
5360 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5362 Fix ARI warning about function names in first column.
5363 Put prototype declaration on same line as return type.
5364 * objc-exp.y: Ditto.
5366 * python/py-stopevent.h: Ditto.
5367 For long function names, split parameters to
5368 allow function name on same line as return type.
5369 * solib-pa64.c: Ditto.
5372 For long function declaration, use single line.
5373 * hppa-tdep.h: Ditto.
5374 * inferior.h: Ditto.
5376 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5378 * python/python.h: Declare gdbpy_should_stop and
5379 gdbpy_breakpoint_has_py_cond.
5380 * python/python.c: Add python.h to includes. Remove python.h from
5381 HAVE_PYTHON definition
5382 (gdbpy_should_stop): New dummy function.
5383 (gdbpy_breakpoint_has_py_cond): New dummy function.
5384 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5385 sub-classing capabilities.
5386 (gdbpy_should_stop): New function.
5387 (gdbpy_breakpoint_has_py_cond): New function.
5388 (local_setattro): New function.
5389 * breakpoint.c (condition_command): Add check for Python 'stop'
5391 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5392 operation function as part of stop/continue tests.
5394 2011-03-14 Tom Tromey <tromey@redhat.com>
5397 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5398 (needs_frame_dwarf_call): Likewise.
5400 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5402 Fix ARI warning about functions without parameters that do not
5404 * breakpoint.c (all_tracepoints): Replace () by (void).
5405 * f-exp.y (match_string_literal): Ditto.
5407 * m2-exp.y (yylex): Ditto.
5408 * mep-tdep.c (current_me_module): Ditto.
5409 (current_options): Ditto.
5410 (current_cop_data_bus_width): Ditto.
5411 (current_cr_names): Ditto.
5412 (current_cr_is_float): Ditto.
5413 (current_ccr_names): Ditto.
5414 * objc-exp.y (yylex): Ditto.
5415 * p-exp.y (yylex): Ditto.
5416 * remote.c (send_interrupt_sequence): Ditto.
5417 * tracepoint.c (current_trace_status): Ditto.
5418 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5419 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5421 2011-03-11 Michael Snyder <msnyder@vmware.com>
5423 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5424 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5425 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5426 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5427 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5429 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5430 (delete_async_event_handler): Ditto.
5432 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5434 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5436 * top.c (set_verbose): Assert showcmd was found.
5438 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5440 * xtensa-tdep.c (warning_once): Correct style issues.
5442 2011-03-11 Yao Qi <yao@codesourcery.com>
5444 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5446 2011-03-11 Andreas Schwab <schwab@redhat.com>
5448 * common/aclocal.m4: Remove.
5450 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5452 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5453 (xtensa_write_register, xtensa_read_register): Likewise.
5454 (xtensa_hextochar): Removed.
5455 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5457 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5459 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5460 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5461 (xtensa_alloc_frame_cache): Add initialization for new fields.
5462 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5463 (warning_once): New function.
5464 (xtensa_insn_kind): New item c0opc_and.
5465 (call0_classify_opcode): Add the case for AND instruction.
5466 (call0_track_op): Change arguments. New local variable litbase.
5467 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5468 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5470 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5471 (call0_analyze_prologue): Update the comments. Change arguments.
5472 Add the variety of updates to handle extended prologues, which now can
5473 conduct dynamic stack adjustments.
5474 (call0_frame_cache): Likewise.
5475 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5476 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5478 2011-03-10 Michael Snyder <msnyder@vmware.com>
5480 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5481 (cmd_qtframe): Ditto.
5482 (cmd_qtbuffer): Ditto.
5483 (cmd_bigqtbuffer): Ditto.
5485 2011-03-10 Tom Tromey <tromey@redhat.com>
5487 * tracepoint.c (trace_actions_command): Update.
5488 * thread.c (thread_apply_command): Update.
5489 * reverse.c (delete_bookmark_command): Update.
5490 (bookmarks_info): Update.
5491 * printcmd.c (undisplay_command): Update.
5492 * memattr.c (mem_enable_command): Update.
5493 (mem_disable_command): Update.
5494 (mem_delete_command): Update.
5495 * inferior.c (detach_inferior_command): Update.
5496 (kill_inferior_command): Update.
5497 (remove_inferior_command): Update.
5498 * cli/cli-utils.h (struct get_number_or_range_state): New.
5499 (init_number_or_range): Declare.
5500 (get_number_or_range): Update.
5501 * cli/cli-utils.c (init_number_or_range): New function.
5502 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5504 (number_is_in_list): Update.
5505 * breakpoint.h (get_tracepoint_by_number): Update.
5506 * breakpoint.c (map_breakpoint_numbers): Update for change to
5507 get_number_or_range.
5508 (find_location_by_number): Use get_number, not
5509 get_number_or_range.
5510 (trace_pass_set_count): New function.
5511 (trace_pass_command): Update for change to get_number_or_range.
5513 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5516 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5518 * python/py-param.c (add_setshow_generic): Add set/show callback
5519 parameters. Register Python object context.
5520 (get_show_value): New function.
5521 (get_set_value): New function.
5522 (call_doc_function): New function.
5523 (get_doc_string): Move behind get_show_value/get_set_value.
5525 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5527 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5529 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5531 * xtensa-tdep.c (xtensa_read_register): Add comment.
5532 (xtensa_write_register): Likewise.
5533 (xtensa_hextochar): Add comment and update to match coding conventions.
5534 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5535 (execute_l32e, execute_s32e, execute_code): Update comments.
5536 (xtensa_exception_handler_t): Update to match coding conventions.
5537 (xtensa_insn_kind): Likewise.
5539 2011-03-09 Michael Snyder <msnyder@vmware.com>
5541 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5543 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5545 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5547 2011-03-09 Tom Tromey <tromey@redhat.com>
5549 * thread.c (restore_selected_frame): Handle frame_level == -1.
5550 (make_cleanup_restore_current_thread): Use
5551 get_selected_frame_if_set.
5552 * frame.h (get_selected_frame_if_set): Declare.
5553 * frame.c (get_selected_frame_if_set): New function.
5555 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5557 * cli/cli-cmds.c (shell_escape): Use lbasename.
5558 * coffread.c (coff_start_symtab): Constify parameter.
5559 (complete_symtab): Constify `name' parameter.
5560 (coff_symtab_read): Constify `filestring' local.
5561 (coff_getfilename): Constify return and `result' local.
5563 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5564 * linux-fork.c (info_checkpoints_command): Use lbasename.
5565 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5566 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5567 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5568 * procfs.c (procfs_make_note_section): Use lbasename.
5569 * tui/tui-io.c (printable_part): Constity return and parameter.
5571 (print_filename): Constify parameters, and local `s'.
5572 (tui_rl_display_match_list): Constify local `temp'.
5574 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5577 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5578 Fix DWARF-3+ DW_AT_accessibility default assumption.
5579 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5580 cu->header.version >= 3.
5582 2011-03-09 Yao Qi <yao@codesourcery.com>
5584 * common/Makefile.in: Remove.
5585 * common/configure: Remove.
5586 * common/configure.ac: Remove.
5588 2011-03-09 Yao Qi <yao@codesourcery.com>
5591 2011-02-11 Yao Qi <yao@codesourcery.com>
5593 * common/Makefile.in: Add copyright header.
5595 2011-02-11 Yao Qi <yao@codesourcery.com>
5597 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5599 * configure.ac: Add common to sub dir.
5600 * configure: Regenerate.
5602 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5604 * xtensa-tdep.c (call0_ret): New function.
5605 (xtensa_skip_prologue): Speed up analysis.
5607 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5609 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5610 while executing MI command -data-list-changed-registers.
5612 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5614 * xtensa-tdep.c (xtensa_read_register): New function.
5615 (xtensa_write_register): New function.
5616 (xtensa_find_register_by_name): New function.
5617 (xtensa_windowed_frame_cache): Update comments in type description.
5618 (xtensa_frame_cache): Likewise.
5619 (xtensa_window_interrupt_insn): New function.
5620 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5621 (xtensa_insn_kind): Add new instructions.
5622 (rwx_special_register): New function.
5623 (call0_classify_opcode): Add new instructions to the analysis.
5624 (a0_saved, a7_saved, a11_saved): New variables.
5625 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5626 (execute_l32e): New function.
5627 (execute_s32e): New function.
5628 (xtensa_exception_handler_t): New type.
5629 (execute_code): New function.
5630 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5631 analysis for Xtensa Window Exception handlers.
5633 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5635 * xtensa-tdep.c (TX_PS): New.
5636 (windowing_enabled): Update to count for Call0 ABI.
5637 (xtensa_hextochar): New.
5638 (xtensa_init_reggroups): Make algorithm generic.
5639 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5641 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5643 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5645 2011-03-08 Michael Snyder <msnyder@vmware.com>
5647 * i386-tdep.c (i386_follow_jump): Check return value of
5649 (i386_analyze_struct_return): Ditto.
5650 (i386_skip_probe): Ditto.
5651 (i386_match_insn): Ditto.
5652 (i386_skip_noop): Ditto.
5653 (i386_analyze_frame_setup): Ditto.
5654 (i386_analyze_register_saves): Ditto.
5655 (i386_skip_prologue): Ditto.
5656 (i386_skip_main_prologue): Ditto.
5658 * target.c (read_whatever_is_readable): Fix memory leak.
5660 * i386-tdep.c (i386_process_record): Document fall through.
5662 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5664 Fix DWARF-3+ DW_AT_accessibility default assumption.
5665 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5666 cu->header.version >= 3.
5668 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5670 * remote.c (remote_check_symbols): Skip if the target has no
5673 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5675 * target.c (read_whatever_is_readable): Reformat comment,
5676 with a minor typo fix. Minor reformatting of the code.
5678 2011-03-08 Yao Qi <yao@codesourcery.com>
5680 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5681 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5682 Use cached result instead of calling displaced_in_arm_mode again.
5683 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5684 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5685 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5686 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5687 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5688 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5689 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5690 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5691 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5692 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5693 (arm_catch_kernel_helper_return): Likewise.
5694 * gdb/arm-tdep.h : Update function declarations.
5696 2011-03-07 Michael Snyder <msnyder@vmware.com>
5698 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5700 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5702 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5704 * elfread.c (elf_symtab_read): Stop memory leak.
5706 * main.c (captured_main): Fix memory leak.
5708 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5710 * ada-lang.c (compare_names): Call is_name_suffix with string1
5713 2011-03-07 Tom Tromey <tromey@redhat.com>
5715 * xcoffread.c (xcoff_sym_fns): Update.
5716 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5717 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5718 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5719 (symbol_file_add_with_addrs_or_offsets): Likewise.
5720 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5721 * somread.c (som_sym_fns): Update.
5722 * psymtab.h (require_partial_symbols): Declare.
5723 * psymtab.c (require_partial_symbols): New function.
5724 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5725 (ALL_OBJFILE_PSYMTABS): Undef.
5726 (ALL_PSYMTABS): Move from psympriv.h.
5727 (lookup_partial_symtab, find_pc_sect_psymtab)
5728 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5729 (find_last_source_symtab_from_partial)
5730 (forget_cached_source_info_partial)
5731 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5732 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5733 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5734 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5735 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5736 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5737 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5738 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5739 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5741 * mipsread.c (ecoff_sym_fns): Update.
5742 * machoread.c (macho_sym_fns): Update.
5743 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5744 (read_psyms): New function.
5745 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5746 (elf_sym_fns_lazy_psyms): New global.
5747 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5748 dwarf2_build_psymtabs.
5749 * dbxread.c (aout_sym_fns): Update.
5750 * coffread.c (coff_sym_fns): Update.
5752 2011-03-07 Tom Tromey <tromey@redhat.com>
5754 * infrun.c (print_exited_reason): Include inferior id and pid in
5757 2011-03-07 Tom Tromey <tromey@redhat.com>
5759 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5761 (target_has_execution_1): Update.
5762 (target_has_execution_current): Declare.
5763 (target_has_execution): Call target_has_execution_current.
5764 (default_child_has_execution): Update.
5765 * target.c (default_child_has_execution): Add 'the_ptid'
5767 (target_has_execution_1): Likewise.
5768 (target_has_execution_current): New function.
5769 (add_target): Update.
5770 (init_dummy_target): Update.
5771 * remote-m32r-sdi.c (m32r_has_execution): New function.
5772 (init_m32r_ops): Use it.
5773 * record.c (record_core_has_execution): Now static. Add
5774 'the_ptid' parameter.
5775 * inferior.c (have_live_inferiors): Don't save current thread.
5776 Use target_has_execution_1.
5778 2011-03-07 Yao Qi <yao@codesourcery.com>
5780 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5782 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5784 * elfread.c (elf_symtab_read): Minor reformatting.
5786 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5788 * objc-lang.c (selectors_info): Minor reformatting.
5790 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5792 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5794 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5795 Michael Snyder <msnyder@vmware.com>
5797 * ada-valprint.c (ada_val_print_array): Move the declaration of
5798 "byte_order" and "elttype" inside the block where these variables
5799 are actually used. Remove some special handling for the case
5800 where "elttype" and "eltlen" are null. Replace by a comment
5801 and a couple of assertion checks.
5803 2011-03-05 Michael Snyder <msnyder@vmware.com>
5805 * source.c (add_path): Replace semicolon at end of block.
5806 * dwarf2expr.c (execute_stack_op): Ditto.
5808 2011-03-05 Mike Frysinger <vapier@gentoo.org>
5810 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
5811 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
5812 (bfin-*-*): Likewise.
5814 2011-03-05 Michael Snyder <msnyder@vmware.com>
5816 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
5817 * mdebugread.c (parse_symbol): Ditto.
5818 * parse.c (parse_exp_in_context): Ditto.
5819 * source.c (add_path): Ditto.
5820 * utils.c (gnu_debuglink_crc32): Ditto.
5821 * varobj.c (variable_language): Ditto.
5823 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
5825 2011-03-04 Michael Snyder <msnyder@vmware.com>
5827 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
5829 * symfile.c (simple_overlay_update): Check for null return value
5830 from lookup_minimal_symbol.
5832 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
5834 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5836 * eval.c (parse_and_eval_address_1): Remove function.
5837 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
5838 instead of parse_and_eval_address_1.
5839 * value.h (parse_and_eval_address_1): Remove prototype.
5841 2011-03-04 Michael Snyder <msnyder@vmware.com>
5843 * remote.c (putpkt_binary): Document that case stmt falls through.
5845 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5847 * breakpointc (print_it_typical): Move NULL check from here...
5848 (print_bp_stop_message): ... to here.
5850 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
5852 * breakpoint.c (enable_command): Use break instead of continue,
5853 and fill in a missing break.
5854 (disable_command): Ditto.
5856 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5858 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
5859 (terminal_save_ours): Remove misleading comment.
5860 (inflow_inferior_data_cleanup): Free ttystate.
5861 (inflow_inferior_exit): Likewise.
5862 (copy_terminal_info): Copy ttystate.
5864 * serial.c (serial_copy_tty_state): New function.
5865 * serial.h (serial_copy_tty_state): Add prototype.
5866 (struct serial_ops): Add copy_tty_state callback.
5867 * ser-base.c (ser_base_copy_tty_state): New function.
5868 * ser-base.h (ser_base_copy_tty_state): Add prototype.
5869 * ser-go32.c (dos_copy_tty_state): New function.
5870 (dos_ops): Install copy_tty_state callback.
5871 * ser-mingw.c (_initialize_ser_windows): Likewise.
5872 * ser-pipe.c (_initialize_ser_pipe): Likewise.
5873 * ser-unix.c (hardwire_copy_tty_state): New function.
5874 (_initialize_ser_hardwire): Install it.
5876 2011-03-04 Michael Snyder <msnyder@vmware.com>
5878 * breakpoint.c (create_breakpoint): Add missing break statement.
5880 Reverting this patch:
5881 * infcall.c (call_function_by_hand): Add break statements for lint.
5883 Reverting this patch:
5884 * cli/cli-script.c (script_from_file): Add break for lint.
5886 2011-03-04 Michael Snyder <msnyder@vmware.com>
5888 * solib.c (reload_shared_libraries_1): Close memory leak.
5890 2011-03-03 Tom Tromey <tromey@redhat.com>
5893 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
5896 2011-03-03 Michael Snyder <msnyder@vmware.com>
5898 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
5899 fields of struct 'st' to zero.
5901 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
5902 sal.pspace before calling set_current_source_symtab_and_line.
5904 2011-03-03 Yao Qi <yao@codesourcery.com>
5906 * Makefile.in (configure-common): Remove. Let Makefile
5907 in dir common to rebuild itself.
5908 (common/Makefile): Likewise.
5910 2011-03-03 Joel Brobecker <brobecker@adacore.com>
5912 * utils.c (parse_escape): Add i18n markup in error message.
5914 2011-03-03 Yao Qi <yao@codesourcery.com>
5916 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
5918 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
5919 (displaced_write_reg, displaced_read_reg): Likewise.
5920 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
5921 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5922 (cleanup_branch): Replace magic number 14 and 15 with
5923 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
5925 2011-03-02 Michael Snyder <msnyder@vmware.com>
5927 * maint.c (maintenance_do_deprecate): No need to check for NULL.
5929 * cli/cli-script.c (script_from_file): Add break for lint.
5931 * mdebugread.c (parse_partial_symbols): Fix indent.
5933 * target-descriptions.c (tdesc_gdb_type): No need to call
5934 xstrdup, callee saves a copy.
5936 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
5938 * infcall.c (call_function_by_hand): Add break statements for lint.
5940 * utils.c (parse_escape): Escape the escape char.
5942 * python/py-inferior.c (build_inferior_list): Error out if
5943 PyList_Append fails.
5944 (gdbpy_inferiors): Error out if build_inferior_list fails.
5946 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
5949 * record.c (record_restore): Move printf to before error return.
5951 2011-03-02 Yao Qi <yao@codesourcery.com>
5953 * arm-tdep.h (struct displaced_step_closure): Add two new fields
5954 is_thumb and insn_size.
5955 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
5956 on both ARM and Thumb mode.
5957 (arm_process_displaced_insn): Set is_thumb and insn_size.
5958 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
5959 (arm_displaced_step_fixup): Likewise.
5961 2011-03-01 Michael Snyder <msnyder@vmware.com>
5963 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
5965 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
5967 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
5969 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
5971 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
5974 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
5975 which shadows function parameter.
5977 * tracepoint.c (create_tsv_from_upload): Superfluous call
5978 to xstrdup. Callee already calls xstrdup.
5980 * linespec.c (decode_line_1): Remove unnecessary null check.
5982 * tracepoint.c (scope_info): Fix mem leak, remove underused
5985 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
5986 superfluous null check.
5988 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
5989 (value_of_builtin_frame_fp_reg): Ditto.
5991 * event-top.c (display_gdb_prompt): Remove superfluous null check.
5993 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
5996 * linespec.c (decode_line_1): Check for null before dereference.
5998 * reverse.c (record_restore): Move null-check to before pointer
6001 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6003 * objc-lang.c (selectors_info): Add explanitory comment.
6004 (classes_info): Ditto.
6006 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6008 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6009 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6010 versions of the trampoline. Handle Thumb vs. ARM addresses.
6011 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6012 (arm_linux_init_abi): Install it.
6013 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6014 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6016 2011-02-28 Michael Snyder <msnyder@vmware.com>
6018 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6019 a little bigger, to avoid possibility of an overflow.
6021 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6022 buffers a little bigger, to avoid possibility of an overflow.
6024 * coffread.c (coff_getfilename): Add check to avoid overflow.
6026 * objc-lang.c (selectors_info): Add a small safety margin to
6028 (classes_info): Error out on too long REGEXP.
6030 * infrun.c (handle_inferior_event): Remove unused function call.
6032 * fork-child.c (fork_inferior): Remove ifdef'd code and
6035 * linux-thread-db.c (attach_thread): Discard unused value.
6037 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6039 * remote.c (remote_get_noisy_reply): Discard unused value.
6040 (remote_vcont_resume): Ditto.
6041 (remote_stop_ns): Ditto.
6043 * linespec.c (decode_objc): Delete unused variable.
6045 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6047 * dwarf2read.c (add_partial_symbol): Discard unused values.
6048 (read_base_type): Delete unused variable.
6050 * dbxread.c (read_dbx_symtab): Discard unused value.
6052 * eval.c (evaluate_subexp_standard): Delete unused variable,
6053 and discard unused values.
6055 * infcmd.c (_initialize_infcmd): Discard unused values.
6057 * stabsread.c (rs6000_builtin_type): Missing break statement.
6059 * dbxread.c (process_one_symbol): Discard unused value.
6061 * coffread.c (coff_end_symtab): Delete unused variable.
6063 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6064 (dwarf2_add_typedef): Delete unused variable.
6065 (read_namespace): Ditto.
6066 (dwarf_decode_macros): Ditto.
6068 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6070 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6072 * p-valprint.c (pascal_val_print): Discard unused value.
6074 * utils.c (nquery): Call va_end before return;
6078 * proc-service.c (ps_plog): Call va_end before return.
6080 2011-02-28 Tom Tromey <tromey@redhat.com>
6082 * python/python.c (gdbpy_value_cst): New global.
6083 (_initialize_python): Initialize it.
6084 * python/python-internal.h (gdbpy_value_cst): Declare.
6085 * python/py-value.c (convert_value_from_python): Use
6088 2011-02-28 Michael Snyder <msnyder@vmware.com>
6090 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6092 * breakpoint.c (catch_syscall_completer): Free malloced list.
6094 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6096 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6097 (lval_func_check_synthetic_pointer): Ditto.
6098 (lval_func_free_closure): Fix use-after-free.
6100 2011-02-28 Tom Tromey <tromey@redhat.com>
6102 * psymtab.c (expand_partial_symbol_tables): Use
6103 ALL_OBJFILE_PSYMTABS.
6105 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6107 * objc-lang.c (selectors_info): Error on too long REGEXP.
6109 2011-02-28 Michael Snyder <msnyder@vmware.com>
6111 * python/py-param.c (set_parameter_value): Add missing
6114 * linux-record.c (record_linux_system_call): Add missing
6117 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6119 * breakpoint.c (print_one_breakpoint_location): Remove unused
6120 argument PRINT_ADDRESS_BITS. Update callers.
6121 (print_one_breakpoint): Likewise.
6123 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6125 * breakpoint.c (wrap_indent_at_field): New function.
6126 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6127 Allocate ui_stream locally instead of using STB argument.
6128 (print_one_breakpoint_location): Update call.
6129 * ui-out.c (ui_out_query_field): New function.
6130 * ui-out.h (ui_out_query_field): Add prototype.
6132 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6134 From Michael Snyder <msnyder@vmware.com>
6135 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6137 2011-02-27 Michael Snyder <msnyder@vmware.com>
6139 * objc-lang.c (selectors_info): Prevent string overrun.
6141 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6144 * symtab.c (rbreak_command): Move variable 'file_name' to
6147 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6148 param with a local variable of the same name.
6150 2011-02-27 Michael Snyder <msnyder@vmware.com>
6152 * value.c (value_from_history_ref): New function.
6153 * value.h (value_from_history_ref): Export.
6154 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6155 to parse value history references.
6156 * cli/cli-utils.h (get_number_trailer): Update comment.
6158 2011-02-27 Michael Snyder <msnyder@vmware.com>
6160 * inferior.c (detach_inferior_command): Use get_number_or_range.
6161 (kill_inferior_command): Ditto.
6162 (remove_inferior_command): Ditto.
6163 (initialize_inferiors): Make command names plural.
6164 Update help strings.
6166 2011-02-27 Michael Snyder <msnyder@vmware.com>
6168 * darwin-nat-info.c: Fix comment typo.
6169 * dwarf2expr.h: Ditto.
6170 * fbsd-nat.c: Ditto.
6171 * fbsd-nat.h: Ditto.
6172 * frame-unwind.h: Ditto.
6174 * hppa-hpux-tdep.c: Ditto.
6175 * i386-linux-nat.c: Ditto.
6176 * linux-nat.c: Ditto.
6177 * nbsd-nat.c: Ditto.
6178 * nbsd-nat.h: Ditto.
6179 * ppc-linux-tdep.c: Ditto.
6182 * tui/tui-winsource.c: Ditto.
6184 2011-02-26 Michael Snyder <msnyder@vmware.com>
6186 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6188 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6190 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6191 with a local variable of the same name.
6193 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6194 param with a local variable of the same name.
6195 (i387_supply_xsave): Ditto.
6197 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6198 that it does not shadow a function parameter.
6200 * i386-nat.c (i386_length_and_rw_bits): Document that case
6201 statement is meant to fall through.
6203 * expprint.c (dump_subexp_body_standard): Document that case
6204 statement is meant to fall through.
6206 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6207 dead if statement. Condition can't be false.
6209 2011-02-25 Michael Snyder <msnyder@vmware.com>
6211 * arm-tdep.c: Fix typos in comments.
6212 * bsd-uthread.c: Ditto.
6213 * completer.c: Ditto.
6215 * cp-namespace.c: Ditto.
6216 * cp-support.c: Ditto.
6217 * cris-tdep.c: Ditto.
6219 * dwarf2read.c: Ditto.
6221 * gdbtypes.h: Ditto.
6222 * inferior.h: Ditto.
6223 * mdebugread.c: Ditto.
6224 * mips-tdep.c: Ditto.
6225 * ppc-linux-nat.c: Ditto.
6226 * ppc-linux-tdep.c: Ditto.
6227 * printcmd.c: Ditto.
6228 * sol-thread.c: Ditto.
6229 * solib-frv.c: Ditto.
6231 * sparc64-tdep.c: Ditto.
6232 * spu-tdep.c: Ditto.
6233 * stabsread.c: Ditto.
6238 * python/py-block.c: Ditto.
6239 * python/py-symbol.c: Ditto.
6240 * python/py-symtab.c: Ditto.
6241 * python/py-value.c: Ditto.
6242 * tui/tui-win.c: Ditto.
6244 2011-02-25 Michael Snyder <msnyder@vmware.com>
6246 * inferior.c (print_inferior): Accept a string instead of an int
6247 for requested_inferiors, and use get_number_or_range to parse it.
6248 (info_inferiors_command): Pass args string to print_inferior.
6249 (initialize_inferiors): Change help string for info inferiors.
6250 * inferior.h (print_inferior): Export prototype change.
6252 2011-02-25 Tom Tromey <tromey@redhat.com>
6254 * common/ax.def (invalid2): Set to 0x31.
6256 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6258 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6260 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6262 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6264 2011-02-24 Michael Snyder <msnyder@vmware.com>
6266 * Makefile.in (clean): Make clean should remove generated files
6267 observer.h and observer.inc.
6269 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6271 Revert the following patch (not approved yet):
6272 2011-02-21 Hui Zhu <teawater@gmail.com>
6273 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6274 * ax-gdb.c (gen_printf_expr_callback): New function.
6275 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6276 * ax-general.c (ax_memcpy): New function.
6277 (ax_print): Handle "printf".
6279 * ax.h (ax_memcpy): Forward declare.
6280 * common/ax.def (invalid2): Removed.
6281 (printf): New entry.
6282 * printcmd.c (printcmd.h): New include.
6283 (string_printf): New function.
6284 (ui_printf): Removed.
6285 (printf_command): Remove static. Call string_printf.
6286 (eval_command): Call string_printf.
6287 * printcmd.h: New file.
6288 * tracepoint.c (validate_actionline,
6289 encode_actions_1): handle printf_command.
6291 2011-02-23 Tom Tromey <tromey@redhat.com>
6293 * ax-general.c (ax_pick): Add missing newline.
6295 2011-02-23 Michael Snyder <msnyder@vmware.com>
6297 * breakpoint.c (breakpoint_1): Change first argument from an int
6298 to a char pointer, so that the function now accepts a list of
6299 breakpoints rather than just one. Use new function
6300 'number_is_in_list' to implement.
6301 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6302 (watchpoints_info): Ditto.
6303 (tracepoints_info): Ditto.
6304 (maintenance_info_breakpoints): Ditto.
6305 (_initialize_breakpoint): Update help strings to reflect the fact
6306 that these functions can now take more than one argument.
6307 * cli/cli-utils.c (number_is_in_list): New function.
6308 * cli/cli-utils.h (number_is_in_list): Export.
6310 2011-02-23 Michael Snyder <msnyder@vmware.com>
6312 * memattr.c (mem_enable_command): Use get_number_or_range.
6313 (mem_disable_command): Ditto.
6314 (mem_delete_command): Ditto.
6315 (_initialize_mem): Tweak usage message to reflect multiple
6318 2011-02-22 Doug Evans <dje@google.com>
6320 Add gdb.lookup_global_symbol python function.
6322 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6323 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6324 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6326 2011-02-22 Tom Tromey <tromey@redhat.com>
6328 * language.c (language_class_name_from_physname): Rename
6329 'curr_language' argument to 'lang'; use in body.
6331 2011-02-22 Michael Snyder <msnyder@vmware.com>
6333 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6335 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6337 * frame-unwind.h: Fix comment to mention the this frame, not the
6340 2011-02-22 Tom Tromey <tromey@redhat.com>
6342 * symfile.c (auto_solib_limit): Remove.
6343 * symfile.h (auto_solib_limit): Remove.
6345 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6347 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6349 2011-02-21 Michael Snyder <msnyder@vmware.com>
6351 * gdbthread.h (print_thread_info): Change prototype.
6352 * thread.c (print_thread_info): Accept char* instead of int for
6353 requested_threads argument. Use new function number_is_in_list
6354 to determine which threads to list.
6355 (info_threads_command): Pass char* to print_thread_info.
6356 * cli/cli-utils.c (number_is_in_list): New function.
6357 * cli/cli-utils.h (number_is_in_list): Export.
6358 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6360 (print_one_inferior): Ditto.
6361 (mi_cmd_list_thread_groups): Ditto.
6363 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6365 * common/Makefile.in (CFLAGS): New.
6366 (COMPILE): Add $(CFLAGS).
6368 2011-02-21 Tom Tromey <tromey@redhat.com>
6370 * breakpoint.c (catch_syscall_command_1): Fix typo.
6372 2011-02-21 Tom Tromey <tromey@redhat.com>
6374 * reverse.c: Include cli-utils.h.
6375 * printcmd.c: Include cli-utils.h.
6376 (string_printf): Use skip_spaces.
6377 * cli/cli-utils.h: New file.
6378 * cli/cli-utils.c: New file.
6379 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6380 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6381 * breakpoint.h (get_number, get_number_or_range): Move to
6383 * breakpoint.c: Include cli-utils.h.
6384 (get_number_trailer, get_number, get_number_or_range)
6385 (ep_skip_leading_whitespace): Move to cli-utils.c.
6386 (create_breakpoint_sal, find_condition_and_thread)
6387 (decode_static_tracepoint_spec, watch_command_1)
6388 (watch_maybe_just_location, ep_parse_optional_if_clause)
6389 (catch_fork_command_1, catch_exec_command_1)
6390 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6391 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6392 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6393 (HFILES_NO_SRCDIR): Add cli-utils.h.
6394 (cli-utils.o): New target.
6396 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6398 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6399 before calling discard_all_inferiors.
6401 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6403 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6404 (struct builtin_opencl_type): Remove.
6405 (builtin_opencl_type): Change return type to "struct type **".
6406 (lookup_opencl_vector_type): Update caller.
6407 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6408 (build_opencl_types): Install plain array of "struct type *"
6409 instead of "struct builtin_opencl_type".
6411 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6412 Ulrich Weigand <uweigand@de.ibm.com>
6414 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6415 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6416 (struct arm_linux_hwbp_cap): New type.
6417 (arm_linux_get_hwbp_cap): New function.
6418 (arm_linux_get_hw_breakpoint_count): Likewise.
6419 (arm_linux_get_hw_watchpoint_count): Likewise.
6420 (arm_linux_can_use_hw_breakpoint): Likewise.
6421 (arm_hwbp_type): New type.
6422 (arm_hwbp_control_t): Likewise.
6423 (struct arm_linux_hw_breakpoint): Likewise.
6424 (struct arm_linux_thread_points): Likewise.
6425 (arm_threads): New global variable.
6426 (arm_linux_find_breakpoints_by_tid): New function.
6427 (arm_hwbp_control_initialize): Likewise.
6428 (arm_hwbp_control_is_enabled): Likewise.
6429 (arm_hwbp_control_disable): Likewise.
6430 (arm_linux_hw_breakpoint_initialize): Likewise.
6431 (arm_linux_get_hwbp_type): Likewise.
6432 (arm_linux_hw_watchpoint_initialize): Likewise.
6433 (arm_linux_hw_breakpoint_equal): Likewise.
6434 (arm_linux_insert_hw_breakpoint1): Likewise.
6435 (arm_linux_remove_hw_breakpoint1): Likewise.
6436 (arm_linux_insert_hw_breakpoint): Likewise.
6437 (arm_linux_remove_hw_breakpoint): Likewise.
6438 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6439 (arm_linux_insert_watchpoint): Likewise.
6440 (arm_linux_remove_watchpoint): Likewise.
6441 (arm_linux_stopped_data_address): Likewise.
6442 (arm_linux_stopped_by_watchpoint): Likewise.
6443 (arm_linux_watchpoint_addr_within_range): Likewise.
6444 (arm_linux_new_thread): Likewise.
6445 (arm_linux_thread_exit): Likewise.
6446 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6447 related target callbacks. Register arm_linux_new_thread and
6448 arm_linux_thread_exit.
6449 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6450 * arm-tdep.c (arm_pc_is_thumb): Make global.
6451 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6453 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6455 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6456 per-frame locations while within a function epilogue.
6458 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6460 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6461 to GNU coding standards.
6463 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6465 Allow use of mingw native on Windows 95 OS.
6466 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6467 (ser_windows_close): Only call CancelIo if function exists.
6468 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6469 to check for existence of CancelIo function in kernel32 DLL.
6471 2011-02-21 Hui Zhu <teawater@gmail.com>
6473 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6474 * ax-gdb.c (gen_printf_expr_callback): New function.
6475 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6476 * ax-general.c (ax_memcpy): New function.
6477 (ax_print): Handle "printf".
6479 * ax.h (ax_memcpy): Forward declare.
6480 * common/ax.def (invalid2): Removed.
6481 (printf): New entry.
6482 * printcmd.c (printcmd.h): New include.
6483 (string_printf): New function.
6484 (ui_printf): Removed.
6485 (printf_command): Remove static. Call string_printf.
6486 (eval_command): Call string_printf.
6487 * printcmd.h: New file.
6488 * tracepoint.c (validate_actionline,
6489 encode_actions_1): handle printf_command.
6491 2011-02-19 Michael Snyder <msnyder@vmware.com>
6493 * reverse.c (delete_one_bookmark): Argument is now bookmark
6494 id rather than pointer to bookmark struct.
6495 (delete_bookmark_command): Use get_number_or_range.
6496 (goto_bookmark_command): Parse with get_number instead of strtoul.
6497 (bookmark_1): New function. Print info for one bookmark.
6498 (bookmarks_info): Use get_number_or_range and bookmark_1.
6500 2011-02-18 Michael Snyder <msnyder@vmware.com>
6502 * thread.c (info_threads_command): Re-implement using
6503 get_number_or_range.
6504 (thread_apply_command): Ditto.
6506 2011-02-18 Tom Tromey <tromey@redhat.com>
6508 * common/ax.def: New file.
6509 * ax.h (enum agent_op): Use ax.def.
6510 * ax-general.c (aop_map): Use ax.def.
6512 2011-02-18 Tom Tromey <tromey@redhat.com>
6514 * ax-general.c (aop_map): Add pick and rot.
6515 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6516 <DW_OP_rot>: Implement.
6517 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6519 * ax-general.c (ax_pick): New function.
6521 2011-02-18 Tom Tromey <tromey@redhat.com>
6523 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6525 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6526 Tom Tromey <tromey@redhat.com>
6528 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6529 make_symbol_overload_list_block with NULL BLOCK.
6530 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6532 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6534 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6535 * breakpoint.h (get_number_or_range): Declare.
6536 * printcmd.c (ALL_DISPLAYS): Declare.
6537 (delete_display): Reimplement taking a display pointer.
6538 (undisplay_command): Accept a range of displays to delete, using
6539 get_number_or_range.
6541 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6543 * c-valprint.c (c_val_print): Add embedded_offset to address
6544 for arrays of unspecified length.
6545 * p-valprint.c (pascal_val_print): Likewise.
6547 2011-02-18 Yao Qi <yao@codesourcery.com>
6549 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6550 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6551 (thumb_process_displaced_insn): New.
6552 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6553 call to arm_process_displaced_insn.
6554 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6556 2011-02-17 Tom Tromey <tromey@redhat.com>
6558 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6559 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6560 compile_dwarf_to_ax. No longer static. Call
6561 dwarf2_compile_cfa_to_ax.
6562 (locexpr_tracepoint_var_ref): Update.
6563 (loclist_tracepoint_var_ref): Update.
6564 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6565 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6566 argument; add 'gdbarch' and 'pc'.
6567 (dwarf2_compile_cfa_to_ax): New function.
6568 (dwarf2_frame_cache): Update.
6570 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6572 * ada-lang.c (ada_type_of_array): Fix the size of the array
6573 in the case of an unconstrained packed array.
6575 2011-02-17 Yao Qi <yao@codesourcery.com>
6577 * common/Makefile.in: Add more targets for make.
6579 2011-02-16 Tom Tromey <tromey@redhat.com>
6581 * dwarf2loc.c (unimplemented): Fix typo.
6583 2011-02-16 Tom Tromey <tromey@redhat.com>
6585 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6586 (compile_dwarf_to_ax) <default>: Use unimplemented.
6587 <DW_OP_deref>: Update.
6588 (disassemble_dwarf_expression): Update.
6589 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6590 (decode_locdesc): Update.
6591 * dwarf2expr.h (dwarf_stack_op_name): Update.
6593 2011-02-16 Tom Tromey <tromey@redhat.com>
6595 * ax.h (struct aop_map) <name>: Now const.
6597 2011-02-16 Tom Tromey <tromey@redhat.com>
6599 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6602 2011-02-16 Yao Qi <yao@codesourcery.com>
6604 * infrun.c (get_displaced_step_closure_by_addr): New.
6605 * inferior.h: Declare it.
6606 * arm-tdep.c: (arm_pc_is_thumb): Call
6607 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6610 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6611 Jan Kratochvil <jan.kratochvil@redhat.com>
6614 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6616 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6617 Jan Kratochvil <jan.kratochvil@redhat.com>
6619 * value.c (value_contents_copy_raw): Extend describing comment.
6620 Assert that the destination contents we're overwriting are wholly
6622 (value_contents_copy): Extend describing comment.
6624 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6625 Jan Kratochvil <jan.kratochvil@redhat.com>
6627 * value.c (value_available_contents_eq): Remove redundant local
6628 variables. Fix available contents comparision.
6629 * value.h (value_available_contents_eq): Extend describing
6632 2011-02-16 Yao Qi <yao@codesourcery.com>
6634 * thread.c (info_threads_command): Add missing i18n markup and remove
6637 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6639 * breakpoint.c (longjmp_names): New variable.
6640 (struct breakpoint_objfile_data): New type.
6641 (breakpoint_objfile_key): New variable.
6642 (msym_not_found): New variable.
6643 (msym_not_found_p): New predicate.
6644 (get_breakpoint_objfile_data): New function.
6645 (create_overlay_event_breakpoint): Check per-objfile cache for
6647 (create_longjmp_master_breakpoint): Likewise.
6648 (create_std_terminate_master_breakpoint): Likewise.
6649 (create_exception_master_breakpoint): Likewise.
6650 (_initialize_breakpoint): Register per-objfile data key.
6652 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6654 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6656 (create_longjmp_master_breakpoint): Loop over longjmp names.
6657 (create_std_terminate_master_breakpoint): Const-propagate parameter
6659 (update_breakpoints_after_exec): Adjust.
6660 (breakpoint_re_set): Adjust.
6662 2011-02-15 Michael Snyder <msnyder@vmware.com>
6664 * thread.c (info_threads_command): Process arg as thread id,
6665 or list of thread ids.
6666 (thread_find_command): New command.
6667 (_initialize_thread): Document argument for info threads.
6668 Document 'thread find' command.
6669 * NEWS: Document new command "thread find".
6671 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6673 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6674 * aclocal.m4: Regenerated with aclocal-1.11.1.
6675 * common/configure: Regenerate with autoconf-2.64.
6677 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6679 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6680 bool data type to a size of one byte.
6682 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6683 Jan Kratochvil <jan.kratochvil@redhat.com>
6685 * target.c (memory_xfer_live_readonly_partial): Document where to
6686 look for interface description.
6688 2011-02-15 Yao Qi <yao@codesourcery.com>
6691 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6692 order to store PC value on stack instead of text section.
6694 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6696 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6697 the EFP register set size.
6698 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6699 data from the VMX register.
6700 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6701 and write data from/to the VMX register.
6703 2011-02-14 Michael Snyder <msnyder@vmware.com>
6705 * command.h (enum command_class): New class 'no_set_class', for
6706 "show" commands without a corresponding "set" command.
6707 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6708 * copying.c (_initialize_copying): Ditto for "show copying" and
6710 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6712 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6713 which there is no corresponding "set" command (eg. "show copying").
6715 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6716 Jan Kratochvil <jan.kratochvil@redhat.com>
6718 * exec.c (section_table_available_memory): Change `len' parameter
6720 * exec.h (section_table_available_memory): Ditto.
6721 * value.h (read_value_memory): Rename the `offset' parameter to
6724 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6725 Jan Kratochvil <jan.kratochvil@redhat.com>
6727 * memrange.c (compare_mem_ranges): Mention sort order in
6729 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6730 * tracepoint.c (traceframe_available_memory): Extend comment to
6731 mention what happens to RESULT when the target does not support
6734 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6735 Jan Kratochvil <jan.kratochvil@redhat.com>
6737 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6740 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6742 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6743 No longer handle NULL values.
6745 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6747 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6748 * value.c: Include "exceptions.h".
6749 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6751 * cp-abi.c: Include gdb_assert.h.
6752 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6753 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6755 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6756 parameters. No longer returns -1 on error.
6757 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6759 * cp-valprint.c: Include exceptions.h.
6760 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6761 the baseclass_offset. Handle unavailable base classes. Use
6762 val_print_invalid_address.
6763 * p-valprint.c: Include exceptions.h.
6764 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6765 when fetching the baseclass_offset. No longer expect
6766 baseclass_offset returning -1. Handle unavailable base classes.
6767 Use val_print_invalid_address.
6768 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6769 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6770 `embedded_offset' and `val' parameters. Adjust.
6771 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6772 parameter, and change its type to gdb_byte pointer. Add
6773 `embedded_offset' and `val' parameters. Adjust. No longer expect
6774 baseclass_offset returning -1.
6775 (value_dynamic_cast): Use value_contents_for_printing rather than
6776 value_contents. Adjust.
6777 (search_struct_field): No longer expect baseclass_offset returning
6779 (search_struct_method): If reading memory from the target is
6780 necessary, wrap it in a new value to pass to baseclass_offset. No
6781 longer expect baseclass_offset returning -1.
6782 (find_method_list): No longer expect baseclass_offset returning
6783 -1. Use value_contents_for_printing rather than value_contents.
6784 * valprint.c (val_print_invalid_address): New function.
6785 * valprint.h (val_print_invalid_address): Declare.
6786 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6787 and `val' parameters. No longer expect baseclass_offset returning
6789 * gnu-v2-abi.c: Include "exceptions.h".
6790 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6791 parameters. Handle unavailable memory. Recurse through
6792 gnuv2_baseclass_offset directly, rather than through
6793 baseclass_offset. No longer returns -1 on not found, instead
6795 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6796 `val' parameters. Adjust.
6798 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6800 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
6801 almost but not quite adjacent.
6803 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6805 * value.h (value_entirely_available): Declare.
6806 * value.c (value_entirely_available): New function.
6807 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6808 real type if the pointer is unavailable.
6810 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6812 * valops.c (value_repeat): Use read_value_memory instead of
6815 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6817 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
6818 * value.c (value_contents_copy_raw, value_contents_copy): New
6820 (value_primitive_field): Use value_contents_copy_raw instead of
6822 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
6824 (value_array, value_slice): Ditto.
6825 * valarith.c (value_subscripted_rvalue): Use
6826 value_contents_copy_raw instead of memcpy.
6828 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6830 <unavailable> references.
6832 * valops.c (get_value_at): Use value_from_contents_and_address,
6833 avoiding read_memory.
6835 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6837 * c-valprint.c (c_val_print): Print a string with unavailable
6838 contents as an array.
6840 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6842 * value.h (unpack_bits_as_long): Delete declaration.
6843 (unpack_value_bits_as_long): Declare.
6844 (unpack_value_field_as_long): Declare.
6845 (value_field_bitfield): Declare.
6846 * value.c (unpack_bits_as_long): Rename to...
6847 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
6848 value parameters. Return the extracted result in a new output
6849 parameter. If the value contents are unavailable, return false,
6850 otherwise return true.
6851 (unpack_value_bits_as_long): New.
6852 (unpack_field_as_long): Rename to...
6853 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
6854 Add embedded_offset and value parameters. Return the extracted
6855 result in a new output parameter. If the value contents are
6856 unavailable, return false, otherwise return true.
6857 (unpack_value_field_as_long): New.
6858 (unpack_field_as_long_1): New.
6859 (unpack_field_as_long): Reimplement as wrapper around
6860 unpack_value_field_as_long_1.
6861 (value_field_bitfield): New function.
6862 * valops.c (value_fetch_lazy): When fetching a bitfield, use
6863 unpack_value_bits_as_long. Mark the value as unavailable, if it
6865 * jv-valprint.c (java_print_value_fields): Use
6866 value_field_bitfield.
6867 * p-valprint.c (pascal_object_print_value_fields): Use
6868 value_field_bitfield.
6869 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
6871 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6873 * value.c (get_internalvar_integer): Also return the int value of
6874 TYPE_CODE_INT INTERNALVAR_VALUE values.
6875 (set_internalvar): Don't special case TYPE_CODE_INT.
6877 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6879 * value.c (struct internalvar) <enum internalvar_kind>: Remove
6880 INTERNALVAR_POINTER.
6882 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
6883 (set_internalvar): Remove special TYPE_CODE_PTR handling.
6884 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
6886 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6888 * value.h (value_available_contents_eq): Declare.
6889 * value.c (find_first_range_overlap): New function.
6890 (value_available_contents_eq): New function.
6891 * valprint.c (val_print_array_elements): Use
6892 value_available_contents_eq.
6893 * ada-valprint.c (val_print_packed_array_elements): Use
6894 value_available_contents_eq.
6895 * jv-valprint.c (java_value_print): Use
6896 value_available_contents_eq.
6898 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6900 * target.c (target_read_live_memory): New function.
6901 (memory_xfer_live_readonly_partial): New.
6902 (memory_xfer_partial): If reading from a traceframe, fallback to
6903 reading unavailable read-only memory from read-only regions of
6905 * tracepoint.c (disconnect_tracing): Adjust.
6906 (set_current_traceframe): New, factored out from
6907 set_traceframe_number.
6908 (set_traceframe_number): Reimplement to only change the traceframe
6909 number on the GDB side.
6910 (do_restore_current_traceframe_cleanup): Adjust.
6911 (make_cleanup_restore_traceframe_number): New.
6912 (cur_traceframe_number): New global.
6913 (tfile_open): Set cur_traceframe_number to no traceframe.
6914 (set_tfile_traceframe): New function.
6915 (tfile_trace_find): If looking up a traceframe using any method
6916 other than by number, make sure the current tfile traceframe
6917 matches gdb's current traceframe. Update the current tfile
6918 traceframe if the lookup succeeded.
6919 (tfile_fetch_registers, tfile_xfer_partial)
6920 (tfile_get_trace_state_variable_value): Make sure the remote
6921 traceframe matches gdb's current traceframe.
6922 * remote.c (remote_traceframe_number): New global.
6923 (remote_open_1): Set it to -1.
6924 (set_remote_traceframe): New function.
6925 (remote_fetch_registers, remote_store_registers)
6926 (remote_xfer_memory, remote_xfer_partial)
6927 (remote_get_trace_state_variable_value): Make sure the remote
6928 traceframe matches gdb's current traceframe.
6929 (remote_trace_find): If looking up a traceframe using any method
6930 other than by number, make sure the current remote traceframe
6931 matches gdb's current traceframe. Update the current remote
6932 traceframe if the lookup succeeded.
6933 * infrun.c (fetch_inferior_event): Adjust.
6934 * tracepoint.h (set_current_traceframe): Declare.
6935 (get_traceframe_number, set_traceframe_number): Add describing
6938 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6940 Mark pieces of values as unavailable if the corresponding memory
6943 * valops.c: Include tracepoint.h.
6944 (value_fetch_lazy): Use read_value_memory.
6945 (read_value_memory): New.
6946 * value.h (read_value_memory): Declare.
6947 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
6948 * exec.c (section_table_available_memory): New function.
6949 * exec.h (section_table_available_memory): Declare.
6951 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6953 * Makefile.in (SFILES): Add memrange.c.
6954 (HFILES_NO_SRCDIR): Add memrange.h.
6955 (COMMON_OBS): Add memrange.o.
6956 * memrange.c: New file.
6957 * memrange.h: New file.
6958 * tracepoint.c: Include memrange.h.
6959 (struct mem_range): Delete.
6960 (mem_range_s): Delete.
6961 (traceframe_available_memory): New function.
6962 * tracepoint.h (traceframe_available_memory): Declare.
6964 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6966 * target.h (struct traceframe_info): Forward declare.
6967 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
6968 (struct target_ops) <to_traceframe_info>: New field.
6969 (target_traceframe_info): New.
6970 * target.c (update_current_target): Inherit and default
6972 * remote.c (PACKET_qXfer_traceframe_info): New.
6973 (remote_protocol_features): Register qXfer:traceframe-info:read.
6974 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
6975 (remote_traceframe_info): New.
6976 (init_remote_ops): Install it.
6977 (_initialize_remote): Install "set/show remote traceframe-info"
6979 * tracepoint.h (parse_traceframe_info): Declare.
6980 * tracepoint.c (struct mem_range): New.
6981 (mem_range_s): New typedef.
6982 (struct traceframe_info): New.
6983 (traceframe_info): New global.
6984 (free_traceframe_info): New function.
6985 (clear_traceframe_info): New function.
6986 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
6988 (build_traceframe_info): New function.
6989 (tfile_traceframe_info): New function.
6990 (init_tfile_ops): Install tfile_traceframe_info.
6991 (traceframe_info_start_memory, free_result): New functions.
6992 (memory_attributes, traceframe_info_elements): New globals.
6993 (parse_traceframe_info, get_traceframe_info): New functions.
6994 * features/traceframe-info.dtd: New file.
6995 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
6997 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6999 Base support for <unavailable> value contents.
7001 * value.h (value_bytes_available): Declare.
7002 (mark_value_bytes_unavailable): Declare.
7003 * value.c (struct range): New struct.
7004 (range_s): New typedef.
7005 (ranges_overlap): New function.
7006 (range_lessthan): New function.
7007 (ranges_contain_p): New function.
7008 (struct value) <unavailable>: New field.
7009 (value_bytes_available): New function.
7010 (mark_value_bytes_unavailable): New function.
7011 (require_not_optimized_out): Constify parameter.
7012 (require_available): New function.
7013 (value_contents_all, value_contents): Require all bytes be
7015 (value_free): Free `unavailable'.
7016 (value_copy): Copy `unavailable'.
7017 * valprint.h (val_print_unavailable): Declare.
7018 * valprint.c (valprint_check_validity): Rename `offset' parameter
7019 to `embedded_offset'. If printing a scalar, check whether the
7020 value chunk is available.
7021 (val_print_unavailable): New.
7022 (val_print_scalar_formatted): Check whether the value is
7024 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7025 pretty-printing unavailable values.
7027 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7029 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7030 * c-typeprint.c (c_type_print_args): Update the function comment. New
7031 variable param_type, initialize it. Remove const/volatile qualifiers
7032 for language_cplus and !show_artificial. Use param_type.
7034 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7036 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7037 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7038 * symtab.h (struct symtab) <next>: Comment extension.
7040 2011-02-12 Yao Qi <yao@codesourcery.com>
7042 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7044 2011-02-11 Yao Qi <yao@codesourcery.com>
7046 * common/Makefile.in: Add copyright header.
7048 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7050 * infrun.c (proceed): Move switching out and in of tfind mode from
7052 (fetch_inferior_event): ... to here.
7054 2011-02-11 Yao Qi <yao@codesourcery.com>
7056 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7058 * configure.ac: Add common to sub dir.
7059 * configure: Regenerate.
7061 2011-02-11 Yao Qi <yao@codesourcery.com>
7065 * common/Makefile.in: New.
7066 * common/configure.ac: New.
7067 * common/aclocal.m4: New.
7068 * common/configure: Generate.
7070 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7072 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7073 side of the parenthesis.
7076 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7077 * vec.h (VEC_block_remove): Fix comment.
7079 2011-02-08 Michael Snyder <msnyder@vmware.com>
7081 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7083 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7085 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7086 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7089 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7092 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7094 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7095 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7097 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7099 * dwarf2read.c (read_subroutine_type): Set special calling
7100 convention flag for functions compiled by IBM XL C for OpenCL.
7101 * ppc-sysv-tdep.c: Include "dwarf2.h"
7102 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7104 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7105 IBM OpenCL vector types calling convention.
7106 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7107 (ppc_sysv_abi_broken_return_value): Likewise.
7108 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7109 types calling convention.
7110 (ppc64_sysv_abi_return_value): Likewise.
7111 * spu-tdep.c: Include "dwarf2.h"
7112 (spu_return_value): Implement IBM OpenCL vector types calling
7115 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7117 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7118 correct ABI for AltiVec vector arguments.
7120 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7122 * valprint.c (val_print): Extend comment.
7123 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7124 interface explanation to val_print.
7125 (ada_val_print_array): Adjust comment to current interface.
7126 (print_field_values): Adjust comment to current interface.
7127 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7128 explanation to val_print.
7129 * f-valprint.c (f_val_print): Ditto.
7130 * jv-valprint.c (java_val_print): Ditto.
7131 * m2-valprint.c (m2_val_print): Ditto.
7132 * p-valprint.c (pascal_val_print): Ditto.
7134 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7136 * breakpoint.c (parse_breakpoint_sals): Fix description.
7138 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7139 Oguz Kayral <oguzkayral@gmail.com>
7141 * python/py-inferior.c (python_on_normal_stop): New function.
7142 (python_on_resume): New function.
7143 (python_inferior_exit): New function.
7144 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7145 inferior_exit observers.
7146 * python/py-evtregistry.c: New file.
7147 * python/py-threadevent.c : New file.
7148 * python/py-event.c: New file.
7149 * python/py-evts.c: New file.
7150 * python/py-continueevent.c: New file.
7151 * python/py-bpevent.c: New file.
7152 * python/py-signalevent.c: New file.
7153 * python/py-exetiedevent.c: New file.
7154 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7155 Move struct breakpoint_object from here...
7156 * python/python-internal.h: ... to here.
7157 * python/py-event.h: New file.
7158 * python/py-events.h: New file.
7159 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7160 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7161 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7162 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7163 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7164 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7165 Add build rules for all the above.
7167 2011-02-04 Tom Tromey <tromey@redhat.com>
7169 * dwarf2read.c (dwarf2_section_empty_p): New function.
7170 (dwarf2_read_section): Use dwarf2_section_empty_p.
7171 (dwarf2_section_size): New function.
7172 (dwarf2_get_section_info): Unconditionally read section.
7173 (dwarf2_read_index): Use dwarf2_section_empty_p.
7174 (partial_read_comp_unit_head): Use dwarf2_section_size.
7175 (dwarf2_symbol_mark_computed): Likewise.
7177 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7179 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7181 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7183 * mips-linux-tdep.c: Include xml-syscall.h.
7184 (mips_linux_get_syscall_number): New function.
7185 (mips_linux_init_abi): Add calls to
7186 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7187 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7188 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7189 * syscalls/mips-n32-linux.xml: New file.
7190 * syscalls/mips-n64-linux.xml: New file.
7191 * syscalls/mips-o32-linux.xml: New file.
7193 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7195 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7196 Complain about inverted range entries.
7197 (dwarf2_record_block_ranges): Likewise.
7199 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7202 * breakpoint.c (update_watchpoint): Fix name of the
7203 update_global_location_list function.
7204 (print_one_breakpoint): Fix typo.
7205 (_initialize_breakpoint): Remove extra space in hbreak help
7207 * breakpoint.h (struct bp_location) <length>: Fix field
7210 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7212 * regcache.c (registers_changed_ptid): Don't explictly always
7213 clear `current_regcache'. Only clear current_thread_ptid and
7214 current_thread_arch when PTID matches. Only reinit the frame
7215 cache if PTID matches the current inferior_ptid. Move alloca(0)
7217 (registers_changed): ... here.
7219 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7221 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7222 starts with __stack_chk_guard as stack guard symbol.
7224 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7226 * disasm.c (compare_lines): Handle the end of sequence markers
7227 within the line table to better support disassembling over
7228 compilation unit boundaries.
7230 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7232 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7233 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7234 implementation even if no symbols are available.
7235 (thumb_analyze_prologue): Update call to skip_prologue_function.
7236 (arm_analyze_prologue): Likewise.
7238 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7240 * arm-tdep.c: Include "observer.h".
7241 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7242 (arm_exidx_data_key): New static variable.
7243 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7244 (struct arm_exidx_data): Likewise.
7245 (arm_exidx_data_free): New function.
7246 (arm_compare_exidx_entries): Likewise.
7247 (arm_obj_section_from_vma): Likewise.
7248 (arm_exidx_new_objfile): Likewise.
7249 (arm_find_exidx_entry): Likewise.
7250 (arm_exidx_fill_cache): Likewise.
7251 (arm_exidx_unwind_sniffer): Likewise.
7252 (arm_exidx_unwind): New global variable.
7253 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7254 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7255 observer. Register arm_exidx_data_key as objfile data.
7257 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7259 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7260 due to accessing uninitialized variable. Fix indentation.
7262 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7264 * c-valprint.c (c_value_print): When doing virtual base pointer
7265 adjustment, create a new value with adjusted contents rather than
7266 changing the contents of the value being printed (and getting it
7269 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7271 * xml-support.c (xml_find_attribute): New.
7272 (xinclude_start_include): Use it.
7273 * xml-support.h (xml_find_attribute): Declare.
7274 * memory-map.c (memory_map_start_memory)
7275 (memory_map_start_property): Use xml_find_attribute.
7276 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7278 * remote.c (start_thread): Use xml_find_attribute.
7279 * solib-target.c (library_list_start_segment)
7280 (library_list_start_section, library_list_start_library)
7281 (library_list_start_list): Use xml_find_attribute.
7282 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7283 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7284 (tdesc_start_field): Use xml_find_attribute.
7286 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7288 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7289 (BUILD_OCL_VTYPES): Update.
7291 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7293 * configure.ac: Work around non-GNU sed limitation when computing
7294 python version number.
7295 * configure: Regenerate.
7297 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7299 Fix debug printing of TYPE_INSTANCE.
7300 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7301 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7303 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7305 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7306 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7307 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7308 * ada-operator.inc: Rename the file to ...
7309 * ada-operator.def: ... here, wrap all the entries by macro OP.
7310 * expprint.c (op_name_standard): Remove all the entries. Include
7311 "std-operator.def" instead.
7312 * expression.h (enum exp_opcode): Include "std-operator.def" and
7313 "ada-operator.def". Move all the entries ...
7314 * std-operator.def: ... here, wrap all the entries by macro OP.
7316 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7318 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7319 * breakpoint.c (remove_jit_event_breakpoints): New function.
7320 * jit.c (jit_descriptor_addr): Delete.
7321 (registering_code): Delete.
7322 (clear_int): Delete.
7323 (jit_inferior_data): New variable.
7324 (struct jit_inferior_data): New type.
7325 (get_jit_inferior_data): New function.
7326 (jit_inferior_data_cleanup): New function.
7327 (jit_read_descriptor): Adjust.
7328 (jit_register_code): Adjust.
7329 (jit_breakpoint_re_set_internal): New function; move code here ...
7330 (jit_inferior_init): ... from here.
7331 (jit_breakpoint_re_set): Adjust.
7332 (jit_reset_inferior_data_and_breakpoints): New function.
7333 (jit_inferior_created_observer): Adjust.
7334 (jit_inferior_exit_hook): Adjust.
7335 (jit_executable_changed_observer): New function.
7336 (jit_event_handler): Adjust.
7337 (_initialize_jit): Adjust.
7339 2011-01-31 Michael Snyder <msnyder@vmware.com>
7341 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7344 2011-01-31 Tom Tromey <tromey@redhat.com>
7347 * python/python.c (execute_gdb_command): Call
7348 prevent_dont_repeat.
7349 * top.c (suppress_dont_repeat): New global.
7350 (dont_repeat): Use it.
7351 (prevent_dont_repeat): New function.
7352 * command.h (prevent_dont_repeat): Declare.
7354 2011-01-31 Tom Tromey <tromey@redhat.com>
7356 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7357 * python/py-breakpoint.c (bppy_set_silent): Use
7358 breakpoint_set_silent.
7359 (bppy_set_thread): Use breakpoint_set_thread.
7360 (bppy_set_task): Use breakpoint_set_task.
7361 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7362 (breakpoint_set_task): Declare.
7363 (make_breakpoint_silent): Remove.
7364 * breakpoint.c (breakpoint_set_silent): New function.
7365 (breakpoint_set_thread): Likewise.
7366 (breakpoint_set_task): Likewise.
7367 (make_breakpoint_silent): Remove.
7369 2011-01-31 Tom Tromey <tromey@redhat.com>
7371 * breakpoint.h (user_breakpoint_p): Declare.
7372 * breakpoint.c (user_breakpoint_p): New function.
7373 (breakpoint_1): Use it.
7374 (save_breakpoints): Likewise.
7376 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7378 * configure.ac: Add handling of Python distribution on Windows.
7379 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7380 sysconfig variables are not defined, then do not use them.
7381 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7382 instead. On Windows, return all paths using forward-slashes
7383 rather than backslashes.
7385 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7387 * configure.ac: Remove fallback behavior for building
7388 against Python. Remove tweaking of Python include path.
7389 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7390 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7391 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7392 Always restore CPPFLAGS and LIBS after linking test.
7393 * configure: Regenerated.
7394 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7395 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7396 * python/python-internal.h: Adjust includes of Python .h files.
7398 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7400 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7403 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7405 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7408 2011-01-31 Yao Qi <yao@codesourcery.com>
7410 * arm-linux-nat.c: Update calls to regcache_register_status
7411 instead of regcache_valid_p.
7412 * aix-thread.c: Likewise.
7413 * i386gnu-nat.c: Likewise.
7415 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7418 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7419 touching TYPE_FIELD_ARTIFICIAL.
7421 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7423 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7426 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7428 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7429 selected, don't try iterating over the traceframe's blocks.
7430 (tfile_has_stack): If there's no traceframe selected, then there's
7432 (tfile_has_registers): If there's no traceframe selected, then
7433 there's no registers.
7435 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7437 * target.c (memory_xfer_partial): No need to restore shadows if we
7438 haven't read anything.
7440 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7442 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7443 and val_print_scalar_formatted.
7445 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7447 * tracepoint.c (tfile_read): New.
7448 (tfile_open): Use it.
7449 (tfile_get_traceframe_address): Use it.
7450 (tfile_trace_find): Use it.
7451 (walk_blocks_callback_func): New typedef.
7452 (match_blocktype): New function.
7453 (traceframe_walk_blocks): New function.
7454 (traceframe_find_block_type): New function.
7455 (tfile_fetch_registers, tfile_xfer_partial)
7456 (tfile_get_trace_state_variable_value): Use
7457 traceframe_find_block_type and tfile_read.
7459 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7461 * remote-mips.c: Add internationalization mark ups. Remove
7462 trailing \n from already marked up strings.
7464 2011-01-26 Tom Tromey <tromey@redhat.com>
7466 * python/py-prettyprint.c (print_string_repr): Clear
7467 'addressprint' option when calling val_print_string.
7468 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7469 option when calling val_print_string.
7471 2011-01-26 Tom Tromey <tromey@redhat.com>
7473 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7475 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7477 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7478 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7479 (gdb_py_long_as_ulongest): New defines.
7480 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7481 (gdb_py_int_as_long): Declare.
7482 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7483 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7484 (valpy_long): Add comment.
7485 * python/py-utils.c (get_addr_from_python): Use
7486 gdb_py_long_as_ulongest. Handle overflow properly.
7487 (gdb_py_object_from_longest): New function.
7488 (gdb_py_object_from_ulongest): Likewise.
7489 (gdb_py_int_as_long): Likewise.
7490 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7491 * python/py-symtab.c (salpy_get_pc): Use
7492 gdb_py_long_from_ulongest.
7493 (salpy_get_line): Use PyInt_FromLong.
7494 * python/py-param.c (set_parameter_value): Use
7496 * python/py-lazy-string.c (stpy_get_address): Use
7497 gdb_py_long_from_ulongest.
7498 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7499 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7500 * python/py-breakpoint.c (bppy_set_thread): Use
7502 (bppy_set_task): Likewise.
7503 (bppy_set_ignore_count): Likewise.
7504 (bppy_set_hit_count): Likewise.
7505 * python/py-block.c (blpy_get_start): Use
7506 gdb_py_object_from_ulongest.
7507 (blpy_get_end): Likewise.
7508 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7510 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7513 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7514 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7515 equality test for objfile, initialize addr_low if needed.
7517 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7519 * tui/tui-regs.c (tui_register_format): Remove dead code.
7521 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7523 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7524 instead of print_scalar_formatted.
7525 (print_scalar_formatted): Don't handle 's' format strings here,
7526 and add an assertion that we never see such format here.
7527 * valprint.h (val_print_scalar_formatted): Declare.
7528 * valprint.c (val_print_scalar_formatted): New.
7529 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7530 instead of print_scalar_formatted.
7531 * jv-valprint.c (java_val_print): Ditto.
7532 * p-valprint.c (pascal_val_print): Ditto.
7533 * ada-valprint.c (ada_val_print_1): Ditto.
7534 * f-valprint.c (f_val_print): Ditto.
7535 * infcmd.c (registers_info): Ditto.
7536 * m2-valprint.c (m2_val_print): Ditto.
7538 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7540 * m2-valprint.c (print_unbounded_array): Pass
7541 value_contents_for_printing rather than value_contents, to
7542 m2_print_array_contents. Also pass in the value.
7544 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7546 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7547 (save_gdb_index_command): Switch to .gdb_index version 4.
7549 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7551 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7552 than frame_register, and always pass a valid value to val_print.
7554 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7556 Centralize printing "<optimized out>".
7558 * valprint.h (val_print_optimized_out): Declare.
7559 * cp-valprint.c (cp_print_value_fields): Use
7560 val_print_optimized_out.
7561 * jv-valprint.c (java_print_value_fields): Ditto.
7562 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7563 * printcmd.c (print_formatted): Ditto.
7564 * valprint.c (valprint_check_validity): Ditto.
7565 (value_check_printable): Ditto.
7566 (val_print_optimized_out): New.
7568 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7570 * infcmd.c (default_print_registers_info): Allocate values so to
7571 never pass a NULL value to val_print.
7573 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7575 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7576 boolean. Make sure to always pass a value that matches the
7577 contents buffer to callees. Preserve `address' for following
7579 * value.c (value_contents_for_printing_const): New.
7580 (value_address): Constify value argument.
7581 * value.h (value_contents_for_printing_const): Declare.
7582 (value_address): Constify value argument.
7584 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7586 * regcache.c (struct regcache_descr): Rename
7587 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7588 and sizeof_cooked_register_valid_p to
7589 sizeof_cooked_register_status.
7590 (init_regcache_descr): Adjust.
7591 (struct regcache): Rename register_valid_p field to
7593 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7594 (do_cooked_read): Adjust.
7595 (regcache_valid_p): Rename to ...
7596 (regcache_register_status): ... this. Adjust.
7597 (regcache_invalidate): Adjust.
7598 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7600 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7601 as unavailable, not valid.
7602 (regcache_dump): Adjust.
7603 * regcache.h (enum register_status): New.
7604 (regcache_register_status): Declare.
7605 (regcache_invalidate): Delete declaration.
7606 * corelow.c (get_core_registers): Adjust.
7607 * tracepoint.c (tfile_fetch_registers): Adjust.
7608 * trad-frame.c (REG_VALUE): Rename to ...
7609 (TF_REG_VALUE): ... this.
7610 (REG_UNKNOWN): Rename to ...
7611 (TF_REG_UNKNOWN): ... this.
7612 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7613 * mi/mi-main.c (register_changed_p): Adjust.
7615 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7617 * regcache.c (struct regcache_descr): Remove outdated comment.
7618 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7620 (regcache_xmalloc): Rename to ...
7621 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7622 Allocate the regcache type accordingly.
7623 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7624 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7625 cooked registers, not raw.
7626 (regcache_dup_no_passthrough): Delete.
7627 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7628 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7629 mention obsolete write_register_bytes.
7630 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7632 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7634 Stop remote_read_bytes from handling partial reads itself.
7636 * remote-fileio.c: Include target.h.
7637 (remote_fileio_write_bytes): Delete.
7638 (remote_fileio_func_open, remote_fileio_func_write)
7639 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7641 (remote_fileio_func_stat): Use target_read_memory and
7642 target_write_memory.
7643 (remote_fileio_func_gettimeofday): Use target_write_memory.
7644 (remote_fileio_func_system): Use target_read_memory.
7645 * remote.c (remote_write_bytes): Make it static.
7646 (remote_read_bytes): Don't handle partial reads here.
7647 * remote.h (remote_read_bytes): Delete declaration.
7649 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7651 Simplify XML parsing a bit.
7653 * xml-support.h (gdb_xml_parse_quick): Declare.
7654 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7655 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7657 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7658 gdb_xml_create_parser_and_cleanup_1.
7659 (gdb_xml_parse_quick): New.
7660 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7661 * osdata.c (osdata_parse): Ditto.
7662 * remote.c (remote_threads_info): Ditto.
7663 * solib-target.c (solib_target_parse_libraries): Ditto.
7664 * xml-syscall.c (syscall_parse_xml): Ditto.
7665 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7667 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7669 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7670 with remote-mips.o added to gdb_target_obs.
7671 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7673 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7675 * ada-valprint.c (val_print_packed_array_elements): Pass the
7676 correct struct value to val_print.
7677 (ada_val_print_1): Ditto.
7679 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7681 Don't lose embedded_offset in printing routines throughout.
7683 * valprint.h (val_print_array_elements): Change prototype.
7684 * valprint.c (val_print_array_elements): Add `embedded_offset'
7685 parameter, and adjust to pass it down to val_print, while passing
7686 `valaddr' or `address' unmodified. Take embedded_offset into
7687 account when checking repetitions.
7688 * c-valprint.c (c_val_print): Pass embedded_offset to
7689 val_print_array_elements instead of adjusting `valaddr' and
7691 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7692 embedded_offset to val_print_array_elements instead of adjusting
7694 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7695 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7696 val_print_array_elements and pascal_object_print_value_fields
7697 instead of adjusting `valaddr'.
7698 (pascal_object_print_value_fields): Add `offset' parameter, and
7700 (pascal_object_print_value): Add `offset' parameter, and adjust to
7702 (pascal_object_print_static_field): Use
7703 value_contents_for_printing/value_embedded_offset, rather than
7705 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7706 parameter, and adjust to use it. Use
7707 value_contents_for_printing/value_embedded_offset, rather than
7709 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7710 (ada_val_print_array): Add `offset' parameter, and adjust to use
7712 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7713 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7714 Instead work with offsets. Use
7715 value_contents_for_printing/value_embedded_offset, rather than
7716 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7717 and use value_from_pointer to extract a target pointer, rather
7718 than value_from_longest.
7719 (print_variant_part): Add `offset' parameter. Replace
7720 `outer_valaddr' parameter by a new `outer_offset' parameter.
7721 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7722 (ada_value_print): Use
7723 value_contents_for_printing/value_embedded_offset, rather than
7725 (print_record): Add `offset' parameter, and adjust to pass it
7727 (print_field_values): Add `offset' parameter. Replace
7728 `outer_valaddr' parameter by a new `outer_offset' parameter.
7729 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7730 Use value_contents_for_printing/value_embedded_offset, rather than
7732 * d-valprint.c (dynamic_array_type): Use
7733 value_contents_for_printing/value_embedded_offset, rather than
7735 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7736 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7737 (java_print_value_fields): Take `offset' into account. Don't
7738 re-adjust `valaddr'. Instead pass down adjusted offsets.
7739 (java_val_print): Take `embedded_offset' into account. Pass it to
7740 java_print_value_fields.
7741 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7742 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7743 down adjusted offsets.
7744 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7745 (f_val_print): Take `embedded_offset' into account.
7747 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7749 * inflow.c: Include "gdbcmd.h".
7750 (interactive_mode): New static global, moved here from top.c.
7751 (show_interactive_mode): New function, moved here from top.c.
7752 use gdb_has_a_terminal instead of input_from_terminal_p to
7753 determine the current mode.
7754 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7756 (_initialize_inflow): Add the "set/show interactive-mode"
7757 commands. Moved here from top.c, after having adjusted slightly
7759 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7761 (input_from_terminal_p): Remove handling of "interactive-mode"
7762 setting, moved to infow.c.
7763 (init_main): Remove creation of the "set/show interactive-mode"
7764 commands, moved to inflow.c.
7766 2011-01-19 Joel Brobecker <brobecker@adacore.com>
7768 * NEWS: Add entry for native ia64-hpux support.
7770 2011-01-19 Tom Tromey <tromey@redhat.com>
7773 * thread.c (free_thread): Free 'name'.
7774 (print_thread_info): Emit thread name. Change CLI output.
7775 (thread_name_command): New function.
7776 (do_captured_thread_select): Emit newline.
7777 (_initialize_thread): Register 'thread name' command.
7778 * target.h (struct target_ops) <to_thread_name>: New field.
7779 (target_thread_name): New macro.
7780 * target.c (update_current_target): Handle to_thread_name.
7781 * python/py-infthread.c (thpy_get_name): New function.
7782 (thpy_set_name): Likewise.
7783 (thread_object_getset): Add "name".
7784 * linux-nat.c (linux_nat_thread_name): New function.
7785 (linux_nat_add_target): Set to_thread_name.
7786 * gdbthread.h (struct thread_info) <name>: New field.
7788 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7790 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7791 (ada_val_print_1): Likewise.
7793 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7795 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7796 upper limit address is not greater than the function end address
7797 when the upper limit could not be computed using the debugging
7800 2011-01-17 Tom Tromey <tromey@redhat.com>
7802 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
7804 * utils.c: Include gdb_regex.h.
7805 (do_regfree_cleanup): New function.
7806 (make_regfree_cleanup): Likewise.
7807 (get_regcomp_error): Likewise.
7808 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
7810 2011-01-17 Tom Tromey <tromey@redhat.com>
7812 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
7815 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7817 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
7818 for internal variables.
7819 (last_was_structop): New static variable.
7820 (COMPLETE): New token.
7821 (field_exp): New rule to group all '.' suffix handling.
7822 Add mark_struct_expression calls when approriate to be able
7823 to correctly find fields for completion.
7824 (yylex): Adapt to handle field completion and set INTVAR when
7827 2011-01-14 Yao Qi <yao@codesourcery.com>
7829 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
7830 save_reggroup, restore_reggroup and all_reggroup.
7832 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7834 * ada-valprint. (ada_printchar): Use the correct type length
7835 in call to ada_emit_char.
7836 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
7838 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7840 * solib-som.h (hpux_major_release): Declare variable here.
7841 * solib-som.c: Remove <sys/utsname.h> header.
7842 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
7843 (hpux_major_release): Make global, change default value to
7844 DEFAULT_HPUX_MAJOR_RELEASE.
7845 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7846 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
7847 Add "solib-som.h" header.
7848 (set_hpux_major_release): New function.
7849 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
7851 2011-01-14 Mike Frysinger <vapier@gentoo.org>
7853 * configure.tgt (*-*-uclinux*): Match more Linux os targets
7855 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7857 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
7858 new-line at end of warning message.
7859 (ia64_hpux_store_register): Remove trailing new-line at end of
7861 * ia64-hpux-tdep.c: Rephrase comment.
7862 * solib-ia64-hpux.c (struct dld_info): Change type of field
7863 dld_flags from "long long" to ULONGEST.
7865 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7867 * target.h (deprecated_child_ops): Delete declaration.
7868 * target.c (deprecated_child_ops): Delete definition.
7870 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7872 * Makefile.in (hpux-thread.o): Delete rule.
7873 * configure.ac: Don't check for HPUX DCE threads support.
7874 * configure, config.in: Regenerate.
7875 * hppa-hpux-nat.c (child_suppress_run): Delete.
7876 (hppa_hpux_child_can_run): Delete.
7877 (_initialize_hppa_hpux_nat): Don't override to_can_run.
7878 * hpux-thread.c: Delete.
7880 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7882 * hpux-thread.c (hpux_pid_to_str): Delete.
7884 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7886 * ada-valprint.c (ada_emit_char): Remove strange code.
7887 Check that c is <= UCHAR_MAX before passing it to isascii.
7888 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
7890 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7892 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
7893 to the case where instream is stdin.
7895 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7897 * ia64-tdep.h (struct regcache): Forward declare.
7898 (struct ia64_infcall_ops): New struct type.
7899 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
7901 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
7902 Renames ia64_find_global_pointer.
7903 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
7904 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
7905 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
7907 (ia64_infcall_ops): New static global constant.
7908 (ia64_gdbarch_init): Set tdep->infcall_ops.
7909 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
7910 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
7911 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
7912 (ia64_hpux_dummy_code): New static global constant.
7913 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
7914 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
7915 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
7917 (ia64_hpux_infcall_ops): New static global constant.
7918 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
7919 for inferior function calls to work properly on ia64-hpux.
7921 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7923 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
7924 * ia64-tdep.h (struct frame_info): forward declaration.
7925 (struct gdbarch_tdep): Add field size_of_register_frame.
7926 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
7927 to determine the size of the register frame.
7928 (ia64_size_of_register_frame): New function.
7929 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
7930 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
7931 (IA64_HPUX_UREG_REASON): New macro.
7932 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
7934 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
7935 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
7936 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
7939 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7941 Add support for ia64-hpux.
7942 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
7943 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
7945 * configure.host: Add handling for ia64-hpux hosts. Add associated
7947 * configure.tgt: Add handling for ia64-hpux targets.
7948 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
7949 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
7950 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
7952 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7954 [ttrace] Compute thread list immediately after attach.
7955 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
7957 (inf_ttrace_attach): Use it.
7959 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7961 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
7962 if we could not determine the frame's function address. Instead,
7963 use the frame's PC, and then continue.
7965 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7967 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
7968 not already defined.
7970 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7972 * ia64-tdep.c (ia64_struct_type_p): New function.
7973 (ia64_extract_return_value): Handle integral values that are
7974 less than 8 bytes long.
7975 (ia64_push_dummy_call): Likewise.
7977 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7979 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
7980 floatformat_ia64_ext.
7981 (floatformat_ia64_ext_big): New static const.
7982 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
7984 2011-01-12 Tom Tromey <tromey@redhat.com>
7986 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
7988 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
7989 (mi_cmd_thread_list_ids): Likewise.
7990 (mi_cmd_data_list_changed_registers): Likewise.
7991 (mi_cmd_data_list_register_values): Likewise.
7992 (mi_cmd_data_write_register_values): Likewise.
7993 (mi_cmd_data_evaluate_expression): Likewise.
7994 (mi_cmd_data_read_memory): Likewise.
7995 (mi_cmd_data_read_memory_bytes): Likewise.
7996 (mi_cmd_data_write_memory): Likewise.
7997 (mi_cmd_enable_timings): Likewise.
7998 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
7999 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8000 (mi_cmd_var_delete): Likewise.
8001 (mi_cmd_var_set_format): Likewise.
8002 (mi_cmd_var_show_format): Likewise.
8003 (mi_cmd_var_info_num_children): Likewise.
8004 (mi_cmd_var_list_children): Likewise.
8005 (mi_cmd_var_info_type): Likewise.
8006 (mi_cmd_var_info_expression): Likewise.
8007 (mi_cmd_var_show_attributes): Likewise.
8008 (mi_cmd_var_assign): Likewise.
8009 (mi_cmd_var_update): Likewise.
8010 (mi_cmd_enable_pretty_printing): Likewise.
8011 (mi_cmd_var_set_update_range): Likewise.
8012 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8014 (mi_cmd_target_file_put): Likewise.
8015 (mi_cmd_target_file_delete): Likewise.
8016 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8018 (mi_cmd_stack_info_depth): Likewise.
8019 (mi_cmd_stack_list_locals): Likewise.
8020 (mi_cmd_stack_list_args): Likewise.
8021 (mi_cmd_stack_select_frame): Likewise.
8022 (mi_cmd_stack_select_frame): Likewise.
8023 (mi_cmd_stack_info_frame): Likewise.
8024 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8026 (mi_cmd_file_list_exec_source_files): Likewise.
8027 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8028 (mi_cmd_env_cd): Likewise.
8029 (mi_cmd_env_path): Likewise.
8030 (mi_cmd_env_dir): Likewise.
8031 (mi_cmd_inferior_tty_show): Likewise.
8032 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8033 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8034 (mi_cmd_break_watch): Likewise.
8036 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8038 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8039 (ppc_linux_insert_hw_breakpoint): Likewise.
8040 (ppc_linux_remove_hw_breakpoint): Likewise.
8041 (ppc_linux_insert_watchpoint): Likewise.
8043 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8044 Jan Kratochvil <jan.kratochvil@redhat.com>
8046 PR fortran/11104 and DWARF unbound arrays detection.
8047 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8048 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8049 unspecified upper bound.
8050 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8051 variables array_size_array, tmp_type and offset_item. New variable
8052 array. Remove call to f77_get_upperbound. New variables array_type
8053 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8054 the final call to deprecated_set_value_type.
8056 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8058 Make value allocations more lazy.
8059 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8060 instead of allocate_value and set_value_lazy when possible.
8061 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8062 instead of allocate_value and set_value_lazy.
8063 * findvar.c (value_of_register_lazy): Likewise.
8064 (read_var_value): Remove V preallocation, call just check_typedef in
8065 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8066 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8067 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8068 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8069 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8070 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8071 the end, remove set_value_lazy there.
8072 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8073 instead of allocate_value and set_value_lazy when possible.
8074 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8075 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8076 of allocate_value and set_value_lazy.
8077 (value_from_contents_and_address): Use allocate_value_lazy instead of
8078 allocate_value and set_value_lazy when possible.
8080 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8082 * disasm.c (dump_insns): Support dumping opcodes for MI.
8083 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8084 dumping of instruction opcodes.
8086 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8088 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8091 2011-01-11 Tom Tromey <tromey@redhat.com>
8093 * thread.c (do_captured_thread_select): Emit newline before
8096 2011-01-11 Michael Snyder <msnyder@vmware.com>
8098 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8099 * score-tdep.c: Ditto.
8100 * score-tdep.h: Ditto.
8101 * ser-base.c: Ditto.
8102 * ser-go32.c: Ditto.
8105 * ser-mingw.c: Ditto.
8106 * ser-pipe.c: Ditto.
8108 * ser-unix.c: Ditto.
8109 * sh64-tdep.c: Ditto.
8110 * shnbsd-nat.c: Ditto.
8114 * solib-darwin.c: Ditto.
8115 * solib-frv.c: Ditto.
8117 * solib-irix.c: Ditto.
8118 * solib-osf.c: Ditto.
8119 * solib-pa64.c: Ditto.
8120 * solib-som.c: Ditto.
8121 * solib-spu.c: Ditto.
8122 * solib-sunos.c: Ditto.
8123 * solib-svr4.c: Ditto.
8125 * sol-thread.c: Ditto.
8129 * sparc64-linux-tdep.c: Ditto.
8130 * sparc64-tdep.c: Ditto.
8131 * sparc-linux-nat.c: Ditto.
8132 * sparc-linux-tdep.c: Ditto.
8133 * sparc-sol2-nat.c: Ditto.
8134 * sparc-sol2-tdep.c: Ditto.
8135 * sparc-tdep.c: Ditto.
8136 * sparc-tdep.h: Ditto.
8137 * spu-tdep.c: Ditto.
8138 * stabsread.c: Ditto.
8139 * stabsread.h: Ditto.
8147 * target-descriptions.c: Ditto.
8148 * target-descriptions.h: Ditto.
8150 * target-memory.c: Ditto.
8151 * terminal.h: Ditto.
8154 * tracepoint.c: Ditto.
8155 * tracepoint.h: Ditto.
8156 * trad-frame.h: Ditto.
8157 * typeprint.c: Ditto.
8159 2011-01-11 Michael Snyder <msnyder@vmware.com>
8161 * ui-file.c: Comment cleanup, mostly periods and spaces.
8166 * v850-tdep.c: Ditto.
8167 * valarith.c: Ditto.
8169 * valprint.c: Ditto.
8170 * valprint.h: Ditto.
8175 * vax-tdep.c: Ditto.
8179 * windows-nat.c: Ditto.
8180 * windows-tdep.c: Ditto.
8181 * xcoffread.c: Ditto.
8182 * xcoffsolib.c: Ditto.
8183 * xml-support.c: Ditto.
8184 * xstormy16-tdep.c: Ditto.
8185 * xtensa-tdep.c: Ditto.
8186 * xtensa-tdep.h: Ditto.
8188 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8190 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8191 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8193 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8194 Thiago Jung Bauermann <bauerman@br.ibm.com>
8196 Implement support for PowerPC BookE ranged watchpoints.
8198 (struct breakpoint_ops) <resources_needed>: New method.
8199 Initialize to NULL in all existing breakpoint_ops instances.
8200 (struct breakpoint) <exact>: New field.
8201 (target_exact_watchpoints): Declare external global.
8202 * breakpoint.c (target_exact_watchpoints): New global flag.
8203 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8204 b->enable_state to bp_enabled before calling
8205 hw_watchpoint_used_count.
8206 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8207 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8209 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8210 if the watchpoint is exact.
8211 (resources_needed_watchpoint): New function.
8212 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8213 (watch_command_1): Set b->exact if the user asked for an exact
8214 watchpoint and one can be set.
8215 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8216 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8217 the user asks for an exact watchpoint and one can be set. Return
8218 number of needed debug registers to watch the expression.
8219 * gdbtypes.c (is_scalar_type): New function, based on
8220 valprint.c:scalar_type_p.
8221 (is_scalar_type_recursive): New function.
8222 * gdbtypes.h (is_scalar_type_recursive): Declare.
8223 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8224 handle regions when ranged watchpoints are available.
8225 (create_watchpoint_request): New function.
8226 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8227 create_watchpoint_request.
8228 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8229 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8230 `set powerpc' and `show powerpc' commands.
8231 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8232 Mention documentation comment in the target macro.
8233 (target_region_ok_for_hw_watchpoint): Document return value.
8235 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8237 * breakpoint.c (update_watchpoint): Decide on using a software or
8238 hardware watchpoint after the bp_locations are created.
8240 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8242 Convert hardware watchpoints to use breakpoint_ops.
8243 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8244 <insert_location>: ... this. Return int instead of void.
8245 Accept pointer to struct bp_location instead of pointer to
8246 struct breakpoint. Adapt all implementations.
8247 (breakpoint_ops) <remove>: Rename to...
8248 <remove_location>: ... this. Accept pointer to struct bp_location
8249 instead of pointer to struct breakpoint. Adapt all implementations.
8250 * breakpoint.c (insert_catchpoint): Delete function.
8251 (insert_bp_location): Call the watchpoint or catchpoint's
8252 breakpoint_ops.insert method.
8253 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8254 breakpoint_ops.remove method.
8255 (insert_watchpoint, remove_watchpoint): New functions.
8256 (watchpoint_breakpoint_ops): New structure.
8257 (watch_command_1): Initialize the OPS field.
8258 * inf-child.c (inf_child_insert_fork_catchpoint)
8259 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8260 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8261 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8263 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8264 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8265 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8266 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8267 * target.c (update_current_target): Change default implementation of
8268 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8269 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8270 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8271 to_set_syscall_catchpoint to return_one.
8272 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8273 (debug_to_insert_exec_catchpoint): Report return value.
8274 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8275 (to_insert_exec_catchpoint): Change declaration to return int instead
8278 2011-01-11 Michael Snyder <msnyder@vmware.com>
8280 * arm-tdep.c: Internationalization.
8283 * fork-child.c: Ditto.
8284 * nto-procfs.c: Ditto.
8285 * ppc-sysv-tdep.c: Ditto.
8287 * remote-mips.c: Ditto.
8289 * rs6000-nat.c: Ditto.
8290 * rs6000-tdep.c: Ditto.
8294 * xml-support.c: Ditto.
8295 * mi/mi-cmd-break.c: Ditto.
8296 * mi/mi-cmd-var.c: Ditto.
8297 * mi/mi-interp.c: Ditto.
8298 * mi/mi-main.c: Ditto.
8300 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8302 * remote-sim.c (gdbsim_store_register): Update API to
8303 sim_store_register to check more error conditions.
8305 2011-01-10 Michael Snyder <msnyder@vmware.com>
8307 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8308 * nto-tdep.c: Ditto.
8309 * nto-tdep.h: Ditto.
8310 * objc-exp.y: Ditto.
8311 * objc-lang.c: Ditto.
8312 * objfiles.c: Ditto.
8313 * objfiles.h: Ditto.
8314 * observer.c: Ditto.
8315 * opencl-lang.c: Ditto.
8318 * parser-defs.h: Ditto.
8321 * posix-hdep.c: Ditto.
8322 * ppcbug-rom.c: Ditto.
8323 * ppc-linux-nat.c: Ditto.
8324 * ppc-linux-tdep.c: Ditto.
8325 * ppc-linux-tdep.h: Ditto.
8326 * ppcnbsd-tdep.c: Ditto.
8327 * ppcobsd-tdep.c: Ditto.
8328 * ppcobsd-tdep.h: Ditto.
8329 * ppc-sysv-tdep.c: Ditto.
8330 * ppc-tdep.h: Ditto.
8331 * printcmd.c: Ditto.
8332 * proc-abi.c: Ditto.
8333 * proc-flags.c: Ditto.
8335 * proc-utils.h: Ditto.
8336 * progspace.h: Ditto.
8337 * prologue-value.c: Ditto.
8338 * prologue-value.h: Ditto.
8339 * psympriv.h: Ditto.
8341 * p-typeprint.c: Ditto.
8342 * p-valprint.c: Ditto.
8343 * ravenscar-sparc-thread.c: Ditto.
8344 * ravenscar-thread.c: Ditto.
8345 * ravenscar-thread.h: Ditto.
8347 * regcache.c: Ditto.
8348 * regcache.h: Ditto.
8350 * remote-fileio.c: Ditto.
8351 * remote-fileio.h: Ditto.
8353 * remote-m32r-sdi.c: Ditto.
8354 * remote-mips.c: Ditto.
8355 * remote-sim.c: Ditto.
8356 * rs6000-aix-tdep.c: Ditto.
8357 * rs6000-nat.c: Ditto.
8358 * rs6000-tdep.c: Ditto.
8360 2011-01-10 Michael Snyder <msnyder@vmware.com>
8362 * charset.c (validate): Internationalization.
8363 * coffread.c (read_one_sym): Ditto.
8364 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8365 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8366 * inflow.c (new_tty): Ditto.
8367 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8368 * m32c-tdep.c (m32c_return_value): Ditto.
8369 * mep-tdep.c (mep_store_return_value): Ditto.
8370 * score-tdep.c (score7_fetch_insn): Ditto.
8371 * ser-mingw.c (pipe_windows_open): Ditto.
8372 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8373 * spu-tdep.c (spu_register_type): Ditto.
8374 * tracepoint.c (trace_find_command): Ditto.
8375 * valarith.c (value_pos): Ditto.
8377 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8379 * ada-valprint.c (printstr): Minor comment reformatting.
8381 2011-01-08 Michael Snyder <msnyder@vmware.com>
8383 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8386 2011-01-08 Michael Snyder <msnyder@vmware.com>
8388 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8389 * hppa-hpux-tdep.c: Ditto.
8390 * hppa-linux-nat.c: Ditto.
8391 * hppa-linux-tdep.c: Ditto.
8392 * hppanbsd-tdep.c: Ditto.
8393 * hppa-tdep.c: Ditto.
8394 * hppa-tdep.h: Ditto.
8395 * hpux-thread.c: Ditto.
8396 * i386-cygwin-tdep.c: Ditto.
8397 * i386-darwin-nat.c: Ditto.
8398 * i386gnu-nat.c: Ditto.
8399 * i386-linux-nat.c: Ditto.
8400 * i386-linux-tdep.c: Ditto.
8401 * i386-nat.c: Ditto.
8402 * i386-nat.h: Ditto.
8403 * i386nbsd-tdep.c: Ditto.
8404 * i386-sol2-nat.c: Ditto.
8405 * i386-stub.c: Ditto.
8406 * i386-tdep.c: Ditto.
8407 * i386-tdep.h: Ditto.
8408 * i387-tdep.c: Ditto.
8409 * ia64-linux-nat.c: Ditto.
8410 * ia64-linux-tdep.c: Ditto.
8411 * ia64-tdep.c: Ditto.
8415 * inferior.c: Ditto.
8416 * inferior.h: Ditto.
8422 * iq2000-tdep.c: Ditto.
8423 * irix5-nat.c: Ditto.
8429 * jv-typeprint.c: Ditto.
8430 * jv-valprint.c: Ditto.
8431 * language.c: Ditto.
8432 * language.h: Ditto.
8433 * linespec.c: Ditto.
8434 * linux-fork.c: Ditto.
8435 * linux-nat.c: Ditto.
8436 * linux-thread-db.c: Ditto.
8437 * lm32-tdep.c: Ditto.
8439 2011-01-08 Michael Snyder <msnyder@vmware.com>
8441 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8443 * m2-typeprint.c: Ditto.
8444 * m2-valprint.c: Ditto.
8445 * m32c-tdep.c: Ditto.
8446 * m32r-linux-nat.c: Ditto.
8447 * m32r-rom.c: Ditto.
8448 * m32r-tdep.c: Ditto.
8449 * m32r-tdep.h: Ditto.
8450 * m68hc11-tdep.c: Ditto.
8451 * m58klinux-nat.c: Ditto.
8452 * m68k-tdep.c: Ditto.
8453 * m88k-tdep.c: Ditto.
8454 * m88k-tdep.h: Ditto.
8455 * machoread.c: Ditto.
8456 * macrocmd.c: Ditto.
8457 * macroexp.c: Ditto.
8458 * macrotab.c: Ditto.
8461 * mdebugread.c: Ditto.
8462 * mdebugread.h: Ditto.
8465 * memory-map.h: Ditto.
8466 * mep-tdep.c: Ditto.
8467 * microblaze-rom.c: Ditto.
8468 * microblaze-tdep.c: Ditto.
8470 * mips-irix-tdep.c: Ditto.
8471 * mips-linux-nat.c: Ditto.
8472 * mips-linux-tdep.c: Ditto.
8473 * mips-linux-tdep.h: Ditto.
8474 * mipsnbsd-nat.c: Ditto.
8475 * mipsnbsd-tdep.c: Ditto.
8476 * mipsread.c: Ditto.
8477 * mips-tdep.c: Ditto.
8478 * mips-tdep.h: Ditto.
8479 * mn10300-linux-tdep.c: Ditto.
8480 * mn10300-tdep.c: Ditto.
8481 * mn10300-tdep.h: Ditto.
8484 * moxie-tdep.c: Ditto.
8485 * moxie-tdep.h: Ditto.
8488 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8490 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8492 2011-01-08 Robert Millan <rmh@gnu.org>
8494 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8496 2011-01-07 Michael Snyder <msnyder@vmware.com>
8498 * charset.c (_initialize_charset): Fix typo in string.
8500 2011-01-07 Michael Snyder <msnyder@vmware.com>
8502 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8504 * tui/tui-layout.c (tui_set_layout_for_display_command):
8505 Split line so that operator goes to beginning of line.
8506 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8507 assignment out of if statement.
8509 2011-01-07 Michael Snyder <msnyder@vmware.com>
8511 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8512 * ada-lang.h: Ditto.
8513 * ada-tasks.c: Ditto.
8514 * ada-valprint.c: Ditto.
8515 * aix-threads.c: Ditto.
8516 * alpha-linux-nat.c: Ditto.
8517 * alpha-linux-tdep.c: Ditto.
8518 * alpha-mdebug-tdep.c: Ditto.
8519 * alpha-nat.c: Ditto.
8520 * alpha-osf1-tdep.c: Ditto.
8521 * alpha-tdep.c: Ditto.
8522 * alphabsd-nat.c: Ditto.
8523 * alphabsd-tdep.c: Ditto.
8524 * amd64-darwin-tdep.c: Ditto.
8525 * amd64-linux-nat.c: Ditto.
8526 * amd64-linux-tdep.c: Ditto.
8527 * amd64-sol2-tdep.c: Ditto.
8528 * amd64-tdep.c: Ditto.
8529 * amd64-fbsd-tdep.c: Ditto.
8530 * amd64-nbsd-tdep.c: Ditto.
8531 * amd64-obsd-tdep.c: Ditto.
8532 * amd64-linux-nat.c: Ditto.
8533 * amd64-linux-tdep.c: Ditto.
8534 * arm-tdep.c: Ditto.
8535 * arm-tdep.h: Ditto.
8536 * armnbsd-nat.c: Ditto.
8537 * avr-tdep.c: Ditto.
8538 * bfin-tdep.c: Ditto.
8540 * c-typeprintc: Ditto.
8541 * c-valprint.c: Ditto.
8542 * coff-pe-read.h: Ditto.
8543 * coffreead.c: Ditto.
8544 * cris-tdep.c: Ditto.
8546 * darwin-nat-info.c: Ditto.
8547 * darwin-nat.c: Ditto.
8548 * dbug-rom.c: Ditto.
8552 * dec-thread.c: Ditto.
8554 * demangle.c: Ditto.
8555 * dicos-tdep.c: Ditto.
8556 * dictionary.c: Ditto.
8557 * dictionary.h: Ditto.
8558 * dink32-rom.c: Ditto.
8560 * doublest.c: Ditto.
8562 * dummy-frame.c: Ditto.
8563 * dwarf2-frame.c: Ditto.
8564 * dwarf2expr.c: Ditto.
8565 * dwarf2loc.c: Ditto.
8566 * dwarf2read.c: Ditto.
8570 * event-top.h: Ditto.
8571 * exceptions.c: Ditto.
8572 * exceptions.h: Ditto.
8574 * expprint.c: Ditto.
8575 * expression.h: Ditto.
8579 * f-typeprint.c: Ditto.
8580 * f-valprint.c: Ditto.
8581 * fbsd-nat.c: Ditto.
8583 * fork-child.c: Ditto.
8586 * frv-linux-tdep.c: Ditto.
8587 * frv-tdep.c: Ditto.
8589 * gdb-stabs.h: Ditto.
8590 * gdb_assert.h: Ditto.
8591 * gdb_string.h: Ditto.
8592 * gdb_thread_db.h: Ditto.
8593 * gdb_wait.h: Ditto.
8594 * gdbarch.sh: Ditto.
8596 * gdbthread.h: Ditto.
8597 * gdbtypes.c: Ditto.
8598 * gdbtypes.h: Ditto.
8601 * gnu-v2-abi.c: Ditto.
8602 * gnu-v3-abi.c: Ditto.
8603 * go32-nat.c: Ditto.
8604 * gdbarch.c: Regenerate.
8605 * gdbarch.h: Regenerate.
8607 2011-01-07 Michael Snyder <msnyder@vmware.com>
8609 * ax-gdb.c: Adjust some long output strings.
8610 * breakpoint.c: Ditto.
8615 * linux-nat.c: Ditto.
8616 * solib-pa64.c: Ditto.
8617 * solib-som.c: Ditto.
8619 2011-01-06 Tom Tromey <tromey@redhat.com>
8623 * python/python.c (GdbMethods): Add "newest_frame" method.
8624 * python/python-internal.h (gdbpy_newest_frame): Declare.
8625 * python/py-frame.c (gdbpy_newest_frame): New function.
8627 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8629 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8630 * jit.c (jit_debug): New variable.
8631 (show_jit_debug): New function.
8632 (struct target_buffer): Use ULONGEST.
8633 (bfd_open_from_target_memory): Likewise.
8634 (jit_register_code, jit_inferior_init): Add debug output.
8635 (_initialize_jit): Register "debug jit" command.
8637 2011-01-06 Tom Tromey <tromey@redhat.com>
8639 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8640 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8643 2011-01-06 Tom Tromey <tromey@redhat.com>
8645 * python/py-frame.c (frapy_block): Use get_frame_block.
8647 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8649 Do not stop on SIGPRIO signals by default
8650 * infrun.c (_initialize_infrun): Unset signal_stop and
8651 signal_print for TARGET_SIGNAL_PRIO.
8653 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8655 * ada-tasks.c: Fix style violation in comment.
8657 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8659 * linespec.c (decode_compound, find_method): Remove trailing \n
8660 at end of error string.
8661 * solib-irix.c (irix_current_sos): Likewise.
8662 * varobj.c (uninstall_variable): Likewise.
8664 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8666 * copyright.py: New script.
8667 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8668 Launch emacs without exec'ing. Call copyright.py afterwards.
8670 2011-01-05 Michael Snyder <msnyder@vmware.com>
8672 * addrmap.c: Shorten lines of >= 80 columns.
8673 * arch-utils.c: Ditto.
8674 * arch-utils.h: Ditto.
8676 * ax-general.c: Ditto.
8678 * blockframe.c: Ditto.
8679 * breakpoint.c: Ditto.
8680 * buildsym.c: Ditto.
8682 * c-typeprint.c: Ditto.
8684 * coffread.c: Ditto.
8688 * cp-namespace.c: Ditto.
8689 * cp-support.c: Ditto.
8690 * dbug-rom.c: Ditto.
8695 * dictionary.c: Ditto.
8697 * doublest.c: Ditto.
8698 * dwarf2-frame.c: Ditto.
8699 * dwarf2expr.c: Ditto.
8700 * dwarf2loc.c: Ditto.
8701 * dwarf2read.c: Ditto.
8704 * event-loop.c: Ditto.
8705 * event-loop.h: Ditto.
8706 * exceptions.h: Ditto.
8708 * expprint.c: Ditto.
8709 * expression.h: Ditto.
8711 * f-valprint.c: Ditto.
8713 * frame-base.c: Ditto.
8714 * frame-unwind.c: Ditto.
8715 * frame-unwind.h: Ditto.
8719 * gdb-stabs.h: Ditto.
8720 * gdb_assert.h: Ditto.
8721 * gdb_dirent.h: Ditto.
8722 * gdb_obstack.h: Ditto.
8724 * gdbtypes.c: Ditto.
8725 * gdbtypes.h: Ditto.
8726 * inf-ttrace.c: Ditto.
8731 * inline-frame.h: Ditto.
8732 * language.c: Ditto.
8733 * language.h: Ditto.
8734 * libunwind-frame.c: Ditto.
8735 * libunwind-frame.h: Ditto.
8736 * linespec.c: Ditto.
8737 * linux-nat.c: Ditto.
8738 * linux-nat.h: Ditto.
8739 * linux-thread-db.c: Ditto.
8740 * machoread.c: Ditto.
8741 * macroexp.c: Ditto.
8742 * macrotab.c: Ditto.
8745 * mdebugread.c: Ditto.
8750 * objfiles.c: Ditto.
8751 * objfiles.h: Ditto.
8753 * p-typeprint.c: Ditto.
8754 * p-valprint.c: Ditto.
8756 * printcmd.c: Ditto.
8757 * proc-events.c: Ditto.
8759 * progspace.c: Ditto.
8760 * progspace.h: Ditto.
8761 * psympriv.h: Ditto.
8764 * regcache.c: Ditto.
8765 * regcache.h: Ditto.
8766 * remote-fileio.c: Ditto.
8768 * ser-mingw.c: Ditto.
8770 * ser-unix.c: Ditto.
8773 * solib-frv.c: Ditto.
8774 * solib-irix.c: Ditto.
8775 * solib-osf.c: Ditto.
8776 * solib-pa64.c: Ditto.
8777 * solib-som.c: Ditto.
8778 * solib-sunos.c: Ditto.
8779 * solib-svr4.c: Ditto.
8780 * solib-target.c: Ditto.
8784 * stabsread.c: Ditto.
8785 * stabsread.c: Ditto.
8788 * symfile-mem.c: Ditto.
8794 * target-descriptions.c: Ditto.
8795 * target-memory.c: Ditto.
8798 * terminal.h: Ditto.
8801 * tracepoint.c: Ditto.
8802 * tracepoint.h: Ditto.
8806 * user-regs.c: Ditto.
8807 * user-regs.h: Ditto.
8809 * valarith.c: Ditto.
8811 * valprint.c: Ditto.
8812 * valprint.h: Ditto.
8817 * xcoffread.c: Ditto.
8818 * xcoffsolib.c: Ditto.
8819 * xcoffsolib.h: Ditto.
8820 * xml-syscall.c: Ditto.
8821 * xml-tdesc.c: Ditto.
8823 2011-01-05 Michael Snyder <msnyder@vmware.com>
8825 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
8826 * cli/cli-decode.c: Ditto.
8827 * cli/cli-dump.c: Ditto.
8828 * cli/cli-logging.c: Ditto.
8829 * cli/cli-script.c: Ditto.
8830 * cli/cli-setshow.c: Ditto.
8831 * common/signals.c: Ditto.
8832 * mi/mi-cmd-break.c: Ditto.
8833 * mi/mi-cmd-disas.c: Ditto.
8834 * mi/mi-cmd-stack.c: Ditto.
8835 * mi/mi-cmd-var.c: Ditto.
8836 * mi/mi-cmds.c: Ditto.
8837 * mi/mi-common.h: Ditto.
8838 * mi/mi-console.c: Ditto.
8839 * mi/mi-interp.c: Ditto.
8840 * mi/mi-main.c: Ditto.
8841 * osf-share/cma_attr.c: Ditto.
8842 * osf-share/cma_deb_core.h: Ditto.
8843 * osf-share/cma_debug_client.h: Ditto.
8844 * osf-share/cma_handle.h: Ditto.
8845 * osf-share/cma_mutex.h: Ditto.
8846 * osf-share/cma_stack_int.h: Ditto.
8847 * osf-share/cma_tcb_defs.h: Ditto.
8848 * python/py-auto-load.c: Ditto.
8849 * python/py-breakpoint.c: Ditto.
8850 * python/py-cmd.c: Ditto.
8851 * python/py-frame.c: Ditto.
8852 * python/py-objfile.c: Ditto.
8853 * python/py-param.c: Ditto.
8854 * python/py-progspace.c: Ditto.
8855 * python/py-symbol.c: Ditto.
8856 * python/py-value.c: Ditto.
8857 * python/python-internal.h: Ditto.
8858 * python/python.c: Ditto.
8859 * tui/tui-data.c: Ditto.
8860 * tui/tui-disasm.c: Ditto.
8861 * tui/tui-hooks.c: Ditto.
8862 * tui/tui-io.c: Ditto.
8863 * tui/tui-layout.c: Ditto.
8864 * tui/tui-regs.c: Ditto.
8865 * tui/tui-source.c: Ditto.
8866 * tui/tui-stack.c: Ditto.
8867 * tui/tui-win.c: Ditto.
8868 * tui/tui-windata.c: Ditto.
8869 * tui/tui-winsource.c: Ditto.
8871 2011-01-05 Joel Brobecker <brobecker@adacore.com>
8873 * configure.ac, gdb.1: Copyright year update.
8875 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8877 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
8878 this_pc_in_block, morestack_msym and morestack_name. Check for
8879 "__morestack" minimal symbol there.
8881 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8883 * symfile.c (find_sym_fns): Add call to dont_repeat.
8885 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8887 Copyright year update in most files (performed by copyright.sh).
8889 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8891 * top.c (print_gdb_version): Update copyright year in version output.
8893 For older changes see ChangeLog-2010.
8899 version-control: never