1 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3 * linux-nat.c (in_pid_list_p): New.
4 (linux_record_stopped_pid): Delete.
5 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
6 already attached to the LWP. Return an indication if so.
7 (linux_nat_filter_event): Adjust.
8 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
9 returning an indication to ignore this thread.
11 2011-09-02 Pedro Alves <pedro@codesourcery.com>
13 * top.c: Include interps.h.
14 (execute_command): If the target can async, but the interpreter is
15 in sync mode, synchronously wait for the command to finish before
17 (execute_command_to_string): Force the interpreter to sync mode.
18 * infrun.c: Include interps.h.
19 (fetch_inferior_event): Don't restore the prompt yet if the
20 interpreter is in sync mode.
21 * interps.c (interpreter_async): New global.
22 * interps.h (interpreter_async): Declare.
23 * inf-loop.c: Include interps.h.
24 (inferior_event_handler): Don't print the language change or run
25 breakpoint commands yet if the interpreter in is sync mode.
26 * main.c (captured_command_loop): Flip the interpreter to async
28 * cli/cli-script.c: Include interps.h.
29 (execute_user_command, while_command, if_command): Force the
30 interpreter to sync mode.
31 * python/python.c: Include interps.h.
32 (python_command, execute_gdb_command): Force the interpreter to
35 2011-09-02 Pedro Alves <pedro@codesourcery.com>
37 * value.c (show_convenience): Catch errors thrown while printing
38 each internal variable.
39 * infrun.c (validate_siginfo_access): New function.
40 (siginfo_value_read, siginfo_value_write): Call it.
42 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
45 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
46 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
49 2011-08-29 Yao Qi <yao@codesourcery.com>
51 * solib-dsbt.c (bfd_lookup_symbol): Removed.
53 (enable_break2): Update caller.
54 * solib-frv.c (bfd_lookup_symbol): Removed.
56 (enable_break2): Update caller.
57 * solib-pa64.c (bfd_lookup_symbol): Removed.
59 * solib-svr4.c (bfd_lookup_symbol): Removed.
60 (cmp_name_and_sec_flags): New.
61 (enable_break): Update caller.
62 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
63 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
64 (gdb_bfd_lookup_symbol): New.
65 * solib.h: Functions declarations.
67 2011-08-29 Yao Qi <yao@codesourcery.com>
69 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
72 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
74 Fix TUI stepi on code without symbols.
75 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
78 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
81 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
82 and the static keyword.
83 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
85 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
86 * mi/mi-main.c (get_register): Remove stb initialization and the static
89 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
91 Code cleanup - make mi_opt const.
92 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
94 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
95 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
96 (mi_cmd_env_dir): Likewise.
97 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
98 (mi_cmd_target_file_put): Likewise.
99 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
100 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
101 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
102 (mi_valid_noargs): Make opts const.
103 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
104 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
105 (mi_cmd_data_read_memory): Likewise.
106 (mi_cmd_data_read_memory_bytes): Likewise.
107 (mi_cmd_data_write_memory): Likewise.
109 2011-08-26 Matt Rice <ratmice@gmail.com>
111 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
112 bcache_xmalloc, replace bcache_xmalloc with call to
113 psymbol_bcache_init for psymbol_cache.
114 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
116 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
118 * inf-loop.c (inferior_event_handler): Add exception_print in
121 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
123 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
124 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
125 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
126 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
127 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
128 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
129 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
130 * infrun.c (fetch_inferior_event): Call
131 make_bpstat_clear_actions_cleanup.
132 * top.c (execute_command): New variable cleanup_if_error, call
133 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
134 * utils.c (do_bpstat_clear_actions_cleanup)
135 (make_bpstat_clear_actions_cleanup): New functions.
137 2011-08-26 Pedro Alves <pedro@codesourcery.com>
139 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
140 either the parent or the child forks. Rename a couple locals.
142 2011-08-26 Pedro Alves <pedro@codesourcery.com>
144 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
145 library call. Avoid reading the `status' local if all waitpid
148 2011-08-26 Pedro Alves <pedro@codesourcery.com>
150 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
151 opening /proc/PID/task always succeeds.
153 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
155 * linespec.c (symtab_from_filename): Check for the end of string.
157 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
160 * varobj.c (cplus_describe_child): Add the keyword
161 'class' to the output of the method when dealing
162 with a cast to a base class.
164 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
166 No functionality change.
167 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
168 function comment a reference, new variables tp and bs, move here code
169 from throw_exception.
170 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
171 describe it in the comment.
172 * exceptions.c (throw_exception): Remove variable tp, move the code for
173 bpstat_clear_actions to bpstat_clear_actions.
175 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
177 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
178 * linux-nat.c: Include linux-procfs.h.
179 (linux_proc_get_tgid): Move to ...
180 * common/linux-procfs.c: ... here. New file.
181 * common/linux-procfs.h: New file.
182 * linux-thread-db.c: Include linux-procfs.h.
183 * Makefile.in: Update dependencies.
184 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
185 * config/arm/linux.mh: Likewise.
186 * config/i386/linux.mh: Likewise.
187 * config/i386/linux64.mh: Likewise.
188 * config/ia64/linux.mh: Likewise.
189 * config/m32r/linux.mh: Likewise.
190 * config/m68k/linux.mh: Likewise.
191 * config/mips/linux.mh: Likewise.
192 * config/pa/linux.mh: Likewise.
193 * config/pa/linux.mh: Likewise.
194 * config/powerpc/linux.mh: Likewise.
195 * config/powerpc/ppc64-linux.mh: Likewise.
196 * config/powerpc/spu-linux.mh: Likewise.
197 * config/sparc/linux.mh: Likewise.
198 * config/sparc/linux64.mh: Likewise.
199 * config/xtensa/linux.mh: Likewise.
201 2011-08-24 Hui Zhu <teawater@gmail.com>
203 * tracepoint.c (cond_string_is_same): New function.
204 (find_matching_tracepoint): Add condition check
205 by cond_string_is_same.
207 2011-08-23 Josh Matthews <josh@joshmatthews.net>
209 Fix build error in Darwin port.
210 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
212 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
215 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
216 (command_line_is_silent): New function.
217 (bpstat_do_actions_1): No longer use commands_left, use
218 command_line_is_silent for commands.
219 (bpstat_alloc): Remove clearing of commands_left.
220 (bpstat_stop_status): Remove initialization of commands_left, use
221 command_line_is_silent.
222 * breakpoint.h (struct bpstats): Remove commands_left.
224 2011-08-18 Keith Seitz <keiths@redhat.com>
227 * cp-name-parser.y (struct demangle_info): Remove unused
230 (allocate_info): Change return type to struct demangle_info *.
231 Always allocate a new demangle_info.
232 Remove unused PREV pointer.
233 (cp_new_demangle_parse_info): New function.
234 (cp_demangled_name_parse_free): New function.
235 (do_demangled_name_parse_free_cleanup): New function.
236 (make_cleanup_cp_demangled_name_parse_free): New function.
237 (cp_demangled_name_to_comp): Change return type to
238 struct demangle_parse_info *.
239 Allocate a new storage for each call.
240 (main): Update usage for cp_demangled_name_to_comp
242 * cp-support.h (struct demangle_parse_info): New structure.
243 (cp_demangled_name_to_comp): Update API change for
245 (cp_new_demangle_parse_info): Declare.
246 (make_cleanup_cp_demangled_name_parse_free): New declaration.
247 (cp_demangled_name_parse_free): Declare.
248 * cp-support.c (cp_canonicalize_string): Update API
249 change for cp_demangled_name_to_comp.
250 (mangled_name_to_comp): Likewise.
251 Return struct demangle_parse_info, too.
252 (cp_class_name_from_physname): Update mangled_name_to_comp
254 (method_name_from_physname): Likewise.
255 (cp_func_name): Update API change for cp_demangled_name_to_comp.
256 (cp_remove_params): Likewise.
257 * python/py-type.c (typy_legacy_template_argument): Likewise.
259 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
260 (cp_merge_demangle_parse_infos): Declare.
261 * cp-support.c (ignore_typedefs): New file global.
262 (copy_string_to_obstack): New function.
263 (inspect_type): New function.
264 (replace_typedefs): New function.
265 (replace_typedefs_qualified_name): New function.
266 (cp_canonicalize_string_no_typedefs): New function.
267 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
268 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
269 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
270 instead of cp_canonicalize_string.
271 (find_method): Likewise.
272 (decode_compound): Before looking up the name, call
273 cp_canonicalize_string_no_typedefs.
274 (decode_variable): Likewise.
276 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
277 Tom Tromey <tromey@redhat.com>
278 Matt Rice <ratmice@gmail.com>
280 * python/lib/gdb/prompt.py: New file.
281 * python/lib/gdb/command/prompt.py: New file.
282 * NEWS: Document set extended-prompt and gdb.prompt library
284 2011-08-16 Yao Qi <yao@codesourcery.com>
286 * tic6x-linux-tdep.c: Move const arrays definition from here...
287 * tic6x-tdep.c: to here ...
289 2011-08-14 Yao Qi <yao@codesourcery.com>
291 * NEWS: New port to Texas Instruments TMS320C6x.
293 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
294 Bernd Schmidt <bernds@codesourcery.com>
295 Yao Qi <yao@codesourcery.com>
297 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
298 * solib-dsbt.c: New file. Support DSBT shared object.
299 * tic6x-linux-tdep.c: New file.
300 * tic6x-tdep.c: New file.
301 * tic6x-tdep.h: New file.
303 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
304 Yao Qi <yao@codesourcery.com>
306 * remote.c (PACKET_qXfer_fdpic): New enum value.
307 (remote_protocol_features): Add qXfer:fdpic:read packet.
308 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
309 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
310 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
312 2011-08-14 Yao Qi <yao@codesourcery.com>
314 Target description for tic6x.
315 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
316 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
317 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
318 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
319 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
320 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
321 * features/tic6x-c64xp-linux.xml: New.
322 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
323 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
324 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
325 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
326 * regformats/tic6x-c64xp.dat,
327 regformats/tic6x-c62x-linux.dat: Generated.
328 * regformats/tic6x-c64x-linux.dat,
329 regformats/tic6x-c64xp-linux.dat: Generated.
330 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
331 features/tic6x-*.c files.
332 Add regformats/tic6x-*.dat files.
334 2011-08-12 Doug Evans <dje@google.com>
336 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
337 * python/py-symbol.c (sympy_get_type): New function.
338 (symbol_object_getset): Add "type".
340 2011-08-12 Pedro Alves <pedro@codesourcery.com>
344 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
346 (tui_show_register_group): Don't store a byte buffer in the data
348 (tui_register_format): Skip registers with an empty name.
349 (tui_get_register): Store a struct value in the data element's
350 value field instead of a byte buffer holding the raw register
351 contents. Account for optimized-out and unavailable registers
352 when comparing register contents.
354 2011-08-09 Pedro Alves <pedro@codesourcery.com>
356 * printcmd.c (current_display_number): Update comment.
357 (disable_current_display_cleanup): Delete.
358 (do_one_display): Use make_cleanup_restore_integer. Gracefully
359 catch errors thrown while evaluating and printing the display.
361 2011-08-09 Tom Tromey <tromey@redhat.com>
363 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
365 2011-08-09 Pedro Alves <pedro@codesourcery.com>
367 * elfread.c (elf_symtab_read): Rework comments.
368 * maint.c (maintenance_command): Ditto.
369 * somread.c (som_symtab_read): Ditto.
370 * solib.c (solib_find, solib_map_sections, update_solib_list)
371 (solib_add, info_sharedlibrary_command, solib_name_from_address)
372 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
373 (sharedlibrary_command, no_shared_libraries): Ditto.
374 * solib-irix.c (locate_base, disable_break, enable_break)
375 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
376 (irix_current_sos, irix_open_symbol_file_object)
377 (irix_special_symbol_handling): Ditto.
378 * solib-sunos.c (locate_base, first_link_map_member)
379 (sunos_current_sos, disable_break, enable_break)
380 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
382 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
383 (open_symbol_file_object, svr4_current_sos, enable_break)
384 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
386 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
387 (frv_current_sos, enable_break, frv_special_symbol_handling)
388 (frv_solib_create_inferior_hook): Ditto.
389 * solist.h (struct target_so_ops): Extend the comments of the
390 special_symbol_handling, current_sos and open_symbol_file_object
393 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
395 * python/lib/gdb/__init__.py: Auto-load files in command and
396 function directories.
397 * python/python.c (finish_python_initialization): Use
399 * python/lib/gdb/command/pretty_printers.py: Self register
401 * NEWS: Document auto-loading.
403 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
405 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
406 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
407 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
409 2011-08-08 Tom Tromey <tromey@redhat.com>
411 * breakpoint.c (clean_up_filters): Remove.
412 (catch_syscall_split_args): Use VEC_cleanup.
414 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
416 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
417 (main): Uncomment "Demangling error\n".
419 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
421 * solib-target.c (segment_attributes): Make them static.
422 (section_attributes, library_children, library_attributes): Likewise.
423 (library_list_children, library_list_attributes): Likesise.
424 (library_list_elements): Likewise.
426 2011-08-05 Pedro Alves <pedro@codesourcery.com>
428 * exceptions.c (throw_exception): Don't disable the current
430 * printcmd.c (disable_current_display_cleanup): New function.
431 (do_one_display): Install a cleanup to disable the current display
432 if doing the display throws.
434 2011-08-05 Eli Zaretskii <eliz@gnu.org>
436 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
437 initialization of the tp_new member to the corresponding
438 gdbpy_initialize_* function.
439 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
440 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
441 * python/py-function.c (gdbpy_initialize_functions): Likewise.
442 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
443 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
445 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
447 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
448 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
449 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
450 references to current_uiout.
452 2011-08-04 Pedro Alves <pedro@codesourcery.com>
454 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
455 (start_event_loop): Use TRY_CATCH instead of catch_errors.
456 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
457 * top.c (gdb_readline_wrapper): Adjust.
458 * tui/tui-interp.c (tui_command_loop):
459 (_initialize_tui_interp): Don't install it.
461 2011-08-04 Pedro Alves <pedro@codesourcery.com>
463 * ui-out.h (uiout): Rename to ...
464 (current_uiout): ... this.
465 * ui-out.c (uiout): Rename to ...
466 (current_uiout): ... this.
467 * ada-lang.c (print_it_exception, print_one_exception)
468 (print_mention_exception): Adjust.
469 * breakpoint.c (watchpoint_check): Adjust.
470 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
471 (default_collect_info, watchpoints_info, print_one_catch_fork)
472 (print_one_catch_vfork, print_one_catch_syscall)
473 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
474 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
475 (print_it_watchpoint, print_mention_watchpoint)
476 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
477 (print_it_exception_catchpoint, print_one_exception_catchpoint)
478 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
479 (bkpt_print_mention, momentary_bkpt_print_it)
480 (tracepoint_print_mention, update_static_tracepoint)
481 (tracepoints_info, save_breakpoints): Adjust.
482 * cli-out.c (field_separator): Adjust.
483 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
484 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
485 * frame.c (get_current_frame): Adjust.
486 * infcmd.c (run_command_1, print_return_value): Adjust.
487 * inferior.c (inferior_command, info_inferiors_command): Adjust.
488 * infrun.c (print_end_stepping_range_reason): Adjust.
489 (print_signal_exited_reason, print_exited_reason): Adjust.
490 (print_signal_received_reason, print_no_history_reason): Adjust.
491 * interps.c (interp_set): Adjust.
492 * osdata.c (info_osdata_command): Adjust.
493 * progspace.c (maintenance_info_program_spaces_command): Adjust.
494 * remote-fileio.c (remote_fileio_request): Adjust.
495 * remote.c (show_remote_cmd): Adjust.
496 * solib.c (info_sharedlibrary_command): Adjust.
497 * source.c (print_source_lines_base): Adjust.
498 * stack.c (print_stack_frame): Adjust.
499 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
500 * symfile-mem.c (add_vsyscall_page): Adjust.
501 * symfile.c (load_progress, generic_load)
502 (print_transfer_performance): Adjust.
503 * thread.c (info_threads_command, restore_selected_frame)
504 (thread_command): Adjust.
505 * top.c (make_cleanup_restore_ui_file): Adjust.
506 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
507 (print_one_static_tracepoint_marker): Adjust.
508 * cli/cli-cmds.c (print_disassembly): Adjust.
509 * cli/cli-decode.c (print_doc_line): Adjust.
510 * cli/cli-interp.c (safe_execute_command): Adjust.
511 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
512 (handle_redirections): Adjust.
513 * cli/cli-script.c (show_user_1): Adjust.
514 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
515 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
516 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
517 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
518 (mi_cmd_env_dir): Adjust.
519 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
520 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
521 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
522 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
523 (list_args_or_locals): Adjust.
524 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
525 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
526 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
527 (mi_cmd_var_list_children, mi_cmd_var_info_type)
528 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
529 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
530 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
531 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
532 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
533 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
534 (list_available_thread_groups, mi_cmd_list_thread_groups)
535 (mi_cmd_data_list_register_names)
536 (mi_cmd_data_list_changed_registers)
537 (mi_cmd_data_list_register_values, get_register)
538 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
539 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
540 (mi_cmd_list_target_features, mi_cmd_add_inferior)
541 (mi_execute_command, mi_load_progress): Adjust.
542 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
543 * python/py-auto-load.c (print_script, info_auto_load_scripts):
545 * python/py-breakpoint.c (bppy_get_commands): Adjust.
546 * tui/tui-interp.c (tui_command_loop): Adjust.
547 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
549 2011-08-04 Pedro Alves <pedro@codesourcery.com>
551 * exceptions.c (struct catcher): Remove saved_uiout field.
552 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
553 no longer save/resvore the global ui_out builder.
554 (catch_exceptions_with_msg): Save/override/restore the global
555 ui_out builder manually instead of relying on TRY_CATCH to do it.
556 (catch_errors): Save/restore the global ui_out builder manually
557 instead of relying on TRY_CATCH to do it.
558 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
561 * cli/cli-interp.c (safe_execute_command): Save/override/restore
562 the global ui_out builder manually instead of relying on TRY_CATCH
565 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
567 * breakpoint.c (update_global_location_list): Ensure
568 invariant 'first loc marked not duplicated and inserted,
569 following locs marked duplicated/not inserted' is respected
570 for multiple locations at the same address.
571 (unduplicated_should_be_inserted) New function.
572 (swap_insertion) New function.
574 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
576 * stack.c (print_frame_arguments_choices): Comment typo fix.
578 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
581 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
582 * breakpoint.c (insert_bp_location): Remove disabled_breaks
583 argument. Update callers.
585 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
588 * doublest.c (convert_doublest_to_floatformat): Pass correct
589 mantissa length to put_field.
591 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
593 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
594 exception_print code path.
595 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
596 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
597 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
599 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
602 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
603 Remove, merge them into ...
604 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
605 variable args and its initialization.
606 (struct print_args_args, print_args_stub): Remove, merge them into
608 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
610 (do_gdb_disassembly): ... here. Remove variable args and its
612 (print_frame): Remove variable args and its initialization, new
613 variable gdbarch and numargs (from print_args_stub), inline here
614 print_args_stub with a TRY_CATCH.
615 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
617 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
618 New variable e, remove variable btargs and its initialization.
620 2011-08-01 Tristan Gingold <gingold@adacore.com>
622 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
624 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
626 * breakpoint.c (insert_bp_location): Document return value.
627 (insert_breakpoint_locations): Fix documentation.
628 (remove_breakpoints): Add documentation.
630 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
632 * breakpoint.c (insert_bp_location): Remove disabled_breaks
633 argument. Update callers.
635 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
637 * stack.c (print_frame_info): Comment typo fix.
639 2011-07-29 Sterling Augustine <saugustine@google.com>
641 * MAINTAINERS (Write After Approval): Add myself to the list.
643 2011-07-29 Tom Tromey <tromey@redhat.com>
645 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
646 (library_list_start_segment): Update.
647 (library_list_start_section): Update.
649 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
651 * varobj.c (value_get_print_value): Move hint check later into the
652 function. Comment function. Free thevalue before reusing it.
654 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
655 Pedro Alves <pedro@codesourcery.com>
657 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
659 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
660 Assert the result kind.
661 * value.h (value_one): Remove parameter lv.
663 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
665 Fix crash on lval_computed values.
666 * valops.c (value_zero): Use not_lval for lval_computed.
668 2011-07-27 Tom Tromey <tromey@redhat.com>
670 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
671 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
673 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
675 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
676 "ptype" by their typedefs difference.
678 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
680 * dwarf2expr.c (ctx_no_read_reg): New function.
681 * dwarf2expr.h (ctx_no_read_reg): New declaration.
682 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
683 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
684 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
686 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
688 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
689 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
691 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
692 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
693 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
694 (ctx_no_get_base_type): Move the functions here.
695 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
696 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
697 (ctx_no_get_base_type): New declarations.
699 2011-07-27 Tom Tromey <tromey@redhat.com>
701 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
703 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
704 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
706 2011-07-26 Sterling Augustine <saugustine@google.com>
708 * cli/cli-dump.c (dump_binary_file): Change parameter type to
710 (dump_bfd_file): Likewise.
712 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
714 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
715 (remote_hw_watchpoint_length_limit): New variable.
716 (_initialize_remote) add set,show cmds for this new variable.
717 * gdb.texinfo: document these new commands.
718 * NEWS: Mention these new commands.
720 2011-07-26 Pedro Alves <pedro@codesourcery.com>
722 * breakpoint.c (works_in_software_mode_watchpoint): Also return
723 true for software watchpoints.
725 2011-07-26 Joel Brobecker <brobecker@adacore.com>
729 2011-07-26 Tom Tromey <tromey@redhat.com>
731 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
732 * dwarf2read.c (read_indirect_string_at_offset): New function.
733 (read_indirect_string): Use it.
734 (dwarf_decode_macro_bytes): New function, taken from
735 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
736 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
737 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
739 (struct dwarf2_per_objfile) <macro>: New field.
740 (dwarf2_elf_names): Add .debug_macro.
741 (dwarf2_macros_too_long_complaint): Add 'section' argument.
742 (dwarf2_locate_sections): Handle new section.
743 (read_file_scope): Handle DW_AT_GNU_macros.
744 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
746 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
748 * NEWS: Mention dcache configuration.
749 * dcache.c (dcache_set_list, dcache_show_list): New variables.
750 (dcache_size, dcache_line_size): New variables.
751 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
752 (struct dcache_block): Make it expandable.
753 (struct dcache_struct): New field.
754 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
755 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
756 (dcache_poke_byte, dcache_print_line): Adjust.
757 (set_dcache_size, set_dcache_line_size): New functions.
758 (set_dcache_command, show_dcache_command): New functions.
759 (_initialize_dcache): Add new commands.
761 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
763 * progspace.h (struct program_space): Add solib_add_generation.
764 * infcmd.c (post_create_inferior): Only call solib_add if not
766 * solib.c (solib_add): Increment solib_add_generation.
768 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
770 Fix implicit pointer offsets.
771 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
774 2011-07-25 Tom Tromey <tromey@redhat.com>
776 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
778 (ada_exception_sal): Make 'ops' const.
779 (ada_decode_exception_location): Likewise.
780 (ada_decode_assert_location): Likewise.
781 (catch_assert_command): Update.
782 (catch_ada_exception_command): Update.
783 (create_ada_exception_catchpoint): Make 'ops' const.
784 * breakpoint.c (set_raw_breakpoint_without_location)
785 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
787 (create_internal_breakpoint): Update.
788 (init_raw_breakpoint_without_location): Make 'ops' const.
789 (init_raw_breakpoint, init_catchpoint)
790 (create_fork_vfork_event_catchpoint)
791 (create_syscall_event_catchpoint, init_breakpoint_sal)
792 (create_breakpoint_sal, create_breakpoints_sal)
793 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
794 * breakpoint.h (struct breakpoint) <ops>: Now const.
795 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
798 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
800 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
802 2011-07-25 Pedro Alves <pedro@codesourcery.com>
804 * breakpoint.h (print_recreate_thread): Declare.
805 (struct breakpoint): Move step_count, pass_count,
806 number_on_target, static_trace_marker_id,
807 static_trace_marker_id_idx ...
808 (struct tracepoint): ... to this new struct.
809 (get_tracepoint, get_tracepoint_by_number_on_target)
810 (get_tracepoint_by_number): Change return type to struct
812 * breakpoint.c (is_tracepoint_type): New, factored out from
814 (is_tracepoint): Adjust.
815 (print_one_breakpoint_location): Cast to struct tracepoint as
816 necessary, and adjust.
817 (print_recreate_catch_fork, print_recreate_catch_vfork)
818 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
819 print_recreate_thread.
820 (init_breakpoint_sal): New, factored out from
821 create_breakpoint_sal.
822 (create_breakpoint_sal): Reimplement.
823 (create_breakpoint): Allocate a struct tracecepoint if the caller
824 wanted a tracepoint. Use init_breakpoint_sal and
826 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
827 (print_recreate_masked_watchpoint)
828 (print_recreate_exception_catchpoint): Call print_recreate_thread.
829 (tracepoint_print_one_detail): Adjust.
830 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
831 Dump the pass count here.
832 (update_static_tracepoint): Adjust.
833 (addr_string_to_sals): Adjust.
834 (create_tracepoint_from_upload): Adjust. Change return type to
835 struct tracepoint pointer.
836 (trace_pass_set_count): Change parameter type to struct tracepoint
838 (trace_pass_command): Adjust.
839 (get_tracepoint, get_tracepoint_by_number_on_target)
840 (get_tracepoint_by_number): Change return type to struct
841 tracepoint pointer, and adjust.
842 (print_recreate_thread): New, factored out from save_breakpoints.
843 (save_breakpoints): Don't print thread and task and passcount
845 * remote.c (remote_download_tracepoint): Adjust.
846 * tracepoint.c (trace_actions_command, validate_actionline)
847 (start_tracing, tfind_1, trace_find_tracepoint_command)
848 (trace_dump_command): Adjust.
849 (find_matching_tracepoint): Change return type to struct
850 tracepoint pointer, and adjust.
851 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
852 (tfile_trace_find, tfile_fetch_registers): Adjust.
853 * tracepoint.h (create_tracepoint_from_upload): Change return type
854 to struct tracepoint pointer.
855 * ada-lang.c (print_recreate_exception): Call
856 print_recreate_thread.
857 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
859 2011-07-25 Pedro Alves <pedro@codesourcery.com>
861 * breakpoint.h (struct breakpoint): Move ops as first field. Move
862 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
863 cond_exp_valid_block, val, val_valid, watchpoint_frame,
864 watchpoint_thread, watchpoint_triggered ...
865 (struct watchpoint): ... to this new struct.
866 (is_watchpoint): Declare.
867 (install_breakpoint): Add new `internal' parameter.
868 * breakpoint.c (is_watchpoint): Delete declaration.
869 (set_breakpoint_condition): Handle watchpoints.
870 (is_watchpoint): Make public.
871 (watchpoint_in_thread_scope): Change parameter type to struct
873 (watchpoint_del_at_next_stop): Change parameter type to struct
874 watchpoint. Remove assertion. Adjust.
875 (update_watchpoint): Ditto.
876 (insert_breakpoints, breakpoint_init_inferior)
877 (watchpoints_triggered, watchpoint_check)
878 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
879 (bpstat_stop_status, print_one_breakpoint_location)
880 (print_one_breakpoint_location, watchpoint_locations_match): Cast
881 to struct watchpoint as necessary, and adjust.
882 (install_breakpoint): Add `internal' argument. If true, don't
883 mention the new breakpoint. Use set_breakpoint_number.
884 (create_fork_vfork_event_catchpoint)
885 (create_syscall_event_catchpoint): Adjust.
886 (dtor_watchpoint): New.
887 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
888 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
889 (print_it_watchpoint, print_mention_watchpoint)
890 (print_recreate_watchpoint, insert_masked_watchpoint)
891 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
892 (print_one_detail_masked_watchpoint)
893 (print_mention_masked_watchpoint)
894 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
895 necessary, and adjust.
896 (watch_command_1): Allocate and initialize a struct watchpoint
897 instead of a struct breakpoint. Use install_breakpoint.
898 (catch_exec_command_1): Adjust.
899 (base_breakpoint_dtor): Delete accesses to watchpoint specific
901 (delete_breakpoint, enable_breakpoint_disp)
902 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
903 as necessary, and adjust.
904 (initialize_breakpoint_ops): Install dtor_watchpoint as
905 watchpoints' dtor method.
906 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
907 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
908 to struct watchpoint as necessary, and adjust.
910 2011-07-25 Pedro Alves <pedro@codesourcery.com>
912 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
913 the the base class ops table.
914 (catch_exception_breakpoint_ops)
915 (catch_exception_unhandled_breakpoint_ops)
916 (catch_assert_breakpoint_ops): Don't statically initialize.
917 (initialize_ada_catchpoint_ops): New.
918 (_initialize_ada_language): Call it.
919 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
920 (bkpt_breakpoint_ops): Forward declare.
921 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
922 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
923 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
924 (masked_watchpoint_breakpoint_ops)
925 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
926 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
927 base class ops table.
928 (null_re_set, null_check_status, null_works_in_software_mode)
929 (null_resources_needed, null_print_one_detail): Delete.
930 (bkpt_dtor): Rename to ...
931 (base_breakpoint_dtor): ... this. Make static.
932 (bkpt_allocate_location): Rename to ...
933 (base_breakpoint_allocate_location): ... this. Make static.
934 (base_breakpoint_re_set): New.
935 (internal_error_pure_virtual_called): New.
936 (base_breakpoint_insert_location, base_breakpoint_remove_location)
937 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
938 (base_breakpoint_works_in_software_mode)
939 (base_breakpoint_resources_needed, base_breakpoint_print_it)
940 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
941 (base_breakpoint_print_recreate): New functions.
942 (base_breakpoint_ops): New global.
943 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
944 (bkpt_breakpoint_hit): Make static.
945 (bkpt_check_status): Delete.
946 (bkpt_resources_needed): Make static.
947 (bkpt_works_in_software_mode): Delete.
948 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
950 (bkpt_breakpoint_ops, internal_breakpoint_ops)
951 (momentary_breakpoint_ops): Don't statically initialize.
952 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
954 (tracepoint_insert_location, tracepoint_remove_location)
955 (tracepoint_check_status, tracepoint_works_in_software_mode)
956 (tracepoint_print_it): Delete.
957 (tracepoint_breakpoint_ops): Don't statically initialize.
958 (initialize_breakpoint_ops): New.
959 (_initialize_breakpoint): Call it.
960 * breakpoint.h (null_re_set, null_works_in_software_mode)
961 (null_resources_needed, null_check_status, null_print_one_detail):
962 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
963 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
964 (bkpt_check_status, bkpt_resources_needed)
965 (bkpt_works_in_software_mode, bkpt_print_it)
966 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
968 (initialize_breakpoint_ops): Declare.
970 2011-07-25 Pedro Alves <pedro@codesourcery.com>
972 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
973 (momentary_bkpt_print_it): Simplify.
975 2011-07-25 Pedro Alves <pedro@codesourcery.com>
977 Split internal, momentary and user breakpoints breakpoint_ops
980 * breakpoint.c (internal_breakpoint_ops)
981 (momentary_breakpoint_ops): Forward declare.
982 (create_internal_breakpoint): Add new breakpoint_ops parameter.
983 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
984 (create_overlay_event_breakpoint)
985 (create_std_terminate_master_breakpoint)
986 (create_exception_master_breakpoint): Create breakpoints with
987 internal_breakpoint_ops vtable.
988 (set_longjmp_breakpoint): Create momentary breakpoints with
989 momentary_breakpoint_ops vtable, using
990 momentary_breakpoint_from_master.
991 (create_thread_event_breakpoint, create_jit_event_breakpoint)
992 (create_solib_event_breakpoint): Create breakpoints with
993 internal_breakpoint_ops vtable.
994 (set_momentary_breakpoint): Create breakpoints with
995 momentary_breakpoint_ops vtable.
996 (momentary_breakpoint_from_master): New, factored out from
997 clone_momentary_breakpoint.
998 (clone_momentary_breakpoint): Adjust.
999 (watch_command_1): Create scope breakpoints with
1000 momentary_breakpoint_ops vtable.
1001 (bkpt_re_set): Remove handling of internal and momentary
1003 (bkpt_print_mention, bkpt_print_recreate): New.
1004 (bkpt_breakpoint_ops): Adjust.
1005 (internal_bkpt_re_set, internal_bkpt_check_status)
1006 (internal_bkpt_print_it, internal_bkpt_print_mention)
1007 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1008 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1009 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1010 (momentary_bkpt_print_recreate): New.
1011 (momentary_breakpoint_ops): New.
1013 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1015 Implement most breakpoint_ops methods for all breakpoint types,
1016 and move the default handlings to the proper callbacks.
1018 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1019 works_in_software_mode method.
1020 (insert_bp_location): Go through breakpoint_ops->insert_location
1021 for software and hardware watchpoints.
1022 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1024 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1025 for software and hardware watchpoints.
1026 (print_it_typical): Delete.
1027 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1029 (watchpoint_check): Adjust comment.
1030 (bpstat_check_location): Simply always call the breakpoint's
1031 breakpoint_hit method.
1032 (bpstat_stop_status): Always call the breakpoint's check_status
1033 method. Remove special cases for watchpoints and internal event
1034 breakpoints from here (moved to the check_status implementations).
1035 (print_one_breakpoint_location): Assume b->ops is never NULL.
1036 Remove static tracepoint marker id printing from here (moved to
1037 the print_one_detail callback implementation of tracepoints).
1038 (init_bp_location): Assert OPS is never NULL.
1039 (allocate_bp_location): Always call the breakpoint's
1040 allocate_location method, and remove the default code from here.
1041 (free_bp_location): Always call the location's dtor method, and
1042 remove the default code from here.
1043 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1044 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1045 parameter. Pass it down.
1046 (set_raw_breakpoint): Ditto.
1047 (print_it_catch_fork): Adjust to take a bpstat as argument.
1048 (catch_fork_breakpoint_ops): Install methods.
1049 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1050 (catch_vfork_breakpoint_ops): Install methods.
1051 (dtor_catch_syscall): Call the base dtor.
1052 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1053 (catch_syscall_breakpoint_ops): Install methods.
1054 (dtor_catch_exec): Call the base dtor.
1055 (print_it_catch_exec): Adjust to take a bpstat as argument.
1056 (catch_exec_breakpoint_ops): Install methods.
1057 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1058 the breakpoint's resources_needed method, and remove the default
1060 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1062 (clone_momentary_breakpoint): Clone the original's ops.
1063 (mention): Always call the breakpoint's print_mention method, and
1064 remove the default code from here.
1065 (create_breakpoint_sal): Adjust to pass the ops to
1066 set_raw_breakpoint rather than setting it manually.
1067 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1068 ops to set_raw_breakpoint_without_location rather than setting it
1070 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1071 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1072 (ranged_breakpoint_ops): Install methods.
1073 (break_range_command): Adjust to pass the ops to
1074 set_raw_breakpoint rather than setting it manually.
1075 (re_set_watchpoint, breakpoint_hit_watchpoint)
1076 (check_status_watchpoint, resources_needed_watchpoint)
1077 (works_in_software_mode_watchpoint, print_it_watchpoint)
1078 (print_mention_watchpoint, print_recreate_watchpoint): New
1080 (watchpoint_breakpoint_ops): Install new methods.
1081 (print_it_masked_watchpoint): New function.
1082 (masked_watchpoint_breakpoint_ops): Install new methods.
1083 (watch_command_1): Adjust to pass the right breakpoint_ops to
1084 set_raw_breakpoint_without_location rather than setting it
1085 manually later. Record the current pspace.
1086 (print_it_exception_catchpoint): Adjust to take a bpstat as
1088 (gnu_v3_exception_catchpoint_ops): Install new methods.
1089 (say_where): New function.
1090 (null_re_set, null_check_status, null_works_in_software_mode)
1091 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1093 (bp_location_ops): New global.
1094 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1095 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1096 (bkpt_check_status, bkpt_resources_needed)
1097 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1098 (bkpt_print_recreate): New functions.
1099 (bkpt_breakpoint_ops): New global.
1100 (tracepoint_re_set, tracepoint_insert_location)
1101 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1102 (tracepoint_check_status, tracepoint_works_in_software_mode)
1103 (tracepoint_print_it, tracepoint_print_one_detail)
1104 (tracepoint_print_mention, tracepoint_print_recreate): New
1106 (tracepoint_breakpoint_ops): New global.
1107 (delete_breakpoint): Always call the breakpoint's dtor method, and
1108 remove the default handling from here.
1109 (breakpoint_re_set_default): Make static.
1110 (breakpoint_re_set_one): Always call the breakpoints re_set
1111 method, and remove the default handling from here.
1112 (trace_command, ftrace_command, strace_command)
1113 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1114 to create_breakpoint.
1115 (save_breakpoints): Always call the breakpoint's print_recreate
1116 method, and remove the default handling from here.
1118 * ada-lang.c (dtor_exception): Call the base dtor.
1119 (re_set_exception): Call the base method.
1120 (print_it_exception, print_it_catch_exception): Adjust to take a
1122 (catch_exception_breakpoint_ops): Install methods.
1123 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1125 (catch_exception_unhandled_breakpoint_ops): Install methods.
1126 (print_it_catch_assert): Adjust to take a bpstat as argument.
1127 (catch_assert_breakpoint_ops): Install methods.
1129 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1130 to take a bpstat as argument.
1131 (enum print_stop_action): Add describing comments to each enum
1133 (breakpoint_re_set_default): Delete declaration.
1134 (null_re_set, null_works_in_software_mode, null_resources_needed)
1135 (null_check_status, null_print_one_detail): Declare.
1136 (bkpt_breakpoint_ops): Declare.
1137 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1138 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1139 (bkpt_check_status, bkpt_resources_needed)
1140 (bkpt_works_in_software_mode, bkpt_print_it)
1141 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1144 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1145 bkpt_breakpoint_ops.
1146 * python/py-breakpoint.c (bppy_init): Ditto.
1148 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1150 * MAINTAINERS (Write After Approval): Add myself to the list.
1152 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1154 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1156 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1158 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1159 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1160 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1162 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1163 (struct i386_debug_reg_state): New.
1164 (i386_init_dregs): New.
1166 (i386_cleanup_dregs): Use i386_init_dregs.
1167 (i386_show_dr): Add state parameter and adjust.
1168 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1170 (i386_remove_aligned_watchpoint): Likewise.
1171 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1172 (i386_update_inferior_debug_regs): New.
1173 (i386_insert_watchpoint): Work on a local mirror of the debug
1174 registers, and only update the inferior on success.
1175 (i386_remove_watchpoint): Ditto.
1176 (i386_region_ok_for_watchpoint): Adjust.
1177 (i386_stopped_data_address): Adjust.
1178 (i386_insert_hw_breakpoint): Adjust.
1179 (i386_remove_hw_breakpoint): Adjust.
1181 2011-07-22 Tom Tromey <tromey@redhat.com>
1183 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1184 from amd64_pseudo_register_read. Change arguments. Call
1185 mark_value_bytes_unavailable when needed.
1186 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1187 set_gdbarch_pseudo_register_read.
1188 * sentinel-frame.c (sentinel_frame_prev_register): Use
1189 regcache_cooked_read_value.
1190 * regcache.h (regcache_cooked_read_value): Declare.
1191 * regcache.c (regcache_cooked_read_value): New function.
1192 (regcache_cooked_read): Call
1193 gdbarch_pseudo_register_read_value if available.
1194 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1195 (i386_pseudo_register_read): Remove.
1196 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1197 i386_pseudo_register_read. Change arguments. Call
1198 mark_value_bytes_unavailable when needed.
1199 (i386_pseudo_register_read_value): New function.
1200 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1201 not set_gdbarch_pseudo_register_read.
1202 * gdbarch.sh (pseudo_register_read_value): New method.
1203 * gdbarch.c, gdbarch.h: Rebuild.
1204 * findvar.c (value_from_register): Call get_frame_register_value.
1206 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1208 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1210 (display_gdb_prompt): Likewise.
1211 (change_annotation_level): Likewise.
1212 (push_prompt): Likewise.
1213 (pop_prompt): Likewise.
1214 (handle_stop_sig): Use get_prompt with a level.
1215 * top.c (command_loop): Use get_prompt with a level.
1216 (set_async_annotation_level): Use set_prompt with a level.
1217 (get_prefix): New function.
1218 (set_prefix): Ditto.
1219 (set_suffix): Ditto.
1220 (get_suffix): Ditto.
1221 (get_prompt): Accept a level argument.
1222 (set_prompt): Accept a level argument. Free old prompts. Set
1223 new_async_prompt if level is 0.
1224 (init_main): Use set_prompt with a level. Do not set
1226 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1227 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1228 Modify set_prompt, get_prompt to account for levels.
1229 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1231 * python/python.c (before_prompt_hook): Use set_prompt.
1233 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1235 * defs.h: Add guard against inclusion in gdbserver.
1236 (struct ptid, ptid_t): Move to common/ptid.h.
1237 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1238 xsnprintf, internal_error): Move to common/common-utils.h.
1240 * gdb_assert.h: Move into common/ sub-directory.
1241 * gdb_locale.h: Ditto.
1242 * gdb_dirent.h: Ditto.
1243 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1244 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1245 Move into common/ptid.h.
1246 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1247 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1248 Change nomem to malloc_failure.
1249 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1250 * utils.c (nomem): Rename to malloc_failure.
1251 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1252 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1253 (gdb_buildargv): Change nomem to malloc_failure.
1254 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1255 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1256 ptid_is_pid): Move into common/ptid.c.
1257 (initialize_infrun): Delete initialization of null_ptid and
1259 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1260 linux_common_xfer_osdata.
1261 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1262 common/ptid.c and common/buffer.c.
1263 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1264 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1265 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1266 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1268 * common/gdb_assert.h: New.
1269 * common/gdb_dirent.h: New.
1270 * common/gdb_locale.h: New.
1271 * common/buffer.c: New.
1272 * common/buffer.h: New.
1273 * common/ptid.c: New.
1274 * common/ptid.h: New.
1275 * common/xml-utils.c: New.
1276 * common/xml-utils.h: New.
1277 * common/common-utils.c: New.
1278 * common/common-utils.h: New.
1279 * common/linux-osdata.c: New.
1280 * common/linux-osdata.h: New.
1281 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1282 * config/arm/linux.mh (NATDEPFILES): Ditto.
1283 * config/i386/linux.mh (NATDEPFILES): Ditto.
1284 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1285 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1286 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1287 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1288 * config/mips/linux.mh (NATDEPFILES): Ditto.
1289 * config/pa/linux.mh (NATDEPFILES): Ditto.
1290 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1291 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1292 * config/s390/s390.mh (NATDEPFILES): Ditto.
1293 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1294 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1295 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1297 2011-07-21 Matt Rice <ratmice@gmail.com>
1299 * NEWS: Add info macros and info definitions commands.
1301 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1303 * NEWS: Document Python prompt substitution hook.
1305 2011-07-18 Matt Rice <ratmice@gmail.com>
1308 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1309 * macrotab.c (foreach_macro): Ditto.
1310 (foreach_macro_in_scope): Ditto.
1311 * macrocmd.c (print_macro_callback): New function.
1312 (info_macro_command): Move some code to print_macro_definition.
1313 (print_macro_definition): New function.
1314 (print_one_macro): Add new arguments to callback.
1315 (info_definitions_command): New function.
1316 (info_macros_command): Ditto.
1317 (_initialize_macrocmd): Add info macros and info definitions commands.
1318 * symtab.c (add_macro_name): Add new arguments to callback.
1320 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1321 Tom Tromey <tromey@redhat.com>
1323 * top.c (set_prompt): Rewrite to free previous prompt, free
1324 asynch_new_prompt and set both on new prompts.
1325 * event-top.c (display_gdb_prompt): Add prompt substitution
1327 * python/python.c (before_prompt_hook): New function.
1329 2011-07-20 Matt Rice <ratmice@gmail.com>
1331 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1332 arguments to store_unsigned_integer.
1334 2011-07-20 Tom Tromey <tromey@redhat.com>
1336 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1337 in some declaration-only cases.
1339 2011-07-18 Tom Tromey <tromey@redhat.com>
1342 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1343 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1344 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1345 <debug_type_section>: New field.
1346 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1347 (load_cu): Use appropriate section.
1348 (create_signatured_type_table_from_index): Add 'section'
1350 (dwarf2_read_index): Only allow a single .debug_types section.
1351 (dw2_get_file_names): Use appropriate section.
1352 (read_type_comp_unit_head): Add 'section' argument.
1353 (create_debug_types_hash_table): Loop over all .debug_types
1355 (init_cu_die_reader): Use appropriate section.
1356 (process_psymtab_comp_unit, load_partial_comp_unit)
1357 (load_full_comp_unit, read_die_and_children, find_partial_die)
1358 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1359 (lookup_signatured_type_at_offset): Add 'section' argument.
1360 (read_signatured_type_at_offset): Add 'sect' argument.
1361 (read_signatured_type): Use appropriate section.
1362 (set_die_type, get_die_type_at_offset): Update.
1363 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1365 (write_psymtabs_to_index): Don't allow index with more than one
1366 .debug_types section.
1368 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1370 Fix crash if referenced CU is aged out.
1371 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1372 xfree of block.data.
1373 (indirect_pieced_value): New variable back_to, use to for xfree of
1375 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1377 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1378 (load_cu): New function from ...
1379 (dw2_do_instantiate_symtab): ... the code here ...
1380 (process_full_comp_unit): ... and here.
1381 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1384 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1386 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1389 2011-07-19 Gary Benson <gbenson@redhat.com>
1391 * infrun.c (struct execution_control_state): New member
1392 stop_func_filled_in.
1393 (clear_stop_func, fill_in_stop_func): New functions.
1394 (handle_inferior_event): Call clear_stop_func rather than
1395 manipulating the execution control state directly.
1396 Call fill_in_stop_func lazily as required rather than
1397 directly calling find_pc_partial_function in all cases.
1399 2011-07-18 Tom Tromey <tromey@redhat.com>
1401 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1402 checking for variable-sized array.
1404 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1406 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1407 of supported languages.
1408 * varobj.c: Add top definitions and basic implementation of the
1409 following callbacks: ada_number_of_children, ada_name_of_variable,
1410 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1411 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1412 (languages): Register Ada-specific callbacks.
1413 (variable_language): Add the Ada case in the language setter switch.
1415 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1417 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1419 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1422 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1423 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1424 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1425 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1426 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1427 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1428 (struct dwarf_expr_context_funcs): New, move here methods from ...
1429 (struct dwarf_expr_context): ... here. New fields funcs.
1430 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1431 (dwarf_expr_ctx_funcs): New.
1432 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1433 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1434 (needs_frame_ctx_funcs): New.
1435 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1437 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1439 * MAINTAINERS (Write After Approval): Add myself to the list.
1441 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1443 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1444 that CIE pointer of an FDE really points to a CIE .
1446 2011-07-15 Hui Zhu <teawater@gmail.com>
1448 * remote.c (remote_get_trace_status): Add comments.
1450 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1452 Code cleanup - constify struct lval_funcs.
1453 * dwarf2loc.c (pieced_value_funcs): Make it const.
1454 * infrun.c (siginfo_value_funcs): Likewise.
1455 * opencl-lang.c (opencl_value_funcs): Likewise.
1456 * valops.c (value_assign, value_ind): Make the funcs variable const.
1457 * value.c (struct value): Make location.computed.funcs target const.
1458 Rearrange the comments.
1459 (allocate_computed_value): Make the funcs parameter target const.
1460 (value_computed_funcs): Return the funcs target const.
1461 (value_free, value_copy, set_value_component_location): Make the funcs
1463 * value.h (allocate_computed_value): Make the funcs parameter target
1465 (value_computed_funcs): Return the funcs target const.
1466 * windows-tdep.c (tlb_value_funcs): Make it const.
1468 2011-07-14 Hui Zhu <teawater@gmail.com>
1470 * remote.c (remote_get_trace_status): Initialize p.
1472 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1475 * remote.c (remote_get_trace_status): New variable ex. Put
1476 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1478 2011-07-13 Tom Tromey <tromey@redhat.com>
1480 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1481 value_from_contents for final conversion.
1483 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1486 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1487 Indent prototypes so they do not get into tags.
1489 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1491 Code cleanup making also optimized out values lazy.
1492 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1493 allocate_optimized_out_value. Twice.
1494 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1495 * findvar.c (read_var_value): Likewise.
1496 * value.c (allocate_optimized_out_value): New function.
1497 * value.h (allocate_optimized_out_value): New declaration.
1499 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1501 Fix occasional crash of CTRL-C during DWARF read in.
1502 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1504 2011-07-11 Tom Tromey <tromey@redhat.com>
1506 * regcache.c (struct regcache_descr): Fix typo.
1507 * i387-tdep.c (i387_supply_xsave): Fix typo.
1509 2011-07-11 Tom Tromey <tromey@redhat.com>
1511 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1512 (read_file_scope, read_type_unit_scope): Use it.
1514 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1516 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1519 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1522 * python/python.c: Set gdbpy_should_print_stack default to off.
1523 (set_python): Deprecate maint set python print-stack to
1525 (_initialize_python): Deprecate maint set/show python print-stack.
1526 Add new prefix command, python. Add new setting, print-backtrace.
1527 * NEWS: Document set python print-stack. Document default change.
1529 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1531 * python/py-inferior.c (infpy_dealloc): New function.
1532 (inferior_to_inferior_object): Return a new object, or a
1533 new reference to the existing object.
1534 (find_thread_object): Cleanup references to inferior.
1535 (delete_thread_object): Ditto.
1536 * python/py-infthread.c (create_thread_object): Do not increment
1537 inferior reference count.
1539 2011-07-08 Tom Tromey <tromey@redhat.com>
1541 * dwarf2loc.c (locexpr_regname): New function.
1542 (locexpr_describe_location_piece): Use it.
1543 (disassemble_dwarf_expression): Add per_cu argument. Use
1545 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1546 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1548 (locexpr_describe_location_1): Add per_cu argument.
1549 (locexpr_describe_location): Update.
1550 (loclist_describe_location): Update.
1552 2011-07-08 Tom Tromey <tromey@redhat.com>
1554 * dwarf2expr.c (execute_stack_op): Add QUIT.
1556 2011-07-07 Hui Zhu <teawater@gmail.com>
1559 2011-07-06 Hui Zhu <teawater@gmail.com>
1560 * remote.c (remote_start_remote): Add TRY_CATCH for
1561 remote_get_trace_status.
1562 * tracepoint.c (disconnect_tracing): Ditto.
1564 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1566 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1567 variables as signed, not unsigned.
1569 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1571 * jit.c (jit_inferior_init): Reformat forward declaration.
1573 2011-07-06 Matt Rice <ratmice@gmail.com>
1575 * MAINTAINERS (Write After Approval): Add myself to the list.
1577 2011-07-06 Hui Zhu <teawater@gmail.com>
1579 * remote.c (remote_start_remote): Add TRY_CATCH for
1580 remote_get_trace_status.
1581 * tracepoint.c (disconnect_tracing): Ditto.
1583 2011-07-05 Tom Tromey <tromey@redhat.com>
1585 * symtab.c (operator_chars): Now static.
1586 * linespec.c (operator_chars): Don't declare.
1588 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1590 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1592 2011-07-05 Tom Tromey <tromey@redhat.com>
1594 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1595 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1596 (TYPE_CPLUS_REALLY_JAVA): New macro.
1597 * dwarf2read.c (process_structure_scope): Set
1598 TYPE_CPLUS_REALLY_JAVA.
1600 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1602 * ada-lang.c: Fix typos.
1603 * amd64-tdep.c: Likewise.
1604 * breakpoint.c: Likewise.
1605 * cli/cli-decode.c: Likewise.
1606 * findcmd.c: Likewise.
1607 * inline-frame.c: Likewise.
1608 * mi/mi-main.c: Likewise.
1609 * minsyms.c: Likewise.
1610 * monitor.c: Likewise.
1611 * monitor.h: Likewise.
1612 * prologue-value.c: Likewise.
1613 * reverse.c: Likewise.
1614 * s390-tdep.c: Likewise.
1616 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1618 * jit.c (jit_inferior_init): Forward declare.
1619 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1621 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1623 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1625 2011-07-04 Tristan Gingold <gingold@adacore.com>
1627 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1628 (tcb_fieldno): Add activation_link field.
1629 (get_known_tasks_addr): Moved and rewritten.
1630 (get_tcb_types_info): Set activation_link field.
1631 (read_known_tasks_array): Add parameter. Rewritten.
1632 (read_known_tasks_list): New function.
1633 (read_known_tasks): New function.
1634 (ada_build_task_list): Call read_known_tasks instead of
1635 read_known_tasks_array.
1636 * ravenscar-thread.c: Add first_task_name constant.
1637 (has_ravenscar_runtime): Check for task list too.
1639 2011-07-04 Tristan Gingold <gingold@adacore.com>
1641 * ada-tasks.c: Renames fieldno to actb_fieldno.
1642 (ada_get_task_number): Indentation.
1643 (get_tcb_types_info): Remove all parameters. Write directly
1645 (ptid_from_atcb_common): Adjust.
1646 (read_atcb): Adjust.
1648 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1650 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1652 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1654 * ui-out.c (ui_out_field_core_addr): Mention that the function
1655 description is in the header file.
1656 * ui-out.h (ui_out_field_core_addr): Document function.
1658 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1660 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1661 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1663 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1665 * symtab.c (expand_line_sal): Remove empty line.
1667 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1669 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1670 same way as ELFOSABI_NONE.
1671 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1673 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1675 * breakpoint.c: Fix typos in comments.
1676 * linespec.c: Likewise.
1677 * symtab.c: Likewise.
1679 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1681 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1682 section in separate object files.
1684 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1686 Fix false GCC warning.
1687 * linespec.c (decode_line_1): Initialize values.
1689 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1691 * linespec.c (find_method): Accept the function type automatically only
1692 if it was specified with parameter types.
1694 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1696 Stop on first linespec terminator instead of eating what we can.
1697 * linespec.c (is_linespec_boundary): New function.
1698 (name_end): Remove function.
1699 (keep_name_info): New parameter on_boundary, replace the body.
1700 (decode_line_1): Provide the parameter to keep_name_info.
1701 (decode_compound): Likewise. Drop the trailing java return type
1704 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1706 Fall back linespec to minimal symbols.
1707 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1708 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1709 (find_method, symbol_found): Change error to cplusplus_error.
1711 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1713 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1715 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1716 Tom Tromey <tromey@redhat.com>
1718 * dwarf2read.c (check_physname): New variable.
1719 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1720 (show_check_physname): New function.
1721 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1723 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1725 * machoread.c (macho_symfile_read): Delete OBE comment.
1727 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1729 * machoread.c (struct macho_oso_data): Delete.
1730 (current_oso): Delete.
1731 (macho_relocate_common_syms): New function, mostly extracted
1733 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1734 Remove code that sets and unset current_oso.
1735 (macho_symfile_relocate): Delete handling of common symbols,
1736 now moved to macho_relocate_common_syms.
1738 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1740 * darwin-nat.c (darwin_ptrace): Add documentation.
1741 Set errno to zero before calling ptrace. If ptrace returns
1742 -1 and errno is zero, then change then return zero.
1743 (darwin_kill_inferior): Issue a warning instead of triggering
1744 a failed assertion when the PT_KILL ptrace operations returned
1747 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1749 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1750 only when inf->private->no_ptrace.
1752 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1754 * ada-lang.c (print_it_exception): Print temporary catchpoints
1755 as "Temporary catchpoint".
1756 (print_mention_exception): Likewise.
1758 2011-07-01 Tom Tromey <tromey@redhat.com>
1760 * jv-lang.c (java_language_defn): Use java_printchar,
1762 (java_get_encoding): New function.
1763 (java_emit_char): Use generic_emit_char.
1764 (java_printchar): New function.
1765 (java_printstr): Likewise.
1767 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1769 * ada-typeprint.c (print_record_type): If unable to decode
1770 the name of the parent type, use the encoded name.
1772 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1774 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1775 pointer to constrained packed array type output.
1776 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1777 packed array output.
1779 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1781 * ada-typeprint.c (print_array_type): removed if condition on show
1782 being negative for bounds printing.
1784 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1786 * ada-lang.c (ada_identical_enum_types_p): New function.
1787 (symbols_are_identical_enums): New function.
1788 (remove_extra_symbols): Do nothing if NSYMS < 2.
1789 Use symbols_are_identical_enums.
1791 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1793 * ada-valprint.c (ada_value_print): Handle typedefs.
1795 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1797 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1799 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1801 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1802 (decode_constrained_packed_array): Likewise.
1803 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1805 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1807 * ada-exp.y (convert_char_literal): Handle typedef types.
1809 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1811 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1813 2011-06-30 Tom Tromey <tromey@redhat.com>
1815 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1816 * valops.c (find_overload_match): Call do_cleanups on early exit
1818 * solib.c (solib_find): Call do_cleanups on early exit path.
1820 2011-06-30 Tom Tromey <tromey@redhat.com>
1822 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1823 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1824 return paths. Defer final do_cleanups until last return.
1825 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1828 2011-06-30 Tom Tromey <tromey@redhat.com>
1830 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1832 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1834 * MAINTAINERS (Write After Approval): Add myself to the list.
1836 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1838 Disable epilogue unwinders on recent GCCs.
1839 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1840 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1841 * dwarf2read.c (process_full_comp_unit): Initialize
1842 EPILOGUE_UNWIND_VALID.
1843 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1844 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1845 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1847 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1849 Code cleanup - reformatting.
1850 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1851 (producer_is_gcc_ge_4): ... here, change the return value.
1852 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1855 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1857 Fix non-only rename list for Fortran modules import.
1858 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1859 cp_add_using_directive caller.
1860 (cp_add_using_directive): New parameter excludes, describe it. New
1861 variables ix and param. Compare if also excludes match. Allocate NEW
1862 with variable size, initialize EXCLUDES there.
1863 (cp_lookup_symbol_imports): New variable excludep, test
1864 current->EXCLUDES with it.
1865 * cp-support.h: Include vec.h.
1866 (struct using_direct): New field excludes, describe it.
1867 (DEF_VEC_P (const_char_ptr)): New.
1868 (cp_add_using_directive): New parameter excludes.
1869 * defs.h (const_char_ptr): New typedef.
1870 * dwarf2read.c (read_import_statement): New variables child_die,
1871 excludes and cleanups, read in excludes.
1872 (read_namespace): Adjust the cp_add_using_directive caller.
1874 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1877 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1878 negative comparisons.
1880 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
1882 * mi/mi-main.c (mi_cmd_list_features): Emit
1883 breakpoint-notifications.
1885 2011-06-29 Tom Tromey <tromey@redhat.com>
1888 * valprint.h (generic_emit_char, generic_printstr): Declare.
1889 * valprint.c (wchar_printable, append_string_as_wide)
1890 (print_wchar): Move from c-lang.c.
1891 (generic_emit_char): New function; mostly taken from c_emit_char.
1892 (generic_printstr): New function; mostly taken from c_printstr.
1893 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1894 represented as arrays.
1895 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1897 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1898 identically to TYPE_CODE_INT.
1899 * f-lang.c (f_get_encoding): New function.
1900 (f_emit_char): Use generic_emit_char.
1901 (f_printchar): Replace comment.
1902 (f_printstr): Use generic_printstr.
1903 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1904 "character" types specially.
1905 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1907 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1909 (c_emit_char): Call generic_emit_char.
1910 (c_printstr): Call generic_printstr.
1912 2011-06-29 Gary Benson <gbenson@redhat.com>
1914 * breakpoint.c (bpstat_what): Removed duplicated case.
1916 2011-06-28 Tom Tromey <tromey@redhat.com>
1918 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
1920 2011-06-27 Tom Tromey <tromey@redhat.com>
1922 * valops.c (find_overload_match): Call do_cleanups before early
1924 * top.c (execute_command): Call do_cleanups before early return.
1925 (command_loop): Likewise.
1926 * stack.c (backtrace_command): Make a null cleanup early. Don't
1927 conditionally call do_cleanups.
1928 * python/py-value.c (TRY_CATCH): Move cleanup handling into
1930 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
1931 so cleanups are always run.
1932 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
1933 * findcmd.c (parse_find_args): Call do_cleanups on early return
1935 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
1936 Don't conditionally call do_cleanups.
1937 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
1940 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1942 * MAINTAINERS (Write After Approval): Use default email address.
1944 2011-06-27 Joel Brobecker <brobecker@adacore.com>
1946 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
1948 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1950 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
1951 saved_regs_mask and copied_regs_mask fields.
1952 (sparc_record_save_insn): New prototype.
1953 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
1954 (sparc_record_save_insn): New function.
1955 (sparc_analyze_prologue): Add head comment. Recognize store insns
1956 of call-saved registers. Use OFFSET consistently. Recognize flat
1957 frames and cache their settings.
1958 (sparc32_skip_prologue): Handle flat frames.
1959 (sparc_frame_cache): Add frame_offset to the base address.
1960 (sparc32_frame_cache): Adjust to new frame description.
1961 (sparc32_frame_prev_register): Likewise.
1962 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1963 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1964 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1965 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
1966 frame by calling sparc_record_save_insn.
1967 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1968 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1969 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1971 2011-06-27 Tristan Gingold <gingold@adacore.com>
1973 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
1974 field by map_addr and map_len.
1975 (dwarf2_read_section): Adjust for the new bfd_mmap api.
1976 (munmap_section_buffer): Likewise.
1978 2011-06-24 Tom Tromey <tromey@redhat.com>
1980 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
1981 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1982 * python/python.c (gdbpy_parameter): Make 'arg' const.
1983 (execute_gdb_command): Likewise.
1984 (gdbpy_decode_line): Likewise. Copy it.
1985 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
1986 (gdbpy_write): Make 'arg' const.
1987 * python/py-type.c (typy_lookup_typename): Make 'type_name'
1989 (gdbpy_lookup_type): Likewise.
1990 * python/py-prettyprint.c (print_children): Make 'name' const.
1991 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
1992 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
1994 * python/py-function.c (fnpy_init): Make 'name' const.
1995 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
1996 (gdbpy_string_to_argv): Make 'input' const.
1997 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
1999 * gdbtypes.h (lookup_typename): Update.
2000 * gdbtypes.c (lookup_typename): Make 'name' const.
2001 (lookup_struct): Likewise.
2002 (lookup_union): Likewise.
2003 (lookup_enum): Likewise.
2005 2011-06-24 Tom Tromey <tromey@redhat.com>
2007 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2008 gdb_thread_db.h. Move all common/ entries to be together.
2009 (TAGS): Don't depend on DEPFILES.
2011 2011-06-23 Yao Qi <yao@codesourcery.com>
2013 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2014 * remote.c (remote_start_remote): ... here.
2015 * monitor.c (monitor_open): ... here.
2017 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2019 * gdbtypes.c (append_composite_type_field_aligned): Fix
2020 calculation of bit position based on alignment.
2022 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2024 * breakpoint.c (bpstat_stop_status): Call the check_status
2025 breakpoint_ops method.
2026 (print_one_breakpoint_location): Also print the condition for Ada
2027 exception catchpoints.
2028 (allocate_bp_location): New, factored out from
2029 allocate_bp_location.
2030 (allocate_bp_location): Adjust. Call the owner breakpoint's
2031 allocate_location method, if there is one.
2032 (free_bp_location): Call the locations's dtor method, if there is
2034 (init_raw_breakpoint_without_location): New breakpoint_ops
2036 (set_raw_breakpoint_without_location): Adjust.
2037 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2038 (set_raw_breakpoint): Adjust.
2039 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2040 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2041 re_set and check_status methods.
2042 (init_catchpoint): Don't memset, initialize thread, addr_string
2043 and enable_state. Pass the ops down to init_raw_breakpoint.
2044 (install_catchpoint): Rename to ...
2045 (install_breakpoint): ... this, and make extern.
2046 (create_fork_vfork_event_catchpoint): Adjust.
2047 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2048 re_set and check_status methods.
2049 (create_syscall_event_catchpoint): Adjust.
2050 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2051 (masked_watchpoint_breakpoint_ops): Install NULL
2052 allocate_location, re_set and check_status methods.
2053 (catch_exec_command_1): Adjust.
2054 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2055 re_set and check_status methods.
2056 (create_ada_exception_breakpoint): Rename to ...
2057 (init_ada_exception_breakpoint): ... this. Add a struct
2058 breakpoint parameter, and delete the exp_string, cond_string and
2059 cond parameters. Use init_raw_breakpoint, and don't install or
2060 mention the breakpoint yet. Don't clear breakpoint fields that
2061 init_raw_breakpoint already clears.
2062 (re_set_breakpoint): Delete, split into ...
2063 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2065 (breakpoint_re_set_one): Call the breakpoint's
2066 breakpoint_ops->re_set implementation, if there's one. Adjust.
2067 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2068 (struct bp_location_ops): New type.
2069 (struct bp_location): New field `ops'.
2070 (struct breakpoint_ops): New `allocate_location', `re_set' and
2071 `check_status' fields. Make `breakpoint_hit''s description match
2073 (init_bp_location): Declare.
2074 (breakpoint_re_set_default): Declare.
2075 (create_ada_exception_breakpoint): Rename to ...
2076 (init_ada_exception_breakpoint): ... this. Add a struct
2077 breakpoint parameter, and delete the exp_string, cond_string and
2079 (install_breakpoint): Declare.
2080 * ada-lang.c: Include exceptions.h.
2081 <Ada exceptions description>: Update.
2082 (struct ada_catchpoint_location): New type.
2083 (ada_catchpoint_location_dtor): New function.
2084 (ada_catchpoint_location_ops): New global.
2085 (ada_catchpoint): New type.
2086 (create_excep_cond_exprs): New function.
2087 (dtor_exception, allocate_location_exception, re_set_exception)
2088 (should_stop_exception, check_status_exception): New functions.
2089 (print_one_exception, print_mention_exception)
2090 (print_recreate_exception): Adjust.
2091 (dtor_catch_exception, allocate_location_catch_exception)
2092 (re_set_catch_exception, check_status_catch_exception): New
2094 (catch_exception_breakpoint_ops): Install them.
2095 (dtor_catch_exception_unhandled)
2096 (allocate_location_catch_exception_unhandled)
2097 (re_set_catch_exception_unhandled)
2098 (check_status_catch_exception_unhandled): New functions.
2099 (catch_exception_unhandled_breakpoint_ops): Install them.
2100 (dtor_catch_assert, allocate_location_catch_assert)
2101 (re_set_catch_assert, check_status_catch_assert): New functions.
2102 (catch_assert_breakpoint_ops): Install them.
2103 (ada_exception_catchpoint_p): Delete.
2104 (catch_ada_exception_command_split)
2105 (ada_exception_catchpoint_cond_string): Rename exp_string
2106 parameter to excep_string. Adjust.
2107 (ada_parse_catchpoint_condition): Delete.
2108 (ada_exception_sal): Rename the exp_string parameter to
2109 excep_string. Delete the cond_string and cond parameters.
2111 (ada_decode_exception_location): Rename the exp_string parameter
2112 to excep_string. Delete the cond_string and cond parameters.
2114 (create_ada_exception_catchpoint): New function.
2115 (catch_ada_exception_command, ada_decode_assert_location)
2116 (catch_assert_command): Adjust.
2117 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2119 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2121 * ada-lang.c: Include arch-utils.h.
2122 (ada_decode_exception_location): Make static.
2123 (catch_ada_exception_command): Moved here from breakpoint.c.
2124 (ada_decode_assert_location): Make static.
2125 (catch_assert_command): Moved here from breakpoint.c.
2126 (_initialize_ada_lang): Install the exception and assert
2127 catchpoint commands here.
2128 * ada-lang.h (ada_decode_exception_location)
2129 (ada_decode_assert_location): Delete declarations.
2130 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2132 (create_ada_exception_breakpoint): Make extern.
2133 (catch_ada_exception_command, catch_assert_command): Moved to
2135 (add_catch_command): Make extern.
2136 (_initilize_breakpoint): Don't install the exception and assert
2137 catchpoint commands here.
2138 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2140 (add_catch_command, create_ada_exception_breakpoint): Declare.
2142 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2144 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2145 the breakpoint to the breakpoint chain here.
2146 (set_raw_breakpoint_without_location): Add the breakpoint to the
2147 breakpoint chain here.
2148 (init_raw_breakpoint): Adjust comments.
2149 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2151 (init_catchpoint): Don't set the catchpoint's breakpoint number
2153 (install_catchpoint): New function.
2154 (create_fork_vfork_event_catchpoint)
2155 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2156 use install_catchpoint.
2158 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2160 * breakpoint.c (create_catchpoint_without_mention)
2161 (create_catchpoint): Delete.
2163 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2165 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2166 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2167 reference to exec_pathname.
2168 (struct exec_catchpoint): New type.
2169 (dtor_catch_exec): New function.
2170 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2171 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2172 (catch_exec_command_1): Adjust to use init_catchpoint.
2173 (delete_breakpoint): Remove reference to exec_pathname.
2175 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2177 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2178 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2179 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2180 reference to syscalls_to_be_caught.
2181 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2183 (struct syscall_catchpoint): New type.
2184 (dtor_catch_syscall): New function.
2185 (insert_catch_syscall, remove_catch_syscall)
2186 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2187 (print_recreate_catch_syscall): Adjust.
2188 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2189 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2190 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2191 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2192 (masked_watchpoint_breakpoint_ops)
2193 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2194 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2195 there is one. Remove references to syscalls_to_be_caught.
2196 (catching_syscall_number): Adjust.
2197 * ada-lang.c (catch_exception_breakpoint_ops)
2198 (catch_exception_unhandled_breakpoint_ops)
2199 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2201 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2203 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2205 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2206 reference to forked_inferior_pid.
2207 (struct fork_catchpoint): New type.
2208 (breakpoint_hit_catch_fork, print_it_catch_fork)
2209 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2210 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2211 (create_fork_vfork_event_catchpoint): Adjust to use
2214 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2216 * breakpoint.c (add_to_breakpoint_chain)
2217 (init_raw_breakpoint_without_location): New functions, factored
2219 (set_raw_breakpoint_without_location): ... this one.
2220 (init_raw_breakpoint): New function, factored out from
2221 set_raw_breakpoint and adjusted to use
2222 init_raw_breakpoint_without_location.
2223 (set_raw_breakpoint): Adjust.
2224 (init_catchpoint): New function, factored out from
2225 create_catchpoint_without_mention and adjusted to use
2226 init_raw_breakpoint.
2227 (create_catchpoint_without_mention): Adjust.
2229 2011-06-22 Tom Tromey <tromey@redhat.com>
2231 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2232 argument of 0 specially.
2234 2011-06-22 Yao Qi <yao@codesourcery.com>
2236 * infrun.c (handle_inferior_event): Remove write-only local variable
2237 `sw_single_step_trap_p'.
2239 2011-06-20 Tom Tromey <tromey@redhat.com>
2241 * symtab.c (lookup_language_this): End loop if block is NULL.
2243 2011-06-17 Tom Tromey <tromey@redhat.com>
2245 * valops.c (value_of_this): Use lookup_language_this.
2246 * symtab.h (lookup_language_this): Declare.
2247 * symtab.c (lookup_language_this): New function.
2248 (lookup_symbol_aux): Use lookup_language_this.
2249 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2251 2011-06-17 Tom Tromey <tromey@redhat.com>
2253 * value.h (value_of_this): Update.
2254 (value_of_local): Remove.
2255 * valops.c (value_of_this): Rename from value_of_local. Change
2257 * p-exp.y (exp): Update.
2258 (variable): Likewise.
2259 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2261 2011-06-17 Tom Tromey <tromey@redhat.com>
2263 * valops.c (value_of_local): Complain if NAME is NULL.
2264 * std-operator.def (OP_OBJC_SELF): Remove.
2265 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2266 * objc-exp.y (name_not_typename): Use OP_THIS.
2267 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2269 <OP_OBJC_SELF>: Remove.
2270 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2272 2011-06-16 Tristan Gingold <gingold@adacore.com>
2274 * python/py-events.h (gdb_py_events): Make it extern.
2275 * python/py-evtregistry.c (gdb_py_events): Declare.
2277 2011-06-16 Hui Zhu <teawater@gmail.com>
2279 * remote.c (remote_trace_set_readonly_regions): Add check for
2280 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2283 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2285 * arm-linux-tdep.c: Include "auxv.h".
2287 (ARM_LINUX_SIZEOF_VFP): Define.
2288 (arm_linux_supply_vfp): New function.
2289 (arm_linux_collect_vfp): Likewise.
2290 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2291 (arm_linux_fpa_regset_sections): New variable.
2292 (arm_linux_vfp_regset_sections): Likewise.
2293 (arm_linux_core_read_description): New function.
2294 (arm_linux_init_abi): Install arm_linux_core_read_description and
2295 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2296 appropriate for the architecture.
2297 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2298 (tdesc_arm_with_m): Declare.
2299 (tdesc_arm_with_iwmmxt): Likewise.
2300 (tdesc_arm_with_vfpv2): Likewise.
2301 (tdesc_arm_with_vfpv3): Likewise.
2302 (tdesc_arm_with_neon): Likewise.
2303 * arm-linux-nat.c: Move features/*.c includes ...
2304 * arm-tdep.c: ... here.
2305 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2306 target description data structures ...
2307 * arm-tdep.c (_initialize_arm_tdep): ... here.
2308 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2309 HWCAP_VFPv3D16): Move definitions ...
2310 * arm-linux-tdep.h: ... here.
2312 2011-06-15 Hui Zhu <teawater@gmail.com>
2314 * remote.c (remote_trace_set_readonly_regions): Add a check for
2317 2011-06-14 Tom Tromey <tromey@redhat.com>
2319 * coffread.c (coffread_objfile): Rename from current_objfile.
2320 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2321 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2323 2011-06-14 Tom Tromey <tromey@redhat.com>
2325 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2326 (class_symtab): Remove.
2327 (jv_dynamics_progspace_key): New global.
2328 (jv_per_objfile_free): Reset program space data. Update assert.
2329 Don't clear globals.
2330 (get_dynamics_objfile): Use and set program space data.
2331 (get_java_class_symtab): Use get_dynamics_objfile.
2332 (add_class_symbol): Likewise.
2333 (java_link_class_type): Likewise.
2334 (java_object_type, jv_clear_object_type, set_java_object_type):
2336 (get_java_object_type): Update. Don't cache result.
2337 (is_object_type): Don't call set_java_object_type.
2338 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2339 initialize jv_dynamics_progspace_key.
2341 2011-06-14 Tom Tromey <tromey@redhat.com>
2343 * symtab.h (current_objfile): Don't declare.
2344 * objfiles.h (current_objfile): Don't declare.
2345 * objfiles.c (current_objfile): Remove.
2346 * mdebugread.c (current_objfile): New file-scope global.
2347 * dbxread.c (current_objfile): New file-scope global.
2348 * coffread.c (current_objfile): New file-scope global.
2350 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2352 * top.h (line): Rename to ...
2353 (saved_command_line): ... this.
2354 (linesize): Rename to ...
2355 (saved_command_line_size): ... this.
2356 * top.c (line): Rename to ...
2357 (saved_command_line): ... this.
2358 (linesize): Rename to ...
2359 (saved_command_line_size): ... this.
2360 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2361 * event-top.c (command_line_handler): Adjust.
2362 * main.c (captured_main): Adjust.
2364 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2366 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2367 get_frame_func instead of get_frame_pc to determine the code
2368 address used to construct the frame ID.
2369 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2370 (i386_epilogue_frame_this_id): Likewise.
2371 (i386_epilogue_frame_prev_register): New function.
2372 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2373 (i386_stack_tramp_frame_sniffer): Fix coding style.
2374 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2375 (i386_gdbarch_init): Fix comments.
2377 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2379 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2380 instruction when walking back through the instruction stream.
2382 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2384 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2385 fullname parameters order.
2387 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2390 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2392 * psymtab.c (map_symbol_filenames_psymtab)
2393 (map_partial_symbol_filenames): Likewise.
2394 * psymtab.h: Include symfile.h.
2395 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2396 * symfile.h (symbol_filename_ftype): New.
2397 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2398 map_symbol_filenames, clarify more the naming in comment.
2400 2011-06-07 Doug Evans <dje@google.com>
2402 * cc-with-index.sh: Fix typos in comment.
2403 Look for ../../gdb, for fullname.exp.
2405 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2406 Pedro Alves <pedro@codesourcery.com>
2408 * cli/cli-cmds.c (shell_escape): Use waitpid.
2409 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2411 2011-06-07 Tristan Gingold <gingold@adacore.com>
2413 * xcoffread.c (dwarf2_xcoff_names): New variable.
2414 (aix_process_linenos): Add a guard.
2415 (xcoff_symfile_finish): Free dwarf2.
2416 (xcoff_initial_scan): Add dwarf2 support.
2418 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2420 * infcall.c (run_inferior_call): Don't mask async. Instead force
2421 a synchronous wait, if the target can async.
2423 * target.h (struct target_ops): Delete to_async_mask.
2424 (target_async_mask): Delete.
2425 * target.c (update_current_target): Delete references to to_async_mask.
2426 * linux-nat.c (linux_nat_async_mask_value): Delete.
2427 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2428 to linux_nat_async_mask_value.
2429 (linux_nat_async_mask): Delete.
2430 (linux_nat_async, linux_nat_close): Remove references to
2431 linux_nat_async_mask_value.
2432 * record.c (record_async_mask_value): Delete.
2433 (record_async): Remove references to record_async_mask_value.
2434 (record_async_mask): Delete.
2435 (record_can_async_p, record_is_async_p): Remove references to
2436 record_async_mask_value.
2437 (init_record_ops, init_record_core_ops): Remove references to
2439 * remote.c (remote_async_mask_value): Delete.
2440 (init_remote_ops): Remove reference to remote_async_mask.
2441 (remote_can_async_p, remote_is_async_p): Remove references to
2442 remote_async_mask_value.
2443 (remote_async): Remove references to remote_async_mask_value.
2444 (remote_async_mask): Delete.
2446 * infrun.c (fetch_inferior_event): Don't claim registers changed
2447 if the current thread is already not executing.
2449 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2451 From Stephen Kitt <steve@sk2.org>
2452 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2453 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2455 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2457 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2458 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2460 2011-06-03 Tom Tromey <tromey@redhat.com>
2462 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2464 * python/py-exitedevent.c (create_exited_event_object): Change
2465 type of 'exit_code'. Optionally add exit_code attribute.
2466 (emit_exited_event): Change type of 'exit_code'.
2467 * python/py-event.h (emit_exited_event): Update.
2468 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2469 * infrun.c (handle_inferior_event): Set exit code fields on
2471 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2473 * inferior.c (exit_inferior_1): Initialize new fields.
2475 2011-06-03 Tom Tromey <tromey@redhat.com>
2477 * dwarf2expr.c (get_signed_type): New function.
2478 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2480 2011-06-02 Keith Seitz <keiths@redhat.com>
2482 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2484 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2486 * top.h (simplified_command_loop): Delete declaration.
2488 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2490 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2491 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2493 2011-06-01 Yao Qi <yao@codesourcery.com>
2495 * objfiles.h (obj_section_addr): Update reference to objfile from
2497 (obj_section_endaddr): Likewise.
2499 2011-06-01 Daniel Jacobowitz <drow@false.org>
2501 * MAINTAINERS: Update my email address and affiliation. Also
2502 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2504 2010-05-31 Keith Seitz <keiths@redhat.com>
2507 * linespec.c (get_search_block): New function.
2508 (find_methods): Add FILE_SYMTATB parameter and use it and
2509 get_search_block to pass an appropriate block to
2510 lookup_symbol_in_namespace.
2511 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2512 Check if *ARGPTR starts with a filename first.
2513 If it does, call locate_first_half again to locate the next
2514 "first half" of the linespec.
2515 Pass FILE_SYMTATB to decode_objc and decode_compound.
2516 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2517 (locate_first_half): Stop on the first colon seen.
2518 (decode_compound): Add FILE_SYMTAB parameter.
2519 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2520 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2521 get_search_block with lookup_symbol.
2522 (find_method): Add FILE_SYMTAB parameter and pass it to
2524 (decode_objc): Use get_search_block.
2526 2010-05-31 Keith Seitz <keiths@redhat.com>
2529 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2530 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2531 and CP_ANONYMOUS_NAMESPACE_LEN.
2532 (cp_is_anonymous): Likewise.
2533 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2534 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2535 * dwarf2read.c (namespace_name): Likewise.
2536 (fixup_partial_die): Likewise.
2537 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2538 seen in the input, keep it.
2540 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2542 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2543 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2544 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2545 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2546 * remote.c (_initialize_remote): Register
2547 async_remote_interrupt_twice directly as
2548 sigint_remote_twice_token event.
2550 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2552 * target.h (enum inferior_event_type): Delete INF_ERROR.
2553 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2555 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2557 * interps.c (interp_set): Don't cancel continuations.
2559 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2561 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2563 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2565 * continuations.h (continuation_ftype): Add `err' parameter.
2566 Document parameters.
2567 (do_all_continuations, do_all_continuations_thread)
2568 (do_all_intermediate_continuations)
2569 (do_all_intermediate_continuations_thread)
2570 (do_all_inferior_continuations): Add `err' parameter.
2571 * continuations.c (do_my_continuations_1, do_my_continuations)
2572 (do_all_inferior_continuations, do_all_continuations_ptid)
2573 (do_all_continuations_thread_callback)
2574 (do_all_continuations_thread, do_all_continuations)
2575 (do_all_intermediate_continuations_thread_callback)
2576 (do_all_intermediate_continuations_thread)
2577 (do_all_intermediate_continuations): Add `err' parameter, and pass
2578 it down all the way to the continuations proper.
2579 * inf-loop.c (inferior_event_handler): If fetching an inferior
2580 event throws an error, don't pop the target, and still call the
2581 continuations, but with `err' set. Adjust all other continuation
2583 * breakpoint.c (until_break_command_continuation): Add `err'
2585 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2586 issue another step if `err' is set.
2587 (struct until_next_continuation_args): New.
2588 (until_next_continuation): Add `err' parameter. Adjust.
2589 (until_next_command): Adjust.
2590 (struct finish_command_continuation_args): Add `thread' field.
2591 (finish_command_continuation): Add `err' parameter. Handle it.
2592 (finish_forward): Adjust.
2593 (attach_command_continuation): Add `err' parameter. Handle it.
2594 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2595 cancel the continuations.
2596 * interps.c (interp_set): Adjust to cancel the continuations.
2597 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2598 continuations rather than discarding.
2599 (free_thread): Don't clear thread inferior resources here.
2600 (delete_thread_1): Do it here instead. And do it before removing
2601 the thread from the threads list. Tag the thread as exited before
2602 clearing thread inferior resources.
2604 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2606 * infcall.c (call_function_by_hand): Rephrase error message.
2608 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2610 * defs.h (struct thread_info, struct inferior): Delete forward
2612 * breakpoint.h (struct thread_info): New forward declaration.
2613 * observer.sh (struct inferior): New forward declaration.
2614 * python/python-internal.h (struct inferior): New forward
2617 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2619 * defs.h (struct continuation, continuation_ftype)
2620 (continuation_free_arg_ftype, add_continuation)
2621 (do_all_continuations, do_all_continuations_thread)
2622 (discard_all_continuations, discard_all_continuations_thread)
2623 (add_intermediate_continuation, do_all_intermediate_continuations)
2624 (do_all_intermediate_continuations_thread)
2625 (discard_all_intermediate_continuations)
2626 (discard_all_intermediate_continuations_thread)
2627 (add_inferior_continuation, do_all_inferior_continuations)
2628 (discard_all_inferior_continuations): Move to ...
2629 * continuations.h: ... this new file.
2630 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2631 infcmd.c, inferior.c, infrun.c, interps.c: Include
2634 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2635 Doug Evans <dje@google.com>
2637 Fix PR 10970, PR 12702.
2638 * linux-nat.c (linux_lwp_is_zombie): New function.
2639 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2640 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2642 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2644 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2646 (add_continuation, add_intermediate_continuation)
2647 (add_inferior_continuation): Use them.
2648 * continuations.c (struct continuation): Use them.
2649 (make_continuation_ftype): Delete.
2650 (make_continuation, add_inferior_continuation, add_continuation)
2651 (add_intermediate_continuation): Use continuation_ftype and
2652 continuation_free_arg_ftype. Rename parameters to shorter names.
2654 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2656 * continuations.c (make_continuation): Make it return void.
2657 (do_my_continuations): Rename to ...
2658 (do_my_continuations_1): ... this. Remove old_chain parameter and
2660 (do_my_continuations): New.
2661 (discard_my_continuations): Rename to ...
2662 (discard_my_continuations_1): ... this. Remove old_chain
2663 parameter and adjust.
2664 (discard_my_continuations): New.
2665 (add_inferior_continuation): Simplify.
2666 (do_all_inferior_continuations): Reimplement on top
2667 do_my_continuations.
2668 (discard_all_inferior_continuations): Simplify.
2669 (add_continuation): Simplify.
2670 (do_all_continuations_ptid): Simplify.
2671 (discard_all_continuations_thread_callback): Simplify.
2672 (add_intermediate_continuation): Simplify.
2673 (discard_all_intermediate_continuations_thread_callback):
2676 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2678 * utils.c (struct continuation, add_continuation)
2679 (add_inferior_continuation)
2680 (do_all_inferior_continuations, discard_all_inferior_continuations)
2681 (restore_thread_cleanup, do_all_continuations_ptid)
2682 (do_all_continuations_thread_callback)
2683 (do_all_continuations_thread, do_all_continuations)
2684 (discard_all_continuations_thread_callback)
2685 (discard_all_continuations_thread, discard_all_continuations)
2686 (add_intermediate_continuation)
2687 (do_all_intermediate_continuations_thread_callback)
2688 (do_all_intermediate_continuations_thread)
2689 (do_all_intermediate_continuations)
2690 (discard_all_intermediate_continuations_thread_callback)
2691 (discard_all_intermediate_continuations_thread)
2692 (discard_all_intermediate_continuations): Move to ...
2693 * continuations.c: ... this new file, and adjust to no longer
2694 implement continuations on top of cleanups.
2695 * Makefile.in (SFILES): Add continuations.c.
2696 (COMMON_OBS): Add continuations.o.
2698 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2700 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2701 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2702 Internal error on invalid values.
2703 * reverse.c: Don't handle EXEC_ERROR.
2704 * mi/mi-main.c: Don't handle EXEC_ERROR.
2706 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2708 * record.c: Include event-loop.h, inf-loop.h.
2709 (record_beneath_to_async): New global.
2710 (tmp_to_async): New global.
2711 (record_async_inferior_event_token): New global.
2712 (record_open_1): Don't error out if async is enabled.
2713 (record_open): Handle to_async. Create an async event source in
2715 (record_close): Delete the async event source.
2716 (record_resumed): New global.
2717 (record_execution_dir): New global.
2718 (record_resume, record_core_resume): Set them. Register the
2719 target on the event loop.
2720 (record_wait): Rename to ...
2721 (record_wait_1): ... this. Add more debug output. Handle
2722 TARGET_WNOHANG, and the target beneath returning
2723 TARGET_WAITKIND_IGNORE.
2724 (record_wait): Reimplement on top of record_wait_1.
2725 (record_async_mask_value): New global.
2726 (record_async, record_async_mask, record_can_async_p)
2727 (record_is_async_p, record_execution_direction): New functions.
2728 (init_record_ops, init_record_core_ops): Install new methods.
2729 * infrun.c (fetch_inferior_event): Temporarily switch the global
2730 execution direction to the direction the target was going.
2731 (execution_direction): Change type to int.
2732 * target.c (default_execution_direction): New function.
2733 (update_current_target): Inherit and de_fault
2734 to_execution_direction.
2735 * target.h (struct target_ops) <to_execution_direction>: New
2737 (target_execution_direction): New macro.
2738 * inferior.h (execution_direction): Change type to int.
2740 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2742 * infcall.c (call_function_by_hand): Don't allow calling functions
2743 in reverse execution mode.
2745 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2747 * infcmd.c (finish_command): Allow async finish in reverse.
2749 2011-05-26 Yao Qi <yao@codesourcery.com>
2751 * gdb_thread_db.h: Delete. Move to ...
2752 * common/gdb_thread_db.h: ... here.
2754 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2756 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2757 function's entry point instead of a manually managed momentary
2758 breakpoint, and only ever issue one proceed call.
2759 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2760 doing a reverse-finish, switch to stepi mode, to do another step.
2761 (insert_step_resume_breakpoint_at_sal): Make public.
2762 (normal_stop): No need to save function value return registers if
2764 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2766 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2768 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2769 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2770 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2772 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2773 step-resume breakpoints.
2774 (print_it_typical): Handle bp_hp_step_resume.
2775 (bpstat_what): Ditto.
2776 (bptype_string): Ditto.
2777 (print_one_breakpoint_location): Ditto.
2778 (allocate_bp_location): Ditto.
2780 (breakpoint_re_set_one): Ditto.
2781 * infrun.c (handle_inferior_event): Adjust. Split
2782 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2783 BPSTAT_WHAT_HP_STEP_RESUME.
2784 (insert_step_resume_breakpoint_at_sal): Rename to ...
2785 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2786 parameter. Handle it.
2787 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2788 insert_step_resume_breakpoint_at_sal_1.
2789 (insert_step_resume_breakpoint_at_frame): Rename to ...
2790 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2791 set a high-priority step-resume breakpoint.
2792 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2793 (insert_step_resume_breakpoint_at_caller): Ditto.
2795 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2797 * breakpoint.c (iterate_over_related_breakpoints): New.
2798 (do_map_delete_breakpoint): New.
2799 (delete_command): Pass do_map_delete_breakpoint to
2800 map_breakpoint_numbers.
2801 (do_disable_breakpoint): New.
2802 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2804 (do_enable_breakpoint): Rename to ...
2805 (enable_breakpoint_disp): ... this.
2806 (enable_breakpoint): Adjust.
2807 (do_enable_breakpoint): New.
2808 (enable_once_breakpoint): Delete.
2809 (do_map_enable_breakpoint): New.
2810 (do_map_enable_once_breakpoint): New.
2811 (enable_once_command, enable_delete_command)
2812 (delete_trace_command): Iterate over the breakpoint's related
2815 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2817 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2818 for ALPHA_ZERO_REGNUM.
2819 (alpha_supply_int_regs): Explicitly supply zero as the value for
2820 ALPHA_ZERO_REGNUM in the register cache.
2821 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2823 2011-05-26 Yao Qi <yao@codesourcery.com>
2825 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2827 2011-05-26 Tristan Gingold <gingold@adacore.com>
2829 * symfile.h (struct dwarf2_section_names): New type.
2830 (struct dwarf2_debug_sections): New type.
2831 (dwarf2_has_info): Add parameter.
2832 * dwarf2read.c (dwarf2_elf_names): New variable.
2833 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2834 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2835 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2836 (dwarf2_has_info): Add names parameter. Pass names
2837 to dwarf2_locate_sections.
2838 (section_is_p): Rewrite using the names parameter.
2839 (dwarf2_locate_sections): Use section names from the names parameter.
2840 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2841 * elfread.c (read_psyms): Ditto.
2842 * machoread.c (macho_symfile_read): Ditto.
2844 2011-05-25 Andreas Schwab <schwab@redhat.com>
2847 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2849 2011-05-24 Keith Seitz <keiths@redhat.com>
2852 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2853 (decode_compound): Unconditionally call keep_name_info.
2855 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2857 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2858 scope, clear its command list.
2859 (map_breakpoint_numbers): Don't walk the related breakpoints list
2862 2011-05-24 Tom Tromey <tromey@redhat.com>
2864 * MAINTAINERS: Move Jim Blandy to past maintainers.
2866 2011-05-24 Tristan Gingold <gingold@adacore.com>
2868 * symfile.h (enum dwarf2_section_enum): New type.
2869 (dwarf2_get_section_info): New prototype.
2870 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2871 section_name by sect. Use a switch to select the info.
2872 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2873 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2875 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2877 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2878 shared library event breakpoint if there's no execution.
2880 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2882 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2883 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2885 2011-05-23 Tom Tromey <tromey@redhat.com>
2887 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2890 2011-05-23 Doug Evans <dje@google.com>
2892 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2893 entry for RuntimeError to doc string.
2895 2011-05-23 Jerome Guitton <guitton@adacore.com>
2897 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2898 sequence for probing loops.
2900 2011-05-23 Pedro Alves <pedro@codesourcery.com>
2902 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2905 2011-05-21 Mark Kettenis <kettenis@gnu.org>
2907 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2908 zero as the value for %g0 in the register cache.
2909 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2910 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2912 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2914 * infrun.c (proceed): Set previous_inferior_ptid here.
2915 (init_wait_for_inferior): Initialize previous_inferior_ptid from
2916 inferior_ptid, not null_ptid.
2917 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
2918 (fetch_inferior_event): Nor here.
2920 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2922 * inf-loop.c (inferior_event_handler): Only output a message if
2925 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
2927 * MAINTAINERS: Update my e-mail address.
2929 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2931 * infrun.c (proceed): Switch the inferior event loop to
2932 INF_EXEC_COMPLETE if the target refused to resume from a
2935 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2937 * infcmd.c: Include "inf-loop.h".
2938 (step_once): When stepping into an inline subroutine, pretend the
2939 target has run. If the target can async, switch the inferior
2940 event loop to INF_EXEC_COMPLETE.
2941 * inferior.h (user_visible_resume_ptid): Declare.
2942 * infrun.c (user_visible_resume_ptid): New function, factored out
2945 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
2946 that the current thread is running. Merge async and sync
2949 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2951 * infcmd.c (step_1): Simplify synchronous case.
2953 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2955 * tracepoint.c: Include exceptions.h.
2956 (TFILE_PID): Move higher in file.
2957 (tfile_open): Delay pushing the tfile target until we're assured
2958 the tfile header is present in the file. Wrap reading the initial
2959 newline-terminated lines in TRY_CATCH. Pop the target if the
2960 initial setup failed. Add the tfile's thread immediately
2961 aftwards, before any non-essential setup. Don't skip
2962 post_create_inferior if there are no traceframes present in the
2964 (tfile_close): Remove redundant check for null before xfree call.
2965 (tfile_thread_alive): New function.
2966 (init_tfile_ops): Register it as to_thread_alive callback.
2968 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2970 * tracepoint.c (tfile_open): Delete #if 0'd code.
2972 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2974 Fix -readnow for -gdwarf-4 unused type units.
2975 * dwarf2read.c (struct signatured_type): Remove the field offset.
2976 (create_signatured_type_table_from_index): Remove its initialization.
2977 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
2978 instead. Add a complaint call.
2979 (process_psymtab_comp_unit): Change assignment to gdb_assert.
2980 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
2981 (lookup_signatured_type_at_offset, read_signatured_type)
2982 (write_one_signatured_type): Update the field for per_cu.
2984 2011-05-19 Tom Tromey <tromey@redhat.com>
2986 * python/py-inferior.c (python_inferior_exit): Use
2988 (python_on_resume): Likewise.
2990 2011-05-19 Matt Rice <ratmice@gmail.com>
2992 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2994 2011-05-19 Hui Zhu <teawater@gmail.com>
2996 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
2998 2011-05-19 Hui Zhu <teawater@gmail.com>
3000 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3002 2011-05-18 Tom Tromey <tromey@redhat.com>
3004 * dwarf2read.c (dwarf2_add_field): Constify.
3005 * value.c (value_static_field): Constify.
3006 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3008 * ax-gdb.c (gen_static_field): Constify
3010 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3012 * linux-nat.c (kill_callback): Use SIGKILL first.
3014 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3016 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3018 2011-05-18 Tom Tromey <tromey@redhat.com>
3020 * value.c (value_fn_field): Constify.
3021 * symtab.c (gdb_mangle_name): Constify.
3022 * stabsread.c (update_method_name_from_physname): Make 'physname'
3024 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3025 const. Use explicit fputc_filtered loop.
3026 (pascal_type_print_base): Constify.
3027 * p-lang.h (pascal_type_print_method_args): Update.
3028 * linespec.c (add_matching_methods): Constify.
3029 (add_constructors): Likewise.
3030 * jv-typeprint.c (java_type_print_base): Constify.
3031 * gdbtypes.h (struct cplus_struct_type)
3032 <fn_fieldlist.fn_field.physname>: Now const.
3033 * dwarf2read.c (compute_delayed_physnames): Constify.
3034 (dwarf2_add_member_fn): Likewise.
3035 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3037 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3039 * infrun.c (resume): Mention which is the current thread, and its
3040 current PC in debug output.
3041 (prepare_to_proceed): Mention the thread switching in debug
3044 2011-05-18 Tom Tromey <tromey@redhat.com>
3046 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3047 path check. Use xmalloc and cleanups.
3048 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3050 2011-05-17 Tom Tromey <tromey@redhat.com>
3052 * cp-valprint.c (cp_print_value_fields): Catch errors from
3055 2011-05-17 Tom Tromey <tromey@redhat.com>
3057 * dwarf2read.c (dwarf2_get_die_type): Call
3058 get_die_type_at_offset.
3059 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3060 get_base_type function.
3062 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3064 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3067 2011-05-16 Doug Evans <dje@google.com>
3069 * python/py-auto-load.c (source_section_scripts): Mention objfile
3072 2011-05-15 Doug Evans <dje@google.com>
3074 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3075 (try_thread_db_load_from_pdir): Call it. If unable to find
3076 libthread_db in directory of libpthread, see if we're looking at
3077 the separate-debug-info copy.
3079 * python/py-autoload.c (print_script): Print "Missing" instead of
3080 "No" for missing scripts.
3081 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3083 2011-05-13 Doug Evans <dje@google.com>
3085 * ui-file.c (stdio_file_write_async_safe): Add comment.
3087 2011-05-14 Hui Zhu <teawater@gmail.com>
3089 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3091 2011-05-13 Doug Evans <dje@google.com>
3093 Support $pdir and $sdir in libthread-db-search-path.
3094 * NEWS: Mention $sdir,$pdir.
3095 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3096 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3097 (try_thread_db_load_from_sdir): New function.
3098 (try_thread_db_load_from_dir): New function.
3099 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3100 system directories if search of libthread-db-search-path fails,
3101 that is now done via $sdir.
3102 (has_libpthread): New function.
3103 (thread_db_load): Remove search for libthread_db in directory of
3104 libpthread, that is now done via $pdir.
3106 * NEWS: Mention "info auto-load-scripts".
3107 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3108 script_not_found_warning_printed.
3109 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3110 all callers updated. Initialize script_not_found_warning_printed.
3111 (get_auto_load_pspace_data_for_loading): New function.
3112 (maybe_add_script): New function.
3113 (source_section_scripts): Simplify. Only print one warning regardless
3114 of the number of auto-load scripts not found.
3115 (clear_section_scripts): Clear script_not_found_warning_printed.
3116 (auto_load_objfile_script): Record script in hash table.
3117 (count_matching_scripts): New function.
3118 (maybe_print_script): Renamed from maybe_print_section_script, all
3119 callers updated. Rewrite to use ui_out_*.
3120 (info_auto_load_scripts): Renamed from
3121 maintenance_print_section_scripts, all callers updated.
3122 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3123 renamed as "info auto-load-scripts".
3125 2011-05-13 Tom Tromey <tromey@redhat.com>
3127 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3128 (read_sleb128): Likewise.
3130 2011-05-13 Tom Tromey <tromey@redhat.com>
3132 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3135 2011-05-13 Doug Evans <dje@google.com>
3137 * linux-nat.c (debug_linux_nat_async): Delete.
3138 Replace all references to use debug_linux_nat instead.
3139 (show_debug_linux_nat_async): Delete.
3140 (sigchld_handler): Call ui_file_write_async_safe instead of
3142 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3143 * ui-file.c (struct ui_file): New member to_write_async_safe.
3144 (null_file_write_async_safe): New function.
3145 (ui_file_write_async_safe): New function.
3146 (set_ui_file_write_async_safe): New function.
3147 (ui_file_new): Initialize to_write_async_safe.
3148 (stdio_file_write_async_safe): New function.
3149 (struct stdio_file): New member fd.
3150 (stdio_file_new): Initialize to_write_async_safe, fd.
3151 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3153 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3154 (set_ui_file_write_async_safe): Declare.
3155 (ui_file_write_async_safe): Declare.
3157 2011-05-13 Tom Tromey <tromey@redhat.com>
3159 * utils.c (do_value_free): New function.
3160 (make_cleanup_value_free): Likewise.
3161 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3163 (dwarf2_loc_desc_needs_frame): Call
3164 make_cleanup_value_free_to_mark.
3165 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3166 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3168 (new_dwarf_expr_context): Don't call value_mark.
3169 * dwarf2-frame.c (execute_stack_op): Call
3170 make_cleanup_value_free_to_mark.
3171 * defs.h (make_cleanup_value_free): Declare.
3173 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3175 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3176 prepare_execute_command.
3177 * top.c (prepare_execute_command): Return cleanup.
3178 (execute_command): Use cleanup from prepare_execute_command.
3179 * top.h (prepare_execute_command): Change prototype to return
3181 * defs.h (struct value): Add opaque declaration.
3182 (make_cleanup_value_free_to_mark): Add prototype.
3183 * utils.c (do_value_free_to_mark): New function.
3184 (make_cleanup_value_free_to_mark): Likewise.
3186 2011-05-12 Tom Tromey <tromey@redhat.com>
3188 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3189 cast left-hand-side to unsigned.
3191 2011-05-12 Tom Tromey <tromey@redhat.com>
3194 * value.h (value_from_contents): Declare.
3195 * value.c (value_from_contents): New function.
3196 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3197 (dwarf2_get_die_type): New function.
3198 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3199 (allocate_piece_closure): Acquire reference to values.
3200 (read_pieced_value): Update for value-based expressions.
3201 (write_pieced_value): Likewise.
3202 (free_pieced_value_closure): Call value_free as needed.
3203 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3204 Update for value-based expressions.
3205 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3206 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3207 <get_base_type>: New field.
3208 (struct dwarf_expr_piece) <v.value>: Change type.
3209 <v.regno>: New field.
3210 (struct dwarf_expr_context) <mark>: New field.
3211 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3212 (dwarf_expr_pop, dwarf_expr_push): Remove.
3213 (dwarf_expr_push_address): Declare.
3214 * dwarf2expr.c (dwarf_arch_cookie): New global.
3215 (struct dwarf_gdbarch_types): New.
3216 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3218 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3220 (dwarf_expr_push_address): New function.
3221 (dwarf_expr_pop): Now static.
3222 (dwarf_expr_fetch): Change return type.
3223 (dwarf_require_integral): New function.
3224 (dwarf_expr_fetch): Simplify.
3225 (add_piece): Update.
3226 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3228 (execute_stack_op) <sign_ext>: Remove.
3229 Use values for DWARF stack.
3230 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3231 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3233 (_initialize_dwarf2expr): New function.
3234 (add_piece): Update.
3235 (new_dwarf_expr_context): Set new field.
3236 (free_dwarf_expr_context): Call value_free_to_mark.
3237 * dwarf2-frame.c (no_base_type): New function.
3238 (execute_stack_op): Set get_base_type field. Update.
3240 2011-05-12 Tom Tromey <tromey@redhat.com>
3242 * dwarf2read.c (read_common_block): Fix formatting.
3244 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3246 * breakpoint.c (disable_breakpoint): Disable all locations
3247 associated with a tracepoint on target if a trace experiment is
3249 (disable_command): Disable a specific tracepoint location on target if
3250 a trace experiment is running.
3251 (do_enable_breakpoint): Enable all locations associated with a
3252 tracepoint on target if a trace experiment is running.
3253 (enable_command) Enable a specific tracepoint location on target if a
3254 trace experiment is running.
3255 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3256 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3257 to_disable_tracepoint.
3258 * target.h: Add declaration of struct bp_location.
3259 (struct target_ops): Add new functions
3260 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3261 to_disable_tracepoint to target operations.
3262 (target_supports_enable_disable_tracepoint): New macro.
3263 (target_enable_tracepoint): New macro.
3264 (target_disable_tracepoint): New macro.
3265 * remote.c (struct remote_state): Add new field.
3266 (remote_enable_disable_tracepoint_feature): New.
3267 (remote_protocol_features): Add new entry.
3268 (remote_supports_enable_disable_tracepoint): New.
3269 (remote_enable_tracepoint): New.
3270 (remote_disable_tracepoint): New.
3271 (init_remote_ops): Add remote_enable_tracepoint,
3272 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3273 to remote operations.
3274 * tracepoint.c (start_tracing): Allow tracing to start without any
3275 tracepoints enabled with just a warning if they can be re-enabled
3277 * NEWS: Add news item for the new behaviour of the enable and disable
3278 GDB commands when applied to tracepoints.
3279 Add news items for the new remote packets QTEnable and QTDisable.
3281 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3283 * config.in: Regenerate.
3284 * configure: Regenerate.
3285 * configure.ac <--with-system-readline> (for readline_echoing_p):
3287 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3288 (tui_old_rl_echoing_p): ... here.
3289 (tui_setup_io): Rename extern declaration readline_echoing_p to
3290 _rl_echoing_p. Adjust assignments for the both renames.
3292 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3294 * symtab.c (lookup_symtab): Run cleanup before returning.
3296 2011-05-11 Tom Tromey <tromey@redhat.com>
3298 * dwarf2read.c (handle_data_member_location): New function.
3299 (dwarf2_add_field): Use it.
3300 (read_common_block): Likewise.
3302 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3304 Make addrs->SECTINDEX always defined.
3305 * symfile.c (relative_addr_info_to_section_offsets): Check for
3306 SECTINDEX -1, not for zero ADDR.
3307 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3308 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3309 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3312 2011-05-10 Doug Evans <dje@google.com>
3314 * linux-thread-db.c: Whitespace cleanup.
3315 (try_thread_db_load_1): Fix comment.
3317 * linux-thread-db.c (set_libthread_db_search_path): New function.
3318 (_initialize_thread_db): Add setter for libthread-db-search-path.
3320 2011-05-09 Doug Evans <dje@google.com>
3322 * NEWS: Mention --with-iconv-bin.
3323 * configure.ac: New option --with-iconv-bin.
3324 * configure: Regenerate.
3325 * config.in: Regenerate.
3326 * defs.h (relocate_gdb_directory): Declare.
3327 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3328 removed progname parameter, and exported. All callers updated.
3329 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3331 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3332 adding missing call to restore_child_signals_mask.
3334 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3336 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3338 * infrun.c (proceed, start_remote): Adjust.
3339 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3340 and adjust to not handle it.
3341 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3342 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3343 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3344 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3345 * windows-nat.c (do_initial_windows_stuff): Adjust.
3346 * infcmd.c (attach_command): Adjust.
3347 (notice_new_inferior): Adjust.
3349 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3351 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3352 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3353 * spu-tdep.c (op_selb): Use correct value.
3355 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3357 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3358 "parent" parameter to symbol_file_add_from_bfd call.
3360 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3361 Thiago Jung Bauermann <bauerman@br.ibm.com>
3363 Implement support for PowerPC BookE masked watchpoints.
3364 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3366 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3367 method. Initialize to NULL in all existing breakpoint_ops instances.
3368 (struct breakpoint) <hw_wp_mask>: New field.
3369 * breakpoint.c (is_masked_watchpoint): Add prototype.
3370 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3371 breakpoint's breakpoint_ops.works_in_software_mode if available.
3372 (watchpoints_triggered): Handle the case of a hardware masked
3374 (watchpoint_check): Likewise.
3375 (works_in_software_mode_watchpoint): New function.
3376 (insert_masked_watchpoint, remove_masked_watchpoint)
3377 (resources_needed_masked_watchpoint)
3378 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3379 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3380 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3382 (masked_watchpoint_breakpoint_ops): New structure.
3383 (watch_command_1): Check for the existence of the `mask' parameter.
3384 Set b->ops according to the type of hardware watchpoint being created.
3385 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3386 (ppc_linux_remove_mask_watchpoint)
3387 (ppc_linux_masked_watch_num_registers): New functions.
3388 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3389 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3390 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3391 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3392 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3393 (target_masked_watch_num_registers): New functions.
3394 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3395 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3397 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3398 (target_masked_watch_num_registers): Add prototypes.
3400 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3403 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3404 (producer_is_gcc_ge_4_0): New function.
3405 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3406 symtab->language code.
3407 (var_decode_location): Set cu->has_loclist.
3408 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3409 skip. Intialize force_skip from locations_valid. Move the prologue
3410 skipping code into two passes.
3411 * symtab.h (struct symtab): Make the primary field a bitfield. New
3412 field locations_valid.
3414 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3416 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3417 (classify_inner_name): Call cp_lookup_nested_type with
3419 * cp-namespace.c (cp_lookup_nested_type): New variable
3420 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3421 type_name_no_tag_or_error with saved_parent_type.
3422 * dwarf2read.c (load_partial_dies): Read in any children of
3423 DW_TAG_typedef with complaint in such case.
3424 * gdbtypes.c (type_name_no_tag_or_error): New function.
3425 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3426 * valops.c (destructor_name_p): New comment for parameter type. Remove
3427 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3428 * value.h (destructor_name_p): Remove type const.
3430 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3432 * symtab.c (compare_symbol_name): New function.
3433 (completion_list_add_name, expand_partial_symbol_name): Call it,
3434 remove the variable ncmp.
3435 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3438 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3440 Demote to sw watchpoint only in update_watchpoint.
3441 * breakpoint.c (update_watchpoint): Change between software and
3442 hardware watchpoint for all kinds of watchpoints, not just
3443 read/write ones. Determine b->exact value here instead of
3444 in watch_command_1. Error out if there are not enough resources
3445 for a read or access hardware watchpoint.
3446 (watch_command_1): Remove logic of checking whether there are
3447 enough resources available, since update_watchpoint will do that
3448 work now. Don't set b->exact here. Catch exceptions thrown by
3449 update_watchpoint and delete the watchpoint.
3450 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3451 Use target_exact_watchpoints instead.
3452 (delete_breakpoint): Notify observers only if deleted watchpoint
3453 has a breakpoint number assigned to it.
3455 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3457 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3459 2011-05-05 Jerome Guitton <guitton@adacore.com>
3461 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3463 (i386_stack_tramp_frame_unwind): New static global.
3464 (i386_match_pattern): New function, extracted from i386_match_insn.
3465 (i386_match_insn): Use i386_match_pattern.
3466 (i386_match_insn_block): New function.
3467 (i386_tramp_chain_in_reg_insns)
3468 (i386_tramp_chain_on_stack_insns): New static variables.
3469 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3472 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3474 * configure.host (xscale*): Don't handle target.
3475 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3478 2011-05-04 Yao Qi <yao@codesourcery.com>
3480 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3482 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3485 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3486 | * elfread.c (elf_symtab_read): Stop memory leak.
3488 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3490 * nto-tdep.c (nto_target): Replace deprecated call to
3491 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3493 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3495 Fix false GCC warning.
3496 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3498 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3500 * breakpoint.c (update_watchpoint): Move code to change
3501 the enable state of breakpoint from here ...
3502 (do_enable_breakpoint): ... to here.
3504 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3506 * valprint.c (val_print_array_elements): Fixed poor performance
3507 of printing very large arrays with repeat_count_threshold set
3508 to unlimited. New comment.
3510 2011-04-29 Tom Tromey <tromey@redhat.com>
3512 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3513 (mi_parse): Likewise.
3514 * breakpoint.c (break_range_command): Use sizeof char*, not
3516 (create_breakpoint): Likewise.
3517 (parse_breakpoint_sals): Likewise.
3519 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3521 * linux-nat.c (linux_child_remove_fork_catchpoint)
3522 (linux_child_remove_vfork_catchpoint)
3523 (linux_child_remove_exec_catchpoint): New functions.
3524 (linux_target_install_ops): Install them.
3526 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3530 * varobj.c (install_default_visualizer): Do not install a
3531 visualizer if the varobj is CPLUS_FAKE_CHILD.
3532 (construct_visualizer): Likewise.
3534 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3536 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3537 case insensitive comparison.
3539 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3541 * infrun.c (proceed): Revert previous change.
3542 (resume): Instead, handle the case of signal delivery while stepping
3543 off a breakpoint location here, and only if software single-stepping
3544 is used. Handle nested signals.
3546 2011-04-28 Yao Qi <yao@codesourcery.com>
3548 * arm-tdep.c (copy_unmodified): Rename to ...
3549 (arm_copy_unmodified): .. this. New.
3550 (copy_preload): Move common part to ...
3551 (install_preload): .. this. New.
3552 (arm_copy_preload): New.
3553 (copy_preload_reg): Move common part to ...
3554 (install_preload_reg): ... this. New.
3555 (arm_copy_preload_reg): New.
3556 (copy_b_bl_blx): Move common part to ...
3557 (install_b_bl_blx): .. this. New.
3558 (arm_copy_b_bl_blx): New.
3559 (copy_bx_blx_reg): Move common part to ...
3560 (install_bx_blx_reg): ... this. New.
3561 (arm_copy_bx_blx_reg): New.
3562 (copy_alu_reg): Move common part to ...
3563 (install_alu_reg): ... this. New.
3564 (arm_copy_alu_reg): New.
3565 (copy_alu_shifted_reg): Move common part to ...
3566 (install_alu_shifted_reg): ... this. New.
3567 (copy_ldr_str_ldrb_strb): Move common part to ...
3568 (install_ldr_str_ldrb_strb): ... this. New.
3569 (arm_copy_ldr_str_ldrb_strb): New.
3570 (copy_copro_load_store): Move some common part to ...
3571 (install_copy_copro_load_store): ... this. New.
3572 (arm_copy_copro_load_store): New.
3574 (arm_copy_svc): Renamed from copy_svc.
3575 (copy_undef): Delete.
3576 (arm_copy_undef): Renamed from copy_undef.
3577 (decode_ext_reg_ld_st): Delete.
3578 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3579 (decode_svc_copro): Delete.
3580 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3581 (copy_copro_load_store, copy_alu_imm): update callers.
3582 (copy_extra_ld_st, copy_block_xfer): Likewise.
3583 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3584 (decode_miscellaneous, decode_dp_misc): Likewise.
3585 (decode_ld_st_word_ubyte, decode_media): Likewise.
3586 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3587 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3588 (decode_unconditional, decode_miscellaneous): Likewise.
3589 (decode_media, decode_b_bl_ldmstm): Likewise.
3590 (arm_process_displaced_insn): Likewise..
3591 (decode_misc_memhint_neon): Delete.
3592 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3593 (decode_miscellaneous): Delete.
3594 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3595 (decode_dp_misc): Delete.
3596 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3597 (decode_ld_st_word_ubyte): Delete.
3598 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3599 (decode_media): Delete.
3600 (arm_decode_media): Renamed from decode_media.
3601 (decode_b_bl_ldmstm): Delete.
3602 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3603 (decode_ext_reg_ld_st): Delete.
3604 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3605 (decode_unconditional): Delete.
3606 (arm_decode_unconditional): Renamed from decode_unconditional.
3608 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3610 Case insensitive lookups implementation.
3611 * dwarf2read.c: Include ctype.h.
3612 (struct mapped_index): New field version.
3613 (mapped_index_string_hash): New parameter index_version. New comment
3614 for it. Call tolower appropriately.
3615 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3616 Choose the right index version for mapped_index_string_hash.
3617 (dwarf2_read_index): Support also the index version 5. Initialize the
3618 new struct mapped_index field version.
3619 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3620 (find_slot): Explain the version needs. Pass INT_MAX for the new
3622 (write_psymtabs_to_index): Produce version 5.
3623 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3624 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3625 * psymtab.c (lookup_partial_symbol): Find the
3626 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3628 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3630 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3631 (completion_list_add_name): New variable ncmp, initialize it, use it.
3632 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3633 * utils.c (strcmp_iw): Support case_sensitive_off.
3634 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3635 New function comment part. New variables saved_string1,
3636 saved_string2 and case_pass. Add a proper second pass.
3638 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3640 Replace re_comp/re_exec by regcomp/regexec.
3641 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3642 (search_symbols_name_matches): Use them, use regexec.
3643 (search_symbols): New variable retval_chain, adjust the use of
3644 old_chain against it. Replace re_comp by regcomp. Use the new struct
3645 search_symbols_data fields, use regexec instead of re_exec.
3647 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3649 Format the code for the next patch.
3650 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3651 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3652 New variables c1 and c2.
3654 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3656 * infrun.c (proceed): Do not single-step into signal delivery
3657 when stepping off a breakpoint location.
3658 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3659 (insert_step_resume_breakpoint_at_caller): Likewise.
3660 (insert_step_resume_breakpoint_at_sal): Likewise.
3661 (insert_longjmp_resume_breakpoint): Likewise.
3663 2011-04-27 Yao Qi <yao@codesourcery.com>
3665 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3667 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3669 * procfs.c (procfs_pass_signals): Fix advance declaration.
3671 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3673 * target.h (struct target_ops): Remove to_notice_signals;
3674 add to_pass_signals.
3675 (target_notice_signals): Remove.
3676 (target_pass_signals): Add prototype.
3677 * target.c (update_current_target): Remove to_notice_signals;
3678 mention to_pass_signals.
3679 (target_pass_signals): New function.
3680 (debug_to_notice_signals): Remove.
3681 (setup_target_debug): Do not install debug_to_notice_signals.
3683 * infrun.c (signal_pass): New global.
3684 (resume): Call target_pass_signals.
3685 (handle_inferior_event): Report all signals while stepping over
3686 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3687 are re-inserted when stepping over a signal handler.
3688 (signal_cache_update): New function.
3689 (signal_stop_update): Call it.
3690 (signal_print_update): Likewise.
3691 (signal_pass_update): Likewise.
3692 (handle_command): Call signal_cache_update and target_pass_signals
3693 instead of target_notice_signals.
3694 (_initialize_infrun): Initialize signal_pass.
3696 * linux-nat.c (pass_mask): New global.
3697 (linux_nat_pass_signals): New function.
3698 (linux_nat_create_inferior): Report all signals initially.
3699 (linux_nat_attach): Likewise.
3700 (linux_nat_resume): Use pass_mask to decide whether to directly
3701 handle an inferior signal.
3702 (linux_nat_wait_1): Likewise.
3703 (linux_nat_add_target): Install to_pass_signals callback.
3705 * nto-procfs.c (notice_signals): Remove.
3706 (procfs_resume): Do not call notice_signals.
3707 (procfs_notice_signals): Remove.
3708 (procfs_pass_signals): New function.
3709 (init_procfs_ops): Install to_pass_signals callback instead of
3710 to_notice_signals callback.
3711 (_initialize_procfs): Report all signals initially.
3713 * procfs.c (procfs_notice_signals): Remove.
3714 (procfs_pass_signals): New function.
3715 (procfs_target): Install to_pass_signals callback instead of
3716 to_notice_signals callback.
3717 (register_gdb_signals): Remove.
3718 (procfs_debug_inferior): Report all signals initially.
3719 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3721 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3722 parameters; use them instead of calling signal_..._state routines.
3723 (remote_notice_signals): Remove.
3724 (remote_start_remote): Report all signals initially.
3725 (remote_resume): Do not call remote_pass_signals.
3726 (_initialize_remote): Install to_pass_signals callback instead of
3727 to_notice_signals callback.
3729 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3731 * breakpoint.c (user_settable_breakpoint): Delete.
3732 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3733 (delete_command): Check user_breakpoint_p instead of looking at
3734 the breakpoint's type.
3735 (disable_command): Ditto.
3736 (enable_command): Ditto.
3737 (delete_trace_command): Use user_breakpoint_p instead of looking
3738 at the breakpoint number directly. When checking if there are
3739 user visible tracepoints, in order to know whether to ask the user
3740 for confirmation, check whether the breakpoint is actually a
3743 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3745 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3748 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3750 MI breakpoint notifications.
3752 * annotate.c (breakpoint_changed): Adjust parameter type.
3753 * breakpoint.c (set_breakpoint_condition): Adjust to change
3754 in breakpoint_modified type.
3755 (breakpoint_set_commands): Likewise.
3756 (do_map_commands_command): Likewise.
3757 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3758 changed after bumping hit count.
3759 (bpstat_stop_status): Likewise.
3760 (print_one_breakpoint_location): Don't wrap in tuple here.
3761 (print_one_breakpoint): Always print individual locations.
3762 For locations, use unnamed tuple.
3763 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3765 (create_catchpoint, create_syscall_event_catchpoint): Call
3766 breakpoint_created obsever.
3767 (mention): Don't call breakpoint_created observer.
3768 (create_breakpoint_sal): Call breakpoint_created observer.
3769 (create_breakpoint, watch_command_1): Likewise.
3770 (create_ada_exception_breakpoint): Likewise.
3771 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3772 (locations_are_equal): New.
3773 (update_breakpoint_locations): If locations were changed, notify.
3774 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3775 Call breakpoint_modified observer.
3777 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3778 (mi_cmd_break_insert): Don't set observers for modify and delete.
3779 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3780 (mi_breakpoint_created, mi_breakpoint_deleted)
3781 (mi_breakpoint_modified): New.
3782 (mi_interpreter_init): Hook the above.
3783 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3784 while -break-* commands are executing.
3785 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3786 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3788 (mi_ui_out_impl): Hook in mi_redirect.
3789 (mi_field_skip): True to the name, skip the field, don't output
3790 a field with an empty value.
3792 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3793 (gdbpy_breakpoint_deleted): Adjust.
3794 * tui/tui-hooks.c (tui_event_create_breakpoint)
3795 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3797 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3799 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3800 (procfs_remove_hw_watchpoint): Likewise.
3802 2011-04-26 Michael Walle <michael@walle.cc>
3804 * remote.c (remote_start_remote): Ack packet after sending the
3807 2011-04-26 Yao Qi <yao@codesourcery.com>
3809 * linux-nat.c: Move common macros to ...
3810 Include linux-ptrace.h.
3811 * common/linux-ptrace.h: ... here. New.
3813 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3815 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3816 !objfile_has_partial_symbols. New comment.
3817 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3818 SYM_READ_PSYMBOLS is not present. Extend the comment.
3819 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3821 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3823 * defs.h (ENUM_BITFIELD): Remove.
3825 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3826 Eli Zaretskii <eliz@gnu.org>
3828 * NEWS: Document the new gdbserver --once option.
3830 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3832 * MAINTAINERS: Update my email address.
3834 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3836 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3837 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3838 function call if __STDC_ISO_10646__ macro is defined.
3839 (intermediate_encoding): New prototype.
3840 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3841 to generate compile time error for unsupported gdb_wchar_t size.
3842 (ENDIAN_SUFFIX): New macro.
3843 (intermediate_encoding): New function.
3845 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3847 * ada-lang.c (struct add_partial_datum): Update the comment for
3848 expand_partial_symbol_name.
3849 (ada_add_partial_symbol_completions): Rename to ...
3850 (ada_expand_partial_symbol_name): ... here, change return type, update
3851 function comment, call symbol_completion_match instead of
3852 symbol_completion_add.
3853 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3854 and ada_expand_partial_symbol_name.
3855 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3857 (dw2_map_symbol_names): Remove.
3858 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3859 * psymtab.c (map_symbol_names_psymtab): Remove.
3860 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3861 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3863 (psym_functions): Unlist map_symbol_names_psymtab.
3864 (map_partial_symbol_names): Rename to ...
3865 (expand_partial_symbol_names): ... here, change the FUN type, call
3866 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3867 * psymtab.h (map_partial_symbol_names): Rename to ...
3868 (expand_partial_symbol_names): ... here, change the FUN type.
3869 * symfile.h (struct quick_symbol_functions): Update the description of
3870 expand_symtabs_matching. Remove map_symbol_names.
3871 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3872 (struct add_name_data): Update the comment for
3873 expand_partial_symbol_name.
3874 (add_partial_symbol_name): Rename to ...
3875 (expand_partial_symbol_name): ... here. Replace
3876 completion_list_add_name call by strncmp.
3877 (default_make_symbol_completion_list_break_on): Use now
3878 expand_partial_symbol_names and expand_partial_symbol_name.
3879 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3881 2011-04-20 Tom Tromey <tromey@redhat.com>
3883 * dwarf2read.c (save_gdb_index_command): Replace format
3884 documentation with a pointer to the manual.
3886 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3888 * regcache.c: Include remote.h.
3889 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3890 (regcache_dump): Handle regcache_dump_remote.
3891 (maintenance_print_remote_registers): New function.
3892 (_initialize_regcache): Install "maint print remote-registers"
3894 * remote.c (map_regcache_remote_table): New function, factored out
3896 (init_remote_state): ... here.
3897 (remote_register_number_and_offset): New.
3898 * remote.h (remote_register_number_and_offset): Declare.
3900 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3902 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3903 null_ptid, assume and allow a NULL address space, instead of
3904 asking the target for the ptid's address space.
3905 * infrun.c (ptid_is_pid): Remove assertion.
3907 2011-04-19 Tom Tromey <tromey@redhat.com>
3909 * windows-tdep.c (windows_xfer_shared_library):
3910 * windows-nat.c (get_module_name, windows_make_so):
3911 * v850-tdep.c (v850_handle_pushm):
3912 * utils.c (null_cleanup, gdb_realpath):
3913 * ui-out.c (get_next_header):
3914 * tracepoint.c (clear_traceframe_info):
3915 * symtab.c (lookup_symtab):
3916 * serial.h (struct serial_ops):
3917 * mipsread.c (read_alphacoff_dynamic_symtab):
3918 * infcmd.c (print_return_value):
3919 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
3920 * f-exp.y (parse_number):
3921 * exceptions.c (catch_exceptions):
3922 * dummy-frame.c (dummy_frame_this_id):
3923 * defs.h (struct cleanup):
3924 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
3925 * arm-tdep.c (arm_push_dummy_call):
3926 * amd64-tdep.h (amd64_collect_xsave):
3927 * amd64-tdep.c (amd64_collect_xsave):
3928 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
3929 * README (typing): Remove duplicate words.
3930 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
3931 * infrun.c (siginfo_value_read): Fix typo.
3932 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
3933 * top.c (source_line_number): Add comma.
3935 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
3937 * thread.c (any_live_thread_of_process): Prioritize threads
3938 that are not executing.
3939 * gdbthread.h (any_live_thread_of_process): Update comment
3940 as per above change.
3942 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
3944 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
3945 (scan_xcoff_symtab): Likewise.
3947 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3949 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
3952 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3953 Pedro Alves <pedro@codesourcery.com>
3955 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
3956 variables to simplify code and avoid == operator at end of
3957 line as this is against GNU coding standards.
3959 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3961 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
3962 lm_name to name_lm to avoid conflict with lm_name function.
3964 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3966 ARI fixes: Use only lowercase function name for static functions.
3967 * nto-tdep.c (LM_ADDR): Rename to...
3968 (lm_addr): New function name.
3969 (nto_relocate_section_addresses): Adapt to change above.
3970 * solib-sunos.c (LM_ADDR): Rename to...
3971 (lm_addr): New function name.
3972 (LM_NEXT): Rename to...
3973 (lm_next): New function name.
3974 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
3975 function name changes above.
3976 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
3977 (lm_addr_from_link_map): New function name.
3978 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3979 (has_lm_dynamic_from_link_map): New function name.
3980 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3981 (lm_dynamic_from_link_map): New function name.
3982 (LM_ADDR_CHECK): Rename to...
3983 (lm_addr_check): New function name.
3984 (LM_NEXT): Rename to...
3985 (lm_next): New function name.
3986 (LM_PREV): Rename to...
3987 (lm_prev): New function name.
3988 (LM_NAME): Rename to...
3989 (lm_name): New function name.
3990 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
3991 (ignore_first_link_map_entry): New function name.
3992 (svr4_keep_data_in_core): Adapt to function name changes above.
3993 (svr4_current_sos): Likewise.
3994 (enable_break): Likewise.
3995 (svr4_relocate_section_addresses): Likewise.
3997 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4000 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4001 sprintf. Simplify code and avoid loosing memory.
4002 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4003 (call0_frame_cache): Remove && operator from end of line.
4005 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4007 Fix libraries displacement if they change whether they were prelinked.
4008 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4009 does not match. Comment why.
4011 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4013 * corelow.c: Include wrapper.h.
4014 (core_open): Call now gdb_target_find_new_threads.
4015 * wrapper.c: Include target.h.
4016 (gdb_target_find_new_threads): New.
4017 * wrapper.h (gdb_target_find_new_threads): New declaration.
4019 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4021 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4022 even if !TARGET_HAS_EXECUTION.
4024 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4026 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4027 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4028 bfd_get_synthetic_symtab.
4029 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4030 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4031 parameter parent, remove the call to add_separate_debug_objfile.
4032 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4033 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4034 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4035 parent, new comment for it, call add_separate_debug_objfile for it.
4036 (symbol_file_add_separate): Pass objfile as the parameter parent,
4037 remove the call to add_separate_debug_objfile.
4038 (symbol_file_add_from_bfd): New parameter parent, pass it.
4039 (symbol_file_add): Pass NULL to the new parameter parent.
4040 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4042 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4044 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4047 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4049 Fix Python access to inlined frames.
4050 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4051 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4053 2011-04-15 Tom Tromey <tromey@redhat.com>
4055 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4057 2011-04-15 Gary Benson <gbenson@redhat.com>
4059 * MAINTAINERS: Add myself to write-after-approval section.
4061 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4063 * remote-sim.c (sim_command_completer): New function.
4064 (_initialize_remote_sim): Set completer to sim_command_completer.
4066 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4068 * breakpoint.c (print_exception_catchpoint): Rename to ...
4069 (print_it_exception_catchpoint): ... this.
4070 (gnu_v3_exception_catchpoint_ops): Update with new name
4071 for print_it_exception_catchpoint.
4073 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4075 * MAINTAINERS: Add myself for write after approval privileges.
4077 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4079 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4081 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4083 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4085 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4087 * breakpoint.c (save_breakpoints): Verify whether
4088 breakpoint_ops.print_recreate is defined before calling it.
4090 2011-04-11 Gary Benson <gbenson@redhat.com>
4092 Fix failure with --enable-maintainer-mode.
4093 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4095 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4098 * symtab.c (search_symbols): Reorder the KIND description in the
4099 function comment. Remove the unused 4th element of types, types2,
4100 types3 and types4. New gdb_assert on KIND.
4101 (symtab_symbol_info): Remove the unused 4th element of classnames.
4102 New gdb_assert on KIND.
4103 * symtab.h (enum search_domain): New warning in the enum comment.
4104 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4107 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4109 Fix crash of gdb save-index on a STABS file.
4110 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4113 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4115 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4116 * dwarf2read.c: Include ctype.h.
4117 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4119 (dwarf2_add_field): Fix new_field->accessibility by calling
4120 dwarf2_default_access_attribute. Restructure setting accessibility
4122 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4123 is_private and is_protected by calling
4124 dwarf2_default_access_attribute.
4126 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4128 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4129 to the initialization.
4131 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4133 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4136 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4138 Remove support for old Cygwin 1.5 versions.
4139 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4140 function on old Cygwin version.
4141 * windows-nat.c: Remove cygwin version check and always define
4142 __USEWIDE for Cygwin compilation.
4144 2011-04-07 Yao Qi <yao@codesourcery.com>
4146 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4148 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4149 (arm_copy_svc): Remove parameters INSN and TO.
4150 (decode_svc_copro): Update caller.
4151 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4152 from function pointer `copy_svc_os'.
4154 2011-04-07 Yao Qi <yao@codesourcery.com>
4156 * arm-tdep.c (cleanup_branch): Set a correct return address in
4157 LR for ARM and Thumb.
4159 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4162 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4163 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4164 in the function comment, a new note on values compatibility.
4165 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4166 * symtab.h (SYMBOL_HASH_NEXT): New.
4168 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4170 * ppc-linux-nat.c (check_condition): Add len output parameter.
4171 Set it based on the memory region referenced in the condition
4172 expression. Update all callers.
4174 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4176 Fix crash regression on systems featuring .gdb_index.
4177 * objfiles.c (free_objfile): Move the
4178 forget_cached_source_info_for_objfile call earlier. Comment it.
4179 Extend the comment for objfile_free_data.
4181 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4183 Fix regression of displaying the debug format.
4184 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4187 2011-04-04 Tom Tromey <tromey@redhat.com>
4189 * cli/cli-interp.c (struct captured_execute_command_args):
4191 (do_captured_execute_command): Remove.
4192 (safe_execute_command): Use TRY_CATCH.
4193 * cli/cli-script.c (struct wrapped_read_command_file_args):
4195 (wrapped_read_command_file): Remove.
4196 (script_from_file): Use TRY_CATCH.
4197 * exceptions.c (catch_exception): Remove.
4198 * exceptions.h (catch_exception): Remove.
4199 (deprecated_throw_reason): Update comment.
4200 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4201 argument to 'context'.
4202 (mi_execute_command): Use TRY_CATCH.
4203 * remote.c (struct start_remote_args): Remove.
4204 (remote_start_remote): Update; change arguments.
4205 (remote_open_1): Use TRY_CATCH.
4207 2011-04-04 Tom Tromey <tromey@redhat.com>
4209 * tracepoint.c (scope_info): Update.
4210 * symtab.c (decode_line_spec): Update.
4211 * python/python.c (gdbpy_decode_line): Update.
4212 * linespec.h (decode_line_1): Update.
4213 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4214 (decode_compound, find_method, symtab_from_filename)
4215 (decode_variable): Likewise.
4216 * cli/cli-cmds.c (edit_command): Update.
4217 (list_command): Update.
4218 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4220 (create_breakpoint): Update.
4221 (until_break_command): Update.
4222 (addr_string_to_sals): Update.
4223 (decode_line_spec_1): Update.
4225 2011-04-04 Tom Tromey <tromey@redhat.com>
4227 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4228 (do_captured_parse_breakpoint): Remove.
4229 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4230 Use TRY_CATCH directly.
4232 2011-04-04 Tom Tromey <tromey@redhat.com>
4234 * symtab.h (free_symtab): Remove.
4235 (forget_cached_source_info_for_objfile): Declare.
4236 * symmisc.c (free_symtab): Remove.
4237 * source.c (forget_cached_source_info_for_objfile): New function.
4238 (forget_cached_source_info): Use it.
4239 * objfiles.c (free_objfile): Simplify check before calling
4240 clear_current_source_symtab_and_line. Call
4241 forget_cached_source_info_for_objfile.
4243 2011-04-04 Tom Tromey <tromey@redhat.com>
4245 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4246 (new_symtab): Don't set `free_code' on symtab.
4247 (new_linetable): Properly handle size==0.
4248 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4249 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4251 * jv-lang.c (struct jv_per_objfile_data): New.
4252 (jv_per_objfile_free): Free the data.
4253 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4254 (get_java_class_symtab): Set the `dict' field on the
4255 jv_per_objfile_data.
4256 (free_class_block): Remove.
4257 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4260 2011-04-04 Tom Tromey <tromey@redhat.com>
4262 * symfile.c (reread_symbols): Update.
4263 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4265 * objfiles.c (allocate_objfile): Update.
4266 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4268 * cp-namespace.c (lookup_symbol_file): Don't call
4269 lookup_possible_namespace_symbol.
4270 (initialize_namespace_symtab, get_possible_namespace_block)
4271 (free_namespace_block, cp_check_possible_namespace_symbols)
4272 (check_possible_namespace_symbols_loop)
4273 (check_one_possible_namespace_symbol)
4274 (lookup_possible_namespace_symbol): Remove.
4275 (maintenance_cplus_namespace): Replace with notice.
4276 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4278 2011-04-04 Tom Tromey <tromey@redhat.com>
4280 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4281 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4282 * symmisc.c (free_symtab): Don't free debugformat.
4283 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4284 (record_debugformat, record_producer): Document.
4285 * buildsym.c (end_symtab): Don't save debugformat and producer
4287 (end_symtab): Don't free debugformat and producer fields.
4288 (record_debugformat): Don't call xstrdup.
4289 (record_producer): Likewise.
4291 2011-04-04 Tom Tromey <tromey@redhat.com>
4293 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4294 (source_line_charpos, source_charpos_line): Remove.
4296 2011-04-04 Tom Tromey <tromey@redhat.com>
4298 * symtab.h (domain_enum): Split in two...
4299 (enum search_domain): New.
4300 (search_symbols): Update.
4301 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4302 redundant declarations.
4303 (search_symbols): Change 'kind' argument to search_domain.
4305 (print_symbol_info): Likewise.
4306 (symtab_symbol_info): Likewise.
4307 * symfile.h (struct quick_symbol_functions)
4308 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4309 <expand_symtabs_matching>: Likewise.
4310 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4311 (expand_symtabs_matching_via_partial): Update.
4312 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4313 (dw2_expand_symtabs_for_function): Update.
4314 * block.h: Moved anonymous enum...
4315 * defs.h (enum block_enum): ... here. Now named.
4317 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4319 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4320 * version.in: Bump version to 7.3.50.20110403-cvs.
4322 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4324 * NEWS: Create a new section for the next release branch.
4325 Rename the section of the current branch, now that it has
4328 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4330 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4331 for "fpscr" in target description.
4333 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4335 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4336 initialize it. Delay HASH initialization. Strip the part after open
4337 parenthesis for languages with qualifiers. Call do_cleanups.
4339 2011-04-01 Tom Tromey <tromey@redhat.com>
4341 * utils.c (report_command_stats): Don't print `-' for negative
4344 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4346 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4347 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4350 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4352 * breakpoint.h (bpdisp_text): Add declaration.
4353 * breakpoint.c (bpdisp_text): Make non-static.
4354 * ada-lang.c: #include "mi/mi-common.h".
4355 (print_it_exception): Rewrite to improve GDB/MI output.
4357 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4359 * arm-tdep.h (struct address_space): Add forward declaration.
4361 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4363 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4364 * arm-tdep.c (arm_override_mode): New global.
4365 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4366 execution mode heuristics.
4367 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4368 second single-step breakpoint if needed, using
4369 arm_insert_single_step_breakpoint.
4370 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4371 ARM execution mode, do not call thumb_get_next_pc_raw.
4372 (arm_get_next_pc): Encode execution mode in return value. Call
4373 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4374 (arm_insert_single_step_breakpoint): New function.
4375 (arm_software_single_step): Call it.
4376 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4377 argument to return execution mode of sigreturn target.
4378 (arm_linux_syscall_next_pc): Use it.
4379 (arm_linux_copy_svc): Update call.
4380 (arm_linux_software_single_step): Call
4381 arm_insert_single_step_breakpoint.
4383 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4385 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4388 2011-03-31 Tom Tromey <tromey@redhat.com>
4390 * varobj.c (update_dynamic_varobj_children): Properly handle
4391 errors from iterator.
4393 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4395 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4396 struct linkage name twice.
4398 2011-03-31 Tom Tromey <tromey@redhat.com>
4400 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4401 missing ">" to message.
4403 2011-03-31 Tom Tromey <tromey@redhat.com>
4405 * varobj.c (instantiate_pretty_printer): Remove duplicate
4408 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4410 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4411 if neither saved value nor register available (e.g. signal frame).
4413 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4415 * macroexp.c (expand): Avoid uninitialized variable
4418 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4420 * breakpoint.c (break_range_command): Fix typo in comment.
4422 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4423 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4425 Implement support for PowerPC BookE ranged breakpoints.
4426 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4427 * breakpoint.h (struct bp_target_info) <length>: New member
4429 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4430 instead of struct breakpoint as argument, and also add ASPACE
4431 and BP_ADDR arguments. Update all callers.
4432 (struct breakpoint_ops) <print_one_detail>: New method.
4433 (struct breakpoint) <addr_string_range_end>: New member variable.
4434 * breakpoint.c (breakpoint_location_address_match): Add function
4436 (insert_bp_location): Set bl->target_info.length.
4437 (breakpoint_here_p): Call breakpoint_location_address_match.
4438 (moribund_breakpoint_here_p): Likewise.
4439 (regular_breakpoint_inserted_here_p): Likewise.
4440 (breakpoint_thread_match): Likewise.
4441 (bpstat_stop_status): Likewise.
4442 (bpstat_check_location): Move call to
4443 breakpoint_ops.breakpoint_hit to the top.
4444 (print_one_breakpoint_location): Call
4445 breakpoint_ops.print_one_detail if available.
4446 (breakpoint_address_match_range): New function.
4447 (breakpoint_location_address_match): Likewise.
4448 (breakpoint_locations_match): Compare the length field of the
4450 (hw_breakpoint_used_count): Count resources used by all locations
4451 in a breakpoint, and use breakpoint_ops.resources_needed if
4453 (breakpoint_hit_ranged_breakpoint): New function.
4454 (resources_needed_ranged_breakpoint): Likewise.
4455 (print_it_ranged_breakpoint): Likewise.
4456 (print_one_ranged_breakpoint): Likewise.
4457 (print_one_detail_ranged_breakpoint): Likewise.
4458 (print_mention_ranged_breakpoint): Likewise.
4459 (print_recreate_ranged_breakpoint): Likewise.
4460 (ranged_breakpoint_ops): New structure.
4461 (find_breakpoint_range_end): New function.
4462 (break_range_command): Likewise.
4463 (delete_breakpoint): Free addr_string_range_end.
4464 (update_breakpoint_locations): Add SALS_END argument. Update
4465 all callers. Calculate breakpoint length if a non-zero SALS_END
4466 is given. Call breakpoint_locations_match instead of
4467 breakpoint_address_match.
4468 (reset_breakpoint): Find SaL of the end of the range if B is a
4470 (_initialize_breakpoint): Register break-range command.
4471 * defs.h (print_core_address): Add function prototype.
4472 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4474 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4475 (ppc_linux_remove_hw_breakpoint): Likewise.
4476 (_initialize_ppc_linux_nat): Initialize
4477 to_ranged_break_num_registers.
4478 * target.c (update_current_target): Add comment about
4479 to_ranged_break_num_registers.
4480 (target_ranged_break_num_registers): New function.
4481 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4483 (target_ranged_break_num_registers): Add function prototype.
4484 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4485 * utils.c (print_core_address): ... here.
4487 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4489 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4490 variable compiler warning.
4492 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4494 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4496 (re_set_breakpoint): ... to here ...
4497 (addr_string_to_sals): ... and here.
4499 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4501 * Makefile.in (SFILES): Add missing C sources.
4502 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4503 Add missing headers.
4505 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4507 * .gitignore: New file.
4509 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4511 * NEWS: Mention new cfi device simulation.
4513 2011-03-29 Tom Tromey <tromey@redhat.com>
4515 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4516 otherwise anonymous types.
4517 (dwarf2_name): Likewise.
4518 * valops.c (value_struct_elt_for_reference): Refine artificial
4519 type logic. Call error if j==-1.
4521 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4523 Fix false GCC warning.
4524 * infcall.c (find_function_addr): Initialize funaddr.
4526 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4528 Fix mingw compilation with --enable-targets=all.
4529 * remote-mips.c (gdb_usleep.h): Include header.
4530 (mips_enter_debug): Use gdb_usleep instead of sleep.
4532 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4534 Support resolution of STT_GNU_IFUNC via breakpoints.
4535 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4536 bp_gnu_ifunc_resolver_return.
4537 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4538 the loop. Support bp_gnu_ifunc_resolver and
4539 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4540 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4542 (bptype_string, print_one_breakpoint_location): Support
4543 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4544 (user_settable_breakpoint): Return true also for
4545 bp_gnu_ifunc_resolver.
4546 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4547 bp_gnu_ifunc_resolver_return.
4548 (set_breakpoint_location_function): New parameter explicit_loc,
4549 describe it. Call find_pc_partial_function_gnu_ifunc with new
4550 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4551 EXPLICIT_LOC is not set.
4552 (set_raw_breakpoint): Set EXPLICIT_LOC for
4553 set_breakpoint_location_function.
4554 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4555 set_breakpoint_location_function.
4556 (mention): Support bp_gnu_ifunc_resolver and
4557 bp_gnu_ifunc_resolver_return.
4558 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4559 set_breakpoint_location_function.
4560 (update_breakpoint_locations): Remove static.
4561 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4562 bp_gnu_ifunc_resolver_return.
4563 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4564 bp_gnu_ifunc_resolver_return.
4565 (update_breakpoint_locations): New declaration.
4566 * elfread.c: Include gdbthread.h and regcache.h.
4567 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4569 (elf_gnu_ifunc_fns): Install them.
4570 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4571 (stub_gnu_ifunc_resolver_return_stop): New functions.
4572 (stub_gnu_ifunc_fns): Install them.
4573 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4574 and gnu_ifunc_resolver_return_stop.
4575 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4577 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4579 STT_GNU_IFUNC reader implementation.
4580 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4581 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4582 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4583 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4584 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4585 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4586 (elf_gnu_ifunc_resolve_addr): New.
4587 (elf_symfile_read): Call elf_rel_plt_read.
4588 (elf_gnu_ifunc_fns): New.
4589 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4590 Install elf_gnu_ifunc_fns.
4591 * infcall.c (find_function_return_type): New function.
4592 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4593 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4594 (stub_gnu_ifunc_resolve_name): New functions.
4595 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4596 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4597 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4599 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4601 Code cleanup for later STT_GNU_IFUNC support.
4602 * infcall.c (find_function_addr): Remove variable code, use explicit
4603 dereferences for it. Move VALUE_TYPE initialization later.
4605 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4607 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4608 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4609 (clear_pc_function_cache): Clear it.
4610 (find_pc_partial_function): Rename to ...
4611 (find_pc_partial_function_gnu_ifunc): ... this function. New
4612 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4613 (find_pc_partial_function): New wrapper for this function.
4614 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4616 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4618 GDB internal type support for STT_GNU_IFUNC.
4619 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4620 (elf_symtab_read): Set mst_text_gnu_ifunc for
4621 BSF_GNU_INDIRECT_FUNCTION.
4622 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4623 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4624 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4625 nodebug_got_plt_symbol.
4626 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4627 (TYPE_GNU_IFUNC): New.
4628 (struct main_type): New field flag_gnu_ifunc.
4629 (struct builtin_type): New field builtin_func_func.
4630 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4631 nodebug_got_plt_symbol.
4632 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4633 (in_gnu_ifunc_stub): New.
4634 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4636 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4637 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4638 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4640 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4641 * symtab.c (search_symbols): Likewise.
4642 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4643 and mst_slot_got_plt.
4644 (in_gnu_ifunc_stub): New declaration.
4646 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4648 Support a ring of related breakpoints.
4649 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4650 other functions, add gdb_assert.
4651 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4652 watchpoint_del_at_next_stop.
4653 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4654 (bpstat_stop_status): Handle ring in related_breakpoint.
4655 (set_raw_breakpoint_without_location): Initialize ring in
4657 (delete_breakpoint): Handle ring in related_breakpoint, use
4658 watchpoint_del_at_next_stop.
4659 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4661 2011-03-28 Tom Tromey <tromey@redhat.com>
4664 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4665 with `language_minimal'.
4667 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4669 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4670 instead of checking for STT_ARM_TFUNC symbol type.
4672 2011-03-25 Tom Tromey <tromey@redhat.com>
4674 * linespec.c (symbol_found): Restore line-based result for
4675 non-LOC_LABEL symbols.
4677 2011-03-25 Kai Tietz <ktietz@redhat.com>
4679 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4680 instead of strcmp for comparison.
4681 (tui_source_is_displayed): Likewise.
4682 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4684 2011-03-24 Mark Wielaard <mjw@redhat.com>
4686 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4688 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4689 (find_partial_die_in_comp_unit): Likewise in comment.
4690 (read_attribute_value): Likewise.
4691 (lookup_die_type): Likewise.
4692 (dwarf_form_name): Likewise.
4693 (dump_die_shallow): Likewise.
4694 (follow_die_ref_or_sig): Likewise.
4696 2011-03-24 Tom Tromey <tromey@redhat.com>
4698 PR breakpoints/11816:
4699 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4700 (decode_compound): Update.
4701 (find_function_symbol): New function.
4702 (decode_dollar): Update.
4703 (decode_label): Add 'function_symbol' parameter. Handle
4704 function-relative labels.
4705 (decode_variable): Update.
4706 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4707 not its line. Set `special_display' and canonical name for
4710 2011-03-24 Tom Tromey <tromey@redhat.com>
4712 * linespec.h (struct linespec_result) <special_display>: New
4714 * breakpoint.h (struct breakpoint) <display_canonical>: New
4716 * breakpoint.c (print_breakpoint_location): Respect
4718 (create_breakpoint_sal): Add 'display_canonical' parameter.
4719 (create_breakpoints_sal): Update.
4720 (create_breakpoint): Update.
4722 2011-03-24 Tom Tromey <tromey@redhat.com>
4724 * symtab.c (decode_line_spec): Update.
4725 * linespec.c (build_canonical_line_spec): Change type of
4727 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4728 (find_method, decode_all_digits, decode_dollar, decode_label)
4729 (symbol_found): Likewise.
4730 (init_linespec_result): New function.
4731 * breakpoint.c (struct captured_parse_breakpoint_args)
4732 <canonical_p>: New field, replaces addr_string_p.
4733 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4735 (parse_breakpoint_sals): Likewise.
4736 (do_captured_parse_breakpoint): Update.
4737 (create_breakpoint): Use struct linespec_result.
4738 (until_break_command): Update.
4739 (breakpoint_re_set_one): Update.
4740 (decode_line_spec_1): Update.
4741 * linespec.h (struct linespec_result): New.
4742 (init_linespec_result): Declare.
4744 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4746 * regcache.c (regcache_raw_read): If the target didn't supply a
4747 given raw register, mark it as unavailable.
4749 2011-03-23 Kai Tietz <ktietz@redhat.com>
4751 * breakpoint.c (clear_command): Use filename_cmp
4752 instead of strcmp for comparison.
4753 * buildsym.c (watch_main_source_file_lossage): Likewise.
4754 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4755 checking just for slash.
4756 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4757 strrchr and filename_cmp instead of strcmp for filenames.
4758 (add_old_header_file): Use filename_cmp
4759 instead of strcmp for comparison.
4760 * exec.c (exec_set_section_address): Likewise.
4761 * macrotab.c (macro_lookup_inclusion): Likewise.
4762 (macro_lookup_inclusion): Likewise.
4763 * elfread.c (_initialize_elfread): Likewise.
4764 (elfstab_offset_sections): Likewise.
4765 (elfstab_offset_sections): Use lbasename instead of
4767 * mdebugread.c (parse_partial_symbols): Likewise.
4768 (arse_partial_symbols): Use filename_(n)cmp instead of
4769 str(n)cmp for comparison.
4770 * minsyms.c (lookup_minimal_symbol): Likewise.
4771 * psymtab.c (read_psymtabs_with_filename): Likewise.
4772 * solib.c (solib_read_symbols): Likewise.
4773 (reload_shared_libraries_1): Likewise.
4774 * symmisc.c (maintenance_print_symbols): Likewise.
4775 * symfile.c (separate_debug_file_exists): Likewise.
4776 (reread_symbols): Likewise.
4777 (find_separate_debug_file_by_debuglink): Likewise.
4778 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4779 * source.c (add_path): Likewise.
4780 * symtab.c (filename_seen): Likewise.
4781 (file_matches): Likewise.
4782 (print_symbol_info): Likewise.
4783 (maybe_add_partial_symtab_filename): Likewise.
4784 (make_source_files_completion_list): Likewise.
4785 * xml-syscall.c (init_sysinfo): Likewise.
4786 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4787 IS_DIR_SEPARATOR for checking for trailing path separator.
4789 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4791 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4792 label abort_expression.
4793 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4794 DWARF_VALUE_OPTIMIZED_OUT.
4796 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4799 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4800 to linkage_name. Invert its value. Update the function comment.
4801 (c_type_print_varspec_suffix): Invert it at the caller.
4802 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4804 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4806 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4807 errors when reading the `stop_pc'.
4808 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4811 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4813 * NEWS: Document gdb.Write stream keyword.
4815 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4818 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4819 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4820 (dwarf2_add_field): Fix new_field->accessibility for
4821 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4823 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4827 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4828 other error classes. Do not print stack trace.
4830 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4832 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4833 (dwarf2_add_field): Fix new_field->accessibility for
4834 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4836 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4838 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4839 encountering a load via a non-SP register.
4841 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4843 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4844 field in returned unwinder.
4846 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4848 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4850 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4852 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4855 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4857 * frame.c (frame_unwind_register): Throw an error if unwinding the
4859 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4860 an unwind stop reason.
4861 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4862 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4863 UNWIND_UNAVAILABLE>: New.
4864 * inline-frame.c (inline_frame_unwind): Install
4865 default_frame_unwind_stop_reason.
4866 * frame-unwind.c: Include "exceptions.h".
4867 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4868 (default_frame_unwind_stop_reason): New.
4869 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4870 (default_frame_unwind_stop_reason): Declare.
4871 (struct frame_unwind) <stop_reason>: New function pointer.
4873 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4874 * dwarf2-frame.c: Include exceptions.h.
4875 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4876 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4877 computing the CFA. If such an error was thrown, set
4878 unavailable_retaddr.
4879 (dwarf2_frame_unwind_stop_reason): New.
4880 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4882 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4883 (dwarf2_signal_frame_unwind): Ditto.
4885 * amd64-tdep.c: Include "exceptions.h".
4886 (struct amd64_frame_cache): New field "base_p".
4887 (amd64_init_frame_cache): Clear it.
4888 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4889 Avoid reading registers with functions that throw if the register
4890 is not necessary to compute the frame base.
4891 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4892 swallowing NOT_AVAILABLE_ERROR.
4893 (amd64_frame_unwind_stop_reason): New.
4894 (amd64_frame_this_id): Don't build a frame id if the frame base
4896 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4897 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4898 base_p if the frame base was computable.
4899 (amd64_sigtramp_frame_unwind_stop_reason): New.
4900 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4901 frame base was unavailable.
4902 (amd64_sigtramp_frame_unwind): Install
4903 amd64_sigtramp_frame_unwind_stop_reason.
4904 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4905 base_p if the frame base was computable.
4906 (amd64_epilogue_frame_unwind_stop_reason): New.
4907 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4908 frame base was unavailable.
4909 (amd64_epilogue_frame_unwind): Install
4910 amd64_epilogue_frame_unwind_stop_reason.
4911 * i386-tdep.c: Include "exceptions.h".
4912 (struct i386_frame_cache): New field "base_p".
4913 (i386_init_frame_cache): Clear it.
4914 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
4915 Avoid reading registers with functions that throw if the register
4916 is not necessary to compute the frame base.
4917 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4918 swallowing NOT_AVAILABLE_ERROR.
4919 (i386_frame_unwind_stop_reason): New.
4920 (i386_frame_this_id): Don't build a frame id if the frame base was
4922 (i386_frame_prev_register): Handle unavailable SP.
4923 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
4924 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4925 base_p if the frame base was computable.
4926 (i386_epilogue_frame_unwind_stop_reason): New.
4927 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
4928 base was unavailable.
4929 (i386_epilogue_frame_unwind): Install
4930 i386_epilogue_frame_unwind_stop_reason.
4931 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4932 base_p if the frame base was computable.
4933 (i386_sigtramp_frame_unwind_stop_reason): New.
4934 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
4935 base was unavailable.
4936 (i386_sigtramp_frame_unwind): Install
4937 i386_sigtramp_frame_unwind_stop_reason.
4938 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
4939 type's size, not the register's.
4940 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
4942 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
4943 default_frame_unwind_stop_reason.
4944 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
4945 (alpha_heuristic_frame_unwind): Ditto.
4946 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
4947 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
4948 * avr-tdep.c (avr_frame_unwind): Ditto.
4949 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
4951 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
4952 * frv-tdep.c (frv_frame_unwind): Ditto.
4953 * h8300-tdep.c (h8300_frame_unwind): Ditto.
4954 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
4955 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
4956 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
4957 (hppa_stub_frame_unwind): Ditto.
4958 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
4959 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
4960 (ia64_libunwind_frame_unwind)
4961 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
4962 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
4963 * lm32-tdep.c (lm32_frame_unwind): Ditto.
4964 * m32c-tdep.c (m32c_unwind): Ditto.
4965 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
4966 * m32r-tdep.c (m32r_frame_unwind): Ditto.
4967 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
4968 * m68k-tdep.c (m68k_frame_unwind): Ditto.
4969 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
4970 * m88k-tdep.c (m88k_frame_unwind): Ditto.
4971 * mep-tdep.c (mep_frame_unwind): Ditto.
4972 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
4973 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
4974 (mips_stub_frame_unwind): Ditto.
4975 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
4976 * moxie-tdep.c (moxie_frame_unwind): Ditto.
4977 * mt-tdep.c (mt_frame_unwind): Ditto.
4978 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
4979 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
4980 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
4981 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
4982 (s390_sigtramp_frame_unwind): Ditto.
4983 * score-tdep.c (score_prologue_unwind): Ditto.
4984 * sh-tdep.c (sh_frame_unwind): Ditto.
4985 * sh64-tdep.c (sh64_frame_unwind): Ditto.
4986 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
4987 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
4988 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
4989 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
4990 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
4991 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
4992 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
4993 (sparc64obsd_trapframe_unwind): Ditto.
4994 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
4995 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
4996 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
4997 * v850-tdep.c (v850_frame_unwind): Ditto.
4998 * vax-tdep.c (vax_frame_unwind): Ditto.
4999 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5000 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5001 * xtensa-tdep.c (xtensa_unwind): Ditto.
5003 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5005 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5006 there's always a frame. Use get_frame_pc_if_available instead of
5007 get_frame_pc, and if there's no PC available, don't look up a
5010 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5012 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5015 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5017 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5020 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5022 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5023 * frame.c (frame_unwind_caller_pc_if_available): New.
5024 * stack.c (frame_info): Handle unavailable PC.
5026 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5028 * frame.c (frame_unwind_pc): Rename to ...
5029 (frame_unwind_pc_if_available): ... this. New `pc' output
5030 parameter. Change return type to int. Gracefully handle
5031 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5032 happened, or 1 otherwise.
5033 (frame_unwind_pc): Reimplement on top of
5034 frame_unwind_pc_if_available.
5035 (get_frame_func): Rename to ...
5036 (get_frame_func_if_available): New `pc' output parameter. Change
5037 return type to int. Gracefully handle the PC not being available.
5038 (get_frame_func): Reimplement on top of
5039 get_frame_func_if_available.
5040 (select_frame): Handle the PC being unavailable.
5041 (get_prev_frame): Handle the PC being unavailable.
5042 (get_frame_pc_if_available): New.
5043 (get_frame_address_in_block_if_available): New.
5044 (find_frame_sal): Handle the frame PC not being available.
5045 * frame.h (get_frame_pc_if_available): Declare.
5046 (get_frame_address_in_block_if_available): Declare.
5047 (get_frame_func_if_available): Declare.
5048 * stack.c (print_frame_info): Handle the PC being unavailable.
5049 (find_frame_funname): Ditto.
5050 (print_frame): Handle the PC being unavailable.
5051 (get_frame_language): Ditto.
5052 * blockframe.c (get_frame_block): Ditto.
5053 * macroscope.c (default_macro_scope): Ditto.
5054 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5056 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5058 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5059 NOT_AVAILABLE_ERROR when evaluating the location expression.
5061 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5063 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5064 returning that the register piece is unavailable/optimized out.
5065 (write_pieced_value): Handle get_frame_register_bytes returning
5066 that the register piece is unavailable/optimized out when doing a
5067 read-modify write of a bitfield.
5068 * findvar.c (value_from_register): Handle get_frame_register_bytes
5069 returning that the register piece is unavailable/optimized out.
5070 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5071 and `unavailablep'. Throw error on bad debug info. Use
5072 frame_register instead of frame_register_read, to fill in the new
5074 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5076 * valops.c: (value_assign): Adjust, and handle
5077 get_frame_register_bytes failing.
5078 * spu-tdep.c: Include exceptions.h.
5079 (spu_software_single_step): Adjust, and handle
5080 get_frame_register_bytes failing.
5081 (spu_get_longjmp_target): Ditto.
5082 * gdbarch.sh (register_to_value): Change to return int. New
5083 parameters `optimizedp' and `unavailablep'.
5084 * gdbarch.h, gdbarch.c: Regenerate.
5085 * i386-tdep.c (i386_register_to_value): Adjust to new
5086 gdbarch_register_to_value interface.
5087 * i387-tdep.c (i387_register_to_value): Ditto.
5088 * i387-tdep.h (i387_register_to_value): Ditto.
5089 * alpha-tdep.c (alpha_register_to_value): Ditto.
5090 * ia64-tdep.c (ia64_register_to_value): Ditto.
5091 * m68k-tdep.c (m68k_register_to_value): Ditto.
5092 * mips-tdep.c (mips_register_to_value): Ditto.
5093 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5095 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5097 * findvar.c (value_of_register): Mark the value as unavailable, if
5098 the register is unavailable.
5099 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5100 (frame_register): New `unavailablep' parameter.
5101 (frame_register_read): Update comment.
5102 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5103 Set it if the register is unavailable. If the register is
5104 unavailable, clear the output buffer.
5105 (frame_register): New `unavailablep' parameter. Pass it down.
5106 (frame_unwind_register): Adjust.
5107 (put_frame_register): Adjust.
5108 (frame_register_read): Adjust. Also return false if the register
5110 (frame_register_unwind_location): Adjust.
5111 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5112 is unavailable, mark the value accordingly.
5113 * stack.c (frame_info): Handle unavailable registers.
5115 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5117 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5118 simplify, using regcache_cooked_read.
5120 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5122 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5123 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5124 (regcache_raw_read_unsigned, regcache_raw_read_part)
5125 (regcache_cooked_read, regcache_cooked_read_signed)
5126 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5127 (regcache_cooked_read_ftype): Change return to enum
5129 * regcache.c: Include exceptions.h
5130 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5131 (do_cooked_read): Change return to enum register_status. Always
5132 forward to regcache_cooked_read.
5133 (regcache_raw_read): Change return to enum register_status. If
5134 the register is not REG_VALID, memset the buffer. Return the
5136 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5137 return the register's status.
5138 (regcache_raw_read_unsigned): Ditto.
5139 (regcache_cooked_read): Change return to enum register_status.
5140 Assert that with read-only regcaches, the register's status must
5141 be known. If the regcache is read-only, and the register is not
5142 REG_VALID, memset the buffer. Return the register's status.
5143 (regcache_cooked_read_signed): Change return to enum
5144 register_status. Handle non-REG_VALID registers and return the
5146 (regcache_cooked_read_unsigned): Change return to enum
5147 register_status. Handle non-REG_VALID registers and return the
5149 (regcache_xfer_part, regcache_raw_read_part)
5150 (regcache_cooked_read_part): Change return to enum
5151 register_status. Return the register's status.
5152 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5154 (regcache_dump): Handle unavailable cooked registers.
5155 * frame.c (do_frame_register_read): Adjust interface to match
5156 regcache_cooked_read_ftype.
5157 * gdbarch.sh (pseudo_register_read): Change return to enum
5159 * gdbarch.h, gdbarch.c: Regenerate.
5161 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5163 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5164 register_status. If reading a raw register indicates the raw
5165 register is not valid, return the raw register's status,
5166 otherwise, return REG_VALID.
5167 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5168 register_status. Handle non-REG_VALID raw registers and return
5169 the register's status.
5170 * arm-tdep.c (arm_neon_quad_read)
5171 (arm_pseudo_read): Change return to enum register_status. Handle
5172 non-REG_VALID raw registers and return the register's status.
5173 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5174 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5175 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5176 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5177 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5179 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5180 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5181 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5182 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5183 (m32c_pseudo_register_read): Change return to enum
5184 register_status. Adjust.
5185 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5186 enum register_status. Return the register's status.
5187 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5188 register_status. Return the register's status.
5189 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5190 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5191 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5192 * rs6000-tdep.c (move_ev_register_func): New typedef.
5193 (e500_move_ev_register): Use it. Change return to enum
5194 register_status. Return the register's status.
5195 (do_regcache_raw_read): New function.
5196 (do_regcache_raw_write): New function.
5197 (e500_pseudo_register_read): Change return to enum
5198 register_status. Return the register's status. Use
5199 do_regcache_raw_read.
5200 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5201 (dfp_pseudo_register_read): Change return to enum register_status.
5202 Return the register's status.
5203 (vsx_pseudo_register_read): Ditto.
5204 (efpr_pseudo_register_read): Ditto.
5205 (rs6000_pseudo_register_read): Ditto.
5206 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5207 register_status. Return the register's status.
5208 * sh64-tdep.c (pseudo_register_read_portions): New function.
5209 (sh64_pseudo_register_read): Change return to enum
5210 register_status. Use pseudo_register_read_portions. Return the
5212 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5213 register_status. Return the register's status.
5214 * sh-tdep.c (pseudo_register_read_portions): New function.
5215 (sh_pseudo_register_read): Change return to enum register_status.
5216 Use pseudo_register_read_portions. Return the register's status.
5217 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5218 enum register_status. Return the register's status.
5219 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5220 * spu-tdep.c (spu_pseudo_register_read_spu)
5221 (spu_pseudo_register_read): Ditto.
5222 * xtensa-tdep.c (xtensa_register_read_masked)
5223 (xtensa_pseudo_register_read): Ditto.
5224 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5226 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5228 * python/py-value.c (valpy_getitem): Fix formatting of error function
5231 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5233 ARI fixes: Add missing internationalization markups throughout
5235 * darwin-nat-info.c: Ditto.
5238 * mi/mi-main.c: Ditto.
5240 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5242 ARI fixes: Add missing internationalization markups throughout
5245 * cp-name-parser.y: Ditto.
5248 * objc-exp.y: Ditto.
5251 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5253 ARI fixes: Messages should have no trailing new lines.
5254 * darwin-nat.c (mach_check_error): Remove trailing new line from
5255 warning function call message.
5256 * record.c (bfdcore_read): Idem for error call.
5258 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5260 * common/signals.c (target_signal_from_host): Add _ markup to error
5261 function call message.
5262 (target_signal_to_host): Add _ markup and remove trailing new line
5263 from warning call message.
5264 (target_signal_from_command): Add _ markup to error function call
5267 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5271 * python/python.c (gdbpy_write): Accept a stream argument and
5272 operate to the appropriate stream.
5273 (gdbpy_flush): Likewise.
5274 (_initialize_python): Add stream constants.
5275 (finish_python_initialization): Add GdbOutputErrorFile class.
5277 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5279 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5281 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5283 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5284 to store_signed_integer. Add debug message when relocating CALL
5285 instructions. Fix formatting of debug message.
5286 * i386-tdep.c (i386_relocate_instruction): Ditto.
5288 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5290 * target.h (struct target_ops): Remove to_lookup_symbol field.
5291 (target_lookup_symbol): Delete macro.
5292 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5293 (update_current_target, setup_target_debug): Remove handling
5294 of to_lookup_symbol target_ops field.
5295 * ada-tasks.c (get_known_tasks_addr): Remove use of
5296 target_lookup_symbol.
5297 * coffread.c (coff_symtab_read): Likewise.
5298 * dbxread.c (read_dbx_symtab): Ditto.
5300 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5303 * configure.ac: Add getthrds declaration check.
5304 * configure, config.in: Regenerate.
5305 * aix-thread.c (getthrds): Declare only if not already declared
5306 in procinfo.h. More declaration out of get_signaled_thread to
5309 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5311 * python/py-symtab.c: Populate symtab_object_methods,
5313 (stpy_is_valid): New function.
5314 (salpy_is_valid): Ditto.
5315 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5316 (sympy_is_valid): New function.
5317 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5318 (objfpy_is_valid): New function.
5319 * python/py-inferior.c: Populate inferior_object_methods.
5320 (infpy_is_valid): New function.
5321 * python/py-infthread.c: Populate thread_object_methods.
5322 (thpy_is_valid): New function.
5323 * python/py-block.c: Declare block_object_methods. Populate. Declare
5324 block_iterator_object_methods. Populate.
5325 (blpy_is_valid): New function.
5326 (blpy_iter_is_valid): Ditto.
5328 2011-03-16 Keith Seitz <keiths@redhat.com>
5330 * linespec.c (find_methods): Canonicalize NAME before looking
5332 (name_end): New function.
5333 (keep_name_info): New function.
5334 (decode_line_1): Use keep_name_info.
5335 (decode_compound): Likewise.
5336 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5337 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5340 * linespec.c (locate_first_half): Keep overload information, too.
5341 (decode_compound): Use a string to represent break characters
5343 If P points to a break character, do not increment it.
5344 For C++ and Java, keep overload information and relevant keywords.
5345 If we cannot find a symbol, search the minimal symbols.
5348 * linespec.c (decode_compound): Rename SAVED_ARG to
5350 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5352 Pass a valid block to lookup_symbol.
5353 (lookup_prefix_sym): Likewise.
5354 (find_method): Construct search name based on SYM_CLASS instead
5356 * psymtab.c (lookup_partial_symbol): Add language parameter.
5357 (lookup_symbol_aux_psymtabs): Likewise.
5358 Don't assume that the psymtab we found was the right one. Search
5359 for the desired symbol in the symtab to be certain.
5360 (psymtab_search_name): New function.
5361 (lookup_partial_symbol): Use psymtab_search_name.
5362 Add language parameter.
5363 (read_symtabs_for_function): Add language parameter and pass to
5364 lookup_partial_symbol.
5365 (find_symbol_file_from_partial): Likewise.
5367 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5370 * dwarf2read.c (noop_record_line): New function.
5371 (dwarf_decode_lines): Ignore line tables for GCd functions.
5373 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5375 Fix ARI warnings about new lines at the end of messages, which
5376 are unneeded as there is a new line added at the end of the message
5378 * darwin-nat.c (darwin_stop_inferior): Ditto.
5379 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5380 * dfp.c (decimal_to_number): Ditto.
5381 * exec.c (print_section_info): Ditto.
5382 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5383 * osdata.c (get_osdata): Ditto.
5384 * record.c (bfdcore_write): Ditto.
5385 * remote-mips.c (mips_readchar): Ditto.
5386 * remote.c (read_ptid): Ditto.
5387 * ser-mingw.c (ser_windows_raw): Ditto.
5388 * tracepoint.c (add_local_symbols): Ditto.
5389 * windows-nat.c (fake_create_process): Ditto.
5391 2011-03-16 Tom Tromey <tromey@redhat.com>
5393 * tracepoint.c (stop_tracing): Don't declare.
5394 * event-top.c (after_char_processing_hook): Add `(void)'.
5396 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5398 * NEWS: Add Parameter sub-classing description.
5400 2011-03-16 Kai Tietz <ktietz@redhat.com>
5402 * MAINTAINERS: Update my e-mail address.
5404 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5406 * MAINTAINERS: Add myself for write after approval privileges.
5408 2011-03-15 Michael Snyder <msnyder@vmware.com>
5410 * frame.c (find_frame_sal): Assert sym is not null.
5412 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5414 * objc-lang.c (selectors_info): Check strchr for null result.
5416 * stabsread.c (define_symbol): Guard against bad stabstring input.
5418 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5420 Remove trailing spaces and tabulations from pascal language
5425 p-valprint.c: Ditto.
5427 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5429 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5430 than LOW. Comment it.
5431 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5432 HIGHPC not strictly higher than LOWPC.
5434 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5436 Fix formatting of function declarations returning a pointer in
5438 * varobj.c (varobj_add_child): Ditto.
5439 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5440 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5442 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5444 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5445 for the "generic" vector ABI used with GCC 4.3 and later.
5446 (ppc64_sysv_abi_return_value): Likewise.
5448 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5450 * infcall.c (call_function_by_hand): Function return value is
5451 always a non_lval, even when using struct_return.
5453 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5455 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5456 (map_display_numbers): New.
5457 (do_delete_display): New.
5458 (undisplay_command): Use map_display_numbers.
5459 (do_enable_disable_display): New.
5460 (enable_disable_display_command): New function.
5461 (enable_display): Delete.
5462 (enable_display_command): New.
5463 (disable_display_command): Reimplement.
5464 (_initialize_printcmd): Adjust "enable display" command to use
5465 `enable_display_command' as callback.
5467 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5469 * NEWS: Add Python breakpoint 'stop' operation.
5471 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5473 * NEWS: Delete duplicate entry. Fix typo.
5475 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5477 Fix ARI warning about function names in first column.
5478 Put prototype declaration on same line as return type.
5479 * objc-exp.y: Ditto.
5481 * python/py-stopevent.h: Ditto.
5482 For long function names, split parameters to
5483 allow function name on same line as return type.
5484 * solib-pa64.c: Ditto.
5487 For long function declaration, use single line.
5488 * hppa-tdep.h: Ditto.
5489 * inferior.h: Ditto.
5491 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5493 * python/python.h: Declare gdbpy_should_stop and
5494 gdbpy_breakpoint_has_py_cond.
5495 * python/python.c: Add python.h to includes. Remove python.h from
5496 HAVE_PYTHON definition
5497 (gdbpy_should_stop): New dummy function.
5498 (gdbpy_breakpoint_has_py_cond): New dummy function.
5499 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5500 sub-classing capabilities.
5501 (gdbpy_should_stop): New function.
5502 (gdbpy_breakpoint_has_py_cond): New function.
5503 (local_setattro): New function.
5504 * breakpoint.c (condition_command): Add check for Python 'stop'
5506 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5507 operation function as part of stop/continue tests.
5509 2011-03-14 Tom Tromey <tromey@redhat.com>
5512 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5513 (needs_frame_dwarf_call): Likewise.
5515 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5517 Fix ARI warning about functions without parameters that do not
5519 * breakpoint.c (all_tracepoints): Replace () by (void).
5520 * f-exp.y (match_string_literal): Ditto.
5522 * m2-exp.y (yylex): Ditto.
5523 * mep-tdep.c (current_me_module): Ditto.
5524 (current_options): Ditto.
5525 (current_cop_data_bus_width): Ditto.
5526 (current_cr_names): Ditto.
5527 (current_cr_is_float): Ditto.
5528 (current_ccr_names): Ditto.
5529 * objc-exp.y (yylex): Ditto.
5530 * p-exp.y (yylex): Ditto.
5531 * remote.c (send_interrupt_sequence): Ditto.
5532 * tracepoint.c (current_trace_status): Ditto.
5533 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5534 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5536 2011-03-11 Michael Snyder <msnyder@vmware.com>
5538 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5539 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5540 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5541 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5542 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5544 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5545 (delete_async_event_handler): Ditto.
5547 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5549 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5551 * top.c (set_verbose): Assert showcmd was found.
5553 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5555 * xtensa-tdep.c (warning_once): Correct style issues.
5557 2011-03-11 Yao Qi <yao@codesourcery.com>
5559 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5561 2011-03-11 Andreas Schwab <schwab@redhat.com>
5563 * common/aclocal.m4: Remove.
5565 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5567 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5568 (xtensa_write_register, xtensa_read_register): Likewise.
5569 (xtensa_hextochar): Removed.
5570 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5572 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5574 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5575 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5576 (xtensa_alloc_frame_cache): Add initialization for new fields.
5577 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5578 (warning_once): New function.
5579 (xtensa_insn_kind): New item c0opc_and.
5580 (call0_classify_opcode): Add the case for AND instruction.
5581 (call0_track_op): Change arguments. New local variable litbase.
5582 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5583 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5585 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5586 (call0_analyze_prologue): Update the comments. Change arguments.
5587 Add the variety of updates to handle extended prologues, which now can
5588 conduct dynamic stack adjustments.
5589 (call0_frame_cache): Likewise.
5590 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5591 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5593 2011-03-10 Michael Snyder <msnyder@vmware.com>
5595 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5596 (cmd_qtframe): Ditto.
5597 (cmd_qtbuffer): Ditto.
5598 (cmd_bigqtbuffer): Ditto.
5600 2011-03-10 Tom Tromey <tromey@redhat.com>
5602 * tracepoint.c (trace_actions_command): Update.
5603 * thread.c (thread_apply_command): Update.
5604 * reverse.c (delete_bookmark_command): Update.
5605 (bookmarks_info): Update.
5606 * printcmd.c (undisplay_command): Update.
5607 * memattr.c (mem_enable_command): Update.
5608 (mem_disable_command): Update.
5609 (mem_delete_command): Update.
5610 * inferior.c (detach_inferior_command): Update.
5611 (kill_inferior_command): Update.
5612 (remove_inferior_command): Update.
5613 * cli/cli-utils.h (struct get_number_or_range_state): New.
5614 (init_number_or_range): Declare.
5615 (get_number_or_range): Update.
5616 * cli/cli-utils.c (init_number_or_range): New function.
5617 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5619 (number_is_in_list): Update.
5620 * breakpoint.h (get_tracepoint_by_number): Update.
5621 * breakpoint.c (map_breakpoint_numbers): Update for change to
5622 get_number_or_range.
5623 (find_location_by_number): Use get_number, not
5624 get_number_or_range.
5625 (trace_pass_set_count): New function.
5626 (trace_pass_command): Update for change to get_number_or_range.
5628 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5631 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5633 * python/py-param.c (add_setshow_generic): Add set/show callback
5634 parameters. Register Python object context.
5635 (get_show_value): New function.
5636 (get_set_value): New function.
5637 (call_doc_function): New function.
5638 (get_doc_string): Move behind get_show_value/get_set_value.
5640 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5642 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5644 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5646 * xtensa-tdep.c (xtensa_read_register): Add comment.
5647 (xtensa_write_register): Likewise.
5648 (xtensa_hextochar): Add comment and update to match coding conventions.
5649 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5650 (execute_l32e, execute_s32e, execute_code): Update comments.
5651 (xtensa_exception_handler_t): Update to match coding conventions.
5652 (xtensa_insn_kind): Likewise.
5654 2011-03-09 Michael Snyder <msnyder@vmware.com>
5656 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5658 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5660 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5662 2011-03-09 Tom Tromey <tromey@redhat.com>
5664 * thread.c (restore_selected_frame): Handle frame_level == -1.
5665 (make_cleanup_restore_current_thread): Use
5666 get_selected_frame_if_set.
5667 * frame.h (get_selected_frame_if_set): Declare.
5668 * frame.c (get_selected_frame_if_set): New function.
5670 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5672 * cli/cli-cmds.c (shell_escape): Use lbasename.
5673 * coffread.c (coff_start_symtab): Constify parameter.
5674 (complete_symtab): Constify `name' parameter.
5675 (coff_symtab_read): Constify `filestring' local.
5676 (coff_getfilename): Constify return and `result' local.
5678 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5679 * linux-fork.c (info_checkpoints_command): Use lbasename.
5680 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5681 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5682 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5683 * procfs.c (procfs_make_note_section): Use lbasename.
5684 * tui/tui-io.c (printable_part): Constity return and parameter.
5686 (print_filename): Constify parameters, and local `s'.
5687 (tui_rl_display_match_list): Constify local `temp'.
5689 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5692 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5693 Fix DWARF-3+ DW_AT_accessibility default assumption.
5694 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5695 cu->header.version >= 3.
5697 2011-03-09 Yao Qi <yao@codesourcery.com>
5699 * common/Makefile.in: Remove.
5700 * common/configure: Remove.
5701 * common/configure.ac: Remove.
5703 2011-03-09 Yao Qi <yao@codesourcery.com>
5706 2011-02-11 Yao Qi <yao@codesourcery.com>
5708 * common/Makefile.in: Add copyright header.
5710 2011-02-11 Yao Qi <yao@codesourcery.com>
5712 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5714 * configure.ac: Add common to sub dir.
5715 * configure: Regenerate.
5717 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5719 * xtensa-tdep.c (call0_ret): New function.
5720 (xtensa_skip_prologue): Speed up analysis.
5722 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5724 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5725 while executing MI command -data-list-changed-registers.
5727 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5729 * xtensa-tdep.c (xtensa_read_register): New function.
5730 (xtensa_write_register): New function.
5731 (xtensa_find_register_by_name): New function.
5732 (xtensa_windowed_frame_cache): Update comments in type description.
5733 (xtensa_frame_cache): Likewise.
5734 (xtensa_window_interrupt_insn): New function.
5735 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5736 (xtensa_insn_kind): Add new instructions.
5737 (rwx_special_register): New function.
5738 (call0_classify_opcode): Add new instructions to the analysis.
5739 (a0_saved, a7_saved, a11_saved): New variables.
5740 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5741 (execute_l32e): New function.
5742 (execute_s32e): New function.
5743 (xtensa_exception_handler_t): New type.
5744 (execute_code): New function.
5745 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5746 analysis for Xtensa Window Exception handlers.
5748 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5750 * xtensa-tdep.c (TX_PS): New.
5751 (windowing_enabled): Update to count for Call0 ABI.
5752 (xtensa_hextochar): New.
5753 (xtensa_init_reggroups): Make algorithm generic.
5754 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5756 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5758 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5760 2011-03-08 Michael Snyder <msnyder@vmware.com>
5762 * i386-tdep.c (i386_follow_jump): Check return value of
5764 (i386_analyze_struct_return): Ditto.
5765 (i386_skip_probe): Ditto.
5766 (i386_match_insn): Ditto.
5767 (i386_skip_noop): Ditto.
5768 (i386_analyze_frame_setup): Ditto.
5769 (i386_analyze_register_saves): Ditto.
5770 (i386_skip_prologue): Ditto.
5771 (i386_skip_main_prologue): Ditto.
5773 * target.c (read_whatever_is_readable): Fix memory leak.
5775 * i386-tdep.c (i386_process_record): Document fall through.
5777 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5779 Fix DWARF-3+ DW_AT_accessibility default assumption.
5780 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5781 cu->header.version >= 3.
5783 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5785 * remote.c (remote_check_symbols): Skip if the target has no
5788 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5790 * target.c (read_whatever_is_readable): Reformat comment,
5791 with a minor typo fix. Minor reformatting of the code.
5793 2011-03-08 Yao Qi <yao@codesourcery.com>
5795 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5796 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5797 Use cached result instead of calling displaced_in_arm_mode again.
5798 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5799 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5800 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5801 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5802 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5803 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5804 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5805 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5806 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5807 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5808 (arm_catch_kernel_helper_return): Likewise.
5809 * gdb/arm-tdep.h : Update function declarations.
5811 2011-03-07 Michael Snyder <msnyder@vmware.com>
5813 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5815 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5817 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5819 * elfread.c (elf_symtab_read): Stop memory leak.
5821 * main.c (captured_main): Fix memory leak.
5823 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5825 * ada-lang.c (compare_names): Call is_name_suffix with string1
5828 2011-03-07 Tom Tromey <tromey@redhat.com>
5830 * xcoffread.c (xcoff_sym_fns): Update.
5831 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5832 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5833 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5834 (symbol_file_add_with_addrs_or_offsets): Likewise.
5835 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5836 * somread.c (som_sym_fns): Update.
5837 * psymtab.h (require_partial_symbols): Declare.
5838 * psymtab.c (require_partial_symbols): New function.
5839 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5840 (ALL_OBJFILE_PSYMTABS): Undef.
5841 (ALL_PSYMTABS): Move from psympriv.h.
5842 (lookup_partial_symtab, find_pc_sect_psymtab)
5843 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5844 (find_last_source_symtab_from_partial)
5845 (forget_cached_source_info_partial)
5846 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5847 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5848 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5849 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5850 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5851 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5852 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5853 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5854 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5856 * mipsread.c (ecoff_sym_fns): Update.
5857 * machoread.c (macho_sym_fns): Update.
5858 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5859 (read_psyms): New function.
5860 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5861 (elf_sym_fns_lazy_psyms): New global.
5862 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5863 dwarf2_build_psymtabs.
5864 * dbxread.c (aout_sym_fns): Update.
5865 * coffread.c (coff_sym_fns): Update.
5867 2011-03-07 Tom Tromey <tromey@redhat.com>
5869 * infrun.c (print_exited_reason): Include inferior id and pid in
5872 2011-03-07 Tom Tromey <tromey@redhat.com>
5874 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5876 (target_has_execution_1): Update.
5877 (target_has_execution_current): Declare.
5878 (target_has_execution): Call target_has_execution_current.
5879 (default_child_has_execution): Update.
5880 * target.c (default_child_has_execution): Add 'the_ptid'
5882 (target_has_execution_1): Likewise.
5883 (target_has_execution_current): New function.
5884 (add_target): Update.
5885 (init_dummy_target): Update.
5886 * remote-m32r-sdi.c (m32r_has_execution): New function.
5887 (init_m32r_ops): Use it.
5888 * record.c (record_core_has_execution): Now static. Add
5889 'the_ptid' parameter.
5890 * inferior.c (have_live_inferiors): Don't save current thread.
5891 Use target_has_execution_1.
5893 2011-03-07 Yao Qi <yao@codesourcery.com>
5895 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5897 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5899 * elfread.c (elf_symtab_read): Minor reformatting.
5901 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5903 * objc-lang.c (selectors_info): Minor reformatting.
5905 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5907 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5909 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5910 Michael Snyder <msnyder@vmware.com>
5912 * ada-valprint.c (ada_val_print_array): Move the declaration of
5913 "byte_order" and "elttype" inside the block where these variables
5914 are actually used. Remove some special handling for the case
5915 where "elttype" and "eltlen" are null. Replace by a comment
5916 and a couple of assertion checks.
5918 2011-03-05 Michael Snyder <msnyder@vmware.com>
5920 * source.c (add_path): Replace semicolon at end of block.
5921 * dwarf2expr.c (execute_stack_op): Ditto.
5923 2011-03-05 Mike Frysinger <vapier@gentoo.org>
5925 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
5926 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
5927 (bfin-*-*): Likewise.
5929 2011-03-05 Michael Snyder <msnyder@vmware.com>
5931 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
5932 * mdebugread.c (parse_symbol): Ditto.
5933 * parse.c (parse_exp_in_context): Ditto.
5934 * source.c (add_path): Ditto.
5935 * utils.c (gnu_debuglink_crc32): Ditto.
5936 * varobj.c (variable_language): Ditto.
5938 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
5940 2011-03-04 Michael Snyder <msnyder@vmware.com>
5942 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
5944 * symfile.c (simple_overlay_update): Check for null return value
5945 from lookup_minimal_symbol.
5947 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
5949 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5951 * eval.c (parse_and_eval_address_1): Remove function.
5952 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
5953 instead of parse_and_eval_address_1.
5954 * value.h (parse_and_eval_address_1): Remove prototype.
5956 2011-03-04 Michael Snyder <msnyder@vmware.com>
5958 * remote.c (putpkt_binary): Document that case stmt falls through.
5960 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5962 * breakpointc (print_it_typical): Move NULL check from here...
5963 (print_bp_stop_message): ... to here.
5965 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
5967 * breakpoint.c (enable_command): Use break instead of continue,
5968 and fill in a missing break.
5969 (disable_command): Ditto.
5971 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5973 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
5974 (terminal_save_ours): Remove misleading comment.
5975 (inflow_inferior_data_cleanup): Free ttystate.
5976 (inflow_inferior_exit): Likewise.
5977 (copy_terminal_info): Copy ttystate.
5979 * serial.c (serial_copy_tty_state): New function.
5980 * serial.h (serial_copy_tty_state): Add prototype.
5981 (struct serial_ops): Add copy_tty_state callback.
5982 * ser-base.c (ser_base_copy_tty_state): New function.
5983 * ser-base.h (ser_base_copy_tty_state): Add prototype.
5984 * ser-go32.c (dos_copy_tty_state): New function.
5985 (dos_ops): Install copy_tty_state callback.
5986 * ser-mingw.c (_initialize_ser_windows): Likewise.
5987 * ser-pipe.c (_initialize_ser_pipe): Likewise.
5988 * ser-unix.c (hardwire_copy_tty_state): New function.
5989 (_initialize_ser_hardwire): Install it.
5991 2011-03-04 Michael Snyder <msnyder@vmware.com>
5993 * breakpoint.c (create_breakpoint): Add missing break statement.
5995 Reverting this patch:
5996 * infcall.c (call_function_by_hand): Add break statements for lint.
5998 Reverting this patch:
5999 * cli/cli-script.c (script_from_file): Add break for lint.
6001 2011-03-04 Michael Snyder <msnyder@vmware.com>
6003 * solib.c (reload_shared_libraries_1): Close memory leak.
6005 2011-03-03 Tom Tromey <tromey@redhat.com>
6008 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6011 2011-03-03 Michael Snyder <msnyder@vmware.com>
6013 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6014 fields of struct 'st' to zero.
6016 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6017 sal.pspace before calling set_current_source_symtab_and_line.
6019 2011-03-03 Yao Qi <yao@codesourcery.com>
6021 * Makefile.in (configure-common): Remove. Let Makefile
6022 in dir common to rebuild itself.
6023 (common/Makefile): Likewise.
6025 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6027 * utils.c (parse_escape): Add i18n markup in error message.
6029 2011-03-03 Yao Qi <yao@codesourcery.com>
6031 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6033 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6034 (displaced_write_reg, displaced_read_reg): Likewise.
6035 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6036 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6037 (cleanup_branch): Replace magic number 14 and 15 with
6038 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6040 2011-03-02 Michael Snyder <msnyder@vmware.com>
6042 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6044 * cli/cli-script.c (script_from_file): Add break for lint.
6046 * mdebugread.c (parse_partial_symbols): Fix indent.
6048 * target-descriptions.c (tdesc_gdb_type): No need to call
6049 xstrdup, callee saves a copy.
6051 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6053 * infcall.c (call_function_by_hand): Add break statements for lint.
6055 * utils.c (parse_escape): Escape the escape char.
6057 * python/py-inferior.c (build_inferior_list): Error out if
6058 PyList_Append fails.
6059 (gdbpy_inferiors): Error out if build_inferior_list fails.
6061 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6064 * record.c (record_restore): Move printf to before error return.
6066 2011-03-02 Yao Qi <yao@codesourcery.com>
6068 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6069 is_thumb and insn_size.
6070 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6071 on both ARM and Thumb mode.
6072 (arm_process_displaced_insn): Set is_thumb and insn_size.
6073 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6074 (arm_displaced_step_fixup): Likewise.
6076 2011-03-01 Michael Snyder <msnyder@vmware.com>
6078 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6080 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6082 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6084 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6086 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6089 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6090 which shadows function parameter.
6092 * tracepoint.c (create_tsv_from_upload): Superfluous call
6093 to xstrdup. Callee already calls xstrdup.
6095 * linespec.c (decode_line_1): Remove unnecessary null check.
6097 * tracepoint.c (scope_info): Fix mem leak, remove underused
6100 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6101 superfluous null check.
6103 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6104 (value_of_builtin_frame_fp_reg): Ditto.
6106 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6108 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6111 * linespec.c (decode_line_1): Check for null before dereference.
6113 * reverse.c (record_restore): Move null-check to before pointer
6116 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6118 * objc-lang.c (selectors_info): Add explanitory comment.
6119 (classes_info): Ditto.
6121 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6123 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6124 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6125 versions of the trampoline. Handle Thumb vs. ARM addresses.
6126 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6127 (arm_linux_init_abi): Install it.
6128 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6129 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6131 2011-02-28 Michael Snyder <msnyder@vmware.com>
6133 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6134 a little bigger, to avoid possibility of an overflow.
6136 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6137 buffers a little bigger, to avoid possibility of an overflow.
6139 * coffread.c (coff_getfilename): Add check to avoid overflow.
6141 * objc-lang.c (selectors_info): Add a small safety margin to
6143 (classes_info): Error out on too long REGEXP.
6145 * infrun.c (handle_inferior_event): Remove unused function call.
6147 * fork-child.c (fork_inferior): Remove ifdef'd code and
6150 * linux-thread-db.c (attach_thread): Discard unused value.
6152 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6154 * remote.c (remote_get_noisy_reply): Discard unused value.
6155 (remote_vcont_resume): Ditto.
6156 (remote_stop_ns): Ditto.
6158 * linespec.c (decode_objc): Delete unused variable.
6160 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6162 * dwarf2read.c (add_partial_symbol): Discard unused values.
6163 (read_base_type): Delete unused variable.
6165 * dbxread.c (read_dbx_symtab): Discard unused value.
6167 * eval.c (evaluate_subexp_standard): Delete unused variable,
6168 and discard unused values.
6170 * infcmd.c (_initialize_infcmd): Discard unused values.
6172 * stabsread.c (rs6000_builtin_type): Missing break statement.
6174 * dbxread.c (process_one_symbol): Discard unused value.
6176 * coffread.c (coff_end_symtab): Delete unused variable.
6178 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6179 (dwarf2_add_typedef): Delete unused variable.
6180 (read_namespace): Ditto.
6181 (dwarf_decode_macros): Ditto.
6183 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6185 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6187 * p-valprint.c (pascal_val_print): Discard unused value.
6189 * utils.c (nquery): Call va_end before return;
6193 * proc-service.c (ps_plog): Call va_end before return.
6195 2011-02-28 Tom Tromey <tromey@redhat.com>
6197 * python/python.c (gdbpy_value_cst): New global.
6198 (_initialize_python): Initialize it.
6199 * python/python-internal.h (gdbpy_value_cst): Declare.
6200 * python/py-value.c (convert_value_from_python): Use
6203 2011-02-28 Michael Snyder <msnyder@vmware.com>
6205 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6207 * breakpoint.c (catch_syscall_completer): Free malloced list.
6209 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6211 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6212 (lval_func_check_synthetic_pointer): Ditto.
6213 (lval_func_free_closure): Fix use-after-free.
6215 2011-02-28 Tom Tromey <tromey@redhat.com>
6217 * psymtab.c (expand_partial_symbol_tables): Use
6218 ALL_OBJFILE_PSYMTABS.
6220 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6222 * objc-lang.c (selectors_info): Error on too long REGEXP.
6224 2011-02-28 Michael Snyder <msnyder@vmware.com>
6226 * python/py-param.c (set_parameter_value): Add missing
6229 * linux-record.c (record_linux_system_call): Add missing
6232 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6234 * breakpoint.c (print_one_breakpoint_location): Remove unused
6235 argument PRINT_ADDRESS_BITS. Update callers.
6236 (print_one_breakpoint): Likewise.
6238 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6240 * breakpoint.c (wrap_indent_at_field): New function.
6241 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6242 Allocate ui_stream locally instead of using STB argument.
6243 (print_one_breakpoint_location): Update call.
6244 * ui-out.c (ui_out_query_field): New function.
6245 * ui-out.h (ui_out_query_field): Add prototype.
6247 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6249 From Michael Snyder <msnyder@vmware.com>
6250 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6252 2011-02-27 Michael Snyder <msnyder@vmware.com>
6254 * objc-lang.c (selectors_info): Prevent string overrun.
6256 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6259 * symtab.c (rbreak_command): Move variable 'file_name' to
6262 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6263 param with a local variable of the same name.
6265 2011-02-27 Michael Snyder <msnyder@vmware.com>
6267 * value.c (value_from_history_ref): New function.
6268 * value.h (value_from_history_ref): Export.
6269 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6270 to parse value history references.
6271 * cli/cli-utils.h (get_number_trailer): Update comment.
6273 2011-02-27 Michael Snyder <msnyder@vmware.com>
6275 * inferior.c (detach_inferior_command): Use get_number_or_range.
6276 (kill_inferior_command): Ditto.
6277 (remove_inferior_command): Ditto.
6278 (initialize_inferiors): Make command names plural.
6279 Update help strings.
6281 2011-02-27 Michael Snyder <msnyder@vmware.com>
6283 * darwin-nat-info.c: Fix comment typo.
6284 * dwarf2expr.h: Ditto.
6285 * fbsd-nat.c: Ditto.
6286 * fbsd-nat.h: Ditto.
6287 * frame-unwind.h: Ditto.
6289 * hppa-hpux-tdep.c: Ditto.
6290 * i386-linux-nat.c: Ditto.
6291 * linux-nat.c: Ditto.
6292 * nbsd-nat.c: Ditto.
6293 * nbsd-nat.h: Ditto.
6294 * ppc-linux-tdep.c: Ditto.
6297 * tui/tui-winsource.c: Ditto.
6299 2011-02-26 Michael Snyder <msnyder@vmware.com>
6301 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6303 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6305 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6306 with a local variable of the same name.
6308 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6309 param with a local variable of the same name.
6310 (i387_supply_xsave): Ditto.
6312 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6313 that it does not shadow a function parameter.
6315 * i386-nat.c (i386_length_and_rw_bits): Document that case
6316 statement is meant to fall through.
6318 * expprint.c (dump_subexp_body_standard): Document that case
6319 statement is meant to fall through.
6321 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6322 dead if statement. Condition can't be false.
6324 2011-02-25 Michael Snyder <msnyder@vmware.com>
6326 * arm-tdep.c: Fix typos in comments.
6327 * bsd-uthread.c: Ditto.
6328 * completer.c: Ditto.
6330 * cp-namespace.c: Ditto.
6331 * cp-support.c: Ditto.
6332 * cris-tdep.c: Ditto.
6334 * dwarf2read.c: Ditto.
6336 * gdbtypes.h: Ditto.
6337 * inferior.h: Ditto.
6338 * mdebugread.c: Ditto.
6339 * mips-tdep.c: Ditto.
6340 * ppc-linux-nat.c: Ditto.
6341 * ppc-linux-tdep.c: Ditto.
6342 * printcmd.c: Ditto.
6343 * sol-thread.c: Ditto.
6344 * solib-frv.c: Ditto.
6346 * sparc64-tdep.c: Ditto.
6347 * spu-tdep.c: Ditto.
6348 * stabsread.c: Ditto.
6353 * python/py-block.c: Ditto.
6354 * python/py-symbol.c: Ditto.
6355 * python/py-symtab.c: Ditto.
6356 * python/py-value.c: Ditto.
6357 * tui/tui-win.c: Ditto.
6359 2011-02-25 Michael Snyder <msnyder@vmware.com>
6361 * inferior.c (print_inferior): Accept a string instead of an int
6362 for requested_inferiors, and use get_number_or_range to parse it.
6363 (info_inferiors_command): Pass args string to print_inferior.
6364 (initialize_inferiors): Change help string for info inferiors.
6365 * inferior.h (print_inferior): Export prototype change.
6367 2011-02-25 Tom Tromey <tromey@redhat.com>
6369 * common/ax.def (invalid2): Set to 0x31.
6371 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6373 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6375 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6377 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6379 2011-02-24 Michael Snyder <msnyder@vmware.com>
6381 * Makefile.in (clean): Make clean should remove generated files
6382 observer.h and observer.inc.
6384 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6386 Revert the following patch (not approved yet):
6387 2011-02-21 Hui Zhu <teawater@gmail.com>
6388 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6389 * ax-gdb.c (gen_printf_expr_callback): New function.
6390 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6391 * ax-general.c (ax_memcpy): New function.
6392 (ax_print): Handle "printf".
6394 * ax.h (ax_memcpy): Forward declare.
6395 * common/ax.def (invalid2): Removed.
6396 (printf): New entry.
6397 * printcmd.c (printcmd.h): New include.
6398 (string_printf): New function.
6399 (ui_printf): Removed.
6400 (printf_command): Remove static. Call string_printf.
6401 (eval_command): Call string_printf.
6402 * printcmd.h: New file.
6403 * tracepoint.c (validate_actionline,
6404 encode_actions_1): handle printf_command.
6406 2011-02-23 Tom Tromey <tromey@redhat.com>
6408 * ax-general.c (ax_pick): Add missing newline.
6410 2011-02-23 Michael Snyder <msnyder@vmware.com>
6412 * breakpoint.c (breakpoint_1): Change first argument from an int
6413 to a char pointer, so that the function now accepts a list of
6414 breakpoints rather than just one. Use new function
6415 'number_is_in_list' to implement.
6416 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6417 (watchpoints_info): Ditto.
6418 (tracepoints_info): Ditto.
6419 (maintenance_info_breakpoints): Ditto.
6420 (_initialize_breakpoint): Update help strings to reflect the fact
6421 that these functions can now take more than one argument.
6422 * cli/cli-utils.c (number_is_in_list): New function.
6423 * cli/cli-utils.h (number_is_in_list): Export.
6425 2011-02-23 Michael Snyder <msnyder@vmware.com>
6427 * memattr.c (mem_enable_command): Use get_number_or_range.
6428 (mem_disable_command): Ditto.
6429 (mem_delete_command): Ditto.
6430 (_initialize_mem): Tweak usage message to reflect multiple
6433 2011-02-22 Doug Evans <dje@google.com>
6435 Add gdb.lookup_global_symbol python function.
6437 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6438 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6439 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6441 2011-02-22 Tom Tromey <tromey@redhat.com>
6443 * language.c (language_class_name_from_physname): Rename
6444 'curr_language' argument to 'lang'; use in body.
6446 2011-02-22 Michael Snyder <msnyder@vmware.com>
6448 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6450 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6452 * frame-unwind.h: Fix comment to mention the this frame, not the
6455 2011-02-22 Tom Tromey <tromey@redhat.com>
6457 * symfile.c (auto_solib_limit): Remove.
6458 * symfile.h (auto_solib_limit): Remove.
6460 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6462 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6464 2011-02-21 Michael Snyder <msnyder@vmware.com>
6466 * gdbthread.h (print_thread_info): Change prototype.
6467 * thread.c (print_thread_info): Accept char* instead of int for
6468 requested_threads argument. Use new function number_is_in_list
6469 to determine which threads to list.
6470 (info_threads_command): Pass char* to print_thread_info.
6471 * cli/cli-utils.c (number_is_in_list): New function.
6472 * cli/cli-utils.h (number_is_in_list): Export.
6473 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6475 (print_one_inferior): Ditto.
6476 (mi_cmd_list_thread_groups): Ditto.
6478 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6480 * common/Makefile.in (CFLAGS): New.
6481 (COMPILE): Add $(CFLAGS).
6483 2011-02-21 Tom Tromey <tromey@redhat.com>
6485 * breakpoint.c (catch_syscall_command_1): Fix typo.
6487 2011-02-21 Tom Tromey <tromey@redhat.com>
6489 * reverse.c: Include cli-utils.h.
6490 * printcmd.c: Include cli-utils.h.
6491 (string_printf): Use skip_spaces.
6492 * cli/cli-utils.h: New file.
6493 * cli/cli-utils.c: New file.
6494 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6495 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6496 * breakpoint.h (get_number, get_number_or_range): Move to
6498 * breakpoint.c: Include cli-utils.h.
6499 (get_number_trailer, get_number, get_number_or_range)
6500 (ep_skip_leading_whitespace): Move to cli-utils.c.
6501 (create_breakpoint_sal, find_condition_and_thread)
6502 (decode_static_tracepoint_spec, watch_command_1)
6503 (watch_maybe_just_location, ep_parse_optional_if_clause)
6504 (catch_fork_command_1, catch_exec_command_1)
6505 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6506 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6507 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6508 (HFILES_NO_SRCDIR): Add cli-utils.h.
6509 (cli-utils.o): New target.
6511 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6513 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6514 before calling discard_all_inferiors.
6516 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6518 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6519 (struct builtin_opencl_type): Remove.
6520 (builtin_opencl_type): Change return type to "struct type **".
6521 (lookup_opencl_vector_type): Update caller.
6522 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6523 (build_opencl_types): Install plain array of "struct type *"
6524 instead of "struct builtin_opencl_type".
6526 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6527 Ulrich Weigand <uweigand@de.ibm.com>
6529 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6530 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6531 (struct arm_linux_hwbp_cap): New type.
6532 (arm_linux_get_hwbp_cap): New function.
6533 (arm_linux_get_hw_breakpoint_count): Likewise.
6534 (arm_linux_get_hw_watchpoint_count): Likewise.
6535 (arm_linux_can_use_hw_breakpoint): Likewise.
6536 (arm_hwbp_type): New type.
6537 (arm_hwbp_control_t): Likewise.
6538 (struct arm_linux_hw_breakpoint): Likewise.
6539 (struct arm_linux_thread_points): Likewise.
6540 (arm_threads): New global variable.
6541 (arm_linux_find_breakpoints_by_tid): New function.
6542 (arm_hwbp_control_initialize): Likewise.
6543 (arm_hwbp_control_is_enabled): Likewise.
6544 (arm_hwbp_control_disable): Likewise.
6545 (arm_linux_hw_breakpoint_initialize): Likewise.
6546 (arm_linux_get_hwbp_type): Likewise.
6547 (arm_linux_hw_watchpoint_initialize): Likewise.
6548 (arm_linux_hw_breakpoint_equal): Likewise.
6549 (arm_linux_insert_hw_breakpoint1): Likewise.
6550 (arm_linux_remove_hw_breakpoint1): Likewise.
6551 (arm_linux_insert_hw_breakpoint): Likewise.
6552 (arm_linux_remove_hw_breakpoint): Likewise.
6553 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6554 (arm_linux_insert_watchpoint): Likewise.
6555 (arm_linux_remove_watchpoint): Likewise.
6556 (arm_linux_stopped_data_address): Likewise.
6557 (arm_linux_stopped_by_watchpoint): Likewise.
6558 (arm_linux_watchpoint_addr_within_range): Likewise.
6559 (arm_linux_new_thread): Likewise.
6560 (arm_linux_thread_exit): Likewise.
6561 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6562 related target callbacks. Register arm_linux_new_thread and
6563 arm_linux_thread_exit.
6564 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6565 * arm-tdep.c (arm_pc_is_thumb): Make global.
6566 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6568 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6570 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6571 per-frame locations while within a function epilogue.
6573 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6575 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6576 to GNU coding standards.
6578 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6580 Allow use of mingw native on Windows 95 OS.
6581 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6582 (ser_windows_close): Only call CancelIo if function exists.
6583 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6584 to check for existence of CancelIo function in kernel32 DLL.
6586 2011-02-21 Hui Zhu <teawater@gmail.com>
6588 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6589 * ax-gdb.c (gen_printf_expr_callback): New function.
6590 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6591 * ax-general.c (ax_memcpy): New function.
6592 (ax_print): Handle "printf".
6594 * ax.h (ax_memcpy): Forward declare.
6595 * common/ax.def (invalid2): Removed.
6596 (printf): New entry.
6597 * printcmd.c (printcmd.h): New include.
6598 (string_printf): New function.
6599 (ui_printf): Removed.
6600 (printf_command): Remove static. Call string_printf.
6601 (eval_command): Call string_printf.
6602 * printcmd.h: New file.
6603 * tracepoint.c (validate_actionline,
6604 encode_actions_1): handle printf_command.
6606 2011-02-19 Michael Snyder <msnyder@vmware.com>
6608 * reverse.c (delete_one_bookmark): Argument is now bookmark
6609 id rather than pointer to bookmark struct.
6610 (delete_bookmark_command): Use get_number_or_range.
6611 (goto_bookmark_command): Parse with get_number instead of strtoul.
6612 (bookmark_1): New function. Print info for one bookmark.
6613 (bookmarks_info): Use get_number_or_range and bookmark_1.
6615 2011-02-18 Michael Snyder <msnyder@vmware.com>
6617 * thread.c (info_threads_command): Re-implement using
6618 get_number_or_range.
6619 (thread_apply_command): Ditto.
6621 2011-02-18 Tom Tromey <tromey@redhat.com>
6623 * common/ax.def: New file.
6624 * ax.h (enum agent_op): Use ax.def.
6625 * ax-general.c (aop_map): Use ax.def.
6627 2011-02-18 Tom Tromey <tromey@redhat.com>
6629 * ax-general.c (aop_map): Add pick and rot.
6630 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6631 <DW_OP_rot>: Implement.
6632 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6634 * ax-general.c (ax_pick): New function.
6636 2011-02-18 Tom Tromey <tromey@redhat.com>
6638 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6640 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6641 Tom Tromey <tromey@redhat.com>
6643 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6644 make_symbol_overload_list_block with NULL BLOCK.
6645 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6647 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6649 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6650 * breakpoint.h (get_number_or_range): Declare.
6651 * printcmd.c (ALL_DISPLAYS): Declare.
6652 (delete_display): Reimplement taking a display pointer.
6653 (undisplay_command): Accept a range of displays to delete, using
6654 get_number_or_range.
6656 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6658 * c-valprint.c (c_val_print): Add embedded_offset to address
6659 for arrays of unspecified length.
6660 * p-valprint.c (pascal_val_print): Likewise.
6662 2011-02-18 Yao Qi <yao@codesourcery.com>
6664 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6665 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6666 (thumb_process_displaced_insn): New.
6667 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6668 call to arm_process_displaced_insn.
6669 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6671 2011-02-17 Tom Tromey <tromey@redhat.com>
6673 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6674 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6675 compile_dwarf_to_ax. No longer static. Call
6676 dwarf2_compile_cfa_to_ax.
6677 (locexpr_tracepoint_var_ref): Update.
6678 (loclist_tracepoint_var_ref): Update.
6679 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6680 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6681 argument; add 'gdbarch' and 'pc'.
6682 (dwarf2_compile_cfa_to_ax): New function.
6683 (dwarf2_frame_cache): Update.
6685 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6687 * ada-lang.c (ada_type_of_array): Fix the size of the array
6688 in the case of an unconstrained packed array.
6690 2011-02-17 Yao Qi <yao@codesourcery.com>
6692 * common/Makefile.in: Add more targets for make.
6694 2011-02-16 Tom Tromey <tromey@redhat.com>
6696 * dwarf2loc.c (unimplemented): Fix typo.
6698 2011-02-16 Tom Tromey <tromey@redhat.com>
6700 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6701 (compile_dwarf_to_ax) <default>: Use unimplemented.
6702 <DW_OP_deref>: Update.
6703 (disassemble_dwarf_expression): Update.
6704 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6705 (decode_locdesc): Update.
6706 * dwarf2expr.h (dwarf_stack_op_name): Update.
6708 2011-02-16 Tom Tromey <tromey@redhat.com>
6710 * ax.h (struct aop_map) <name>: Now const.
6712 2011-02-16 Tom Tromey <tromey@redhat.com>
6714 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6717 2011-02-16 Yao Qi <yao@codesourcery.com>
6719 * infrun.c (get_displaced_step_closure_by_addr): New.
6720 * inferior.h: Declare it.
6721 * arm-tdep.c: (arm_pc_is_thumb): Call
6722 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6725 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6726 Jan Kratochvil <jan.kratochvil@redhat.com>
6729 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6731 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6732 Jan Kratochvil <jan.kratochvil@redhat.com>
6734 * value.c (value_contents_copy_raw): Extend describing comment.
6735 Assert that the destination contents we're overwriting are wholly
6737 (value_contents_copy): Extend describing comment.
6739 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6740 Jan Kratochvil <jan.kratochvil@redhat.com>
6742 * value.c (value_available_contents_eq): Remove redundant local
6743 variables. Fix available contents comparision.
6744 * value.h (value_available_contents_eq): Extend describing
6747 2011-02-16 Yao Qi <yao@codesourcery.com>
6749 * thread.c (info_threads_command): Add missing i18n markup and remove
6752 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6754 * breakpoint.c (longjmp_names): New variable.
6755 (struct breakpoint_objfile_data): New type.
6756 (breakpoint_objfile_key): New variable.
6757 (msym_not_found): New variable.
6758 (msym_not_found_p): New predicate.
6759 (get_breakpoint_objfile_data): New function.
6760 (create_overlay_event_breakpoint): Check per-objfile cache for
6762 (create_longjmp_master_breakpoint): Likewise.
6763 (create_std_terminate_master_breakpoint): Likewise.
6764 (create_exception_master_breakpoint): Likewise.
6765 (_initialize_breakpoint): Register per-objfile data key.
6767 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6769 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6771 (create_longjmp_master_breakpoint): Loop over longjmp names.
6772 (create_std_terminate_master_breakpoint): Const-propagate parameter
6774 (update_breakpoints_after_exec): Adjust.
6775 (breakpoint_re_set): Adjust.
6777 2011-02-15 Michael Snyder <msnyder@vmware.com>
6779 * thread.c (info_threads_command): Process arg as thread id,
6780 or list of thread ids.
6781 (thread_find_command): New command.
6782 (_initialize_thread): Document argument for info threads.
6783 Document 'thread find' command.
6784 * NEWS: Document new command "thread find".
6786 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6788 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6789 * aclocal.m4: Regenerated with aclocal-1.11.1.
6790 * common/configure: Regenerate with autoconf-2.64.
6792 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6794 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6795 bool data type to a size of one byte.
6797 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6798 Jan Kratochvil <jan.kratochvil@redhat.com>
6800 * target.c (memory_xfer_live_readonly_partial): Document where to
6801 look for interface description.
6803 2011-02-15 Yao Qi <yao@codesourcery.com>
6806 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6807 order to store PC value on stack instead of text section.
6809 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6811 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6812 the EFP register set size.
6813 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6814 data from the VMX register.
6815 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6816 and write data from/to the VMX register.
6818 2011-02-14 Michael Snyder <msnyder@vmware.com>
6820 * command.h (enum command_class): New class 'no_set_class', for
6821 "show" commands without a corresponding "set" command.
6822 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6823 * copying.c (_initialize_copying): Ditto for "show copying" and
6825 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6827 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6828 which there is no corresponding "set" command (eg. "show copying").
6830 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6831 Jan Kratochvil <jan.kratochvil@redhat.com>
6833 * exec.c (section_table_available_memory): Change `len' parameter
6835 * exec.h (section_table_available_memory): Ditto.
6836 * value.h (read_value_memory): Rename the `offset' parameter to
6839 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6840 Jan Kratochvil <jan.kratochvil@redhat.com>
6842 * memrange.c (compare_mem_ranges): Mention sort order in
6844 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6845 * tracepoint.c (traceframe_available_memory): Extend comment to
6846 mention what happens to RESULT when the target does not support
6849 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6850 Jan Kratochvil <jan.kratochvil@redhat.com>
6852 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6855 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6857 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6858 No longer handle NULL values.
6860 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6862 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6863 * value.c: Include "exceptions.h".
6864 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6866 * cp-abi.c: Include gdb_assert.h.
6867 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6868 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6870 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6871 parameters. No longer returns -1 on error.
6872 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6874 * cp-valprint.c: Include exceptions.h.
6875 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6876 the baseclass_offset. Handle unavailable base classes. Use
6877 val_print_invalid_address.
6878 * p-valprint.c: Include exceptions.h.
6879 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6880 when fetching the baseclass_offset. No longer expect
6881 baseclass_offset returning -1. Handle unavailable base classes.
6882 Use val_print_invalid_address.
6883 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6884 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6885 `embedded_offset' and `val' parameters. Adjust.
6886 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6887 parameter, and change its type to gdb_byte pointer. Add
6888 `embedded_offset' and `val' parameters. Adjust. No longer expect
6889 baseclass_offset returning -1.
6890 (value_dynamic_cast): Use value_contents_for_printing rather than
6891 value_contents. Adjust.
6892 (search_struct_field): No longer expect baseclass_offset returning
6894 (search_struct_method): If reading memory from the target is
6895 necessary, wrap it in a new value to pass to baseclass_offset. No
6896 longer expect baseclass_offset returning -1.
6897 (find_method_list): No longer expect baseclass_offset returning
6898 -1. Use value_contents_for_printing rather than value_contents.
6899 * valprint.c (val_print_invalid_address): New function.
6900 * valprint.h (val_print_invalid_address): Declare.
6901 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6902 and `val' parameters. No longer expect baseclass_offset returning
6904 * gnu-v2-abi.c: Include "exceptions.h".
6905 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6906 parameters. Handle unavailable memory. Recurse through
6907 gnuv2_baseclass_offset directly, rather than through
6908 baseclass_offset. No longer returns -1 on not found, instead
6910 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6911 `val' parameters. Adjust.
6913 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6915 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
6916 almost but not quite adjacent.
6918 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6920 * value.h (value_entirely_available): Declare.
6921 * value.c (value_entirely_available): New function.
6922 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6923 real type if the pointer is unavailable.
6925 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6927 * valops.c (value_repeat): Use read_value_memory instead of
6930 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6932 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
6933 * value.c (value_contents_copy_raw, value_contents_copy): New
6935 (value_primitive_field): Use value_contents_copy_raw instead of
6937 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
6939 (value_array, value_slice): Ditto.
6940 * valarith.c (value_subscripted_rvalue): Use
6941 value_contents_copy_raw instead of memcpy.
6943 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6945 <unavailable> references.
6947 * valops.c (get_value_at): Use value_from_contents_and_address,
6948 avoiding read_memory.
6950 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6952 * c-valprint.c (c_val_print): Print a string with unavailable
6953 contents as an array.
6955 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6957 * value.h (unpack_bits_as_long): Delete declaration.
6958 (unpack_value_bits_as_long): Declare.
6959 (unpack_value_field_as_long): Declare.
6960 (value_field_bitfield): Declare.
6961 * value.c (unpack_bits_as_long): Rename to...
6962 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
6963 value parameters. Return the extracted result in a new output
6964 parameter. If the value contents are unavailable, return false,
6965 otherwise return true.
6966 (unpack_value_bits_as_long): New.
6967 (unpack_field_as_long): Rename to...
6968 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
6969 Add embedded_offset and value parameters. Return the extracted
6970 result in a new output parameter. If the value contents are
6971 unavailable, return false, otherwise return true.
6972 (unpack_value_field_as_long): New.
6973 (unpack_field_as_long_1): New.
6974 (unpack_field_as_long): Reimplement as wrapper around
6975 unpack_value_field_as_long_1.
6976 (value_field_bitfield): New function.
6977 * valops.c (value_fetch_lazy): When fetching a bitfield, use
6978 unpack_value_bits_as_long. Mark the value as unavailable, if it
6980 * jv-valprint.c (java_print_value_fields): Use
6981 value_field_bitfield.
6982 * p-valprint.c (pascal_object_print_value_fields): Use
6983 value_field_bitfield.
6984 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
6986 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6988 * value.c (get_internalvar_integer): Also return the int value of
6989 TYPE_CODE_INT INTERNALVAR_VALUE values.
6990 (set_internalvar): Don't special case TYPE_CODE_INT.
6992 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6994 * value.c (struct internalvar) <enum internalvar_kind>: Remove
6995 INTERNALVAR_POINTER.
6997 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
6998 (set_internalvar): Remove special TYPE_CODE_PTR handling.
6999 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7001 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7003 * value.h (value_available_contents_eq): Declare.
7004 * value.c (find_first_range_overlap): New function.
7005 (value_available_contents_eq): New function.
7006 * valprint.c (val_print_array_elements): Use
7007 value_available_contents_eq.
7008 * ada-valprint.c (val_print_packed_array_elements): Use
7009 value_available_contents_eq.
7010 * jv-valprint.c (java_value_print): Use
7011 value_available_contents_eq.
7013 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7015 * target.c (target_read_live_memory): New function.
7016 (memory_xfer_live_readonly_partial): New.
7017 (memory_xfer_partial): If reading from a traceframe, fallback to
7018 reading unavailable read-only memory from read-only regions of
7020 * tracepoint.c (disconnect_tracing): Adjust.
7021 (set_current_traceframe): New, factored out from
7022 set_traceframe_number.
7023 (set_traceframe_number): Reimplement to only change the traceframe
7024 number on the GDB side.
7025 (do_restore_current_traceframe_cleanup): Adjust.
7026 (make_cleanup_restore_traceframe_number): New.
7027 (cur_traceframe_number): New global.
7028 (tfile_open): Set cur_traceframe_number to no traceframe.
7029 (set_tfile_traceframe): New function.
7030 (tfile_trace_find): If looking up a traceframe using any method
7031 other than by number, make sure the current tfile traceframe
7032 matches gdb's current traceframe. Update the current tfile
7033 traceframe if the lookup succeeded.
7034 (tfile_fetch_registers, tfile_xfer_partial)
7035 (tfile_get_trace_state_variable_value): Make sure the remote
7036 traceframe matches gdb's current traceframe.
7037 * remote.c (remote_traceframe_number): New global.
7038 (remote_open_1): Set it to -1.
7039 (set_remote_traceframe): New function.
7040 (remote_fetch_registers, remote_store_registers)
7041 (remote_xfer_memory, remote_xfer_partial)
7042 (remote_get_trace_state_variable_value): Make sure the remote
7043 traceframe matches gdb's current traceframe.
7044 (remote_trace_find): If looking up a traceframe using any method
7045 other than by number, make sure the current remote traceframe
7046 matches gdb's current traceframe. Update the current remote
7047 traceframe if the lookup succeeded.
7048 * infrun.c (fetch_inferior_event): Adjust.
7049 * tracepoint.h (set_current_traceframe): Declare.
7050 (get_traceframe_number, set_traceframe_number): Add describing
7053 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7055 Mark pieces of values as unavailable if the corresponding memory
7058 * valops.c: Include tracepoint.h.
7059 (value_fetch_lazy): Use read_value_memory.
7060 (read_value_memory): New.
7061 * value.h (read_value_memory): Declare.
7062 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7063 * exec.c (section_table_available_memory): New function.
7064 * exec.h (section_table_available_memory): Declare.
7066 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7068 * Makefile.in (SFILES): Add memrange.c.
7069 (HFILES_NO_SRCDIR): Add memrange.h.
7070 (COMMON_OBS): Add memrange.o.
7071 * memrange.c: New file.
7072 * memrange.h: New file.
7073 * tracepoint.c: Include memrange.h.
7074 (struct mem_range): Delete.
7075 (mem_range_s): Delete.
7076 (traceframe_available_memory): New function.
7077 * tracepoint.h (traceframe_available_memory): Declare.
7079 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7081 * target.h (struct traceframe_info): Forward declare.
7082 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7083 (struct target_ops) <to_traceframe_info>: New field.
7084 (target_traceframe_info): New.
7085 * target.c (update_current_target): Inherit and default
7087 * remote.c (PACKET_qXfer_traceframe_info): New.
7088 (remote_protocol_features): Register qXfer:traceframe-info:read.
7089 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7090 (remote_traceframe_info): New.
7091 (init_remote_ops): Install it.
7092 (_initialize_remote): Install "set/show remote traceframe-info"
7094 * tracepoint.h (parse_traceframe_info): Declare.
7095 * tracepoint.c (struct mem_range): New.
7096 (mem_range_s): New typedef.
7097 (struct traceframe_info): New.
7098 (traceframe_info): New global.
7099 (free_traceframe_info): New function.
7100 (clear_traceframe_info): New function.
7101 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7103 (build_traceframe_info): New function.
7104 (tfile_traceframe_info): New function.
7105 (init_tfile_ops): Install tfile_traceframe_info.
7106 (traceframe_info_start_memory, free_result): New functions.
7107 (memory_attributes, traceframe_info_elements): New globals.
7108 (parse_traceframe_info, get_traceframe_info): New functions.
7109 * features/traceframe-info.dtd: New file.
7110 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7112 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7114 Base support for <unavailable> value contents.
7116 * value.h (value_bytes_available): Declare.
7117 (mark_value_bytes_unavailable): Declare.
7118 * value.c (struct range): New struct.
7119 (range_s): New typedef.
7120 (ranges_overlap): New function.
7121 (range_lessthan): New function.
7122 (ranges_contain_p): New function.
7123 (struct value) <unavailable>: New field.
7124 (value_bytes_available): New function.
7125 (mark_value_bytes_unavailable): New function.
7126 (require_not_optimized_out): Constify parameter.
7127 (require_available): New function.
7128 (value_contents_all, value_contents): Require all bytes be
7130 (value_free): Free `unavailable'.
7131 (value_copy): Copy `unavailable'.
7132 * valprint.h (val_print_unavailable): Declare.
7133 * valprint.c (valprint_check_validity): Rename `offset' parameter
7134 to `embedded_offset'. If printing a scalar, check whether the
7135 value chunk is available.
7136 (val_print_unavailable): New.
7137 (val_print_scalar_formatted): Check whether the value is
7139 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7140 pretty-printing unavailable values.
7142 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7144 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7145 * c-typeprint.c (c_type_print_args): Update the function comment. New
7146 variable param_type, initialize it. Remove const/volatile qualifiers
7147 for language_cplus and !show_artificial. Use param_type.
7149 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7151 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7152 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7153 * symtab.h (struct symtab) <next>: Comment extension.
7155 2011-02-12 Yao Qi <yao@codesourcery.com>
7157 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7159 2011-02-11 Yao Qi <yao@codesourcery.com>
7161 * common/Makefile.in: Add copyright header.
7163 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7165 * infrun.c (proceed): Move switching out and in of tfind mode from
7167 (fetch_inferior_event): ... to here.
7169 2011-02-11 Yao Qi <yao@codesourcery.com>
7171 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7173 * configure.ac: Add common to sub dir.
7174 * configure: Regenerate.
7176 2011-02-11 Yao Qi <yao@codesourcery.com>
7180 * common/Makefile.in: New.
7181 * common/configure.ac: New.
7182 * common/aclocal.m4: New.
7183 * common/configure: Generate.
7185 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7187 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7188 side of the parenthesis.
7191 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7192 * vec.h (VEC_block_remove): Fix comment.
7194 2011-02-08 Michael Snyder <msnyder@vmware.com>
7196 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7198 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7200 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7201 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7204 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7207 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7209 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7210 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7212 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7214 * dwarf2read.c (read_subroutine_type): Set special calling
7215 convention flag for functions compiled by IBM XL C for OpenCL.
7216 * ppc-sysv-tdep.c: Include "dwarf2.h"
7217 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7219 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7220 IBM OpenCL vector types calling convention.
7221 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7222 (ppc_sysv_abi_broken_return_value): Likewise.
7223 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7224 types calling convention.
7225 (ppc64_sysv_abi_return_value): Likewise.
7226 * spu-tdep.c: Include "dwarf2.h"
7227 (spu_return_value): Implement IBM OpenCL vector types calling
7230 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7232 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7233 correct ABI for AltiVec vector arguments.
7235 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7237 * valprint.c (val_print): Extend comment.
7238 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7239 interface explanation to val_print.
7240 (ada_val_print_array): Adjust comment to current interface.
7241 (print_field_values): Adjust comment to current interface.
7242 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7243 explanation to val_print.
7244 * f-valprint.c (f_val_print): Ditto.
7245 * jv-valprint.c (java_val_print): Ditto.
7246 * m2-valprint.c (m2_val_print): Ditto.
7247 * p-valprint.c (pascal_val_print): Ditto.
7249 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7251 * breakpoint.c (parse_breakpoint_sals): Fix description.
7253 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7254 Oguz Kayral <oguzkayral@gmail.com>
7256 * python/py-inferior.c (python_on_normal_stop): New function.
7257 (python_on_resume): New function.
7258 (python_inferior_exit): New function.
7259 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7260 inferior_exit observers.
7261 * python/py-evtregistry.c: New file.
7262 * python/py-threadevent.c : New file.
7263 * python/py-event.c: New file.
7264 * python/py-evts.c: New file.
7265 * python/py-continueevent.c: New file.
7266 * python/py-bpevent.c: New file.
7267 * python/py-signalevent.c: New file.
7268 * python/py-exetiedevent.c: New file.
7269 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7270 Move struct breakpoint_object from here...
7271 * python/python-internal.h: ... to here.
7272 * python/py-event.h: New file.
7273 * python/py-events.h: New file.
7274 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7275 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7276 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7277 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7278 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7279 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7280 Add build rules for all the above.
7282 2011-02-04 Tom Tromey <tromey@redhat.com>
7284 * dwarf2read.c (dwarf2_section_empty_p): New function.
7285 (dwarf2_read_section): Use dwarf2_section_empty_p.
7286 (dwarf2_section_size): New function.
7287 (dwarf2_get_section_info): Unconditionally read section.
7288 (dwarf2_read_index): Use dwarf2_section_empty_p.
7289 (partial_read_comp_unit_head): Use dwarf2_section_size.
7290 (dwarf2_symbol_mark_computed): Likewise.
7292 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7294 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7296 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7298 * mips-linux-tdep.c: Include xml-syscall.h.
7299 (mips_linux_get_syscall_number): New function.
7300 (mips_linux_init_abi): Add calls to
7301 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7302 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7303 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7304 * syscalls/mips-n32-linux.xml: New file.
7305 * syscalls/mips-n64-linux.xml: New file.
7306 * syscalls/mips-o32-linux.xml: New file.
7308 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7310 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7311 Complain about inverted range entries.
7312 (dwarf2_record_block_ranges): Likewise.
7314 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7317 * breakpoint.c (update_watchpoint): Fix name of the
7318 update_global_location_list function.
7319 (print_one_breakpoint): Fix typo.
7320 (_initialize_breakpoint): Remove extra space in hbreak help
7322 * breakpoint.h (struct bp_location) <length>: Fix field
7325 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7327 * regcache.c (registers_changed_ptid): Don't explictly always
7328 clear `current_regcache'. Only clear current_thread_ptid and
7329 current_thread_arch when PTID matches. Only reinit the frame
7330 cache if PTID matches the current inferior_ptid. Move alloca(0)
7332 (registers_changed): ... here.
7334 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7336 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7337 starts with __stack_chk_guard as stack guard symbol.
7339 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7341 * disasm.c (compare_lines): Handle the end of sequence markers
7342 within the line table to better support disassembling over
7343 compilation unit boundaries.
7345 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7347 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7348 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7349 implementation even if no symbols are available.
7350 (thumb_analyze_prologue): Update call to skip_prologue_function.
7351 (arm_analyze_prologue): Likewise.
7353 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7355 * arm-tdep.c: Include "observer.h".
7356 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7357 (arm_exidx_data_key): New static variable.
7358 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7359 (struct arm_exidx_data): Likewise.
7360 (arm_exidx_data_free): New function.
7361 (arm_compare_exidx_entries): Likewise.
7362 (arm_obj_section_from_vma): Likewise.
7363 (arm_exidx_new_objfile): Likewise.
7364 (arm_find_exidx_entry): Likewise.
7365 (arm_exidx_fill_cache): Likewise.
7366 (arm_exidx_unwind_sniffer): Likewise.
7367 (arm_exidx_unwind): New global variable.
7368 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7369 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7370 observer. Register arm_exidx_data_key as objfile data.
7372 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7374 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7375 due to accessing uninitialized variable. Fix indentation.
7377 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7379 * c-valprint.c (c_value_print): When doing virtual base pointer
7380 adjustment, create a new value with adjusted contents rather than
7381 changing the contents of the value being printed (and getting it
7384 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7386 * xml-support.c (xml_find_attribute): New.
7387 (xinclude_start_include): Use it.
7388 * xml-support.h (xml_find_attribute): Declare.
7389 * memory-map.c (memory_map_start_memory)
7390 (memory_map_start_property): Use xml_find_attribute.
7391 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7393 * remote.c (start_thread): Use xml_find_attribute.
7394 * solib-target.c (library_list_start_segment)
7395 (library_list_start_section, library_list_start_library)
7396 (library_list_start_list): Use xml_find_attribute.
7397 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7398 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7399 (tdesc_start_field): Use xml_find_attribute.
7401 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7403 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7404 (BUILD_OCL_VTYPES): Update.
7406 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7408 * configure.ac: Work around non-GNU sed limitation when computing
7409 python version number.
7410 * configure: Regenerate.
7412 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7414 Fix debug printing of TYPE_INSTANCE.
7415 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7416 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7418 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7420 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7421 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7422 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7423 * ada-operator.inc: Rename the file to ...
7424 * ada-operator.def: ... here, wrap all the entries by macro OP.
7425 * expprint.c (op_name_standard): Remove all the entries. Include
7426 "std-operator.def" instead.
7427 * expression.h (enum exp_opcode): Include "std-operator.def" and
7428 "ada-operator.def". Move all the entries ...
7429 * std-operator.def: ... here, wrap all the entries by macro OP.
7431 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7433 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7434 * breakpoint.c (remove_jit_event_breakpoints): New function.
7435 * jit.c (jit_descriptor_addr): Delete.
7436 (registering_code): Delete.
7437 (clear_int): Delete.
7438 (jit_inferior_data): New variable.
7439 (struct jit_inferior_data): New type.
7440 (get_jit_inferior_data): New function.
7441 (jit_inferior_data_cleanup): New function.
7442 (jit_read_descriptor): Adjust.
7443 (jit_register_code): Adjust.
7444 (jit_breakpoint_re_set_internal): New function; move code here ...
7445 (jit_inferior_init): ... from here.
7446 (jit_breakpoint_re_set): Adjust.
7447 (jit_reset_inferior_data_and_breakpoints): New function.
7448 (jit_inferior_created_observer): Adjust.
7449 (jit_inferior_exit_hook): Adjust.
7450 (jit_executable_changed_observer): New function.
7451 (jit_event_handler): Adjust.
7452 (_initialize_jit): Adjust.
7454 2011-01-31 Michael Snyder <msnyder@vmware.com>
7456 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7459 2011-01-31 Tom Tromey <tromey@redhat.com>
7462 * python/python.c (execute_gdb_command): Call
7463 prevent_dont_repeat.
7464 * top.c (suppress_dont_repeat): New global.
7465 (dont_repeat): Use it.
7466 (prevent_dont_repeat): New function.
7467 * command.h (prevent_dont_repeat): Declare.
7469 2011-01-31 Tom Tromey <tromey@redhat.com>
7471 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7472 * python/py-breakpoint.c (bppy_set_silent): Use
7473 breakpoint_set_silent.
7474 (bppy_set_thread): Use breakpoint_set_thread.
7475 (bppy_set_task): Use breakpoint_set_task.
7476 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7477 (breakpoint_set_task): Declare.
7478 (make_breakpoint_silent): Remove.
7479 * breakpoint.c (breakpoint_set_silent): New function.
7480 (breakpoint_set_thread): Likewise.
7481 (breakpoint_set_task): Likewise.
7482 (make_breakpoint_silent): Remove.
7484 2011-01-31 Tom Tromey <tromey@redhat.com>
7486 * breakpoint.h (user_breakpoint_p): Declare.
7487 * breakpoint.c (user_breakpoint_p): New function.
7488 (breakpoint_1): Use it.
7489 (save_breakpoints): Likewise.
7491 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7493 * configure.ac: Add handling of Python distribution on Windows.
7494 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7495 sysconfig variables are not defined, then do not use them.
7496 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7497 instead. On Windows, return all paths using forward-slashes
7498 rather than backslashes.
7500 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7502 * configure.ac: Remove fallback behavior for building
7503 against Python. Remove tweaking of Python include path.
7504 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7505 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7506 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7507 Always restore CPPFLAGS and LIBS after linking test.
7508 * configure: Regenerated.
7509 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7510 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7511 * python/python-internal.h: Adjust includes of Python .h files.
7513 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7515 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7518 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7520 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7523 2011-01-31 Yao Qi <yao@codesourcery.com>
7525 * arm-linux-nat.c: Update calls to regcache_register_status
7526 instead of regcache_valid_p.
7527 * aix-thread.c: Likewise.
7528 * i386gnu-nat.c: Likewise.
7530 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7533 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7534 touching TYPE_FIELD_ARTIFICIAL.
7536 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7538 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7541 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7543 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7544 selected, don't try iterating over the traceframe's blocks.
7545 (tfile_has_stack): If there's no traceframe selected, then there's
7547 (tfile_has_registers): If there's no traceframe selected, then
7548 there's no registers.
7550 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7552 * target.c (memory_xfer_partial): No need to restore shadows if we
7553 haven't read anything.
7555 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7557 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7558 and val_print_scalar_formatted.
7560 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7562 * tracepoint.c (tfile_read): New.
7563 (tfile_open): Use it.
7564 (tfile_get_traceframe_address): Use it.
7565 (tfile_trace_find): Use it.
7566 (walk_blocks_callback_func): New typedef.
7567 (match_blocktype): New function.
7568 (traceframe_walk_blocks): New function.
7569 (traceframe_find_block_type): New function.
7570 (tfile_fetch_registers, tfile_xfer_partial)
7571 (tfile_get_trace_state_variable_value): Use
7572 traceframe_find_block_type and tfile_read.
7574 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7576 * remote-mips.c: Add internationalization mark ups. Remove
7577 trailing \n from already marked up strings.
7579 2011-01-26 Tom Tromey <tromey@redhat.com>
7581 * python/py-prettyprint.c (print_string_repr): Clear
7582 'addressprint' option when calling val_print_string.
7583 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7584 option when calling val_print_string.
7586 2011-01-26 Tom Tromey <tromey@redhat.com>
7588 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7590 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7592 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7593 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7594 (gdb_py_long_as_ulongest): New defines.
7595 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7596 (gdb_py_int_as_long): Declare.
7597 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7598 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7599 (valpy_long): Add comment.
7600 * python/py-utils.c (get_addr_from_python): Use
7601 gdb_py_long_as_ulongest. Handle overflow properly.
7602 (gdb_py_object_from_longest): New function.
7603 (gdb_py_object_from_ulongest): Likewise.
7604 (gdb_py_int_as_long): Likewise.
7605 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7606 * python/py-symtab.c (salpy_get_pc): Use
7607 gdb_py_long_from_ulongest.
7608 (salpy_get_line): Use PyInt_FromLong.
7609 * python/py-param.c (set_parameter_value): Use
7611 * python/py-lazy-string.c (stpy_get_address): Use
7612 gdb_py_long_from_ulongest.
7613 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7614 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7615 * python/py-breakpoint.c (bppy_set_thread): Use
7617 (bppy_set_task): Likewise.
7618 (bppy_set_ignore_count): Likewise.
7619 (bppy_set_hit_count): Likewise.
7620 * python/py-block.c (blpy_get_start): Use
7621 gdb_py_object_from_ulongest.
7622 (blpy_get_end): Likewise.
7623 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7625 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7628 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7629 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7630 equality test for objfile, initialize addr_low if needed.
7632 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7634 * tui/tui-regs.c (tui_register_format): Remove dead code.
7636 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7638 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7639 instead of print_scalar_formatted.
7640 (print_scalar_formatted): Don't handle 's' format strings here,
7641 and add an assertion that we never see such format here.
7642 * valprint.h (val_print_scalar_formatted): Declare.
7643 * valprint.c (val_print_scalar_formatted): New.
7644 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7645 instead of print_scalar_formatted.
7646 * jv-valprint.c (java_val_print): Ditto.
7647 * p-valprint.c (pascal_val_print): Ditto.
7648 * ada-valprint.c (ada_val_print_1): Ditto.
7649 * f-valprint.c (f_val_print): Ditto.
7650 * infcmd.c (registers_info): Ditto.
7651 * m2-valprint.c (m2_val_print): Ditto.
7653 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7655 * m2-valprint.c (print_unbounded_array): Pass
7656 value_contents_for_printing rather than value_contents, to
7657 m2_print_array_contents. Also pass in the value.
7659 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7661 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7662 (save_gdb_index_command): Switch to .gdb_index version 4.
7664 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7666 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7667 than frame_register, and always pass a valid value to val_print.
7669 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7671 Centralize printing "<optimized out>".
7673 * valprint.h (val_print_optimized_out): Declare.
7674 * cp-valprint.c (cp_print_value_fields): Use
7675 val_print_optimized_out.
7676 * jv-valprint.c (java_print_value_fields): Ditto.
7677 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7678 * printcmd.c (print_formatted): Ditto.
7679 * valprint.c (valprint_check_validity): Ditto.
7680 (value_check_printable): Ditto.
7681 (val_print_optimized_out): New.
7683 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7685 * infcmd.c (default_print_registers_info): Allocate values so to
7686 never pass a NULL value to val_print.
7688 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7690 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7691 boolean. Make sure to always pass a value that matches the
7692 contents buffer to callees. Preserve `address' for following
7694 * value.c (value_contents_for_printing_const): New.
7695 (value_address): Constify value argument.
7696 * value.h (value_contents_for_printing_const): Declare.
7697 (value_address): Constify value argument.
7699 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7701 * regcache.c (struct regcache_descr): Rename
7702 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7703 and sizeof_cooked_register_valid_p to
7704 sizeof_cooked_register_status.
7705 (init_regcache_descr): Adjust.
7706 (struct regcache): Rename register_valid_p field to
7708 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7709 (do_cooked_read): Adjust.
7710 (regcache_valid_p): Rename to ...
7711 (regcache_register_status): ... this. Adjust.
7712 (regcache_invalidate): Adjust.
7713 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7715 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7716 as unavailable, not valid.
7717 (regcache_dump): Adjust.
7718 * regcache.h (enum register_status): New.
7719 (regcache_register_status): Declare.
7720 (regcache_invalidate): Delete declaration.
7721 * corelow.c (get_core_registers): Adjust.
7722 * tracepoint.c (tfile_fetch_registers): Adjust.
7723 * trad-frame.c (REG_VALUE): Rename to ...
7724 (TF_REG_VALUE): ... this.
7725 (REG_UNKNOWN): Rename to ...
7726 (TF_REG_UNKNOWN): ... this.
7727 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7728 * mi/mi-main.c (register_changed_p): Adjust.
7730 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7732 * regcache.c (struct regcache_descr): Remove outdated comment.
7733 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7735 (regcache_xmalloc): Rename to ...
7736 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7737 Allocate the regcache type accordingly.
7738 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7739 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7740 cooked registers, not raw.
7741 (regcache_dup_no_passthrough): Delete.
7742 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7743 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7744 mention obsolete write_register_bytes.
7745 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7747 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7749 Stop remote_read_bytes from handling partial reads itself.
7751 * remote-fileio.c: Include target.h.
7752 (remote_fileio_write_bytes): Delete.
7753 (remote_fileio_func_open, remote_fileio_func_write)
7754 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7756 (remote_fileio_func_stat): Use target_read_memory and
7757 target_write_memory.
7758 (remote_fileio_func_gettimeofday): Use target_write_memory.
7759 (remote_fileio_func_system): Use target_read_memory.
7760 * remote.c (remote_write_bytes): Make it static.
7761 (remote_read_bytes): Don't handle partial reads here.
7762 * remote.h (remote_read_bytes): Delete declaration.
7764 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7766 Simplify XML parsing a bit.
7768 * xml-support.h (gdb_xml_parse_quick): Declare.
7769 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7770 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7772 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7773 gdb_xml_create_parser_and_cleanup_1.
7774 (gdb_xml_parse_quick): New.
7775 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7776 * osdata.c (osdata_parse): Ditto.
7777 * remote.c (remote_threads_info): Ditto.
7778 * solib-target.c (solib_target_parse_libraries): Ditto.
7779 * xml-syscall.c (syscall_parse_xml): Ditto.
7780 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7782 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7784 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7785 with remote-mips.o added to gdb_target_obs.
7786 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7788 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7790 * ada-valprint.c (val_print_packed_array_elements): Pass the
7791 correct struct value to val_print.
7792 (ada_val_print_1): Ditto.
7794 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7796 Don't lose embedded_offset in printing routines throughout.
7798 * valprint.h (val_print_array_elements): Change prototype.
7799 * valprint.c (val_print_array_elements): Add `embedded_offset'
7800 parameter, and adjust to pass it down to val_print, while passing
7801 `valaddr' or `address' unmodified. Take embedded_offset into
7802 account when checking repetitions.
7803 * c-valprint.c (c_val_print): Pass embedded_offset to
7804 val_print_array_elements instead of adjusting `valaddr' and
7806 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7807 embedded_offset to val_print_array_elements instead of adjusting
7809 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7810 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7811 val_print_array_elements and pascal_object_print_value_fields
7812 instead of adjusting `valaddr'.
7813 (pascal_object_print_value_fields): Add `offset' parameter, and
7815 (pascal_object_print_value): Add `offset' parameter, and adjust to
7817 (pascal_object_print_static_field): Use
7818 value_contents_for_printing/value_embedded_offset, rather than
7820 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7821 parameter, and adjust to use it. Use
7822 value_contents_for_printing/value_embedded_offset, rather than
7824 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7825 (ada_val_print_array): Add `offset' parameter, and adjust to use
7827 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7828 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7829 Instead work with offsets. Use
7830 value_contents_for_printing/value_embedded_offset, rather than
7831 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7832 and use value_from_pointer to extract a target pointer, rather
7833 than value_from_longest.
7834 (print_variant_part): Add `offset' parameter. Replace
7835 `outer_valaddr' parameter by a new `outer_offset' parameter.
7836 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7837 (ada_value_print): Use
7838 value_contents_for_printing/value_embedded_offset, rather than
7840 (print_record): Add `offset' parameter, and adjust to pass it
7842 (print_field_values): Add `offset' parameter. Replace
7843 `outer_valaddr' parameter by a new `outer_offset' parameter.
7844 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7845 Use value_contents_for_printing/value_embedded_offset, rather than
7847 * d-valprint.c (dynamic_array_type): Use
7848 value_contents_for_printing/value_embedded_offset, rather than
7850 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7851 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7852 (java_print_value_fields): Take `offset' into account. Don't
7853 re-adjust `valaddr'. Instead pass down adjusted offsets.
7854 (java_val_print): Take `embedded_offset' into account. Pass it to
7855 java_print_value_fields.
7856 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7857 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7858 down adjusted offsets.
7859 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7860 (f_val_print): Take `embedded_offset' into account.
7862 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7864 * inflow.c: Include "gdbcmd.h".
7865 (interactive_mode): New static global, moved here from top.c.
7866 (show_interactive_mode): New function, moved here from top.c.
7867 use gdb_has_a_terminal instead of input_from_terminal_p to
7868 determine the current mode.
7869 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7871 (_initialize_inflow): Add the "set/show interactive-mode"
7872 commands. Moved here from top.c, after having adjusted slightly
7874 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7876 (input_from_terminal_p): Remove handling of "interactive-mode"
7877 setting, moved to infow.c.
7878 (init_main): Remove creation of the "set/show interactive-mode"
7879 commands, moved to inflow.c.
7881 2011-01-19 Joel Brobecker <brobecker@adacore.com>
7883 * NEWS: Add entry for native ia64-hpux support.
7885 2011-01-19 Tom Tromey <tromey@redhat.com>
7888 * thread.c (free_thread): Free 'name'.
7889 (print_thread_info): Emit thread name. Change CLI output.
7890 (thread_name_command): New function.
7891 (do_captured_thread_select): Emit newline.
7892 (_initialize_thread): Register 'thread name' command.
7893 * target.h (struct target_ops) <to_thread_name>: New field.
7894 (target_thread_name): New macro.
7895 * target.c (update_current_target): Handle to_thread_name.
7896 * python/py-infthread.c (thpy_get_name): New function.
7897 (thpy_set_name): Likewise.
7898 (thread_object_getset): Add "name".
7899 * linux-nat.c (linux_nat_thread_name): New function.
7900 (linux_nat_add_target): Set to_thread_name.
7901 * gdbthread.h (struct thread_info) <name>: New field.
7903 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7905 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7906 (ada_val_print_1): Likewise.
7908 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7910 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7911 upper limit address is not greater than the function end address
7912 when the upper limit could not be computed using the debugging
7915 2011-01-17 Tom Tromey <tromey@redhat.com>
7917 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
7919 * utils.c: Include gdb_regex.h.
7920 (do_regfree_cleanup): New function.
7921 (make_regfree_cleanup): Likewise.
7922 (get_regcomp_error): Likewise.
7923 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
7925 2011-01-17 Tom Tromey <tromey@redhat.com>
7927 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
7930 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7932 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
7933 for internal variables.
7934 (last_was_structop): New static variable.
7935 (COMPLETE): New token.
7936 (field_exp): New rule to group all '.' suffix handling.
7937 Add mark_struct_expression calls when approriate to be able
7938 to correctly find fields for completion.
7939 (yylex): Adapt to handle field completion and set INTVAR when
7942 2011-01-14 Yao Qi <yao@codesourcery.com>
7944 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
7945 save_reggroup, restore_reggroup and all_reggroup.
7947 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7949 * ada-valprint. (ada_printchar): Use the correct type length
7950 in call to ada_emit_char.
7951 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
7953 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7955 * solib-som.h (hpux_major_release): Declare variable here.
7956 * solib-som.c: Remove <sys/utsname.h> header.
7957 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
7958 (hpux_major_release): Make global, change default value to
7959 DEFAULT_HPUX_MAJOR_RELEASE.
7960 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7961 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
7962 Add "solib-som.h" header.
7963 (set_hpux_major_release): New function.
7964 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
7966 2011-01-14 Mike Frysinger <vapier@gentoo.org>
7968 * configure.tgt (*-*-uclinux*): Match more Linux os targets
7970 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7972 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
7973 new-line at end of warning message.
7974 (ia64_hpux_store_register): Remove trailing new-line at end of
7976 * ia64-hpux-tdep.c: Rephrase comment.
7977 * solib-ia64-hpux.c (struct dld_info): Change type of field
7978 dld_flags from "long long" to ULONGEST.
7980 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7982 * target.h (deprecated_child_ops): Delete declaration.
7983 * target.c (deprecated_child_ops): Delete definition.
7985 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7987 * Makefile.in (hpux-thread.o): Delete rule.
7988 * configure.ac: Don't check for HPUX DCE threads support.
7989 * configure, config.in: Regenerate.
7990 * hppa-hpux-nat.c (child_suppress_run): Delete.
7991 (hppa_hpux_child_can_run): Delete.
7992 (_initialize_hppa_hpux_nat): Don't override to_can_run.
7993 * hpux-thread.c: Delete.
7995 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7997 * hpux-thread.c (hpux_pid_to_str): Delete.
7999 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8001 * ada-valprint.c (ada_emit_char): Remove strange code.
8002 Check that c is <= UCHAR_MAX before passing it to isascii.
8003 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8005 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8007 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8008 to the case where instream is stdin.
8010 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8012 * ia64-tdep.h (struct regcache): Forward declare.
8013 (struct ia64_infcall_ops): New struct type.
8014 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8016 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8017 Renames ia64_find_global_pointer.
8018 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8019 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8020 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8022 (ia64_infcall_ops): New static global constant.
8023 (ia64_gdbarch_init): Set tdep->infcall_ops.
8024 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8025 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8026 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8027 (ia64_hpux_dummy_code): New static global constant.
8028 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8029 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8030 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8032 (ia64_hpux_infcall_ops): New static global constant.
8033 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8034 for inferior function calls to work properly on ia64-hpux.
8036 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8038 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8039 * ia64-tdep.h (struct frame_info): forward declaration.
8040 (struct gdbarch_tdep): Add field size_of_register_frame.
8041 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8042 to determine the size of the register frame.
8043 (ia64_size_of_register_frame): New function.
8044 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8045 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8046 (IA64_HPUX_UREG_REASON): New macro.
8047 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8049 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8050 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8051 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8054 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8056 Add support for ia64-hpux.
8057 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8058 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8060 * configure.host: Add handling for ia64-hpux hosts. Add associated
8062 * configure.tgt: Add handling for ia64-hpux targets.
8063 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8064 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8065 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8067 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8069 [ttrace] Compute thread list immediately after attach.
8070 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8072 (inf_ttrace_attach): Use it.
8074 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8076 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8077 if we could not determine the frame's function address. Instead,
8078 use the frame's PC, and then continue.
8080 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8082 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8083 not already defined.
8085 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8087 * ia64-tdep.c (ia64_struct_type_p): New function.
8088 (ia64_extract_return_value): Handle integral values that are
8089 less than 8 bytes long.
8090 (ia64_push_dummy_call): Likewise.
8092 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8094 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8095 floatformat_ia64_ext.
8096 (floatformat_ia64_ext_big): New static const.
8097 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8099 2011-01-12 Tom Tromey <tromey@redhat.com>
8101 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8103 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8104 (mi_cmd_thread_list_ids): Likewise.
8105 (mi_cmd_data_list_changed_registers): Likewise.
8106 (mi_cmd_data_list_register_values): Likewise.
8107 (mi_cmd_data_write_register_values): Likewise.
8108 (mi_cmd_data_evaluate_expression): Likewise.
8109 (mi_cmd_data_read_memory): Likewise.
8110 (mi_cmd_data_read_memory_bytes): Likewise.
8111 (mi_cmd_data_write_memory): Likewise.
8112 (mi_cmd_enable_timings): Likewise.
8113 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8114 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8115 (mi_cmd_var_delete): Likewise.
8116 (mi_cmd_var_set_format): Likewise.
8117 (mi_cmd_var_show_format): Likewise.
8118 (mi_cmd_var_info_num_children): Likewise.
8119 (mi_cmd_var_list_children): Likewise.
8120 (mi_cmd_var_info_type): Likewise.
8121 (mi_cmd_var_info_expression): Likewise.
8122 (mi_cmd_var_show_attributes): Likewise.
8123 (mi_cmd_var_assign): Likewise.
8124 (mi_cmd_var_update): Likewise.
8125 (mi_cmd_enable_pretty_printing): Likewise.
8126 (mi_cmd_var_set_update_range): Likewise.
8127 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8129 (mi_cmd_target_file_put): Likewise.
8130 (mi_cmd_target_file_delete): Likewise.
8131 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8133 (mi_cmd_stack_info_depth): Likewise.
8134 (mi_cmd_stack_list_locals): Likewise.
8135 (mi_cmd_stack_list_args): Likewise.
8136 (mi_cmd_stack_select_frame): Likewise.
8137 (mi_cmd_stack_select_frame): Likewise.
8138 (mi_cmd_stack_info_frame): Likewise.
8139 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8141 (mi_cmd_file_list_exec_source_files): Likewise.
8142 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8143 (mi_cmd_env_cd): Likewise.
8144 (mi_cmd_env_path): Likewise.
8145 (mi_cmd_env_dir): Likewise.
8146 (mi_cmd_inferior_tty_show): Likewise.
8147 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8148 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8149 (mi_cmd_break_watch): Likewise.
8151 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8153 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8154 (ppc_linux_insert_hw_breakpoint): Likewise.
8155 (ppc_linux_remove_hw_breakpoint): Likewise.
8156 (ppc_linux_insert_watchpoint): Likewise.
8158 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8159 Jan Kratochvil <jan.kratochvil@redhat.com>
8161 PR fortran/11104 and DWARF unbound arrays detection.
8162 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8163 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8164 unspecified upper bound.
8165 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8166 variables array_size_array, tmp_type and offset_item. New variable
8167 array. Remove call to f77_get_upperbound. New variables array_type
8168 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8169 the final call to deprecated_set_value_type.
8171 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8173 Make value allocations more lazy.
8174 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8175 instead of allocate_value and set_value_lazy when possible.
8176 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8177 instead of allocate_value and set_value_lazy.
8178 * findvar.c (value_of_register_lazy): Likewise.
8179 (read_var_value): Remove V preallocation, call just check_typedef in
8180 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8181 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8182 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8183 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8184 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8185 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8186 the end, remove set_value_lazy there.
8187 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8188 instead of allocate_value and set_value_lazy when possible.
8189 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8190 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8191 of allocate_value and set_value_lazy.
8192 (value_from_contents_and_address): Use allocate_value_lazy instead of
8193 allocate_value and set_value_lazy when possible.
8195 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8197 * disasm.c (dump_insns): Support dumping opcodes for MI.
8198 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8199 dumping of instruction opcodes.
8201 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8203 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8206 2011-01-11 Tom Tromey <tromey@redhat.com>
8208 * thread.c (do_captured_thread_select): Emit newline before
8211 2011-01-11 Michael Snyder <msnyder@vmware.com>
8213 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8214 * score-tdep.c: Ditto.
8215 * score-tdep.h: Ditto.
8216 * ser-base.c: Ditto.
8217 * ser-go32.c: Ditto.
8220 * ser-mingw.c: Ditto.
8221 * ser-pipe.c: Ditto.
8223 * ser-unix.c: Ditto.
8224 * sh64-tdep.c: Ditto.
8225 * shnbsd-nat.c: Ditto.
8229 * solib-darwin.c: Ditto.
8230 * solib-frv.c: Ditto.
8232 * solib-irix.c: Ditto.
8233 * solib-osf.c: Ditto.
8234 * solib-pa64.c: Ditto.
8235 * solib-som.c: Ditto.
8236 * solib-spu.c: Ditto.
8237 * solib-sunos.c: Ditto.
8238 * solib-svr4.c: Ditto.
8240 * sol-thread.c: Ditto.
8244 * sparc64-linux-tdep.c: Ditto.
8245 * sparc64-tdep.c: Ditto.
8246 * sparc-linux-nat.c: Ditto.
8247 * sparc-linux-tdep.c: Ditto.
8248 * sparc-sol2-nat.c: Ditto.
8249 * sparc-sol2-tdep.c: Ditto.
8250 * sparc-tdep.c: Ditto.
8251 * sparc-tdep.h: Ditto.
8252 * spu-tdep.c: Ditto.
8253 * stabsread.c: Ditto.
8254 * stabsread.h: Ditto.
8262 * target-descriptions.c: Ditto.
8263 * target-descriptions.h: Ditto.
8265 * target-memory.c: Ditto.
8266 * terminal.h: Ditto.
8269 * tracepoint.c: Ditto.
8270 * tracepoint.h: Ditto.
8271 * trad-frame.h: Ditto.
8272 * typeprint.c: Ditto.
8274 2011-01-11 Michael Snyder <msnyder@vmware.com>
8276 * ui-file.c: Comment cleanup, mostly periods and spaces.
8281 * v850-tdep.c: Ditto.
8282 * valarith.c: Ditto.
8284 * valprint.c: Ditto.
8285 * valprint.h: Ditto.
8290 * vax-tdep.c: Ditto.
8294 * windows-nat.c: Ditto.
8295 * windows-tdep.c: Ditto.
8296 * xcoffread.c: Ditto.
8297 * xcoffsolib.c: Ditto.
8298 * xml-support.c: Ditto.
8299 * xstormy16-tdep.c: Ditto.
8300 * xtensa-tdep.c: Ditto.
8301 * xtensa-tdep.h: Ditto.
8303 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8305 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8306 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8308 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8309 Thiago Jung Bauermann <bauerman@br.ibm.com>
8311 Implement support for PowerPC BookE ranged watchpoints.
8313 (struct breakpoint_ops) <resources_needed>: New method.
8314 Initialize to NULL in all existing breakpoint_ops instances.
8315 (struct breakpoint) <exact>: New field.
8316 (target_exact_watchpoints): Declare external global.
8317 * breakpoint.c (target_exact_watchpoints): New global flag.
8318 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8319 b->enable_state to bp_enabled before calling
8320 hw_watchpoint_used_count.
8321 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8322 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8324 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8325 if the watchpoint is exact.
8326 (resources_needed_watchpoint): New function.
8327 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8328 (watch_command_1): Set b->exact if the user asked for an exact
8329 watchpoint and one can be set.
8330 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8331 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8332 the user asks for an exact watchpoint and one can be set. Return
8333 number of needed debug registers to watch the expression.
8334 * gdbtypes.c (is_scalar_type): New function, based on
8335 valprint.c:scalar_type_p.
8336 (is_scalar_type_recursive): New function.
8337 * gdbtypes.h (is_scalar_type_recursive): Declare.
8338 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8339 handle regions when ranged watchpoints are available.
8340 (create_watchpoint_request): New function.
8341 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8342 create_watchpoint_request.
8343 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8344 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8345 `set powerpc' and `show powerpc' commands.
8346 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8347 Mention documentation comment in the target macro.
8348 (target_region_ok_for_hw_watchpoint): Document return value.
8350 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8352 * breakpoint.c (update_watchpoint): Decide on using a software or
8353 hardware watchpoint after the bp_locations are created.
8355 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8357 Convert hardware watchpoints to use breakpoint_ops.
8358 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8359 <insert_location>: ... this. Return int instead of void.
8360 Accept pointer to struct bp_location instead of pointer to
8361 struct breakpoint. Adapt all implementations.
8362 (breakpoint_ops) <remove>: Rename to...
8363 <remove_location>: ... this. Accept pointer to struct bp_location
8364 instead of pointer to struct breakpoint. Adapt all implementations.
8365 * breakpoint.c (insert_catchpoint): Delete function.
8366 (insert_bp_location): Call the watchpoint or catchpoint's
8367 breakpoint_ops.insert method.
8368 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8369 breakpoint_ops.remove method.
8370 (insert_watchpoint, remove_watchpoint): New functions.
8371 (watchpoint_breakpoint_ops): New structure.
8372 (watch_command_1): Initialize the OPS field.
8373 * inf-child.c (inf_child_insert_fork_catchpoint)
8374 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8375 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8376 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8378 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8379 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8380 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8381 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8382 * target.c (update_current_target): Change default implementation of
8383 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8384 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8385 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8386 to_set_syscall_catchpoint to return_one.
8387 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8388 (debug_to_insert_exec_catchpoint): Report return value.
8389 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8390 (to_insert_exec_catchpoint): Change declaration to return int instead
8393 2011-01-11 Michael Snyder <msnyder@vmware.com>
8395 * arm-tdep.c: Internationalization.
8398 * fork-child.c: Ditto.
8399 * nto-procfs.c: Ditto.
8400 * ppc-sysv-tdep.c: Ditto.
8402 * remote-mips.c: Ditto.
8404 * rs6000-nat.c: Ditto.
8405 * rs6000-tdep.c: Ditto.
8409 * xml-support.c: Ditto.
8410 * mi/mi-cmd-break.c: Ditto.
8411 * mi/mi-cmd-var.c: Ditto.
8412 * mi/mi-interp.c: Ditto.
8413 * mi/mi-main.c: Ditto.
8415 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8417 * remote-sim.c (gdbsim_store_register): Update API to
8418 sim_store_register to check more error conditions.
8420 2011-01-10 Michael Snyder <msnyder@vmware.com>
8422 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8423 * nto-tdep.c: Ditto.
8424 * nto-tdep.h: Ditto.
8425 * objc-exp.y: Ditto.
8426 * objc-lang.c: Ditto.
8427 * objfiles.c: Ditto.
8428 * objfiles.h: Ditto.
8429 * observer.c: Ditto.
8430 * opencl-lang.c: Ditto.
8433 * parser-defs.h: Ditto.
8436 * posix-hdep.c: Ditto.
8437 * ppcbug-rom.c: Ditto.
8438 * ppc-linux-nat.c: Ditto.
8439 * ppc-linux-tdep.c: Ditto.
8440 * ppc-linux-tdep.h: Ditto.
8441 * ppcnbsd-tdep.c: Ditto.
8442 * ppcobsd-tdep.c: Ditto.
8443 * ppcobsd-tdep.h: Ditto.
8444 * ppc-sysv-tdep.c: Ditto.
8445 * ppc-tdep.h: Ditto.
8446 * printcmd.c: Ditto.
8447 * proc-abi.c: Ditto.
8448 * proc-flags.c: Ditto.
8450 * proc-utils.h: Ditto.
8451 * progspace.h: Ditto.
8452 * prologue-value.c: Ditto.
8453 * prologue-value.h: Ditto.
8454 * psympriv.h: Ditto.
8456 * p-typeprint.c: Ditto.
8457 * p-valprint.c: Ditto.
8458 * ravenscar-sparc-thread.c: Ditto.
8459 * ravenscar-thread.c: Ditto.
8460 * ravenscar-thread.h: Ditto.
8462 * regcache.c: Ditto.
8463 * regcache.h: Ditto.
8465 * remote-fileio.c: Ditto.
8466 * remote-fileio.h: Ditto.
8468 * remote-m32r-sdi.c: Ditto.
8469 * remote-mips.c: Ditto.
8470 * remote-sim.c: Ditto.
8471 * rs6000-aix-tdep.c: Ditto.
8472 * rs6000-nat.c: Ditto.
8473 * rs6000-tdep.c: Ditto.
8475 2011-01-10 Michael Snyder <msnyder@vmware.com>
8477 * charset.c (validate): Internationalization.
8478 * coffread.c (read_one_sym): Ditto.
8479 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8480 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8481 * inflow.c (new_tty): Ditto.
8482 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8483 * m32c-tdep.c (m32c_return_value): Ditto.
8484 * mep-tdep.c (mep_store_return_value): Ditto.
8485 * score-tdep.c (score7_fetch_insn): Ditto.
8486 * ser-mingw.c (pipe_windows_open): Ditto.
8487 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8488 * spu-tdep.c (spu_register_type): Ditto.
8489 * tracepoint.c (trace_find_command): Ditto.
8490 * valarith.c (value_pos): Ditto.
8492 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8494 * ada-valprint.c (printstr): Minor comment reformatting.
8496 2011-01-08 Michael Snyder <msnyder@vmware.com>
8498 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8501 2011-01-08 Michael Snyder <msnyder@vmware.com>
8503 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8504 * hppa-hpux-tdep.c: Ditto.
8505 * hppa-linux-nat.c: Ditto.
8506 * hppa-linux-tdep.c: Ditto.
8507 * hppanbsd-tdep.c: Ditto.
8508 * hppa-tdep.c: Ditto.
8509 * hppa-tdep.h: Ditto.
8510 * hpux-thread.c: Ditto.
8511 * i386-cygwin-tdep.c: Ditto.
8512 * i386-darwin-nat.c: Ditto.
8513 * i386gnu-nat.c: Ditto.
8514 * i386-linux-nat.c: Ditto.
8515 * i386-linux-tdep.c: Ditto.
8516 * i386-nat.c: Ditto.
8517 * i386-nat.h: Ditto.
8518 * i386nbsd-tdep.c: Ditto.
8519 * i386-sol2-nat.c: Ditto.
8520 * i386-stub.c: Ditto.
8521 * i386-tdep.c: Ditto.
8522 * i386-tdep.h: Ditto.
8523 * i387-tdep.c: Ditto.
8524 * ia64-linux-nat.c: Ditto.
8525 * ia64-linux-tdep.c: Ditto.
8526 * ia64-tdep.c: Ditto.
8530 * inferior.c: Ditto.
8531 * inferior.h: Ditto.
8537 * iq2000-tdep.c: Ditto.
8538 * irix5-nat.c: Ditto.
8544 * jv-typeprint.c: Ditto.
8545 * jv-valprint.c: Ditto.
8546 * language.c: Ditto.
8547 * language.h: Ditto.
8548 * linespec.c: Ditto.
8549 * linux-fork.c: Ditto.
8550 * linux-nat.c: Ditto.
8551 * linux-thread-db.c: Ditto.
8552 * lm32-tdep.c: Ditto.
8554 2011-01-08 Michael Snyder <msnyder@vmware.com>
8556 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8558 * m2-typeprint.c: Ditto.
8559 * m2-valprint.c: Ditto.
8560 * m32c-tdep.c: Ditto.
8561 * m32r-linux-nat.c: Ditto.
8562 * m32r-rom.c: Ditto.
8563 * m32r-tdep.c: Ditto.
8564 * m32r-tdep.h: Ditto.
8565 * m68hc11-tdep.c: Ditto.
8566 * m58klinux-nat.c: Ditto.
8567 * m68k-tdep.c: Ditto.
8568 * m88k-tdep.c: Ditto.
8569 * m88k-tdep.h: Ditto.
8570 * machoread.c: Ditto.
8571 * macrocmd.c: Ditto.
8572 * macroexp.c: Ditto.
8573 * macrotab.c: Ditto.
8576 * mdebugread.c: Ditto.
8577 * mdebugread.h: Ditto.
8580 * memory-map.h: Ditto.
8581 * mep-tdep.c: Ditto.
8582 * microblaze-rom.c: Ditto.
8583 * microblaze-tdep.c: Ditto.
8585 * mips-irix-tdep.c: Ditto.
8586 * mips-linux-nat.c: Ditto.
8587 * mips-linux-tdep.c: Ditto.
8588 * mips-linux-tdep.h: Ditto.
8589 * mipsnbsd-nat.c: Ditto.
8590 * mipsnbsd-tdep.c: Ditto.
8591 * mipsread.c: Ditto.
8592 * mips-tdep.c: Ditto.
8593 * mips-tdep.h: Ditto.
8594 * mn10300-linux-tdep.c: Ditto.
8595 * mn10300-tdep.c: Ditto.
8596 * mn10300-tdep.h: Ditto.
8599 * moxie-tdep.c: Ditto.
8600 * moxie-tdep.h: Ditto.
8603 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8605 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8607 2011-01-08 Robert Millan <rmh@gnu.org>
8609 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8611 2011-01-07 Michael Snyder <msnyder@vmware.com>
8613 * charset.c (_initialize_charset): Fix typo in string.
8615 2011-01-07 Michael Snyder <msnyder@vmware.com>
8617 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8619 * tui/tui-layout.c (tui_set_layout_for_display_command):
8620 Split line so that operator goes to beginning of line.
8621 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8622 assignment out of if statement.
8624 2011-01-07 Michael Snyder <msnyder@vmware.com>
8626 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8627 * ada-lang.h: Ditto.
8628 * ada-tasks.c: Ditto.
8629 * ada-valprint.c: Ditto.
8630 * aix-threads.c: Ditto.
8631 * alpha-linux-nat.c: Ditto.
8632 * alpha-linux-tdep.c: Ditto.
8633 * alpha-mdebug-tdep.c: Ditto.
8634 * alpha-nat.c: Ditto.
8635 * alpha-osf1-tdep.c: Ditto.
8636 * alpha-tdep.c: Ditto.
8637 * alphabsd-nat.c: Ditto.
8638 * alphabsd-tdep.c: Ditto.
8639 * amd64-darwin-tdep.c: Ditto.
8640 * amd64-linux-nat.c: Ditto.
8641 * amd64-linux-tdep.c: Ditto.
8642 * amd64-sol2-tdep.c: Ditto.
8643 * amd64-tdep.c: Ditto.
8644 * amd64-fbsd-tdep.c: Ditto.
8645 * amd64-nbsd-tdep.c: Ditto.
8646 * amd64-obsd-tdep.c: Ditto.
8647 * amd64-linux-nat.c: Ditto.
8648 * amd64-linux-tdep.c: Ditto.
8649 * arm-tdep.c: Ditto.
8650 * arm-tdep.h: Ditto.
8651 * armnbsd-nat.c: Ditto.
8652 * avr-tdep.c: Ditto.
8653 * bfin-tdep.c: Ditto.
8655 * c-typeprintc: Ditto.
8656 * c-valprint.c: Ditto.
8657 * coff-pe-read.h: Ditto.
8658 * coffreead.c: Ditto.
8659 * cris-tdep.c: Ditto.
8661 * darwin-nat-info.c: Ditto.
8662 * darwin-nat.c: Ditto.
8663 * dbug-rom.c: Ditto.
8667 * dec-thread.c: Ditto.
8669 * demangle.c: Ditto.
8670 * dicos-tdep.c: Ditto.
8671 * dictionary.c: Ditto.
8672 * dictionary.h: Ditto.
8673 * dink32-rom.c: Ditto.
8675 * doublest.c: Ditto.
8677 * dummy-frame.c: Ditto.
8678 * dwarf2-frame.c: Ditto.
8679 * dwarf2expr.c: Ditto.
8680 * dwarf2loc.c: Ditto.
8681 * dwarf2read.c: Ditto.
8685 * event-top.h: Ditto.
8686 * exceptions.c: Ditto.
8687 * exceptions.h: Ditto.
8689 * expprint.c: Ditto.
8690 * expression.h: Ditto.
8694 * f-typeprint.c: Ditto.
8695 * f-valprint.c: Ditto.
8696 * fbsd-nat.c: Ditto.
8698 * fork-child.c: Ditto.
8701 * frv-linux-tdep.c: Ditto.
8702 * frv-tdep.c: Ditto.
8704 * gdb-stabs.h: Ditto.
8705 * gdb_assert.h: Ditto.
8706 * gdb_string.h: Ditto.
8707 * gdb_thread_db.h: Ditto.
8708 * gdb_wait.h: Ditto.
8709 * gdbarch.sh: Ditto.
8711 * gdbthread.h: Ditto.
8712 * gdbtypes.c: Ditto.
8713 * gdbtypes.h: Ditto.
8716 * gnu-v2-abi.c: Ditto.
8717 * gnu-v3-abi.c: Ditto.
8718 * go32-nat.c: Ditto.
8719 * gdbarch.c: Regenerate.
8720 * gdbarch.h: Regenerate.
8722 2011-01-07 Michael Snyder <msnyder@vmware.com>
8724 * ax-gdb.c: Adjust some long output strings.
8725 * breakpoint.c: Ditto.
8730 * linux-nat.c: Ditto.
8731 * solib-pa64.c: Ditto.
8732 * solib-som.c: Ditto.
8734 2011-01-06 Tom Tromey <tromey@redhat.com>
8738 * python/python.c (GdbMethods): Add "newest_frame" method.
8739 * python/python-internal.h (gdbpy_newest_frame): Declare.
8740 * python/py-frame.c (gdbpy_newest_frame): New function.
8742 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8744 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8745 * jit.c (jit_debug): New variable.
8746 (show_jit_debug): New function.
8747 (struct target_buffer): Use ULONGEST.
8748 (bfd_open_from_target_memory): Likewise.
8749 (jit_register_code, jit_inferior_init): Add debug output.
8750 (_initialize_jit): Register "debug jit" command.
8752 2011-01-06 Tom Tromey <tromey@redhat.com>
8754 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8755 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8758 2011-01-06 Tom Tromey <tromey@redhat.com>
8760 * python/py-frame.c (frapy_block): Use get_frame_block.
8762 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8764 Do not stop on SIGPRIO signals by default
8765 * infrun.c (_initialize_infrun): Unset signal_stop and
8766 signal_print for TARGET_SIGNAL_PRIO.
8768 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8770 * ada-tasks.c: Fix style violation in comment.
8772 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8774 * linespec.c (decode_compound, find_method): Remove trailing \n
8775 at end of error string.
8776 * solib-irix.c (irix_current_sos): Likewise.
8777 * varobj.c (uninstall_variable): Likewise.
8779 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8781 * copyright.py: New script.
8782 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8783 Launch emacs without exec'ing. Call copyright.py afterwards.
8785 2011-01-05 Michael Snyder <msnyder@vmware.com>
8787 * addrmap.c: Shorten lines of >= 80 columns.
8788 * arch-utils.c: Ditto.
8789 * arch-utils.h: Ditto.
8791 * ax-general.c: Ditto.
8793 * blockframe.c: Ditto.
8794 * breakpoint.c: Ditto.
8795 * buildsym.c: Ditto.
8797 * c-typeprint.c: Ditto.
8799 * coffread.c: Ditto.
8803 * cp-namespace.c: Ditto.
8804 * cp-support.c: Ditto.
8805 * dbug-rom.c: Ditto.
8810 * dictionary.c: Ditto.
8812 * doublest.c: Ditto.
8813 * dwarf2-frame.c: Ditto.
8814 * dwarf2expr.c: Ditto.
8815 * dwarf2loc.c: Ditto.
8816 * dwarf2read.c: Ditto.
8819 * event-loop.c: Ditto.
8820 * event-loop.h: Ditto.
8821 * exceptions.h: Ditto.
8823 * expprint.c: Ditto.
8824 * expression.h: Ditto.
8826 * f-valprint.c: Ditto.
8828 * frame-base.c: Ditto.
8829 * frame-unwind.c: Ditto.
8830 * frame-unwind.h: Ditto.
8834 * gdb-stabs.h: Ditto.
8835 * gdb_assert.h: Ditto.
8836 * gdb_dirent.h: Ditto.
8837 * gdb_obstack.h: Ditto.
8839 * gdbtypes.c: Ditto.
8840 * gdbtypes.h: Ditto.
8841 * inf-ttrace.c: Ditto.
8846 * inline-frame.h: Ditto.
8847 * language.c: Ditto.
8848 * language.h: Ditto.
8849 * libunwind-frame.c: Ditto.
8850 * libunwind-frame.h: Ditto.
8851 * linespec.c: Ditto.
8852 * linux-nat.c: Ditto.
8853 * linux-nat.h: Ditto.
8854 * linux-thread-db.c: Ditto.
8855 * machoread.c: Ditto.
8856 * macroexp.c: Ditto.
8857 * macrotab.c: Ditto.
8860 * mdebugread.c: Ditto.
8865 * objfiles.c: Ditto.
8866 * objfiles.h: Ditto.
8868 * p-typeprint.c: Ditto.
8869 * p-valprint.c: Ditto.
8871 * printcmd.c: Ditto.
8872 * proc-events.c: Ditto.
8874 * progspace.c: Ditto.
8875 * progspace.h: Ditto.
8876 * psympriv.h: Ditto.
8879 * regcache.c: Ditto.
8880 * regcache.h: Ditto.
8881 * remote-fileio.c: Ditto.
8883 * ser-mingw.c: Ditto.
8885 * ser-unix.c: Ditto.
8888 * solib-frv.c: Ditto.
8889 * solib-irix.c: Ditto.
8890 * solib-osf.c: Ditto.
8891 * solib-pa64.c: Ditto.
8892 * solib-som.c: Ditto.
8893 * solib-sunos.c: Ditto.
8894 * solib-svr4.c: Ditto.
8895 * solib-target.c: Ditto.
8899 * stabsread.c: Ditto.
8900 * stabsread.c: Ditto.
8903 * symfile-mem.c: Ditto.
8909 * target-descriptions.c: Ditto.
8910 * target-memory.c: Ditto.
8913 * terminal.h: Ditto.
8916 * tracepoint.c: Ditto.
8917 * tracepoint.h: Ditto.
8921 * user-regs.c: Ditto.
8922 * user-regs.h: Ditto.
8924 * valarith.c: Ditto.
8926 * valprint.c: Ditto.
8927 * valprint.h: Ditto.
8932 * xcoffread.c: Ditto.
8933 * xcoffsolib.c: Ditto.
8934 * xcoffsolib.h: Ditto.
8935 * xml-syscall.c: Ditto.
8936 * xml-tdesc.c: Ditto.
8938 2011-01-05 Michael Snyder <msnyder@vmware.com>
8940 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
8941 * cli/cli-decode.c: Ditto.
8942 * cli/cli-dump.c: Ditto.
8943 * cli/cli-logging.c: Ditto.
8944 * cli/cli-script.c: Ditto.
8945 * cli/cli-setshow.c: Ditto.
8946 * common/signals.c: Ditto.
8947 * mi/mi-cmd-break.c: Ditto.
8948 * mi/mi-cmd-disas.c: Ditto.
8949 * mi/mi-cmd-stack.c: Ditto.
8950 * mi/mi-cmd-var.c: Ditto.
8951 * mi/mi-cmds.c: Ditto.
8952 * mi/mi-common.h: Ditto.
8953 * mi/mi-console.c: Ditto.
8954 * mi/mi-interp.c: Ditto.
8955 * mi/mi-main.c: Ditto.
8956 * osf-share/cma_attr.c: Ditto.
8957 * osf-share/cma_deb_core.h: Ditto.
8958 * osf-share/cma_debug_client.h: Ditto.
8959 * osf-share/cma_handle.h: Ditto.
8960 * osf-share/cma_mutex.h: Ditto.
8961 * osf-share/cma_stack_int.h: Ditto.
8962 * osf-share/cma_tcb_defs.h: Ditto.
8963 * python/py-auto-load.c: Ditto.
8964 * python/py-breakpoint.c: Ditto.
8965 * python/py-cmd.c: Ditto.
8966 * python/py-frame.c: Ditto.
8967 * python/py-objfile.c: Ditto.
8968 * python/py-param.c: Ditto.
8969 * python/py-progspace.c: Ditto.
8970 * python/py-symbol.c: Ditto.
8971 * python/py-value.c: Ditto.
8972 * python/python-internal.h: Ditto.
8973 * python/python.c: Ditto.
8974 * tui/tui-data.c: Ditto.
8975 * tui/tui-disasm.c: Ditto.
8976 * tui/tui-hooks.c: Ditto.
8977 * tui/tui-io.c: Ditto.
8978 * tui/tui-layout.c: Ditto.
8979 * tui/tui-regs.c: Ditto.
8980 * tui/tui-source.c: Ditto.
8981 * tui/tui-stack.c: Ditto.
8982 * tui/tui-win.c: Ditto.
8983 * tui/tui-windata.c: Ditto.
8984 * tui/tui-winsource.c: Ditto.
8986 2011-01-05 Joel Brobecker <brobecker@adacore.com>
8988 * configure.ac, gdb.1: Copyright year update.
8990 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8992 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
8993 this_pc_in_block, morestack_msym and morestack_name. Check for
8994 "__morestack" minimal symbol there.
8996 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8998 * symfile.c (find_sym_fns): Add call to dont_repeat.
9000 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9002 Copyright year update in most files (performed by copyright.sh).
9004 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9006 * top.c (print_gdb_version): Update copyright year in version output.
9008 For older changes see ChangeLog-2010.
9014 version-control: never