1 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
4 * linux-nat.c: Include linux-procfs.h.
5 (linux_proc_get_tgid): Move to ...
6 * common/linux-procfs.c: ... here. New file.
7 * common/linux-procfs.h: New file.
8 * linux-thread-db.c: Include linux-procfs.h.
9 * Makefile.in: Update dependencies.
10 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
11 * config/arm/linux.mh: Likewise.
12 * config/i386/linux.mh: Likewise.
13 * config/i386/linux64.mh: Likewise.
14 * config/ia64/linux.mh: Likewise.
15 * config/m32r/linux.mh: Likewise.
16 * config/m68k/linux.mh: Likewise.
17 * config/mips/linux.mh: Likewise.
18 * config/pa/linux.mh: Likewise.
19 * config/pa/linux.mh: Likewise.
20 * config/powerpc/linux.mh: Likewise.
21 * config/powerpc/ppc64-linux.mh: Likewise.
22 * config/powerpc/spu-linux.mh: Likewise.
23 * config/sparc/linux.mh: Likewise.
24 * config/sparc/linux64.mh: Likewise.
25 * config/xtensa/linux.mh: Likewise.
27 2011-08-24 Hui Zhu <teawater@gmail.com>
29 * tracepoint.c (cond_string_is_same): New function.
30 (find_matching_tracepoint): Add condition check
31 by cond_string_is_same.
33 2011-08-23 Josh Matthews <josh@joshmatthews.net>
35 Fix build error in Darwin port.
36 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
38 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
41 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
42 (command_line_is_silent): New function.
43 (bpstat_do_actions_1): No longer use commands_left, use
44 command_line_is_silent for commands.
45 (bpstat_alloc): Remove clearing of commands_left.
46 (bpstat_stop_status): Remove initialization of commands_left, use
47 command_line_is_silent.
48 * breakpoint.h (struct bpstats): Remove commands_left.
50 2011-08-18 Keith Seitz <keiths@redhat.com>
53 * cp-name-parser.y (struct demangle_info): Remove unused
56 (allocate_info): Change return type to struct demangle_info *.
57 Always allocate a new demangle_info.
58 Remove unused PREV pointer.
59 (cp_new_demangle_parse_info): New function.
60 (cp_demangled_name_parse_free): New function.
61 (do_demangled_name_parse_free_cleanup): New function.
62 (make_cleanup_cp_demangled_name_parse_free): New function.
63 (cp_demangled_name_to_comp): Change return type to
64 struct demangle_parse_info *.
65 Allocate a new storage for each call.
66 (main): Update usage for cp_demangled_name_to_comp
68 * cp-support.h (struct demangle_parse_info): New structure.
69 (cp_demangled_name_to_comp): Update API change for
71 (cp_new_demangle_parse_info): Declare.
72 (make_cleanup_cp_demangled_name_parse_free): New declaration.
73 (cp_demangled_name_parse_free): Declare.
74 * cp-support.c (cp_canonicalize_string): Update API
75 change for cp_demangled_name_to_comp.
76 (mangled_name_to_comp): Likewise.
77 Return struct demangle_parse_info, too.
78 (cp_class_name_from_physname): Update mangled_name_to_comp
80 (method_name_from_physname): Likewise.
81 (cp_func_name): Update API change for cp_demangled_name_to_comp.
82 (cp_remove_params): Likewise.
83 * python/py-type.c (typy_legacy_template_argument): Likewise.
85 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
86 (cp_merge_demangle_parse_infos): Declare.
87 * cp-support.c (ignore_typedefs): New file global.
88 (copy_string_to_obstack): New function.
89 (inspect_type): New function.
90 (replace_typedefs): New function.
91 (replace_typedefs_qualified_name): New function.
92 (cp_canonicalize_string_no_typedefs): New function.
93 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
94 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
95 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
96 instead of cp_canonicalize_string.
97 (find_method): Likewise.
98 (decode_compound): Before looking up the name, call
99 cp_canonicalize_string_no_typedefs.
100 (decode_variable): Likewise.
102 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
103 Tom Tromey <tromey@redhat.com>
104 Matt Rice <ratmice@gmail.com>
106 * python/lib/gdb/prompt.py: New file.
107 * python/lib/gdb/command/prompt.py: New file.
108 * NEWS: Document set extended-prompt and gdb.prompt library
110 2011-08-16 Yao Qi <yao@codesourcery.com>
112 * tic6x-linux-tdep.c: Move const arrays definition from here...
113 * tic6x-tdep.c: to here ...
115 2011-08-14 Yao Qi <yao@codesourcery.com>
117 * NEWS: New port to Texas Instruments TMS320C6x.
119 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
120 Bernd Schmidt <bernds@codesourcery.com>
121 Yao Qi <yao@codesourcery.com>
123 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
124 * solib-dsbt.c: New file. Support DSBT shared object.
125 * tic6x-linux-tdep.c: New file.
126 * tic6x-tdep.c: New file.
127 * tic6x-tdep.h: New file.
129 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
130 Yao Qi <yao@codesourcery.com>
132 * remote.c (PACKET_qXfer_fdpic): New enum value.
133 (remote_protocol_features): Add qXfer:fdpic:read packet.
134 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
135 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
136 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
138 2011-08-14 Yao Qi <yao@codesourcery.com>
140 Target description for tic6x.
141 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
142 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
143 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
144 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
145 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
146 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
147 * features/tic6x-c64xp-linux.xml: New.
148 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
149 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
150 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
151 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
152 * regformats/tic6x-c64xp.dat,
153 regformats/tic6x-c62x-linux.dat: Generated.
154 * regformats/tic6x-c64x-linux.dat,
155 regformats/tic6x-c64xp-linux.dat: Generated.
156 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
157 features/tic6x-*.c files.
158 Add regformats/tic6x-*.dat files.
160 2011-08-12 Doug Evans <dje@google.com>
162 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
163 * python/py-symbol.c (sympy_get_type): New function.
164 (symbol_object_getset): Add "type".
166 2011-08-12 Pedro Alves <pedro@codesourcery.com>
170 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
172 (tui_show_register_group): Don't store a byte buffer in the data
174 (tui_register_format): Skip registers with an empty name.
175 (tui_get_register): Store a struct value in the data element's
176 value field instead of a byte buffer holding the raw register
177 contents. Account for optimized-out and unavailable registers
178 when comparing register contents.
180 2011-08-09 Pedro Alves <pedro@codesourcery.com>
182 * printcmd.c (current_display_number): Update comment.
183 (disable_current_display_cleanup): Delete.
184 (do_one_display): Use make_cleanup_restore_integer. Gracefully
185 catch errors thrown while evaluating and printing the display.
187 2011-08-09 Tom Tromey <tromey@redhat.com>
189 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
191 2011-08-09 Pedro Alves <pedro@codesourcery.com>
193 * elfread.c (elf_symtab_read): Rework comments.
194 * maint.c (maintenance_command): Ditto.
195 * somread.c (som_symtab_read): Ditto.
196 * solib.c (solib_find, solib_map_sections, update_solib_list)
197 (solib_add, info_sharedlibrary_command, solib_name_from_address)
198 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
199 (sharedlibrary_command, no_shared_libraries): Ditto.
200 * solib-irix.c (locate_base, disable_break, enable_break)
201 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
202 (irix_current_sos, irix_open_symbol_file_object)
203 (irix_special_symbol_handling): Ditto.
204 * solib-sunos.c (locate_base, first_link_map_member)
205 (sunos_current_sos, disable_break, enable_break)
206 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
208 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
209 (open_symbol_file_object, svr4_current_sos, enable_break)
210 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
212 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
213 (frv_current_sos, enable_break, frv_special_symbol_handling)
214 (frv_solib_create_inferior_hook): Ditto.
215 * solist.h (struct target_so_ops): Extend the comments of the
216 special_symbol_handling, current_sos and open_symbol_file_object
219 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
221 * python/lib/gdb/__init__.py: Auto-load files in command and
222 function directories.
223 * python/python.c (finish_python_initialization): Use
225 * python/lib/gdb/command/pretty_printers.py: Self register
227 * NEWS: Document auto-loading.
229 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
231 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
232 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
233 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
235 2011-08-08 Tom Tromey <tromey@redhat.com>
237 * breakpoint.c (clean_up_filters): Remove.
238 (catch_syscall_split_args): Use VEC_cleanup.
240 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
242 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
243 (main): Uncomment "Demangling error\n".
245 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
247 * solib-target.c (segment_attributes): Make them static.
248 (section_attributes, library_children, library_attributes): Likewise.
249 (library_list_children, library_list_attributes): Likesise.
250 (library_list_elements): Likewise.
252 2011-08-05 Pedro Alves <pedro@codesourcery.com>
254 * exceptions.c (throw_exception): Don't disable the current
256 * printcmd.c (disable_current_display_cleanup): New function.
257 (do_one_display): Install a cleanup to disable the current display
258 if doing the display throws.
260 2011-08-05 Eli Zaretskii <eliz@gnu.org>
262 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
263 initialization of the tp_new member to the corresponding
264 gdbpy_initialize_* function.
265 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
266 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
267 * python/py-function.c (gdbpy_initialize_functions): Likewise.
268 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
269 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
271 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
273 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
274 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
275 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
276 references to current_uiout.
278 2011-08-04 Pedro Alves <pedro@codesourcery.com>
280 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
281 (start_event_loop): Use TRY_CATCH instead of catch_errors.
282 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
283 * top.c (gdb_readline_wrapper): Adjust.
284 * tui/tui-interp.c (tui_command_loop):
285 (_initialize_tui_interp): Don't install it.
287 2011-08-04 Pedro Alves <pedro@codesourcery.com>
289 * ui-out.h (uiout): Rename to ...
290 (current_uiout): ... this.
291 * ui-out.c (uiout): Rename to ...
292 (current_uiout): ... this.
293 * ada-lang.c (print_it_exception, print_one_exception)
294 (print_mention_exception): Adjust.
295 * breakpoint.c (watchpoint_check): Adjust.
296 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
297 (default_collect_info, watchpoints_info, print_one_catch_fork)
298 (print_one_catch_vfork, print_one_catch_syscall)
299 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
300 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
301 (print_it_watchpoint, print_mention_watchpoint)
302 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
303 (print_it_exception_catchpoint, print_one_exception_catchpoint)
304 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
305 (bkpt_print_mention, momentary_bkpt_print_it)
306 (tracepoint_print_mention, update_static_tracepoint)
307 (tracepoints_info, save_breakpoints): Adjust.
308 * cli-out.c (field_separator): Adjust.
309 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
310 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
311 * frame.c (get_current_frame): Adjust.
312 * infcmd.c (run_command_1, print_return_value): Adjust.
313 * inferior.c (inferior_command, info_inferiors_command): Adjust.
314 * infrun.c (print_end_stepping_range_reason): Adjust.
315 (print_signal_exited_reason, print_exited_reason): Adjust.
316 (print_signal_received_reason, print_no_history_reason): Adjust.
317 * interps.c (interp_set): Adjust.
318 * osdata.c (info_osdata_command): Adjust.
319 * progspace.c (maintenance_info_program_spaces_command): Adjust.
320 * remote-fileio.c (remote_fileio_request): Adjust.
321 * remote.c (show_remote_cmd): Adjust.
322 * solib.c (info_sharedlibrary_command): Adjust.
323 * source.c (print_source_lines_base): Adjust.
324 * stack.c (print_stack_frame): Adjust.
325 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
326 * symfile-mem.c (add_vsyscall_page): Adjust.
327 * symfile.c (load_progress, generic_load)
328 (print_transfer_performance): Adjust.
329 * thread.c (info_threads_command, restore_selected_frame)
330 (thread_command): Adjust.
331 * top.c (make_cleanup_restore_ui_file): Adjust.
332 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
333 (print_one_static_tracepoint_marker): Adjust.
334 * cli/cli-cmds.c (print_disassembly): Adjust.
335 * cli/cli-decode.c (print_doc_line): Adjust.
336 * cli/cli-interp.c (safe_execute_command): Adjust.
337 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
338 (handle_redirections): Adjust.
339 * cli/cli-script.c (show_user_1): Adjust.
340 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
341 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
342 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
343 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
344 (mi_cmd_env_dir): Adjust.
345 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
346 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
347 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
348 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
349 (list_args_or_locals): Adjust.
350 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
351 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
352 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
353 (mi_cmd_var_list_children, mi_cmd_var_info_type)
354 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
355 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
356 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
357 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
358 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
359 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
360 (list_available_thread_groups, mi_cmd_list_thread_groups)
361 (mi_cmd_data_list_register_names)
362 (mi_cmd_data_list_changed_registers)
363 (mi_cmd_data_list_register_values, get_register)
364 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
365 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
366 (mi_cmd_list_target_features, mi_cmd_add_inferior)
367 (mi_execute_command, mi_load_progress): Adjust.
368 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
369 * python/py-auto-load.c (print_script, info_auto_load_scripts):
371 * python/py-breakpoint.c (bppy_get_commands): Adjust.
372 * tui/tui-interp.c (tui_command_loop): Adjust.
373 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
375 2011-08-04 Pedro Alves <pedro@codesourcery.com>
377 * exceptions.c (struct catcher): Remove saved_uiout field.
378 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
379 no longer save/resvore the global ui_out builder.
380 (catch_exceptions_with_msg): Save/override/restore the global
381 ui_out builder manually instead of relying on TRY_CATCH to do it.
382 (catch_errors): Save/restore the global ui_out builder manually
383 instead of relying on TRY_CATCH to do it.
384 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
387 * cli/cli-interp.c (safe_execute_command): Save/override/restore
388 the global ui_out builder manually instead of relying on TRY_CATCH
391 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
393 * breakpoint.c (update_global_location_list): Ensure
394 invariant 'first loc marked not duplicated and inserted,
395 following locs marked duplicated/not inserted' is respected
396 for multiple locations at the same address.
397 (unduplicated_should_be_inserted) New function.
398 (swap_insertion) New function.
400 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
402 * stack.c (print_frame_arguments_choices): Comment typo fix.
404 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
407 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
408 * breakpoint.c (insert_bp_location): Remove disabled_breaks
409 argument. Update callers.
411 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
414 * doublest.c (convert_doublest_to_floatformat): Pass correct
415 mantissa length to put_field.
417 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
419 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
420 exception_print code path.
421 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
422 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
423 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
425 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
428 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
429 Remove, merge them into ...
430 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
431 variable args and its initialization.
432 (struct print_args_args, print_args_stub): Remove, merge them into
434 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
436 (do_gdb_disassembly): ... here. Remove variable args and its
438 (print_frame): Remove variable args and its initialization, new
439 variable gdbarch and numargs (from print_args_stub), inline here
440 print_args_stub with a TRY_CATCH.
441 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
443 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
444 New variable e, remove variable btargs and its initialization.
446 2011-08-01 Tristan Gingold <gingold@adacore.com>
448 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
450 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
452 * breakpoint.c (insert_bp_location): Document return value.
453 (insert_breakpoint_locations): Fix documentation.
454 (remove_breakpoints): Add documentation.
456 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
458 * breakpoint.c (insert_bp_location): Remove disabled_breaks
459 argument. Update callers.
461 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
463 * stack.c (print_frame_info): Comment typo fix.
465 2011-07-29 Sterling Augustine <saugustine@google.com>
467 * MAINTAINERS (Write After Approval): Add myself to the list.
469 2011-07-29 Tom Tromey <tromey@redhat.com>
471 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
472 (library_list_start_segment): Update.
473 (library_list_start_section): Update.
475 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
477 * varobj.c (value_get_print_value): Move hint check later into the
478 function. Comment function. Free thevalue before reusing it.
480 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
481 Pedro Alves <pedro@codesourcery.com>
483 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
485 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
486 Assert the result kind.
487 * value.h (value_one): Remove parameter lv.
489 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
491 Fix crash on lval_computed values.
492 * valops.c (value_zero): Use not_lval for lval_computed.
494 2011-07-27 Tom Tromey <tromey@redhat.com>
496 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
497 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
499 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
501 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
502 "ptype" by their typedefs difference.
504 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
506 * dwarf2expr.c (ctx_no_read_reg): New function.
507 * dwarf2expr.h (ctx_no_read_reg): New declaration.
508 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
509 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
510 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
512 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
514 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
515 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
517 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
518 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
519 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
520 (ctx_no_get_base_type): Move the functions here.
521 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
522 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
523 (ctx_no_get_base_type): New declarations.
525 2011-07-27 Tom Tromey <tromey@redhat.com>
527 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
529 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
530 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
532 2011-07-26 Sterling Augustine <saugustine@google.com>
534 * cli/cli-dump.c (dump_binary_file): Change parameter type to
536 (dump_bfd_file): Likewise.
538 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
540 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
541 (remote_hw_watchpoint_length_limit): New variable.
542 (_initialize_remote) add set,show cmds for this new variable.
543 * gdb.texinfo: document these new commands.
544 * NEWS: Mention these new commands.
546 2011-07-26 Pedro Alves <pedro@codesourcery.com>
548 * breakpoint.c (works_in_software_mode_watchpoint): Also return
549 true for software watchpoints.
551 2011-07-26 Joel Brobecker <brobecker@adacore.com>
555 2011-07-26 Tom Tromey <tromey@redhat.com>
557 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
558 * dwarf2read.c (read_indirect_string_at_offset): New function.
559 (read_indirect_string): Use it.
560 (dwarf_decode_macro_bytes): New function, taken from
561 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
562 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
563 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
565 (struct dwarf2_per_objfile) <macro>: New field.
566 (dwarf2_elf_names): Add .debug_macro.
567 (dwarf2_macros_too_long_complaint): Add 'section' argument.
568 (dwarf2_locate_sections): Handle new section.
569 (read_file_scope): Handle DW_AT_GNU_macros.
570 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
572 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
574 * NEWS: Mention dcache configuration.
575 * dcache.c (dcache_set_list, dcache_show_list): New variables.
576 (dcache_size, dcache_line_size): New variables.
577 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
578 (struct dcache_block): Make it expandable.
579 (struct dcache_struct): New field.
580 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
581 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
582 (dcache_poke_byte, dcache_print_line): Adjust.
583 (set_dcache_size, set_dcache_line_size): New functions.
584 (set_dcache_command, show_dcache_command): New functions.
585 (_initialize_dcache): Add new commands.
587 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
589 * progspace.h (struct program_space): Add solib_add_generation.
590 * infcmd.c (post_create_inferior): Only call solib_add if not
592 * solib.c (solib_add): Increment solib_add_generation.
594 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
596 Fix implicit pointer offsets.
597 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
600 2011-07-25 Tom Tromey <tromey@redhat.com>
602 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
604 (ada_exception_sal): Make 'ops' const.
605 (ada_decode_exception_location): Likewise.
606 (ada_decode_assert_location): Likewise.
607 (catch_assert_command): Update.
608 (catch_ada_exception_command): Update.
609 (create_ada_exception_catchpoint): Make 'ops' const.
610 * breakpoint.c (set_raw_breakpoint_without_location)
611 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
613 (create_internal_breakpoint): Update.
614 (init_raw_breakpoint_without_location): Make 'ops' const.
615 (init_raw_breakpoint, init_catchpoint)
616 (create_fork_vfork_event_catchpoint)
617 (create_syscall_event_catchpoint, init_breakpoint_sal)
618 (create_breakpoint_sal, create_breakpoints_sal)
619 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
620 * breakpoint.h (struct breakpoint) <ops>: Now const.
621 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
624 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
626 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
628 2011-07-25 Pedro Alves <pedro@codesourcery.com>
630 * breakpoint.h (print_recreate_thread): Declare.
631 (struct breakpoint): Move step_count, pass_count,
632 number_on_target, static_trace_marker_id,
633 static_trace_marker_id_idx ...
634 (struct tracepoint): ... to this new struct.
635 (get_tracepoint, get_tracepoint_by_number_on_target)
636 (get_tracepoint_by_number): Change return type to struct
638 * breakpoint.c (is_tracepoint_type): New, factored out from
640 (is_tracepoint): Adjust.
641 (print_one_breakpoint_location): Cast to struct tracepoint as
642 necessary, and adjust.
643 (print_recreate_catch_fork, print_recreate_catch_vfork)
644 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
645 print_recreate_thread.
646 (init_breakpoint_sal): New, factored out from
647 create_breakpoint_sal.
648 (create_breakpoint_sal): Reimplement.
649 (create_breakpoint): Allocate a struct tracecepoint if the caller
650 wanted a tracepoint. Use init_breakpoint_sal and
652 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
653 (print_recreate_masked_watchpoint)
654 (print_recreate_exception_catchpoint): Call print_recreate_thread.
655 (tracepoint_print_one_detail): Adjust.
656 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
657 Dump the pass count here.
658 (update_static_tracepoint): Adjust.
659 (addr_string_to_sals): Adjust.
660 (create_tracepoint_from_upload): Adjust. Change return type to
661 struct tracepoint pointer.
662 (trace_pass_set_count): Change parameter type to struct tracepoint
664 (trace_pass_command): Adjust.
665 (get_tracepoint, get_tracepoint_by_number_on_target)
666 (get_tracepoint_by_number): Change return type to struct
667 tracepoint pointer, and adjust.
668 (print_recreate_thread): New, factored out from save_breakpoints.
669 (save_breakpoints): Don't print thread and task and passcount
671 * remote.c (remote_download_tracepoint): Adjust.
672 * tracepoint.c (trace_actions_command, validate_actionline)
673 (start_tracing, tfind_1, trace_find_tracepoint_command)
674 (trace_dump_command): Adjust.
675 (find_matching_tracepoint): Change return type to struct
676 tracepoint pointer, and adjust.
677 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
678 (tfile_trace_find, tfile_fetch_registers): Adjust.
679 * tracepoint.h (create_tracepoint_from_upload): Change return type
680 to struct tracepoint pointer.
681 * ada-lang.c (print_recreate_exception): Call
682 print_recreate_thread.
683 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
685 2011-07-25 Pedro Alves <pedro@codesourcery.com>
687 * breakpoint.h (struct breakpoint): Move ops as first field. Move
688 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
689 cond_exp_valid_block, val, val_valid, watchpoint_frame,
690 watchpoint_thread, watchpoint_triggered ...
691 (struct watchpoint): ... to this new struct.
692 (is_watchpoint): Declare.
693 (install_breakpoint): Add new `internal' parameter.
694 * breakpoint.c (is_watchpoint): Delete declaration.
695 (set_breakpoint_condition): Handle watchpoints.
696 (is_watchpoint): Make public.
697 (watchpoint_in_thread_scope): Change parameter type to struct
699 (watchpoint_del_at_next_stop): Change parameter type to struct
700 watchpoint. Remove assertion. Adjust.
701 (update_watchpoint): Ditto.
702 (insert_breakpoints, breakpoint_init_inferior)
703 (watchpoints_triggered, watchpoint_check)
704 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
705 (bpstat_stop_status, print_one_breakpoint_location)
706 (print_one_breakpoint_location, watchpoint_locations_match): Cast
707 to struct watchpoint as necessary, and adjust.
708 (install_breakpoint): Add `internal' argument. If true, don't
709 mention the new breakpoint. Use set_breakpoint_number.
710 (create_fork_vfork_event_catchpoint)
711 (create_syscall_event_catchpoint): Adjust.
712 (dtor_watchpoint): New.
713 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
714 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
715 (print_it_watchpoint, print_mention_watchpoint)
716 (print_recreate_watchpoint, insert_masked_watchpoint)
717 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
718 (print_one_detail_masked_watchpoint)
719 (print_mention_masked_watchpoint)
720 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
721 necessary, and adjust.
722 (watch_command_1): Allocate and initialize a struct watchpoint
723 instead of a struct breakpoint. Use install_breakpoint.
724 (catch_exec_command_1): Adjust.
725 (base_breakpoint_dtor): Delete accesses to watchpoint specific
727 (delete_breakpoint, enable_breakpoint_disp)
728 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
729 as necessary, and adjust.
730 (initialize_breakpoint_ops): Install dtor_watchpoint as
731 watchpoints' dtor method.
732 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
733 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
734 to struct watchpoint as necessary, and adjust.
736 2011-07-25 Pedro Alves <pedro@codesourcery.com>
738 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
739 the the base class ops table.
740 (catch_exception_breakpoint_ops)
741 (catch_exception_unhandled_breakpoint_ops)
742 (catch_assert_breakpoint_ops): Don't statically initialize.
743 (initialize_ada_catchpoint_ops): New.
744 (_initialize_ada_language): Call it.
745 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
746 (bkpt_breakpoint_ops): Forward declare.
747 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
748 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
749 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
750 (masked_watchpoint_breakpoint_ops)
751 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
752 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
753 base class ops table.
754 (null_re_set, null_check_status, null_works_in_software_mode)
755 (null_resources_needed, null_print_one_detail): Delete.
756 (bkpt_dtor): Rename to ...
757 (base_breakpoint_dtor): ... this. Make static.
758 (bkpt_allocate_location): Rename to ...
759 (base_breakpoint_allocate_location): ... this. Make static.
760 (base_breakpoint_re_set): New.
761 (internal_error_pure_virtual_called): New.
762 (base_breakpoint_insert_location, base_breakpoint_remove_location)
763 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
764 (base_breakpoint_works_in_software_mode)
765 (base_breakpoint_resources_needed, base_breakpoint_print_it)
766 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
767 (base_breakpoint_print_recreate): New functions.
768 (base_breakpoint_ops): New global.
769 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
770 (bkpt_breakpoint_hit): Make static.
771 (bkpt_check_status): Delete.
772 (bkpt_resources_needed): Make static.
773 (bkpt_works_in_software_mode): Delete.
774 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
776 (bkpt_breakpoint_ops, internal_breakpoint_ops)
777 (momentary_breakpoint_ops): Don't statically initialize.
778 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
780 (tracepoint_insert_location, tracepoint_remove_location)
781 (tracepoint_check_status, tracepoint_works_in_software_mode)
782 (tracepoint_print_it): Delete.
783 (tracepoint_breakpoint_ops): Don't statically initialize.
784 (initialize_breakpoint_ops): New.
785 (_initialize_breakpoint): Call it.
786 * breakpoint.h (null_re_set, null_works_in_software_mode)
787 (null_resources_needed, null_check_status, null_print_one_detail):
788 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
789 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
790 (bkpt_check_status, bkpt_resources_needed)
791 (bkpt_works_in_software_mode, bkpt_print_it)
792 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
794 (initialize_breakpoint_ops): Declare.
796 2011-07-25 Pedro Alves <pedro@codesourcery.com>
798 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
799 (momentary_bkpt_print_it): Simplify.
801 2011-07-25 Pedro Alves <pedro@codesourcery.com>
803 Split internal, momentary and user breakpoints breakpoint_ops
806 * breakpoint.c (internal_breakpoint_ops)
807 (momentary_breakpoint_ops): Forward declare.
808 (create_internal_breakpoint): Add new breakpoint_ops parameter.
809 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
810 (create_overlay_event_breakpoint)
811 (create_std_terminate_master_breakpoint)
812 (create_exception_master_breakpoint): Create breakpoints with
813 internal_breakpoint_ops vtable.
814 (set_longjmp_breakpoint): Create momentary breakpoints with
815 momentary_breakpoint_ops vtable, using
816 momentary_breakpoint_from_master.
817 (create_thread_event_breakpoint, create_jit_event_breakpoint)
818 (create_solib_event_breakpoint): Create breakpoints with
819 internal_breakpoint_ops vtable.
820 (set_momentary_breakpoint): Create breakpoints with
821 momentary_breakpoint_ops vtable.
822 (momentary_breakpoint_from_master): New, factored out from
823 clone_momentary_breakpoint.
824 (clone_momentary_breakpoint): Adjust.
825 (watch_command_1): Create scope breakpoints with
826 momentary_breakpoint_ops vtable.
827 (bkpt_re_set): Remove handling of internal and momentary
829 (bkpt_print_mention, bkpt_print_recreate): New.
830 (bkpt_breakpoint_ops): Adjust.
831 (internal_bkpt_re_set, internal_bkpt_check_status)
832 (internal_bkpt_print_it, internal_bkpt_print_mention)
833 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
834 (momentary_bkpt_re_set, momentary_bkpt_check_status)
835 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
836 (momentary_bkpt_print_recreate): New.
837 (momentary_breakpoint_ops): New.
839 2011-07-25 Pedro Alves <pedro@codesourcery.com>
841 Implement most breakpoint_ops methods for all breakpoint types,
842 and move the default handlings to the proper callbacks.
844 * breakpoint.c (update_watchpoint): Always call the breakpoint's
845 works_in_software_mode method.
846 (insert_bp_location): Go through breakpoint_ops->insert_location
847 for software and hardware watchpoints.
848 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
850 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
851 for software and hardware watchpoints.
852 (print_it_typical): Delete.
853 (print_bp_stop_message): Always call the breakpoint_ops->print_it
855 (watchpoint_check): Adjust comment.
856 (bpstat_check_location): Simply always call the breakpoint's
857 breakpoint_hit method.
858 (bpstat_stop_status): Always call the breakpoint's check_status
859 method. Remove special cases for watchpoints and internal event
860 breakpoints from here (moved to the check_status implementations).
861 (print_one_breakpoint_location): Assume b->ops is never NULL.
862 Remove static tracepoint marker id printing from here (moved to
863 the print_one_detail callback implementation of tracepoints).
864 (init_bp_location): Assert OPS is never NULL.
865 (allocate_bp_location): Always call the breakpoint's
866 allocate_location method, and remove the default code from here.
867 (free_bp_location): Always call the location's dtor method, and
868 remove the default code from here.
869 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
870 (set_raw_breakpoint_without_location): Add new breakpoint_ops
871 parameter. Pass it down.
872 (set_raw_breakpoint): Ditto.
873 (print_it_catch_fork): Adjust to take a bpstat as argument.
874 (catch_fork_breakpoint_ops): Install methods.
875 (print_it_catch_vfork): Adjust to take a bpstat as argument.
876 (catch_vfork_breakpoint_ops): Install methods.
877 (dtor_catch_syscall): Call the base dtor.
878 (print_it_catch_syscall): Adjust to take a bpstat as argument.
879 (catch_syscall_breakpoint_ops): Install methods.
880 (dtor_catch_exec): Call the base dtor.
881 (print_it_catch_exec): Adjust to take a bpstat as argument.
882 (catch_exec_breakpoint_ops): Install methods.
883 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
884 the breakpoint's resources_needed method, and remove the default
886 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
888 (clone_momentary_breakpoint): Clone the original's ops.
889 (mention): Always call the breakpoint's print_mention method, and
890 remove the default code from here.
891 (create_breakpoint_sal): Adjust to pass the ops to
892 set_raw_breakpoint rather than setting it manually.
893 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
894 ops to set_raw_breakpoint_without_location rather than setting it
896 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
897 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
898 (ranged_breakpoint_ops): Install methods.
899 (break_range_command): Adjust to pass the ops to
900 set_raw_breakpoint rather than setting it manually.
901 (re_set_watchpoint, breakpoint_hit_watchpoint)
902 (check_status_watchpoint, resources_needed_watchpoint)
903 (works_in_software_mode_watchpoint, print_it_watchpoint)
904 (print_mention_watchpoint, print_recreate_watchpoint): New
906 (watchpoint_breakpoint_ops): Install new methods.
907 (print_it_masked_watchpoint): New function.
908 (masked_watchpoint_breakpoint_ops): Install new methods.
909 (watch_command_1): Adjust to pass the right breakpoint_ops to
910 set_raw_breakpoint_without_location rather than setting it
911 manually later. Record the current pspace.
912 (print_it_exception_catchpoint): Adjust to take a bpstat as
914 (gnu_v3_exception_catchpoint_ops): Install new methods.
915 (say_where): New function.
916 (null_re_set, null_check_status, null_works_in_software_mode)
917 (null_resources_needed, null_print_one_detail, bp_location_dtor):
919 (bp_location_ops): New global.
920 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
921 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
922 (bkpt_check_status, bkpt_resources_needed)
923 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
924 (bkpt_print_recreate): New functions.
925 (bkpt_breakpoint_ops): New global.
926 (tracepoint_re_set, tracepoint_insert_location)
927 (tracepoint_remove_location, tracepoint_breakpoint_hit)
928 (tracepoint_check_status, tracepoint_works_in_software_mode)
929 (tracepoint_print_it, tracepoint_print_one_detail)
930 (tracepoint_print_mention, tracepoint_print_recreate): New
932 (tracepoint_breakpoint_ops): New global.
933 (delete_breakpoint): Always call the breakpoint's dtor method, and
934 remove the default handling from here.
935 (breakpoint_re_set_default): Make static.
936 (breakpoint_re_set_one): Always call the breakpoints re_set
937 method, and remove the default handling from here.
938 (trace_command, ftrace_command, strace_command)
939 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
940 to create_breakpoint.
941 (save_breakpoints): Always call the breakpoint's print_recreate
942 method, and remove the default handling from here.
944 * ada-lang.c (dtor_exception): Call the base dtor.
945 (re_set_exception): Call the base method.
946 (print_it_exception, print_it_catch_exception): Adjust to take a
948 (catch_exception_breakpoint_ops): Install methods.
949 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
951 (catch_exception_unhandled_breakpoint_ops): Install methods.
952 (print_it_catch_assert): Adjust to take a bpstat as argument.
953 (catch_assert_breakpoint_ops): Install methods.
955 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
956 to take a bpstat as argument.
957 (enum print_stop_action): Add describing comments to each enum
959 (breakpoint_re_set_default): Delete declaration.
960 (null_re_set, null_works_in_software_mode, null_resources_needed)
961 (null_check_status, null_print_one_detail): Declare.
962 (bkpt_breakpoint_ops): Declare.
963 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
964 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
965 (bkpt_check_status, bkpt_resources_needed)
966 (bkpt_works_in_software_mode, bkpt_print_it)
967 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
970 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
972 * python/py-breakpoint.c (bppy_init): Ditto.
974 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
976 * MAINTAINERS (Write After Approval): Add myself to the list.
978 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
980 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
982 2011-07-22 Pedro Alves <pedro@codesourcery.com>
984 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
985 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
986 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
988 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
989 (struct i386_debug_reg_state): New.
990 (i386_init_dregs): New.
992 (i386_cleanup_dregs): Use i386_init_dregs.
993 (i386_show_dr): Add state parameter and adjust.
994 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
996 (i386_remove_aligned_watchpoint): Likewise.
997 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
998 (i386_update_inferior_debug_regs): New.
999 (i386_insert_watchpoint): Work on a local mirror of the debug
1000 registers, and only update the inferior on success.
1001 (i386_remove_watchpoint): Ditto.
1002 (i386_region_ok_for_watchpoint): Adjust.
1003 (i386_stopped_data_address): Adjust.
1004 (i386_insert_hw_breakpoint): Adjust.
1005 (i386_remove_hw_breakpoint): Adjust.
1007 2011-07-22 Tom Tromey <tromey@redhat.com>
1009 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1010 from amd64_pseudo_register_read. Change arguments. Call
1011 mark_value_bytes_unavailable when needed.
1012 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1013 set_gdbarch_pseudo_register_read.
1014 * sentinel-frame.c (sentinel_frame_prev_register): Use
1015 regcache_cooked_read_value.
1016 * regcache.h (regcache_cooked_read_value): Declare.
1017 * regcache.c (regcache_cooked_read_value): New function.
1018 (regcache_cooked_read): Call
1019 gdbarch_pseudo_register_read_value if available.
1020 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1021 (i386_pseudo_register_read): Remove.
1022 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1023 i386_pseudo_register_read. Change arguments. Call
1024 mark_value_bytes_unavailable when needed.
1025 (i386_pseudo_register_read_value): New function.
1026 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1027 not set_gdbarch_pseudo_register_read.
1028 * gdbarch.sh (pseudo_register_read_value): New method.
1029 * gdbarch.c, gdbarch.h: Rebuild.
1030 * findvar.c (value_from_register): Call get_frame_register_value.
1032 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1034 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1036 (display_gdb_prompt): Likewise.
1037 (change_annotation_level): Likewise.
1038 (push_prompt): Likewise.
1039 (pop_prompt): Likewise.
1040 (handle_stop_sig): Use get_prompt with a level.
1041 * top.c (command_loop): Use get_prompt with a level.
1042 (set_async_annotation_level): Use set_prompt with a level.
1043 (get_prefix): New function.
1044 (set_prefix): Ditto.
1045 (set_suffix): Ditto.
1046 (get_suffix): Ditto.
1047 (get_prompt): Accept a level argument.
1048 (set_prompt): Accept a level argument. Free old prompts. Set
1049 new_async_prompt if level is 0.
1050 (init_main): Use set_prompt with a level. Do not set
1052 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1053 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1054 Modify set_prompt, get_prompt to account for levels.
1055 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1057 * python/python.c (before_prompt_hook): Use set_prompt.
1059 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1061 * defs.h: Add guard against inclusion in gdbserver.
1062 (struct ptid, ptid_t): Move to common/ptid.h.
1063 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1064 xsnprintf, internal_error): Move to common/common-utils.h.
1066 * gdb_assert.h: Move into common/ sub-directory.
1067 * gdb_locale.h: Ditto.
1068 * gdb_dirent.h: Ditto.
1069 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1070 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1071 Move into common/ptid.h.
1072 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1073 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1074 Change nomem to malloc_failure.
1075 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1076 * utils.c (nomem): Rename to malloc_failure.
1077 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1078 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1079 (gdb_buildargv): Change nomem to malloc_failure.
1080 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1081 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1082 ptid_is_pid): Move into common/ptid.c.
1083 (initialize_infrun): Delete initialization of null_ptid and
1085 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1086 linux_common_xfer_osdata.
1087 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1088 common/ptid.c and common/buffer.c.
1089 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1090 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1091 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1092 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1094 * common/gdb_assert.h: New.
1095 * common/gdb_dirent.h: New.
1096 * common/gdb_locale.h: New.
1097 * common/buffer.c: New.
1098 * common/buffer.h: New.
1099 * common/ptid.c: New.
1100 * common/ptid.h: New.
1101 * common/xml-utils.c: New.
1102 * common/xml-utils.h: New.
1103 * common/common-utils.c: New.
1104 * common/common-utils.h: New.
1105 * common/linux-osdata.c: New.
1106 * common/linux-osdata.h: New.
1107 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1108 * config/arm/linux.mh (NATDEPFILES): Ditto.
1109 * config/i386/linux.mh (NATDEPFILES): Ditto.
1110 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1111 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1112 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1113 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1114 * config/mips/linux.mh (NATDEPFILES): Ditto.
1115 * config/pa/linux.mh (NATDEPFILES): Ditto.
1116 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1117 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1118 * config/s390/s390.mh (NATDEPFILES): Ditto.
1119 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1120 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1121 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1123 2011-07-21 Matt Rice <ratmice@gmail.com>
1125 * NEWS: Add info macros and info definitions commands.
1127 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1129 * NEWS: Document Python prompt substitution hook.
1131 2011-07-18 Matt Rice <ratmice@gmail.com>
1134 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1135 * macrotab.c (foreach_macro): Ditto.
1136 (foreach_macro_in_scope): Ditto.
1137 * macrocmd.c (print_macro_callback): New function.
1138 (info_macro_command): Move some code to print_macro_definition.
1139 (print_macro_definition): New function.
1140 (print_one_macro): Add new arguments to callback.
1141 (info_definitions_command): New function.
1142 (info_macros_command): Ditto.
1143 (_initialize_macrocmd): Add info macros and info definitions commands.
1144 * symtab.c (add_macro_name): Add new arguments to callback.
1146 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1147 Tom Tromey <tromey@redhat.com>
1149 * top.c (set_prompt): Rewrite to free previous prompt, free
1150 asynch_new_prompt and set both on new prompts.
1151 * event-top.c (display_gdb_prompt): Add prompt substitution
1153 * python/python.c (before_prompt_hook): New function.
1155 2011-07-20 Matt Rice <ratmice@gmail.com>
1157 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1158 arguments to store_unsigned_integer.
1160 2011-07-20 Tom Tromey <tromey@redhat.com>
1162 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1163 in some declaration-only cases.
1165 2011-07-18 Tom Tromey <tromey@redhat.com>
1168 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1169 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1170 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1171 <debug_type_section>: New field.
1172 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1173 (load_cu): Use appropriate section.
1174 (create_signatured_type_table_from_index): Add 'section'
1176 (dwarf2_read_index): Only allow a single .debug_types section.
1177 (dw2_get_file_names): Use appropriate section.
1178 (read_type_comp_unit_head): Add 'section' argument.
1179 (create_debug_types_hash_table): Loop over all .debug_types
1181 (init_cu_die_reader): Use appropriate section.
1182 (process_psymtab_comp_unit, load_partial_comp_unit)
1183 (load_full_comp_unit, read_die_and_children, find_partial_die)
1184 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1185 (lookup_signatured_type_at_offset): Add 'section' argument.
1186 (read_signatured_type_at_offset): Add 'sect' argument.
1187 (read_signatured_type): Use appropriate section.
1188 (set_die_type, get_die_type_at_offset): Update.
1189 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1191 (write_psymtabs_to_index): Don't allow index with more than one
1192 .debug_types section.
1194 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1196 Fix crash if referenced CU is aged out.
1197 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1198 xfree of block.data.
1199 (indirect_pieced_value): New variable back_to, use to for xfree of
1201 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1203 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1204 (load_cu): New function from ...
1205 (dw2_do_instantiate_symtab): ... the code here ...
1206 (process_full_comp_unit): ... and here.
1207 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1210 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1212 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1215 2011-07-19 Gary Benson <gbenson@redhat.com>
1217 * infrun.c (struct execution_control_state): New member
1218 stop_func_filled_in.
1219 (clear_stop_func, fill_in_stop_func): New functions.
1220 (handle_inferior_event): Call clear_stop_func rather than
1221 manipulating the execution control state directly.
1222 Call fill_in_stop_func lazily as required rather than
1223 directly calling find_pc_partial_function in all cases.
1225 2011-07-18 Tom Tromey <tromey@redhat.com>
1227 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1228 checking for variable-sized array.
1230 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1232 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1233 of supported languages.
1234 * varobj.c: Add top definitions and basic implementation of the
1235 following callbacks: ada_number_of_children, ada_name_of_variable,
1236 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1237 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1238 (languages): Register Ada-specific callbacks.
1239 (variable_language): Add the Ada case in the language setter switch.
1241 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1243 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1245 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1248 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1249 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1250 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1251 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1252 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1253 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1254 (struct dwarf_expr_context_funcs): New, move here methods from ...
1255 (struct dwarf_expr_context): ... here. New fields funcs.
1256 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1257 (dwarf_expr_ctx_funcs): New.
1258 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1259 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1260 (needs_frame_ctx_funcs): New.
1261 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1263 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1265 * MAINTAINERS (Write After Approval): Add myself to the list.
1267 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1269 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1270 that CIE pointer of an FDE really points to a CIE .
1272 2011-07-15 Hui Zhu <teawater@gmail.com>
1274 * remote.c (remote_get_trace_status): Add comments.
1276 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1278 Code cleanup - constify struct lval_funcs.
1279 * dwarf2loc.c (pieced_value_funcs): Make it const.
1280 * infrun.c (siginfo_value_funcs): Likewise.
1281 * opencl-lang.c (opencl_value_funcs): Likewise.
1282 * valops.c (value_assign, value_ind): Make the funcs variable const.
1283 * value.c (struct value): Make location.computed.funcs target const.
1284 Rearrange the comments.
1285 (allocate_computed_value): Make the funcs parameter target const.
1286 (value_computed_funcs): Return the funcs target const.
1287 (value_free, value_copy, set_value_component_location): Make the funcs
1289 * value.h (allocate_computed_value): Make the funcs parameter target
1291 (value_computed_funcs): Return the funcs target const.
1292 * windows-tdep.c (tlb_value_funcs): Make it const.
1294 2011-07-14 Hui Zhu <teawater@gmail.com>
1296 * remote.c (remote_get_trace_status): Initialize p.
1298 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1301 * remote.c (remote_get_trace_status): New variable ex. Put
1302 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1304 2011-07-13 Tom Tromey <tromey@redhat.com>
1306 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1307 value_from_contents for final conversion.
1309 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1312 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1313 Indent prototypes so they do not get into tags.
1315 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1317 Code cleanup making also optimized out values lazy.
1318 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1319 allocate_optimized_out_value. Twice.
1320 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1321 * findvar.c (read_var_value): Likewise.
1322 * value.c (allocate_optimized_out_value): New function.
1323 * value.h (allocate_optimized_out_value): New declaration.
1325 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1327 Fix occasional crash of CTRL-C during DWARF read in.
1328 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1330 2011-07-11 Tom Tromey <tromey@redhat.com>
1332 * regcache.c (struct regcache_descr): Fix typo.
1333 * i387-tdep.c (i387_supply_xsave): Fix typo.
1335 2011-07-11 Tom Tromey <tromey@redhat.com>
1337 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1338 (read_file_scope, read_type_unit_scope): Use it.
1340 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1342 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1345 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1348 * python/python.c: Set gdbpy_should_print_stack default to off.
1349 (set_python): Deprecate maint set python print-stack to
1351 (_initialize_python): Deprecate maint set/show python print-stack.
1352 Add new prefix command, python. Add new setting, print-backtrace.
1353 * NEWS: Document set python print-stack. Document default change.
1355 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1357 * python/py-inferior.c (infpy_dealloc): New function.
1358 (inferior_to_inferior_object): Return a new object, or a
1359 new reference to the existing object.
1360 (find_thread_object): Cleanup references to inferior.
1361 (delete_thread_object): Ditto.
1362 * python/py-infthread.c (create_thread_object): Do not increment
1363 inferior reference count.
1365 2011-07-08 Tom Tromey <tromey@redhat.com>
1367 * dwarf2loc.c (locexpr_regname): New function.
1368 (locexpr_describe_location_piece): Use it.
1369 (disassemble_dwarf_expression): Add per_cu argument. Use
1371 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1372 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1374 (locexpr_describe_location_1): Add per_cu argument.
1375 (locexpr_describe_location): Update.
1376 (loclist_describe_location): Update.
1378 2011-07-08 Tom Tromey <tromey@redhat.com>
1380 * dwarf2expr.c (execute_stack_op): Add QUIT.
1382 2011-07-07 Hui Zhu <teawater@gmail.com>
1385 2011-07-06 Hui Zhu <teawater@gmail.com>
1386 * remote.c (remote_start_remote): Add TRY_CATCH for
1387 remote_get_trace_status.
1388 * tracepoint.c (disconnect_tracing): Ditto.
1390 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1392 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1393 variables as signed, not unsigned.
1395 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1397 * jit.c (jit_inferior_init): Reformat forward declaration.
1399 2011-07-06 Matt Rice <ratmice@gmail.com>
1401 * MAINTAINERS (Write After Approval): Add myself to the list.
1403 2011-07-06 Hui Zhu <teawater@gmail.com>
1405 * remote.c (remote_start_remote): Add TRY_CATCH for
1406 remote_get_trace_status.
1407 * tracepoint.c (disconnect_tracing): Ditto.
1409 2011-07-05 Tom Tromey <tromey@redhat.com>
1411 * symtab.c (operator_chars): Now static.
1412 * linespec.c (operator_chars): Don't declare.
1414 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1416 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1418 2011-07-05 Tom Tromey <tromey@redhat.com>
1420 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1421 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1422 (TYPE_CPLUS_REALLY_JAVA): New macro.
1423 * dwarf2read.c (process_structure_scope): Set
1424 TYPE_CPLUS_REALLY_JAVA.
1426 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1428 * ada-lang.c: Fix typos.
1429 * amd64-tdep.c: Likewise.
1430 * breakpoint.c: Likewise.
1431 * cli/cli-decode.c: Likewise.
1432 * findcmd.c: Likewise.
1433 * inline-frame.c: Likewise.
1434 * mi/mi-main.c: Likewise.
1435 * minsyms.c: Likewise.
1436 * monitor.c: Likewise.
1437 * monitor.h: Likewise.
1438 * prologue-value.c: Likewise.
1439 * reverse.c: Likewise.
1440 * s390-tdep.c: Likewise.
1442 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1444 * jit.c (jit_inferior_init): Forward declare.
1445 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1447 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1449 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1451 2011-07-04 Tristan Gingold <gingold@adacore.com>
1453 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1454 (tcb_fieldno): Add activation_link field.
1455 (get_known_tasks_addr): Moved and rewritten.
1456 (get_tcb_types_info): Set activation_link field.
1457 (read_known_tasks_array): Add parameter. Rewritten.
1458 (read_known_tasks_list): New function.
1459 (read_known_tasks): New function.
1460 (ada_build_task_list): Call read_known_tasks instead of
1461 read_known_tasks_array.
1462 * ravenscar-thread.c: Add first_task_name constant.
1463 (has_ravenscar_runtime): Check for task list too.
1465 2011-07-04 Tristan Gingold <gingold@adacore.com>
1467 * ada-tasks.c: Renames fieldno to actb_fieldno.
1468 (ada_get_task_number): Indentation.
1469 (get_tcb_types_info): Remove all parameters. Write directly
1471 (ptid_from_atcb_common): Adjust.
1472 (read_atcb): Adjust.
1474 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1476 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1478 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1480 * ui-out.c (ui_out_field_core_addr): Mention that the function
1481 description is in the header file.
1482 * ui-out.h (ui_out_field_core_addr): Document function.
1484 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1486 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1487 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1489 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1491 * symtab.c (expand_line_sal): Remove empty line.
1493 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1495 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1496 same way as ELFOSABI_NONE.
1497 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1499 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1501 * breakpoint.c: Fix typos in comments.
1502 * linespec.c: Likewise.
1503 * symtab.c: Likewise.
1505 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1507 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1508 section in separate object files.
1510 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1512 Fix false GCC warning.
1513 * linespec.c (decode_line_1): Initialize values.
1515 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1517 * linespec.c (find_method): Accept the function type automatically only
1518 if it was specified with parameter types.
1520 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1522 Stop on first linespec terminator instead of eating what we can.
1523 * linespec.c (is_linespec_boundary): New function.
1524 (name_end): Remove function.
1525 (keep_name_info): New parameter on_boundary, replace the body.
1526 (decode_line_1): Provide the parameter to keep_name_info.
1527 (decode_compound): Likewise. Drop the trailing java return type
1530 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1532 Fall back linespec to minimal symbols.
1533 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1534 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1535 (find_method, symbol_found): Change error to cplusplus_error.
1537 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1539 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1541 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1542 Tom Tromey <tromey@redhat.com>
1544 * dwarf2read.c (check_physname): New variable.
1545 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1546 (show_check_physname): New function.
1547 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1549 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1551 * machoread.c (macho_symfile_read): Delete OBE comment.
1553 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1555 * machoread.c (struct macho_oso_data): Delete.
1556 (current_oso): Delete.
1557 (macho_relocate_common_syms): New function, mostly extracted
1559 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1560 Remove code that sets and unset current_oso.
1561 (macho_symfile_relocate): Delete handling of common symbols,
1562 now moved to macho_relocate_common_syms.
1564 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1566 * darwin-nat.c (darwin_ptrace): Add documentation.
1567 Set errno to zero before calling ptrace. If ptrace returns
1568 -1 and errno is zero, then change then return zero.
1569 (darwin_kill_inferior): Issue a warning instead of triggering
1570 a failed assertion when the PT_KILL ptrace operations returned
1573 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1575 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1576 only when inf->private->no_ptrace.
1578 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1580 * ada-lang.c (print_it_exception): Print temporary catchpoints
1581 as "Temporary catchpoint".
1582 (print_mention_exception): Likewise.
1584 2011-07-01 Tom Tromey <tromey@redhat.com>
1586 * jv-lang.c (java_language_defn): Use java_printchar,
1588 (java_get_encoding): New function.
1589 (java_emit_char): Use generic_emit_char.
1590 (java_printchar): New function.
1591 (java_printstr): Likewise.
1593 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1595 * ada-typeprint.c (print_record_type): If unable to decode
1596 the name of the parent type, use the encoded name.
1598 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1600 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1601 pointer to constrained packed array type output.
1602 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1603 packed array output.
1605 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1607 * ada-typeprint.c (print_array_type): removed if condition on show
1608 being negative for bounds printing.
1610 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1612 * ada-lang.c (ada_identical_enum_types_p): New function.
1613 (symbols_are_identical_enums): New function.
1614 (remove_extra_symbols): Do nothing if NSYMS < 2.
1615 Use symbols_are_identical_enums.
1617 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1619 * ada-valprint.c (ada_value_print): Handle typedefs.
1621 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1623 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1625 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1627 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1628 (decode_constrained_packed_array): Likewise.
1629 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1631 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1633 * ada-exp.y (convert_char_literal): Handle typedef types.
1635 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1637 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1639 2011-06-30 Tom Tromey <tromey@redhat.com>
1641 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1642 * valops.c (find_overload_match): Call do_cleanups on early exit
1644 * solib.c (solib_find): Call do_cleanups on early exit path.
1646 2011-06-30 Tom Tromey <tromey@redhat.com>
1648 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1649 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1650 return paths. Defer final do_cleanups until last return.
1651 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1654 2011-06-30 Tom Tromey <tromey@redhat.com>
1656 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1658 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1660 * MAINTAINERS (Write After Approval): Add myself to the list.
1662 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1664 Disable epilogue unwinders on recent GCCs.
1665 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1666 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1667 * dwarf2read.c (process_full_comp_unit): Initialize
1668 EPILOGUE_UNWIND_VALID.
1669 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1670 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1671 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1673 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1675 Code cleanup - reformatting.
1676 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1677 (producer_is_gcc_ge_4): ... here, change the return value.
1678 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1681 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1683 Fix non-only rename list for Fortran modules import.
1684 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1685 cp_add_using_directive caller.
1686 (cp_add_using_directive): New parameter excludes, describe it. New
1687 variables ix and param. Compare if also excludes match. Allocate NEW
1688 with variable size, initialize EXCLUDES there.
1689 (cp_lookup_symbol_imports): New variable excludep, test
1690 current->EXCLUDES with it.
1691 * cp-support.h: Include vec.h.
1692 (struct using_direct): New field excludes, describe it.
1693 (DEF_VEC_P (const_char_ptr)): New.
1694 (cp_add_using_directive): New parameter excludes.
1695 * defs.h (const_char_ptr): New typedef.
1696 * dwarf2read.c (read_import_statement): New variables child_die,
1697 excludes and cleanups, read in excludes.
1698 (read_namespace): Adjust the cp_add_using_directive caller.
1700 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1703 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1704 negative comparisons.
1706 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
1708 * mi/mi-main.c (mi_cmd_list_features): Emit
1709 breakpoint-notifications.
1711 2011-06-29 Tom Tromey <tromey@redhat.com>
1714 * valprint.h (generic_emit_char, generic_printstr): Declare.
1715 * valprint.c (wchar_printable, append_string_as_wide)
1716 (print_wchar): Move from c-lang.c.
1717 (generic_emit_char): New function; mostly taken from c_emit_char.
1718 (generic_printstr): New function; mostly taken from c_printstr.
1719 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1720 represented as arrays.
1721 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1723 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1724 identically to TYPE_CODE_INT.
1725 * f-lang.c (f_get_encoding): New function.
1726 (f_emit_char): Use generic_emit_char.
1727 (f_printchar): Replace comment.
1728 (f_printstr): Use generic_printstr.
1729 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1730 "character" types specially.
1731 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1733 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1735 (c_emit_char): Call generic_emit_char.
1736 (c_printstr): Call generic_printstr.
1738 2011-06-29 Gary Benson <gbenson@redhat.com>
1740 * breakpoint.c (bpstat_what): Removed duplicated case.
1742 2011-06-28 Tom Tromey <tromey@redhat.com>
1744 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
1746 2011-06-27 Tom Tromey <tromey@redhat.com>
1748 * valops.c (find_overload_match): Call do_cleanups before early
1750 * top.c (execute_command): Call do_cleanups before early return.
1751 (command_loop): Likewise.
1752 * stack.c (backtrace_command): Make a null cleanup early. Don't
1753 conditionally call do_cleanups.
1754 * python/py-value.c (TRY_CATCH): Move cleanup handling into
1756 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
1757 so cleanups are always run.
1758 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
1759 * findcmd.c (parse_find_args): Call do_cleanups on early return
1761 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
1762 Don't conditionally call do_cleanups.
1763 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
1766 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1768 * MAINTAINERS (Write After Approval): Use default email address.
1770 2011-06-27 Joel Brobecker <brobecker@adacore.com>
1772 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
1774 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1776 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
1777 saved_regs_mask and copied_regs_mask fields.
1778 (sparc_record_save_insn): New prototype.
1779 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
1780 (sparc_record_save_insn): New function.
1781 (sparc_analyze_prologue): Add head comment. Recognize store insns
1782 of call-saved registers. Use OFFSET consistently. Recognize flat
1783 frames and cache their settings.
1784 (sparc32_skip_prologue): Handle flat frames.
1785 (sparc_frame_cache): Add frame_offset to the base address.
1786 (sparc32_frame_cache): Adjust to new frame description.
1787 (sparc32_frame_prev_register): Likewise.
1788 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1789 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1790 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1791 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
1792 frame by calling sparc_record_save_insn.
1793 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1794 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1795 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1797 2011-06-27 Tristan Gingold <gingold@adacore.com>
1799 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
1800 field by map_addr and map_len.
1801 (dwarf2_read_section): Adjust for the new bfd_mmap api.
1802 (munmap_section_buffer): Likewise.
1804 2011-06-24 Tom Tromey <tromey@redhat.com>
1806 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
1807 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1808 * python/python.c (gdbpy_parameter): Make 'arg' const.
1809 (execute_gdb_command): Likewise.
1810 (gdbpy_decode_line): Likewise. Copy it.
1811 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
1812 (gdbpy_write): Make 'arg' const.
1813 * python/py-type.c (typy_lookup_typename): Make 'type_name'
1815 (gdbpy_lookup_type): Likewise.
1816 * python/py-prettyprint.c (print_children): Make 'name' const.
1817 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
1818 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
1820 * python/py-function.c (fnpy_init): Make 'name' const.
1821 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
1822 (gdbpy_string_to_argv): Make 'input' const.
1823 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
1825 * gdbtypes.h (lookup_typename): Update.
1826 * gdbtypes.c (lookup_typename): Make 'name' const.
1827 (lookup_struct): Likewise.
1828 (lookup_union): Likewise.
1829 (lookup_enum): Likewise.
1831 2011-06-24 Tom Tromey <tromey@redhat.com>
1833 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
1834 gdb_thread_db.h. Move all common/ entries to be together.
1835 (TAGS): Don't depend on DEPFILES.
1837 2011-06-23 Yao Qi <yao@codesourcery.com>
1839 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
1840 * remote.c (remote_start_remote): ... here.
1841 * monitor.c (monitor_open): ... here.
1843 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
1845 * gdbtypes.c (append_composite_type_field_aligned): Fix
1846 calculation of bit position based on alignment.
1848 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1850 * breakpoint.c (bpstat_stop_status): Call the check_status
1851 breakpoint_ops method.
1852 (print_one_breakpoint_location): Also print the condition for Ada
1853 exception catchpoints.
1854 (allocate_bp_location): New, factored out from
1855 allocate_bp_location.
1856 (allocate_bp_location): Adjust. Call the owner breakpoint's
1857 allocate_location method, if there is one.
1858 (free_bp_location): Call the locations's dtor method, if there is
1860 (init_raw_breakpoint_without_location): New breakpoint_ops
1862 (set_raw_breakpoint_without_location): Adjust.
1863 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
1864 (set_raw_breakpoint): Adjust.
1865 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1866 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
1867 re_set and check_status methods.
1868 (init_catchpoint): Don't memset, initialize thread, addr_string
1869 and enable_state. Pass the ops down to init_raw_breakpoint.
1870 (install_catchpoint): Rename to ...
1871 (install_breakpoint): ... this, and make extern.
1872 (create_fork_vfork_event_catchpoint): Adjust.
1873 (catch_exec_breakpoint_ops): Install NULL allocate_location,
1874 re_set and check_status methods.
1875 (create_syscall_event_catchpoint): Adjust.
1876 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1877 (masked_watchpoint_breakpoint_ops): Install NULL
1878 allocate_location, re_set and check_status methods.
1879 (catch_exec_command_1): Adjust.
1880 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
1881 re_set and check_status methods.
1882 (create_ada_exception_breakpoint): Rename to ...
1883 (init_ada_exception_breakpoint): ... this. Add a struct
1884 breakpoint parameter, and delete the exp_string, cond_string and
1885 cond parameters. Use init_raw_breakpoint, and don't install or
1886 mention the breakpoint yet. Don't clear breakpoint fields that
1887 init_raw_breakpoint already clears.
1888 (re_set_breakpoint): Delete, split into ...
1889 (breakpoint_re_set_default, prepare_re_set_context): ... these new
1891 (breakpoint_re_set_one): Call the breakpoint's
1892 breakpoint_ops->re_set implementation, if there's one. Adjust.
1893 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
1894 (struct bp_location_ops): New type.
1895 (struct bp_location): New field `ops'.
1896 (struct breakpoint_ops): New `allocate_location', `re_set' and
1897 `check_status' fields. Make `breakpoint_hit''s description match
1899 (init_bp_location): Declare.
1900 (breakpoint_re_set_default): Declare.
1901 (create_ada_exception_breakpoint): Rename to ...
1902 (init_ada_exception_breakpoint): ... this. Add a struct
1903 breakpoint parameter, and delete the exp_string, cond_string and
1905 (install_breakpoint): Declare.
1906 * ada-lang.c: Include exceptions.h.
1907 <Ada exceptions description>: Update.
1908 (struct ada_catchpoint_location): New type.
1909 (ada_catchpoint_location_dtor): New function.
1910 (ada_catchpoint_location_ops): New global.
1911 (ada_catchpoint): New type.
1912 (create_excep_cond_exprs): New function.
1913 (dtor_exception, allocate_location_exception, re_set_exception)
1914 (should_stop_exception, check_status_exception): New functions.
1915 (print_one_exception, print_mention_exception)
1916 (print_recreate_exception): Adjust.
1917 (dtor_catch_exception, allocate_location_catch_exception)
1918 (re_set_catch_exception, check_status_catch_exception): New
1920 (catch_exception_breakpoint_ops): Install them.
1921 (dtor_catch_exception_unhandled)
1922 (allocate_location_catch_exception_unhandled)
1923 (re_set_catch_exception_unhandled)
1924 (check_status_catch_exception_unhandled): New functions.
1925 (catch_exception_unhandled_breakpoint_ops): Install them.
1926 (dtor_catch_assert, allocate_location_catch_assert)
1927 (re_set_catch_assert, check_status_catch_assert): New functions.
1928 (catch_assert_breakpoint_ops): Install them.
1929 (ada_exception_catchpoint_p): Delete.
1930 (catch_ada_exception_command_split)
1931 (ada_exception_catchpoint_cond_string): Rename exp_string
1932 parameter to excep_string. Adjust.
1933 (ada_parse_catchpoint_condition): Delete.
1934 (ada_exception_sal): Rename the exp_string parameter to
1935 excep_string. Delete the cond_string and cond parameters.
1937 (ada_decode_exception_location): Rename the exp_string parameter
1938 to excep_string. Delete the cond_string and cond parameters.
1940 (create_ada_exception_catchpoint): New function.
1941 (catch_ada_exception_command, ada_decode_assert_location)
1942 (catch_assert_command): Adjust.
1943 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
1945 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1947 * ada-lang.c: Include arch-utils.h.
1948 (ada_decode_exception_location): Make static.
1949 (catch_ada_exception_command): Moved here from breakpoint.c.
1950 (ada_decode_assert_location): Make static.
1951 (catch_assert_command): Moved here from breakpoint.c.
1952 (_initialize_ada_lang): Install the exception and assert
1953 catchpoint commands here.
1954 * ada-lang.h (ada_decode_exception_location)
1955 (ada_decode_assert_location): Delete declarations.
1956 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
1958 (create_ada_exception_breakpoint): Make extern.
1959 (catch_ada_exception_command, catch_assert_command): Moved to
1961 (add_catch_command): Make extern.
1962 (_initilize_breakpoint): Don't install the exception and assert
1963 catchpoint commands here.
1964 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
1966 (add_catch_command, create_ada_exception_breakpoint): Declare.
1968 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1970 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
1971 the breakpoint to the breakpoint chain here.
1972 (set_raw_breakpoint_without_location): Add the breakpoint to the
1973 breakpoint chain here.
1974 (init_raw_breakpoint): Adjust comments.
1975 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
1977 (init_catchpoint): Don't set the catchpoint's breakpoint number
1979 (install_catchpoint): New function.
1980 (create_fork_vfork_event_catchpoint)
1981 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
1982 use install_catchpoint.
1984 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1986 * breakpoint.c (create_catchpoint_without_mention)
1987 (create_catchpoint): Delete.
1989 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1991 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
1992 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1993 reference to exec_pathname.
1994 (struct exec_catchpoint): New type.
1995 (dtor_catch_exec): New function.
1996 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
1997 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
1998 (catch_exec_command_1): Adjust to use init_catchpoint.
1999 (delete_breakpoint): Remove reference to exec_pathname.
2001 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2003 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2004 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2005 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2006 reference to syscalls_to_be_caught.
2007 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2009 (struct syscall_catchpoint): New type.
2010 (dtor_catch_syscall): New function.
2011 (insert_catch_syscall, remove_catch_syscall)
2012 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2013 (print_recreate_catch_syscall): Adjust.
2014 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2015 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2016 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2017 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2018 (masked_watchpoint_breakpoint_ops)
2019 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2020 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2021 there is one. Remove references to syscalls_to_be_caught.
2022 (catching_syscall_number): Adjust.
2023 * ada-lang.c (catch_exception_breakpoint_ops)
2024 (catch_exception_unhandled_breakpoint_ops)
2025 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2027 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2029 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2031 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2032 reference to forked_inferior_pid.
2033 (struct fork_catchpoint): New type.
2034 (breakpoint_hit_catch_fork, print_it_catch_fork)
2035 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2036 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2037 (create_fork_vfork_event_catchpoint): Adjust to use
2040 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2042 * breakpoint.c (add_to_breakpoint_chain)
2043 (init_raw_breakpoint_without_location): New functions, factored
2045 (set_raw_breakpoint_without_location): ... this one.
2046 (init_raw_breakpoint): New function, factored out from
2047 set_raw_breakpoint and adjusted to use
2048 init_raw_breakpoint_without_location.
2049 (set_raw_breakpoint): Adjust.
2050 (init_catchpoint): New function, factored out from
2051 create_catchpoint_without_mention and adjusted to use
2052 init_raw_breakpoint.
2053 (create_catchpoint_without_mention): Adjust.
2055 2011-06-22 Tom Tromey <tromey@redhat.com>
2057 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2058 argument of 0 specially.
2060 2011-06-22 Yao Qi <yao@codesourcery.com>
2062 * infrun.c (handle_inferior_event): Remove write-only local variable
2063 `sw_single_step_trap_p'.
2065 2011-06-20 Tom Tromey <tromey@redhat.com>
2067 * symtab.c (lookup_language_this): End loop if block is NULL.
2069 2011-06-17 Tom Tromey <tromey@redhat.com>
2071 * valops.c (value_of_this): Use lookup_language_this.
2072 * symtab.h (lookup_language_this): Declare.
2073 * symtab.c (lookup_language_this): New function.
2074 (lookup_symbol_aux): Use lookup_language_this.
2075 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2077 2011-06-17 Tom Tromey <tromey@redhat.com>
2079 * value.h (value_of_this): Update.
2080 (value_of_local): Remove.
2081 * valops.c (value_of_this): Rename from value_of_local. Change
2083 * p-exp.y (exp): Update.
2084 (variable): Likewise.
2085 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2087 2011-06-17 Tom Tromey <tromey@redhat.com>
2089 * valops.c (value_of_local): Complain if NAME is NULL.
2090 * std-operator.def (OP_OBJC_SELF): Remove.
2091 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2092 * objc-exp.y (name_not_typename): Use OP_THIS.
2093 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2095 <OP_OBJC_SELF>: Remove.
2096 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2098 2011-06-16 Tristan Gingold <gingold@adacore.com>
2100 * python/py-events.h (gdb_py_events): Make it extern.
2101 * python/py-evtregistry.c (gdb_py_events): Declare.
2103 2011-06-16 Hui Zhu <teawater@gmail.com>
2105 * remote.c (remote_trace_set_readonly_regions): Add check for
2106 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2109 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2111 * arm-linux-tdep.c: Include "auxv.h".
2113 (ARM_LINUX_SIZEOF_VFP): Define.
2114 (arm_linux_supply_vfp): New function.
2115 (arm_linux_collect_vfp): Likewise.
2116 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2117 (arm_linux_fpa_regset_sections): New variable.
2118 (arm_linux_vfp_regset_sections): Likewise.
2119 (arm_linux_core_read_description): New function.
2120 (arm_linux_init_abi): Install arm_linux_core_read_description and
2121 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2122 appropriate for the architecture.
2123 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2124 (tdesc_arm_with_m): Declare.
2125 (tdesc_arm_with_iwmmxt): Likewise.
2126 (tdesc_arm_with_vfpv2): Likewise.
2127 (tdesc_arm_with_vfpv3): Likewise.
2128 (tdesc_arm_with_neon): Likewise.
2129 * arm-linux-nat.c: Move features/*.c includes ...
2130 * arm-tdep.c: ... here.
2131 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2132 target description data structures ...
2133 * arm-tdep.c (_initialize_arm_tdep): ... here.
2134 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2135 HWCAP_VFPv3D16): Move definitions ...
2136 * arm-linux-tdep.h: ... here.
2138 2011-06-15 Hui Zhu <teawater@gmail.com>
2140 * remote.c (remote_trace_set_readonly_regions): Add a check for
2143 2011-06-14 Tom Tromey <tromey@redhat.com>
2145 * coffread.c (coffread_objfile): Rename from current_objfile.
2146 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2147 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2149 2011-06-14 Tom Tromey <tromey@redhat.com>
2151 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2152 (class_symtab): Remove.
2153 (jv_dynamics_progspace_key): New global.
2154 (jv_per_objfile_free): Reset program space data. Update assert.
2155 Don't clear globals.
2156 (get_dynamics_objfile): Use and set program space data.
2157 (get_java_class_symtab): Use get_dynamics_objfile.
2158 (add_class_symbol): Likewise.
2159 (java_link_class_type): Likewise.
2160 (java_object_type, jv_clear_object_type, set_java_object_type):
2162 (get_java_object_type): Update. Don't cache result.
2163 (is_object_type): Don't call set_java_object_type.
2164 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2165 initialize jv_dynamics_progspace_key.
2167 2011-06-14 Tom Tromey <tromey@redhat.com>
2169 * symtab.h (current_objfile): Don't declare.
2170 * objfiles.h (current_objfile): Don't declare.
2171 * objfiles.c (current_objfile): Remove.
2172 * mdebugread.c (current_objfile): New file-scope global.
2173 * dbxread.c (current_objfile): New file-scope global.
2174 * coffread.c (current_objfile): New file-scope global.
2176 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2178 * top.h (line): Rename to ...
2179 (saved_command_line): ... this.
2180 (linesize): Rename to ...
2181 (saved_command_line_size): ... this.
2182 * top.c (line): Rename to ...
2183 (saved_command_line): ... this.
2184 (linesize): Rename to ...
2185 (saved_command_line_size): ... this.
2186 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2187 * event-top.c (command_line_handler): Adjust.
2188 * main.c (captured_main): Adjust.
2190 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2192 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2193 get_frame_func instead of get_frame_pc to determine the code
2194 address used to construct the frame ID.
2195 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2196 (i386_epilogue_frame_this_id): Likewise.
2197 (i386_epilogue_frame_prev_register): New function.
2198 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2199 (i386_stack_tramp_frame_sniffer): Fix coding style.
2200 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2201 (i386_gdbarch_init): Fix comments.
2203 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2205 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2206 instruction when walking back through the instruction stream.
2208 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2210 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2211 fullname parameters order.
2213 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2216 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2218 * psymtab.c (map_symbol_filenames_psymtab)
2219 (map_partial_symbol_filenames): Likewise.
2220 * psymtab.h: Include symfile.h.
2221 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2222 * symfile.h (symbol_filename_ftype): New.
2223 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2224 map_symbol_filenames, clarify more the naming in comment.
2226 2011-06-07 Doug Evans <dje@google.com>
2228 * cc-with-index.sh: Fix typos in comment.
2229 Look for ../../gdb, for fullname.exp.
2231 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2232 Pedro Alves <pedro@codesourcery.com>
2234 * cli/cli-cmds.c (shell_escape): Use waitpid.
2235 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2237 2011-06-07 Tristan Gingold <gingold@adacore.com>
2239 * xcoffread.c (dwarf2_xcoff_names): New variable.
2240 (aix_process_linenos): Add a guard.
2241 (xcoff_symfile_finish): Free dwarf2.
2242 (xcoff_initial_scan): Add dwarf2 support.
2244 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2246 * infcall.c (run_inferior_call): Don't mask async. Instead force
2247 a synchronous wait, if the target can async.
2249 * target.h (struct target_ops): Delete to_async_mask.
2250 (target_async_mask): Delete.
2251 * target.c (update_current_target): Delete references to to_async_mask.
2252 * linux-nat.c (linux_nat_async_mask_value): Delete.
2253 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2254 to linux_nat_async_mask_value.
2255 (linux_nat_async_mask): Delete.
2256 (linux_nat_async, linux_nat_close): Remove references to
2257 linux_nat_async_mask_value.
2258 * record.c (record_async_mask_value): Delete.
2259 (record_async): Remove references to record_async_mask_value.
2260 (record_async_mask): Delete.
2261 (record_can_async_p, record_is_async_p): Remove references to
2262 record_async_mask_value.
2263 (init_record_ops, init_record_core_ops): Remove references to
2265 * remote.c (remote_async_mask_value): Delete.
2266 (init_remote_ops): Remove reference to remote_async_mask.
2267 (remote_can_async_p, remote_is_async_p): Remove references to
2268 remote_async_mask_value.
2269 (remote_async): Remove references to remote_async_mask_value.
2270 (remote_async_mask): Delete.
2272 * infrun.c (fetch_inferior_event): Don't claim registers changed
2273 if the current thread is already not executing.
2275 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2277 From Stephen Kitt <steve@sk2.org>
2278 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2279 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2281 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2283 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2284 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2286 2011-06-03 Tom Tromey <tromey@redhat.com>
2288 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2290 * python/py-exitedevent.c (create_exited_event_object): Change
2291 type of 'exit_code'. Optionally add exit_code attribute.
2292 (emit_exited_event): Change type of 'exit_code'.
2293 * python/py-event.h (emit_exited_event): Update.
2294 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2295 * infrun.c (handle_inferior_event): Set exit code fields on
2297 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2299 * inferior.c (exit_inferior_1): Initialize new fields.
2301 2011-06-03 Tom Tromey <tromey@redhat.com>
2303 * dwarf2expr.c (get_signed_type): New function.
2304 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2306 2011-06-02 Keith Seitz <keiths@redhat.com>
2308 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2310 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2312 * top.h (simplified_command_loop): Delete declaration.
2314 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2316 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2317 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2319 2011-06-01 Yao Qi <yao@codesourcery.com>
2321 * objfiles.h (obj_section_addr): Update reference to objfile from
2323 (obj_section_endaddr): Likewise.
2325 2011-06-01 Daniel Jacobowitz <drow@false.org>
2327 * MAINTAINERS: Update my email address and affiliation. Also
2328 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2330 2010-05-31 Keith Seitz <keiths@redhat.com>
2333 * linespec.c (get_search_block): New function.
2334 (find_methods): Add FILE_SYMTATB parameter and use it and
2335 get_search_block to pass an appropriate block to
2336 lookup_symbol_in_namespace.
2337 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2338 Check if *ARGPTR starts with a filename first.
2339 If it does, call locate_first_half again to locate the next
2340 "first half" of the linespec.
2341 Pass FILE_SYMTATB to decode_objc and decode_compound.
2342 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2343 (locate_first_half): Stop on the first colon seen.
2344 (decode_compound): Add FILE_SYMTAB parameter.
2345 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2346 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2347 get_search_block with lookup_symbol.
2348 (find_method): Add FILE_SYMTAB parameter and pass it to
2350 (decode_objc): Use get_search_block.
2352 2010-05-31 Keith Seitz <keiths@redhat.com>
2355 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2356 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2357 and CP_ANONYMOUS_NAMESPACE_LEN.
2358 (cp_is_anonymous): Likewise.
2359 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2360 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2361 * dwarf2read.c (namespace_name): Likewise.
2362 (fixup_partial_die): Likewise.
2363 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2364 seen in the input, keep it.
2366 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2368 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2369 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2370 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2371 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2372 * remote.c (_initialize_remote): Register
2373 async_remote_interrupt_twice directly as
2374 sigint_remote_twice_token event.
2376 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2378 * target.h (enum inferior_event_type): Delete INF_ERROR.
2379 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2381 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2383 * interps.c (interp_set): Don't cancel continuations.
2385 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2387 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2389 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2391 * continuations.h (continuation_ftype): Add `err' parameter.
2392 Document parameters.
2393 (do_all_continuations, do_all_continuations_thread)
2394 (do_all_intermediate_continuations)
2395 (do_all_intermediate_continuations_thread)
2396 (do_all_inferior_continuations): Add `err' parameter.
2397 * continuations.c (do_my_continuations_1, do_my_continuations)
2398 (do_all_inferior_continuations, do_all_continuations_ptid)
2399 (do_all_continuations_thread_callback)
2400 (do_all_continuations_thread, do_all_continuations)
2401 (do_all_intermediate_continuations_thread_callback)
2402 (do_all_intermediate_continuations_thread)
2403 (do_all_intermediate_continuations): Add `err' parameter, and pass
2404 it down all the way to the continuations proper.
2405 * inf-loop.c (inferior_event_handler): If fetching an inferior
2406 event throws an error, don't pop the target, and still call the
2407 continuations, but with `err' set. Adjust all other continuation
2409 * breakpoint.c (until_break_command_continuation): Add `err'
2411 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2412 issue another step if `err' is set.
2413 (struct until_next_continuation_args): New.
2414 (until_next_continuation): Add `err' parameter. Adjust.
2415 (until_next_command): Adjust.
2416 (struct finish_command_continuation_args): Add `thread' field.
2417 (finish_command_continuation): Add `err' parameter. Handle it.
2418 (finish_forward): Adjust.
2419 (attach_command_continuation): Add `err' parameter. Handle it.
2420 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2421 cancel the continuations.
2422 * interps.c (interp_set): Adjust to cancel the continuations.
2423 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2424 continuations rather than discarding.
2425 (free_thread): Don't clear thread inferior resources here.
2426 (delete_thread_1): Do it here instead. And do it before removing
2427 the thread from the threads list. Tag the thread as exited before
2428 clearing thread inferior resources.
2430 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2432 * infcall.c (call_function_by_hand): Rephrase error message.
2434 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2436 * defs.h (struct thread_info, struct inferior): Delete forward
2438 * breakpoint.h (struct thread_info): New forward declaration.
2439 * observer.sh (struct inferior): New forward declaration.
2440 * python/python-internal.h (struct inferior): New forward
2443 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2445 * defs.h (struct continuation, continuation_ftype)
2446 (continuation_free_arg_ftype, add_continuation)
2447 (do_all_continuations, do_all_continuations_thread)
2448 (discard_all_continuations, discard_all_continuations_thread)
2449 (add_intermediate_continuation, do_all_intermediate_continuations)
2450 (do_all_intermediate_continuations_thread)
2451 (discard_all_intermediate_continuations)
2452 (discard_all_intermediate_continuations_thread)
2453 (add_inferior_continuation, do_all_inferior_continuations)
2454 (discard_all_inferior_continuations): Move to ...
2455 * continuations.h: ... this new file.
2456 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2457 infcmd.c, inferior.c, infrun.c, interps.c: Include
2460 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2461 Doug Evans <dje@google.com>
2463 Fix PR 10970, PR 12702.
2464 * linux-nat.c (linux_lwp_is_zombie): New function.
2465 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2466 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2468 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2470 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2472 (add_continuation, add_intermediate_continuation)
2473 (add_inferior_continuation): Use them.
2474 * continuations.c (struct continuation): Use them.
2475 (make_continuation_ftype): Delete.
2476 (make_continuation, add_inferior_continuation, add_continuation)
2477 (add_intermediate_continuation): Use continuation_ftype and
2478 continuation_free_arg_ftype. Rename parameters to shorter names.
2480 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2482 * continuations.c (make_continuation): Make it return void.
2483 (do_my_continuations): Rename to ...
2484 (do_my_continuations_1): ... this. Remove old_chain parameter and
2486 (do_my_continuations): New.
2487 (discard_my_continuations): Rename to ...
2488 (discard_my_continuations_1): ... this. Remove old_chain
2489 parameter and adjust.
2490 (discard_my_continuations): New.
2491 (add_inferior_continuation): Simplify.
2492 (do_all_inferior_continuations): Reimplement on top
2493 do_my_continuations.
2494 (discard_all_inferior_continuations): Simplify.
2495 (add_continuation): Simplify.
2496 (do_all_continuations_ptid): Simplify.
2497 (discard_all_continuations_thread_callback): Simplify.
2498 (add_intermediate_continuation): Simplify.
2499 (discard_all_intermediate_continuations_thread_callback):
2502 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2504 * utils.c (struct continuation, add_continuation)
2505 (add_inferior_continuation)
2506 (do_all_inferior_continuations, discard_all_inferior_continuations)
2507 (restore_thread_cleanup, do_all_continuations_ptid)
2508 (do_all_continuations_thread_callback)
2509 (do_all_continuations_thread, do_all_continuations)
2510 (discard_all_continuations_thread_callback)
2511 (discard_all_continuations_thread, discard_all_continuations)
2512 (add_intermediate_continuation)
2513 (do_all_intermediate_continuations_thread_callback)
2514 (do_all_intermediate_continuations_thread)
2515 (do_all_intermediate_continuations)
2516 (discard_all_intermediate_continuations_thread_callback)
2517 (discard_all_intermediate_continuations_thread)
2518 (discard_all_intermediate_continuations): Move to ...
2519 * continuations.c: ... this new file, and adjust to no longer
2520 implement continuations on top of cleanups.
2521 * Makefile.in (SFILES): Add continuations.c.
2522 (COMMON_OBS): Add continuations.o.
2524 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2526 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2527 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2528 Internal error on invalid values.
2529 * reverse.c: Don't handle EXEC_ERROR.
2530 * mi/mi-main.c: Don't handle EXEC_ERROR.
2532 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2534 * record.c: Include event-loop.h, inf-loop.h.
2535 (record_beneath_to_async): New global.
2536 (tmp_to_async): New global.
2537 (record_async_inferior_event_token): New global.
2538 (record_open_1): Don't error out if async is enabled.
2539 (record_open): Handle to_async. Create an async event source in
2541 (record_close): Delete the async event source.
2542 (record_resumed): New global.
2543 (record_execution_dir): New global.
2544 (record_resume, record_core_resume): Set them. Register the
2545 target on the event loop.
2546 (record_wait): Rename to ...
2547 (record_wait_1): ... this. Add more debug output. Handle
2548 TARGET_WNOHANG, and the target beneath returning
2549 TARGET_WAITKIND_IGNORE.
2550 (record_wait): Reimplement on top of record_wait_1.
2551 (record_async_mask_value): New global.
2552 (record_async, record_async_mask, record_can_async_p)
2553 (record_is_async_p, record_execution_direction): New functions.
2554 (init_record_ops, init_record_core_ops): Install new methods.
2555 * infrun.c (fetch_inferior_event): Temporarily switch the global
2556 execution direction to the direction the target was going.
2557 (execution_direction): Change type to int.
2558 * target.c (default_execution_direction): New function.
2559 (update_current_target): Inherit and de_fault
2560 to_execution_direction.
2561 * target.h (struct target_ops) <to_execution_direction>: New
2563 (target_execution_direction): New macro.
2564 * inferior.h (execution_direction): Change type to int.
2566 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2568 * infcall.c (call_function_by_hand): Don't allow calling functions
2569 in reverse execution mode.
2571 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2573 * infcmd.c (finish_command): Allow async finish in reverse.
2575 2011-05-26 Yao Qi <yao@codesourcery.com>
2577 * gdb_thread_db.h: Delete. Move to ...
2578 * common/gdb_thread_db.h: ... here.
2580 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2582 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2583 function's entry point instead of a manually managed momentary
2584 breakpoint, and only ever issue one proceed call.
2585 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2586 doing a reverse-finish, switch to stepi mode, to do another step.
2587 (insert_step_resume_breakpoint_at_sal): Make public.
2588 (normal_stop): No need to save function value return registers if
2590 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2592 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2594 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2595 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2596 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2598 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2599 step-resume breakpoints.
2600 (print_it_typical): Handle bp_hp_step_resume.
2601 (bpstat_what): Ditto.
2602 (bptype_string): Ditto.
2603 (print_one_breakpoint_location): Ditto.
2604 (allocate_bp_location): Ditto.
2606 (breakpoint_re_set_one): Ditto.
2607 * infrun.c (handle_inferior_event): Adjust. Split
2608 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2609 BPSTAT_WHAT_HP_STEP_RESUME.
2610 (insert_step_resume_breakpoint_at_sal): Rename to ...
2611 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2612 parameter. Handle it.
2613 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2614 insert_step_resume_breakpoint_at_sal_1.
2615 (insert_step_resume_breakpoint_at_frame): Rename to ...
2616 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2617 set a high-priority step-resume breakpoint.
2618 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2619 (insert_step_resume_breakpoint_at_caller): Ditto.
2621 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2623 * breakpoint.c (iterate_over_related_breakpoints): New.
2624 (do_map_delete_breakpoint): New.
2625 (delete_command): Pass do_map_delete_breakpoint to
2626 map_breakpoint_numbers.
2627 (do_disable_breakpoint): New.
2628 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2630 (do_enable_breakpoint): Rename to ...
2631 (enable_breakpoint_disp): ... this.
2632 (enable_breakpoint): Adjust.
2633 (do_enable_breakpoint): New.
2634 (enable_once_breakpoint): Delete.
2635 (do_map_enable_breakpoint): New.
2636 (do_map_enable_once_breakpoint): New.
2637 (enable_once_command, enable_delete_command)
2638 (delete_trace_command): Iterate over the breakpoint's related
2641 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2643 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2644 for ALPHA_ZERO_REGNUM.
2645 (alpha_supply_int_regs): Explicitly supply zero as the value for
2646 ALPHA_ZERO_REGNUM in the register cache.
2647 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2649 2011-05-26 Yao Qi <yao@codesourcery.com>
2651 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2653 2011-05-26 Tristan Gingold <gingold@adacore.com>
2655 * symfile.h (struct dwarf2_section_names): New type.
2656 (struct dwarf2_debug_sections): New type.
2657 (dwarf2_has_info): Add parameter.
2658 * dwarf2read.c (dwarf2_elf_names): New variable.
2659 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2660 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2661 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2662 (dwarf2_has_info): Add names parameter. Pass names
2663 to dwarf2_locate_sections.
2664 (section_is_p): Rewrite using the names parameter.
2665 (dwarf2_locate_sections): Use section names from the names parameter.
2666 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2667 * elfread.c (read_psyms): Ditto.
2668 * machoread.c (macho_symfile_read): Ditto.
2670 2011-05-25 Andreas Schwab <schwab@redhat.com>
2673 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2675 2011-05-24 Keith Seitz <keiths@redhat.com>
2678 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2679 (decode_compound): Unconditionally call keep_name_info.
2681 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2683 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2684 scope, clear its command list.
2685 (map_breakpoint_numbers): Don't walk the related breakpoints list
2688 2011-05-24 Tom Tromey <tromey@redhat.com>
2690 * MAINTAINERS: Move Jim Blandy to past maintainers.
2692 2011-05-24 Tristan Gingold <gingold@adacore.com>
2694 * symfile.h (enum dwarf2_section_enum): New type.
2695 (dwarf2_get_section_info): New prototype.
2696 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2697 section_name by sect. Use a switch to select the info.
2698 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2699 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2701 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2703 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2704 shared library event breakpoint if there's no execution.
2706 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2708 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2709 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2711 2011-05-23 Tom Tromey <tromey@redhat.com>
2713 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2716 2011-05-23 Doug Evans <dje@google.com>
2718 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2719 entry for RuntimeError to doc string.
2721 2011-05-23 Jerome Guitton <guitton@adacore.com>
2723 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2724 sequence for probing loops.
2726 2011-05-23 Pedro Alves <pedro@codesourcery.com>
2728 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2731 2011-05-21 Mark Kettenis <kettenis@gnu.org>
2733 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2734 zero as the value for %g0 in the register cache.
2735 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2736 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2738 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2740 * infrun.c (proceed): Set previous_inferior_ptid here.
2741 (init_wait_for_inferior): Initialize previous_inferior_ptid from
2742 inferior_ptid, not null_ptid.
2743 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
2744 (fetch_inferior_event): Nor here.
2746 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2748 * inf-loop.c (inferior_event_handler): Only output a message if
2751 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
2753 * MAINTAINERS: Update my e-mail address.
2755 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2757 * infrun.c (proceed): Switch the inferior event loop to
2758 INF_EXEC_COMPLETE if the target refused to resume from a
2761 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2763 * infcmd.c: Include "inf-loop.h".
2764 (step_once): When stepping into an inline subroutine, pretend the
2765 target has run. If the target can async, switch the inferior
2766 event loop to INF_EXEC_COMPLETE.
2767 * inferior.h (user_visible_resume_ptid): Declare.
2768 * infrun.c (user_visible_resume_ptid): New function, factored out
2771 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
2772 that the current thread is running. Merge async and sync
2775 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2777 * infcmd.c (step_1): Simplify synchronous case.
2779 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2781 * tracepoint.c: Include exceptions.h.
2782 (TFILE_PID): Move higher in file.
2783 (tfile_open): Delay pushing the tfile target until we're assured
2784 the tfile header is present in the file. Wrap reading the initial
2785 newline-terminated lines in TRY_CATCH. Pop the target if the
2786 initial setup failed. Add the tfile's thread immediately
2787 aftwards, before any non-essential setup. Don't skip
2788 post_create_inferior if there are no traceframes present in the
2790 (tfile_close): Remove redundant check for null before xfree call.
2791 (tfile_thread_alive): New function.
2792 (init_tfile_ops): Register it as to_thread_alive callback.
2794 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2796 * tracepoint.c (tfile_open): Delete #if 0'd code.
2798 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2800 Fix -readnow for -gdwarf-4 unused type units.
2801 * dwarf2read.c (struct signatured_type): Remove the field offset.
2802 (create_signatured_type_table_from_index): Remove its initialization.
2803 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
2804 instead. Add a complaint call.
2805 (process_psymtab_comp_unit): Change assignment to gdb_assert.
2806 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
2807 (lookup_signatured_type_at_offset, read_signatured_type)
2808 (write_one_signatured_type): Update the field for per_cu.
2810 2011-05-19 Tom Tromey <tromey@redhat.com>
2812 * python/py-inferior.c (python_inferior_exit): Use
2814 (python_on_resume): Likewise.
2816 2011-05-19 Matt Rice <ratmice@gmail.com>
2818 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2820 2011-05-19 Hui Zhu <teawater@gmail.com>
2822 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
2824 2011-05-19 Hui Zhu <teawater@gmail.com>
2826 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
2828 2011-05-18 Tom Tromey <tromey@redhat.com>
2830 * dwarf2read.c (dwarf2_add_field): Constify.
2831 * value.c (value_static_field): Constify.
2832 * gdbtypes.h (struct main_type) <field.field_location.physname>:
2834 * ax-gdb.c (gen_static_field): Constify
2836 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2838 * linux-nat.c (kill_callback): Use SIGKILL first.
2840 2011-05-18 Joel Brobecker <brobecker@adacore.com>
2842 * ada-lang.c (print_it_exception): Avoid use of sprintf.
2844 2011-05-18 Tom Tromey <tromey@redhat.com>
2846 * value.c (value_fn_field): Constify.
2847 * symtab.c (gdb_mangle_name): Constify.
2848 * stabsread.c (update_method_name_from_physname): Make 'physname'
2850 * p-typeprint.c (pascal_type_print_method_args): Make arguments
2851 const. Use explicit fputc_filtered loop.
2852 (pascal_type_print_base): Constify.
2853 * p-lang.h (pascal_type_print_method_args): Update.
2854 * linespec.c (add_matching_methods): Constify.
2855 (add_constructors): Likewise.
2856 * jv-typeprint.c (java_type_print_base): Constify.
2857 * gdbtypes.h (struct cplus_struct_type)
2858 <fn_fieldlist.fn_field.physname>: Now const.
2859 * dwarf2read.c (compute_delayed_physnames): Constify.
2860 (dwarf2_add_member_fn): Likewise.
2861 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
2863 2011-05-18 Pedro Alves <pedro@codesourcery.com>
2865 * infrun.c (resume): Mention which is the current thread, and its
2866 current PC in debug output.
2867 (prepare_to_proceed): Mention the thread switching in debug
2870 2011-05-18 Tom Tromey <tromey@redhat.com>
2872 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
2873 path check. Use xmalloc and cleanups.
2874 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
2876 2011-05-17 Tom Tromey <tromey@redhat.com>
2878 * cp-valprint.c (cp_print_value_fields): Catch errors from
2881 2011-05-17 Tom Tromey <tromey@redhat.com>
2883 * dwarf2read.c (dwarf2_get_die_type): Call
2884 get_die_type_at_offset.
2885 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
2886 get_base_type function.
2888 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
2890 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
2893 2011-05-16 Doug Evans <dje@google.com>
2895 * python/py-auto-load.c (source_section_scripts): Mention objfile
2898 2011-05-15 Doug Evans <dje@google.com>
2900 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
2901 (try_thread_db_load_from_pdir): Call it. If unable to find
2902 libthread_db in directory of libpthread, see if we're looking at
2903 the separate-debug-info copy.
2905 * python/py-autoload.c (print_script): Print "Missing" instead of
2906 "No" for missing scripts.
2907 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
2909 2011-05-13 Doug Evans <dje@google.com>
2911 * ui-file.c (stdio_file_write_async_safe): Add comment.
2913 2011-05-14 Hui Zhu <teawater@gmail.com>
2915 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
2917 2011-05-13 Doug Evans <dje@google.com>
2919 Support $pdir and $sdir in libthread-db-search-path.
2920 * NEWS: Mention $sdir,$pdir.
2921 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
2922 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
2923 (try_thread_db_load_from_sdir): New function.
2924 (try_thread_db_load_from_dir): New function.
2925 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
2926 system directories if search of libthread-db-search-path fails,
2927 that is now done via $sdir.
2928 (has_libpthread): New function.
2929 (thread_db_load): Remove search for libthread_db in directory of
2930 libpthread, that is now done via $pdir.
2932 * NEWS: Mention "info auto-load-scripts".
2933 * python/py-auto-load.c (struct auto_load_pspace_info): New member
2934 script_not_found_warning_printed.
2935 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
2936 all callers updated. Initialize script_not_found_warning_printed.
2937 (get_auto_load_pspace_data_for_loading): New function.
2938 (maybe_add_script): New function.
2939 (source_section_scripts): Simplify. Only print one warning regardless
2940 of the number of auto-load scripts not found.
2941 (clear_section_scripts): Clear script_not_found_warning_printed.
2942 (auto_load_objfile_script): Record script in hash table.
2943 (count_matching_scripts): New function.
2944 (maybe_print_script): Renamed from maybe_print_section_script, all
2945 callers updated. Rewrite to use ui_out_*.
2946 (info_auto_load_scripts): Renamed from
2947 maintenance_print_section_scripts, all callers updated.
2948 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
2949 renamed as "info auto-load-scripts".
2951 2011-05-13 Tom Tromey <tromey@redhat.com>
2953 * dwarf2expr.c (read_uleb128): Cast intermediate result.
2954 (read_sleb128): Likewise.
2956 2011-05-13 Tom Tromey <tromey@redhat.com>
2958 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
2961 2011-05-13 Doug Evans <dje@google.com>
2963 * linux-nat.c (debug_linux_nat_async): Delete.
2964 Replace all references to use debug_linux_nat instead.
2965 (show_debug_linux_nat_async): Delete.
2966 (sigchld_handler): Call ui_file_write_async_safe instead of
2968 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
2969 * ui-file.c (struct ui_file): New member to_write_async_safe.
2970 (null_file_write_async_safe): New function.
2971 (ui_file_write_async_safe): New function.
2972 (set_ui_file_write_async_safe): New function.
2973 (ui_file_new): Initialize to_write_async_safe.
2974 (stdio_file_write_async_safe): New function.
2975 (struct stdio_file): New member fd.
2976 (stdio_file_new): Initialize to_write_async_safe, fd.
2977 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
2979 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
2980 (set_ui_file_write_async_safe): Declare.
2981 (ui_file_write_async_safe): Declare.
2983 2011-05-13 Tom Tromey <tromey@redhat.com>
2985 * utils.c (do_value_free): New function.
2986 (make_cleanup_value_free): Likewise.
2987 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
2989 (dwarf2_loc_desc_needs_frame): Call
2990 make_cleanup_value_free_to_mark.
2991 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
2992 * dwarf2expr.c (free_dwarf_expr_context): Don't call
2994 (new_dwarf_expr_context): Don't call value_mark.
2995 * dwarf2-frame.c (execute_stack_op): Call
2996 make_cleanup_value_free_to_mark.
2997 * defs.h (make_cleanup_value_free): Declare.
2999 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3001 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3002 prepare_execute_command.
3003 * top.c (prepare_execute_command): Return cleanup.
3004 (execute_command): Use cleanup from prepare_execute_command.
3005 * top.h (prepare_execute_command): Change prototype to return
3007 * defs.h (struct value): Add opaque declaration.
3008 (make_cleanup_value_free_to_mark): Add prototype.
3009 * utils.c (do_value_free_to_mark): New function.
3010 (make_cleanup_value_free_to_mark): Likewise.
3012 2011-05-12 Tom Tromey <tromey@redhat.com>
3014 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3015 cast left-hand-side to unsigned.
3017 2011-05-12 Tom Tromey <tromey@redhat.com>
3020 * value.h (value_from_contents): Declare.
3021 * value.c (value_from_contents): New function.
3022 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3023 (dwarf2_get_die_type): New function.
3024 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3025 (allocate_piece_closure): Acquire reference to values.
3026 (read_pieced_value): Update for value-based expressions.
3027 (write_pieced_value): Likewise.
3028 (free_pieced_value_closure): Call value_free as needed.
3029 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3030 Update for value-based expressions.
3031 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3032 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3033 <get_base_type>: New field.
3034 (struct dwarf_expr_piece) <v.value>: Change type.
3035 <v.regno>: New field.
3036 (struct dwarf_expr_context) <mark>: New field.
3037 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3038 (dwarf_expr_pop, dwarf_expr_push): Remove.
3039 (dwarf_expr_push_address): Declare.
3040 * dwarf2expr.c (dwarf_arch_cookie): New global.
3041 (struct dwarf_gdbarch_types): New.
3042 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3044 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3046 (dwarf_expr_push_address): New function.
3047 (dwarf_expr_pop): Now static.
3048 (dwarf_expr_fetch): Change return type.
3049 (dwarf_require_integral): New function.
3050 (dwarf_expr_fetch): Simplify.
3051 (add_piece): Update.
3052 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3054 (execute_stack_op) <sign_ext>: Remove.
3055 Use values for DWARF stack.
3056 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3057 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3059 (_initialize_dwarf2expr): New function.
3060 (add_piece): Update.
3061 (new_dwarf_expr_context): Set new field.
3062 (free_dwarf_expr_context): Call value_free_to_mark.
3063 * dwarf2-frame.c (no_base_type): New function.
3064 (execute_stack_op): Set get_base_type field. Update.
3066 2011-05-12 Tom Tromey <tromey@redhat.com>
3068 * dwarf2read.c (read_common_block): Fix formatting.
3070 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3072 * breakpoint.c (disable_breakpoint): Disable all locations
3073 associated with a tracepoint on target if a trace experiment is
3075 (disable_command): Disable a specific tracepoint location on target if
3076 a trace experiment is running.
3077 (do_enable_breakpoint): Enable all locations associated with a
3078 tracepoint on target if a trace experiment is running.
3079 (enable_command) Enable a specific tracepoint location on target if a
3080 trace experiment is running.
3081 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3082 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3083 to_disable_tracepoint.
3084 * target.h: Add declaration of struct bp_location.
3085 (struct target_ops): Add new functions
3086 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3087 to_disable_tracepoint to target operations.
3088 (target_supports_enable_disable_tracepoint): New macro.
3089 (target_enable_tracepoint): New macro.
3090 (target_disable_tracepoint): New macro.
3091 * remote.c (struct remote_state): Add new field.
3092 (remote_enable_disable_tracepoint_feature): New.
3093 (remote_protocol_features): Add new entry.
3094 (remote_supports_enable_disable_tracepoint): New.
3095 (remote_enable_tracepoint): New.
3096 (remote_disable_tracepoint): New.
3097 (init_remote_ops): Add remote_enable_tracepoint,
3098 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3099 to remote operations.
3100 * tracepoint.c (start_tracing): Allow tracing to start without any
3101 tracepoints enabled with just a warning if they can be re-enabled
3103 * NEWS: Add news item for the new behaviour of the enable and disable
3104 GDB commands when applied to tracepoints.
3105 Add news items for the new remote packets QTEnable and QTDisable.
3107 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3109 * config.in: Regenerate.
3110 * configure: Regenerate.
3111 * configure.ac <--with-system-readline> (for readline_echoing_p):
3113 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3114 (tui_old_rl_echoing_p): ... here.
3115 (tui_setup_io): Rename extern declaration readline_echoing_p to
3116 _rl_echoing_p. Adjust assignments for the both renames.
3118 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3120 * symtab.c (lookup_symtab): Run cleanup before returning.
3122 2011-05-11 Tom Tromey <tromey@redhat.com>
3124 * dwarf2read.c (handle_data_member_location): New function.
3125 (dwarf2_add_field): Use it.
3126 (read_common_block): Likewise.
3128 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3130 Make addrs->SECTINDEX always defined.
3131 * symfile.c (relative_addr_info_to_section_offsets): Check for
3132 SECTINDEX -1, not for zero ADDR.
3133 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3134 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3135 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3138 2011-05-10 Doug Evans <dje@google.com>
3140 * linux-thread-db.c: Whitespace cleanup.
3141 (try_thread_db_load_1): Fix comment.
3143 * linux-thread-db.c (set_libthread_db_search_path): New function.
3144 (_initialize_thread_db): Add setter for libthread-db-search-path.
3146 2011-05-09 Doug Evans <dje@google.com>
3148 * NEWS: Mention --with-iconv-bin.
3149 * configure.ac: New option --with-iconv-bin.
3150 * configure: Regenerate.
3151 * config.in: Regenerate.
3152 * defs.h (relocate_gdb_directory): Declare.
3153 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3154 removed progname parameter, and exported. All callers updated.
3155 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3157 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3158 adding missing call to restore_child_signals_mask.
3160 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3162 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3164 * infrun.c (proceed, start_remote): Adjust.
3165 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3166 and adjust to not handle it.
3167 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3168 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3169 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3170 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3171 * windows-nat.c (do_initial_windows_stuff): Adjust.
3172 * infcmd.c (attach_command): Adjust.
3173 (notice_new_inferior): Adjust.
3175 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3177 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3178 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3179 * spu-tdep.c (op_selb): Use correct value.
3181 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3183 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3184 "parent" parameter to symbol_file_add_from_bfd call.
3186 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3187 Thiago Jung Bauermann <bauerman@br.ibm.com>
3189 Implement support for PowerPC BookE masked watchpoints.
3190 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3192 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3193 method. Initialize to NULL in all existing breakpoint_ops instances.
3194 (struct breakpoint) <hw_wp_mask>: New field.
3195 * breakpoint.c (is_masked_watchpoint): Add prototype.
3196 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3197 breakpoint's breakpoint_ops.works_in_software_mode if available.
3198 (watchpoints_triggered): Handle the case of a hardware masked
3200 (watchpoint_check): Likewise.
3201 (works_in_software_mode_watchpoint): New function.
3202 (insert_masked_watchpoint, remove_masked_watchpoint)
3203 (resources_needed_masked_watchpoint)
3204 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3205 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3206 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3208 (masked_watchpoint_breakpoint_ops): New structure.
3209 (watch_command_1): Check for the existence of the `mask' parameter.
3210 Set b->ops according to the type of hardware watchpoint being created.
3211 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3212 (ppc_linux_remove_mask_watchpoint)
3213 (ppc_linux_masked_watch_num_registers): New functions.
3214 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3215 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3216 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3217 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3218 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3219 (target_masked_watch_num_registers): New functions.
3220 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3221 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3223 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3224 (target_masked_watch_num_registers): Add prototypes.
3226 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3229 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3230 (producer_is_gcc_ge_4_0): New function.
3231 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3232 symtab->language code.
3233 (var_decode_location): Set cu->has_loclist.
3234 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3235 skip. Intialize force_skip from locations_valid. Move the prologue
3236 skipping code into two passes.
3237 * symtab.h (struct symtab): Make the primary field a bitfield. New
3238 field locations_valid.
3240 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3242 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3243 (classify_inner_name): Call cp_lookup_nested_type with
3245 * cp-namespace.c (cp_lookup_nested_type): New variable
3246 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3247 type_name_no_tag_or_error with saved_parent_type.
3248 * dwarf2read.c (load_partial_dies): Read in any children of
3249 DW_TAG_typedef with complaint in such case.
3250 * gdbtypes.c (type_name_no_tag_or_error): New function.
3251 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3252 * valops.c (destructor_name_p): New comment for parameter type. Remove
3253 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3254 * value.h (destructor_name_p): Remove type const.
3256 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3258 * symtab.c (compare_symbol_name): New function.
3259 (completion_list_add_name, expand_partial_symbol_name): Call it,
3260 remove the variable ncmp.
3261 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3264 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3266 Demote to sw watchpoint only in update_watchpoint.
3267 * breakpoint.c (update_watchpoint): Change between software and
3268 hardware watchpoint for all kinds of watchpoints, not just
3269 read/write ones. Determine b->exact value here instead of
3270 in watch_command_1. Error out if there are not enough resources
3271 for a read or access hardware watchpoint.
3272 (watch_command_1): Remove logic of checking whether there are
3273 enough resources available, since update_watchpoint will do that
3274 work now. Don't set b->exact here. Catch exceptions thrown by
3275 update_watchpoint and delete the watchpoint.
3276 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3277 Use target_exact_watchpoints instead.
3278 (delete_breakpoint): Notify observers only if deleted watchpoint
3279 has a breakpoint number assigned to it.
3281 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3283 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3285 2011-05-05 Jerome Guitton <guitton@adacore.com>
3287 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3289 (i386_stack_tramp_frame_unwind): New static global.
3290 (i386_match_pattern): New function, extracted from i386_match_insn.
3291 (i386_match_insn): Use i386_match_pattern.
3292 (i386_match_insn_block): New function.
3293 (i386_tramp_chain_in_reg_insns)
3294 (i386_tramp_chain_on_stack_insns): New static variables.
3295 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3298 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3300 * configure.host (xscale*): Don't handle target.
3301 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3304 2011-05-04 Yao Qi <yao@codesourcery.com>
3306 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3308 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3311 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3312 | * elfread.c (elf_symtab_read): Stop memory leak.
3314 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3316 * nto-tdep.c (nto_target): Replace deprecated call to
3317 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3319 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3321 Fix false GCC warning.
3322 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3324 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3326 * breakpoint.c (update_watchpoint): Move code to change
3327 the enable state of breakpoint from here ...
3328 (do_enable_breakpoint): ... to here.
3330 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3332 * valprint.c (val_print_array_elements): Fixed poor performance
3333 of printing very large arrays with repeat_count_threshold set
3334 to unlimited. New comment.
3336 2011-04-29 Tom Tromey <tromey@redhat.com>
3338 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3339 (mi_parse): Likewise.
3340 * breakpoint.c (break_range_command): Use sizeof char*, not
3342 (create_breakpoint): Likewise.
3343 (parse_breakpoint_sals): Likewise.
3345 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3347 * linux-nat.c (linux_child_remove_fork_catchpoint)
3348 (linux_child_remove_vfork_catchpoint)
3349 (linux_child_remove_exec_catchpoint): New functions.
3350 (linux_target_install_ops): Install them.
3352 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3356 * varobj.c (install_default_visualizer): Do not install a
3357 visualizer if the varobj is CPLUS_FAKE_CHILD.
3358 (construct_visualizer): Likewise.
3360 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3362 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3363 case insensitive comparison.
3365 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3367 * infrun.c (proceed): Revert previous change.
3368 (resume): Instead, handle the case of signal delivery while stepping
3369 off a breakpoint location here, and only if software single-stepping
3370 is used. Handle nested signals.
3372 2011-04-28 Yao Qi <yao@codesourcery.com>
3374 * arm-tdep.c (copy_unmodified): Rename to ...
3375 (arm_copy_unmodified): .. this. New.
3376 (copy_preload): Move common part to ...
3377 (install_preload): .. this. New.
3378 (arm_copy_preload): New.
3379 (copy_preload_reg): Move common part to ...
3380 (install_preload_reg): ... this. New.
3381 (arm_copy_preload_reg): New.
3382 (copy_b_bl_blx): Move common part to ...
3383 (install_b_bl_blx): .. this. New.
3384 (arm_copy_b_bl_blx): New.
3385 (copy_bx_blx_reg): Move common part to ...
3386 (install_bx_blx_reg): ... this. New.
3387 (arm_copy_bx_blx_reg): New.
3388 (copy_alu_reg): Move common part to ...
3389 (install_alu_reg): ... this. New.
3390 (arm_copy_alu_reg): New.
3391 (copy_alu_shifted_reg): Move common part to ...
3392 (install_alu_shifted_reg): ... this. New.
3393 (copy_ldr_str_ldrb_strb): Move common part to ...
3394 (install_ldr_str_ldrb_strb): ... this. New.
3395 (arm_copy_ldr_str_ldrb_strb): New.
3396 (copy_copro_load_store): Move some common part to ...
3397 (install_copy_copro_load_store): ... this. New.
3398 (arm_copy_copro_load_store): New.
3400 (arm_copy_svc): Renamed from copy_svc.
3401 (copy_undef): Delete.
3402 (arm_copy_undef): Renamed from copy_undef.
3403 (decode_ext_reg_ld_st): Delete.
3404 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3405 (decode_svc_copro): Delete.
3406 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3407 (copy_copro_load_store, copy_alu_imm): update callers.
3408 (copy_extra_ld_st, copy_block_xfer): Likewise.
3409 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3410 (decode_miscellaneous, decode_dp_misc): Likewise.
3411 (decode_ld_st_word_ubyte, decode_media): Likewise.
3412 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3413 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3414 (decode_unconditional, decode_miscellaneous): Likewise.
3415 (decode_media, decode_b_bl_ldmstm): Likewise.
3416 (arm_process_displaced_insn): Likewise..
3417 (decode_misc_memhint_neon): Delete.
3418 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3419 (decode_miscellaneous): Delete.
3420 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3421 (decode_dp_misc): Delete.
3422 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3423 (decode_ld_st_word_ubyte): Delete.
3424 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3425 (decode_media): Delete.
3426 (arm_decode_media): Renamed from decode_media.
3427 (decode_b_bl_ldmstm): Delete.
3428 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3429 (decode_ext_reg_ld_st): Delete.
3430 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3431 (decode_unconditional): Delete.
3432 (arm_decode_unconditional): Renamed from decode_unconditional.
3434 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3436 Case insensitive lookups implementation.
3437 * dwarf2read.c: Include ctype.h.
3438 (struct mapped_index): New field version.
3439 (mapped_index_string_hash): New parameter index_version. New comment
3440 for it. Call tolower appropriately.
3441 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3442 Choose the right index version for mapped_index_string_hash.
3443 (dwarf2_read_index): Support also the index version 5. Initialize the
3444 new struct mapped_index field version.
3445 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3446 (find_slot): Explain the version needs. Pass INT_MAX for the new
3448 (write_psymtabs_to_index): Produce version 5.
3449 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3450 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3451 * psymtab.c (lookup_partial_symbol): Find the
3452 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3454 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3456 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3457 (completion_list_add_name): New variable ncmp, initialize it, use it.
3458 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3459 * utils.c (strcmp_iw): Support case_sensitive_off.
3460 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3461 New function comment part. New variables saved_string1,
3462 saved_string2 and case_pass. Add a proper second pass.
3464 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3466 Replace re_comp/re_exec by regcomp/regexec.
3467 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3468 (search_symbols_name_matches): Use them, use regexec.
3469 (search_symbols): New variable retval_chain, adjust the use of
3470 old_chain against it. Replace re_comp by regcomp. Use the new struct
3471 search_symbols_data fields, use regexec instead of re_exec.
3473 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3475 Format the code for the next patch.
3476 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3477 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3478 New variables c1 and c2.
3480 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3482 * infrun.c (proceed): Do not single-step into signal delivery
3483 when stepping off a breakpoint location.
3484 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3485 (insert_step_resume_breakpoint_at_caller): Likewise.
3486 (insert_step_resume_breakpoint_at_sal): Likewise.
3487 (insert_longjmp_resume_breakpoint): Likewise.
3489 2011-04-27 Yao Qi <yao@codesourcery.com>
3491 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3493 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3495 * procfs.c (procfs_pass_signals): Fix advance declaration.
3497 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3499 * target.h (struct target_ops): Remove to_notice_signals;
3500 add to_pass_signals.
3501 (target_notice_signals): Remove.
3502 (target_pass_signals): Add prototype.
3503 * target.c (update_current_target): Remove to_notice_signals;
3504 mention to_pass_signals.
3505 (target_pass_signals): New function.
3506 (debug_to_notice_signals): Remove.
3507 (setup_target_debug): Do not install debug_to_notice_signals.
3509 * infrun.c (signal_pass): New global.
3510 (resume): Call target_pass_signals.
3511 (handle_inferior_event): Report all signals while stepping over
3512 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3513 are re-inserted when stepping over a signal handler.
3514 (signal_cache_update): New function.
3515 (signal_stop_update): Call it.
3516 (signal_print_update): Likewise.
3517 (signal_pass_update): Likewise.
3518 (handle_command): Call signal_cache_update and target_pass_signals
3519 instead of target_notice_signals.
3520 (_initialize_infrun): Initialize signal_pass.
3522 * linux-nat.c (pass_mask): New global.
3523 (linux_nat_pass_signals): New function.
3524 (linux_nat_create_inferior): Report all signals initially.
3525 (linux_nat_attach): Likewise.
3526 (linux_nat_resume): Use pass_mask to decide whether to directly
3527 handle an inferior signal.
3528 (linux_nat_wait_1): Likewise.
3529 (linux_nat_add_target): Install to_pass_signals callback.
3531 * nto-procfs.c (notice_signals): Remove.
3532 (procfs_resume): Do not call notice_signals.
3533 (procfs_notice_signals): Remove.
3534 (procfs_pass_signals): New function.
3535 (init_procfs_ops): Install to_pass_signals callback instead of
3536 to_notice_signals callback.
3537 (_initialize_procfs): Report all signals initially.
3539 * procfs.c (procfs_notice_signals): Remove.
3540 (procfs_pass_signals): New function.
3541 (procfs_target): Install to_pass_signals callback instead of
3542 to_notice_signals callback.
3543 (register_gdb_signals): Remove.
3544 (procfs_debug_inferior): Report all signals initially.
3545 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3547 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3548 parameters; use them instead of calling signal_..._state routines.
3549 (remote_notice_signals): Remove.
3550 (remote_start_remote): Report all signals initially.
3551 (remote_resume): Do not call remote_pass_signals.
3552 (_initialize_remote): Install to_pass_signals callback instead of
3553 to_notice_signals callback.
3555 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3557 * breakpoint.c (user_settable_breakpoint): Delete.
3558 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3559 (delete_command): Check user_breakpoint_p instead of looking at
3560 the breakpoint's type.
3561 (disable_command): Ditto.
3562 (enable_command): Ditto.
3563 (delete_trace_command): Use user_breakpoint_p instead of looking
3564 at the breakpoint number directly. When checking if there are
3565 user visible tracepoints, in order to know whether to ask the user
3566 for confirmation, check whether the breakpoint is actually a
3569 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3571 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3574 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3576 MI breakpoint notifications.
3578 * annotate.c (breakpoint_changed): Adjust parameter type.
3579 * breakpoint.c (set_breakpoint_condition): Adjust to change
3580 in breakpoint_modified type.
3581 (breakpoint_set_commands): Likewise.
3582 (do_map_commands_command): Likewise.
3583 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3584 changed after bumping hit count.
3585 (bpstat_stop_status): Likewise.
3586 (print_one_breakpoint_location): Don't wrap in tuple here.
3587 (print_one_breakpoint): Always print individual locations.
3588 For locations, use unnamed tuple.
3589 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3591 (create_catchpoint, create_syscall_event_catchpoint): Call
3592 breakpoint_created obsever.
3593 (mention): Don't call breakpoint_created observer.
3594 (create_breakpoint_sal): Call breakpoint_created observer.
3595 (create_breakpoint, watch_command_1): Likewise.
3596 (create_ada_exception_breakpoint): Likewise.
3597 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3598 (locations_are_equal): New.
3599 (update_breakpoint_locations): If locations were changed, notify.
3600 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3601 Call breakpoint_modified observer.
3603 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3604 (mi_cmd_break_insert): Don't set observers for modify and delete.
3605 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3606 (mi_breakpoint_created, mi_breakpoint_deleted)
3607 (mi_breakpoint_modified): New.
3608 (mi_interpreter_init): Hook the above.
3609 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3610 while -break-* commands are executing.
3611 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3612 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3614 (mi_ui_out_impl): Hook in mi_redirect.
3615 (mi_field_skip): True to the name, skip the field, don't output
3616 a field with an empty value.
3618 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3619 (gdbpy_breakpoint_deleted): Adjust.
3620 * tui/tui-hooks.c (tui_event_create_breakpoint)
3621 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3623 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3625 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3626 (procfs_remove_hw_watchpoint): Likewise.
3628 2011-04-26 Michael Walle <michael@walle.cc>
3630 * remote.c (remote_start_remote): Ack packet after sending the
3633 2011-04-26 Yao Qi <yao@codesourcery.com>
3635 * linux-nat.c: Move common macros to ...
3636 Include linux-ptrace.h.
3637 * common/linux-ptrace.h: ... here. New.
3639 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3641 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3642 !objfile_has_partial_symbols. New comment.
3643 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3644 SYM_READ_PSYMBOLS is not present. Extend the comment.
3645 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3647 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3649 * defs.h (ENUM_BITFIELD): Remove.
3651 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3652 Eli Zaretskii <eliz@gnu.org>
3654 * NEWS: Document the new gdbserver --once option.
3656 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3658 * MAINTAINERS: Update my email address.
3660 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3662 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3663 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3664 function call if __STDC_ISO_10646__ macro is defined.
3665 (intermediate_encoding): New prototype.
3666 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3667 to generate compile time error for unsupported gdb_wchar_t size.
3668 (ENDIAN_SUFFIX): New macro.
3669 (intermediate_encoding): New function.
3671 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3673 * ada-lang.c (struct add_partial_datum): Update the comment for
3674 expand_partial_symbol_name.
3675 (ada_add_partial_symbol_completions): Rename to ...
3676 (ada_expand_partial_symbol_name): ... here, change return type, update
3677 function comment, call symbol_completion_match instead of
3678 symbol_completion_add.
3679 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3680 and ada_expand_partial_symbol_name.
3681 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3683 (dw2_map_symbol_names): Remove.
3684 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3685 * psymtab.c (map_symbol_names_psymtab): Remove.
3686 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3687 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3689 (psym_functions): Unlist map_symbol_names_psymtab.
3690 (map_partial_symbol_names): Rename to ...
3691 (expand_partial_symbol_names): ... here, change the FUN type, call
3692 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3693 * psymtab.h (map_partial_symbol_names): Rename to ...
3694 (expand_partial_symbol_names): ... here, change the FUN type.
3695 * symfile.h (struct quick_symbol_functions): Update the description of
3696 expand_symtabs_matching. Remove map_symbol_names.
3697 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3698 (struct add_name_data): Update the comment for
3699 expand_partial_symbol_name.
3700 (add_partial_symbol_name): Rename to ...
3701 (expand_partial_symbol_name): ... here. Replace
3702 completion_list_add_name call by strncmp.
3703 (default_make_symbol_completion_list_break_on): Use now
3704 expand_partial_symbol_names and expand_partial_symbol_name.
3705 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3707 2011-04-20 Tom Tromey <tromey@redhat.com>
3709 * dwarf2read.c (save_gdb_index_command): Replace format
3710 documentation with a pointer to the manual.
3712 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3714 * regcache.c: Include remote.h.
3715 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3716 (regcache_dump): Handle regcache_dump_remote.
3717 (maintenance_print_remote_registers): New function.
3718 (_initialize_regcache): Install "maint print remote-registers"
3720 * remote.c (map_regcache_remote_table): New function, factored out
3722 (init_remote_state): ... here.
3723 (remote_register_number_and_offset): New.
3724 * remote.h (remote_register_number_and_offset): Declare.
3726 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3728 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3729 null_ptid, assume and allow a NULL address space, instead of
3730 asking the target for the ptid's address space.
3731 * infrun.c (ptid_is_pid): Remove assertion.
3733 2011-04-19 Tom Tromey <tromey@redhat.com>
3735 * windows-tdep.c (windows_xfer_shared_library):
3736 * windows-nat.c (get_module_name, windows_make_so):
3737 * v850-tdep.c (v850_handle_pushm):
3738 * utils.c (null_cleanup, gdb_realpath):
3739 * ui-out.c (get_next_header):
3740 * tracepoint.c (clear_traceframe_info):
3741 * symtab.c (lookup_symtab):
3742 * serial.h (struct serial_ops):
3743 * mipsread.c (read_alphacoff_dynamic_symtab):
3744 * infcmd.c (print_return_value):
3745 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
3746 * f-exp.y (parse_number):
3747 * exceptions.c (catch_exceptions):
3748 * dummy-frame.c (dummy_frame_this_id):
3749 * defs.h (struct cleanup):
3750 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
3751 * arm-tdep.c (arm_push_dummy_call):
3752 * amd64-tdep.h (amd64_collect_xsave):
3753 * amd64-tdep.c (amd64_collect_xsave):
3754 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
3755 * README (typing): Remove duplicate words.
3756 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
3757 * infrun.c (siginfo_value_read): Fix typo.
3758 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
3759 * top.c (source_line_number): Add comma.
3761 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
3763 * thread.c (any_live_thread_of_process): Prioritize threads
3764 that are not executing.
3765 * gdbthread.h (any_live_thread_of_process): Update comment
3766 as per above change.
3768 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
3770 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
3771 (scan_xcoff_symtab): Likewise.
3773 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3775 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
3778 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3779 Pedro Alves <pedro@codesourcery.com>
3781 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
3782 variables to simplify code and avoid == operator at end of
3783 line as this is against GNU coding standards.
3785 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3787 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
3788 lm_name to name_lm to avoid conflict with lm_name function.
3790 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3792 ARI fixes: Use only lowercase function name for static functions.
3793 * nto-tdep.c (LM_ADDR): Rename to...
3794 (lm_addr): New function name.
3795 (nto_relocate_section_addresses): Adapt to change above.
3796 * solib-sunos.c (LM_ADDR): Rename to...
3797 (lm_addr): New function name.
3798 (LM_NEXT): Rename to...
3799 (lm_next): New function name.
3800 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
3801 function name changes above.
3802 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
3803 (lm_addr_from_link_map): New function name.
3804 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3805 (has_lm_dynamic_from_link_map): New function name.
3806 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3807 (lm_dynamic_from_link_map): New function name.
3808 (LM_ADDR_CHECK): Rename to...
3809 (lm_addr_check): New function name.
3810 (LM_NEXT): Rename to...
3811 (lm_next): New function name.
3812 (LM_PREV): Rename to...
3813 (lm_prev): New function name.
3814 (LM_NAME): Rename to...
3815 (lm_name): New function name.
3816 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
3817 (ignore_first_link_map_entry): New function name.
3818 (svr4_keep_data_in_core): Adapt to function name changes above.
3819 (svr4_current_sos): Likewise.
3820 (enable_break): Likewise.
3821 (svr4_relocate_section_addresses): Likewise.
3823 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3826 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
3827 sprintf. Simplify code and avoid loosing memory.
3828 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
3829 (call0_frame_cache): Remove && operator from end of line.
3831 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3833 Fix libraries displacement if they change whether they were prelinked.
3834 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
3835 does not match. Comment why.
3837 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3839 * corelow.c: Include wrapper.h.
3840 (core_open): Call now gdb_target_find_new_threads.
3841 * wrapper.c: Include target.h.
3842 (gdb_target_find_new_threads): New.
3843 * wrapper.h (gdb_target_find_new_threads): New declaration.
3845 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3847 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
3848 even if !TARGET_HAS_EXECUTION.
3850 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3852 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
3853 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
3854 bfd_get_synthetic_symtab.
3855 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
3856 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
3857 parameter parent, remove the call to add_separate_debug_objfile.
3858 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
3859 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3860 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
3861 parent, new comment for it, call add_separate_debug_objfile for it.
3862 (symbol_file_add_separate): Pass objfile as the parameter parent,
3863 remove the call to add_separate_debug_objfile.
3864 (symbol_file_add_from_bfd): New parameter parent, pass it.
3865 (symbol_file_add): Pass NULL to the new parameter parent.
3866 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
3868 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3870 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
3873 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3875 Fix Python access to inlined frames.
3876 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
3877 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
3879 2011-04-15 Tom Tromey <tromey@redhat.com>
3881 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
3883 2011-04-15 Gary Benson <gbenson@redhat.com>
3885 * MAINTAINERS: Add myself to write-after-approval section.
3887 2011-04-14 Mike Frysinger <vapier@gentoo.org>
3889 * remote-sim.c (sim_command_completer): New function.
3890 (_initialize_remote_sim): Set completer to sim_command_completer.
3892 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3894 * breakpoint.c (print_exception_catchpoint): Rename to ...
3895 (print_it_exception_catchpoint): ... this.
3896 (gnu_v3_exception_catchpoint_ops): Update with new name
3897 for print_it_exception_catchpoint.
3899 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
3901 * MAINTAINERS: Add myself for write after approval privileges.
3903 2011-04-13 Marek Polacek <mpolacek@redhat.com>
3905 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3907 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3909 * breakpoint.c (watch_command_1): Remove colon from exp_string.
3911 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3913 * breakpoint.c (save_breakpoints): Verify whether
3914 breakpoint_ops.print_recreate is defined before calling it.
3916 2011-04-11 Gary Benson <gbenson@redhat.com>
3918 Fix failure with --enable-maintainer-mode.
3919 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
3921 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3924 * symtab.c (search_symbols): Reorder the KIND description in the
3925 function comment. Remove the unused 4th element of types, types2,
3926 types3 and types4. New gdb_assert on KIND.
3927 (symtab_symbol_info): Remove the unused 4th element of classnames.
3928 New gdb_assert on KIND.
3929 * symtab.h (enum search_domain): New warning in the enum comment.
3930 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
3933 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3935 Fix crash of gdb save-index on a STABS file.
3936 * dwarf2read.c (write_psymtabs_to_index): Return also on no
3939 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3941 Fix DW_AT_accessibility compatibility with gcc-4.6+.
3942 * dwarf2read.c: Include ctype.h.
3943 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
3945 (dwarf2_add_field): Fix new_field->accessibility by calling
3946 dwarf2_default_access_attribute. Restructure setting accessibility
3948 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
3949 is_private and is_protected by calling
3950 dwarf2_default_access_attribute.
3952 2011-04-08 Kevin Buettner <kevinb@redhat.com>
3954 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
3955 to the initialization.
3957 2011-04-08 Steve Ellcey <sje@cup.hp.com>
3959 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
3962 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
3964 Remove support for old Cygwin 1.5 versions.
3965 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
3966 function on old Cygwin version.
3967 * windows-nat.c: Remove cygwin version check and always define
3968 __USEWIDE for Cygwin compilation.
3970 2011-04-07 Yao Qi <yao@codesourcery.com>
3972 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
3974 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
3975 (arm_copy_svc): Remove parameters INSN and TO.
3976 (decode_svc_copro): Update caller.
3977 * arm-tdep.h (struct displaced_step_closure): Remove parameters
3978 from function pointer `copy_svc_os'.
3980 2011-04-07 Yao Qi <yao@codesourcery.com>
3982 * arm-tdep.c (cleanup_branch): Set a correct return address in
3983 LR for ARM and Thumb.
3985 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3988 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
3989 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
3990 in the function comment, a new note on values compatibility.
3991 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
3992 * symtab.h (SYMBOL_HASH_NEXT): New.
3994 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
3996 * ppc-linux-nat.c (check_condition): Add len output parameter.
3997 Set it based on the memory region referenced in the condition
3998 expression. Update all callers.
4000 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4002 Fix crash regression on systems featuring .gdb_index.
4003 * objfiles.c (free_objfile): Move the
4004 forget_cached_source_info_for_objfile call earlier. Comment it.
4005 Extend the comment for objfile_free_data.
4007 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4009 Fix regression of displaying the debug format.
4010 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4013 2011-04-04 Tom Tromey <tromey@redhat.com>
4015 * cli/cli-interp.c (struct captured_execute_command_args):
4017 (do_captured_execute_command): Remove.
4018 (safe_execute_command): Use TRY_CATCH.
4019 * cli/cli-script.c (struct wrapped_read_command_file_args):
4021 (wrapped_read_command_file): Remove.
4022 (script_from_file): Use TRY_CATCH.
4023 * exceptions.c (catch_exception): Remove.
4024 * exceptions.h (catch_exception): Remove.
4025 (deprecated_throw_reason): Update comment.
4026 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4027 argument to 'context'.
4028 (mi_execute_command): Use TRY_CATCH.
4029 * remote.c (struct start_remote_args): Remove.
4030 (remote_start_remote): Update; change arguments.
4031 (remote_open_1): Use TRY_CATCH.
4033 2011-04-04 Tom Tromey <tromey@redhat.com>
4035 * tracepoint.c (scope_info): Update.
4036 * symtab.c (decode_line_spec): Update.
4037 * python/python.c (gdbpy_decode_line): Update.
4038 * linespec.h (decode_line_1): Update.
4039 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4040 (decode_compound, find_method, symtab_from_filename)
4041 (decode_variable): Likewise.
4042 * cli/cli-cmds.c (edit_command): Update.
4043 (list_command): Update.
4044 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4046 (create_breakpoint): Update.
4047 (until_break_command): Update.
4048 (addr_string_to_sals): Update.
4049 (decode_line_spec_1): Update.
4051 2011-04-04 Tom Tromey <tromey@redhat.com>
4053 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4054 (do_captured_parse_breakpoint): Remove.
4055 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4056 Use TRY_CATCH directly.
4058 2011-04-04 Tom Tromey <tromey@redhat.com>
4060 * symtab.h (free_symtab): Remove.
4061 (forget_cached_source_info_for_objfile): Declare.
4062 * symmisc.c (free_symtab): Remove.
4063 * source.c (forget_cached_source_info_for_objfile): New function.
4064 (forget_cached_source_info): Use it.
4065 * objfiles.c (free_objfile): Simplify check before calling
4066 clear_current_source_symtab_and_line. Call
4067 forget_cached_source_info_for_objfile.
4069 2011-04-04 Tom Tromey <tromey@redhat.com>
4071 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4072 (new_symtab): Don't set `free_code' on symtab.
4073 (new_linetable): Properly handle size==0.
4074 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4075 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4077 * jv-lang.c (struct jv_per_objfile_data): New.
4078 (jv_per_objfile_free): Free the data.
4079 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4080 (get_java_class_symtab): Set the `dict' field on the
4081 jv_per_objfile_data.
4082 (free_class_block): Remove.
4083 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4086 2011-04-04 Tom Tromey <tromey@redhat.com>
4088 * symfile.c (reread_symbols): Update.
4089 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4091 * objfiles.c (allocate_objfile): Update.
4092 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4094 * cp-namespace.c (lookup_symbol_file): Don't call
4095 lookup_possible_namespace_symbol.
4096 (initialize_namespace_symtab, get_possible_namespace_block)
4097 (free_namespace_block, cp_check_possible_namespace_symbols)
4098 (check_possible_namespace_symbols_loop)
4099 (check_one_possible_namespace_symbol)
4100 (lookup_possible_namespace_symbol): Remove.
4101 (maintenance_cplus_namespace): Replace with notice.
4102 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4104 2011-04-04 Tom Tromey <tromey@redhat.com>
4106 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4107 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4108 * symmisc.c (free_symtab): Don't free debugformat.
4109 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4110 (record_debugformat, record_producer): Document.
4111 * buildsym.c (end_symtab): Don't save debugformat and producer
4113 (end_symtab): Don't free debugformat and producer fields.
4114 (record_debugformat): Don't call xstrdup.
4115 (record_producer): Likewise.
4117 2011-04-04 Tom Tromey <tromey@redhat.com>
4119 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4120 (source_line_charpos, source_charpos_line): Remove.
4122 2011-04-04 Tom Tromey <tromey@redhat.com>
4124 * symtab.h (domain_enum): Split in two...
4125 (enum search_domain): New.
4126 (search_symbols): Update.
4127 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4128 redundant declarations.
4129 (search_symbols): Change 'kind' argument to search_domain.
4131 (print_symbol_info): Likewise.
4132 (symtab_symbol_info): Likewise.
4133 * symfile.h (struct quick_symbol_functions)
4134 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4135 <expand_symtabs_matching>: Likewise.
4136 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4137 (expand_symtabs_matching_via_partial): Update.
4138 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4139 (dw2_expand_symtabs_for_function): Update.
4140 * block.h: Moved anonymous enum...
4141 * defs.h (enum block_enum): ... here. Now named.
4143 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4145 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4146 * version.in: Bump version to 7.3.50.20110403-cvs.
4148 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4150 * NEWS: Create a new section for the next release branch.
4151 Rename the section of the current branch, now that it has
4154 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4156 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4157 for "fpscr" in target description.
4159 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4161 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4162 initialize it. Delay HASH initialization. Strip the part after open
4163 parenthesis for languages with qualifiers. Call do_cleanups.
4165 2011-04-01 Tom Tromey <tromey@redhat.com>
4167 * utils.c (report_command_stats): Don't print `-' for negative
4170 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4172 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4173 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4176 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4178 * breakpoint.h (bpdisp_text): Add declaration.
4179 * breakpoint.c (bpdisp_text): Make non-static.
4180 * ada-lang.c: #include "mi/mi-common.h".
4181 (print_it_exception): Rewrite to improve GDB/MI output.
4183 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4185 * arm-tdep.h (struct address_space): Add forward declaration.
4187 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4189 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4190 * arm-tdep.c (arm_override_mode): New global.
4191 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4192 execution mode heuristics.
4193 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4194 second single-step breakpoint if needed, using
4195 arm_insert_single_step_breakpoint.
4196 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4197 ARM execution mode, do not call thumb_get_next_pc_raw.
4198 (arm_get_next_pc): Encode execution mode in return value. Call
4199 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4200 (arm_insert_single_step_breakpoint): New function.
4201 (arm_software_single_step): Call it.
4202 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4203 argument to return execution mode of sigreturn target.
4204 (arm_linux_syscall_next_pc): Use it.
4205 (arm_linux_copy_svc): Update call.
4206 (arm_linux_software_single_step): Call
4207 arm_insert_single_step_breakpoint.
4209 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4211 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4214 2011-03-31 Tom Tromey <tromey@redhat.com>
4216 * varobj.c (update_dynamic_varobj_children): Properly handle
4217 errors from iterator.
4219 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4221 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4222 struct linkage name twice.
4224 2011-03-31 Tom Tromey <tromey@redhat.com>
4226 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4227 missing ">" to message.
4229 2011-03-31 Tom Tromey <tromey@redhat.com>
4231 * varobj.c (instantiate_pretty_printer): Remove duplicate
4234 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4236 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4237 if neither saved value nor register available (e.g. signal frame).
4239 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4241 * macroexp.c (expand): Avoid uninitialized variable
4244 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4246 * breakpoint.c (break_range_command): Fix typo in comment.
4248 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4249 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4251 Implement support for PowerPC BookE ranged breakpoints.
4252 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4253 * breakpoint.h (struct bp_target_info) <length>: New member
4255 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4256 instead of struct breakpoint as argument, and also add ASPACE
4257 and BP_ADDR arguments. Update all callers.
4258 (struct breakpoint_ops) <print_one_detail>: New method.
4259 (struct breakpoint) <addr_string_range_end>: New member variable.
4260 * breakpoint.c (breakpoint_location_address_match): Add function
4262 (insert_bp_location): Set bl->target_info.length.
4263 (breakpoint_here_p): Call breakpoint_location_address_match.
4264 (moribund_breakpoint_here_p): Likewise.
4265 (regular_breakpoint_inserted_here_p): Likewise.
4266 (breakpoint_thread_match): Likewise.
4267 (bpstat_stop_status): Likewise.
4268 (bpstat_check_location): Move call to
4269 breakpoint_ops.breakpoint_hit to the top.
4270 (print_one_breakpoint_location): Call
4271 breakpoint_ops.print_one_detail if available.
4272 (breakpoint_address_match_range): New function.
4273 (breakpoint_location_address_match): Likewise.
4274 (breakpoint_locations_match): Compare the length field of the
4276 (hw_breakpoint_used_count): Count resources used by all locations
4277 in a breakpoint, and use breakpoint_ops.resources_needed if
4279 (breakpoint_hit_ranged_breakpoint): New function.
4280 (resources_needed_ranged_breakpoint): Likewise.
4281 (print_it_ranged_breakpoint): Likewise.
4282 (print_one_ranged_breakpoint): Likewise.
4283 (print_one_detail_ranged_breakpoint): Likewise.
4284 (print_mention_ranged_breakpoint): Likewise.
4285 (print_recreate_ranged_breakpoint): Likewise.
4286 (ranged_breakpoint_ops): New structure.
4287 (find_breakpoint_range_end): New function.
4288 (break_range_command): Likewise.
4289 (delete_breakpoint): Free addr_string_range_end.
4290 (update_breakpoint_locations): Add SALS_END argument. Update
4291 all callers. Calculate breakpoint length if a non-zero SALS_END
4292 is given. Call breakpoint_locations_match instead of
4293 breakpoint_address_match.
4294 (reset_breakpoint): Find SaL of the end of the range if B is a
4296 (_initialize_breakpoint): Register break-range command.
4297 * defs.h (print_core_address): Add function prototype.
4298 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4300 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4301 (ppc_linux_remove_hw_breakpoint): Likewise.
4302 (_initialize_ppc_linux_nat): Initialize
4303 to_ranged_break_num_registers.
4304 * target.c (update_current_target): Add comment about
4305 to_ranged_break_num_registers.
4306 (target_ranged_break_num_registers): New function.
4307 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4309 (target_ranged_break_num_registers): Add function prototype.
4310 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4311 * utils.c (print_core_address): ... here.
4313 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4315 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4316 variable compiler warning.
4318 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4320 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4322 (re_set_breakpoint): ... to here ...
4323 (addr_string_to_sals): ... and here.
4325 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4327 * Makefile.in (SFILES): Add missing C sources.
4328 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4329 Add missing headers.
4331 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4333 * .gitignore: New file.
4335 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4337 * NEWS: Mention new cfi device simulation.
4339 2011-03-29 Tom Tromey <tromey@redhat.com>
4341 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4342 otherwise anonymous types.
4343 (dwarf2_name): Likewise.
4344 * valops.c (value_struct_elt_for_reference): Refine artificial
4345 type logic. Call error if j==-1.
4347 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4349 Fix false GCC warning.
4350 * infcall.c (find_function_addr): Initialize funaddr.
4352 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4354 Fix mingw compilation with --enable-targets=all.
4355 * remote-mips.c (gdb_usleep.h): Include header.
4356 (mips_enter_debug): Use gdb_usleep instead of sleep.
4358 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4360 Support resolution of STT_GNU_IFUNC via breakpoints.
4361 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4362 bp_gnu_ifunc_resolver_return.
4363 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4364 the loop. Support bp_gnu_ifunc_resolver and
4365 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4366 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4368 (bptype_string, print_one_breakpoint_location): Support
4369 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4370 (user_settable_breakpoint): Return true also for
4371 bp_gnu_ifunc_resolver.
4372 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4373 bp_gnu_ifunc_resolver_return.
4374 (set_breakpoint_location_function): New parameter explicit_loc,
4375 describe it. Call find_pc_partial_function_gnu_ifunc with new
4376 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4377 EXPLICIT_LOC is not set.
4378 (set_raw_breakpoint): Set EXPLICIT_LOC for
4379 set_breakpoint_location_function.
4380 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4381 set_breakpoint_location_function.
4382 (mention): Support bp_gnu_ifunc_resolver and
4383 bp_gnu_ifunc_resolver_return.
4384 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4385 set_breakpoint_location_function.
4386 (update_breakpoint_locations): Remove static.
4387 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4388 bp_gnu_ifunc_resolver_return.
4389 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4390 bp_gnu_ifunc_resolver_return.
4391 (update_breakpoint_locations): New declaration.
4392 * elfread.c: Include gdbthread.h and regcache.h.
4393 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4395 (elf_gnu_ifunc_fns): Install them.
4396 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4397 (stub_gnu_ifunc_resolver_return_stop): New functions.
4398 (stub_gnu_ifunc_fns): Install them.
4399 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4400 and gnu_ifunc_resolver_return_stop.
4401 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4403 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4405 STT_GNU_IFUNC reader implementation.
4406 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4407 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4408 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4409 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4410 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4411 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4412 (elf_gnu_ifunc_resolve_addr): New.
4413 (elf_symfile_read): Call elf_rel_plt_read.
4414 (elf_gnu_ifunc_fns): New.
4415 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4416 Install elf_gnu_ifunc_fns.
4417 * infcall.c (find_function_return_type): New function.
4418 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4419 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4420 (stub_gnu_ifunc_resolve_name): New functions.
4421 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4422 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4423 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4425 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4427 Code cleanup for later STT_GNU_IFUNC support.
4428 * infcall.c (find_function_addr): Remove variable code, use explicit
4429 dereferences for it. Move VALUE_TYPE initialization later.
4431 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4433 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4434 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4435 (clear_pc_function_cache): Clear it.
4436 (find_pc_partial_function): Rename to ...
4437 (find_pc_partial_function_gnu_ifunc): ... this function. New
4438 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4439 (find_pc_partial_function): New wrapper for this function.
4440 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4442 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4444 GDB internal type support for STT_GNU_IFUNC.
4445 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4446 (elf_symtab_read): Set mst_text_gnu_ifunc for
4447 BSF_GNU_INDIRECT_FUNCTION.
4448 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4449 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4450 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4451 nodebug_got_plt_symbol.
4452 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4453 (TYPE_GNU_IFUNC): New.
4454 (struct main_type): New field flag_gnu_ifunc.
4455 (struct builtin_type): New field builtin_func_func.
4456 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4457 nodebug_got_plt_symbol.
4458 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4459 (in_gnu_ifunc_stub): New.
4460 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4462 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4463 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4464 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4466 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4467 * symtab.c (search_symbols): Likewise.
4468 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4469 and mst_slot_got_plt.
4470 (in_gnu_ifunc_stub): New declaration.
4472 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4474 Support a ring of related breakpoints.
4475 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4476 other functions, add gdb_assert.
4477 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4478 watchpoint_del_at_next_stop.
4479 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4480 (bpstat_stop_status): Handle ring in related_breakpoint.
4481 (set_raw_breakpoint_without_location): Initialize ring in
4483 (delete_breakpoint): Handle ring in related_breakpoint, use
4484 watchpoint_del_at_next_stop.
4485 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4487 2011-03-28 Tom Tromey <tromey@redhat.com>
4490 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4491 with `language_minimal'.
4493 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4495 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4496 instead of checking for STT_ARM_TFUNC symbol type.
4498 2011-03-25 Tom Tromey <tromey@redhat.com>
4500 * linespec.c (symbol_found): Restore line-based result for
4501 non-LOC_LABEL symbols.
4503 2011-03-25 Kai Tietz <ktietz@redhat.com>
4505 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4506 instead of strcmp for comparison.
4507 (tui_source_is_displayed): Likewise.
4508 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4510 2011-03-24 Mark Wielaard <mjw@redhat.com>
4512 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4514 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4515 (find_partial_die_in_comp_unit): Likewise in comment.
4516 (read_attribute_value): Likewise.
4517 (lookup_die_type): Likewise.
4518 (dwarf_form_name): Likewise.
4519 (dump_die_shallow): Likewise.
4520 (follow_die_ref_or_sig): Likewise.
4522 2011-03-24 Tom Tromey <tromey@redhat.com>
4524 PR breakpoints/11816:
4525 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4526 (decode_compound): Update.
4527 (find_function_symbol): New function.
4528 (decode_dollar): Update.
4529 (decode_label): Add 'function_symbol' parameter. Handle
4530 function-relative labels.
4531 (decode_variable): Update.
4532 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4533 not its line. Set `special_display' and canonical name for
4536 2011-03-24 Tom Tromey <tromey@redhat.com>
4538 * linespec.h (struct linespec_result) <special_display>: New
4540 * breakpoint.h (struct breakpoint) <display_canonical>: New
4542 * breakpoint.c (print_breakpoint_location): Respect
4544 (create_breakpoint_sal): Add 'display_canonical' parameter.
4545 (create_breakpoints_sal): Update.
4546 (create_breakpoint): Update.
4548 2011-03-24 Tom Tromey <tromey@redhat.com>
4550 * symtab.c (decode_line_spec): Update.
4551 * linespec.c (build_canonical_line_spec): Change type of
4553 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4554 (find_method, decode_all_digits, decode_dollar, decode_label)
4555 (symbol_found): Likewise.
4556 (init_linespec_result): New function.
4557 * breakpoint.c (struct captured_parse_breakpoint_args)
4558 <canonical_p>: New field, replaces addr_string_p.
4559 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4561 (parse_breakpoint_sals): Likewise.
4562 (do_captured_parse_breakpoint): Update.
4563 (create_breakpoint): Use struct linespec_result.
4564 (until_break_command): Update.
4565 (breakpoint_re_set_one): Update.
4566 (decode_line_spec_1): Update.
4567 * linespec.h (struct linespec_result): New.
4568 (init_linespec_result): Declare.
4570 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4572 * regcache.c (regcache_raw_read): If the target didn't supply a
4573 given raw register, mark it as unavailable.
4575 2011-03-23 Kai Tietz <ktietz@redhat.com>
4577 * breakpoint.c (clear_command): Use filename_cmp
4578 instead of strcmp for comparison.
4579 * buildsym.c (watch_main_source_file_lossage): Likewise.
4580 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4581 checking just for slash.
4582 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4583 strrchr and filename_cmp instead of strcmp for filenames.
4584 (add_old_header_file): Use filename_cmp
4585 instead of strcmp for comparison.
4586 * exec.c (exec_set_section_address): Likewise.
4587 * macrotab.c (macro_lookup_inclusion): Likewise.
4588 (macro_lookup_inclusion): Likewise.
4589 * elfread.c (_initialize_elfread): Likewise.
4590 (elfstab_offset_sections): Likewise.
4591 (elfstab_offset_sections): Use lbasename instead of
4593 * mdebugread.c (parse_partial_symbols): Likewise.
4594 (arse_partial_symbols): Use filename_(n)cmp instead of
4595 str(n)cmp for comparison.
4596 * minsyms.c (lookup_minimal_symbol): Likewise.
4597 * psymtab.c (read_psymtabs_with_filename): Likewise.
4598 * solib.c (solib_read_symbols): Likewise.
4599 (reload_shared_libraries_1): Likewise.
4600 * symmisc.c (maintenance_print_symbols): Likewise.
4601 * symfile.c (separate_debug_file_exists): Likewise.
4602 (reread_symbols): Likewise.
4603 (find_separate_debug_file_by_debuglink): Likewise.
4604 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4605 * source.c (add_path): Likewise.
4606 * symtab.c (filename_seen): Likewise.
4607 (file_matches): Likewise.
4608 (print_symbol_info): Likewise.
4609 (maybe_add_partial_symtab_filename): Likewise.
4610 (make_source_files_completion_list): Likewise.
4611 * xml-syscall.c (init_sysinfo): Likewise.
4612 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4613 IS_DIR_SEPARATOR for checking for trailing path separator.
4615 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4617 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4618 label abort_expression.
4619 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4620 DWARF_VALUE_OPTIMIZED_OUT.
4622 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4625 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4626 to linkage_name. Invert its value. Update the function comment.
4627 (c_type_print_varspec_suffix): Invert it at the caller.
4628 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4630 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4632 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4633 errors when reading the `stop_pc'.
4634 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4637 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4639 * NEWS: Document gdb.Write stream keyword.
4641 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4644 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4645 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4646 (dwarf2_add_field): Fix new_field->accessibility for
4647 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4649 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4653 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4654 other error classes. Do not print stack trace.
4656 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4658 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4659 (dwarf2_add_field): Fix new_field->accessibility for
4660 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4662 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4664 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4665 encountering a load via a non-SP register.
4667 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4669 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4670 field in returned unwinder.
4672 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4674 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4676 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4678 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4681 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4683 * frame.c (frame_unwind_register): Throw an error if unwinding the
4685 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4686 an unwind stop reason.
4687 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4688 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4689 UNWIND_UNAVAILABLE>: New.
4690 * inline-frame.c (inline_frame_unwind): Install
4691 default_frame_unwind_stop_reason.
4692 * frame-unwind.c: Include "exceptions.h".
4693 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4694 (default_frame_unwind_stop_reason): New.
4695 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4696 (default_frame_unwind_stop_reason): Declare.
4697 (struct frame_unwind) <stop_reason>: New function pointer.
4699 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4700 * dwarf2-frame.c: Include exceptions.h.
4701 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4702 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4703 computing the CFA. If such an error was thrown, set
4704 unavailable_retaddr.
4705 (dwarf2_frame_unwind_stop_reason): New.
4706 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4708 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4709 (dwarf2_signal_frame_unwind): Ditto.
4711 * amd64-tdep.c: Include "exceptions.h".
4712 (struct amd64_frame_cache): New field "base_p".
4713 (amd64_init_frame_cache): Clear it.
4714 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4715 Avoid reading registers with functions that throw if the register
4716 is not necessary to compute the frame base.
4717 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4718 swallowing NOT_AVAILABLE_ERROR.
4719 (amd64_frame_unwind_stop_reason): New.
4720 (amd64_frame_this_id): Don't build a frame id if the frame base
4722 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4723 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4724 base_p if the frame base was computable.
4725 (amd64_sigtramp_frame_unwind_stop_reason): New.
4726 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4727 frame base was unavailable.
4728 (amd64_sigtramp_frame_unwind): Install
4729 amd64_sigtramp_frame_unwind_stop_reason.
4730 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4731 base_p if the frame base was computable.
4732 (amd64_epilogue_frame_unwind_stop_reason): New.
4733 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4734 frame base was unavailable.
4735 (amd64_epilogue_frame_unwind): Install
4736 amd64_epilogue_frame_unwind_stop_reason.
4737 * i386-tdep.c: Include "exceptions.h".
4738 (struct i386_frame_cache): New field "base_p".
4739 (i386_init_frame_cache): Clear it.
4740 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
4741 Avoid reading registers with functions that throw if the register
4742 is not necessary to compute the frame base.
4743 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4744 swallowing NOT_AVAILABLE_ERROR.
4745 (i386_frame_unwind_stop_reason): New.
4746 (i386_frame_this_id): Don't build a frame id if the frame base was
4748 (i386_frame_prev_register): Handle unavailable SP.
4749 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
4750 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4751 base_p if the frame base was computable.
4752 (i386_epilogue_frame_unwind_stop_reason): New.
4753 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
4754 base was unavailable.
4755 (i386_epilogue_frame_unwind): Install
4756 i386_epilogue_frame_unwind_stop_reason.
4757 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4758 base_p if the frame base was computable.
4759 (i386_sigtramp_frame_unwind_stop_reason): New.
4760 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
4761 base was unavailable.
4762 (i386_sigtramp_frame_unwind): Install
4763 i386_sigtramp_frame_unwind_stop_reason.
4764 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
4765 type's size, not the register's.
4766 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
4768 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
4769 default_frame_unwind_stop_reason.
4770 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
4771 (alpha_heuristic_frame_unwind): Ditto.
4772 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
4773 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
4774 * avr-tdep.c (avr_frame_unwind): Ditto.
4775 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
4777 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
4778 * frv-tdep.c (frv_frame_unwind): Ditto.
4779 * h8300-tdep.c (h8300_frame_unwind): Ditto.
4780 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
4781 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
4782 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
4783 (hppa_stub_frame_unwind): Ditto.
4784 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
4785 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
4786 (ia64_libunwind_frame_unwind)
4787 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
4788 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
4789 * lm32-tdep.c (lm32_frame_unwind): Ditto.
4790 * m32c-tdep.c (m32c_unwind): Ditto.
4791 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
4792 * m32r-tdep.c (m32r_frame_unwind): Ditto.
4793 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
4794 * m68k-tdep.c (m68k_frame_unwind): Ditto.
4795 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
4796 * m88k-tdep.c (m88k_frame_unwind): Ditto.
4797 * mep-tdep.c (mep_frame_unwind): Ditto.
4798 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
4799 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
4800 (mips_stub_frame_unwind): Ditto.
4801 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
4802 * moxie-tdep.c (moxie_frame_unwind): Ditto.
4803 * mt-tdep.c (mt_frame_unwind): Ditto.
4804 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
4805 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
4806 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
4807 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
4808 (s390_sigtramp_frame_unwind): Ditto.
4809 * score-tdep.c (score_prologue_unwind): Ditto.
4810 * sh-tdep.c (sh_frame_unwind): Ditto.
4811 * sh64-tdep.c (sh64_frame_unwind): Ditto.
4812 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
4813 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
4814 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
4815 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
4816 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
4817 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
4818 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
4819 (sparc64obsd_trapframe_unwind): Ditto.
4820 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
4821 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
4822 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
4823 * v850-tdep.c (v850_frame_unwind): Ditto.
4824 * vax-tdep.c (vax_frame_unwind): Ditto.
4825 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
4826 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
4827 * xtensa-tdep.c (xtensa_unwind): Ditto.
4829 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4831 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
4832 there's always a frame. Use get_frame_pc_if_available instead of
4833 get_frame_pc, and if there's no PC available, don't look up a
4836 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4838 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
4841 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4843 * tracepoint.c (set_traceframe_context): Handle unavailable PC
4846 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4848 * frame.h (frame_unwind_caller_pc_if_available): Declare.
4849 * frame.c (frame_unwind_caller_pc_if_available): New.
4850 * stack.c (frame_info): Handle unavailable PC.
4852 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4854 * frame.c (frame_unwind_pc): Rename to ...
4855 (frame_unwind_pc_if_available): ... this. New `pc' output
4856 parameter. Change return type to int. Gracefully handle
4857 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
4858 happened, or 1 otherwise.
4859 (frame_unwind_pc): Reimplement on top of
4860 frame_unwind_pc_if_available.
4861 (get_frame_func): Rename to ...
4862 (get_frame_func_if_available): New `pc' output parameter. Change
4863 return type to int. Gracefully handle the PC not being available.
4864 (get_frame_func): Reimplement on top of
4865 get_frame_func_if_available.
4866 (select_frame): Handle the PC being unavailable.
4867 (get_prev_frame): Handle the PC being unavailable.
4868 (get_frame_pc_if_available): New.
4869 (get_frame_address_in_block_if_available): New.
4870 (find_frame_sal): Handle the frame PC not being available.
4871 * frame.h (get_frame_pc_if_available): Declare.
4872 (get_frame_address_in_block_if_available): Declare.
4873 (get_frame_func_if_available): Declare.
4874 * stack.c (print_frame_info): Handle the PC being unavailable.
4875 (find_frame_funname): Ditto.
4876 (print_frame): Handle the PC being unavailable.
4877 (get_frame_language): Ditto.
4878 * blockframe.c (get_frame_block): Ditto.
4879 * macroscope.c (default_macro_scope): Ditto.
4880 * tui/tui-stack.c (tui_show_frame_info): Ditto.
4882 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4884 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
4885 NOT_AVAILABLE_ERROR when evaluating the location expression.
4887 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4889 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
4890 returning that the register piece is unavailable/optimized out.
4891 (write_pieced_value): Handle get_frame_register_bytes returning
4892 that the register piece is unavailable/optimized out when doing a
4893 read-modify write of a bitfield.
4894 * findvar.c (value_from_register): Handle get_frame_register_bytes
4895 returning that the register piece is unavailable/optimized out.
4896 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
4897 and `unavailablep'. Throw error on bad debug info. Use
4898 frame_register instead of frame_register_read, to fill in the new
4900 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
4902 * valops.c: (value_assign): Adjust, and handle
4903 get_frame_register_bytes failing.
4904 * spu-tdep.c: Include exceptions.h.
4905 (spu_software_single_step): Adjust, and handle
4906 get_frame_register_bytes failing.
4907 (spu_get_longjmp_target): Ditto.
4908 * gdbarch.sh (register_to_value): Change to return int. New
4909 parameters `optimizedp' and `unavailablep'.
4910 * gdbarch.h, gdbarch.c: Regenerate.
4911 * i386-tdep.c (i386_register_to_value): Adjust to new
4912 gdbarch_register_to_value interface.
4913 * i387-tdep.c (i387_register_to_value): Ditto.
4914 * i387-tdep.h (i387_register_to_value): Ditto.
4915 * alpha-tdep.c (alpha_register_to_value): Ditto.
4916 * ia64-tdep.c (ia64_register_to_value): Ditto.
4917 * m68k-tdep.c (m68k_register_to_value): Ditto.
4918 * mips-tdep.c (mips_register_to_value): Ditto.
4919 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
4921 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4923 * findvar.c (value_of_register): Mark the value as unavailable, if
4924 the register is unavailable.
4925 * frame.h (frame_register_unwind): New `unavailablep' parameter.
4926 (frame_register): New `unavailablep' parameter.
4927 (frame_register_read): Update comment.
4928 * frame.c (frame_register_unwind): New `unavailablep' parameter.
4929 Set it if the register is unavailable. If the register is
4930 unavailable, clear the output buffer.
4931 (frame_register): New `unavailablep' parameter. Pass it down.
4932 (frame_unwind_register): Adjust.
4933 (put_frame_register): Adjust.
4934 (frame_register_read): Adjust. Also return false if the register
4936 (frame_register_unwind_location): Adjust.
4937 * sentinel-frame.c (sentinel_frame_prev_register): If the register
4938 is unavailable, mark the value accordingly.
4939 * stack.c (frame_info): Handle unavailable registers.
4941 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4943 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
4944 simplify, using regcache_cooked_read.
4946 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4948 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
4949 (regcache_raw_read_unsigned, regcache_raw_read_signed)
4950 (regcache_raw_read_unsigned, regcache_raw_read_part)
4951 (regcache_cooked_read, regcache_cooked_read_signed)
4952 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
4953 (regcache_cooked_read_ftype): Change return to enum
4955 * regcache.c: Include exceptions.h
4956 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
4957 (do_cooked_read): Change return to enum register_status. Always
4958 forward to regcache_cooked_read.
4959 (regcache_raw_read): Change return to enum register_status. If
4960 the register is not REG_VALID, memset the buffer. Return the
4962 (regcache_raw_read_signed): Handle non-REG_VALID registers and
4963 return the register's status.
4964 (regcache_raw_read_unsigned): Ditto.
4965 (regcache_cooked_read): Change return to enum register_status.
4966 Assert that with read-only regcaches, the register's status must
4967 be known. If the regcache is read-only, and the register is not
4968 REG_VALID, memset the buffer. Return the register's status.
4969 (regcache_cooked_read_signed): Change return to enum
4970 register_status. Handle non-REG_VALID registers and return the
4972 (regcache_cooked_read_unsigned): Change return to enum
4973 register_status. Handle non-REG_VALID registers and return the
4975 (regcache_xfer_part, regcache_raw_read_part)
4976 (regcache_cooked_read_part): Change return to enum
4977 register_status. Return the register's status.
4978 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
4980 (regcache_dump): Handle unavailable cooked registers.
4981 * frame.c (do_frame_register_read): Adjust interface to match
4982 regcache_cooked_read_ftype.
4983 * gdbarch.sh (pseudo_register_read): Change return to enum
4985 * gdbarch.h, gdbarch.c: Regenerate.
4987 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
4989 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
4990 register_status. If reading a raw register indicates the raw
4991 register is not valid, return the raw register's status,
4992 otherwise, return REG_VALID.
4993 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
4994 register_status. Handle non-REG_VALID raw registers and return
4995 the register's status.
4996 * arm-tdep.c (arm_neon_quad_read)
4997 (arm_pseudo_read): Change return to enum register_status. Handle
4998 non-REG_VALID raw registers and return the register's status.
4999 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5000 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5001 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5002 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5003 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5005 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5006 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5007 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5008 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5009 (m32c_pseudo_register_read): Change return to enum
5010 register_status. Adjust.
5011 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5012 enum register_status. Return the register's status.
5013 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5014 register_status. Return the register's status.
5015 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5016 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5017 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5018 * rs6000-tdep.c (move_ev_register_func): New typedef.
5019 (e500_move_ev_register): Use it. Change return to enum
5020 register_status. Return the register's status.
5021 (do_regcache_raw_read): New function.
5022 (do_regcache_raw_write): New function.
5023 (e500_pseudo_register_read): Change return to enum
5024 register_status. Return the register's status. Use
5025 do_regcache_raw_read.
5026 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5027 (dfp_pseudo_register_read): Change return to enum register_status.
5028 Return the register's status.
5029 (vsx_pseudo_register_read): Ditto.
5030 (efpr_pseudo_register_read): Ditto.
5031 (rs6000_pseudo_register_read): Ditto.
5032 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5033 register_status. Return the register's status.
5034 * sh64-tdep.c (pseudo_register_read_portions): New function.
5035 (sh64_pseudo_register_read): Change return to enum
5036 register_status. Use pseudo_register_read_portions. Return the
5038 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5039 register_status. Return the register's status.
5040 * sh-tdep.c (pseudo_register_read_portions): New function.
5041 (sh_pseudo_register_read): Change return to enum register_status.
5042 Use pseudo_register_read_portions. Return the register's status.
5043 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5044 enum register_status. Return the register's status.
5045 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5046 * spu-tdep.c (spu_pseudo_register_read_spu)
5047 (spu_pseudo_register_read): Ditto.
5048 * xtensa-tdep.c (xtensa_register_read_masked)
5049 (xtensa_pseudo_register_read): Ditto.
5050 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5052 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5054 * python/py-value.c (valpy_getitem): Fix formatting of error function
5057 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5059 ARI fixes: Add missing internationalization markups throughout
5061 * darwin-nat-info.c: Ditto.
5064 * mi/mi-main.c: Ditto.
5066 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5068 ARI fixes: Add missing internationalization markups throughout
5071 * cp-name-parser.y: Ditto.
5074 * objc-exp.y: Ditto.
5077 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5079 ARI fixes: Messages should have no trailing new lines.
5080 * darwin-nat.c (mach_check_error): Remove trailing new line from
5081 warning function call message.
5082 * record.c (bfdcore_read): Idem for error call.
5084 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5086 * common/signals.c (target_signal_from_host): Add _ markup to error
5087 function call message.
5088 (target_signal_to_host): Add _ markup and remove trailing new line
5089 from warning call message.
5090 (target_signal_from_command): Add _ markup to error function call
5093 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5097 * python/python.c (gdbpy_write): Accept a stream argument and
5098 operate to the appropriate stream.
5099 (gdbpy_flush): Likewise.
5100 (_initialize_python): Add stream constants.
5101 (finish_python_initialization): Add GdbOutputErrorFile class.
5103 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5105 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5107 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5109 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5110 to store_signed_integer. Add debug message when relocating CALL
5111 instructions. Fix formatting of debug message.
5112 * i386-tdep.c (i386_relocate_instruction): Ditto.
5114 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5116 * target.h (struct target_ops): Remove to_lookup_symbol field.
5117 (target_lookup_symbol): Delete macro.
5118 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5119 (update_current_target, setup_target_debug): Remove handling
5120 of to_lookup_symbol target_ops field.
5121 * ada-tasks.c (get_known_tasks_addr): Remove use of
5122 target_lookup_symbol.
5123 * coffread.c (coff_symtab_read): Likewise.
5124 * dbxread.c (read_dbx_symtab): Ditto.
5126 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5129 * configure.ac: Add getthrds declaration check.
5130 * configure, config.in: Regenerate.
5131 * aix-thread.c (getthrds): Declare only if not already declared
5132 in procinfo.h. More declaration out of get_signaled_thread to
5135 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5137 * python/py-symtab.c: Populate symtab_object_methods,
5139 (stpy_is_valid): New function.
5140 (salpy_is_valid): Ditto.
5141 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5142 (sympy_is_valid): New function.
5143 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5144 (objfpy_is_valid): New function.
5145 * python/py-inferior.c: Populate inferior_object_methods.
5146 (infpy_is_valid): New function.
5147 * python/py-infthread.c: Populate thread_object_methods.
5148 (thpy_is_valid): New function.
5149 * python/py-block.c: Declare block_object_methods. Populate. Declare
5150 block_iterator_object_methods. Populate.
5151 (blpy_is_valid): New function.
5152 (blpy_iter_is_valid): Ditto.
5154 2011-03-16 Keith Seitz <keiths@redhat.com>
5156 * linespec.c (find_methods): Canonicalize NAME before looking
5158 (name_end): New function.
5159 (keep_name_info): New function.
5160 (decode_line_1): Use keep_name_info.
5161 (decode_compound): Likewise.
5162 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5163 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5166 * linespec.c (locate_first_half): Keep overload information, too.
5167 (decode_compound): Use a string to represent break characters
5169 If P points to a break character, do not increment it.
5170 For C++ and Java, keep overload information and relevant keywords.
5171 If we cannot find a symbol, search the minimal symbols.
5174 * linespec.c (decode_compound): Rename SAVED_ARG to
5176 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5178 Pass a valid block to lookup_symbol.
5179 (lookup_prefix_sym): Likewise.
5180 (find_method): Construct search name based on SYM_CLASS instead
5182 * psymtab.c (lookup_partial_symbol): Add language parameter.
5183 (lookup_symbol_aux_psymtabs): Likewise.
5184 Don't assume that the psymtab we found was the right one. Search
5185 for the desired symbol in the symtab to be certain.
5186 (psymtab_search_name): New function.
5187 (lookup_partial_symbol): Use psymtab_search_name.
5188 Add language parameter.
5189 (read_symtabs_for_function): Add language parameter and pass to
5190 lookup_partial_symbol.
5191 (find_symbol_file_from_partial): Likewise.
5193 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5196 * dwarf2read.c (noop_record_line): New function.
5197 (dwarf_decode_lines): Ignore line tables for GCd functions.
5199 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5201 Fix ARI warnings about new lines at the end of messages, which
5202 are unneeded as there is a new line added at the end of the message
5204 * darwin-nat.c (darwin_stop_inferior): Ditto.
5205 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5206 * dfp.c (decimal_to_number): Ditto.
5207 * exec.c (print_section_info): Ditto.
5208 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5209 * osdata.c (get_osdata): Ditto.
5210 * record.c (bfdcore_write): Ditto.
5211 * remote-mips.c (mips_readchar): Ditto.
5212 * remote.c (read_ptid): Ditto.
5213 * ser-mingw.c (ser_windows_raw): Ditto.
5214 * tracepoint.c (add_local_symbols): Ditto.
5215 * windows-nat.c (fake_create_process): Ditto.
5217 2011-03-16 Tom Tromey <tromey@redhat.com>
5219 * tracepoint.c (stop_tracing): Don't declare.
5220 * event-top.c (after_char_processing_hook): Add `(void)'.
5222 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5224 * NEWS: Add Parameter sub-classing description.
5226 2011-03-16 Kai Tietz <ktietz@redhat.com>
5228 * MAINTAINERS: Update my e-mail address.
5230 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5232 * MAINTAINERS: Add myself for write after approval privileges.
5234 2011-03-15 Michael Snyder <msnyder@vmware.com>
5236 * frame.c (find_frame_sal): Assert sym is not null.
5238 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5240 * objc-lang.c (selectors_info): Check strchr for null result.
5242 * stabsread.c (define_symbol): Guard against bad stabstring input.
5244 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5246 Remove trailing spaces and tabulations from pascal language
5251 p-valprint.c: Ditto.
5253 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5255 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5256 than LOW. Comment it.
5257 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5258 HIGHPC not strictly higher than LOWPC.
5260 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5262 Fix formatting of function declarations returning a pointer in
5264 * varobj.c (varobj_add_child): Ditto.
5265 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5266 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5268 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5270 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5271 for the "generic" vector ABI used with GCC 4.3 and later.
5272 (ppc64_sysv_abi_return_value): Likewise.
5274 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5276 * infcall.c (call_function_by_hand): Function return value is
5277 always a non_lval, even when using struct_return.
5279 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5281 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5282 (map_display_numbers): New.
5283 (do_delete_display): New.
5284 (undisplay_command): Use map_display_numbers.
5285 (do_enable_disable_display): New.
5286 (enable_disable_display_command): New function.
5287 (enable_display): Delete.
5288 (enable_display_command): New.
5289 (disable_display_command): Reimplement.
5290 (_initialize_printcmd): Adjust "enable display" command to use
5291 `enable_display_command' as callback.
5293 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5295 * NEWS: Add Python breakpoint 'stop' operation.
5297 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5299 * NEWS: Delete duplicate entry. Fix typo.
5301 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5303 Fix ARI warning about function names in first column.
5304 Put prototype declaration on same line as return type.
5305 * objc-exp.y: Ditto.
5307 * python/py-stopevent.h: Ditto.
5308 For long function names, split parameters to
5309 allow function name on same line as return type.
5310 * solib-pa64.c: Ditto.
5313 For long function declaration, use single line.
5314 * hppa-tdep.h: Ditto.
5315 * inferior.h: Ditto.
5317 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5319 * python/python.h: Declare gdbpy_should_stop and
5320 gdbpy_breakpoint_has_py_cond.
5321 * python/python.c: Add python.h to includes. Remove python.h from
5322 HAVE_PYTHON definition
5323 (gdbpy_should_stop): New dummy function.
5324 (gdbpy_breakpoint_has_py_cond): New dummy function.
5325 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5326 sub-classing capabilities.
5327 (gdbpy_should_stop): New function.
5328 (gdbpy_breakpoint_has_py_cond): New function.
5329 (local_setattro): New function.
5330 * breakpoint.c (condition_command): Add check for Python 'stop'
5332 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5333 operation function as part of stop/continue tests.
5335 2011-03-14 Tom Tromey <tromey@redhat.com>
5338 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5339 (needs_frame_dwarf_call): Likewise.
5341 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5343 Fix ARI warning about functions without parameters that do not
5345 * breakpoint.c (all_tracepoints): Replace () by (void).
5346 * f-exp.y (match_string_literal): Ditto.
5348 * m2-exp.y (yylex): Ditto.
5349 * mep-tdep.c (current_me_module): Ditto.
5350 (current_options): Ditto.
5351 (current_cop_data_bus_width): Ditto.
5352 (current_cr_names): Ditto.
5353 (current_cr_is_float): Ditto.
5354 (current_ccr_names): Ditto.
5355 * objc-exp.y (yylex): Ditto.
5356 * p-exp.y (yylex): Ditto.
5357 * remote.c (send_interrupt_sequence): Ditto.
5358 * tracepoint.c (current_trace_status): Ditto.
5359 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5360 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5362 2011-03-11 Michael Snyder <msnyder@vmware.com>
5364 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5365 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5366 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5367 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5368 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5370 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5371 (delete_async_event_handler): Ditto.
5373 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5375 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5377 * top.c (set_verbose): Assert showcmd was found.
5379 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5381 * xtensa-tdep.c (warning_once): Correct style issues.
5383 2011-03-11 Yao Qi <yao@codesourcery.com>
5385 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5387 2011-03-11 Andreas Schwab <schwab@redhat.com>
5389 * common/aclocal.m4: Remove.
5391 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5393 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5394 (xtensa_write_register, xtensa_read_register): Likewise.
5395 (xtensa_hextochar): Removed.
5396 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5398 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5400 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5401 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5402 (xtensa_alloc_frame_cache): Add initialization for new fields.
5403 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5404 (warning_once): New function.
5405 (xtensa_insn_kind): New item c0opc_and.
5406 (call0_classify_opcode): Add the case for AND instruction.
5407 (call0_track_op): Change arguments. New local variable litbase.
5408 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5409 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5411 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5412 (call0_analyze_prologue): Update the comments. Change arguments.
5413 Add the variety of updates to handle extended prologues, which now can
5414 conduct dynamic stack adjustments.
5415 (call0_frame_cache): Likewise.
5416 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5417 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5419 2011-03-10 Michael Snyder <msnyder@vmware.com>
5421 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5422 (cmd_qtframe): Ditto.
5423 (cmd_qtbuffer): Ditto.
5424 (cmd_bigqtbuffer): Ditto.
5426 2011-03-10 Tom Tromey <tromey@redhat.com>
5428 * tracepoint.c (trace_actions_command): Update.
5429 * thread.c (thread_apply_command): Update.
5430 * reverse.c (delete_bookmark_command): Update.
5431 (bookmarks_info): Update.
5432 * printcmd.c (undisplay_command): Update.
5433 * memattr.c (mem_enable_command): Update.
5434 (mem_disable_command): Update.
5435 (mem_delete_command): Update.
5436 * inferior.c (detach_inferior_command): Update.
5437 (kill_inferior_command): Update.
5438 (remove_inferior_command): Update.
5439 * cli/cli-utils.h (struct get_number_or_range_state): New.
5440 (init_number_or_range): Declare.
5441 (get_number_or_range): Update.
5442 * cli/cli-utils.c (init_number_or_range): New function.
5443 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5445 (number_is_in_list): Update.
5446 * breakpoint.h (get_tracepoint_by_number): Update.
5447 * breakpoint.c (map_breakpoint_numbers): Update for change to
5448 get_number_or_range.
5449 (find_location_by_number): Use get_number, not
5450 get_number_or_range.
5451 (trace_pass_set_count): New function.
5452 (trace_pass_command): Update for change to get_number_or_range.
5454 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5457 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5459 * python/py-param.c (add_setshow_generic): Add set/show callback
5460 parameters. Register Python object context.
5461 (get_show_value): New function.
5462 (get_set_value): New function.
5463 (call_doc_function): New function.
5464 (get_doc_string): Move behind get_show_value/get_set_value.
5466 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5468 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5470 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5472 * xtensa-tdep.c (xtensa_read_register): Add comment.
5473 (xtensa_write_register): Likewise.
5474 (xtensa_hextochar): Add comment and update to match coding conventions.
5475 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5476 (execute_l32e, execute_s32e, execute_code): Update comments.
5477 (xtensa_exception_handler_t): Update to match coding conventions.
5478 (xtensa_insn_kind): Likewise.
5480 2011-03-09 Michael Snyder <msnyder@vmware.com>
5482 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5484 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5486 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5488 2011-03-09 Tom Tromey <tromey@redhat.com>
5490 * thread.c (restore_selected_frame): Handle frame_level == -1.
5491 (make_cleanup_restore_current_thread): Use
5492 get_selected_frame_if_set.
5493 * frame.h (get_selected_frame_if_set): Declare.
5494 * frame.c (get_selected_frame_if_set): New function.
5496 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5498 * cli/cli-cmds.c (shell_escape): Use lbasename.
5499 * coffread.c (coff_start_symtab): Constify parameter.
5500 (complete_symtab): Constify `name' parameter.
5501 (coff_symtab_read): Constify `filestring' local.
5502 (coff_getfilename): Constify return and `result' local.
5504 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5505 * linux-fork.c (info_checkpoints_command): Use lbasename.
5506 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5507 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5508 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5509 * procfs.c (procfs_make_note_section): Use lbasename.
5510 * tui/tui-io.c (printable_part): Constity return and parameter.
5512 (print_filename): Constify parameters, and local `s'.
5513 (tui_rl_display_match_list): Constify local `temp'.
5515 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5518 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5519 Fix DWARF-3+ DW_AT_accessibility default assumption.
5520 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5521 cu->header.version >= 3.
5523 2011-03-09 Yao Qi <yao@codesourcery.com>
5525 * common/Makefile.in: Remove.
5526 * common/configure: Remove.
5527 * common/configure.ac: Remove.
5529 2011-03-09 Yao Qi <yao@codesourcery.com>
5532 2011-02-11 Yao Qi <yao@codesourcery.com>
5534 * common/Makefile.in: Add copyright header.
5536 2011-02-11 Yao Qi <yao@codesourcery.com>
5538 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5540 * configure.ac: Add common to sub dir.
5541 * configure: Regenerate.
5543 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5545 * xtensa-tdep.c (call0_ret): New function.
5546 (xtensa_skip_prologue): Speed up analysis.
5548 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5550 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5551 while executing MI command -data-list-changed-registers.
5553 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5555 * xtensa-tdep.c (xtensa_read_register): New function.
5556 (xtensa_write_register): New function.
5557 (xtensa_find_register_by_name): New function.
5558 (xtensa_windowed_frame_cache): Update comments in type description.
5559 (xtensa_frame_cache): Likewise.
5560 (xtensa_window_interrupt_insn): New function.
5561 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5562 (xtensa_insn_kind): Add new instructions.
5563 (rwx_special_register): New function.
5564 (call0_classify_opcode): Add new instructions to the analysis.
5565 (a0_saved, a7_saved, a11_saved): New variables.
5566 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5567 (execute_l32e): New function.
5568 (execute_s32e): New function.
5569 (xtensa_exception_handler_t): New type.
5570 (execute_code): New function.
5571 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5572 analysis for Xtensa Window Exception handlers.
5574 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5576 * xtensa-tdep.c (TX_PS): New.
5577 (windowing_enabled): Update to count for Call0 ABI.
5578 (xtensa_hextochar): New.
5579 (xtensa_init_reggroups): Make algorithm generic.
5580 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5582 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5584 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5586 2011-03-08 Michael Snyder <msnyder@vmware.com>
5588 * i386-tdep.c (i386_follow_jump): Check return value of
5590 (i386_analyze_struct_return): Ditto.
5591 (i386_skip_probe): Ditto.
5592 (i386_match_insn): Ditto.
5593 (i386_skip_noop): Ditto.
5594 (i386_analyze_frame_setup): Ditto.
5595 (i386_analyze_register_saves): Ditto.
5596 (i386_skip_prologue): Ditto.
5597 (i386_skip_main_prologue): Ditto.
5599 * target.c (read_whatever_is_readable): Fix memory leak.
5601 * i386-tdep.c (i386_process_record): Document fall through.
5603 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5605 Fix DWARF-3+ DW_AT_accessibility default assumption.
5606 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5607 cu->header.version >= 3.
5609 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5611 * remote.c (remote_check_symbols): Skip if the target has no
5614 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5616 * target.c (read_whatever_is_readable): Reformat comment,
5617 with a minor typo fix. Minor reformatting of the code.
5619 2011-03-08 Yao Qi <yao@codesourcery.com>
5621 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5622 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5623 Use cached result instead of calling displaced_in_arm_mode again.
5624 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5625 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5626 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5627 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5628 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5629 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5630 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5631 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5632 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5633 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5634 (arm_catch_kernel_helper_return): Likewise.
5635 * gdb/arm-tdep.h : Update function declarations.
5637 2011-03-07 Michael Snyder <msnyder@vmware.com>
5639 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5641 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5643 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5645 * elfread.c (elf_symtab_read): Stop memory leak.
5647 * main.c (captured_main): Fix memory leak.
5649 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5651 * ada-lang.c (compare_names): Call is_name_suffix with string1
5654 2011-03-07 Tom Tromey <tromey@redhat.com>
5656 * xcoffread.c (xcoff_sym_fns): Update.
5657 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5658 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5659 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5660 (symbol_file_add_with_addrs_or_offsets): Likewise.
5661 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5662 * somread.c (som_sym_fns): Update.
5663 * psymtab.h (require_partial_symbols): Declare.
5664 * psymtab.c (require_partial_symbols): New function.
5665 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5666 (ALL_OBJFILE_PSYMTABS): Undef.
5667 (ALL_PSYMTABS): Move from psympriv.h.
5668 (lookup_partial_symtab, find_pc_sect_psymtab)
5669 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5670 (find_last_source_symtab_from_partial)
5671 (forget_cached_source_info_partial)
5672 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5673 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5674 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5675 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5676 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5677 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5678 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5679 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5680 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5682 * mipsread.c (ecoff_sym_fns): Update.
5683 * machoread.c (macho_sym_fns): Update.
5684 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5685 (read_psyms): New function.
5686 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5687 (elf_sym_fns_lazy_psyms): New global.
5688 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5689 dwarf2_build_psymtabs.
5690 * dbxread.c (aout_sym_fns): Update.
5691 * coffread.c (coff_sym_fns): Update.
5693 2011-03-07 Tom Tromey <tromey@redhat.com>
5695 * infrun.c (print_exited_reason): Include inferior id and pid in
5698 2011-03-07 Tom Tromey <tromey@redhat.com>
5700 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5702 (target_has_execution_1): Update.
5703 (target_has_execution_current): Declare.
5704 (target_has_execution): Call target_has_execution_current.
5705 (default_child_has_execution): Update.
5706 * target.c (default_child_has_execution): Add 'the_ptid'
5708 (target_has_execution_1): Likewise.
5709 (target_has_execution_current): New function.
5710 (add_target): Update.
5711 (init_dummy_target): Update.
5712 * remote-m32r-sdi.c (m32r_has_execution): New function.
5713 (init_m32r_ops): Use it.
5714 * record.c (record_core_has_execution): Now static. Add
5715 'the_ptid' parameter.
5716 * inferior.c (have_live_inferiors): Don't save current thread.
5717 Use target_has_execution_1.
5719 2011-03-07 Yao Qi <yao@codesourcery.com>
5721 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5723 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5725 * elfread.c (elf_symtab_read): Minor reformatting.
5727 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5729 * objc-lang.c (selectors_info): Minor reformatting.
5731 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5733 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5735 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5736 Michael Snyder <msnyder@vmware.com>
5738 * ada-valprint.c (ada_val_print_array): Move the declaration of
5739 "byte_order" and "elttype" inside the block where these variables
5740 are actually used. Remove some special handling for the case
5741 where "elttype" and "eltlen" are null. Replace by a comment
5742 and a couple of assertion checks.
5744 2011-03-05 Michael Snyder <msnyder@vmware.com>
5746 * source.c (add_path): Replace semicolon at end of block.
5747 * dwarf2expr.c (execute_stack_op): Ditto.
5749 2011-03-05 Mike Frysinger <vapier@gentoo.org>
5751 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
5752 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
5753 (bfin-*-*): Likewise.
5755 2011-03-05 Michael Snyder <msnyder@vmware.com>
5757 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
5758 * mdebugread.c (parse_symbol): Ditto.
5759 * parse.c (parse_exp_in_context): Ditto.
5760 * source.c (add_path): Ditto.
5761 * utils.c (gnu_debuglink_crc32): Ditto.
5762 * varobj.c (variable_language): Ditto.
5764 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
5766 2011-03-04 Michael Snyder <msnyder@vmware.com>
5768 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
5770 * symfile.c (simple_overlay_update): Check for null return value
5771 from lookup_minimal_symbol.
5773 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
5775 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5777 * eval.c (parse_and_eval_address_1): Remove function.
5778 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
5779 instead of parse_and_eval_address_1.
5780 * value.h (parse_and_eval_address_1): Remove prototype.
5782 2011-03-04 Michael Snyder <msnyder@vmware.com>
5784 * remote.c (putpkt_binary): Document that case stmt falls through.
5786 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5788 * breakpointc (print_it_typical): Move NULL check from here...
5789 (print_bp_stop_message): ... to here.
5791 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
5793 * breakpoint.c (enable_command): Use break instead of continue,
5794 and fill in a missing break.
5795 (disable_command): Ditto.
5797 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5799 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
5800 (terminal_save_ours): Remove misleading comment.
5801 (inflow_inferior_data_cleanup): Free ttystate.
5802 (inflow_inferior_exit): Likewise.
5803 (copy_terminal_info): Copy ttystate.
5805 * serial.c (serial_copy_tty_state): New function.
5806 * serial.h (serial_copy_tty_state): Add prototype.
5807 (struct serial_ops): Add copy_tty_state callback.
5808 * ser-base.c (ser_base_copy_tty_state): New function.
5809 * ser-base.h (ser_base_copy_tty_state): Add prototype.
5810 * ser-go32.c (dos_copy_tty_state): New function.
5811 (dos_ops): Install copy_tty_state callback.
5812 * ser-mingw.c (_initialize_ser_windows): Likewise.
5813 * ser-pipe.c (_initialize_ser_pipe): Likewise.
5814 * ser-unix.c (hardwire_copy_tty_state): New function.
5815 (_initialize_ser_hardwire): Install it.
5817 2011-03-04 Michael Snyder <msnyder@vmware.com>
5819 * breakpoint.c (create_breakpoint): Add missing break statement.
5821 Reverting this patch:
5822 * infcall.c (call_function_by_hand): Add break statements for lint.
5824 Reverting this patch:
5825 * cli/cli-script.c (script_from_file): Add break for lint.
5827 2011-03-04 Michael Snyder <msnyder@vmware.com>
5829 * solib.c (reload_shared_libraries_1): Close memory leak.
5831 2011-03-03 Tom Tromey <tromey@redhat.com>
5834 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
5837 2011-03-03 Michael Snyder <msnyder@vmware.com>
5839 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
5840 fields of struct 'st' to zero.
5842 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
5843 sal.pspace before calling set_current_source_symtab_and_line.
5845 2011-03-03 Yao Qi <yao@codesourcery.com>
5847 * Makefile.in (configure-common): Remove. Let Makefile
5848 in dir common to rebuild itself.
5849 (common/Makefile): Likewise.
5851 2011-03-03 Joel Brobecker <brobecker@adacore.com>
5853 * utils.c (parse_escape): Add i18n markup in error message.
5855 2011-03-03 Yao Qi <yao@codesourcery.com>
5857 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
5859 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
5860 (displaced_write_reg, displaced_read_reg): Likewise.
5861 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
5862 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5863 (cleanup_branch): Replace magic number 14 and 15 with
5864 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
5866 2011-03-02 Michael Snyder <msnyder@vmware.com>
5868 * maint.c (maintenance_do_deprecate): No need to check for NULL.
5870 * cli/cli-script.c (script_from_file): Add break for lint.
5872 * mdebugread.c (parse_partial_symbols): Fix indent.
5874 * target-descriptions.c (tdesc_gdb_type): No need to call
5875 xstrdup, callee saves a copy.
5877 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
5879 * infcall.c (call_function_by_hand): Add break statements for lint.
5881 * utils.c (parse_escape): Escape the escape char.
5883 * python/py-inferior.c (build_inferior_list): Error out if
5884 PyList_Append fails.
5885 (gdbpy_inferiors): Error out if build_inferior_list fails.
5887 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
5890 * record.c (record_restore): Move printf to before error return.
5892 2011-03-02 Yao Qi <yao@codesourcery.com>
5894 * arm-tdep.h (struct displaced_step_closure): Add two new fields
5895 is_thumb and insn_size.
5896 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
5897 on both ARM and Thumb mode.
5898 (arm_process_displaced_insn): Set is_thumb and insn_size.
5899 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
5900 (arm_displaced_step_fixup): Likewise.
5902 2011-03-01 Michael Snyder <msnyder@vmware.com>
5904 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
5906 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
5908 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
5910 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
5912 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
5915 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
5916 which shadows function parameter.
5918 * tracepoint.c (create_tsv_from_upload): Superfluous call
5919 to xstrdup. Callee already calls xstrdup.
5921 * linespec.c (decode_line_1): Remove unnecessary null check.
5923 * tracepoint.c (scope_info): Fix mem leak, remove underused
5926 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
5927 superfluous null check.
5929 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
5930 (value_of_builtin_frame_fp_reg): Ditto.
5932 * event-top.c (display_gdb_prompt): Remove superfluous null check.
5934 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
5937 * linespec.c (decode_line_1): Check for null before dereference.
5939 * reverse.c (record_restore): Move null-check to before pointer
5942 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
5944 * objc-lang.c (selectors_info): Add explanitory comment.
5945 (classes_info): Ditto.
5947 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5949 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
5950 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
5951 versions of the trampoline. Handle Thumb vs. ARM addresses.
5952 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
5953 (arm_linux_init_abi): Install it.
5954 * arm-tdep.c (arm_psr_thumb_bit): Make global.
5955 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
5957 2011-02-28 Michael Snyder <msnyder@vmware.com>
5959 * ui-out.c (ui_out_field_core_addr): Make local char buffer
5960 a little bigger, to avoid possibility of an overflow.
5962 * breakpoint.c (breakpoint_adjustment_warning): Make local char
5963 buffers a little bigger, to avoid possibility of an overflow.
5965 * coffread.c (coff_getfilename): Add check to avoid overflow.
5967 * objc-lang.c (selectors_info): Add a small safety margin to
5969 (classes_info): Error out on too long REGEXP.
5971 * infrun.c (handle_inferior_event): Remove unused function call.
5973 * fork-child.c (fork_inferior): Remove ifdef'd code and
5976 * linux-thread-db.c (attach_thread): Discard unused value.
5978 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
5980 * remote.c (remote_get_noisy_reply): Discard unused value.
5981 (remote_vcont_resume): Ditto.
5982 (remote_stop_ns): Ditto.
5984 * linespec.c (decode_objc): Delete unused variable.
5986 * tui/tui-regs.c (tui_register_format): Delete unused variable.
5988 * dwarf2read.c (add_partial_symbol): Discard unused values.
5989 (read_base_type): Delete unused variable.
5991 * dbxread.c (read_dbx_symtab): Discard unused value.
5993 * eval.c (evaluate_subexp_standard): Delete unused variable,
5994 and discard unused values.
5996 * infcmd.c (_initialize_infcmd): Discard unused values.
5998 * stabsread.c (rs6000_builtin_type): Missing break statement.
6000 * dbxread.c (process_one_symbol): Discard unused value.
6002 * coffread.c (coff_end_symtab): Delete unused variable.
6004 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6005 (dwarf2_add_typedef): Delete unused variable.
6006 (read_namespace): Ditto.
6007 (dwarf_decode_macros): Ditto.
6009 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6011 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6013 * p-valprint.c (pascal_val_print): Discard unused value.
6015 * utils.c (nquery): Call va_end before return;
6019 * proc-service.c (ps_plog): Call va_end before return.
6021 2011-02-28 Tom Tromey <tromey@redhat.com>
6023 * python/python.c (gdbpy_value_cst): New global.
6024 (_initialize_python): Initialize it.
6025 * python/python-internal.h (gdbpy_value_cst): Declare.
6026 * python/py-value.c (convert_value_from_python): Use
6029 2011-02-28 Michael Snyder <msnyder@vmware.com>
6031 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6033 * breakpoint.c (catch_syscall_completer): Free malloced list.
6035 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6037 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6038 (lval_func_check_synthetic_pointer): Ditto.
6039 (lval_func_free_closure): Fix use-after-free.
6041 2011-02-28 Tom Tromey <tromey@redhat.com>
6043 * psymtab.c (expand_partial_symbol_tables): Use
6044 ALL_OBJFILE_PSYMTABS.
6046 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6048 * objc-lang.c (selectors_info): Error on too long REGEXP.
6050 2011-02-28 Michael Snyder <msnyder@vmware.com>
6052 * python/py-param.c (set_parameter_value): Add missing
6055 * linux-record.c (record_linux_system_call): Add missing
6058 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6060 * breakpoint.c (print_one_breakpoint_location): Remove unused
6061 argument PRINT_ADDRESS_BITS. Update callers.
6062 (print_one_breakpoint): Likewise.
6064 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6066 * breakpoint.c (wrap_indent_at_field): New function.
6067 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6068 Allocate ui_stream locally instead of using STB argument.
6069 (print_one_breakpoint_location): Update call.
6070 * ui-out.c (ui_out_query_field): New function.
6071 * ui-out.h (ui_out_query_field): Add prototype.
6073 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6075 From Michael Snyder <msnyder@vmware.com>
6076 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6078 2011-02-27 Michael Snyder <msnyder@vmware.com>
6080 * objc-lang.c (selectors_info): Prevent string overrun.
6082 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6085 * symtab.c (rbreak_command): Move variable 'file_name' to
6088 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6089 param with a local variable of the same name.
6091 2011-02-27 Michael Snyder <msnyder@vmware.com>
6093 * value.c (value_from_history_ref): New function.
6094 * value.h (value_from_history_ref): Export.
6095 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6096 to parse value history references.
6097 * cli/cli-utils.h (get_number_trailer): Update comment.
6099 2011-02-27 Michael Snyder <msnyder@vmware.com>
6101 * inferior.c (detach_inferior_command): Use get_number_or_range.
6102 (kill_inferior_command): Ditto.
6103 (remove_inferior_command): Ditto.
6104 (initialize_inferiors): Make command names plural.
6105 Update help strings.
6107 2011-02-27 Michael Snyder <msnyder@vmware.com>
6109 * darwin-nat-info.c: Fix comment typo.
6110 * dwarf2expr.h: Ditto.
6111 * fbsd-nat.c: Ditto.
6112 * fbsd-nat.h: Ditto.
6113 * frame-unwind.h: Ditto.
6115 * hppa-hpux-tdep.c: Ditto.
6116 * i386-linux-nat.c: Ditto.
6117 * linux-nat.c: Ditto.
6118 * nbsd-nat.c: Ditto.
6119 * nbsd-nat.h: Ditto.
6120 * ppc-linux-tdep.c: Ditto.
6123 * tui/tui-winsource.c: Ditto.
6125 2011-02-26 Michael Snyder <msnyder@vmware.com>
6127 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6129 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6131 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6132 with a local variable of the same name.
6134 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6135 param with a local variable of the same name.
6136 (i387_supply_xsave): Ditto.
6138 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6139 that it does not shadow a function parameter.
6141 * i386-nat.c (i386_length_and_rw_bits): Document that case
6142 statement is meant to fall through.
6144 * expprint.c (dump_subexp_body_standard): Document that case
6145 statement is meant to fall through.
6147 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6148 dead if statement. Condition can't be false.
6150 2011-02-25 Michael Snyder <msnyder@vmware.com>
6152 * arm-tdep.c: Fix typos in comments.
6153 * bsd-uthread.c: Ditto.
6154 * completer.c: Ditto.
6156 * cp-namespace.c: Ditto.
6157 * cp-support.c: Ditto.
6158 * cris-tdep.c: Ditto.
6160 * dwarf2read.c: Ditto.
6162 * gdbtypes.h: Ditto.
6163 * inferior.h: Ditto.
6164 * mdebugread.c: Ditto.
6165 * mips-tdep.c: Ditto.
6166 * ppc-linux-nat.c: Ditto.
6167 * ppc-linux-tdep.c: Ditto.
6168 * printcmd.c: Ditto.
6169 * sol-thread.c: Ditto.
6170 * solib-frv.c: Ditto.
6172 * sparc64-tdep.c: Ditto.
6173 * spu-tdep.c: Ditto.
6174 * stabsread.c: Ditto.
6179 * python/py-block.c: Ditto.
6180 * python/py-symbol.c: Ditto.
6181 * python/py-symtab.c: Ditto.
6182 * python/py-value.c: Ditto.
6183 * tui/tui-win.c: Ditto.
6185 2011-02-25 Michael Snyder <msnyder@vmware.com>
6187 * inferior.c (print_inferior): Accept a string instead of an int
6188 for requested_inferiors, and use get_number_or_range to parse it.
6189 (info_inferiors_command): Pass args string to print_inferior.
6190 (initialize_inferiors): Change help string for info inferiors.
6191 * inferior.h (print_inferior): Export prototype change.
6193 2011-02-25 Tom Tromey <tromey@redhat.com>
6195 * common/ax.def (invalid2): Set to 0x31.
6197 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6199 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6201 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6203 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6205 2011-02-24 Michael Snyder <msnyder@vmware.com>
6207 * Makefile.in (clean): Make clean should remove generated files
6208 observer.h and observer.inc.
6210 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6212 Revert the following patch (not approved yet):
6213 2011-02-21 Hui Zhu <teawater@gmail.com>
6214 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6215 * ax-gdb.c (gen_printf_expr_callback): New function.
6216 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6217 * ax-general.c (ax_memcpy): New function.
6218 (ax_print): Handle "printf".
6220 * ax.h (ax_memcpy): Forward declare.
6221 * common/ax.def (invalid2): Removed.
6222 (printf): New entry.
6223 * printcmd.c (printcmd.h): New include.
6224 (string_printf): New function.
6225 (ui_printf): Removed.
6226 (printf_command): Remove static. Call string_printf.
6227 (eval_command): Call string_printf.
6228 * printcmd.h: New file.
6229 * tracepoint.c (validate_actionline,
6230 encode_actions_1): handle printf_command.
6232 2011-02-23 Tom Tromey <tromey@redhat.com>
6234 * ax-general.c (ax_pick): Add missing newline.
6236 2011-02-23 Michael Snyder <msnyder@vmware.com>
6238 * breakpoint.c (breakpoint_1): Change first argument from an int
6239 to a char pointer, so that the function now accepts a list of
6240 breakpoints rather than just one. Use new function
6241 'number_is_in_list' to implement.
6242 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6243 (watchpoints_info): Ditto.
6244 (tracepoints_info): Ditto.
6245 (maintenance_info_breakpoints): Ditto.
6246 (_initialize_breakpoint): Update help strings to reflect the fact
6247 that these functions can now take more than one argument.
6248 * cli/cli-utils.c (number_is_in_list): New function.
6249 * cli/cli-utils.h (number_is_in_list): Export.
6251 2011-02-23 Michael Snyder <msnyder@vmware.com>
6253 * memattr.c (mem_enable_command): Use get_number_or_range.
6254 (mem_disable_command): Ditto.
6255 (mem_delete_command): Ditto.
6256 (_initialize_mem): Tweak usage message to reflect multiple
6259 2011-02-22 Doug Evans <dje@google.com>
6261 Add gdb.lookup_global_symbol python function.
6263 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6264 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6265 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6267 2011-02-22 Tom Tromey <tromey@redhat.com>
6269 * language.c (language_class_name_from_physname): Rename
6270 'curr_language' argument to 'lang'; use in body.
6272 2011-02-22 Michael Snyder <msnyder@vmware.com>
6274 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6276 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6278 * frame-unwind.h: Fix comment to mention the this frame, not the
6281 2011-02-22 Tom Tromey <tromey@redhat.com>
6283 * symfile.c (auto_solib_limit): Remove.
6284 * symfile.h (auto_solib_limit): Remove.
6286 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6288 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6290 2011-02-21 Michael Snyder <msnyder@vmware.com>
6292 * gdbthread.h (print_thread_info): Change prototype.
6293 * thread.c (print_thread_info): Accept char* instead of int for
6294 requested_threads argument. Use new function number_is_in_list
6295 to determine which threads to list.
6296 (info_threads_command): Pass char* to print_thread_info.
6297 * cli/cli-utils.c (number_is_in_list): New function.
6298 * cli/cli-utils.h (number_is_in_list): Export.
6299 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6301 (print_one_inferior): Ditto.
6302 (mi_cmd_list_thread_groups): Ditto.
6304 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6306 * common/Makefile.in (CFLAGS): New.
6307 (COMPILE): Add $(CFLAGS).
6309 2011-02-21 Tom Tromey <tromey@redhat.com>
6311 * breakpoint.c (catch_syscall_command_1): Fix typo.
6313 2011-02-21 Tom Tromey <tromey@redhat.com>
6315 * reverse.c: Include cli-utils.h.
6316 * printcmd.c: Include cli-utils.h.
6317 (string_printf): Use skip_spaces.
6318 * cli/cli-utils.h: New file.
6319 * cli/cli-utils.c: New file.
6320 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6321 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6322 * breakpoint.h (get_number, get_number_or_range): Move to
6324 * breakpoint.c: Include cli-utils.h.
6325 (get_number_trailer, get_number, get_number_or_range)
6326 (ep_skip_leading_whitespace): Move to cli-utils.c.
6327 (create_breakpoint_sal, find_condition_and_thread)
6328 (decode_static_tracepoint_spec, watch_command_1)
6329 (watch_maybe_just_location, ep_parse_optional_if_clause)
6330 (catch_fork_command_1, catch_exec_command_1)
6331 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6332 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6333 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6334 (HFILES_NO_SRCDIR): Add cli-utils.h.
6335 (cli-utils.o): New target.
6337 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6339 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6340 before calling discard_all_inferiors.
6342 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6344 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6345 (struct builtin_opencl_type): Remove.
6346 (builtin_opencl_type): Change return type to "struct type **".
6347 (lookup_opencl_vector_type): Update caller.
6348 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6349 (build_opencl_types): Install plain array of "struct type *"
6350 instead of "struct builtin_opencl_type".
6352 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6353 Ulrich Weigand <uweigand@de.ibm.com>
6355 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6356 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6357 (struct arm_linux_hwbp_cap): New type.
6358 (arm_linux_get_hwbp_cap): New function.
6359 (arm_linux_get_hw_breakpoint_count): Likewise.
6360 (arm_linux_get_hw_watchpoint_count): Likewise.
6361 (arm_linux_can_use_hw_breakpoint): Likewise.
6362 (arm_hwbp_type): New type.
6363 (arm_hwbp_control_t): Likewise.
6364 (struct arm_linux_hw_breakpoint): Likewise.
6365 (struct arm_linux_thread_points): Likewise.
6366 (arm_threads): New global variable.
6367 (arm_linux_find_breakpoints_by_tid): New function.
6368 (arm_hwbp_control_initialize): Likewise.
6369 (arm_hwbp_control_is_enabled): Likewise.
6370 (arm_hwbp_control_disable): Likewise.
6371 (arm_linux_hw_breakpoint_initialize): Likewise.
6372 (arm_linux_get_hwbp_type): Likewise.
6373 (arm_linux_hw_watchpoint_initialize): Likewise.
6374 (arm_linux_hw_breakpoint_equal): Likewise.
6375 (arm_linux_insert_hw_breakpoint1): Likewise.
6376 (arm_linux_remove_hw_breakpoint1): Likewise.
6377 (arm_linux_insert_hw_breakpoint): Likewise.
6378 (arm_linux_remove_hw_breakpoint): Likewise.
6379 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6380 (arm_linux_insert_watchpoint): Likewise.
6381 (arm_linux_remove_watchpoint): Likewise.
6382 (arm_linux_stopped_data_address): Likewise.
6383 (arm_linux_stopped_by_watchpoint): Likewise.
6384 (arm_linux_watchpoint_addr_within_range): Likewise.
6385 (arm_linux_new_thread): Likewise.
6386 (arm_linux_thread_exit): Likewise.
6387 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6388 related target callbacks. Register arm_linux_new_thread and
6389 arm_linux_thread_exit.
6390 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6391 * arm-tdep.c (arm_pc_is_thumb): Make global.
6392 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6394 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6396 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6397 per-frame locations while within a function epilogue.
6399 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6401 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6402 to GNU coding standards.
6404 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6406 Allow use of mingw native on Windows 95 OS.
6407 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6408 (ser_windows_close): Only call CancelIo if function exists.
6409 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6410 to check for existence of CancelIo function in kernel32 DLL.
6412 2011-02-21 Hui Zhu <teawater@gmail.com>
6414 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6415 * ax-gdb.c (gen_printf_expr_callback): New function.
6416 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6417 * ax-general.c (ax_memcpy): New function.
6418 (ax_print): Handle "printf".
6420 * ax.h (ax_memcpy): Forward declare.
6421 * common/ax.def (invalid2): Removed.
6422 (printf): New entry.
6423 * printcmd.c (printcmd.h): New include.
6424 (string_printf): New function.
6425 (ui_printf): Removed.
6426 (printf_command): Remove static. Call string_printf.
6427 (eval_command): Call string_printf.
6428 * printcmd.h: New file.
6429 * tracepoint.c (validate_actionline,
6430 encode_actions_1): handle printf_command.
6432 2011-02-19 Michael Snyder <msnyder@vmware.com>
6434 * reverse.c (delete_one_bookmark): Argument is now bookmark
6435 id rather than pointer to bookmark struct.
6436 (delete_bookmark_command): Use get_number_or_range.
6437 (goto_bookmark_command): Parse with get_number instead of strtoul.
6438 (bookmark_1): New function. Print info for one bookmark.
6439 (bookmarks_info): Use get_number_or_range and bookmark_1.
6441 2011-02-18 Michael Snyder <msnyder@vmware.com>
6443 * thread.c (info_threads_command): Re-implement using
6444 get_number_or_range.
6445 (thread_apply_command): Ditto.
6447 2011-02-18 Tom Tromey <tromey@redhat.com>
6449 * common/ax.def: New file.
6450 * ax.h (enum agent_op): Use ax.def.
6451 * ax-general.c (aop_map): Use ax.def.
6453 2011-02-18 Tom Tromey <tromey@redhat.com>
6455 * ax-general.c (aop_map): Add pick and rot.
6456 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6457 <DW_OP_rot>: Implement.
6458 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6460 * ax-general.c (ax_pick): New function.
6462 2011-02-18 Tom Tromey <tromey@redhat.com>
6464 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6466 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6467 Tom Tromey <tromey@redhat.com>
6469 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6470 make_symbol_overload_list_block with NULL BLOCK.
6471 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6473 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6475 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6476 * breakpoint.h (get_number_or_range): Declare.
6477 * printcmd.c (ALL_DISPLAYS): Declare.
6478 (delete_display): Reimplement taking a display pointer.
6479 (undisplay_command): Accept a range of displays to delete, using
6480 get_number_or_range.
6482 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6484 * c-valprint.c (c_val_print): Add embedded_offset to address
6485 for arrays of unspecified length.
6486 * p-valprint.c (pascal_val_print): Likewise.
6488 2011-02-18 Yao Qi <yao@codesourcery.com>
6490 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6491 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6492 (thumb_process_displaced_insn): New.
6493 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6494 call to arm_process_displaced_insn.
6495 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6497 2011-02-17 Tom Tromey <tromey@redhat.com>
6499 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6500 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6501 compile_dwarf_to_ax. No longer static. Call
6502 dwarf2_compile_cfa_to_ax.
6503 (locexpr_tracepoint_var_ref): Update.
6504 (loclist_tracepoint_var_ref): Update.
6505 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6506 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6507 argument; add 'gdbarch' and 'pc'.
6508 (dwarf2_compile_cfa_to_ax): New function.
6509 (dwarf2_frame_cache): Update.
6511 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6513 * ada-lang.c (ada_type_of_array): Fix the size of the array
6514 in the case of an unconstrained packed array.
6516 2011-02-17 Yao Qi <yao@codesourcery.com>
6518 * common/Makefile.in: Add more targets for make.
6520 2011-02-16 Tom Tromey <tromey@redhat.com>
6522 * dwarf2loc.c (unimplemented): Fix typo.
6524 2011-02-16 Tom Tromey <tromey@redhat.com>
6526 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6527 (compile_dwarf_to_ax) <default>: Use unimplemented.
6528 <DW_OP_deref>: Update.
6529 (disassemble_dwarf_expression): Update.
6530 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6531 (decode_locdesc): Update.
6532 * dwarf2expr.h (dwarf_stack_op_name): Update.
6534 2011-02-16 Tom Tromey <tromey@redhat.com>
6536 * ax.h (struct aop_map) <name>: Now const.
6538 2011-02-16 Tom Tromey <tromey@redhat.com>
6540 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6543 2011-02-16 Yao Qi <yao@codesourcery.com>
6545 * infrun.c (get_displaced_step_closure_by_addr): New.
6546 * inferior.h: Declare it.
6547 * arm-tdep.c: (arm_pc_is_thumb): Call
6548 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6551 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6552 Jan Kratochvil <jan.kratochvil@redhat.com>
6555 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6557 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6558 Jan Kratochvil <jan.kratochvil@redhat.com>
6560 * value.c (value_contents_copy_raw): Extend describing comment.
6561 Assert that the destination contents we're overwriting are wholly
6563 (value_contents_copy): Extend describing comment.
6565 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6566 Jan Kratochvil <jan.kratochvil@redhat.com>
6568 * value.c (value_available_contents_eq): Remove redundant local
6569 variables. Fix available contents comparision.
6570 * value.h (value_available_contents_eq): Extend describing
6573 2011-02-16 Yao Qi <yao@codesourcery.com>
6575 * thread.c (info_threads_command): Add missing i18n markup and remove
6578 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6580 * breakpoint.c (longjmp_names): New variable.
6581 (struct breakpoint_objfile_data): New type.
6582 (breakpoint_objfile_key): New variable.
6583 (msym_not_found): New variable.
6584 (msym_not_found_p): New predicate.
6585 (get_breakpoint_objfile_data): New function.
6586 (create_overlay_event_breakpoint): Check per-objfile cache for
6588 (create_longjmp_master_breakpoint): Likewise.
6589 (create_std_terminate_master_breakpoint): Likewise.
6590 (create_exception_master_breakpoint): Likewise.
6591 (_initialize_breakpoint): Register per-objfile data key.
6593 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6595 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6597 (create_longjmp_master_breakpoint): Loop over longjmp names.
6598 (create_std_terminate_master_breakpoint): Const-propagate parameter
6600 (update_breakpoints_after_exec): Adjust.
6601 (breakpoint_re_set): Adjust.
6603 2011-02-15 Michael Snyder <msnyder@vmware.com>
6605 * thread.c (info_threads_command): Process arg as thread id,
6606 or list of thread ids.
6607 (thread_find_command): New command.
6608 (_initialize_thread): Document argument for info threads.
6609 Document 'thread find' command.
6610 * NEWS: Document new command "thread find".
6612 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6614 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6615 * aclocal.m4: Regenerated with aclocal-1.11.1.
6616 * common/configure: Regenerate with autoconf-2.64.
6618 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6620 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6621 bool data type to a size of one byte.
6623 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6624 Jan Kratochvil <jan.kratochvil@redhat.com>
6626 * target.c (memory_xfer_live_readonly_partial): Document where to
6627 look for interface description.
6629 2011-02-15 Yao Qi <yao@codesourcery.com>
6632 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6633 order to store PC value on stack instead of text section.
6635 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6637 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6638 the EFP register set size.
6639 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6640 data from the VMX register.
6641 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6642 and write data from/to the VMX register.
6644 2011-02-14 Michael Snyder <msnyder@vmware.com>
6646 * command.h (enum command_class): New class 'no_set_class', for
6647 "show" commands without a corresponding "set" command.
6648 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6649 * copying.c (_initialize_copying): Ditto for "show copying" and
6651 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6653 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6654 which there is no corresponding "set" command (eg. "show copying").
6656 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6657 Jan Kratochvil <jan.kratochvil@redhat.com>
6659 * exec.c (section_table_available_memory): Change `len' parameter
6661 * exec.h (section_table_available_memory): Ditto.
6662 * value.h (read_value_memory): Rename the `offset' parameter to
6665 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6666 Jan Kratochvil <jan.kratochvil@redhat.com>
6668 * memrange.c (compare_mem_ranges): Mention sort order in
6670 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6671 * tracepoint.c (traceframe_available_memory): Extend comment to
6672 mention what happens to RESULT when the target does not support
6675 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6676 Jan Kratochvil <jan.kratochvil@redhat.com>
6678 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6681 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6683 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6684 No longer handle NULL values.
6686 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6688 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6689 * value.c: Include "exceptions.h".
6690 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6692 * cp-abi.c: Include gdb_assert.h.
6693 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6694 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6696 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6697 parameters. No longer returns -1 on error.
6698 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6700 * cp-valprint.c: Include exceptions.h.
6701 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6702 the baseclass_offset. Handle unavailable base classes. Use
6703 val_print_invalid_address.
6704 * p-valprint.c: Include exceptions.h.
6705 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6706 when fetching the baseclass_offset. No longer expect
6707 baseclass_offset returning -1. Handle unavailable base classes.
6708 Use val_print_invalid_address.
6709 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6710 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6711 `embedded_offset' and `val' parameters. Adjust.
6712 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6713 parameter, and change its type to gdb_byte pointer. Add
6714 `embedded_offset' and `val' parameters. Adjust. No longer expect
6715 baseclass_offset returning -1.
6716 (value_dynamic_cast): Use value_contents_for_printing rather than
6717 value_contents. Adjust.
6718 (search_struct_field): No longer expect baseclass_offset returning
6720 (search_struct_method): If reading memory from the target is
6721 necessary, wrap it in a new value to pass to baseclass_offset. No
6722 longer expect baseclass_offset returning -1.
6723 (find_method_list): No longer expect baseclass_offset returning
6724 -1. Use value_contents_for_printing rather than value_contents.
6725 * valprint.c (val_print_invalid_address): New function.
6726 * valprint.h (val_print_invalid_address): Declare.
6727 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6728 and `val' parameters. No longer expect baseclass_offset returning
6730 * gnu-v2-abi.c: Include "exceptions.h".
6731 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6732 parameters. Handle unavailable memory. Recurse through
6733 gnuv2_baseclass_offset directly, rather than through
6734 baseclass_offset. No longer returns -1 on not found, instead
6736 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6737 `val' parameters. Adjust.
6739 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6741 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
6742 almost but not quite adjacent.
6744 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6746 * value.h (value_entirely_available): Declare.
6747 * value.c (value_entirely_available): New function.
6748 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6749 real type if the pointer is unavailable.
6751 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6753 * valops.c (value_repeat): Use read_value_memory instead of
6756 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6758 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
6759 * value.c (value_contents_copy_raw, value_contents_copy): New
6761 (value_primitive_field): Use value_contents_copy_raw instead of
6763 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
6765 (value_array, value_slice): Ditto.
6766 * valarith.c (value_subscripted_rvalue): Use
6767 value_contents_copy_raw instead of memcpy.
6769 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6771 <unavailable> references.
6773 * valops.c (get_value_at): Use value_from_contents_and_address,
6774 avoiding read_memory.
6776 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6778 * c-valprint.c (c_val_print): Print a string with unavailable
6779 contents as an array.
6781 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6783 * value.h (unpack_bits_as_long): Delete declaration.
6784 (unpack_value_bits_as_long): Declare.
6785 (unpack_value_field_as_long): Declare.
6786 (value_field_bitfield): Declare.
6787 * value.c (unpack_bits_as_long): Rename to...
6788 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
6789 value parameters. Return the extracted result in a new output
6790 parameter. If the value contents are unavailable, return false,
6791 otherwise return true.
6792 (unpack_value_bits_as_long): New.
6793 (unpack_field_as_long): Rename to...
6794 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
6795 Add embedded_offset and value parameters. Return the extracted
6796 result in a new output parameter. If the value contents are
6797 unavailable, return false, otherwise return true.
6798 (unpack_value_field_as_long): New.
6799 (unpack_field_as_long_1): New.
6800 (unpack_field_as_long): Reimplement as wrapper around
6801 unpack_value_field_as_long_1.
6802 (value_field_bitfield): New function.
6803 * valops.c (value_fetch_lazy): When fetching a bitfield, use
6804 unpack_value_bits_as_long. Mark the value as unavailable, if it
6806 * jv-valprint.c (java_print_value_fields): Use
6807 value_field_bitfield.
6808 * p-valprint.c (pascal_object_print_value_fields): Use
6809 value_field_bitfield.
6810 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
6812 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6814 * value.c (get_internalvar_integer): Also return the int value of
6815 TYPE_CODE_INT INTERNALVAR_VALUE values.
6816 (set_internalvar): Don't special case TYPE_CODE_INT.
6818 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6820 * value.c (struct internalvar) <enum internalvar_kind>: Remove
6821 INTERNALVAR_POINTER.
6823 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
6824 (set_internalvar): Remove special TYPE_CODE_PTR handling.
6825 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
6827 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6829 * value.h (value_available_contents_eq): Declare.
6830 * value.c (find_first_range_overlap): New function.
6831 (value_available_contents_eq): New function.
6832 * valprint.c (val_print_array_elements): Use
6833 value_available_contents_eq.
6834 * ada-valprint.c (val_print_packed_array_elements): Use
6835 value_available_contents_eq.
6836 * jv-valprint.c (java_value_print): Use
6837 value_available_contents_eq.
6839 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6841 * target.c (target_read_live_memory): New function.
6842 (memory_xfer_live_readonly_partial): New.
6843 (memory_xfer_partial): If reading from a traceframe, fallback to
6844 reading unavailable read-only memory from read-only regions of
6846 * tracepoint.c (disconnect_tracing): Adjust.
6847 (set_current_traceframe): New, factored out from
6848 set_traceframe_number.
6849 (set_traceframe_number): Reimplement to only change the traceframe
6850 number on the GDB side.
6851 (do_restore_current_traceframe_cleanup): Adjust.
6852 (make_cleanup_restore_traceframe_number): New.
6853 (cur_traceframe_number): New global.
6854 (tfile_open): Set cur_traceframe_number to no traceframe.
6855 (set_tfile_traceframe): New function.
6856 (tfile_trace_find): If looking up a traceframe using any method
6857 other than by number, make sure the current tfile traceframe
6858 matches gdb's current traceframe. Update the current tfile
6859 traceframe if the lookup succeeded.
6860 (tfile_fetch_registers, tfile_xfer_partial)
6861 (tfile_get_trace_state_variable_value): Make sure the remote
6862 traceframe matches gdb's current traceframe.
6863 * remote.c (remote_traceframe_number): New global.
6864 (remote_open_1): Set it to -1.
6865 (set_remote_traceframe): New function.
6866 (remote_fetch_registers, remote_store_registers)
6867 (remote_xfer_memory, remote_xfer_partial)
6868 (remote_get_trace_state_variable_value): Make sure the remote
6869 traceframe matches gdb's current traceframe.
6870 (remote_trace_find): If looking up a traceframe using any method
6871 other than by number, make sure the current remote traceframe
6872 matches gdb's current traceframe. Update the current remote
6873 traceframe if the lookup succeeded.
6874 * infrun.c (fetch_inferior_event): Adjust.
6875 * tracepoint.h (set_current_traceframe): Declare.
6876 (get_traceframe_number, set_traceframe_number): Add describing
6879 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6881 Mark pieces of values as unavailable if the corresponding memory
6884 * valops.c: Include tracepoint.h.
6885 (value_fetch_lazy): Use read_value_memory.
6886 (read_value_memory): New.
6887 * value.h (read_value_memory): Declare.
6888 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
6889 * exec.c (section_table_available_memory): New function.
6890 * exec.h (section_table_available_memory): Declare.
6892 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6894 * Makefile.in (SFILES): Add memrange.c.
6895 (HFILES_NO_SRCDIR): Add memrange.h.
6896 (COMMON_OBS): Add memrange.o.
6897 * memrange.c: New file.
6898 * memrange.h: New file.
6899 * tracepoint.c: Include memrange.h.
6900 (struct mem_range): Delete.
6901 (mem_range_s): Delete.
6902 (traceframe_available_memory): New function.
6903 * tracepoint.h (traceframe_available_memory): Declare.
6905 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6907 * target.h (struct traceframe_info): Forward declare.
6908 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
6909 (struct target_ops) <to_traceframe_info>: New field.
6910 (target_traceframe_info): New.
6911 * target.c (update_current_target): Inherit and default
6913 * remote.c (PACKET_qXfer_traceframe_info): New.
6914 (remote_protocol_features): Register qXfer:traceframe-info:read.
6915 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
6916 (remote_traceframe_info): New.
6917 (init_remote_ops): Install it.
6918 (_initialize_remote): Install "set/show remote traceframe-info"
6920 * tracepoint.h (parse_traceframe_info): Declare.
6921 * tracepoint.c (struct mem_range): New.
6922 (mem_range_s): New typedef.
6923 (struct traceframe_info): New.
6924 (traceframe_info): New global.
6925 (free_traceframe_info): New function.
6926 (clear_traceframe_info): New function.
6927 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
6929 (build_traceframe_info): New function.
6930 (tfile_traceframe_info): New function.
6931 (init_tfile_ops): Install tfile_traceframe_info.
6932 (traceframe_info_start_memory, free_result): New functions.
6933 (memory_attributes, traceframe_info_elements): New globals.
6934 (parse_traceframe_info, get_traceframe_info): New functions.
6935 * features/traceframe-info.dtd: New file.
6936 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
6938 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6940 Base support for <unavailable> value contents.
6942 * value.h (value_bytes_available): Declare.
6943 (mark_value_bytes_unavailable): Declare.
6944 * value.c (struct range): New struct.
6945 (range_s): New typedef.
6946 (ranges_overlap): New function.
6947 (range_lessthan): New function.
6948 (ranges_contain_p): New function.
6949 (struct value) <unavailable>: New field.
6950 (value_bytes_available): New function.
6951 (mark_value_bytes_unavailable): New function.
6952 (require_not_optimized_out): Constify parameter.
6953 (require_available): New function.
6954 (value_contents_all, value_contents): Require all bytes be
6956 (value_free): Free `unavailable'.
6957 (value_copy): Copy `unavailable'.
6958 * valprint.h (val_print_unavailable): Declare.
6959 * valprint.c (valprint_check_validity): Rename `offset' parameter
6960 to `embedded_offset'. If printing a scalar, check whether the
6961 value chunk is available.
6962 (val_print_unavailable): New.
6963 (val_print_scalar_formatted): Check whether the value is
6965 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
6966 pretty-printing unavailable values.
6968 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6970 Fix const/volatile qualifiers of C++ types, PR c++/12328.
6971 * c-typeprint.c (c_type_print_args): Update the function comment. New
6972 variable param_type, initialize it. Remove const/volatile qualifiers
6973 for language_cplus and !show_artificial. Use param_type.
6975 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6977 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
6978 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
6979 * symtab.h (struct symtab) <next>: Comment extension.
6981 2011-02-12 Yao Qi <yao@codesourcery.com>
6983 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
6985 2011-02-11 Yao Qi <yao@codesourcery.com>
6987 * common/Makefile.in: Add copyright header.
6989 2011-02-11 Pedro Alves <pedro@codesourcery.com>
6991 * infrun.c (proceed): Move switching out and in of tfind mode from
6993 (fetch_inferior_event): ... to here.
6995 2011-02-11 Yao Qi <yao@codesourcery.com>
6997 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6999 * configure.ac: Add common to sub dir.
7000 * configure: Regenerate.
7002 2011-02-11 Yao Qi <yao@codesourcery.com>
7006 * common/Makefile.in: New.
7007 * common/configure.ac: New.
7008 * common/aclocal.m4: New.
7009 * common/configure: Generate.
7011 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7013 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7014 side of the parenthesis.
7017 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7018 * vec.h (VEC_block_remove): Fix comment.
7020 2011-02-08 Michael Snyder <msnyder@vmware.com>
7022 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7024 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7026 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7027 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7030 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7033 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7035 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7036 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7038 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7040 * dwarf2read.c (read_subroutine_type): Set special calling
7041 convention flag for functions compiled by IBM XL C for OpenCL.
7042 * ppc-sysv-tdep.c: Include "dwarf2.h"
7043 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7045 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7046 IBM OpenCL vector types calling convention.
7047 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7048 (ppc_sysv_abi_broken_return_value): Likewise.
7049 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7050 types calling convention.
7051 (ppc64_sysv_abi_return_value): Likewise.
7052 * spu-tdep.c: Include "dwarf2.h"
7053 (spu_return_value): Implement IBM OpenCL vector types calling
7056 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7058 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7059 correct ABI for AltiVec vector arguments.
7061 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7063 * valprint.c (val_print): Extend comment.
7064 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7065 interface explanation to val_print.
7066 (ada_val_print_array): Adjust comment to current interface.
7067 (print_field_values): Adjust comment to current interface.
7068 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7069 explanation to val_print.
7070 * f-valprint.c (f_val_print): Ditto.
7071 * jv-valprint.c (java_val_print): Ditto.
7072 * m2-valprint.c (m2_val_print): Ditto.
7073 * p-valprint.c (pascal_val_print): Ditto.
7075 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7077 * breakpoint.c (parse_breakpoint_sals): Fix description.
7079 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7080 Oguz Kayral <oguzkayral@gmail.com>
7082 * python/py-inferior.c (python_on_normal_stop): New function.
7083 (python_on_resume): New function.
7084 (python_inferior_exit): New function.
7085 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7086 inferior_exit observers.
7087 * python/py-evtregistry.c: New file.
7088 * python/py-threadevent.c : New file.
7089 * python/py-event.c: New file.
7090 * python/py-evts.c: New file.
7091 * python/py-continueevent.c: New file.
7092 * python/py-bpevent.c: New file.
7093 * python/py-signalevent.c: New file.
7094 * python/py-exetiedevent.c: New file.
7095 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7096 Move struct breakpoint_object from here...
7097 * python/python-internal.h: ... to here.
7098 * python/py-event.h: New file.
7099 * python/py-events.h: New file.
7100 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7101 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7102 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7103 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7104 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7105 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7106 Add build rules for all the above.
7108 2011-02-04 Tom Tromey <tromey@redhat.com>
7110 * dwarf2read.c (dwarf2_section_empty_p): New function.
7111 (dwarf2_read_section): Use dwarf2_section_empty_p.
7112 (dwarf2_section_size): New function.
7113 (dwarf2_get_section_info): Unconditionally read section.
7114 (dwarf2_read_index): Use dwarf2_section_empty_p.
7115 (partial_read_comp_unit_head): Use dwarf2_section_size.
7116 (dwarf2_symbol_mark_computed): Likewise.
7118 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7120 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7122 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7124 * mips-linux-tdep.c: Include xml-syscall.h.
7125 (mips_linux_get_syscall_number): New function.
7126 (mips_linux_init_abi): Add calls to
7127 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7128 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7129 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7130 * syscalls/mips-n32-linux.xml: New file.
7131 * syscalls/mips-n64-linux.xml: New file.
7132 * syscalls/mips-o32-linux.xml: New file.
7134 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7136 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7137 Complain about inverted range entries.
7138 (dwarf2_record_block_ranges): Likewise.
7140 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7143 * breakpoint.c (update_watchpoint): Fix name of the
7144 update_global_location_list function.
7145 (print_one_breakpoint): Fix typo.
7146 (_initialize_breakpoint): Remove extra space in hbreak help
7148 * breakpoint.h (struct bp_location) <length>: Fix field
7151 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7153 * regcache.c (registers_changed_ptid): Don't explictly always
7154 clear `current_regcache'. Only clear current_thread_ptid and
7155 current_thread_arch when PTID matches. Only reinit the frame
7156 cache if PTID matches the current inferior_ptid. Move alloca(0)
7158 (registers_changed): ... here.
7160 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7162 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7163 starts with __stack_chk_guard as stack guard symbol.
7165 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7167 * disasm.c (compare_lines): Handle the end of sequence markers
7168 within the line table to better support disassembling over
7169 compilation unit boundaries.
7171 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7173 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7174 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7175 implementation even if no symbols are available.
7176 (thumb_analyze_prologue): Update call to skip_prologue_function.
7177 (arm_analyze_prologue): Likewise.
7179 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7181 * arm-tdep.c: Include "observer.h".
7182 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7183 (arm_exidx_data_key): New static variable.
7184 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7185 (struct arm_exidx_data): Likewise.
7186 (arm_exidx_data_free): New function.
7187 (arm_compare_exidx_entries): Likewise.
7188 (arm_obj_section_from_vma): Likewise.
7189 (arm_exidx_new_objfile): Likewise.
7190 (arm_find_exidx_entry): Likewise.
7191 (arm_exidx_fill_cache): Likewise.
7192 (arm_exidx_unwind_sniffer): Likewise.
7193 (arm_exidx_unwind): New global variable.
7194 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7195 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7196 observer. Register arm_exidx_data_key as objfile data.
7198 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7200 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7201 due to accessing uninitialized variable. Fix indentation.
7203 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7205 * c-valprint.c (c_value_print): When doing virtual base pointer
7206 adjustment, create a new value with adjusted contents rather than
7207 changing the contents of the value being printed (and getting it
7210 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7212 * xml-support.c (xml_find_attribute): New.
7213 (xinclude_start_include): Use it.
7214 * xml-support.h (xml_find_attribute): Declare.
7215 * memory-map.c (memory_map_start_memory)
7216 (memory_map_start_property): Use xml_find_attribute.
7217 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7219 * remote.c (start_thread): Use xml_find_attribute.
7220 * solib-target.c (library_list_start_segment)
7221 (library_list_start_section, library_list_start_library)
7222 (library_list_start_list): Use xml_find_attribute.
7223 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7224 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7225 (tdesc_start_field): Use xml_find_attribute.
7227 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7229 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7230 (BUILD_OCL_VTYPES): Update.
7232 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7234 * configure.ac: Work around non-GNU sed limitation when computing
7235 python version number.
7236 * configure: Regenerate.
7238 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7240 Fix debug printing of TYPE_INSTANCE.
7241 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7242 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7244 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7246 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7247 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7248 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7249 * ada-operator.inc: Rename the file to ...
7250 * ada-operator.def: ... here, wrap all the entries by macro OP.
7251 * expprint.c (op_name_standard): Remove all the entries. Include
7252 "std-operator.def" instead.
7253 * expression.h (enum exp_opcode): Include "std-operator.def" and
7254 "ada-operator.def". Move all the entries ...
7255 * std-operator.def: ... here, wrap all the entries by macro OP.
7257 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7259 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7260 * breakpoint.c (remove_jit_event_breakpoints): New function.
7261 * jit.c (jit_descriptor_addr): Delete.
7262 (registering_code): Delete.
7263 (clear_int): Delete.
7264 (jit_inferior_data): New variable.
7265 (struct jit_inferior_data): New type.
7266 (get_jit_inferior_data): New function.
7267 (jit_inferior_data_cleanup): New function.
7268 (jit_read_descriptor): Adjust.
7269 (jit_register_code): Adjust.
7270 (jit_breakpoint_re_set_internal): New function; move code here ...
7271 (jit_inferior_init): ... from here.
7272 (jit_breakpoint_re_set): Adjust.
7273 (jit_reset_inferior_data_and_breakpoints): New function.
7274 (jit_inferior_created_observer): Adjust.
7275 (jit_inferior_exit_hook): Adjust.
7276 (jit_executable_changed_observer): New function.
7277 (jit_event_handler): Adjust.
7278 (_initialize_jit): Adjust.
7280 2011-01-31 Michael Snyder <msnyder@vmware.com>
7282 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7285 2011-01-31 Tom Tromey <tromey@redhat.com>
7288 * python/python.c (execute_gdb_command): Call
7289 prevent_dont_repeat.
7290 * top.c (suppress_dont_repeat): New global.
7291 (dont_repeat): Use it.
7292 (prevent_dont_repeat): New function.
7293 * command.h (prevent_dont_repeat): Declare.
7295 2011-01-31 Tom Tromey <tromey@redhat.com>
7297 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7298 * python/py-breakpoint.c (bppy_set_silent): Use
7299 breakpoint_set_silent.
7300 (bppy_set_thread): Use breakpoint_set_thread.
7301 (bppy_set_task): Use breakpoint_set_task.
7302 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7303 (breakpoint_set_task): Declare.
7304 (make_breakpoint_silent): Remove.
7305 * breakpoint.c (breakpoint_set_silent): New function.
7306 (breakpoint_set_thread): Likewise.
7307 (breakpoint_set_task): Likewise.
7308 (make_breakpoint_silent): Remove.
7310 2011-01-31 Tom Tromey <tromey@redhat.com>
7312 * breakpoint.h (user_breakpoint_p): Declare.
7313 * breakpoint.c (user_breakpoint_p): New function.
7314 (breakpoint_1): Use it.
7315 (save_breakpoints): Likewise.
7317 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7319 * configure.ac: Add handling of Python distribution on Windows.
7320 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7321 sysconfig variables are not defined, then do not use them.
7322 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7323 instead. On Windows, return all paths using forward-slashes
7324 rather than backslashes.
7326 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7328 * configure.ac: Remove fallback behavior for building
7329 against Python. Remove tweaking of Python include path.
7330 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7331 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7332 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7333 Always restore CPPFLAGS and LIBS after linking test.
7334 * configure: Regenerated.
7335 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7336 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7337 * python/python-internal.h: Adjust includes of Python .h files.
7339 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7341 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7344 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7346 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7349 2011-01-31 Yao Qi <yao@codesourcery.com>
7351 * arm-linux-nat.c: Update calls to regcache_register_status
7352 instead of regcache_valid_p.
7353 * aix-thread.c: Likewise.
7354 * i386gnu-nat.c: Likewise.
7356 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7359 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7360 touching TYPE_FIELD_ARTIFICIAL.
7362 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7364 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7367 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7369 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7370 selected, don't try iterating over the traceframe's blocks.
7371 (tfile_has_stack): If there's no traceframe selected, then there's
7373 (tfile_has_registers): If there's no traceframe selected, then
7374 there's no registers.
7376 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7378 * target.c (memory_xfer_partial): No need to restore shadows if we
7379 haven't read anything.
7381 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7383 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7384 and val_print_scalar_formatted.
7386 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7388 * tracepoint.c (tfile_read): New.
7389 (tfile_open): Use it.
7390 (tfile_get_traceframe_address): Use it.
7391 (tfile_trace_find): Use it.
7392 (walk_blocks_callback_func): New typedef.
7393 (match_blocktype): New function.
7394 (traceframe_walk_blocks): New function.
7395 (traceframe_find_block_type): New function.
7396 (tfile_fetch_registers, tfile_xfer_partial)
7397 (tfile_get_trace_state_variable_value): Use
7398 traceframe_find_block_type and tfile_read.
7400 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7402 * remote-mips.c: Add internationalization mark ups. Remove
7403 trailing \n from already marked up strings.
7405 2011-01-26 Tom Tromey <tromey@redhat.com>
7407 * python/py-prettyprint.c (print_string_repr): Clear
7408 'addressprint' option when calling val_print_string.
7409 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7410 option when calling val_print_string.
7412 2011-01-26 Tom Tromey <tromey@redhat.com>
7414 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7416 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7418 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7419 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7420 (gdb_py_long_as_ulongest): New defines.
7421 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7422 (gdb_py_int_as_long): Declare.
7423 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7424 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7425 (valpy_long): Add comment.
7426 * python/py-utils.c (get_addr_from_python): Use
7427 gdb_py_long_as_ulongest. Handle overflow properly.
7428 (gdb_py_object_from_longest): New function.
7429 (gdb_py_object_from_ulongest): Likewise.
7430 (gdb_py_int_as_long): Likewise.
7431 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7432 * python/py-symtab.c (salpy_get_pc): Use
7433 gdb_py_long_from_ulongest.
7434 (salpy_get_line): Use PyInt_FromLong.
7435 * python/py-param.c (set_parameter_value): Use
7437 * python/py-lazy-string.c (stpy_get_address): Use
7438 gdb_py_long_from_ulongest.
7439 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7440 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7441 * python/py-breakpoint.c (bppy_set_thread): Use
7443 (bppy_set_task): Likewise.
7444 (bppy_set_ignore_count): Likewise.
7445 (bppy_set_hit_count): Likewise.
7446 * python/py-block.c (blpy_get_start): Use
7447 gdb_py_object_from_ulongest.
7448 (blpy_get_end): Likewise.
7449 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7451 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7454 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7455 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7456 equality test for objfile, initialize addr_low if needed.
7458 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7460 * tui/tui-regs.c (tui_register_format): Remove dead code.
7462 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7464 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7465 instead of print_scalar_formatted.
7466 (print_scalar_formatted): Don't handle 's' format strings here,
7467 and add an assertion that we never see such format here.
7468 * valprint.h (val_print_scalar_formatted): Declare.
7469 * valprint.c (val_print_scalar_formatted): New.
7470 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7471 instead of print_scalar_formatted.
7472 * jv-valprint.c (java_val_print): Ditto.
7473 * p-valprint.c (pascal_val_print): Ditto.
7474 * ada-valprint.c (ada_val_print_1): Ditto.
7475 * f-valprint.c (f_val_print): Ditto.
7476 * infcmd.c (registers_info): Ditto.
7477 * m2-valprint.c (m2_val_print): Ditto.
7479 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7481 * m2-valprint.c (print_unbounded_array): Pass
7482 value_contents_for_printing rather than value_contents, to
7483 m2_print_array_contents. Also pass in the value.
7485 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7487 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7488 (save_gdb_index_command): Switch to .gdb_index version 4.
7490 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7492 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7493 than frame_register, and always pass a valid value to val_print.
7495 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7497 Centralize printing "<optimized out>".
7499 * valprint.h (val_print_optimized_out): Declare.
7500 * cp-valprint.c (cp_print_value_fields): Use
7501 val_print_optimized_out.
7502 * jv-valprint.c (java_print_value_fields): Ditto.
7503 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7504 * printcmd.c (print_formatted): Ditto.
7505 * valprint.c (valprint_check_validity): Ditto.
7506 (value_check_printable): Ditto.
7507 (val_print_optimized_out): New.
7509 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7511 * infcmd.c (default_print_registers_info): Allocate values so to
7512 never pass a NULL value to val_print.
7514 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7516 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7517 boolean. Make sure to always pass a value that matches the
7518 contents buffer to callees. Preserve `address' for following
7520 * value.c (value_contents_for_printing_const): New.
7521 (value_address): Constify value argument.
7522 * value.h (value_contents_for_printing_const): Declare.
7523 (value_address): Constify value argument.
7525 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7527 * regcache.c (struct regcache_descr): Rename
7528 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7529 and sizeof_cooked_register_valid_p to
7530 sizeof_cooked_register_status.
7531 (init_regcache_descr): Adjust.
7532 (struct regcache): Rename register_valid_p field to
7534 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7535 (do_cooked_read): Adjust.
7536 (regcache_valid_p): Rename to ...
7537 (regcache_register_status): ... this. Adjust.
7538 (regcache_invalidate): Adjust.
7539 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7541 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7542 as unavailable, not valid.
7543 (regcache_dump): Adjust.
7544 * regcache.h (enum register_status): New.
7545 (regcache_register_status): Declare.
7546 (regcache_invalidate): Delete declaration.
7547 * corelow.c (get_core_registers): Adjust.
7548 * tracepoint.c (tfile_fetch_registers): Adjust.
7549 * trad-frame.c (REG_VALUE): Rename to ...
7550 (TF_REG_VALUE): ... this.
7551 (REG_UNKNOWN): Rename to ...
7552 (TF_REG_UNKNOWN): ... this.
7553 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7554 * mi/mi-main.c (register_changed_p): Adjust.
7556 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7558 * regcache.c (struct regcache_descr): Remove outdated comment.
7559 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7561 (regcache_xmalloc): Rename to ...
7562 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7563 Allocate the regcache type accordingly.
7564 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7565 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7566 cooked registers, not raw.
7567 (regcache_dup_no_passthrough): Delete.
7568 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7569 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7570 mention obsolete write_register_bytes.
7571 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7573 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7575 Stop remote_read_bytes from handling partial reads itself.
7577 * remote-fileio.c: Include target.h.
7578 (remote_fileio_write_bytes): Delete.
7579 (remote_fileio_func_open, remote_fileio_func_write)
7580 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7582 (remote_fileio_func_stat): Use target_read_memory and
7583 target_write_memory.
7584 (remote_fileio_func_gettimeofday): Use target_write_memory.
7585 (remote_fileio_func_system): Use target_read_memory.
7586 * remote.c (remote_write_bytes): Make it static.
7587 (remote_read_bytes): Don't handle partial reads here.
7588 * remote.h (remote_read_bytes): Delete declaration.
7590 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7592 Simplify XML parsing a bit.
7594 * xml-support.h (gdb_xml_parse_quick): Declare.
7595 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7596 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7598 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7599 gdb_xml_create_parser_and_cleanup_1.
7600 (gdb_xml_parse_quick): New.
7601 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7602 * osdata.c (osdata_parse): Ditto.
7603 * remote.c (remote_threads_info): Ditto.
7604 * solib-target.c (solib_target_parse_libraries): Ditto.
7605 * xml-syscall.c (syscall_parse_xml): Ditto.
7606 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7608 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7610 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7611 with remote-mips.o added to gdb_target_obs.
7612 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7614 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7616 * ada-valprint.c (val_print_packed_array_elements): Pass the
7617 correct struct value to val_print.
7618 (ada_val_print_1): Ditto.
7620 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7622 Don't lose embedded_offset in printing routines throughout.
7624 * valprint.h (val_print_array_elements): Change prototype.
7625 * valprint.c (val_print_array_elements): Add `embedded_offset'
7626 parameter, and adjust to pass it down to val_print, while passing
7627 `valaddr' or `address' unmodified. Take embedded_offset into
7628 account when checking repetitions.
7629 * c-valprint.c (c_val_print): Pass embedded_offset to
7630 val_print_array_elements instead of adjusting `valaddr' and
7632 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7633 embedded_offset to val_print_array_elements instead of adjusting
7635 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7636 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7637 val_print_array_elements and pascal_object_print_value_fields
7638 instead of adjusting `valaddr'.
7639 (pascal_object_print_value_fields): Add `offset' parameter, and
7641 (pascal_object_print_value): Add `offset' parameter, and adjust to
7643 (pascal_object_print_static_field): Use
7644 value_contents_for_printing/value_embedded_offset, rather than
7646 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7647 parameter, and adjust to use it. Use
7648 value_contents_for_printing/value_embedded_offset, rather than
7650 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7651 (ada_val_print_array): Add `offset' parameter, and adjust to use
7653 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7654 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7655 Instead work with offsets. Use
7656 value_contents_for_printing/value_embedded_offset, rather than
7657 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7658 and use value_from_pointer to extract a target pointer, rather
7659 than value_from_longest.
7660 (print_variant_part): Add `offset' parameter. Replace
7661 `outer_valaddr' parameter by a new `outer_offset' parameter.
7662 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7663 (ada_value_print): Use
7664 value_contents_for_printing/value_embedded_offset, rather than
7666 (print_record): Add `offset' parameter, and adjust to pass it
7668 (print_field_values): Add `offset' parameter. Replace
7669 `outer_valaddr' parameter by a new `outer_offset' parameter.
7670 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7671 Use value_contents_for_printing/value_embedded_offset, rather than
7673 * d-valprint.c (dynamic_array_type): Use
7674 value_contents_for_printing/value_embedded_offset, rather than
7676 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7677 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7678 (java_print_value_fields): Take `offset' into account. Don't
7679 re-adjust `valaddr'. Instead pass down adjusted offsets.
7680 (java_val_print): Take `embedded_offset' into account. Pass it to
7681 java_print_value_fields.
7682 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7683 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7684 down adjusted offsets.
7685 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7686 (f_val_print): Take `embedded_offset' into account.
7688 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7690 * inflow.c: Include "gdbcmd.h".
7691 (interactive_mode): New static global, moved here from top.c.
7692 (show_interactive_mode): New function, moved here from top.c.
7693 use gdb_has_a_terminal instead of input_from_terminal_p to
7694 determine the current mode.
7695 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7697 (_initialize_inflow): Add the "set/show interactive-mode"
7698 commands. Moved here from top.c, after having adjusted slightly
7700 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7702 (input_from_terminal_p): Remove handling of "interactive-mode"
7703 setting, moved to infow.c.
7704 (init_main): Remove creation of the "set/show interactive-mode"
7705 commands, moved to inflow.c.
7707 2011-01-19 Joel Brobecker <brobecker@adacore.com>
7709 * NEWS: Add entry for native ia64-hpux support.
7711 2011-01-19 Tom Tromey <tromey@redhat.com>
7714 * thread.c (free_thread): Free 'name'.
7715 (print_thread_info): Emit thread name. Change CLI output.
7716 (thread_name_command): New function.
7717 (do_captured_thread_select): Emit newline.
7718 (_initialize_thread): Register 'thread name' command.
7719 * target.h (struct target_ops) <to_thread_name>: New field.
7720 (target_thread_name): New macro.
7721 * target.c (update_current_target): Handle to_thread_name.
7722 * python/py-infthread.c (thpy_get_name): New function.
7723 (thpy_set_name): Likewise.
7724 (thread_object_getset): Add "name".
7725 * linux-nat.c (linux_nat_thread_name): New function.
7726 (linux_nat_add_target): Set to_thread_name.
7727 * gdbthread.h (struct thread_info) <name>: New field.
7729 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7731 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7732 (ada_val_print_1): Likewise.
7734 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7736 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7737 upper limit address is not greater than the function end address
7738 when the upper limit could not be computed using the debugging
7741 2011-01-17 Tom Tromey <tromey@redhat.com>
7743 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
7745 * utils.c: Include gdb_regex.h.
7746 (do_regfree_cleanup): New function.
7747 (make_regfree_cleanup): Likewise.
7748 (get_regcomp_error): Likewise.
7749 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
7751 2011-01-17 Tom Tromey <tromey@redhat.com>
7753 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
7756 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7758 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
7759 for internal variables.
7760 (last_was_structop): New static variable.
7761 (COMPLETE): New token.
7762 (field_exp): New rule to group all '.' suffix handling.
7763 Add mark_struct_expression calls when approriate to be able
7764 to correctly find fields for completion.
7765 (yylex): Adapt to handle field completion and set INTVAR when
7768 2011-01-14 Yao Qi <yao@codesourcery.com>
7770 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
7771 save_reggroup, restore_reggroup and all_reggroup.
7773 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7775 * ada-valprint. (ada_printchar): Use the correct type length
7776 in call to ada_emit_char.
7777 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
7779 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7781 * solib-som.h (hpux_major_release): Declare variable here.
7782 * solib-som.c: Remove <sys/utsname.h> header.
7783 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
7784 (hpux_major_release): Make global, change default value to
7785 DEFAULT_HPUX_MAJOR_RELEASE.
7786 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7787 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
7788 Add "solib-som.h" header.
7789 (set_hpux_major_release): New function.
7790 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
7792 2011-01-14 Mike Frysinger <vapier@gentoo.org>
7794 * configure.tgt (*-*-uclinux*): Match more Linux os targets
7796 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7798 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
7799 new-line at end of warning message.
7800 (ia64_hpux_store_register): Remove trailing new-line at end of
7802 * ia64-hpux-tdep.c: Rephrase comment.
7803 * solib-ia64-hpux.c (struct dld_info): Change type of field
7804 dld_flags from "long long" to ULONGEST.
7806 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7808 * target.h (deprecated_child_ops): Delete declaration.
7809 * target.c (deprecated_child_ops): Delete definition.
7811 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7813 * Makefile.in (hpux-thread.o): Delete rule.
7814 * configure.ac: Don't check for HPUX DCE threads support.
7815 * configure, config.in: Regenerate.
7816 * hppa-hpux-nat.c (child_suppress_run): Delete.
7817 (hppa_hpux_child_can_run): Delete.
7818 (_initialize_hppa_hpux_nat): Don't override to_can_run.
7819 * hpux-thread.c: Delete.
7821 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7823 * hpux-thread.c (hpux_pid_to_str): Delete.
7825 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7827 * ada-valprint.c (ada_emit_char): Remove strange code.
7828 Check that c is <= UCHAR_MAX before passing it to isascii.
7829 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
7831 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7833 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
7834 to the case where instream is stdin.
7836 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7838 * ia64-tdep.h (struct regcache): Forward declare.
7839 (struct ia64_infcall_ops): New struct type.
7840 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
7842 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
7843 Renames ia64_find_global_pointer.
7844 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
7845 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
7846 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
7848 (ia64_infcall_ops): New static global constant.
7849 (ia64_gdbarch_init): Set tdep->infcall_ops.
7850 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
7851 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
7852 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
7853 (ia64_hpux_dummy_code): New static global constant.
7854 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
7855 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
7856 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
7858 (ia64_hpux_infcall_ops): New static global constant.
7859 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
7860 for inferior function calls to work properly on ia64-hpux.
7862 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7864 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
7865 * ia64-tdep.h (struct frame_info): forward declaration.
7866 (struct gdbarch_tdep): Add field size_of_register_frame.
7867 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
7868 to determine the size of the register frame.
7869 (ia64_size_of_register_frame): New function.
7870 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
7871 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
7872 (IA64_HPUX_UREG_REASON): New macro.
7873 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
7875 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
7876 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
7877 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
7880 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7882 Add support for ia64-hpux.
7883 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
7884 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
7886 * configure.host: Add handling for ia64-hpux hosts. Add associated
7888 * configure.tgt: Add handling for ia64-hpux targets.
7889 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
7890 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
7891 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
7893 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7895 [ttrace] Compute thread list immediately after attach.
7896 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
7898 (inf_ttrace_attach): Use it.
7900 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7902 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
7903 if we could not determine the frame's function address. Instead,
7904 use the frame's PC, and then continue.
7906 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7908 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
7909 not already defined.
7911 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7913 * ia64-tdep.c (ia64_struct_type_p): New function.
7914 (ia64_extract_return_value): Handle integral values that are
7915 less than 8 bytes long.
7916 (ia64_push_dummy_call): Likewise.
7918 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7920 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
7921 floatformat_ia64_ext.
7922 (floatformat_ia64_ext_big): New static const.
7923 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
7925 2011-01-12 Tom Tromey <tromey@redhat.com>
7927 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
7929 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
7930 (mi_cmd_thread_list_ids): Likewise.
7931 (mi_cmd_data_list_changed_registers): Likewise.
7932 (mi_cmd_data_list_register_values): Likewise.
7933 (mi_cmd_data_write_register_values): Likewise.
7934 (mi_cmd_data_evaluate_expression): Likewise.
7935 (mi_cmd_data_read_memory): Likewise.
7936 (mi_cmd_data_read_memory_bytes): Likewise.
7937 (mi_cmd_data_write_memory): Likewise.
7938 (mi_cmd_enable_timings): Likewise.
7939 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
7940 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
7941 (mi_cmd_var_delete): Likewise.
7942 (mi_cmd_var_set_format): Likewise.
7943 (mi_cmd_var_show_format): Likewise.
7944 (mi_cmd_var_info_num_children): Likewise.
7945 (mi_cmd_var_list_children): Likewise.
7946 (mi_cmd_var_info_type): Likewise.
7947 (mi_cmd_var_info_expression): Likewise.
7948 (mi_cmd_var_show_attributes): Likewise.
7949 (mi_cmd_var_assign): Likewise.
7950 (mi_cmd_var_update): Likewise.
7951 (mi_cmd_enable_pretty_printing): Likewise.
7952 (mi_cmd_var_set_update_range): Likewise.
7953 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
7955 (mi_cmd_target_file_put): Likewise.
7956 (mi_cmd_target_file_delete): Likewise.
7957 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
7959 (mi_cmd_stack_info_depth): Likewise.
7960 (mi_cmd_stack_list_locals): Likewise.
7961 (mi_cmd_stack_list_args): Likewise.
7962 (mi_cmd_stack_select_frame): Likewise.
7963 (mi_cmd_stack_select_frame): Likewise.
7964 (mi_cmd_stack_info_frame): Likewise.
7965 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
7967 (mi_cmd_file_list_exec_source_files): Likewise.
7968 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
7969 (mi_cmd_env_cd): Likewise.
7970 (mi_cmd_env_path): Likewise.
7971 (mi_cmd_env_dir): Likewise.
7972 (mi_cmd_inferior_tty_show): Likewise.
7973 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
7974 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
7975 (mi_cmd_break_watch): Likewise.
7977 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
7979 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
7980 (ppc_linux_insert_hw_breakpoint): Likewise.
7981 (ppc_linux_remove_hw_breakpoint): Likewise.
7982 (ppc_linux_insert_watchpoint): Likewise.
7984 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7985 Jan Kratochvil <jan.kratochvil@redhat.com>
7987 PR fortran/11104 and DWARF unbound arrays detection.
7988 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
7989 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
7990 unspecified upper bound.
7991 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
7992 variables array_size_array, tmp_type and offset_item. New variable
7993 array. Remove call to f77_get_upperbound. New variables array_type
7994 and index. Call value_subscripted_rvalue for each dimenasion. Remove
7995 the final call to deprecated_set_value_type.
7997 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7999 Make value allocations more lazy.
8000 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8001 instead of allocate_value and set_value_lazy when possible.
8002 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8003 instead of allocate_value and set_value_lazy.
8004 * findvar.c (value_of_register_lazy): Likewise.
8005 (read_var_value): Remove V preallocation, call just check_typedef in
8006 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8007 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8008 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8009 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8010 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8011 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8012 the end, remove set_value_lazy there.
8013 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8014 instead of allocate_value and set_value_lazy when possible.
8015 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8016 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8017 of allocate_value and set_value_lazy.
8018 (value_from_contents_and_address): Use allocate_value_lazy instead of
8019 allocate_value and set_value_lazy when possible.
8021 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8023 * disasm.c (dump_insns): Support dumping opcodes for MI.
8024 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8025 dumping of instruction opcodes.
8027 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8029 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8032 2011-01-11 Tom Tromey <tromey@redhat.com>
8034 * thread.c (do_captured_thread_select): Emit newline before
8037 2011-01-11 Michael Snyder <msnyder@vmware.com>
8039 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8040 * score-tdep.c: Ditto.
8041 * score-tdep.h: Ditto.
8042 * ser-base.c: Ditto.
8043 * ser-go32.c: Ditto.
8046 * ser-mingw.c: Ditto.
8047 * ser-pipe.c: Ditto.
8049 * ser-unix.c: Ditto.
8050 * sh64-tdep.c: Ditto.
8051 * shnbsd-nat.c: Ditto.
8055 * solib-darwin.c: Ditto.
8056 * solib-frv.c: Ditto.
8058 * solib-irix.c: Ditto.
8059 * solib-osf.c: Ditto.
8060 * solib-pa64.c: Ditto.
8061 * solib-som.c: Ditto.
8062 * solib-spu.c: Ditto.
8063 * solib-sunos.c: Ditto.
8064 * solib-svr4.c: Ditto.
8066 * sol-thread.c: Ditto.
8070 * sparc64-linux-tdep.c: Ditto.
8071 * sparc64-tdep.c: Ditto.
8072 * sparc-linux-nat.c: Ditto.
8073 * sparc-linux-tdep.c: Ditto.
8074 * sparc-sol2-nat.c: Ditto.
8075 * sparc-sol2-tdep.c: Ditto.
8076 * sparc-tdep.c: Ditto.
8077 * sparc-tdep.h: Ditto.
8078 * spu-tdep.c: Ditto.
8079 * stabsread.c: Ditto.
8080 * stabsread.h: Ditto.
8088 * target-descriptions.c: Ditto.
8089 * target-descriptions.h: Ditto.
8091 * target-memory.c: Ditto.
8092 * terminal.h: Ditto.
8095 * tracepoint.c: Ditto.
8096 * tracepoint.h: Ditto.
8097 * trad-frame.h: Ditto.
8098 * typeprint.c: Ditto.
8100 2011-01-11 Michael Snyder <msnyder@vmware.com>
8102 * ui-file.c: Comment cleanup, mostly periods and spaces.
8107 * v850-tdep.c: Ditto.
8108 * valarith.c: Ditto.
8110 * valprint.c: Ditto.
8111 * valprint.h: Ditto.
8116 * vax-tdep.c: Ditto.
8120 * windows-nat.c: Ditto.
8121 * windows-tdep.c: Ditto.
8122 * xcoffread.c: Ditto.
8123 * xcoffsolib.c: Ditto.
8124 * xml-support.c: Ditto.
8125 * xstormy16-tdep.c: Ditto.
8126 * xtensa-tdep.c: Ditto.
8127 * xtensa-tdep.h: Ditto.
8129 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8131 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8132 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8134 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8135 Thiago Jung Bauermann <bauerman@br.ibm.com>
8137 Implement support for PowerPC BookE ranged watchpoints.
8139 (struct breakpoint_ops) <resources_needed>: New method.
8140 Initialize to NULL in all existing breakpoint_ops instances.
8141 (struct breakpoint) <exact>: New field.
8142 (target_exact_watchpoints): Declare external global.
8143 * breakpoint.c (target_exact_watchpoints): New global flag.
8144 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8145 b->enable_state to bp_enabled before calling
8146 hw_watchpoint_used_count.
8147 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8148 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8150 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8151 if the watchpoint is exact.
8152 (resources_needed_watchpoint): New function.
8153 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8154 (watch_command_1): Set b->exact if the user asked for an exact
8155 watchpoint and one can be set.
8156 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8157 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8158 the user asks for an exact watchpoint and one can be set. Return
8159 number of needed debug registers to watch the expression.
8160 * gdbtypes.c (is_scalar_type): New function, based on
8161 valprint.c:scalar_type_p.
8162 (is_scalar_type_recursive): New function.
8163 * gdbtypes.h (is_scalar_type_recursive): Declare.
8164 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8165 handle regions when ranged watchpoints are available.
8166 (create_watchpoint_request): New function.
8167 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8168 create_watchpoint_request.
8169 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8170 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8171 `set powerpc' and `show powerpc' commands.
8172 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8173 Mention documentation comment in the target macro.
8174 (target_region_ok_for_hw_watchpoint): Document return value.
8176 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8178 * breakpoint.c (update_watchpoint): Decide on using a software or
8179 hardware watchpoint after the bp_locations are created.
8181 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8183 Convert hardware watchpoints to use breakpoint_ops.
8184 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8185 <insert_location>: ... this. Return int instead of void.
8186 Accept pointer to struct bp_location instead of pointer to
8187 struct breakpoint. Adapt all implementations.
8188 (breakpoint_ops) <remove>: Rename to...
8189 <remove_location>: ... this. Accept pointer to struct bp_location
8190 instead of pointer to struct breakpoint. Adapt all implementations.
8191 * breakpoint.c (insert_catchpoint): Delete function.
8192 (insert_bp_location): Call the watchpoint or catchpoint's
8193 breakpoint_ops.insert method.
8194 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8195 breakpoint_ops.remove method.
8196 (insert_watchpoint, remove_watchpoint): New functions.
8197 (watchpoint_breakpoint_ops): New structure.
8198 (watch_command_1): Initialize the OPS field.
8199 * inf-child.c (inf_child_insert_fork_catchpoint)
8200 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8201 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8202 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8204 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8205 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8206 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8207 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8208 * target.c (update_current_target): Change default implementation of
8209 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8210 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8211 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8212 to_set_syscall_catchpoint to return_one.
8213 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8214 (debug_to_insert_exec_catchpoint): Report return value.
8215 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8216 (to_insert_exec_catchpoint): Change declaration to return int instead
8219 2011-01-11 Michael Snyder <msnyder@vmware.com>
8221 * arm-tdep.c: Internationalization.
8224 * fork-child.c: Ditto.
8225 * nto-procfs.c: Ditto.
8226 * ppc-sysv-tdep.c: Ditto.
8228 * remote-mips.c: Ditto.
8230 * rs6000-nat.c: Ditto.
8231 * rs6000-tdep.c: Ditto.
8235 * xml-support.c: Ditto.
8236 * mi/mi-cmd-break.c: Ditto.
8237 * mi/mi-cmd-var.c: Ditto.
8238 * mi/mi-interp.c: Ditto.
8239 * mi/mi-main.c: Ditto.
8241 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8243 * remote-sim.c (gdbsim_store_register): Update API to
8244 sim_store_register to check more error conditions.
8246 2011-01-10 Michael Snyder <msnyder@vmware.com>
8248 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8249 * nto-tdep.c: Ditto.
8250 * nto-tdep.h: Ditto.
8251 * objc-exp.y: Ditto.
8252 * objc-lang.c: Ditto.
8253 * objfiles.c: Ditto.
8254 * objfiles.h: Ditto.
8255 * observer.c: Ditto.
8256 * opencl-lang.c: Ditto.
8259 * parser-defs.h: Ditto.
8262 * posix-hdep.c: Ditto.
8263 * ppcbug-rom.c: Ditto.
8264 * ppc-linux-nat.c: Ditto.
8265 * ppc-linux-tdep.c: Ditto.
8266 * ppc-linux-tdep.h: Ditto.
8267 * ppcnbsd-tdep.c: Ditto.
8268 * ppcobsd-tdep.c: Ditto.
8269 * ppcobsd-tdep.h: Ditto.
8270 * ppc-sysv-tdep.c: Ditto.
8271 * ppc-tdep.h: Ditto.
8272 * printcmd.c: Ditto.
8273 * proc-abi.c: Ditto.
8274 * proc-flags.c: Ditto.
8276 * proc-utils.h: Ditto.
8277 * progspace.h: Ditto.
8278 * prologue-value.c: Ditto.
8279 * prologue-value.h: Ditto.
8280 * psympriv.h: Ditto.
8282 * p-typeprint.c: Ditto.
8283 * p-valprint.c: Ditto.
8284 * ravenscar-sparc-thread.c: Ditto.
8285 * ravenscar-thread.c: Ditto.
8286 * ravenscar-thread.h: Ditto.
8288 * regcache.c: Ditto.
8289 * regcache.h: Ditto.
8291 * remote-fileio.c: Ditto.
8292 * remote-fileio.h: Ditto.
8294 * remote-m32r-sdi.c: Ditto.
8295 * remote-mips.c: Ditto.
8296 * remote-sim.c: Ditto.
8297 * rs6000-aix-tdep.c: Ditto.
8298 * rs6000-nat.c: Ditto.
8299 * rs6000-tdep.c: Ditto.
8301 2011-01-10 Michael Snyder <msnyder@vmware.com>
8303 * charset.c (validate): Internationalization.
8304 * coffread.c (read_one_sym): Ditto.
8305 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8306 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8307 * inflow.c (new_tty): Ditto.
8308 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8309 * m32c-tdep.c (m32c_return_value): Ditto.
8310 * mep-tdep.c (mep_store_return_value): Ditto.
8311 * score-tdep.c (score7_fetch_insn): Ditto.
8312 * ser-mingw.c (pipe_windows_open): Ditto.
8313 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8314 * spu-tdep.c (spu_register_type): Ditto.
8315 * tracepoint.c (trace_find_command): Ditto.
8316 * valarith.c (value_pos): Ditto.
8318 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8320 * ada-valprint.c (printstr): Minor comment reformatting.
8322 2011-01-08 Michael Snyder <msnyder@vmware.com>
8324 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8327 2011-01-08 Michael Snyder <msnyder@vmware.com>
8329 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8330 * hppa-hpux-tdep.c: Ditto.
8331 * hppa-linux-nat.c: Ditto.
8332 * hppa-linux-tdep.c: Ditto.
8333 * hppanbsd-tdep.c: Ditto.
8334 * hppa-tdep.c: Ditto.
8335 * hppa-tdep.h: Ditto.
8336 * hpux-thread.c: Ditto.
8337 * i386-cygwin-tdep.c: Ditto.
8338 * i386-darwin-nat.c: Ditto.
8339 * i386gnu-nat.c: Ditto.
8340 * i386-linux-nat.c: Ditto.
8341 * i386-linux-tdep.c: Ditto.
8342 * i386-nat.c: Ditto.
8343 * i386-nat.h: Ditto.
8344 * i386nbsd-tdep.c: Ditto.
8345 * i386-sol2-nat.c: Ditto.
8346 * i386-stub.c: Ditto.
8347 * i386-tdep.c: Ditto.
8348 * i386-tdep.h: Ditto.
8349 * i387-tdep.c: Ditto.
8350 * ia64-linux-nat.c: Ditto.
8351 * ia64-linux-tdep.c: Ditto.
8352 * ia64-tdep.c: Ditto.
8356 * inferior.c: Ditto.
8357 * inferior.h: Ditto.
8363 * iq2000-tdep.c: Ditto.
8364 * irix5-nat.c: Ditto.
8370 * jv-typeprint.c: Ditto.
8371 * jv-valprint.c: Ditto.
8372 * language.c: Ditto.
8373 * language.h: Ditto.
8374 * linespec.c: Ditto.
8375 * linux-fork.c: Ditto.
8376 * linux-nat.c: Ditto.
8377 * linux-thread-db.c: Ditto.
8378 * lm32-tdep.c: Ditto.
8380 2011-01-08 Michael Snyder <msnyder@vmware.com>
8382 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8384 * m2-typeprint.c: Ditto.
8385 * m2-valprint.c: Ditto.
8386 * m32c-tdep.c: Ditto.
8387 * m32r-linux-nat.c: Ditto.
8388 * m32r-rom.c: Ditto.
8389 * m32r-tdep.c: Ditto.
8390 * m32r-tdep.h: Ditto.
8391 * m68hc11-tdep.c: Ditto.
8392 * m58klinux-nat.c: Ditto.
8393 * m68k-tdep.c: Ditto.
8394 * m88k-tdep.c: Ditto.
8395 * m88k-tdep.h: Ditto.
8396 * machoread.c: Ditto.
8397 * macrocmd.c: Ditto.
8398 * macroexp.c: Ditto.
8399 * macrotab.c: Ditto.
8402 * mdebugread.c: Ditto.
8403 * mdebugread.h: Ditto.
8406 * memory-map.h: Ditto.
8407 * mep-tdep.c: Ditto.
8408 * microblaze-rom.c: Ditto.
8409 * microblaze-tdep.c: Ditto.
8411 * mips-irix-tdep.c: Ditto.
8412 * mips-linux-nat.c: Ditto.
8413 * mips-linux-tdep.c: Ditto.
8414 * mips-linux-tdep.h: Ditto.
8415 * mipsnbsd-nat.c: Ditto.
8416 * mipsnbsd-tdep.c: Ditto.
8417 * mipsread.c: Ditto.
8418 * mips-tdep.c: Ditto.
8419 * mips-tdep.h: Ditto.
8420 * mn10300-linux-tdep.c: Ditto.
8421 * mn10300-tdep.c: Ditto.
8422 * mn10300-tdep.h: Ditto.
8425 * moxie-tdep.c: Ditto.
8426 * moxie-tdep.h: Ditto.
8429 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8431 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8433 2011-01-08 Robert Millan <rmh@gnu.org>
8435 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8437 2011-01-07 Michael Snyder <msnyder@vmware.com>
8439 * charset.c (_initialize_charset): Fix typo in string.
8441 2011-01-07 Michael Snyder <msnyder@vmware.com>
8443 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8445 * tui/tui-layout.c (tui_set_layout_for_display_command):
8446 Split line so that operator goes to beginning of line.
8447 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8448 assignment out of if statement.
8450 2011-01-07 Michael Snyder <msnyder@vmware.com>
8452 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8453 * ada-lang.h: Ditto.
8454 * ada-tasks.c: Ditto.
8455 * ada-valprint.c: Ditto.
8456 * aix-threads.c: Ditto.
8457 * alpha-linux-nat.c: Ditto.
8458 * alpha-linux-tdep.c: Ditto.
8459 * alpha-mdebug-tdep.c: Ditto.
8460 * alpha-nat.c: Ditto.
8461 * alpha-osf1-tdep.c: Ditto.
8462 * alpha-tdep.c: Ditto.
8463 * alphabsd-nat.c: Ditto.
8464 * alphabsd-tdep.c: Ditto.
8465 * amd64-darwin-tdep.c: Ditto.
8466 * amd64-linux-nat.c: Ditto.
8467 * amd64-linux-tdep.c: Ditto.
8468 * amd64-sol2-tdep.c: Ditto.
8469 * amd64-tdep.c: Ditto.
8470 * amd64-fbsd-tdep.c: Ditto.
8471 * amd64-nbsd-tdep.c: Ditto.
8472 * amd64-obsd-tdep.c: Ditto.
8473 * amd64-linux-nat.c: Ditto.
8474 * amd64-linux-tdep.c: Ditto.
8475 * arm-tdep.c: Ditto.
8476 * arm-tdep.h: Ditto.
8477 * armnbsd-nat.c: Ditto.
8478 * avr-tdep.c: Ditto.
8479 * bfin-tdep.c: Ditto.
8481 * c-typeprintc: Ditto.
8482 * c-valprint.c: Ditto.
8483 * coff-pe-read.h: Ditto.
8484 * coffreead.c: Ditto.
8485 * cris-tdep.c: Ditto.
8487 * darwin-nat-info.c: Ditto.
8488 * darwin-nat.c: Ditto.
8489 * dbug-rom.c: Ditto.
8493 * dec-thread.c: Ditto.
8495 * demangle.c: Ditto.
8496 * dicos-tdep.c: Ditto.
8497 * dictionary.c: Ditto.
8498 * dictionary.h: Ditto.
8499 * dink32-rom.c: Ditto.
8501 * doublest.c: Ditto.
8503 * dummy-frame.c: Ditto.
8504 * dwarf2-frame.c: Ditto.
8505 * dwarf2expr.c: Ditto.
8506 * dwarf2loc.c: Ditto.
8507 * dwarf2read.c: Ditto.
8511 * event-top.h: Ditto.
8512 * exceptions.c: Ditto.
8513 * exceptions.h: Ditto.
8515 * expprint.c: Ditto.
8516 * expression.h: Ditto.
8520 * f-typeprint.c: Ditto.
8521 * f-valprint.c: Ditto.
8522 * fbsd-nat.c: Ditto.
8524 * fork-child.c: Ditto.
8527 * frv-linux-tdep.c: Ditto.
8528 * frv-tdep.c: Ditto.
8530 * gdb-stabs.h: Ditto.
8531 * gdb_assert.h: Ditto.
8532 * gdb_string.h: Ditto.
8533 * gdb_thread_db.h: Ditto.
8534 * gdb_wait.h: Ditto.
8535 * gdbarch.sh: Ditto.
8537 * gdbthread.h: Ditto.
8538 * gdbtypes.c: Ditto.
8539 * gdbtypes.h: Ditto.
8542 * gnu-v2-abi.c: Ditto.
8543 * gnu-v3-abi.c: Ditto.
8544 * go32-nat.c: Ditto.
8545 * gdbarch.c: Regenerate.
8546 * gdbarch.h: Regenerate.
8548 2011-01-07 Michael Snyder <msnyder@vmware.com>
8550 * ax-gdb.c: Adjust some long output strings.
8551 * breakpoint.c: Ditto.
8556 * linux-nat.c: Ditto.
8557 * solib-pa64.c: Ditto.
8558 * solib-som.c: Ditto.
8560 2011-01-06 Tom Tromey <tromey@redhat.com>
8564 * python/python.c (GdbMethods): Add "newest_frame" method.
8565 * python/python-internal.h (gdbpy_newest_frame): Declare.
8566 * python/py-frame.c (gdbpy_newest_frame): New function.
8568 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8570 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8571 * jit.c (jit_debug): New variable.
8572 (show_jit_debug): New function.
8573 (struct target_buffer): Use ULONGEST.
8574 (bfd_open_from_target_memory): Likewise.
8575 (jit_register_code, jit_inferior_init): Add debug output.
8576 (_initialize_jit): Register "debug jit" command.
8578 2011-01-06 Tom Tromey <tromey@redhat.com>
8580 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8581 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8584 2011-01-06 Tom Tromey <tromey@redhat.com>
8586 * python/py-frame.c (frapy_block): Use get_frame_block.
8588 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8590 Do not stop on SIGPRIO signals by default
8591 * infrun.c (_initialize_infrun): Unset signal_stop and
8592 signal_print for TARGET_SIGNAL_PRIO.
8594 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8596 * ada-tasks.c: Fix style violation in comment.
8598 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8600 * linespec.c (decode_compound, find_method): Remove trailing \n
8601 at end of error string.
8602 * solib-irix.c (irix_current_sos): Likewise.
8603 * varobj.c (uninstall_variable): Likewise.
8605 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8607 * copyright.py: New script.
8608 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8609 Launch emacs without exec'ing. Call copyright.py afterwards.
8611 2011-01-05 Michael Snyder <msnyder@vmware.com>
8613 * addrmap.c: Shorten lines of >= 80 columns.
8614 * arch-utils.c: Ditto.
8615 * arch-utils.h: Ditto.
8617 * ax-general.c: Ditto.
8619 * blockframe.c: Ditto.
8620 * breakpoint.c: Ditto.
8621 * buildsym.c: Ditto.
8623 * c-typeprint.c: Ditto.
8625 * coffread.c: Ditto.
8629 * cp-namespace.c: Ditto.
8630 * cp-support.c: Ditto.
8631 * dbug-rom.c: Ditto.
8636 * dictionary.c: Ditto.
8638 * doublest.c: Ditto.
8639 * dwarf2-frame.c: Ditto.
8640 * dwarf2expr.c: Ditto.
8641 * dwarf2loc.c: Ditto.
8642 * dwarf2read.c: Ditto.
8645 * event-loop.c: Ditto.
8646 * event-loop.h: Ditto.
8647 * exceptions.h: Ditto.
8649 * expprint.c: Ditto.
8650 * expression.h: Ditto.
8652 * f-valprint.c: Ditto.
8654 * frame-base.c: Ditto.
8655 * frame-unwind.c: Ditto.
8656 * frame-unwind.h: Ditto.
8660 * gdb-stabs.h: Ditto.
8661 * gdb_assert.h: Ditto.
8662 * gdb_dirent.h: Ditto.
8663 * gdb_obstack.h: Ditto.
8665 * gdbtypes.c: Ditto.
8666 * gdbtypes.h: Ditto.
8667 * inf-ttrace.c: Ditto.
8672 * inline-frame.h: Ditto.
8673 * language.c: Ditto.
8674 * language.h: Ditto.
8675 * libunwind-frame.c: Ditto.
8676 * libunwind-frame.h: Ditto.
8677 * linespec.c: Ditto.
8678 * linux-nat.c: Ditto.
8679 * linux-nat.h: Ditto.
8680 * linux-thread-db.c: Ditto.
8681 * machoread.c: Ditto.
8682 * macroexp.c: Ditto.
8683 * macrotab.c: Ditto.
8686 * mdebugread.c: Ditto.
8691 * objfiles.c: Ditto.
8692 * objfiles.h: Ditto.
8694 * p-typeprint.c: Ditto.
8695 * p-valprint.c: Ditto.
8697 * printcmd.c: Ditto.
8698 * proc-events.c: Ditto.
8700 * progspace.c: Ditto.
8701 * progspace.h: Ditto.
8702 * psympriv.h: Ditto.
8705 * regcache.c: Ditto.
8706 * regcache.h: Ditto.
8707 * remote-fileio.c: Ditto.
8709 * ser-mingw.c: Ditto.
8711 * ser-unix.c: Ditto.
8714 * solib-frv.c: Ditto.
8715 * solib-irix.c: Ditto.
8716 * solib-osf.c: Ditto.
8717 * solib-pa64.c: Ditto.
8718 * solib-som.c: Ditto.
8719 * solib-sunos.c: Ditto.
8720 * solib-svr4.c: Ditto.
8721 * solib-target.c: Ditto.
8725 * stabsread.c: Ditto.
8726 * stabsread.c: Ditto.
8729 * symfile-mem.c: Ditto.
8735 * target-descriptions.c: Ditto.
8736 * target-memory.c: Ditto.
8739 * terminal.h: Ditto.
8742 * tracepoint.c: Ditto.
8743 * tracepoint.h: Ditto.
8747 * user-regs.c: Ditto.
8748 * user-regs.h: Ditto.
8750 * valarith.c: Ditto.
8752 * valprint.c: Ditto.
8753 * valprint.h: Ditto.
8758 * xcoffread.c: Ditto.
8759 * xcoffsolib.c: Ditto.
8760 * xcoffsolib.h: Ditto.
8761 * xml-syscall.c: Ditto.
8762 * xml-tdesc.c: Ditto.
8764 2011-01-05 Michael Snyder <msnyder@vmware.com>
8766 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
8767 * cli/cli-decode.c: Ditto.
8768 * cli/cli-dump.c: Ditto.
8769 * cli/cli-logging.c: Ditto.
8770 * cli/cli-script.c: Ditto.
8771 * cli/cli-setshow.c: Ditto.
8772 * common/signals.c: Ditto.
8773 * mi/mi-cmd-break.c: Ditto.
8774 * mi/mi-cmd-disas.c: Ditto.
8775 * mi/mi-cmd-stack.c: Ditto.
8776 * mi/mi-cmd-var.c: Ditto.
8777 * mi/mi-cmds.c: Ditto.
8778 * mi/mi-common.h: Ditto.
8779 * mi/mi-console.c: Ditto.
8780 * mi/mi-interp.c: Ditto.
8781 * mi/mi-main.c: Ditto.
8782 * osf-share/cma_attr.c: Ditto.
8783 * osf-share/cma_deb_core.h: Ditto.
8784 * osf-share/cma_debug_client.h: Ditto.
8785 * osf-share/cma_handle.h: Ditto.
8786 * osf-share/cma_mutex.h: Ditto.
8787 * osf-share/cma_stack_int.h: Ditto.
8788 * osf-share/cma_tcb_defs.h: Ditto.
8789 * python/py-auto-load.c: Ditto.
8790 * python/py-breakpoint.c: Ditto.
8791 * python/py-cmd.c: Ditto.
8792 * python/py-frame.c: Ditto.
8793 * python/py-objfile.c: Ditto.
8794 * python/py-param.c: Ditto.
8795 * python/py-progspace.c: Ditto.
8796 * python/py-symbol.c: Ditto.
8797 * python/py-value.c: Ditto.
8798 * python/python-internal.h: Ditto.
8799 * python/python.c: Ditto.
8800 * tui/tui-data.c: Ditto.
8801 * tui/tui-disasm.c: Ditto.
8802 * tui/tui-hooks.c: Ditto.
8803 * tui/tui-io.c: Ditto.
8804 * tui/tui-layout.c: Ditto.
8805 * tui/tui-regs.c: Ditto.
8806 * tui/tui-source.c: Ditto.
8807 * tui/tui-stack.c: Ditto.
8808 * tui/tui-win.c: Ditto.
8809 * tui/tui-windata.c: Ditto.
8810 * tui/tui-winsource.c: Ditto.
8812 2011-01-05 Joel Brobecker <brobecker@adacore.com>
8814 * configure.ac, gdb.1: Copyright year update.
8816 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8818 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
8819 this_pc_in_block, morestack_msym and morestack_name. Check for
8820 "__morestack" minimal symbol there.
8822 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8824 * symfile.c (find_sym_fns): Add call to dont_repeat.
8826 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8828 Copyright year update in most files (performed by copyright.sh).
8830 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8832 * top.c (print_gdb_version): Update copyright year in version output.
8834 For older changes see ChangeLog-2010.
8840 version-control: never