1 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Fix TUI screen corruption.
4 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
7 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9 * findvar.c (read_var_value): Never return NULL, throw an error
10 instead. Update the function comment. State symbol name in the error
12 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
14 * stack.c (print_frame_args): Likewise.
15 * valops.c (value_of_variable): Likewise.
17 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
19 * stack.c (print_frame_args): New variable except. Wrap
20 read_var_value and common_val_print into TRY_CATCH.
22 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
24 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
25 caller to value_of_this.
26 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
28 * valops.c (value_of_this): Remove parameter complain and variable ret.
29 Update function comment. Never return NULL by this code.
30 (value_of_this_silent): New function.
31 * value.h (value_of_this): Remove parameter complain.
32 (value_of_this_silent): New declaration.
34 2011-09-07 Yao Qi <yao@codesourcery.com>
36 * gdbthread.h (struct thread_info): Remove fields
37 `stepping_through_solib_after_catch' and
38 `stepping_through_solib_catchpoints'.
39 * infrun.c (init_thread_stepping_state): Update.
40 (process_event_stop_test, currently_stepping): Update.
41 (currently_stepping_or_nexting_callback): Update.
43 2011-09-07 Yao Qi <yao@codesourcery.com>
45 * gdbthread.h (struct thread_info): Comment on field
46 `step_after_step_resume_breakpoint'.
48 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
50 * remote.c (remote_console_output): Reindent.
52 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
54 * frame.c (has_stack_frames): Check for currently selected
57 2011-09-06 Pedro Alves <pedro@codesourcery.com>
59 * event-top.h (MAXPROMPTS, struct prompts): Delete.
60 (set_async_annotation_level, set_async_prompt, pop_prompt)
61 (push_prompt, new_async_prompt): Delete declarations.
62 * top.h (get_prompt, set_prompt): Change prototype.
63 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
65 * top.c (command_loop):
66 (top_prompt): New global.
67 (get_prefix, set_prefix, get_suffix, ): Delete.
68 (get_prompt, set_prompt): Rewrite.
69 (show_new_async_prompt): Rename to ...
70 (show_prompt): ... this.
71 (init_main): Adjust. Don't handle --annotate=2 here.
72 * event-top.c (new_async_prompt): Delete.
73 (the_prompts): Delete.
74 (more_to_come): Make static.
75 (display_gdb_prompt): Use top_level_prompt() to compute the top
76 level prompt, and don't notify the before_prompt observers
77 directly here. Always trick readline into not trying to display
78 the prompt if sync_execution and displaying the primary prompt.
79 If displaying a local/secondary prompt, always show it, even if
80 sync_execution is set.
81 (change_annotation_level): Delete.
82 (top_level_prompt): New, based on change_annotation_level.
83 (push_prompt, pop_prompt): Delete.
84 (async_disable_stdin): No longer pushes prompt.
85 (command_line_handler): No longer pushes or pops prompt. If more
86 input is expected, call display_gdb_prompt with an explicit empty
88 (async_stop_sig): Adjust.
89 (set_async_annotation_level, set_async_prompt): Delete.
90 * python/python.c (before_prompt_hook): Adjust.
92 2011-09-05 Pedro Alves <pedro@codesourcery.com>
96 * infrun.c (fetch_inferior_event): Check if there's a selected
97 thread before checking if the selected thread is executing.
99 2011-09-05 Pedro Alves <pedro@codesourcery.com>
101 * inf-loop.c (execute_command): Don't check if the current thread
102 if running before synchronously waiting for command completion.
103 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
105 (normal_stop): Call async_enable_stdin here.
106 * inf-loop.c (inferior_event_handler): Don't call
107 async_enable_stdin, nor handle "set exec-done-display" here.
109 2011-09-04 Joel Brobecker <brobecker@adacore.com>
113 2011-09-04 Joel Brobecker <brobecker@adacore.com>
115 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
117 2011-09-04 Joel Brobecker <brobecker@adacore.com>
119 * NEWS: Add entry for OpenBSD/NetBSD build failure.
121 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
123 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
125 2011-09-02 Matt Rice <ratmice@gmail.com>
128 * event-top.c (cli_command_loop): Replace readline setup with
129 direct call to display_gdb_prompt.
130 (display_gdb_prompt): Do not call observer mechanism during
131 synchronous execution.
133 2011-09-02 Pedro Alves <pedro@codesourcery.com>
135 * linux-nat.c (in_pid_list_p): New.
136 (linux_record_stopped_pid): Delete.
137 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
138 already attached to the LWP. Return an indication if so.
139 (linux_nat_filter_event): Adjust.
140 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
141 returning an indication to ignore this thread.
143 2011-09-02 Pedro Alves <pedro@codesourcery.com>
145 * top.c: Include interps.h.
146 (execute_command): If the target can async, but the interpreter is
147 in sync mode, synchronously wait for the command to finish before
149 (execute_command_to_string): Force the interpreter to sync mode.
150 * infrun.c: Include interps.h.
151 (fetch_inferior_event): Don't restore the prompt yet if the
152 interpreter is in sync mode.
153 * interps.c (interpreter_async): New global.
154 * interps.h (interpreter_async): Declare.
155 * inf-loop.c: Include interps.h.
156 (inferior_event_handler): Don't print the language change or run
157 breakpoint commands yet if the interpreter in is sync mode.
158 * main.c (captured_command_loop): Flip the interpreter to async
160 * cli/cli-script.c: Include interps.h.
161 (execute_user_command, while_command, if_command): Force the
162 interpreter to sync mode.
163 * python/python.c: Include interps.h.
164 (python_command, execute_gdb_command): Force the interpreter to
167 2011-09-02 Pedro Alves <pedro@codesourcery.com>
169 * value.c (show_convenience): Catch errors thrown while printing
170 each internal variable.
171 * infrun.c (validate_siginfo_access): New function.
172 (siginfo_value_read, siginfo_value_write): Call it.
174 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
177 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
178 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
181 2011-08-29 Yao Qi <yao@codesourcery.com>
183 * solib-dsbt.c (bfd_lookup_symbol): Removed.
185 (enable_break2): Update caller.
186 * solib-frv.c (bfd_lookup_symbol): Removed.
188 (enable_break2): Update caller.
189 * solib-pa64.c (bfd_lookup_symbol): Removed.
191 * solib-svr4.c (bfd_lookup_symbol): Removed.
192 (cmp_name_and_sec_flags): New.
193 (enable_break): Update caller.
194 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
195 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
196 (gdb_bfd_lookup_symbol): New.
197 * solib.h: Functions declarations.
199 2011-08-29 Yao Qi <yao@codesourcery.com>
201 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
204 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
206 Fix TUI stepi on code without symbols.
207 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
210 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
213 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
214 and the static keyword.
215 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
216 Make prefix an array.
217 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
218 * mi/mi-main.c (get_register): Remove stb initialization and the static
221 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
223 Code cleanup - make mi_opt const.
224 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
226 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
227 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
228 (mi_cmd_env_dir): Likewise.
229 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
230 (mi_cmd_target_file_put): Likewise.
231 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
232 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
233 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
234 (mi_valid_noargs): Make opts const.
235 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
236 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
237 (mi_cmd_data_read_memory): Likewise.
238 (mi_cmd_data_read_memory_bytes): Likewise.
239 (mi_cmd_data_write_memory): Likewise.
241 2011-08-26 Matt Rice <ratmice@gmail.com>
243 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
244 bcache_xmalloc, replace bcache_xmalloc with call to
245 psymbol_bcache_init for psymbol_cache.
246 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
248 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
250 * inf-loop.c (inferior_event_handler): Add exception_print in
253 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
255 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
256 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
257 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
258 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
259 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
260 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
261 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
262 * infrun.c (fetch_inferior_event): Call
263 make_bpstat_clear_actions_cleanup.
264 * top.c (execute_command): New variable cleanup_if_error, call
265 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
266 * utils.c (do_bpstat_clear_actions_cleanup)
267 (make_bpstat_clear_actions_cleanup): New functions.
269 2011-08-26 Pedro Alves <pedro@codesourcery.com>
271 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
272 either the parent or the child forks. Rename a couple locals.
274 2011-08-26 Pedro Alves <pedro@codesourcery.com>
276 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
277 library call. Avoid reading the `status' local if all waitpid
280 2011-08-26 Pedro Alves <pedro@codesourcery.com>
282 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
283 opening /proc/PID/task always succeeds.
285 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
287 * linespec.c (symtab_from_filename): Check for the end of string.
289 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
292 * varobj.c (cplus_describe_child): Add the keyword
293 'class' to the output of the method when dealing
294 with a cast to a base class.
296 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
298 No functionality change.
299 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
300 function comment a reference, new variables tp and bs, move here code
301 from throw_exception.
302 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
303 describe it in the comment.
304 * exceptions.c (throw_exception): Remove variable tp, move the code for
305 bpstat_clear_actions to bpstat_clear_actions.
307 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
309 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
310 * linux-nat.c: Include linux-procfs.h.
311 (linux_proc_get_tgid): Move to ...
312 * common/linux-procfs.c: ... here. New file.
313 * common/linux-procfs.h: New file.
314 * linux-thread-db.c: Include linux-procfs.h.
315 * Makefile.in: Update dependencies.
316 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
317 * config/arm/linux.mh: Likewise.
318 * config/i386/linux.mh: Likewise.
319 * config/i386/linux64.mh: Likewise.
320 * config/ia64/linux.mh: Likewise.
321 * config/m32r/linux.mh: Likewise.
322 * config/m68k/linux.mh: Likewise.
323 * config/mips/linux.mh: Likewise.
324 * config/pa/linux.mh: Likewise.
325 * config/pa/linux.mh: Likewise.
326 * config/powerpc/linux.mh: Likewise.
327 * config/powerpc/ppc64-linux.mh: Likewise.
328 * config/powerpc/spu-linux.mh: Likewise.
329 * config/sparc/linux.mh: Likewise.
330 * config/sparc/linux64.mh: Likewise.
331 * config/xtensa/linux.mh: Likewise.
333 2011-08-24 Hui Zhu <teawater@gmail.com>
335 * tracepoint.c (cond_string_is_same): New function.
336 (find_matching_tracepoint): Add condition check
337 by cond_string_is_same.
339 2011-08-23 Josh Matthews <josh@joshmatthews.net>
341 Fix build error in Darwin port.
342 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
344 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
347 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
348 (command_line_is_silent): New function.
349 (bpstat_do_actions_1): No longer use commands_left, use
350 command_line_is_silent for commands.
351 (bpstat_alloc): Remove clearing of commands_left.
352 (bpstat_stop_status): Remove initialization of commands_left, use
353 command_line_is_silent.
354 * breakpoint.h (struct bpstats): Remove commands_left.
356 2011-08-18 Keith Seitz <keiths@redhat.com>
359 * cp-name-parser.y (struct demangle_info): Remove unused
362 (allocate_info): Change return type to struct demangle_info *.
363 Always allocate a new demangle_info.
364 Remove unused PREV pointer.
365 (cp_new_demangle_parse_info): New function.
366 (cp_demangled_name_parse_free): New function.
367 (do_demangled_name_parse_free_cleanup): New function.
368 (make_cleanup_cp_demangled_name_parse_free): New function.
369 (cp_demangled_name_to_comp): Change return type to
370 struct demangle_parse_info *.
371 Allocate a new storage for each call.
372 (main): Update usage for cp_demangled_name_to_comp
374 * cp-support.h (struct demangle_parse_info): New structure.
375 (cp_demangled_name_to_comp): Update API change for
377 (cp_new_demangle_parse_info): Declare.
378 (make_cleanup_cp_demangled_name_parse_free): New declaration.
379 (cp_demangled_name_parse_free): Declare.
380 * cp-support.c (cp_canonicalize_string): Update API
381 change for cp_demangled_name_to_comp.
382 (mangled_name_to_comp): Likewise.
383 Return struct demangle_parse_info, too.
384 (cp_class_name_from_physname): Update mangled_name_to_comp
386 (method_name_from_physname): Likewise.
387 (cp_func_name): Update API change for cp_demangled_name_to_comp.
388 (cp_remove_params): Likewise.
389 * python/py-type.c (typy_legacy_template_argument): Likewise.
391 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
392 (cp_merge_demangle_parse_infos): Declare.
393 * cp-support.c (ignore_typedefs): New file global.
394 (copy_string_to_obstack): New function.
395 (inspect_type): New function.
396 (replace_typedefs): New function.
397 (replace_typedefs_qualified_name): New function.
398 (cp_canonicalize_string_no_typedefs): New function.
399 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
400 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
401 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
402 instead of cp_canonicalize_string.
403 (find_method): Likewise.
404 (decode_compound): Before looking up the name, call
405 cp_canonicalize_string_no_typedefs.
406 (decode_variable): Likewise.
408 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
409 Tom Tromey <tromey@redhat.com>
410 Matt Rice <ratmice@gmail.com>
412 * python/lib/gdb/prompt.py: New file.
413 * python/lib/gdb/command/prompt.py: New file.
414 * NEWS: Document set extended-prompt and gdb.prompt library
416 2011-08-16 Yao Qi <yao@codesourcery.com>
418 * tic6x-linux-tdep.c: Move const arrays definition from here...
419 * tic6x-tdep.c: to here ...
421 2011-08-14 Yao Qi <yao@codesourcery.com>
423 * NEWS: New port to Texas Instruments TMS320C6x.
425 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
426 Bernd Schmidt <bernds@codesourcery.com>
427 Yao Qi <yao@codesourcery.com>
429 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
430 * solib-dsbt.c: New file. Support DSBT shared object.
431 * tic6x-linux-tdep.c: New file.
432 * tic6x-tdep.c: New file.
433 * tic6x-tdep.h: New file.
435 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
436 Yao Qi <yao@codesourcery.com>
438 * remote.c (PACKET_qXfer_fdpic): New enum value.
439 (remote_protocol_features): Add qXfer:fdpic:read packet.
440 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
441 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
442 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
444 2011-08-14 Yao Qi <yao@codesourcery.com>
446 Target description for tic6x.
447 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
448 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
449 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
450 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
451 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
452 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
453 * features/tic6x-c64xp-linux.xml: New.
454 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
455 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
456 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
457 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
458 * regformats/tic6x-c64xp.dat,
459 regformats/tic6x-c62x-linux.dat: Generated.
460 * regformats/tic6x-c64x-linux.dat,
461 regformats/tic6x-c64xp-linux.dat: Generated.
462 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
463 features/tic6x-*.c files.
464 Add regformats/tic6x-*.dat files.
466 2011-08-12 Doug Evans <dje@google.com>
468 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
469 * python/py-symbol.c (sympy_get_type): New function.
470 (symbol_object_getset): Add "type".
472 2011-08-12 Pedro Alves <pedro@codesourcery.com>
476 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
478 (tui_show_register_group): Don't store a byte buffer in the data
480 (tui_register_format): Skip registers with an empty name.
481 (tui_get_register): Store a struct value in the data element's
482 value field instead of a byte buffer holding the raw register
483 contents. Account for optimized-out and unavailable registers
484 when comparing register contents.
486 2011-08-09 Pedro Alves <pedro@codesourcery.com>
488 * printcmd.c (current_display_number): Update comment.
489 (disable_current_display_cleanup): Delete.
490 (do_one_display): Use make_cleanup_restore_integer. Gracefully
491 catch errors thrown while evaluating and printing the display.
493 2011-08-09 Tom Tromey <tromey@redhat.com>
495 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
497 2011-08-09 Pedro Alves <pedro@codesourcery.com>
499 * elfread.c (elf_symtab_read): Rework comments.
500 * maint.c (maintenance_command): Ditto.
501 * somread.c (som_symtab_read): Ditto.
502 * solib.c (solib_find, solib_map_sections, update_solib_list)
503 (solib_add, info_sharedlibrary_command, solib_name_from_address)
504 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
505 (sharedlibrary_command, no_shared_libraries): Ditto.
506 * solib-irix.c (locate_base, disable_break, enable_break)
507 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
508 (irix_current_sos, irix_open_symbol_file_object)
509 (irix_special_symbol_handling): Ditto.
510 * solib-sunos.c (locate_base, first_link_map_member)
511 (sunos_current_sos, disable_break, enable_break)
512 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
514 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
515 (open_symbol_file_object, svr4_current_sos, enable_break)
516 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
518 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
519 (frv_current_sos, enable_break, frv_special_symbol_handling)
520 (frv_solib_create_inferior_hook): Ditto.
521 * solist.h (struct target_so_ops): Extend the comments of the
522 special_symbol_handling, current_sos and open_symbol_file_object
525 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
527 * python/lib/gdb/__init__.py: Auto-load files in command and
528 function directories.
529 * python/python.c (finish_python_initialization): Use
531 * python/lib/gdb/command/pretty_printers.py: Self register
533 * NEWS: Document auto-loading.
535 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
537 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
538 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
539 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
541 2011-08-08 Tom Tromey <tromey@redhat.com>
543 * breakpoint.c (clean_up_filters): Remove.
544 (catch_syscall_split_args): Use VEC_cleanup.
546 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
548 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
549 (main): Uncomment "Demangling error\n".
551 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
553 * solib-target.c (segment_attributes): Make them static.
554 (section_attributes, library_children, library_attributes): Likewise.
555 (library_list_children, library_list_attributes): Likesise.
556 (library_list_elements): Likewise.
558 2011-08-05 Pedro Alves <pedro@codesourcery.com>
560 * exceptions.c (throw_exception): Don't disable the current
562 * printcmd.c (disable_current_display_cleanup): New function.
563 (do_one_display): Install a cleanup to disable the current display
564 if doing the display throws.
566 2011-08-05 Eli Zaretskii <eliz@gnu.org>
568 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
569 initialization of the tp_new member to the corresponding
570 gdbpy_initialize_* function.
571 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
572 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
573 * python/py-function.c (gdbpy_initialize_functions): Likewise.
574 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
575 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
577 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
579 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
580 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
581 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
582 references to current_uiout.
584 2011-08-04 Pedro Alves <pedro@codesourcery.com>
586 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
587 (start_event_loop): Use TRY_CATCH instead of catch_errors.
588 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
589 * top.c (gdb_readline_wrapper): Adjust.
590 * tui/tui-interp.c (tui_command_loop):
591 (_initialize_tui_interp): Don't install it.
593 2011-08-04 Pedro Alves <pedro@codesourcery.com>
595 * ui-out.h (uiout): Rename to ...
596 (current_uiout): ... this.
597 * ui-out.c (uiout): Rename to ...
598 (current_uiout): ... this.
599 * ada-lang.c (print_it_exception, print_one_exception)
600 (print_mention_exception): Adjust.
601 * breakpoint.c (watchpoint_check): Adjust.
602 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
603 (default_collect_info, watchpoints_info, print_one_catch_fork)
604 (print_one_catch_vfork, print_one_catch_syscall)
605 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
606 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
607 (print_it_watchpoint, print_mention_watchpoint)
608 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
609 (print_it_exception_catchpoint, print_one_exception_catchpoint)
610 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
611 (bkpt_print_mention, momentary_bkpt_print_it)
612 (tracepoint_print_mention, update_static_tracepoint)
613 (tracepoints_info, save_breakpoints): Adjust.
614 * cli-out.c (field_separator): Adjust.
615 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
616 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
617 * frame.c (get_current_frame): Adjust.
618 * infcmd.c (run_command_1, print_return_value): Adjust.
619 * inferior.c (inferior_command, info_inferiors_command): Adjust.
620 * infrun.c (print_end_stepping_range_reason): Adjust.
621 (print_signal_exited_reason, print_exited_reason): Adjust.
622 (print_signal_received_reason, print_no_history_reason): Adjust.
623 * interps.c (interp_set): Adjust.
624 * osdata.c (info_osdata_command): Adjust.
625 * progspace.c (maintenance_info_program_spaces_command): Adjust.
626 * remote-fileio.c (remote_fileio_request): Adjust.
627 * remote.c (show_remote_cmd): Adjust.
628 * solib.c (info_sharedlibrary_command): Adjust.
629 * source.c (print_source_lines_base): Adjust.
630 * stack.c (print_stack_frame): Adjust.
631 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
632 * symfile-mem.c (add_vsyscall_page): Adjust.
633 * symfile.c (load_progress, generic_load)
634 (print_transfer_performance): Adjust.
635 * thread.c (info_threads_command, restore_selected_frame)
636 (thread_command): Adjust.
637 * top.c (make_cleanup_restore_ui_file): Adjust.
638 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
639 (print_one_static_tracepoint_marker): Adjust.
640 * cli/cli-cmds.c (print_disassembly): Adjust.
641 * cli/cli-decode.c (print_doc_line): Adjust.
642 * cli/cli-interp.c (safe_execute_command): Adjust.
643 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
644 (handle_redirections): Adjust.
645 * cli/cli-script.c (show_user_1): Adjust.
646 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
647 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
648 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
649 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
650 (mi_cmd_env_dir): Adjust.
651 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
652 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
653 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
654 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
655 (list_args_or_locals): Adjust.
656 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
657 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
658 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
659 (mi_cmd_var_list_children, mi_cmd_var_info_type)
660 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
661 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
662 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
663 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
664 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
665 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
666 (list_available_thread_groups, mi_cmd_list_thread_groups)
667 (mi_cmd_data_list_register_names)
668 (mi_cmd_data_list_changed_registers)
669 (mi_cmd_data_list_register_values, get_register)
670 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
671 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
672 (mi_cmd_list_target_features, mi_cmd_add_inferior)
673 (mi_execute_command, mi_load_progress): Adjust.
674 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
675 * python/py-auto-load.c (print_script, info_auto_load_scripts):
677 * python/py-breakpoint.c (bppy_get_commands): Adjust.
678 * tui/tui-interp.c (tui_command_loop): Adjust.
679 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
681 2011-08-04 Pedro Alves <pedro@codesourcery.com>
683 * exceptions.c (struct catcher): Remove saved_uiout field.
684 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
685 no longer save/resvore the global ui_out builder.
686 (catch_exceptions_with_msg): Save/override/restore the global
687 ui_out builder manually instead of relying on TRY_CATCH to do it.
688 (catch_errors): Save/restore the global ui_out builder manually
689 instead of relying on TRY_CATCH to do it.
690 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
693 * cli/cli-interp.c (safe_execute_command): Save/override/restore
694 the global ui_out builder manually instead of relying on TRY_CATCH
697 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
699 * breakpoint.c (update_global_location_list): Ensure
700 invariant 'first loc marked not duplicated and inserted,
701 following locs marked duplicated/not inserted' is respected
702 for multiple locations at the same address.
703 (unduplicated_should_be_inserted) New function.
704 (swap_insertion) New function.
706 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
708 * stack.c (print_frame_arguments_choices): Comment typo fix.
710 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
713 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
714 * breakpoint.c (insert_bp_location): Remove disabled_breaks
715 argument. Update callers.
717 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
720 * doublest.c (convert_doublest_to_floatformat): Pass correct
721 mantissa length to put_field.
723 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
725 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
726 exception_print code path.
727 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
728 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
729 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
731 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
734 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
735 Remove, merge them into ...
736 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
737 variable args and its initialization.
738 (struct print_args_args, print_args_stub): Remove, merge them into
740 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
742 (do_gdb_disassembly): ... here. Remove variable args and its
744 (print_frame): Remove variable args and its initialization, new
745 variable gdbarch and numargs (from print_args_stub), inline here
746 print_args_stub with a TRY_CATCH.
747 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
749 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
750 New variable e, remove variable btargs and its initialization.
752 2011-08-01 Tristan Gingold <gingold@adacore.com>
754 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
756 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
758 * breakpoint.c (insert_bp_location): Document return value.
759 (insert_breakpoint_locations): Fix documentation.
760 (remove_breakpoints): Add documentation.
762 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
764 * breakpoint.c (insert_bp_location): Remove disabled_breaks
765 argument. Update callers.
767 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
769 * stack.c (print_frame_info): Comment typo fix.
771 2011-07-29 Sterling Augustine <saugustine@google.com>
773 * MAINTAINERS (Write After Approval): Add myself to the list.
775 2011-07-29 Tom Tromey <tromey@redhat.com>
777 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
778 (library_list_start_segment): Update.
779 (library_list_start_section): Update.
781 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
783 * varobj.c (value_get_print_value): Move hint check later into the
784 function. Comment function. Free thevalue before reusing it.
786 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
787 Pedro Alves <pedro@codesourcery.com>
789 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
791 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
792 Assert the result kind.
793 * value.h (value_one): Remove parameter lv.
795 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
797 Fix crash on lval_computed values.
798 * valops.c (value_zero): Use not_lval for lval_computed.
800 2011-07-27 Tom Tromey <tromey@redhat.com>
802 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
803 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
805 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
807 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
808 "ptype" by their typedefs difference.
810 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
812 * dwarf2expr.c (ctx_no_read_reg): New function.
813 * dwarf2expr.h (ctx_no_read_reg): New declaration.
814 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
815 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
816 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
818 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
820 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
821 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
823 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
824 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
825 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
826 (ctx_no_get_base_type): Move the functions here.
827 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
828 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
829 (ctx_no_get_base_type): New declarations.
831 2011-07-27 Tom Tromey <tromey@redhat.com>
833 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
835 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
836 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
838 2011-07-26 Sterling Augustine <saugustine@google.com>
840 * cli/cli-dump.c (dump_binary_file): Change parameter type to
842 (dump_bfd_file): Likewise.
844 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
846 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
847 (remote_hw_watchpoint_length_limit): New variable.
848 (_initialize_remote) add set,show cmds for this new variable.
849 * gdb.texinfo: document these new commands.
850 * NEWS: Mention these new commands.
852 2011-07-26 Pedro Alves <pedro@codesourcery.com>
854 * breakpoint.c (works_in_software_mode_watchpoint): Also return
855 true for software watchpoints.
857 2011-07-26 Joel Brobecker <brobecker@adacore.com>
861 2011-07-26 Tom Tromey <tromey@redhat.com>
863 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
864 * dwarf2read.c (read_indirect_string_at_offset): New function.
865 (read_indirect_string): Use it.
866 (dwarf_decode_macro_bytes): New function, taken from
867 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
868 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
869 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
871 (struct dwarf2_per_objfile) <macro>: New field.
872 (dwarf2_elf_names): Add .debug_macro.
873 (dwarf2_macros_too_long_complaint): Add 'section' argument.
874 (dwarf2_locate_sections): Handle new section.
875 (read_file_scope): Handle DW_AT_GNU_macros.
876 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
878 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
880 * NEWS: Mention dcache configuration.
881 * dcache.c (dcache_set_list, dcache_show_list): New variables.
882 (dcache_size, dcache_line_size): New variables.
883 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
884 (struct dcache_block): Make it expandable.
885 (struct dcache_struct): New field.
886 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
887 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
888 (dcache_poke_byte, dcache_print_line): Adjust.
889 (set_dcache_size, set_dcache_line_size): New functions.
890 (set_dcache_command, show_dcache_command): New functions.
891 (_initialize_dcache): Add new commands.
893 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
895 * progspace.h (struct program_space): Add solib_add_generation.
896 * infcmd.c (post_create_inferior): Only call solib_add if not
898 * solib.c (solib_add): Increment solib_add_generation.
900 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
902 Fix implicit pointer offsets.
903 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
906 2011-07-25 Tom Tromey <tromey@redhat.com>
908 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
910 (ada_exception_sal): Make 'ops' const.
911 (ada_decode_exception_location): Likewise.
912 (ada_decode_assert_location): Likewise.
913 (catch_assert_command): Update.
914 (catch_ada_exception_command): Update.
915 (create_ada_exception_catchpoint): Make 'ops' const.
916 * breakpoint.c (set_raw_breakpoint_without_location)
917 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
919 (create_internal_breakpoint): Update.
920 (init_raw_breakpoint_without_location): Make 'ops' const.
921 (init_raw_breakpoint, init_catchpoint)
922 (create_fork_vfork_event_catchpoint)
923 (create_syscall_event_catchpoint, init_breakpoint_sal)
924 (create_breakpoint_sal, create_breakpoints_sal)
925 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
926 * breakpoint.h (struct breakpoint) <ops>: Now const.
927 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
930 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
932 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
934 2011-07-25 Pedro Alves <pedro@codesourcery.com>
936 * breakpoint.h (print_recreate_thread): Declare.
937 (struct breakpoint): Move step_count, pass_count,
938 number_on_target, static_trace_marker_id,
939 static_trace_marker_id_idx ...
940 (struct tracepoint): ... to this new struct.
941 (get_tracepoint, get_tracepoint_by_number_on_target)
942 (get_tracepoint_by_number): Change return type to struct
944 * breakpoint.c (is_tracepoint_type): New, factored out from
946 (is_tracepoint): Adjust.
947 (print_one_breakpoint_location): Cast to struct tracepoint as
948 necessary, and adjust.
949 (print_recreate_catch_fork, print_recreate_catch_vfork)
950 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
951 print_recreate_thread.
952 (init_breakpoint_sal): New, factored out from
953 create_breakpoint_sal.
954 (create_breakpoint_sal): Reimplement.
955 (create_breakpoint): Allocate a struct tracecepoint if the caller
956 wanted a tracepoint. Use init_breakpoint_sal and
958 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
959 (print_recreate_masked_watchpoint)
960 (print_recreate_exception_catchpoint): Call print_recreate_thread.
961 (tracepoint_print_one_detail): Adjust.
962 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
963 Dump the pass count here.
964 (update_static_tracepoint): Adjust.
965 (addr_string_to_sals): Adjust.
966 (create_tracepoint_from_upload): Adjust. Change return type to
967 struct tracepoint pointer.
968 (trace_pass_set_count): Change parameter type to struct tracepoint
970 (trace_pass_command): Adjust.
971 (get_tracepoint, get_tracepoint_by_number_on_target)
972 (get_tracepoint_by_number): Change return type to struct
973 tracepoint pointer, and adjust.
974 (print_recreate_thread): New, factored out from save_breakpoints.
975 (save_breakpoints): Don't print thread and task and passcount
977 * remote.c (remote_download_tracepoint): Adjust.
978 * tracepoint.c (trace_actions_command, validate_actionline)
979 (start_tracing, tfind_1, trace_find_tracepoint_command)
980 (trace_dump_command): Adjust.
981 (find_matching_tracepoint): Change return type to struct
982 tracepoint pointer, and adjust.
983 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
984 (tfile_trace_find, tfile_fetch_registers): Adjust.
985 * tracepoint.h (create_tracepoint_from_upload): Change return type
986 to struct tracepoint pointer.
987 * ada-lang.c (print_recreate_exception): Call
988 print_recreate_thread.
989 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
991 2011-07-25 Pedro Alves <pedro@codesourcery.com>
993 * breakpoint.h (struct breakpoint): Move ops as first field. Move
994 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
995 cond_exp_valid_block, val, val_valid, watchpoint_frame,
996 watchpoint_thread, watchpoint_triggered ...
997 (struct watchpoint): ... to this new struct.
998 (is_watchpoint): Declare.
999 (install_breakpoint): Add new `internal' parameter.
1000 * breakpoint.c (is_watchpoint): Delete declaration.
1001 (set_breakpoint_condition): Handle watchpoints.
1002 (is_watchpoint): Make public.
1003 (watchpoint_in_thread_scope): Change parameter type to struct
1005 (watchpoint_del_at_next_stop): Change parameter type to struct
1006 watchpoint. Remove assertion. Adjust.
1007 (update_watchpoint): Ditto.
1008 (insert_breakpoints, breakpoint_init_inferior)
1009 (watchpoints_triggered, watchpoint_check)
1010 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1011 (bpstat_stop_status, print_one_breakpoint_location)
1012 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1013 to struct watchpoint as necessary, and adjust.
1014 (install_breakpoint): Add `internal' argument. If true, don't
1015 mention the new breakpoint. Use set_breakpoint_number.
1016 (create_fork_vfork_event_catchpoint)
1017 (create_syscall_event_catchpoint): Adjust.
1018 (dtor_watchpoint): New.
1019 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1020 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1021 (print_it_watchpoint, print_mention_watchpoint)
1022 (print_recreate_watchpoint, insert_masked_watchpoint)
1023 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1024 (print_one_detail_masked_watchpoint)
1025 (print_mention_masked_watchpoint)
1026 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1027 necessary, and adjust.
1028 (watch_command_1): Allocate and initialize a struct watchpoint
1029 instead of a struct breakpoint. Use install_breakpoint.
1030 (catch_exec_command_1): Adjust.
1031 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1033 (delete_breakpoint, enable_breakpoint_disp)
1034 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1035 as necessary, and adjust.
1036 (initialize_breakpoint_ops): Install dtor_watchpoint as
1037 watchpoints' dtor method.
1038 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1039 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1040 to struct watchpoint as necessary, and adjust.
1042 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1044 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1045 the the base class ops table.
1046 (catch_exception_breakpoint_ops)
1047 (catch_exception_unhandled_breakpoint_ops)
1048 (catch_assert_breakpoint_ops): Don't statically initialize.
1049 (initialize_ada_catchpoint_ops): New.
1050 (_initialize_ada_language): Call it.
1051 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1052 (bkpt_breakpoint_ops): Forward declare.
1053 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1054 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1055 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1056 (masked_watchpoint_breakpoint_ops)
1057 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1058 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1059 base class ops table.
1060 (null_re_set, null_check_status, null_works_in_software_mode)
1061 (null_resources_needed, null_print_one_detail): Delete.
1062 (bkpt_dtor): Rename to ...
1063 (base_breakpoint_dtor): ... this. Make static.
1064 (bkpt_allocate_location): Rename to ...
1065 (base_breakpoint_allocate_location): ... this. Make static.
1066 (base_breakpoint_re_set): New.
1067 (internal_error_pure_virtual_called): New.
1068 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1069 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1070 (base_breakpoint_works_in_software_mode)
1071 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1072 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1073 (base_breakpoint_print_recreate): New functions.
1074 (base_breakpoint_ops): New global.
1075 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1076 (bkpt_breakpoint_hit): Make static.
1077 (bkpt_check_status): Delete.
1078 (bkpt_resources_needed): Make static.
1079 (bkpt_works_in_software_mode): Delete.
1080 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1082 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1083 (momentary_breakpoint_ops): Don't statically initialize.
1084 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1086 (tracepoint_insert_location, tracepoint_remove_location)
1087 (tracepoint_check_status, tracepoint_works_in_software_mode)
1088 (tracepoint_print_it): Delete.
1089 (tracepoint_breakpoint_ops): Don't statically initialize.
1090 (initialize_breakpoint_ops): New.
1091 (_initialize_breakpoint): Call it.
1092 * breakpoint.h (null_re_set, null_works_in_software_mode)
1093 (null_resources_needed, null_check_status, null_print_one_detail):
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)
1098 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1099 Delete declarations.
1100 (initialize_breakpoint_ops): Declare.
1102 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1104 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1105 (momentary_bkpt_print_it): Simplify.
1107 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1109 Split internal, momentary and user breakpoints breakpoint_ops
1112 * breakpoint.c (internal_breakpoint_ops)
1113 (momentary_breakpoint_ops): Forward declare.
1114 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1115 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1116 (create_overlay_event_breakpoint)
1117 (create_std_terminate_master_breakpoint)
1118 (create_exception_master_breakpoint): Create breakpoints with
1119 internal_breakpoint_ops vtable.
1120 (set_longjmp_breakpoint): Create momentary breakpoints with
1121 momentary_breakpoint_ops vtable, using
1122 momentary_breakpoint_from_master.
1123 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1124 (create_solib_event_breakpoint): Create breakpoints with
1125 internal_breakpoint_ops vtable.
1126 (set_momentary_breakpoint): Create breakpoints with
1127 momentary_breakpoint_ops vtable.
1128 (momentary_breakpoint_from_master): New, factored out from
1129 clone_momentary_breakpoint.
1130 (clone_momentary_breakpoint): Adjust.
1131 (watch_command_1): Create scope breakpoints with
1132 momentary_breakpoint_ops vtable.
1133 (bkpt_re_set): Remove handling of internal and momentary
1135 (bkpt_print_mention, bkpt_print_recreate): New.
1136 (bkpt_breakpoint_ops): Adjust.
1137 (internal_bkpt_re_set, internal_bkpt_check_status)
1138 (internal_bkpt_print_it, internal_bkpt_print_mention)
1139 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1140 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1141 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1142 (momentary_bkpt_print_recreate): New.
1143 (momentary_breakpoint_ops): New.
1145 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1147 Implement most breakpoint_ops methods for all breakpoint types,
1148 and move the default handlings to the proper callbacks.
1150 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1151 works_in_software_mode method.
1152 (insert_bp_location): Go through breakpoint_ops->insert_location
1153 for software and hardware watchpoints.
1154 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1156 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1157 for software and hardware watchpoints.
1158 (print_it_typical): Delete.
1159 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1161 (watchpoint_check): Adjust comment.
1162 (bpstat_check_location): Simply always call the breakpoint's
1163 breakpoint_hit method.
1164 (bpstat_stop_status): Always call the breakpoint's check_status
1165 method. Remove special cases for watchpoints and internal event
1166 breakpoints from here (moved to the check_status implementations).
1167 (print_one_breakpoint_location): Assume b->ops is never NULL.
1168 Remove static tracepoint marker id printing from here (moved to
1169 the print_one_detail callback implementation of tracepoints).
1170 (init_bp_location): Assert OPS is never NULL.
1171 (allocate_bp_location): Always call the breakpoint's
1172 allocate_location method, and remove the default code from here.
1173 (free_bp_location): Always call the location's dtor method, and
1174 remove the default code from here.
1175 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1176 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1177 parameter. Pass it down.
1178 (set_raw_breakpoint): Ditto.
1179 (print_it_catch_fork): Adjust to take a bpstat as argument.
1180 (catch_fork_breakpoint_ops): Install methods.
1181 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1182 (catch_vfork_breakpoint_ops): Install methods.
1183 (dtor_catch_syscall): Call the base dtor.
1184 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1185 (catch_syscall_breakpoint_ops): Install methods.
1186 (dtor_catch_exec): Call the base dtor.
1187 (print_it_catch_exec): Adjust to take a bpstat as argument.
1188 (catch_exec_breakpoint_ops): Install methods.
1189 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1190 the breakpoint's resources_needed method, and remove the default
1192 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1194 (clone_momentary_breakpoint): Clone the original's ops.
1195 (mention): Always call the breakpoint's print_mention method, and
1196 remove the default code from here.
1197 (create_breakpoint_sal): Adjust to pass the ops to
1198 set_raw_breakpoint rather than setting it manually.
1199 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1200 ops to set_raw_breakpoint_without_location rather than setting it
1202 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1203 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1204 (ranged_breakpoint_ops): Install methods.
1205 (break_range_command): Adjust to pass the ops to
1206 set_raw_breakpoint rather than setting it manually.
1207 (re_set_watchpoint, breakpoint_hit_watchpoint)
1208 (check_status_watchpoint, resources_needed_watchpoint)
1209 (works_in_software_mode_watchpoint, print_it_watchpoint)
1210 (print_mention_watchpoint, print_recreate_watchpoint): New
1212 (watchpoint_breakpoint_ops): Install new methods.
1213 (print_it_masked_watchpoint): New function.
1214 (masked_watchpoint_breakpoint_ops): Install new methods.
1215 (watch_command_1): Adjust to pass the right breakpoint_ops to
1216 set_raw_breakpoint_without_location rather than setting it
1217 manually later. Record the current pspace.
1218 (print_it_exception_catchpoint): Adjust to take a bpstat as
1220 (gnu_v3_exception_catchpoint_ops): Install new methods.
1221 (say_where): New function.
1222 (null_re_set, null_check_status, null_works_in_software_mode)
1223 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1225 (bp_location_ops): New global.
1226 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1227 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1228 (bkpt_check_status, bkpt_resources_needed)
1229 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1230 (bkpt_print_recreate): New functions.
1231 (bkpt_breakpoint_ops): New global.
1232 (tracepoint_re_set, tracepoint_insert_location)
1233 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1234 (tracepoint_check_status, tracepoint_works_in_software_mode)
1235 (tracepoint_print_it, tracepoint_print_one_detail)
1236 (tracepoint_print_mention, tracepoint_print_recreate): New
1238 (tracepoint_breakpoint_ops): New global.
1239 (delete_breakpoint): Always call the breakpoint's dtor method, and
1240 remove the default handling from here.
1241 (breakpoint_re_set_default): Make static.
1242 (breakpoint_re_set_one): Always call the breakpoints re_set
1243 method, and remove the default handling from here.
1244 (trace_command, ftrace_command, strace_command)
1245 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1246 to create_breakpoint.
1247 (save_breakpoints): Always call the breakpoint's print_recreate
1248 method, and remove the default handling from here.
1250 * ada-lang.c (dtor_exception): Call the base dtor.
1251 (re_set_exception): Call the base method.
1252 (print_it_exception, print_it_catch_exception): Adjust to take a
1254 (catch_exception_breakpoint_ops): Install methods.
1255 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1257 (catch_exception_unhandled_breakpoint_ops): Install methods.
1258 (print_it_catch_assert): Adjust to take a bpstat as argument.
1259 (catch_assert_breakpoint_ops): Install methods.
1261 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1262 to take a bpstat as argument.
1263 (enum print_stop_action): Add describing comments to each enum
1265 (breakpoint_re_set_default): Delete declaration.
1266 (null_re_set, null_works_in_software_mode, null_resources_needed)
1267 (null_check_status, null_print_one_detail): Declare.
1268 (bkpt_breakpoint_ops): Declare.
1269 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1270 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1271 (bkpt_check_status, bkpt_resources_needed)
1272 (bkpt_works_in_software_mode, bkpt_print_it)
1273 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1276 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1277 bkpt_breakpoint_ops.
1278 * python/py-breakpoint.c (bppy_init): Ditto.
1280 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1282 * MAINTAINERS (Write After Approval): Add myself to the list.
1284 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1286 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1288 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1290 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1291 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1292 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1294 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1295 (struct i386_debug_reg_state): New.
1296 (i386_init_dregs): New.
1298 (i386_cleanup_dregs): Use i386_init_dregs.
1299 (i386_show_dr): Add state parameter and adjust.
1300 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1302 (i386_remove_aligned_watchpoint): Likewise.
1303 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1304 (i386_update_inferior_debug_regs): New.
1305 (i386_insert_watchpoint): Work on a local mirror of the debug
1306 registers, and only update the inferior on success.
1307 (i386_remove_watchpoint): Ditto.
1308 (i386_region_ok_for_watchpoint): Adjust.
1309 (i386_stopped_data_address): Adjust.
1310 (i386_insert_hw_breakpoint): Adjust.
1311 (i386_remove_hw_breakpoint): Adjust.
1313 2011-07-22 Tom Tromey <tromey@redhat.com>
1315 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1316 from amd64_pseudo_register_read. Change arguments. Call
1317 mark_value_bytes_unavailable when needed.
1318 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1319 set_gdbarch_pseudo_register_read.
1320 * sentinel-frame.c (sentinel_frame_prev_register): Use
1321 regcache_cooked_read_value.
1322 * regcache.h (regcache_cooked_read_value): Declare.
1323 * regcache.c (regcache_cooked_read_value): New function.
1324 (regcache_cooked_read): Call
1325 gdbarch_pseudo_register_read_value if available.
1326 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1327 (i386_pseudo_register_read): Remove.
1328 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1329 i386_pseudo_register_read. Change arguments. Call
1330 mark_value_bytes_unavailable when needed.
1331 (i386_pseudo_register_read_value): New function.
1332 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1333 not set_gdbarch_pseudo_register_read.
1334 * gdbarch.sh (pseudo_register_read_value): New method.
1335 * gdbarch.c, gdbarch.h: Rebuild.
1336 * findvar.c (value_from_register): Call get_frame_register_value.
1338 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1340 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1342 (display_gdb_prompt): Likewise.
1343 (change_annotation_level): Likewise.
1344 (push_prompt): Likewise.
1345 (pop_prompt): Likewise.
1346 (handle_stop_sig): Use get_prompt with a level.
1347 * top.c (command_loop): Use get_prompt with a level.
1348 (set_async_annotation_level): Use set_prompt with a level.
1349 (get_prefix): New function.
1350 (set_prefix): Ditto.
1351 (set_suffix): Ditto.
1352 (get_suffix): Ditto.
1353 (get_prompt): Accept a level argument.
1354 (set_prompt): Accept a level argument. Free old prompts. Set
1355 new_async_prompt if level is 0.
1356 (init_main): Use set_prompt with a level. Do not set
1358 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1359 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1360 Modify set_prompt, get_prompt to account for levels.
1361 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1363 * python/python.c (before_prompt_hook): Use set_prompt.
1365 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1367 * defs.h: Add guard against inclusion in gdbserver.
1368 (struct ptid, ptid_t): Move to common/ptid.h.
1369 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1370 xsnprintf, internal_error): Move to common/common-utils.h.
1372 * gdb_assert.h: Move into common/ sub-directory.
1373 * gdb_locale.h: Ditto.
1374 * gdb_dirent.h: Ditto.
1375 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1376 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1377 Move into common/ptid.h.
1378 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1379 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1380 Change nomem to malloc_failure.
1381 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1382 * utils.c (nomem): Rename to malloc_failure.
1383 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1384 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1385 (gdb_buildargv): Change nomem to malloc_failure.
1386 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1387 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1388 ptid_is_pid): Move into common/ptid.c.
1389 (initialize_infrun): Delete initialization of null_ptid and
1391 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1392 linux_common_xfer_osdata.
1393 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1394 common/ptid.c and common/buffer.c.
1395 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1396 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1397 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1398 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1400 * common/gdb_assert.h: New.
1401 * common/gdb_dirent.h: New.
1402 * common/gdb_locale.h: New.
1403 * common/buffer.c: New.
1404 * common/buffer.h: New.
1405 * common/ptid.c: New.
1406 * common/ptid.h: New.
1407 * common/xml-utils.c: New.
1408 * common/xml-utils.h: New.
1409 * common/common-utils.c: New.
1410 * common/common-utils.h: New.
1411 * common/linux-osdata.c: New.
1412 * common/linux-osdata.h: New.
1413 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1414 * config/arm/linux.mh (NATDEPFILES): Ditto.
1415 * config/i386/linux.mh (NATDEPFILES): Ditto.
1416 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1417 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1418 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1419 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1420 * config/mips/linux.mh (NATDEPFILES): Ditto.
1421 * config/pa/linux.mh (NATDEPFILES): Ditto.
1422 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1423 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1424 * config/s390/s390.mh (NATDEPFILES): Ditto.
1425 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1426 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1427 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1429 2011-07-21 Matt Rice <ratmice@gmail.com>
1431 * NEWS: Add info macros and info definitions commands.
1433 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1435 * NEWS: Document Python prompt substitution hook.
1437 2011-07-18 Matt Rice <ratmice@gmail.com>
1440 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1441 * macrotab.c (foreach_macro): Ditto.
1442 (foreach_macro_in_scope): Ditto.
1443 * macrocmd.c (print_macro_callback): New function.
1444 (info_macro_command): Move some code to print_macro_definition.
1445 (print_macro_definition): New function.
1446 (print_one_macro): Add new arguments to callback.
1447 (info_definitions_command): New function.
1448 (info_macros_command): Ditto.
1449 (_initialize_macrocmd): Add info macros and info definitions commands.
1450 * symtab.c (add_macro_name): Add new arguments to callback.
1452 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1453 Tom Tromey <tromey@redhat.com>
1455 * top.c (set_prompt): Rewrite to free previous prompt, free
1456 asynch_new_prompt and set both on new prompts.
1457 * event-top.c (display_gdb_prompt): Add prompt substitution
1459 * python/python.c (before_prompt_hook): New function.
1461 2011-07-20 Matt Rice <ratmice@gmail.com>
1463 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1464 arguments to store_unsigned_integer.
1466 2011-07-20 Tom Tromey <tromey@redhat.com>
1468 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1469 in some declaration-only cases.
1471 2011-07-18 Tom Tromey <tromey@redhat.com>
1474 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1475 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1476 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1477 <debug_type_section>: New field.
1478 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1479 (load_cu): Use appropriate section.
1480 (create_signatured_type_table_from_index): Add 'section'
1482 (dwarf2_read_index): Only allow a single .debug_types section.
1483 (dw2_get_file_names): Use appropriate section.
1484 (read_type_comp_unit_head): Add 'section' argument.
1485 (create_debug_types_hash_table): Loop over all .debug_types
1487 (init_cu_die_reader): Use appropriate section.
1488 (process_psymtab_comp_unit, load_partial_comp_unit)
1489 (load_full_comp_unit, read_die_and_children, find_partial_die)
1490 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1491 (lookup_signatured_type_at_offset): Add 'section' argument.
1492 (read_signatured_type_at_offset): Add 'sect' argument.
1493 (read_signatured_type): Use appropriate section.
1494 (set_die_type, get_die_type_at_offset): Update.
1495 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1497 (write_psymtabs_to_index): Don't allow index with more than one
1498 .debug_types section.
1500 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1502 Fix crash if referenced CU is aged out.
1503 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1504 xfree of block.data.
1505 (indirect_pieced_value): New variable back_to, use to for xfree of
1507 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1509 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1510 (load_cu): New function from ...
1511 (dw2_do_instantiate_symtab): ... the code here ...
1512 (process_full_comp_unit): ... and here.
1513 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1516 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1518 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1521 2011-07-19 Gary Benson <gbenson@redhat.com>
1523 * infrun.c (struct execution_control_state): New member
1524 stop_func_filled_in.
1525 (clear_stop_func, fill_in_stop_func): New functions.
1526 (handle_inferior_event): Call clear_stop_func rather than
1527 manipulating the execution control state directly.
1528 Call fill_in_stop_func lazily as required rather than
1529 directly calling find_pc_partial_function in all cases.
1531 2011-07-18 Tom Tromey <tromey@redhat.com>
1533 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1534 checking for variable-sized array.
1536 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1538 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1539 of supported languages.
1540 * varobj.c: Add top definitions and basic implementation of the
1541 following callbacks: ada_number_of_children, ada_name_of_variable,
1542 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1543 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1544 (languages): Register Ada-specific callbacks.
1545 (variable_language): Add the Ada case in the language setter switch.
1547 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1549 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1551 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1554 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1555 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1556 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1557 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1558 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1559 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1560 (struct dwarf_expr_context_funcs): New, move here methods from ...
1561 (struct dwarf_expr_context): ... here. New fields funcs.
1562 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1563 (dwarf_expr_ctx_funcs): New.
1564 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1565 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1566 (needs_frame_ctx_funcs): New.
1567 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1569 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1571 * MAINTAINERS (Write After Approval): Add myself to the list.
1573 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1575 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1576 that CIE pointer of an FDE really points to a CIE .
1578 2011-07-15 Hui Zhu <teawater@gmail.com>
1580 * remote.c (remote_get_trace_status): Add comments.
1582 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1584 Code cleanup - constify struct lval_funcs.
1585 * dwarf2loc.c (pieced_value_funcs): Make it const.
1586 * infrun.c (siginfo_value_funcs): Likewise.
1587 * opencl-lang.c (opencl_value_funcs): Likewise.
1588 * valops.c (value_assign, value_ind): Make the funcs variable const.
1589 * value.c (struct value): Make location.computed.funcs target const.
1590 Rearrange the comments.
1591 (allocate_computed_value): Make the funcs parameter target const.
1592 (value_computed_funcs): Return the funcs target const.
1593 (value_free, value_copy, set_value_component_location): Make the funcs
1595 * value.h (allocate_computed_value): Make the funcs parameter target
1597 (value_computed_funcs): Return the funcs target const.
1598 * windows-tdep.c (tlb_value_funcs): Make it const.
1600 2011-07-14 Hui Zhu <teawater@gmail.com>
1602 * remote.c (remote_get_trace_status): Initialize p.
1604 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1607 * remote.c (remote_get_trace_status): New variable ex. Put
1608 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1610 2011-07-13 Tom Tromey <tromey@redhat.com>
1612 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1613 value_from_contents for final conversion.
1615 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1618 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1619 Indent prototypes so they do not get into tags.
1621 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1623 Code cleanup making also optimized out values lazy.
1624 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1625 allocate_optimized_out_value. Twice.
1626 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1627 * findvar.c (read_var_value): Likewise.
1628 * value.c (allocate_optimized_out_value): New function.
1629 * value.h (allocate_optimized_out_value): New declaration.
1631 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1633 Fix occasional crash of CTRL-C during DWARF read in.
1634 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1636 2011-07-11 Tom Tromey <tromey@redhat.com>
1638 * regcache.c (struct regcache_descr): Fix typo.
1639 * i387-tdep.c (i387_supply_xsave): Fix typo.
1641 2011-07-11 Tom Tromey <tromey@redhat.com>
1643 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1644 (read_file_scope, read_type_unit_scope): Use it.
1646 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1648 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1651 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1654 * python/python.c: Set gdbpy_should_print_stack default to off.
1655 (set_python): Deprecate maint set python print-stack to
1657 (_initialize_python): Deprecate maint set/show python print-stack.
1658 Add new prefix command, python. Add new setting, print-backtrace.
1659 * NEWS: Document set python print-stack. Document default change.
1661 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1663 * python/py-inferior.c (infpy_dealloc): New function.
1664 (inferior_to_inferior_object): Return a new object, or a
1665 new reference to the existing object.
1666 (find_thread_object): Cleanup references to inferior.
1667 (delete_thread_object): Ditto.
1668 * python/py-infthread.c (create_thread_object): Do not increment
1669 inferior reference count.
1671 2011-07-08 Tom Tromey <tromey@redhat.com>
1673 * dwarf2loc.c (locexpr_regname): New function.
1674 (locexpr_describe_location_piece): Use it.
1675 (disassemble_dwarf_expression): Add per_cu argument. Use
1677 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1678 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1680 (locexpr_describe_location_1): Add per_cu argument.
1681 (locexpr_describe_location): Update.
1682 (loclist_describe_location): Update.
1684 2011-07-08 Tom Tromey <tromey@redhat.com>
1686 * dwarf2expr.c (execute_stack_op): Add QUIT.
1688 2011-07-07 Hui Zhu <teawater@gmail.com>
1691 2011-07-06 Hui Zhu <teawater@gmail.com>
1692 * remote.c (remote_start_remote): Add TRY_CATCH for
1693 remote_get_trace_status.
1694 * tracepoint.c (disconnect_tracing): Ditto.
1696 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1698 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1699 variables as signed, not unsigned.
1701 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1703 * jit.c (jit_inferior_init): Reformat forward declaration.
1705 2011-07-06 Matt Rice <ratmice@gmail.com>
1707 * MAINTAINERS (Write After Approval): Add myself to the list.
1709 2011-07-06 Hui Zhu <teawater@gmail.com>
1711 * remote.c (remote_start_remote): Add TRY_CATCH for
1712 remote_get_trace_status.
1713 * tracepoint.c (disconnect_tracing): Ditto.
1715 2011-07-05 Tom Tromey <tromey@redhat.com>
1717 * symtab.c (operator_chars): Now static.
1718 * linespec.c (operator_chars): Don't declare.
1720 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1722 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1724 2011-07-05 Tom Tromey <tromey@redhat.com>
1726 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1727 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1728 (TYPE_CPLUS_REALLY_JAVA): New macro.
1729 * dwarf2read.c (process_structure_scope): Set
1730 TYPE_CPLUS_REALLY_JAVA.
1732 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1734 * ada-lang.c: Fix typos.
1735 * amd64-tdep.c: Likewise.
1736 * breakpoint.c: Likewise.
1737 * cli/cli-decode.c: Likewise.
1738 * findcmd.c: Likewise.
1739 * inline-frame.c: Likewise.
1740 * mi/mi-main.c: Likewise.
1741 * minsyms.c: Likewise.
1742 * monitor.c: Likewise.
1743 * monitor.h: Likewise.
1744 * prologue-value.c: Likewise.
1745 * reverse.c: Likewise.
1746 * s390-tdep.c: Likewise.
1748 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1750 * jit.c (jit_inferior_init): Forward declare.
1751 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1753 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1755 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1757 2011-07-04 Tristan Gingold <gingold@adacore.com>
1759 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1760 (tcb_fieldno): Add activation_link field.
1761 (get_known_tasks_addr): Moved and rewritten.
1762 (get_tcb_types_info): Set activation_link field.
1763 (read_known_tasks_array): Add parameter. Rewritten.
1764 (read_known_tasks_list): New function.
1765 (read_known_tasks): New function.
1766 (ada_build_task_list): Call read_known_tasks instead of
1767 read_known_tasks_array.
1768 * ravenscar-thread.c: Add first_task_name constant.
1769 (has_ravenscar_runtime): Check for task list too.
1771 2011-07-04 Tristan Gingold <gingold@adacore.com>
1773 * ada-tasks.c: Renames fieldno to actb_fieldno.
1774 (ada_get_task_number): Indentation.
1775 (get_tcb_types_info): Remove all parameters. Write directly
1777 (ptid_from_atcb_common): Adjust.
1778 (read_atcb): Adjust.
1780 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1782 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1784 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1786 * ui-out.c (ui_out_field_core_addr): Mention that the function
1787 description is in the header file.
1788 * ui-out.h (ui_out_field_core_addr): Document function.
1790 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1792 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1793 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1795 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1797 * symtab.c (expand_line_sal): Remove empty line.
1799 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1801 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1802 same way as ELFOSABI_NONE.
1803 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1805 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1807 * breakpoint.c: Fix typos in comments.
1808 * linespec.c: Likewise.
1809 * symtab.c: Likewise.
1811 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1813 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1814 section in separate object files.
1816 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1818 Fix false GCC warning.
1819 * linespec.c (decode_line_1): Initialize values.
1821 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1823 * linespec.c (find_method): Accept the function type automatically only
1824 if it was specified with parameter types.
1826 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1828 Stop on first linespec terminator instead of eating what we can.
1829 * linespec.c (is_linespec_boundary): New function.
1830 (name_end): Remove function.
1831 (keep_name_info): New parameter on_boundary, replace the body.
1832 (decode_line_1): Provide the parameter to keep_name_info.
1833 (decode_compound): Likewise. Drop the trailing java return type
1836 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1838 Fall back linespec to minimal symbols.
1839 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1840 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1841 (find_method, symbol_found): Change error to cplusplus_error.
1843 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1845 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1847 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1848 Tom Tromey <tromey@redhat.com>
1850 * dwarf2read.c (check_physname): New variable.
1851 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1852 (show_check_physname): New function.
1853 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1855 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1857 * machoread.c (macho_symfile_read): Delete OBE comment.
1859 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1861 * machoread.c (struct macho_oso_data): Delete.
1862 (current_oso): Delete.
1863 (macho_relocate_common_syms): New function, mostly extracted
1865 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1866 Remove code that sets and unset current_oso.
1867 (macho_symfile_relocate): Delete handling of common symbols,
1868 now moved to macho_relocate_common_syms.
1870 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1872 * darwin-nat.c (darwin_ptrace): Add documentation.
1873 Set errno to zero before calling ptrace. If ptrace returns
1874 -1 and errno is zero, then change then return zero.
1875 (darwin_kill_inferior): Issue a warning instead of triggering
1876 a failed assertion when the PT_KILL ptrace operations returned
1879 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1881 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1882 only when inf->private->no_ptrace.
1884 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1886 * ada-lang.c (print_it_exception): Print temporary catchpoints
1887 as "Temporary catchpoint".
1888 (print_mention_exception): Likewise.
1890 2011-07-01 Tom Tromey <tromey@redhat.com>
1892 * jv-lang.c (java_language_defn): Use java_printchar,
1894 (java_get_encoding): New function.
1895 (java_emit_char): Use generic_emit_char.
1896 (java_printchar): New function.
1897 (java_printstr): Likewise.
1899 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1901 * ada-typeprint.c (print_record_type): If unable to decode
1902 the name of the parent type, use the encoded name.
1904 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1906 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1907 pointer to constrained packed array type output.
1908 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1909 packed array output.
1911 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1913 * ada-typeprint.c (print_array_type): removed if condition on show
1914 being negative for bounds printing.
1916 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1918 * ada-lang.c (ada_identical_enum_types_p): New function.
1919 (symbols_are_identical_enums): New function.
1920 (remove_extra_symbols): Do nothing if NSYMS < 2.
1921 Use symbols_are_identical_enums.
1923 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1925 * ada-valprint.c (ada_value_print): Handle typedefs.
1927 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1929 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1931 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1933 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1934 (decode_constrained_packed_array): Likewise.
1935 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1937 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1939 * ada-exp.y (convert_char_literal): Handle typedef types.
1941 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1943 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1945 2011-06-30 Tom Tromey <tromey@redhat.com>
1947 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1948 * valops.c (find_overload_match): Call do_cleanups on early exit
1950 * solib.c (solib_find): Call do_cleanups on early exit path.
1952 2011-06-30 Tom Tromey <tromey@redhat.com>
1954 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1955 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1956 return paths. Defer final do_cleanups until last return.
1957 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1960 2011-06-30 Tom Tromey <tromey@redhat.com>
1962 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1964 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1966 * MAINTAINERS (Write After Approval): Add myself to the list.
1968 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1970 Disable epilogue unwinders on recent GCCs.
1971 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1972 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1973 * dwarf2read.c (process_full_comp_unit): Initialize
1974 EPILOGUE_UNWIND_VALID.
1975 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1976 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1977 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1979 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1981 Code cleanup - reformatting.
1982 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1983 (producer_is_gcc_ge_4): ... here, change the return value.
1984 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1987 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1989 Fix non-only rename list for Fortran modules import.
1990 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1991 cp_add_using_directive caller.
1992 (cp_add_using_directive): New parameter excludes, describe it. New
1993 variables ix and param. Compare if also excludes match. Allocate NEW
1994 with variable size, initialize EXCLUDES there.
1995 (cp_lookup_symbol_imports): New variable excludep, test
1996 current->EXCLUDES with it.
1997 * cp-support.h: Include vec.h.
1998 (struct using_direct): New field excludes, describe it.
1999 (DEF_VEC_P (const_char_ptr)): New.
2000 (cp_add_using_directive): New parameter excludes.
2001 * defs.h (const_char_ptr): New typedef.
2002 * dwarf2read.c (read_import_statement): New variables child_die,
2003 excludes and cleanups, read in excludes.
2004 (read_namespace): Adjust the cp_add_using_directive caller.
2006 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2009 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2010 negative comparisons.
2012 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
2014 * mi/mi-main.c (mi_cmd_list_features): Emit
2015 breakpoint-notifications.
2017 2011-06-29 Tom Tromey <tromey@redhat.com>
2020 * valprint.h (generic_emit_char, generic_printstr): Declare.
2021 * valprint.c (wchar_printable, append_string_as_wide)
2022 (print_wchar): Move from c-lang.c.
2023 (generic_emit_char): New function; mostly taken from c_emit_char.
2024 (generic_printstr): New function; mostly taken from c_printstr.
2025 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2026 represented as arrays.
2027 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2029 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2030 identically to TYPE_CODE_INT.
2031 * f-lang.c (f_get_encoding): New function.
2032 (f_emit_char): Use generic_emit_char.
2033 (f_printchar): Replace comment.
2034 (f_printstr): Use generic_printstr.
2035 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2036 "character" types specially.
2037 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2039 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2041 (c_emit_char): Call generic_emit_char.
2042 (c_printstr): Call generic_printstr.
2044 2011-06-29 Gary Benson <gbenson@redhat.com>
2046 * breakpoint.c (bpstat_what): Removed duplicated case.
2048 2011-06-28 Tom Tromey <tromey@redhat.com>
2050 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2052 2011-06-27 Tom Tromey <tromey@redhat.com>
2054 * valops.c (find_overload_match): Call do_cleanups before early
2056 * top.c (execute_command): Call do_cleanups before early return.
2057 (command_loop): Likewise.
2058 * stack.c (backtrace_command): Make a null cleanup early. Don't
2059 conditionally call do_cleanups.
2060 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2062 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2063 so cleanups are always run.
2064 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2065 * findcmd.c (parse_find_args): Call do_cleanups on early return
2067 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2068 Don't conditionally call do_cleanups.
2069 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2072 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2074 * MAINTAINERS (Write After Approval): Use default email address.
2076 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2078 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2080 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2082 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2083 saved_regs_mask and copied_regs_mask fields.
2084 (sparc_record_save_insn): New prototype.
2085 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2086 (sparc_record_save_insn): New function.
2087 (sparc_analyze_prologue): Add head comment. Recognize store insns
2088 of call-saved registers. Use OFFSET consistently. Recognize flat
2089 frames and cache their settings.
2090 (sparc32_skip_prologue): Handle flat frames.
2091 (sparc_frame_cache): Add frame_offset to the base address.
2092 (sparc32_frame_cache): Adjust to new frame description.
2093 (sparc32_frame_prev_register): Likewise.
2094 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2095 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2096 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2097 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2098 frame by calling sparc_record_save_insn.
2099 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2100 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2101 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2103 2011-06-27 Tristan Gingold <gingold@adacore.com>
2105 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2106 field by map_addr and map_len.
2107 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2108 (munmap_section_buffer): Likewise.
2110 2011-06-24 Tom Tromey <tromey@redhat.com>
2112 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2113 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2114 * python/python.c (gdbpy_parameter): Make 'arg' const.
2115 (execute_gdb_command): Likewise.
2116 (gdbpy_decode_line): Likewise. Copy it.
2117 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2118 (gdbpy_write): Make 'arg' const.
2119 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2121 (gdbpy_lookup_type): Likewise.
2122 * python/py-prettyprint.c (print_children): Make 'name' const.
2123 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2124 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2126 * python/py-function.c (fnpy_init): Make 'name' const.
2127 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2128 (gdbpy_string_to_argv): Make 'input' const.
2129 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2131 * gdbtypes.h (lookup_typename): Update.
2132 * gdbtypes.c (lookup_typename): Make 'name' const.
2133 (lookup_struct): Likewise.
2134 (lookup_union): Likewise.
2135 (lookup_enum): Likewise.
2137 2011-06-24 Tom Tromey <tromey@redhat.com>
2139 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2140 gdb_thread_db.h. Move all common/ entries to be together.
2141 (TAGS): Don't depend on DEPFILES.
2143 2011-06-23 Yao Qi <yao@codesourcery.com>
2145 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2146 * remote.c (remote_start_remote): ... here.
2147 * monitor.c (monitor_open): ... here.
2149 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2151 * gdbtypes.c (append_composite_type_field_aligned): Fix
2152 calculation of bit position based on alignment.
2154 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2156 * breakpoint.c (bpstat_stop_status): Call the check_status
2157 breakpoint_ops method.
2158 (print_one_breakpoint_location): Also print the condition for Ada
2159 exception catchpoints.
2160 (allocate_bp_location): New, factored out from
2161 allocate_bp_location.
2162 (allocate_bp_location): Adjust. Call the owner breakpoint's
2163 allocate_location method, if there is one.
2164 (free_bp_location): Call the locations's dtor method, if there is
2166 (init_raw_breakpoint_without_location): New breakpoint_ops
2168 (set_raw_breakpoint_without_location): Adjust.
2169 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2170 (set_raw_breakpoint): Adjust.
2171 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2172 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2173 re_set and check_status methods.
2174 (init_catchpoint): Don't memset, initialize thread, addr_string
2175 and enable_state. Pass the ops down to init_raw_breakpoint.
2176 (install_catchpoint): Rename to ...
2177 (install_breakpoint): ... this, and make extern.
2178 (create_fork_vfork_event_catchpoint): Adjust.
2179 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2180 re_set and check_status methods.
2181 (create_syscall_event_catchpoint): Adjust.
2182 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2183 (masked_watchpoint_breakpoint_ops): Install NULL
2184 allocate_location, re_set and check_status methods.
2185 (catch_exec_command_1): Adjust.
2186 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2187 re_set and check_status methods.
2188 (create_ada_exception_breakpoint): Rename to ...
2189 (init_ada_exception_breakpoint): ... this. Add a struct
2190 breakpoint parameter, and delete the exp_string, cond_string and
2191 cond parameters. Use init_raw_breakpoint, and don't install or
2192 mention the breakpoint yet. Don't clear breakpoint fields that
2193 init_raw_breakpoint already clears.
2194 (re_set_breakpoint): Delete, split into ...
2195 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2197 (breakpoint_re_set_one): Call the breakpoint's
2198 breakpoint_ops->re_set implementation, if there's one. Adjust.
2199 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2200 (struct bp_location_ops): New type.
2201 (struct bp_location): New field `ops'.
2202 (struct breakpoint_ops): New `allocate_location', `re_set' and
2203 `check_status' fields. Make `breakpoint_hit''s description match
2205 (init_bp_location): Declare.
2206 (breakpoint_re_set_default): Declare.
2207 (create_ada_exception_breakpoint): Rename to ...
2208 (init_ada_exception_breakpoint): ... this. Add a struct
2209 breakpoint parameter, and delete the exp_string, cond_string and
2211 (install_breakpoint): Declare.
2212 * ada-lang.c: Include exceptions.h.
2213 <Ada exceptions description>: Update.
2214 (struct ada_catchpoint_location): New type.
2215 (ada_catchpoint_location_dtor): New function.
2216 (ada_catchpoint_location_ops): New global.
2217 (ada_catchpoint): New type.
2218 (create_excep_cond_exprs): New function.
2219 (dtor_exception, allocate_location_exception, re_set_exception)
2220 (should_stop_exception, check_status_exception): New functions.
2221 (print_one_exception, print_mention_exception)
2222 (print_recreate_exception): Adjust.
2223 (dtor_catch_exception, allocate_location_catch_exception)
2224 (re_set_catch_exception, check_status_catch_exception): New
2226 (catch_exception_breakpoint_ops): Install them.
2227 (dtor_catch_exception_unhandled)
2228 (allocate_location_catch_exception_unhandled)
2229 (re_set_catch_exception_unhandled)
2230 (check_status_catch_exception_unhandled): New functions.
2231 (catch_exception_unhandled_breakpoint_ops): Install them.
2232 (dtor_catch_assert, allocate_location_catch_assert)
2233 (re_set_catch_assert, check_status_catch_assert): New functions.
2234 (catch_assert_breakpoint_ops): Install them.
2235 (ada_exception_catchpoint_p): Delete.
2236 (catch_ada_exception_command_split)
2237 (ada_exception_catchpoint_cond_string): Rename exp_string
2238 parameter to excep_string. Adjust.
2239 (ada_parse_catchpoint_condition): Delete.
2240 (ada_exception_sal): Rename the exp_string parameter to
2241 excep_string. Delete the cond_string and cond parameters.
2243 (ada_decode_exception_location): Rename the exp_string parameter
2244 to excep_string. Delete the cond_string and cond parameters.
2246 (create_ada_exception_catchpoint): New function.
2247 (catch_ada_exception_command, ada_decode_assert_location)
2248 (catch_assert_command): Adjust.
2249 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2251 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2253 * ada-lang.c: Include arch-utils.h.
2254 (ada_decode_exception_location): Make static.
2255 (catch_ada_exception_command): Moved here from breakpoint.c.
2256 (ada_decode_assert_location): Make static.
2257 (catch_assert_command): Moved here from breakpoint.c.
2258 (_initialize_ada_lang): Install the exception and assert
2259 catchpoint commands here.
2260 * ada-lang.h (ada_decode_exception_location)
2261 (ada_decode_assert_location): Delete declarations.
2262 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2264 (create_ada_exception_breakpoint): Make extern.
2265 (catch_ada_exception_command, catch_assert_command): Moved to
2267 (add_catch_command): Make extern.
2268 (_initilize_breakpoint): Don't install the exception and assert
2269 catchpoint commands here.
2270 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2272 (add_catch_command, create_ada_exception_breakpoint): Declare.
2274 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2276 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2277 the breakpoint to the breakpoint chain here.
2278 (set_raw_breakpoint_without_location): Add the breakpoint to the
2279 breakpoint chain here.
2280 (init_raw_breakpoint): Adjust comments.
2281 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2283 (init_catchpoint): Don't set the catchpoint's breakpoint number
2285 (install_catchpoint): New function.
2286 (create_fork_vfork_event_catchpoint)
2287 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2288 use install_catchpoint.
2290 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2292 * breakpoint.c (create_catchpoint_without_mention)
2293 (create_catchpoint): Delete.
2295 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2297 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2298 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2299 reference to exec_pathname.
2300 (struct exec_catchpoint): New type.
2301 (dtor_catch_exec): New function.
2302 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2303 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2304 (catch_exec_command_1): Adjust to use init_catchpoint.
2305 (delete_breakpoint): Remove reference to exec_pathname.
2307 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2309 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2310 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2311 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2312 reference to syscalls_to_be_caught.
2313 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2315 (struct syscall_catchpoint): New type.
2316 (dtor_catch_syscall): New function.
2317 (insert_catch_syscall, remove_catch_syscall)
2318 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2319 (print_recreate_catch_syscall): Adjust.
2320 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2321 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2322 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2323 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2324 (masked_watchpoint_breakpoint_ops)
2325 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2326 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2327 there is one. Remove references to syscalls_to_be_caught.
2328 (catching_syscall_number): Adjust.
2329 * ada-lang.c (catch_exception_breakpoint_ops)
2330 (catch_exception_unhandled_breakpoint_ops)
2331 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2333 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2335 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2337 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2338 reference to forked_inferior_pid.
2339 (struct fork_catchpoint): New type.
2340 (breakpoint_hit_catch_fork, print_it_catch_fork)
2341 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2342 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2343 (create_fork_vfork_event_catchpoint): Adjust to use
2346 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2348 * breakpoint.c (add_to_breakpoint_chain)
2349 (init_raw_breakpoint_without_location): New functions, factored
2351 (set_raw_breakpoint_without_location): ... this one.
2352 (init_raw_breakpoint): New function, factored out from
2353 set_raw_breakpoint and adjusted to use
2354 init_raw_breakpoint_without_location.
2355 (set_raw_breakpoint): Adjust.
2356 (init_catchpoint): New function, factored out from
2357 create_catchpoint_without_mention and adjusted to use
2358 init_raw_breakpoint.
2359 (create_catchpoint_without_mention): Adjust.
2361 2011-06-22 Tom Tromey <tromey@redhat.com>
2363 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2364 argument of 0 specially.
2366 2011-06-22 Yao Qi <yao@codesourcery.com>
2368 * infrun.c (handle_inferior_event): Remove write-only local variable
2369 `sw_single_step_trap_p'.
2371 2011-06-20 Tom Tromey <tromey@redhat.com>
2373 * symtab.c (lookup_language_this): End loop if block is NULL.
2375 2011-06-17 Tom Tromey <tromey@redhat.com>
2377 * valops.c (value_of_this): Use lookup_language_this.
2378 * symtab.h (lookup_language_this): Declare.
2379 * symtab.c (lookup_language_this): New function.
2380 (lookup_symbol_aux): Use lookup_language_this.
2381 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2383 2011-06-17 Tom Tromey <tromey@redhat.com>
2385 * value.h (value_of_this): Update.
2386 (value_of_local): Remove.
2387 * valops.c (value_of_this): Rename from value_of_local. Change
2389 * p-exp.y (exp): Update.
2390 (variable): Likewise.
2391 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2393 2011-06-17 Tom Tromey <tromey@redhat.com>
2395 * valops.c (value_of_local): Complain if NAME is NULL.
2396 * std-operator.def (OP_OBJC_SELF): Remove.
2397 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2398 * objc-exp.y (name_not_typename): Use OP_THIS.
2399 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2401 <OP_OBJC_SELF>: Remove.
2402 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2404 2011-06-16 Tristan Gingold <gingold@adacore.com>
2406 * python/py-events.h (gdb_py_events): Make it extern.
2407 * python/py-evtregistry.c (gdb_py_events): Declare.
2409 2011-06-16 Hui Zhu <teawater@gmail.com>
2411 * remote.c (remote_trace_set_readonly_regions): Add check for
2412 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2415 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2417 * arm-linux-tdep.c: Include "auxv.h".
2419 (ARM_LINUX_SIZEOF_VFP): Define.
2420 (arm_linux_supply_vfp): New function.
2421 (arm_linux_collect_vfp): Likewise.
2422 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2423 (arm_linux_fpa_regset_sections): New variable.
2424 (arm_linux_vfp_regset_sections): Likewise.
2425 (arm_linux_core_read_description): New function.
2426 (arm_linux_init_abi): Install arm_linux_core_read_description and
2427 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2428 appropriate for the architecture.
2429 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2430 (tdesc_arm_with_m): Declare.
2431 (tdesc_arm_with_iwmmxt): Likewise.
2432 (tdesc_arm_with_vfpv2): Likewise.
2433 (tdesc_arm_with_vfpv3): Likewise.
2434 (tdesc_arm_with_neon): Likewise.
2435 * arm-linux-nat.c: Move features/*.c includes ...
2436 * arm-tdep.c: ... here.
2437 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2438 target description data structures ...
2439 * arm-tdep.c (_initialize_arm_tdep): ... here.
2440 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2441 HWCAP_VFPv3D16): Move definitions ...
2442 * arm-linux-tdep.h: ... here.
2444 2011-06-15 Hui Zhu <teawater@gmail.com>
2446 * remote.c (remote_trace_set_readonly_regions): Add a check for
2449 2011-06-14 Tom Tromey <tromey@redhat.com>
2451 * coffread.c (coffread_objfile): Rename from current_objfile.
2452 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2453 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2455 2011-06-14 Tom Tromey <tromey@redhat.com>
2457 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2458 (class_symtab): Remove.
2459 (jv_dynamics_progspace_key): New global.
2460 (jv_per_objfile_free): Reset program space data. Update assert.
2461 Don't clear globals.
2462 (get_dynamics_objfile): Use and set program space data.
2463 (get_java_class_symtab): Use get_dynamics_objfile.
2464 (add_class_symbol): Likewise.
2465 (java_link_class_type): Likewise.
2466 (java_object_type, jv_clear_object_type, set_java_object_type):
2468 (get_java_object_type): Update. Don't cache result.
2469 (is_object_type): Don't call set_java_object_type.
2470 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2471 initialize jv_dynamics_progspace_key.
2473 2011-06-14 Tom Tromey <tromey@redhat.com>
2475 * symtab.h (current_objfile): Don't declare.
2476 * objfiles.h (current_objfile): Don't declare.
2477 * objfiles.c (current_objfile): Remove.
2478 * mdebugread.c (current_objfile): New file-scope global.
2479 * dbxread.c (current_objfile): New file-scope global.
2480 * coffread.c (current_objfile): New file-scope global.
2482 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2484 * top.h (line): Rename to ...
2485 (saved_command_line): ... this.
2486 (linesize): Rename to ...
2487 (saved_command_line_size): ... this.
2488 * top.c (line): Rename to ...
2489 (saved_command_line): ... this.
2490 (linesize): Rename to ...
2491 (saved_command_line_size): ... this.
2492 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2493 * event-top.c (command_line_handler): Adjust.
2494 * main.c (captured_main): Adjust.
2496 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2498 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2499 get_frame_func instead of get_frame_pc to determine the code
2500 address used to construct the frame ID.
2501 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2502 (i386_epilogue_frame_this_id): Likewise.
2503 (i386_epilogue_frame_prev_register): New function.
2504 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2505 (i386_stack_tramp_frame_sniffer): Fix coding style.
2506 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2507 (i386_gdbarch_init): Fix comments.
2509 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2511 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2512 instruction when walking back through the instruction stream.
2514 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2516 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2517 fullname parameters order.
2519 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2522 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2524 * psymtab.c (map_symbol_filenames_psymtab)
2525 (map_partial_symbol_filenames): Likewise.
2526 * psymtab.h: Include symfile.h.
2527 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2528 * symfile.h (symbol_filename_ftype): New.
2529 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2530 map_symbol_filenames, clarify more the naming in comment.
2532 2011-06-07 Doug Evans <dje@google.com>
2534 * cc-with-index.sh: Fix typos in comment.
2535 Look for ../../gdb, for fullname.exp.
2537 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2538 Pedro Alves <pedro@codesourcery.com>
2540 * cli/cli-cmds.c (shell_escape): Use waitpid.
2541 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2543 2011-06-07 Tristan Gingold <gingold@adacore.com>
2545 * xcoffread.c (dwarf2_xcoff_names): New variable.
2546 (aix_process_linenos): Add a guard.
2547 (xcoff_symfile_finish): Free dwarf2.
2548 (xcoff_initial_scan): Add dwarf2 support.
2550 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2552 * infcall.c (run_inferior_call): Don't mask async. Instead force
2553 a synchronous wait, if the target can async.
2555 * target.h (struct target_ops): Delete to_async_mask.
2556 (target_async_mask): Delete.
2557 * target.c (update_current_target): Delete references to to_async_mask.
2558 * linux-nat.c (linux_nat_async_mask_value): Delete.
2559 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2560 to linux_nat_async_mask_value.
2561 (linux_nat_async_mask): Delete.
2562 (linux_nat_async, linux_nat_close): Remove references to
2563 linux_nat_async_mask_value.
2564 * record.c (record_async_mask_value): Delete.
2565 (record_async): Remove references to record_async_mask_value.
2566 (record_async_mask): Delete.
2567 (record_can_async_p, record_is_async_p): Remove references to
2568 record_async_mask_value.
2569 (init_record_ops, init_record_core_ops): Remove references to
2571 * remote.c (remote_async_mask_value): Delete.
2572 (init_remote_ops): Remove reference to remote_async_mask.
2573 (remote_can_async_p, remote_is_async_p): Remove references to
2574 remote_async_mask_value.
2575 (remote_async): Remove references to remote_async_mask_value.
2576 (remote_async_mask): Delete.
2578 * infrun.c (fetch_inferior_event): Don't claim registers changed
2579 if the current thread is already not executing.
2581 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2583 From Stephen Kitt <steve@sk2.org>
2584 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2585 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2587 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2589 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2590 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2592 2011-06-03 Tom Tromey <tromey@redhat.com>
2594 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2596 * python/py-exitedevent.c (create_exited_event_object): Change
2597 type of 'exit_code'. Optionally add exit_code attribute.
2598 (emit_exited_event): Change type of 'exit_code'.
2599 * python/py-event.h (emit_exited_event): Update.
2600 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2601 * infrun.c (handle_inferior_event): Set exit code fields on
2603 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2605 * inferior.c (exit_inferior_1): Initialize new fields.
2607 2011-06-03 Tom Tromey <tromey@redhat.com>
2609 * dwarf2expr.c (get_signed_type): New function.
2610 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2612 2011-06-02 Keith Seitz <keiths@redhat.com>
2614 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2616 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2618 * top.h (simplified_command_loop): Delete declaration.
2620 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2622 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2623 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2625 2011-06-01 Yao Qi <yao@codesourcery.com>
2627 * objfiles.h (obj_section_addr): Update reference to objfile from
2629 (obj_section_endaddr): Likewise.
2631 2011-06-01 Daniel Jacobowitz <drow@false.org>
2633 * MAINTAINERS: Update my email address and affiliation. Also
2634 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2636 2010-05-31 Keith Seitz <keiths@redhat.com>
2639 * linespec.c (get_search_block): New function.
2640 (find_methods): Add FILE_SYMTATB parameter and use it and
2641 get_search_block to pass an appropriate block to
2642 lookup_symbol_in_namespace.
2643 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2644 Check if *ARGPTR starts with a filename first.
2645 If it does, call locate_first_half again to locate the next
2646 "first half" of the linespec.
2647 Pass FILE_SYMTATB to decode_objc and decode_compound.
2648 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2649 (locate_first_half): Stop on the first colon seen.
2650 (decode_compound): Add FILE_SYMTAB parameter.
2651 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2652 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2653 get_search_block with lookup_symbol.
2654 (find_method): Add FILE_SYMTAB parameter and pass it to
2656 (decode_objc): Use get_search_block.
2658 2010-05-31 Keith Seitz <keiths@redhat.com>
2661 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2662 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2663 and CP_ANONYMOUS_NAMESPACE_LEN.
2664 (cp_is_anonymous): Likewise.
2665 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2666 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2667 * dwarf2read.c (namespace_name): Likewise.
2668 (fixup_partial_die): Likewise.
2669 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2670 seen in the input, keep it.
2672 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2674 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2675 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2676 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2677 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2678 * remote.c (_initialize_remote): Register
2679 async_remote_interrupt_twice directly as
2680 sigint_remote_twice_token event.
2682 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2684 * target.h (enum inferior_event_type): Delete INF_ERROR.
2685 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2687 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2689 * interps.c (interp_set): Don't cancel continuations.
2691 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2693 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2695 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2697 * continuations.h (continuation_ftype): Add `err' parameter.
2698 Document parameters.
2699 (do_all_continuations, do_all_continuations_thread)
2700 (do_all_intermediate_continuations)
2701 (do_all_intermediate_continuations_thread)
2702 (do_all_inferior_continuations): Add `err' parameter.
2703 * continuations.c (do_my_continuations_1, do_my_continuations)
2704 (do_all_inferior_continuations, do_all_continuations_ptid)
2705 (do_all_continuations_thread_callback)
2706 (do_all_continuations_thread, do_all_continuations)
2707 (do_all_intermediate_continuations_thread_callback)
2708 (do_all_intermediate_continuations_thread)
2709 (do_all_intermediate_continuations): Add `err' parameter, and pass
2710 it down all the way to the continuations proper.
2711 * inf-loop.c (inferior_event_handler): If fetching an inferior
2712 event throws an error, don't pop the target, and still call the
2713 continuations, but with `err' set. Adjust all other continuation
2715 * breakpoint.c (until_break_command_continuation): Add `err'
2717 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2718 issue another step if `err' is set.
2719 (struct until_next_continuation_args): New.
2720 (until_next_continuation): Add `err' parameter. Adjust.
2721 (until_next_command): Adjust.
2722 (struct finish_command_continuation_args): Add `thread' field.
2723 (finish_command_continuation): Add `err' parameter. Handle it.
2724 (finish_forward): Adjust.
2725 (attach_command_continuation): Add `err' parameter. Handle it.
2726 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2727 cancel the continuations.
2728 * interps.c (interp_set): Adjust to cancel the continuations.
2729 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2730 continuations rather than discarding.
2731 (free_thread): Don't clear thread inferior resources here.
2732 (delete_thread_1): Do it here instead. And do it before removing
2733 the thread from the threads list. Tag the thread as exited before
2734 clearing thread inferior resources.
2736 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2738 * infcall.c (call_function_by_hand): Rephrase error message.
2740 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2742 * defs.h (struct thread_info, struct inferior): Delete forward
2744 * breakpoint.h (struct thread_info): New forward declaration.
2745 * observer.sh (struct inferior): New forward declaration.
2746 * python/python-internal.h (struct inferior): New forward
2749 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2751 * defs.h (struct continuation, continuation_ftype)
2752 (continuation_free_arg_ftype, add_continuation)
2753 (do_all_continuations, do_all_continuations_thread)
2754 (discard_all_continuations, discard_all_continuations_thread)
2755 (add_intermediate_continuation, do_all_intermediate_continuations)
2756 (do_all_intermediate_continuations_thread)
2757 (discard_all_intermediate_continuations)
2758 (discard_all_intermediate_continuations_thread)
2759 (add_inferior_continuation, do_all_inferior_continuations)
2760 (discard_all_inferior_continuations): Move to ...
2761 * continuations.h: ... this new file.
2762 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2763 infcmd.c, inferior.c, infrun.c, interps.c: Include
2766 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2767 Doug Evans <dje@google.com>
2769 Fix PR 10970, PR 12702.
2770 * linux-nat.c (linux_lwp_is_zombie): New function.
2771 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2772 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2774 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2776 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2778 (add_continuation, add_intermediate_continuation)
2779 (add_inferior_continuation): Use them.
2780 * continuations.c (struct continuation): Use them.
2781 (make_continuation_ftype): Delete.
2782 (make_continuation, add_inferior_continuation, add_continuation)
2783 (add_intermediate_continuation): Use continuation_ftype and
2784 continuation_free_arg_ftype. Rename parameters to shorter names.
2786 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2788 * continuations.c (make_continuation): Make it return void.
2789 (do_my_continuations): Rename to ...
2790 (do_my_continuations_1): ... this. Remove old_chain parameter and
2792 (do_my_continuations): New.
2793 (discard_my_continuations): Rename to ...
2794 (discard_my_continuations_1): ... this. Remove old_chain
2795 parameter and adjust.
2796 (discard_my_continuations): New.
2797 (add_inferior_continuation): Simplify.
2798 (do_all_inferior_continuations): Reimplement on top
2799 do_my_continuations.
2800 (discard_all_inferior_continuations): Simplify.
2801 (add_continuation): Simplify.
2802 (do_all_continuations_ptid): Simplify.
2803 (discard_all_continuations_thread_callback): Simplify.
2804 (add_intermediate_continuation): Simplify.
2805 (discard_all_intermediate_continuations_thread_callback):
2808 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2810 * utils.c (struct continuation, add_continuation)
2811 (add_inferior_continuation)
2812 (do_all_inferior_continuations, discard_all_inferior_continuations)
2813 (restore_thread_cleanup, do_all_continuations_ptid)
2814 (do_all_continuations_thread_callback)
2815 (do_all_continuations_thread, do_all_continuations)
2816 (discard_all_continuations_thread_callback)
2817 (discard_all_continuations_thread, discard_all_continuations)
2818 (add_intermediate_continuation)
2819 (do_all_intermediate_continuations_thread_callback)
2820 (do_all_intermediate_continuations_thread)
2821 (do_all_intermediate_continuations)
2822 (discard_all_intermediate_continuations_thread_callback)
2823 (discard_all_intermediate_continuations_thread)
2824 (discard_all_intermediate_continuations): Move to ...
2825 * continuations.c: ... this new file, and adjust to no longer
2826 implement continuations on top of cleanups.
2827 * Makefile.in (SFILES): Add continuations.c.
2828 (COMMON_OBS): Add continuations.o.
2830 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2832 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2833 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2834 Internal error on invalid values.
2835 * reverse.c: Don't handle EXEC_ERROR.
2836 * mi/mi-main.c: Don't handle EXEC_ERROR.
2838 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2840 * record.c: Include event-loop.h, inf-loop.h.
2841 (record_beneath_to_async): New global.
2842 (tmp_to_async): New global.
2843 (record_async_inferior_event_token): New global.
2844 (record_open_1): Don't error out if async is enabled.
2845 (record_open): Handle to_async. Create an async event source in
2847 (record_close): Delete the async event source.
2848 (record_resumed): New global.
2849 (record_execution_dir): New global.
2850 (record_resume, record_core_resume): Set them. Register the
2851 target on the event loop.
2852 (record_wait): Rename to ...
2853 (record_wait_1): ... this. Add more debug output. Handle
2854 TARGET_WNOHANG, and the target beneath returning
2855 TARGET_WAITKIND_IGNORE.
2856 (record_wait): Reimplement on top of record_wait_1.
2857 (record_async_mask_value): New global.
2858 (record_async, record_async_mask, record_can_async_p)
2859 (record_is_async_p, record_execution_direction): New functions.
2860 (init_record_ops, init_record_core_ops): Install new methods.
2861 * infrun.c (fetch_inferior_event): Temporarily switch the global
2862 execution direction to the direction the target was going.
2863 (execution_direction): Change type to int.
2864 * target.c (default_execution_direction): New function.
2865 (update_current_target): Inherit and de_fault
2866 to_execution_direction.
2867 * target.h (struct target_ops) <to_execution_direction>: New
2869 (target_execution_direction): New macro.
2870 * inferior.h (execution_direction): Change type to int.
2872 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2874 * infcall.c (call_function_by_hand): Don't allow calling functions
2875 in reverse execution mode.
2877 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2879 * infcmd.c (finish_command): Allow async finish in reverse.
2881 2011-05-26 Yao Qi <yao@codesourcery.com>
2883 * gdb_thread_db.h: Delete. Move to ...
2884 * common/gdb_thread_db.h: ... here.
2886 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2888 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2889 function's entry point instead of a manually managed momentary
2890 breakpoint, and only ever issue one proceed call.
2891 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2892 doing a reverse-finish, switch to stepi mode, to do another step.
2893 (insert_step_resume_breakpoint_at_sal): Make public.
2894 (normal_stop): No need to save function value return registers if
2896 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2898 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2900 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2901 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2902 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2904 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2905 step-resume breakpoints.
2906 (print_it_typical): Handle bp_hp_step_resume.
2907 (bpstat_what): Ditto.
2908 (bptype_string): Ditto.
2909 (print_one_breakpoint_location): Ditto.
2910 (allocate_bp_location): Ditto.
2912 (breakpoint_re_set_one): Ditto.
2913 * infrun.c (handle_inferior_event): Adjust. Split
2914 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2915 BPSTAT_WHAT_HP_STEP_RESUME.
2916 (insert_step_resume_breakpoint_at_sal): Rename to ...
2917 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2918 parameter. Handle it.
2919 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2920 insert_step_resume_breakpoint_at_sal_1.
2921 (insert_step_resume_breakpoint_at_frame): Rename to ...
2922 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2923 set a high-priority step-resume breakpoint.
2924 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2925 (insert_step_resume_breakpoint_at_caller): Ditto.
2927 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2929 * breakpoint.c (iterate_over_related_breakpoints): New.
2930 (do_map_delete_breakpoint): New.
2931 (delete_command): Pass do_map_delete_breakpoint to
2932 map_breakpoint_numbers.
2933 (do_disable_breakpoint): New.
2934 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2936 (do_enable_breakpoint): Rename to ...
2937 (enable_breakpoint_disp): ... this.
2938 (enable_breakpoint): Adjust.
2939 (do_enable_breakpoint): New.
2940 (enable_once_breakpoint): Delete.
2941 (do_map_enable_breakpoint): New.
2942 (do_map_enable_once_breakpoint): New.
2943 (enable_once_command, enable_delete_command)
2944 (delete_trace_command): Iterate over the breakpoint's related
2947 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2949 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2950 for ALPHA_ZERO_REGNUM.
2951 (alpha_supply_int_regs): Explicitly supply zero as the value for
2952 ALPHA_ZERO_REGNUM in the register cache.
2953 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2955 2011-05-26 Yao Qi <yao@codesourcery.com>
2957 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2959 2011-05-26 Tristan Gingold <gingold@adacore.com>
2961 * symfile.h (struct dwarf2_section_names): New type.
2962 (struct dwarf2_debug_sections): New type.
2963 (dwarf2_has_info): Add parameter.
2964 * dwarf2read.c (dwarf2_elf_names): New variable.
2965 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2966 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2967 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2968 (dwarf2_has_info): Add names parameter. Pass names
2969 to dwarf2_locate_sections.
2970 (section_is_p): Rewrite using the names parameter.
2971 (dwarf2_locate_sections): Use section names from the names parameter.
2972 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2973 * elfread.c (read_psyms): Ditto.
2974 * machoread.c (macho_symfile_read): Ditto.
2976 2011-05-25 Andreas Schwab <schwab@redhat.com>
2979 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2981 2011-05-24 Keith Seitz <keiths@redhat.com>
2984 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2985 (decode_compound): Unconditionally call keep_name_info.
2987 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2989 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2990 scope, clear its command list.
2991 (map_breakpoint_numbers): Don't walk the related breakpoints list
2994 2011-05-24 Tom Tromey <tromey@redhat.com>
2996 * MAINTAINERS: Move Jim Blandy to past maintainers.
2998 2011-05-24 Tristan Gingold <gingold@adacore.com>
3000 * symfile.h (enum dwarf2_section_enum): New type.
3001 (dwarf2_get_section_info): New prototype.
3002 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3003 section_name by sect. Use a switch to select the info.
3004 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3005 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3007 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3009 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3010 shared library event breakpoint if there's no execution.
3012 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3014 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3015 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3017 2011-05-23 Tom Tromey <tromey@redhat.com>
3019 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3022 2011-05-23 Doug Evans <dje@google.com>
3024 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3025 entry for RuntimeError to doc string.
3027 2011-05-23 Jerome Guitton <guitton@adacore.com>
3029 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3030 sequence for probing loops.
3032 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3034 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3037 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3039 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3040 zero as the value for %g0 in the register cache.
3041 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3042 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3044 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3046 * infrun.c (proceed): Set previous_inferior_ptid here.
3047 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3048 inferior_ptid, not null_ptid.
3049 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3050 (fetch_inferior_event): Nor here.
3052 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3054 * inf-loop.c (inferior_event_handler): Only output a message if
3057 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3059 * MAINTAINERS: Update my e-mail address.
3061 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3063 * infrun.c (proceed): Switch the inferior event loop to
3064 INF_EXEC_COMPLETE if the target refused to resume from a
3067 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3069 * infcmd.c: Include "inf-loop.h".
3070 (step_once): When stepping into an inline subroutine, pretend the
3071 target has run. If the target can async, switch the inferior
3072 event loop to INF_EXEC_COMPLETE.
3073 * inferior.h (user_visible_resume_ptid): Declare.
3074 * infrun.c (user_visible_resume_ptid): New function, factored out
3077 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3078 that the current thread is running. Merge async and sync
3081 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3083 * infcmd.c (step_1): Simplify synchronous case.
3085 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3087 * tracepoint.c: Include exceptions.h.
3088 (TFILE_PID): Move higher in file.
3089 (tfile_open): Delay pushing the tfile target until we're assured
3090 the tfile header is present in the file. Wrap reading the initial
3091 newline-terminated lines in TRY_CATCH. Pop the target if the
3092 initial setup failed. Add the tfile's thread immediately
3093 aftwards, before any non-essential setup. Don't skip
3094 post_create_inferior if there are no traceframes present in the
3096 (tfile_close): Remove redundant check for null before xfree call.
3097 (tfile_thread_alive): New function.
3098 (init_tfile_ops): Register it as to_thread_alive callback.
3100 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3102 * tracepoint.c (tfile_open): Delete #if 0'd code.
3104 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3106 Fix -readnow for -gdwarf-4 unused type units.
3107 * dwarf2read.c (struct signatured_type): Remove the field offset.
3108 (create_signatured_type_table_from_index): Remove its initialization.
3109 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3110 instead. Add a complaint call.
3111 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3112 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3113 (lookup_signatured_type_at_offset, read_signatured_type)
3114 (write_one_signatured_type): Update the field for per_cu.
3116 2011-05-19 Tom Tromey <tromey@redhat.com>
3118 * python/py-inferior.c (python_inferior_exit): Use
3120 (python_on_resume): Likewise.
3122 2011-05-19 Matt Rice <ratmice@gmail.com>
3124 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3126 2011-05-19 Hui Zhu <teawater@gmail.com>
3128 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3130 2011-05-19 Hui Zhu <teawater@gmail.com>
3132 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3134 2011-05-18 Tom Tromey <tromey@redhat.com>
3136 * dwarf2read.c (dwarf2_add_field): Constify.
3137 * value.c (value_static_field): Constify.
3138 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3140 * ax-gdb.c (gen_static_field): Constify
3142 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3144 * linux-nat.c (kill_callback): Use SIGKILL first.
3146 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3148 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3150 2011-05-18 Tom Tromey <tromey@redhat.com>
3152 * value.c (value_fn_field): Constify.
3153 * symtab.c (gdb_mangle_name): Constify.
3154 * stabsread.c (update_method_name_from_physname): Make 'physname'
3156 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3157 const. Use explicit fputc_filtered loop.
3158 (pascal_type_print_base): Constify.
3159 * p-lang.h (pascal_type_print_method_args): Update.
3160 * linespec.c (add_matching_methods): Constify.
3161 (add_constructors): Likewise.
3162 * jv-typeprint.c (java_type_print_base): Constify.
3163 * gdbtypes.h (struct cplus_struct_type)
3164 <fn_fieldlist.fn_field.physname>: Now const.
3165 * dwarf2read.c (compute_delayed_physnames): Constify.
3166 (dwarf2_add_member_fn): Likewise.
3167 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3169 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3171 * infrun.c (resume): Mention which is the current thread, and its
3172 current PC in debug output.
3173 (prepare_to_proceed): Mention the thread switching in debug
3176 2011-05-18 Tom Tromey <tromey@redhat.com>
3178 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3179 path check. Use xmalloc and cleanups.
3180 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3182 2011-05-17 Tom Tromey <tromey@redhat.com>
3184 * cp-valprint.c (cp_print_value_fields): Catch errors from
3187 2011-05-17 Tom Tromey <tromey@redhat.com>
3189 * dwarf2read.c (dwarf2_get_die_type): Call
3190 get_die_type_at_offset.
3191 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3192 get_base_type function.
3194 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3196 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3199 2011-05-16 Doug Evans <dje@google.com>
3201 * python/py-auto-load.c (source_section_scripts): Mention objfile
3204 2011-05-15 Doug Evans <dje@google.com>
3206 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3207 (try_thread_db_load_from_pdir): Call it. If unable to find
3208 libthread_db in directory of libpthread, see if we're looking at
3209 the separate-debug-info copy.
3211 * python/py-autoload.c (print_script): Print "Missing" instead of
3212 "No" for missing scripts.
3213 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3215 2011-05-13 Doug Evans <dje@google.com>
3217 * ui-file.c (stdio_file_write_async_safe): Add comment.
3219 2011-05-14 Hui Zhu <teawater@gmail.com>
3221 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3223 2011-05-13 Doug Evans <dje@google.com>
3225 Support $pdir and $sdir in libthread-db-search-path.
3226 * NEWS: Mention $sdir,$pdir.
3227 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3228 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3229 (try_thread_db_load_from_sdir): New function.
3230 (try_thread_db_load_from_dir): New function.
3231 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3232 system directories if search of libthread-db-search-path fails,
3233 that is now done via $sdir.
3234 (has_libpthread): New function.
3235 (thread_db_load): Remove search for libthread_db in directory of
3236 libpthread, that is now done via $pdir.
3238 * NEWS: Mention "info auto-load-scripts".
3239 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3240 script_not_found_warning_printed.
3241 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3242 all callers updated. Initialize script_not_found_warning_printed.
3243 (get_auto_load_pspace_data_for_loading): New function.
3244 (maybe_add_script): New function.
3245 (source_section_scripts): Simplify. Only print one warning regardless
3246 of the number of auto-load scripts not found.
3247 (clear_section_scripts): Clear script_not_found_warning_printed.
3248 (auto_load_objfile_script): Record script in hash table.
3249 (count_matching_scripts): New function.
3250 (maybe_print_script): Renamed from maybe_print_section_script, all
3251 callers updated. Rewrite to use ui_out_*.
3252 (info_auto_load_scripts): Renamed from
3253 maintenance_print_section_scripts, all callers updated.
3254 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3255 renamed as "info auto-load-scripts".
3257 2011-05-13 Tom Tromey <tromey@redhat.com>
3259 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3260 (read_sleb128): Likewise.
3262 2011-05-13 Tom Tromey <tromey@redhat.com>
3264 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3267 2011-05-13 Doug Evans <dje@google.com>
3269 * linux-nat.c (debug_linux_nat_async): Delete.
3270 Replace all references to use debug_linux_nat instead.
3271 (show_debug_linux_nat_async): Delete.
3272 (sigchld_handler): Call ui_file_write_async_safe instead of
3274 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3275 * ui-file.c (struct ui_file): New member to_write_async_safe.
3276 (null_file_write_async_safe): New function.
3277 (ui_file_write_async_safe): New function.
3278 (set_ui_file_write_async_safe): New function.
3279 (ui_file_new): Initialize to_write_async_safe.
3280 (stdio_file_write_async_safe): New function.
3281 (struct stdio_file): New member fd.
3282 (stdio_file_new): Initialize to_write_async_safe, fd.
3283 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3285 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3286 (set_ui_file_write_async_safe): Declare.
3287 (ui_file_write_async_safe): Declare.
3289 2011-05-13 Tom Tromey <tromey@redhat.com>
3291 * utils.c (do_value_free): New function.
3292 (make_cleanup_value_free): Likewise.
3293 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3295 (dwarf2_loc_desc_needs_frame): Call
3296 make_cleanup_value_free_to_mark.
3297 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3298 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3300 (new_dwarf_expr_context): Don't call value_mark.
3301 * dwarf2-frame.c (execute_stack_op): Call
3302 make_cleanup_value_free_to_mark.
3303 * defs.h (make_cleanup_value_free): Declare.
3305 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3307 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3308 prepare_execute_command.
3309 * top.c (prepare_execute_command): Return cleanup.
3310 (execute_command): Use cleanup from prepare_execute_command.
3311 * top.h (prepare_execute_command): Change prototype to return
3313 * defs.h (struct value): Add opaque declaration.
3314 (make_cleanup_value_free_to_mark): Add prototype.
3315 * utils.c (do_value_free_to_mark): New function.
3316 (make_cleanup_value_free_to_mark): Likewise.
3318 2011-05-12 Tom Tromey <tromey@redhat.com>
3320 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3321 cast left-hand-side to unsigned.
3323 2011-05-12 Tom Tromey <tromey@redhat.com>
3326 * value.h (value_from_contents): Declare.
3327 * value.c (value_from_contents): New function.
3328 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3329 (dwarf2_get_die_type): New function.
3330 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3331 (allocate_piece_closure): Acquire reference to values.
3332 (read_pieced_value): Update for value-based expressions.
3333 (write_pieced_value): Likewise.
3334 (free_pieced_value_closure): Call value_free as needed.
3335 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3336 Update for value-based expressions.
3337 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3338 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3339 <get_base_type>: New field.
3340 (struct dwarf_expr_piece) <v.value>: Change type.
3341 <v.regno>: New field.
3342 (struct dwarf_expr_context) <mark>: New field.
3343 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3344 (dwarf_expr_pop, dwarf_expr_push): Remove.
3345 (dwarf_expr_push_address): Declare.
3346 * dwarf2expr.c (dwarf_arch_cookie): New global.
3347 (struct dwarf_gdbarch_types): New.
3348 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3350 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3352 (dwarf_expr_push_address): New function.
3353 (dwarf_expr_pop): Now static.
3354 (dwarf_expr_fetch): Change return type.
3355 (dwarf_require_integral): New function.
3356 (dwarf_expr_fetch): Simplify.
3357 (add_piece): Update.
3358 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3360 (execute_stack_op) <sign_ext>: Remove.
3361 Use values for DWARF stack.
3362 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3363 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3365 (_initialize_dwarf2expr): New function.
3366 (add_piece): Update.
3367 (new_dwarf_expr_context): Set new field.
3368 (free_dwarf_expr_context): Call value_free_to_mark.
3369 * dwarf2-frame.c (no_base_type): New function.
3370 (execute_stack_op): Set get_base_type field. Update.
3372 2011-05-12 Tom Tromey <tromey@redhat.com>
3374 * dwarf2read.c (read_common_block): Fix formatting.
3376 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3378 * breakpoint.c (disable_breakpoint): Disable all locations
3379 associated with a tracepoint on target if a trace experiment is
3381 (disable_command): Disable a specific tracepoint location on target if
3382 a trace experiment is running.
3383 (do_enable_breakpoint): Enable all locations associated with a
3384 tracepoint on target if a trace experiment is running.
3385 (enable_command) Enable a specific tracepoint location on target if a
3386 trace experiment is running.
3387 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3388 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3389 to_disable_tracepoint.
3390 * target.h: Add declaration of struct bp_location.
3391 (struct target_ops): Add new functions
3392 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3393 to_disable_tracepoint to target operations.
3394 (target_supports_enable_disable_tracepoint): New macro.
3395 (target_enable_tracepoint): New macro.
3396 (target_disable_tracepoint): New macro.
3397 * remote.c (struct remote_state): Add new field.
3398 (remote_enable_disable_tracepoint_feature): New.
3399 (remote_protocol_features): Add new entry.
3400 (remote_supports_enable_disable_tracepoint): New.
3401 (remote_enable_tracepoint): New.
3402 (remote_disable_tracepoint): New.
3403 (init_remote_ops): Add remote_enable_tracepoint,
3404 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3405 to remote operations.
3406 * tracepoint.c (start_tracing): Allow tracing to start without any
3407 tracepoints enabled with just a warning if they can be re-enabled
3409 * NEWS: Add news item for the new behaviour of the enable and disable
3410 GDB commands when applied to tracepoints.
3411 Add news items for the new remote packets QTEnable and QTDisable.
3413 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3415 * config.in: Regenerate.
3416 * configure: Regenerate.
3417 * configure.ac <--with-system-readline> (for readline_echoing_p):
3419 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3420 (tui_old_rl_echoing_p): ... here.
3421 (tui_setup_io): Rename extern declaration readline_echoing_p to
3422 _rl_echoing_p. Adjust assignments for the both renames.
3424 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3426 * symtab.c (lookup_symtab): Run cleanup before returning.
3428 2011-05-11 Tom Tromey <tromey@redhat.com>
3430 * dwarf2read.c (handle_data_member_location): New function.
3431 (dwarf2_add_field): Use it.
3432 (read_common_block): Likewise.
3434 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3436 Make addrs->SECTINDEX always defined.
3437 * symfile.c (relative_addr_info_to_section_offsets): Check for
3438 SECTINDEX -1, not for zero ADDR.
3439 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3440 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3441 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3444 2011-05-10 Doug Evans <dje@google.com>
3446 * linux-thread-db.c: Whitespace cleanup.
3447 (try_thread_db_load_1): Fix comment.
3449 * linux-thread-db.c (set_libthread_db_search_path): New function.
3450 (_initialize_thread_db): Add setter for libthread-db-search-path.
3452 2011-05-09 Doug Evans <dje@google.com>
3454 * NEWS: Mention --with-iconv-bin.
3455 * configure.ac: New option --with-iconv-bin.
3456 * configure: Regenerate.
3457 * config.in: Regenerate.
3458 * defs.h (relocate_gdb_directory): Declare.
3459 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3460 removed progname parameter, and exported. All callers updated.
3461 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3463 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3464 adding missing call to restore_child_signals_mask.
3466 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3468 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3470 * infrun.c (proceed, start_remote): Adjust.
3471 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3472 and adjust to not handle it.
3473 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3474 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3475 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3476 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3477 * windows-nat.c (do_initial_windows_stuff): Adjust.
3478 * infcmd.c (attach_command): Adjust.
3479 (notice_new_inferior): Adjust.
3481 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3483 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3484 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3485 * spu-tdep.c (op_selb): Use correct value.
3487 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3489 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3490 "parent" parameter to symbol_file_add_from_bfd call.
3492 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3493 Thiago Jung Bauermann <bauerman@br.ibm.com>
3495 Implement support for PowerPC BookE masked watchpoints.
3496 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3498 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3499 method. Initialize to NULL in all existing breakpoint_ops instances.
3500 (struct breakpoint) <hw_wp_mask>: New field.
3501 * breakpoint.c (is_masked_watchpoint): Add prototype.
3502 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3503 breakpoint's breakpoint_ops.works_in_software_mode if available.
3504 (watchpoints_triggered): Handle the case of a hardware masked
3506 (watchpoint_check): Likewise.
3507 (works_in_software_mode_watchpoint): New function.
3508 (insert_masked_watchpoint, remove_masked_watchpoint)
3509 (resources_needed_masked_watchpoint)
3510 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3511 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3512 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3514 (masked_watchpoint_breakpoint_ops): New structure.
3515 (watch_command_1): Check for the existence of the `mask' parameter.
3516 Set b->ops according to the type of hardware watchpoint being created.
3517 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3518 (ppc_linux_remove_mask_watchpoint)
3519 (ppc_linux_masked_watch_num_registers): New functions.
3520 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3521 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3522 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3523 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3524 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3525 (target_masked_watch_num_registers): New functions.
3526 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3527 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3529 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3530 (target_masked_watch_num_registers): Add prototypes.
3532 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3535 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3536 (producer_is_gcc_ge_4_0): New function.
3537 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3538 symtab->language code.
3539 (var_decode_location): Set cu->has_loclist.
3540 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3541 skip. Intialize force_skip from locations_valid. Move the prologue
3542 skipping code into two passes.
3543 * symtab.h (struct symtab): Make the primary field a bitfield. New
3544 field locations_valid.
3546 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3548 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3549 (classify_inner_name): Call cp_lookup_nested_type with
3551 * cp-namespace.c (cp_lookup_nested_type): New variable
3552 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3553 type_name_no_tag_or_error with saved_parent_type.
3554 * dwarf2read.c (load_partial_dies): Read in any children of
3555 DW_TAG_typedef with complaint in such case.
3556 * gdbtypes.c (type_name_no_tag_or_error): New function.
3557 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3558 * valops.c (destructor_name_p): New comment for parameter type. Remove
3559 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3560 * value.h (destructor_name_p): Remove type const.
3562 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3564 * symtab.c (compare_symbol_name): New function.
3565 (completion_list_add_name, expand_partial_symbol_name): Call it,
3566 remove the variable ncmp.
3567 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3570 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3572 Demote to sw watchpoint only in update_watchpoint.
3573 * breakpoint.c (update_watchpoint): Change between software and
3574 hardware watchpoint for all kinds of watchpoints, not just
3575 read/write ones. Determine b->exact value here instead of
3576 in watch_command_1. Error out if there are not enough resources
3577 for a read or access hardware watchpoint.
3578 (watch_command_1): Remove logic of checking whether there are
3579 enough resources available, since update_watchpoint will do that
3580 work now. Don't set b->exact here. Catch exceptions thrown by
3581 update_watchpoint and delete the watchpoint.
3582 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3583 Use target_exact_watchpoints instead.
3584 (delete_breakpoint): Notify observers only if deleted watchpoint
3585 has a breakpoint number assigned to it.
3587 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3589 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3591 2011-05-05 Jerome Guitton <guitton@adacore.com>
3593 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3595 (i386_stack_tramp_frame_unwind): New static global.
3596 (i386_match_pattern): New function, extracted from i386_match_insn.
3597 (i386_match_insn): Use i386_match_pattern.
3598 (i386_match_insn_block): New function.
3599 (i386_tramp_chain_in_reg_insns)
3600 (i386_tramp_chain_on_stack_insns): New static variables.
3601 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3604 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3606 * configure.host (xscale*): Don't handle target.
3607 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3610 2011-05-04 Yao Qi <yao@codesourcery.com>
3612 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3614 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3617 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3618 | * elfread.c (elf_symtab_read): Stop memory leak.
3620 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3622 * nto-tdep.c (nto_target): Replace deprecated call to
3623 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3625 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3627 Fix false GCC warning.
3628 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3630 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3632 * breakpoint.c (update_watchpoint): Move code to change
3633 the enable state of breakpoint from here ...
3634 (do_enable_breakpoint): ... to here.
3636 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3638 * valprint.c (val_print_array_elements): Fixed poor performance
3639 of printing very large arrays with repeat_count_threshold set
3640 to unlimited. New comment.
3642 2011-04-29 Tom Tromey <tromey@redhat.com>
3644 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3645 (mi_parse): Likewise.
3646 * breakpoint.c (break_range_command): Use sizeof char*, not
3648 (create_breakpoint): Likewise.
3649 (parse_breakpoint_sals): Likewise.
3651 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3653 * linux-nat.c (linux_child_remove_fork_catchpoint)
3654 (linux_child_remove_vfork_catchpoint)
3655 (linux_child_remove_exec_catchpoint): New functions.
3656 (linux_target_install_ops): Install them.
3658 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3662 * varobj.c (install_default_visualizer): Do not install a
3663 visualizer if the varobj is CPLUS_FAKE_CHILD.
3664 (construct_visualizer): Likewise.
3666 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3668 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3669 case insensitive comparison.
3671 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3673 * infrun.c (proceed): Revert previous change.
3674 (resume): Instead, handle the case of signal delivery while stepping
3675 off a breakpoint location here, and only if software single-stepping
3676 is used. Handle nested signals.
3678 2011-04-28 Yao Qi <yao@codesourcery.com>
3680 * arm-tdep.c (copy_unmodified): Rename to ...
3681 (arm_copy_unmodified): .. this. New.
3682 (copy_preload): Move common part to ...
3683 (install_preload): .. this. New.
3684 (arm_copy_preload): New.
3685 (copy_preload_reg): Move common part to ...
3686 (install_preload_reg): ... this. New.
3687 (arm_copy_preload_reg): New.
3688 (copy_b_bl_blx): Move common part to ...
3689 (install_b_bl_blx): .. this. New.
3690 (arm_copy_b_bl_blx): New.
3691 (copy_bx_blx_reg): Move common part to ...
3692 (install_bx_blx_reg): ... this. New.
3693 (arm_copy_bx_blx_reg): New.
3694 (copy_alu_reg): Move common part to ...
3695 (install_alu_reg): ... this. New.
3696 (arm_copy_alu_reg): New.
3697 (copy_alu_shifted_reg): Move common part to ...
3698 (install_alu_shifted_reg): ... this. New.
3699 (copy_ldr_str_ldrb_strb): Move common part to ...
3700 (install_ldr_str_ldrb_strb): ... this. New.
3701 (arm_copy_ldr_str_ldrb_strb): New.
3702 (copy_copro_load_store): Move some common part to ...
3703 (install_copy_copro_load_store): ... this. New.
3704 (arm_copy_copro_load_store): New.
3706 (arm_copy_svc): Renamed from copy_svc.
3707 (copy_undef): Delete.
3708 (arm_copy_undef): Renamed from copy_undef.
3709 (decode_ext_reg_ld_st): Delete.
3710 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3711 (decode_svc_copro): Delete.
3712 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3713 (copy_copro_load_store, copy_alu_imm): update callers.
3714 (copy_extra_ld_st, copy_block_xfer): Likewise.
3715 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3716 (decode_miscellaneous, decode_dp_misc): Likewise.
3717 (decode_ld_st_word_ubyte, decode_media): Likewise.
3718 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3719 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3720 (decode_unconditional, decode_miscellaneous): Likewise.
3721 (decode_media, decode_b_bl_ldmstm): Likewise.
3722 (arm_process_displaced_insn): Likewise..
3723 (decode_misc_memhint_neon): Delete.
3724 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3725 (decode_miscellaneous): Delete.
3726 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3727 (decode_dp_misc): Delete.
3728 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3729 (decode_ld_st_word_ubyte): Delete.
3730 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3731 (decode_media): Delete.
3732 (arm_decode_media): Renamed from decode_media.
3733 (decode_b_bl_ldmstm): Delete.
3734 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3735 (decode_ext_reg_ld_st): Delete.
3736 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3737 (decode_unconditional): Delete.
3738 (arm_decode_unconditional): Renamed from decode_unconditional.
3740 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3742 Case insensitive lookups implementation.
3743 * dwarf2read.c: Include ctype.h.
3744 (struct mapped_index): New field version.
3745 (mapped_index_string_hash): New parameter index_version. New comment
3746 for it. Call tolower appropriately.
3747 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3748 Choose the right index version for mapped_index_string_hash.
3749 (dwarf2_read_index): Support also the index version 5. Initialize the
3750 new struct mapped_index field version.
3751 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3752 (find_slot): Explain the version needs. Pass INT_MAX for the new
3754 (write_psymtabs_to_index): Produce version 5.
3755 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3756 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3757 * psymtab.c (lookup_partial_symbol): Find the
3758 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3760 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3762 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3763 (completion_list_add_name): New variable ncmp, initialize it, use it.
3764 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3765 * utils.c (strcmp_iw): Support case_sensitive_off.
3766 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3767 New function comment part. New variables saved_string1,
3768 saved_string2 and case_pass. Add a proper second pass.
3770 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3772 Replace re_comp/re_exec by regcomp/regexec.
3773 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3774 (search_symbols_name_matches): Use them, use regexec.
3775 (search_symbols): New variable retval_chain, adjust the use of
3776 old_chain against it. Replace re_comp by regcomp. Use the new struct
3777 search_symbols_data fields, use regexec instead of re_exec.
3779 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3781 Format the code for the next patch.
3782 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3783 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3784 New variables c1 and c2.
3786 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3788 * infrun.c (proceed): Do not single-step into signal delivery
3789 when stepping off a breakpoint location.
3790 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3791 (insert_step_resume_breakpoint_at_caller): Likewise.
3792 (insert_step_resume_breakpoint_at_sal): Likewise.
3793 (insert_longjmp_resume_breakpoint): Likewise.
3795 2011-04-27 Yao Qi <yao@codesourcery.com>
3797 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3799 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3801 * procfs.c (procfs_pass_signals): Fix advance declaration.
3803 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3805 * target.h (struct target_ops): Remove to_notice_signals;
3806 add to_pass_signals.
3807 (target_notice_signals): Remove.
3808 (target_pass_signals): Add prototype.
3809 * target.c (update_current_target): Remove to_notice_signals;
3810 mention to_pass_signals.
3811 (target_pass_signals): New function.
3812 (debug_to_notice_signals): Remove.
3813 (setup_target_debug): Do not install debug_to_notice_signals.
3815 * infrun.c (signal_pass): New global.
3816 (resume): Call target_pass_signals.
3817 (handle_inferior_event): Report all signals while stepping over
3818 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3819 are re-inserted when stepping over a signal handler.
3820 (signal_cache_update): New function.
3821 (signal_stop_update): Call it.
3822 (signal_print_update): Likewise.
3823 (signal_pass_update): Likewise.
3824 (handle_command): Call signal_cache_update and target_pass_signals
3825 instead of target_notice_signals.
3826 (_initialize_infrun): Initialize signal_pass.
3828 * linux-nat.c (pass_mask): New global.
3829 (linux_nat_pass_signals): New function.
3830 (linux_nat_create_inferior): Report all signals initially.
3831 (linux_nat_attach): Likewise.
3832 (linux_nat_resume): Use pass_mask to decide whether to directly
3833 handle an inferior signal.
3834 (linux_nat_wait_1): Likewise.
3835 (linux_nat_add_target): Install to_pass_signals callback.
3837 * nto-procfs.c (notice_signals): Remove.
3838 (procfs_resume): Do not call notice_signals.
3839 (procfs_notice_signals): Remove.
3840 (procfs_pass_signals): New function.
3841 (init_procfs_ops): Install to_pass_signals callback instead of
3842 to_notice_signals callback.
3843 (_initialize_procfs): Report all signals initially.
3845 * procfs.c (procfs_notice_signals): Remove.
3846 (procfs_pass_signals): New function.
3847 (procfs_target): Install to_pass_signals callback instead of
3848 to_notice_signals callback.
3849 (register_gdb_signals): Remove.
3850 (procfs_debug_inferior): Report all signals initially.
3851 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3853 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3854 parameters; use them instead of calling signal_..._state routines.
3855 (remote_notice_signals): Remove.
3856 (remote_start_remote): Report all signals initially.
3857 (remote_resume): Do not call remote_pass_signals.
3858 (_initialize_remote): Install to_pass_signals callback instead of
3859 to_notice_signals callback.
3861 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3863 * breakpoint.c (user_settable_breakpoint): Delete.
3864 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3865 (delete_command): Check user_breakpoint_p instead of looking at
3866 the breakpoint's type.
3867 (disable_command): Ditto.
3868 (enable_command): Ditto.
3869 (delete_trace_command): Use user_breakpoint_p instead of looking
3870 at the breakpoint number directly. When checking if there are
3871 user visible tracepoints, in order to know whether to ask the user
3872 for confirmation, check whether the breakpoint is actually a
3875 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3877 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3880 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3882 MI breakpoint notifications.
3884 * annotate.c (breakpoint_changed): Adjust parameter type.
3885 * breakpoint.c (set_breakpoint_condition): Adjust to change
3886 in breakpoint_modified type.
3887 (breakpoint_set_commands): Likewise.
3888 (do_map_commands_command): Likewise.
3889 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3890 changed after bumping hit count.
3891 (bpstat_stop_status): Likewise.
3892 (print_one_breakpoint_location): Don't wrap in tuple here.
3893 (print_one_breakpoint): Always print individual locations.
3894 For locations, use unnamed tuple.
3895 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3897 (create_catchpoint, create_syscall_event_catchpoint): Call
3898 breakpoint_created obsever.
3899 (mention): Don't call breakpoint_created observer.
3900 (create_breakpoint_sal): Call breakpoint_created observer.
3901 (create_breakpoint, watch_command_1): Likewise.
3902 (create_ada_exception_breakpoint): Likewise.
3903 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3904 (locations_are_equal): New.
3905 (update_breakpoint_locations): If locations were changed, notify.
3906 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3907 Call breakpoint_modified observer.
3909 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3910 (mi_cmd_break_insert): Don't set observers for modify and delete.
3911 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3912 (mi_breakpoint_created, mi_breakpoint_deleted)
3913 (mi_breakpoint_modified): New.
3914 (mi_interpreter_init): Hook the above.
3915 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3916 while -break-* commands are executing.
3917 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3918 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3920 (mi_ui_out_impl): Hook in mi_redirect.
3921 (mi_field_skip): True to the name, skip the field, don't output
3922 a field with an empty value.
3924 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3925 (gdbpy_breakpoint_deleted): Adjust.
3926 * tui/tui-hooks.c (tui_event_create_breakpoint)
3927 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3929 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3931 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3932 (procfs_remove_hw_watchpoint): Likewise.
3934 2011-04-26 Michael Walle <michael@walle.cc>
3936 * remote.c (remote_start_remote): Ack packet after sending the
3939 2011-04-26 Yao Qi <yao@codesourcery.com>
3941 * linux-nat.c: Move common macros to ...
3942 Include linux-ptrace.h.
3943 * common/linux-ptrace.h: ... here. New.
3945 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3947 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3948 !objfile_has_partial_symbols. New comment.
3949 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3950 SYM_READ_PSYMBOLS is not present. Extend the comment.
3951 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3953 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3955 * defs.h (ENUM_BITFIELD): Remove.
3957 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3958 Eli Zaretskii <eliz@gnu.org>
3960 * NEWS: Document the new gdbserver --once option.
3962 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3964 * MAINTAINERS: Update my email address.
3966 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3968 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3969 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3970 function call if __STDC_ISO_10646__ macro is defined.
3971 (intermediate_encoding): New prototype.
3972 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3973 to generate compile time error for unsupported gdb_wchar_t size.
3974 (ENDIAN_SUFFIX): New macro.
3975 (intermediate_encoding): New function.
3977 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3979 * ada-lang.c (struct add_partial_datum): Update the comment for
3980 expand_partial_symbol_name.
3981 (ada_add_partial_symbol_completions): Rename to ...
3982 (ada_expand_partial_symbol_name): ... here, change return type, update
3983 function comment, call symbol_completion_match instead of
3984 symbol_completion_add.
3985 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3986 and ada_expand_partial_symbol_name.
3987 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3989 (dw2_map_symbol_names): Remove.
3990 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3991 * psymtab.c (map_symbol_names_psymtab): Remove.
3992 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3993 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3995 (psym_functions): Unlist map_symbol_names_psymtab.
3996 (map_partial_symbol_names): Rename to ...
3997 (expand_partial_symbol_names): ... here, change the FUN type, call
3998 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3999 * psymtab.h (map_partial_symbol_names): Rename to ...
4000 (expand_partial_symbol_names): ... here, change the FUN type.
4001 * symfile.h (struct quick_symbol_functions): Update the description of
4002 expand_symtabs_matching. Remove map_symbol_names.
4003 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4004 (struct add_name_data): Update the comment for
4005 expand_partial_symbol_name.
4006 (add_partial_symbol_name): Rename to ...
4007 (expand_partial_symbol_name): ... here. Replace
4008 completion_list_add_name call by strncmp.
4009 (default_make_symbol_completion_list_break_on): Use now
4010 expand_partial_symbol_names and expand_partial_symbol_name.
4011 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4013 2011-04-20 Tom Tromey <tromey@redhat.com>
4015 * dwarf2read.c (save_gdb_index_command): Replace format
4016 documentation with a pointer to the manual.
4018 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4020 * regcache.c: Include remote.h.
4021 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4022 (regcache_dump): Handle regcache_dump_remote.
4023 (maintenance_print_remote_registers): New function.
4024 (_initialize_regcache): Install "maint print remote-registers"
4026 * remote.c (map_regcache_remote_table): New function, factored out
4028 (init_remote_state): ... here.
4029 (remote_register_number_and_offset): New.
4030 * remote.h (remote_register_number_and_offset): Declare.
4032 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4034 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4035 null_ptid, assume and allow a NULL address space, instead of
4036 asking the target for the ptid's address space.
4037 * infrun.c (ptid_is_pid): Remove assertion.
4039 2011-04-19 Tom Tromey <tromey@redhat.com>
4041 * windows-tdep.c (windows_xfer_shared_library):
4042 * windows-nat.c (get_module_name, windows_make_so):
4043 * v850-tdep.c (v850_handle_pushm):
4044 * utils.c (null_cleanup, gdb_realpath):
4045 * ui-out.c (get_next_header):
4046 * tracepoint.c (clear_traceframe_info):
4047 * symtab.c (lookup_symtab):
4048 * serial.h (struct serial_ops):
4049 * mipsread.c (read_alphacoff_dynamic_symtab):
4050 * infcmd.c (print_return_value):
4051 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4052 * f-exp.y (parse_number):
4053 * exceptions.c (catch_exceptions):
4054 * dummy-frame.c (dummy_frame_this_id):
4055 * defs.h (struct cleanup):
4056 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4057 * arm-tdep.c (arm_push_dummy_call):
4058 * amd64-tdep.h (amd64_collect_xsave):
4059 * amd64-tdep.c (amd64_collect_xsave):
4060 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4061 * README (typing): Remove duplicate words.
4062 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4063 * infrun.c (siginfo_value_read): Fix typo.
4064 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4065 * top.c (source_line_number): Add comma.
4067 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4069 * thread.c (any_live_thread_of_process): Prioritize threads
4070 that are not executing.
4071 * gdbthread.h (any_live_thread_of_process): Update comment
4072 as per above change.
4074 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4076 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4077 (scan_xcoff_symtab): Likewise.
4079 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4081 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4084 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4085 Pedro Alves <pedro@codesourcery.com>
4087 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4088 variables to simplify code and avoid == operator at end of
4089 line as this is against GNU coding standards.
4091 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4093 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4094 lm_name to name_lm to avoid conflict with lm_name function.
4096 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4098 ARI fixes: Use only lowercase function name for static functions.
4099 * nto-tdep.c (LM_ADDR): Rename to...
4100 (lm_addr): New function name.
4101 (nto_relocate_section_addresses): Adapt to change above.
4102 * solib-sunos.c (LM_ADDR): Rename to...
4103 (lm_addr): New function name.
4104 (LM_NEXT): Rename to...
4105 (lm_next): New function name.
4106 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4107 function name changes above.
4108 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4109 (lm_addr_from_link_map): New function name.
4110 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4111 (has_lm_dynamic_from_link_map): New function name.
4112 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4113 (lm_dynamic_from_link_map): New function name.
4114 (LM_ADDR_CHECK): Rename to...
4115 (lm_addr_check): New function name.
4116 (LM_NEXT): Rename to...
4117 (lm_next): New function name.
4118 (LM_PREV): Rename to...
4119 (lm_prev): New function name.
4120 (LM_NAME): Rename to...
4121 (lm_name): New function name.
4122 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4123 (ignore_first_link_map_entry): New function name.
4124 (svr4_keep_data_in_core): Adapt to function name changes above.
4125 (svr4_current_sos): Likewise.
4126 (enable_break): Likewise.
4127 (svr4_relocate_section_addresses): Likewise.
4129 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4132 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4133 sprintf. Simplify code and avoid loosing memory.
4134 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4135 (call0_frame_cache): Remove && operator from end of line.
4137 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4139 Fix libraries displacement if they change whether they were prelinked.
4140 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4141 does not match. Comment why.
4143 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4145 * corelow.c: Include wrapper.h.
4146 (core_open): Call now gdb_target_find_new_threads.
4147 * wrapper.c: Include target.h.
4148 (gdb_target_find_new_threads): New.
4149 * wrapper.h (gdb_target_find_new_threads): New declaration.
4151 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4153 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4154 even if !TARGET_HAS_EXECUTION.
4156 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4158 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4159 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4160 bfd_get_synthetic_symtab.
4161 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4162 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4163 parameter parent, remove the call to add_separate_debug_objfile.
4164 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4165 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4166 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4167 parent, new comment for it, call add_separate_debug_objfile for it.
4168 (symbol_file_add_separate): Pass objfile as the parameter parent,
4169 remove the call to add_separate_debug_objfile.
4170 (symbol_file_add_from_bfd): New parameter parent, pass it.
4171 (symbol_file_add): Pass NULL to the new parameter parent.
4172 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4174 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4176 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4179 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4181 Fix Python access to inlined frames.
4182 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4183 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4185 2011-04-15 Tom Tromey <tromey@redhat.com>
4187 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4189 2011-04-15 Gary Benson <gbenson@redhat.com>
4191 * MAINTAINERS: Add myself to write-after-approval section.
4193 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4195 * remote-sim.c (sim_command_completer): New function.
4196 (_initialize_remote_sim): Set completer to sim_command_completer.
4198 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4200 * breakpoint.c (print_exception_catchpoint): Rename to ...
4201 (print_it_exception_catchpoint): ... this.
4202 (gnu_v3_exception_catchpoint_ops): Update with new name
4203 for print_it_exception_catchpoint.
4205 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4207 * MAINTAINERS: Add myself for write after approval privileges.
4209 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4211 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4213 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4215 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4217 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4219 * breakpoint.c (save_breakpoints): Verify whether
4220 breakpoint_ops.print_recreate is defined before calling it.
4222 2011-04-11 Gary Benson <gbenson@redhat.com>
4224 Fix failure with --enable-maintainer-mode.
4225 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4227 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4230 * symtab.c (search_symbols): Reorder the KIND description in the
4231 function comment. Remove the unused 4th element of types, types2,
4232 types3 and types4. New gdb_assert on KIND.
4233 (symtab_symbol_info): Remove the unused 4th element of classnames.
4234 New gdb_assert on KIND.
4235 * symtab.h (enum search_domain): New warning in the enum comment.
4236 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4239 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4241 Fix crash of gdb save-index on a STABS file.
4242 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4245 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4247 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4248 * dwarf2read.c: Include ctype.h.
4249 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4251 (dwarf2_add_field): Fix new_field->accessibility by calling
4252 dwarf2_default_access_attribute. Restructure setting accessibility
4254 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4255 is_private and is_protected by calling
4256 dwarf2_default_access_attribute.
4258 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4260 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4261 to the initialization.
4263 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4265 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4268 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4270 Remove support for old Cygwin 1.5 versions.
4271 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4272 function on old Cygwin version.
4273 * windows-nat.c: Remove cygwin version check and always define
4274 __USEWIDE for Cygwin compilation.
4276 2011-04-07 Yao Qi <yao@codesourcery.com>
4278 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4280 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4281 (arm_copy_svc): Remove parameters INSN and TO.
4282 (decode_svc_copro): Update caller.
4283 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4284 from function pointer `copy_svc_os'.
4286 2011-04-07 Yao Qi <yao@codesourcery.com>
4288 * arm-tdep.c (cleanup_branch): Set a correct return address in
4289 LR for ARM and Thumb.
4291 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4294 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4295 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4296 in the function comment, a new note on values compatibility.
4297 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4298 * symtab.h (SYMBOL_HASH_NEXT): New.
4300 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4302 * ppc-linux-nat.c (check_condition): Add len output parameter.
4303 Set it based on the memory region referenced in the condition
4304 expression. Update all callers.
4306 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4308 Fix crash regression on systems featuring .gdb_index.
4309 * objfiles.c (free_objfile): Move the
4310 forget_cached_source_info_for_objfile call earlier. Comment it.
4311 Extend the comment for objfile_free_data.
4313 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4315 Fix regression of displaying the debug format.
4316 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4319 2011-04-04 Tom Tromey <tromey@redhat.com>
4321 * cli/cli-interp.c (struct captured_execute_command_args):
4323 (do_captured_execute_command): Remove.
4324 (safe_execute_command): Use TRY_CATCH.
4325 * cli/cli-script.c (struct wrapped_read_command_file_args):
4327 (wrapped_read_command_file): Remove.
4328 (script_from_file): Use TRY_CATCH.
4329 * exceptions.c (catch_exception): Remove.
4330 * exceptions.h (catch_exception): Remove.
4331 (deprecated_throw_reason): Update comment.
4332 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4333 argument to 'context'.
4334 (mi_execute_command): Use TRY_CATCH.
4335 * remote.c (struct start_remote_args): Remove.
4336 (remote_start_remote): Update; change arguments.
4337 (remote_open_1): Use TRY_CATCH.
4339 2011-04-04 Tom Tromey <tromey@redhat.com>
4341 * tracepoint.c (scope_info): Update.
4342 * symtab.c (decode_line_spec): Update.
4343 * python/python.c (gdbpy_decode_line): Update.
4344 * linespec.h (decode_line_1): Update.
4345 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4346 (decode_compound, find_method, symtab_from_filename)
4347 (decode_variable): Likewise.
4348 * cli/cli-cmds.c (edit_command): Update.
4349 (list_command): Update.
4350 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4352 (create_breakpoint): Update.
4353 (until_break_command): Update.
4354 (addr_string_to_sals): Update.
4355 (decode_line_spec_1): Update.
4357 2011-04-04 Tom Tromey <tromey@redhat.com>
4359 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4360 (do_captured_parse_breakpoint): Remove.
4361 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4362 Use TRY_CATCH directly.
4364 2011-04-04 Tom Tromey <tromey@redhat.com>
4366 * symtab.h (free_symtab): Remove.
4367 (forget_cached_source_info_for_objfile): Declare.
4368 * symmisc.c (free_symtab): Remove.
4369 * source.c (forget_cached_source_info_for_objfile): New function.
4370 (forget_cached_source_info): Use it.
4371 * objfiles.c (free_objfile): Simplify check before calling
4372 clear_current_source_symtab_and_line. Call
4373 forget_cached_source_info_for_objfile.
4375 2011-04-04 Tom Tromey <tromey@redhat.com>
4377 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4378 (new_symtab): Don't set `free_code' on symtab.
4379 (new_linetable): Properly handle size==0.
4380 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4381 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4383 * jv-lang.c (struct jv_per_objfile_data): New.
4384 (jv_per_objfile_free): Free the data.
4385 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4386 (get_java_class_symtab): Set the `dict' field on the
4387 jv_per_objfile_data.
4388 (free_class_block): Remove.
4389 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4392 2011-04-04 Tom Tromey <tromey@redhat.com>
4394 * symfile.c (reread_symbols): Update.
4395 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4397 * objfiles.c (allocate_objfile): Update.
4398 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4400 * cp-namespace.c (lookup_symbol_file): Don't call
4401 lookup_possible_namespace_symbol.
4402 (initialize_namespace_symtab, get_possible_namespace_block)
4403 (free_namespace_block, cp_check_possible_namespace_symbols)
4404 (check_possible_namespace_symbols_loop)
4405 (check_one_possible_namespace_symbol)
4406 (lookup_possible_namespace_symbol): Remove.
4407 (maintenance_cplus_namespace): Replace with notice.
4408 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4410 2011-04-04 Tom Tromey <tromey@redhat.com>
4412 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4413 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4414 * symmisc.c (free_symtab): Don't free debugformat.
4415 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4416 (record_debugformat, record_producer): Document.
4417 * buildsym.c (end_symtab): Don't save debugformat and producer
4419 (end_symtab): Don't free debugformat and producer fields.
4420 (record_debugformat): Don't call xstrdup.
4421 (record_producer): Likewise.
4423 2011-04-04 Tom Tromey <tromey@redhat.com>
4425 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4426 (source_line_charpos, source_charpos_line): Remove.
4428 2011-04-04 Tom Tromey <tromey@redhat.com>
4430 * symtab.h (domain_enum): Split in two...
4431 (enum search_domain): New.
4432 (search_symbols): Update.
4433 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4434 redundant declarations.
4435 (search_symbols): Change 'kind' argument to search_domain.
4437 (print_symbol_info): Likewise.
4438 (symtab_symbol_info): Likewise.
4439 * symfile.h (struct quick_symbol_functions)
4440 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4441 <expand_symtabs_matching>: Likewise.
4442 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4443 (expand_symtabs_matching_via_partial): Update.
4444 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4445 (dw2_expand_symtabs_for_function): Update.
4446 * block.h: Moved anonymous enum...
4447 * defs.h (enum block_enum): ... here. Now named.
4449 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4451 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4452 * version.in: Bump version to 7.3.50.20110403-cvs.
4454 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4456 * NEWS: Create a new section for the next release branch.
4457 Rename the section of the current branch, now that it has
4460 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4462 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4463 for "fpscr" in target description.
4465 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4467 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4468 initialize it. Delay HASH initialization. Strip the part after open
4469 parenthesis for languages with qualifiers. Call do_cleanups.
4471 2011-04-01 Tom Tromey <tromey@redhat.com>
4473 * utils.c (report_command_stats): Don't print `-' for negative
4476 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4478 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4479 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4482 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4484 * breakpoint.h (bpdisp_text): Add declaration.
4485 * breakpoint.c (bpdisp_text): Make non-static.
4486 * ada-lang.c: #include "mi/mi-common.h".
4487 (print_it_exception): Rewrite to improve GDB/MI output.
4489 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4491 * arm-tdep.h (struct address_space): Add forward declaration.
4493 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4495 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4496 * arm-tdep.c (arm_override_mode): New global.
4497 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4498 execution mode heuristics.
4499 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4500 second single-step breakpoint if needed, using
4501 arm_insert_single_step_breakpoint.
4502 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4503 ARM execution mode, do not call thumb_get_next_pc_raw.
4504 (arm_get_next_pc): Encode execution mode in return value. Call
4505 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4506 (arm_insert_single_step_breakpoint): New function.
4507 (arm_software_single_step): Call it.
4508 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4509 argument to return execution mode of sigreturn target.
4510 (arm_linux_syscall_next_pc): Use it.
4511 (arm_linux_copy_svc): Update call.
4512 (arm_linux_software_single_step): Call
4513 arm_insert_single_step_breakpoint.
4515 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4517 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4520 2011-03-31 Tom Tromey <tromey@redhat.com>
4522 * varobj.c (update_dynamic_varobj_children): Properly handle
4523 errors from iterator.
4525 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4527 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4528 struct linkage name twice.
4530 2011-03-31 Tom Tromey <tromey@redhat.com>
4532 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4533 missing ">" to message.
4535 2011-03-31 Tom Tromey <tromey@redhat.com>
4537 * varobj.c (instantiate_pretty_printer): Remove duplicate
4540 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4542 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4543 if neither saved value nor register available (e.g. signal frame).
4545 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4547 * macroexp.c (expand): Avoid uninitialized variable
4550 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4552 * breakpoint.c (break_range_command): Fix typo in comment.
4554 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4555 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4557 Implement support for PowerPC BookE ranged breakpoints.
4558 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4559 * breakpoint.h (struct bp_target_info) <length>: New member
4561 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4562 instead of struct breakpoint as argument, and also add ASPACE
4563 and BP_ADDR arguments. Update all callers.
4564 (struct breakpoint_ops) <print_one_detail>: New method.
4565 (struct breakpoint) <addr_string_range_end>: New member variable.
4566 * breakpoint.c (breakpoint_location_address_match): Add function
4568 (insert_bp_location): Set bl->target_info.length.
4569 (breakpoint_here_p): Call breakpoint_location_address_match.
4570 (moribund_breakpoint_here_p): Likewise.
4571 (regular_breakpoint_inserted_here_p): Likewise.
4572 (breakpoint_thread_match): Likewise.
4573 (bpstat_stop_status): Likewise.
4574 (bpstat_check_location): Move call to
4575 breakpoint_ops.breakpoint_hit to the top.
4576 (print_one_breakpoint_location): Call
4577 breakpoint_ops.print_one_detail if available.
4578 (breakpoint_address_match_range): New function.
4579 (breakpoint_location_address_match): Likewise.
4580 (breakpoint_locations_match): Compare the length field of the
4582 (hw_breakpoint_used_count): Count resources used by all locations
4583 in a breakpoint, and use breakpoint_ops.resources_needed if
4585 (breakpoint_hit_ranged_breakpoint): New function.
4586 (resources_needed_ranged_breakpoint): Likewise.
4587 (print_it_ranged_breakpoint): Likewise.
4588 (print_one_ranged_breakpoint): Likewise.
4589 (print_one_detail_ranged_breakpoint): Likewise.
4590 (print_mention_ranged_breakpoint): Likewise.
4591 (print_recreate_ranged_breakpoint): Likewise.
4592 (ranged_breakpoint_ops): New structure.
4593 (find_breakpoint_range_end): New function.
4594 (break_range_command): Likewise.
4595 (delete_breakpoint): Free addr_string_range_end.
4596 (update_breakpoint_locations): Add SALS_END argument. Update
4597 all callers. Calculate breakpoint length if a non-zero SALS_END
4598 is given. Call breakpoint_locations_match instead of
4599 breakpoint_address_match.
4600 (reset_breakpoint): Find SaL of the end of the range if B is a
4602 (_initialize_breakpoint): Register break-range command.
4603 * defs.h (print_core_address): Add function prototype.
4604 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4606 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4607 (ppc_linux_remove_hw_breakpoint): Likewise.
4608 (_initialize_ppc_linux_nat): Initialize
4609 to_ranged_break_num_registers.
4610 * target.c (update_current_target): Add comment about
4611 to_ranged_break_num_registers.
4612 (target_ranged_break_num_registers): New function.
4613 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4615 (target_ranged_break_num_registers): Add function prototype.
4616 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4617 * utils.c (print_core_address): ... here.
4619 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4621 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4622 variable compiler warning.
4624 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4626 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4628 (re_set_breakpoint): ... to here ...
4629 (addr_string_to_sals): ... and here.
4631 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4633 * Makefile.in (SFILES): Add missing C sources.
4634 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4635 Add missing headers.
4637 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4639 * .gitignore: New file.
4641 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4643 * NEWS: Mention new cfi device simulation.
4645 2011-03-29 Tom Tromey <tromey@redhat.com>
4647 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4648 otherwise anonymous types.
4649 (dwarf2_name): Likewise.
4650 * valops.c (value_struct_elt_for_reference): Refine artificial
4651 type logic. Call error if j==-1.
4653 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4655 Fix false GCC warning.
4656 * infcall.c (find_function_addr): Initialize funaddr.
4658 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4660 Fix mingw compilation with --enable-targets=all.
4661 * remote-mips.c (gdb_usleep.h): Include header.
4662 (mips_enter_debug): Use gdb_usleep instead of sleep.
4664 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4666 Support resolution of STT_GNU_IFUNC via breakpoints.
4667 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4668 bp_gnu_ifunc_resolver_return.
4669 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4670 the loop. Support bp_gnu_ifunc_resolver and
4671 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4672 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4674 (bptype_string, print_one_breakpoint_location): Support
4675 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4676 (user_settable_breakpoint): Return true also for
4677 bp_gnu_ifunc_resolver.
4678 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4679 bp_gnu_ifunc_resolver_return.
4680 (set_breakpoint_location_function): New parameter explicit_loc,
4681 describe it. Call find_pc_partial_function_gnu_ifunc with new
4682 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4683 EXPLICIT_LOC is not set.
4684 (set_raw_breakpoint): Set EXPLICIT_LOC for
4685 set_breakpoint_location_function.
4686 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4687 set_breakpoint_location_function.
4688 (mention): Support bp_gnu_ifunc_resolver and
4689 bp_gnu_ifunc_resolver_return.
4690 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4691 set_breakpoint_location_function.
4692 (update_breakpoint_locations): Remove static.
4693 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4694 bp_gnu_ifunc_resolver_return.
4695 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4696 bp_gnu_ifunc_resolver_return.
4697 (update_breakpoint_locations): New declaration.
4698 * elfread.c: Include gdbthread.h and regcache.h.
4699 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4701 (elf_gnu_ifunc_fns): Install them.
4702 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4703 (stub_gnu_ifunc_resolver_return_stop): New functions.
4704 (stub_gnu_ifunc_fns): Install them.
4705 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4706 and gnu_ifunc_resolver_return_stop.
4707 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4709 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4711 STT_GNU_IFUNC reader implementation.
4712 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4713 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4714 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4715 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4716 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4717 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4718 (elf_gnu_ifunc_resolve_addr): New.
4719 (elf_symfile_read): Call elf_rel_plt_read.
4720 (elf_gnu_ifunc_fns): New.
4721 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4722 Install elf_gnu_ifunc_fns.
4723 * infcall.c (find_function_return_type): New function.
4724 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4725 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4726 (stub_gnu_ifunc_resolve_name): New functions.
4727 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4728 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4729 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4731 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4733 Code cleanup for later STT_GNU_IFUNC support.
4734 * infcall.c (find_function_addr): Remove variable code, use explicit
4735 dereferences for it. Move VALUE_TYPE initialization later.
4737 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4739 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4740 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4741 (clear_pc_function_cache): Clear it.
4742 (find_pc_partial_function): Rename to ...
4743 (find_pc_partial_function_gnu_ifunc): ... this function. New
4744 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4745 (find_pc_partial_function): New wrapper for this function.
4746 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4748 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4750 GDB internal type support for STT_GNU_IFUNC.
4751 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4752 (elf_symtab_read): Set mst_text_gnu_ifunc for
4753 BSF_GNU_INDIRECT_FUNCTION.
4754 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4755 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4756 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4757 nodebug_got_plt_symbol.
4758 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4759 (TYPE_GNU_IFUNC): New.
4760 (struct main_type): New field flag_gnu_ifunc.
4761 (struct builtin_type): New field builtin_func_func.
4762 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4763 nodebug_got_plt_symbol.
4764 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4765 (in_gnu_ifunc_stub): New.
4766 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4768 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4769 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4770 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4772 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4773 * symtab.c (search_symbols): Likewise.
4774 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4775 and mst_slot_got_plt.
4776 (in_gnu_ifunc_stub): New declaration.
4778 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4780 Support a ring of related breakpoints.
4781 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4782 other functions, add gdb_assert.
4783 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4784 watchpoint_del_at_next_stop.
4785 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4786 (bpstat_stop_status): Handle ring in related_breakpoint.
4787 (set_raw_breakpoint_without_location): Initialize ring in
4789 (delete_breakpoint): Handle ring in related_breakpoint, use
4790 watchpoint_del_at_next_stop.
4791 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4793 2011-03-28 Tom Tromey <tromey@redhat.com>
4796 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4797 with `language_minimal'.
4799 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4801 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4802 instead of checking for STT_ARM_TFUNC symbol type.
4804 2011-03-25 Tom Tromey <tromey@redhat.com>
4806 * linespec.c (symbol_found): Restore line-based result for
4807 non-LOC_LABEL symbols.
4809 2011-03-25 Kai Tietz <ktietz@redhat.com>
4811 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4812 instead of strcmp for comparison.
4813 (tui_source_is_displayed): Likewise.
4814 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4816 2011-03-24 Mark Wielaard <mjw@redhat.com>
4818 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4820 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4821 (find_partial_die_in_comp_unit): Likewise in comment.
4822 (read_attribute_value): Likewise.
4823 (lookup_die_type): Likewise.
4824 (dwarf_form_name): Likewise.
4825 (dump_die_shallow): Likewise.
4826 (follow_die_ref_or_sig): Likewise.
4828 2011-03-24 Tom Tromey <tromey@redhat.com>
4830 PR breakpoints/11816:
4831 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4832 (decode_compound): Update.
4833 (find_function_symbol): New function.
4834 (decode_dollar): Update.
4835 (decode_label): Add 'function_symbol' parameter. Handle
4836 function-relative labels.
4837 (decode_variable): Update.
4838 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4839 not its line. Set `special_display' and canonical name for
4842 2011-03-24 Tom Tromey <tromey@redhat.com>
4844 * linespec.h (struct linespec_result) <special_display>: New
4846 * breakpoint.h (struct breakpoint) <display_canonical>: New
4848 * breakpoint.c (print_breakpoint_location): Respect
4850 (create_breakpoint_sal): Add 'display_canonical' parameter.
4851 (create_breakpoints_sal): Update.
4852 (create_breakpoint): Update.
4854 2011-03-24 Tom Tromey <tromey@redhat.com>
4856 * symtab.c (decode_line_spec): Update.
4857 * linespec.c (build_canonical_line_spec): Change type of
4859 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4860 (find_method, decode_all_digits, decode_dollar, decode_label)
4861 (symbol_found): Likewise.
4862 (init_linespec_result): New function.
4863 * breakpoint.c (struct captured_parse_breakpoint_args)
4864 <canonical_p>: New field, replaces addr_string_p.
4865 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4867 (parse_breakpoint_sals): Likewise.
4868 (do_captured_parse_breakpoint): Update.
4869 (create_breakpoint): Use struct linespec_result.
4870 (until_break_command): Update.
4871 (breakpoint_re_set_one): Update.
4872 (decode_line_spec_1): Update.
4873 * linespec.h (struct linespec_result): New.
4874 (init_linespec_result): Declare.
4876 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4878 * regcache.c (regcache_raw_read): If the target didn't supply a
4879 given raw register, mark it as unavailable.
4881 2011-03-23 Kai Tietz <ktietz@redhat.com>
4883 * breakpoint.c (clear_command): Use filename_cmp
4884 instead of strcmp for comparison.
4885 * buildsym.c (watch_main_source_file_lossage): Likewise.
4886 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4887 checking just for slash.
4888 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4889 strrchr and filename_cmp instead of strcmp for filenames.
4890 (add_old_header_file): Use filename_cmp
4891 instead of strcmp for comparison.
4892 * exec.c (exec_set_section_address): Likewise.
4893 * macrotab.c (macro_lookup_inclusion): Likewise.
4894 (macro_lookup_inclusion): Likewise.
4895 * elfread.c (_initialize_elfread): Likewise.
4896 (elfstab_offset_sections): Likewise.
4897 (elfstab_offset_sections): Use lbasename instead of
4899 * mdebugread.c (parse_partial_symbols): Likewise.
4900 (arse_partial_symbols): Use filename_(n)cmp instead of
4901 str(n)cmp for comparison.
4902 * minsyms.c (lookup_minimal_symbol): Likewise.
4903 * psymtab.c (read_psymtabs_with_filename): Likewise.
4904 * solib.c (solib_read_symbols): Likewise.
4905 (reload_shared_libraries_1): Likewise.
4906 * symmisc.c (maintenance_print_symbols): Likewise.
4907 * symfile.c (separate_debug_file_exists): Likewise.
4908 (reread_symbols): Likewise.
4909 (find_separate_debug_file_by_debuglink): Likewise.
4910 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4911 * source.c (add_path): Likewise.
4912 * symtab.c (filename_seen): Likewise.
4913 (file_matches): Likewise.
4914 (print_symbol_info): Likewise.
4915 (maybe_add_partial_symtab_filename): Likewise.
4916 (make_source_files_completion_list): Likewise.
4917 * xml-syscall.c (init_sysinfo): Likewise.
4918 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4919 IS_DIR_SEPARATOR for checking for trailing path separator.
4921 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4923 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4924 label abort_expression.
4925 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4926 DWARF_VALUE_OPTIMIZED_OUT.
4928 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4931 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4932 to linkage_name. Invert its value. Update the function comment.
4933 (c_type_print_varspec_suffix): Invert it at the caller.
4934 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4936 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4938 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4939 errors when reading the `stop_pc'.
4940 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4943 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4945 * NEWS: Document gdb.Write stream keyword.
4947 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4950 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4951 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4952 (dwarf2_add_field): Fix new_field->accessibility for
4953 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4955 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4959 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4960 other error classes. Do not print stack trace.
4962 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4964 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4965 (dwarf2_add_field): Fix new_field->accessibility for
4966 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4968 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4970 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4971 encountering a load via a non-SP register.
4973 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4975 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4976 field in returned unwinder.
4978 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4980 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4982 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4984 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4987 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4989 * frame.c (frame_unwind_register): Throw an error if unwinding the
4991 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4992 an unwind stop reason.
4993 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4994 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4995 UNWIND_UNAVAILABLE>: New.
4996 * inline-frame.c (inline_frame_unwind): Install
4997 default_frame_unwind_stop_reason.
4998 * frame-unwind.c: Include "exceptions.h".
4999 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5000 (default_frame_unwind_stop_reason): New.
5001 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5002 (default_frame_unwind_stop_reason): Declare.
5003 (struct frame_unwind) <stop_reason>: New function pointer.
5005 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5006 * dwarf2-frame.c: Include exceptions.h.
5007 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5008 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5009 computing the CFA. If such an error was thrown, set
5010 unavailable_retaddr.
5011 (dwarf2_frame_unwind_stop_reason): New.
5012 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5014 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5015 (dwarf2_signal_frame_unwind): Ditto.
5017 * amd64-tdep.c: Include "exceptions.h".
5018 (struct amd64_frame_cache): New field "base_p".
5019 (amd64_init_frame_cache): Clear it.
5020 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5021 Avoid reading registers with functions that throw if the register
5022 is not necessary to compute the frame base.
5023 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5024 swallowing NOT_AVAILABLE_ERROR.
5025 (amd64_frame_unwind_stop_reason): New.
5026 (amd64_frame_this_id): Don't build a frame id if the frame base
5028 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5029 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5030 base_p if the frame base was computable.
5031 (amd64_sigtramp_frame_unwind_stop_reason): New.
5032 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5033 frame base was unavailable.
5034 (amd64_sigtramp_frame_unwind): Install
5035 amd64_sigtramp_frame_unwind_stop_reason.
5036 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5037 base_p if the frame base was computable.
5038 (amd64_epilogue_frame_unwind_stop_reason): New.
5039 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5040 frame base was unavailable.
5041 (amd64_epilogue_frame_unwind): Install
5042 amd64_epilogue_frame_unwind_stop_reason.
5043 * i386-tdep.c: Include "exceptions.h".
5044 (struct i386_frame_cache): New field "base_p".
5045 (i386_init_frame_cache): Clear it.
5046 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5047 Avoid reading registers with functions that throw if the register
5048 is not necessary to compute the frame base.
5049 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5050 swallowing NOT_AVAILABLE_ERROR.
5051 (i386_frame_unwind_stop_reason): New.
5052 (i386_frame_this_id): Don't build a frame id if the frame base was
5054 (i386_frame_prev_register): Handle unavailable SP.
5055 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5056 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5057 base_p if the frame base was computable.
5058 (i386_epilogue_frame_unwind_stop_reason): New.
5059 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5060 base was unavailable.
5061 (i386_epilogue_frame_unwind): Install
5062 i386_epilogue_frame_unwind_stop_reason.
5063 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5064 base_p if the frame base was computable.
5065 (i386_sigtramp_frame_unwind_stop_reason): New.
5066 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5067 base was unavailable.
5068 (i386_sigtramp_frame_unwind): Install
5069 i386_sigtramp_frame_unwind_stop_reason.
5070 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5071 type's size, not the register's.
5072 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5074 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5075 default_frame_unwind_stop_reason.
5076 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5077 (alpha_heuristic_frame_unwind): Ditto.
5078 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5079 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5080 * avr-tdep.c (avr_frame_unwind): Ditto.
5081 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5083 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5084 * frv-tdep.c (frv_frame_unwind): Ditto.
5085 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5086 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5087 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5088 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5089 (hppa_stub_frame_unwind): Ditto.
5090 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5091 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5092 (ia64_libunwind_frame_unwind)
5093 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5094 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5095 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5096 * m32c-tdep.c (m32c_unwind): Ditto.
5097 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5098 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5099 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5100 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5101 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5102 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5103 * mep-tdep.c (mep_frame_unwind): Ditto.
5104 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5105 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5106 (mips_stub_frame_unwind): Ditto.
5107 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5108 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5109 * mt-tdep.c (mt_frame_unwind): Ditto.
5110 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5111 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5112 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5113 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5114 (s390_sigtramp_frame_unwind): Ditto.
5115 * score-tdep.c (score_prologue_unwind): Ditto.
5116 * sh-tdep.c (sh_frame_unwind): Ditto.
5117 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5118 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5119 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5120 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5121 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5122 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5123 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5124 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5125 (sparc64obsd_trapframe_unwind): Ditto.
5126 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5127 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5128 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5129 * v850-tdep.c (v850_frame_unwind): Ditto.
5130 * vax-tdep.c (vax_frame_unwind): Ditto.
5131 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5132 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5133 * xtensa-tdep.c (xtensa_unwind): Ditto.
5135 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5137 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5138 there's always a frame. Use get_frame_pc_if_available instead of
5139 get_frame_pc, and if there's no PC available, don't look up a
5142 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5144 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5147 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5149 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5152 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5154 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5155 * frame.c (frame_unwind_caller_pc_if_available): New.
5156 * stack.c (frame_info): Handle unavailable PC.
5158 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5160 * frame.c (frame_unwind_pc): Rename to ...
5161 (frame_unwind_pc_if_available): ... this. New `pc' output
5162 parameter. Change return type to int. Gracefully handle
5163 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5164 happened, or 1 otherwise.
5165 (frame_unwind_pc): Reimplement on top of
5166 frame_unwind_pc_if_available.
5167 (get_frame_func): Rename to ...
5168 (get_frame_func_if_available): New `pc' output parameter. Change
5169 return type to int. Gracefully handle the PC not being available.
5170 (get_frame_func): Reimplement on top of
5171 get_frame_func_if_available.
5172 (select_frame): Handle the PC being unavailable.
5173 (get_prev_frame): Handle the PC being unavailable.
5174 (get_frame_pc_if_available): New.
5175 (get_frame_address_in_block_if_available): New.
5176 (find_frame_sal): Handle the frame PC not being available.
5177 * frame.h (get_frame_pc_if_available): Declare.
5178 (get_frame_address_in_block_if_available): Declare.
5179 (get_frame_func_if_available): Declare.
5180 * stack.c (print_frame_info): Handle the PC being unavailable.
5181 (find_frame_funname): Ditto.
5182 (print_frame): Handle the PC being unavailable.
5183 (get_frame_language): Ditto.
5184 * blockframe.c (get_frame_block): Ditto.
5185 * macroscope.c (default_macro_scope): Ditto.
5186 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5188 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5190 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5191 NOT_AVAILABLE_ERROR when evaluating the location expression.
5193 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5195 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5196 returning that the register piece is unavailable/optimized out.
5197 (write_pieced_value): Handle get_frame_register_bytes returning
5198 that the register piece is unavailable/optimized out when doing a
5199 read-modify write of a bitfield.
5200 * findvar.c (value_from_register): Handle get_frame_register_bytes
5201 returning that the register piece is unavailable/optimized out.
5202 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5203 and `unavailablep'. Throw error on bad debug info. Use
5204 frame_register instead of frame_register_read, to fill in the new
5206 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5208 * valops.c: (value_assign): Adjust, and handle
5209 get_frame_register_bytes failing.
5210 * spu-tdep.c: Include exceptions.h.
5211 (spu_software_single_step): Adjust, and handle
5212 get_frame_register_bytes failing.
5213 (spu_get_longjmp_target): Ditto.
5214 * gdbarch.sh (register_to_value): Change to return int. New
5215 parameters `optimizedp' and `unavailablep'.
5216 * gdbarch.h, gdbarch.c: Regenerate.
5217 * i386-tdep.c (i386_register_to_value): Adjust to new
5218 gdbarch_register_to_value interface.
5219 * i387-tdep.c (i387_register_to_value): Ditto.
5220 * i387-tdep.h (i387_register_to_value): Ditto.
5221 * alpha-tdep.c (alpha_register_to_value): Ditto.
5222 * ia64-tdep.c (ia64_register_to_value): Ditto.
5223 * m68k-tdep.c (m68k_register_to_value): Ditto.
5224 * mips-tdep.c (mips_register_to_value): Ditto.
5225 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5227 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5229 * findvar.c (value_of_register): Mark the value as unavailable, if
5230 the register is unavailable.
5231 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5232 (frame_register): New `unavailablep' parameter.
5233 (frame_register_read): Update comment.
5234 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5235 Set it if the register is unavailable. If the register is
5236 unavailable, clear the output buffer.
5237 (frame_register): New `unavailablep' parameter. Pass it down.
5238 (frame_unwind_register): Adjust.
5239 (put_frame_register): Adjust.
5240 (frame_register_read): Adjust. Also return false if the register
5242 (frame_register_unwind_location): Adjust.
5243 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5244 is unavailable, mark the value accordingly.
5245 * stack.c (frame_info): Handle unavailable registers.
5247 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5249 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5250 simplify, using regcache_cooked_read.
5252 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5254 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5255 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5256 (regcache_raw_read_unsigned, regcache_raw_read_part)
5257 (regcache_cooked_read, regcache_cooked_read_signed)
5258 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5259 (regcache_cooked_read_ftype): Change return to enum
5261 * regcache.c: Include exceptions.h
5262 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5263 (do_cooked_read): Change return to enum register_status. Always
5264 forward to regcache_cooked_read.
5265 (regcache_raw_read): Change return to enum register_status. If
5266 the register is not REG_VALID, memset the buffer. Return the
5268 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5269 return the register's status.
5270 (regcache_raw_read_unsigned): Ditto.
5271 (regcache_cooked_read): Change return to enum register_status.
5272 Assert that with read-only regcaches, the register's status must
5273 be known. If the regcache is read-only, and the register is not
5274 REG_VALID, memset the buffer. Return the register's status.
5275 (regcache_cooked_read_signed): Change return to enum
5276 register_status. Handle non-REG_VALID registers and return the
5278 (regcache_cooked_read_unsigned): Change return to enum
5279 register_status. Handle non-REG_VALID registers and return the
5281 (regcache_xfer_part, regcache_raw_read_part)
5282 (regcache_cooked_read_part): Change return to enum
5283 register_status. Return the register's status.
5284 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5286 (regcache_dump): Handle unavailable cooked registers.
5287 * frame.c (do_frame_register_read): Adjust interface to match
5288 regcache_cooked_read_ftype.
5289 * gdbarch.sh (pseudo_register_read): Change return to enum
5291 * gdbarch.h, gdbarch.c: Regenerate.
5293 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5295 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5296 register_status. If reading a raw register indicates the raw
5297 register is not valid, return the raw register's status,
5298 otherwise, return REG_VALID.
5299 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5300 register_status. Handle non-REG_VALID raw registers and return
5301 the register's status.
5302 * arm-tdep.c (arm_neon_quad_read)
5303 (arm_pseudo_read): Change return to enum register_status. Handle
5304 non-REG_VALID raw registers and return the register's status.
5305 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5306 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5307 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5308 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5309 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5311 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5312 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5313 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5314 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5315 (m32c_pseudo_register_read): Change return to enum
5316 register_status. Adjust.
5317 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5318 enum register_status. Return the register's status.
5319 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5320 register_status. Return the register's status.
5321 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5322 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5323 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5324 * rs6000-tdep.c (move_ev_register_func): New typedef.
5325 (e500_move_ev_register): Use it. Change return to enum
5326 register_status. Return the register's status.
5327 (do_regcache_raw_read): New function.
5328 (do_regcache_raw_write): New function.
5329 (e500_pseudo_register_read): Change return to enum
5330 register_status. Return the register's status. Use
5331 do_regcache_raw_read.
5332 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5333 (dfp_pseudo_register_read): Change return to enum register_status.
5334 Return the register's status.
5335 (vsx_pseudo_register_read): Ditto.
5336 (efpr_pseudo_register_read): Ditto.
5337 (rs6000_pseudo_register_read): Ditto.
5338 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5339 register_status. Return the register's status.
5340 * sh64-tdep.c (pseudo_register_read_portions): New function.
5341 (sh64_pseudo_register_read): Change return to enum
5342 register_status. Use pseudo_register_read_portions. Return the
5344 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5345 register_status. Return the register's status.
5346 * sh-tdep.c (pseudo_register_read_portions): New function.
5347 (sh_pseudo_register_read): Change return to enum register_status.
5348 Use pseudo_register_read_portions. Return the register's status.
5349 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5350 enum register_status. Return the register's status.
5351 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5352 * spu-tdep.c (spu_pseudo_register_read_spu)
5353 (spu_pseudo_register_read): Ditto.
5354 * xtensa-tdep.c (xtensa_register_read_masked)
5355 (xtensa_pseudo_register_read): Ditto.
5356 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5358 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5360 * python/py-value.c (valpy_getitem): Fix formatting of error function
5363 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5365 ARI fixes: Add missing internationalization markups throughout
5367 * darwin-nat-info.c: Ditto.
5370 * mi/mi-main.c: Ditto.
5372 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5374 ARI fixes: Add missing internationalization markups throughout
5377 * cp-name-parser.y: Ditto.
5380 * objc-exp.y: Ditto.
5383 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5385 ARI fixes: Messages should have no trailing new lines.
5386 * darwin-nat.c (mach_check_error): Remove trailing new line from
5387 warning function call message.
5388 * record.c (bfdcore_read): Idem for error call.
5390 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5392 * common/signals.c (target_signal_from_host): Add _ markup to error
5393 function call message.
5394 (target_signal_to_host): Add _ markup and remove trailing new line
5395 from warning call message.
5396 (target_signal_from_command): Add _ markup to error function call
5399 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5403 * python/python.c (gdbpy_write): Accept a stream argument and
5404 operate to the appropriate stream.
5405 (gdbpy_flush): Likewise.
5406 (_initialize_python): Add stream constants.
5407 (finish_python_initialization): Add GdbOutputErrorFile class.
5409 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5411 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5413 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5415 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5416 to store_signed_integer. Add debug message when relocating CALL
5417 instructions. Fix formatting of debug message.
5418 * i386-tdep.c (i386_relocate_instruction): Ditto.
5420 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5422 * target.h (struct target_ops): Remove to_lookup_symbol field.
5423 (target_lookup_symbol): Delete macro.
5424 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5425 (update_current_target, setup_target_debug): Remove handling
5426 of to_lookup_symbol target_ops field.
5427 * ada-tasks.c (get_known_tasks_addr): Remove use of
5428 target_lookup_symbol.
5429 * coffread.c (coff_symtab_read): Likewise.
5430 * dbxread.c (read_dbx_symtab): Ditto.
5432 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5435 * configure.ac: Add getthrds declaration check.
5436 * configure, config.in: Regenerate.
5437 * aix-thread.c (getthrds): Declare only if not already declared
5438 in procinfo.h. More declaration out of get_signaled_thread to
5441 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5443 * python/py-symtab.c: Populate symtab_object_methods,
5445 (stpy_is_valid): New function.
5446 (salpy_is_valid): Ditto.
5447 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5448 (sympy_is_valid): New function.
5449 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5450 (objfpy_is_valid): New function.
5451 * python/py-inferior.c: Populate inferior_object_methods.
5452 (infpy_is_valid): New function.
5453 * python/py-infthread.c: Populate thread_object_methods.
5454 (thpy_is_valid): New function.
5455 * python/py-block.c: Declare block_object_methods. Populate. Declare
5456 block_iterator_object_methods. Populate.
5457 (blpy_is_valid): New function.
5458 (blpy_iter_is_valid): Ditto.
5460 2011-03-16 Keith Seitz <keiths@redhat.com>
5462 * linespec.c (find_methods): Canonicalize NAME before looking
5464 (name_end): New function.
5465 (keep_name_info): New function.
5466 (decode_line_1): Use keep_name_info.
5467 (decode_compound): Likewise.
5468 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5469 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5472 * linespec.c (locate_first_half): Keep overload information, too.
5473 (decode_compound): Use a string to represent break characters
5475 If P points to a break character, do not increment it.
5476 For C++ and Java, keep overload information and relevant keywords.
5477 If we cannot find a symbol, search the minimal symbols.
5480 * linespec.c (decode_compound): Rename SAVED_ARG to
5482 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5484 Pass a valid block to lookup_symbol.
5485 (lookup_prefix_sym): Likewise.
5486 (find_method): Construct search name based on SYM_CLASS instead
5488 * psymtab.c (lookup_partial_symbol): Add language parameter.
5489 (lookup_symbol_aux_psymtabs): Likewise.
5490 Don't assume that the psymtab we found was the right one. Search
5491 for the desired symbol in the symtab to be certain.
5492 (psymtab_search_name): New function.
5493 (lookup_partial_symbol): Use psymtab_search_name.
5494 Add language parameter.
5495 (read_symtabs_for_function): Add language parameter and pass to
5496 lookup_partial_symbol.
5497 (find_symbol_file_from_partial): Likewise.
5499 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5502 * dwarf2read.c (noop_record_line): New function.
5503 (dwarf_decode_lines): Ignore line tables for GCd functions.
5505 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5507 Fix ARI warnings about new lines at the end of messages, which
5508 are unneeded as there is a new line added at the end of the message
5510 * darwin-nat.c (darwin_stop_inferior): Ditto.
5511 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5512 * dfp.c (decimal_to_number): Ditto.
5513 * exec.c (print_section_info): Ditto.
5514 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5515 * osdata.c (get_osdata): Ditto.
5516 * record.c (bfdcore_write): Ditto.
5517 * remote-mips.c (mips_readchar): Ditto.
5518 * remote.c (read_ptid): Ditto.
5519 * ser-mingw.c (ser_windows_raw): Ditto.
5520 * tracepoint.c (add_local_symbols): Ditto.
5521 * windows-nat.c (fake_create_process): Ditto.
5523 2011-03-16 Tom Tromey <tromey@redhat.com>
5525 * tracepoint.c (stop_tracing): Don't declare.
5526 * event-top.c (after_char_processing_hook): Add `(void)'.
5528 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5530 * NEWS: Add Parameter sub-classing description.
5532 2011-03-16 Kai Tietz <ktietz@redhat.com>
5534 * MAINTAINERS: Update my e-mail address.
5536 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5538 * MAINTAINERS: Add myself for write after approval privileges.
5540 2011-03-15 Michael Snyder <msnyder@vmware.com>
5542 * frame.c (find_frame_sal): Assert sym is not null.
5544 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5546 * objc-lang.c (selectors_info): Check strchr for null result.
5548 * stabsread.c (define_symbol): Guard against bad stabstring input.
5550 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5552 Remove trailing spaces and tabulations from pascal language
5557 p-valprint.c: Ditto.
5559 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5561 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5562 than LOW. Comment it.
5563 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5564 HIGHPC not strictly higher than LOWPC.
5566 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5568 Fix formatting of function declarations returning a pointer in
5570 * varobj.c (varobj_add_child): Ditto.
5571 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5572 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5574 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5576 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5577 for the "generic" vector ABI used with GCC 4.3 and later.
5578 (ppc64_sysv_abi_return_value): Likewise.
5580 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5582 * infcall.c (call_function_by_hand): Function return value is
5583 always a non_lval, even when using struct_return.
5585 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5587 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5588 (map_display_numbers): New.
5589 (do_delete_display): New.
5590 (undisplay_command): Use map_display_numbers.
5591 (do_enable_disable_display): New.
5592 (enable_disable_display_command): New function.
5593 (enable_display): Delete.
5594 (enable_display_command): New.
5595 (disable_display_command): Reimplement.
5596 (_initialize_printcmd): Adjust "enable display" command to use
5597 `enable_display_command' as callback.
5599 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5601 * NEWS: Add Python breakpoint 'stop' operation.
5603 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5605 * NEWS: Delete duplicate entry. Fix typo.
5607 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5609 Fix ARI warning about function names in first column.
5610 Put prototype declaration on same line as return type.
5611 * objc-exp.y: Ditto.
5613 * python/py-stopevent.h: Ditto.
5614 For long function names, split parameters to
5615 allow function name on same line as return type.
5616 * solib-pa64.c: Ditto.
5619 For long function declaration, use single line.
5620 * hppa-tdep.h: Ditto.
5621 * inferior.h: Ditto.
5623 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5625 * python/python.h: Declare gdbpy_should_stop and
5626 gdbpy_breakpoint_has_py_cond.
5627 * python/python.c: Add python.h to includes. Remove python.h from
5628 HAVE_PYTHON definition
5629 (gdbpy_should_stop): New dummy function.
5630 (gdbpy_breakpoint_has_py_cond): New dummy function.
5631 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5632 sub-classing capabilities.
5633 (gdbpy_should_stop): New function.
5634 (gdbpy_breakpoint_has_py_cond): New function.
5635 (local_setattro): New function.
5636 * breakpoint.c (condition_command): Add check for Python 'stop'
5638 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5639 operation function as part of stop/continue tests.
5641 2011-03-14 Tom Tromey <tromey@redhat.com>
5644 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5645 (needs_frame_dwarf_call): Likewise.
5647 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5649 Fix ARI warning about functions without parameters that do not
5651 * breakpoint.c (all_tracepoints): Replace () by (void).
5652 * f-exp.y (match_string_literal): Ditto.
5654 * m2-exp.y (yylex): Ditto.
5655 * mep-tdep.c (current_me_module): Ditto.
5656 (current_options): Ditto.
5657 (current_cop_data_bus_width): Ditto.
5658 (current_cr_names): Ditto.
5659 (current_cr_is_float): Ditto.
5660 (current_ccr_names): Ditto.
5661 * objc-exp.y (yylex): Ditto.
5662 * p-exp.y (yylex): Ditto.
5663 * remote.c (send_interrupt_sequence): Ditto.
5664 * tracepoint.c (current_trace_status): Ditto.
5665 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5666 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5668 2011-03-11 Michael Snyder <msnyder@vmware.com>
5670 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5671 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5672 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5673 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5674 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5676 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5677 (delete_async_event_handler): Ditto.
5679 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5681 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5683 * top.c (set_verbose): Assert showcmd was found.
5685 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5687 * xtensa-tdep.c (warning_once): Correct style issues.
5689 2011-03-11 Yao Qi <yao@codesourcery.com>
5691 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5693 2011-03-11 Andreas Schwab <schwab@redhat.com>
5695 * common/aclocal.m4: Remove.
5697 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5699 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5700 (xtensa_write_register, xtensa_read_register): Likewise.
5701 (xtensa_hextochar): Removed.
5702 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5704 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5706 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5707 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5708 (xtensa_alloc_frame_cache): Add initialization for new fields.
5709 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5710 (warning_once): New function.
5711 (xtensa_insn_kind): New item c0opc_and.
5712 (call0_classify_opcode): Add the case for AND instruction.
5713 (call0_track_op): Change arguments. New local variable litbase.
5714 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5715 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5717 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5718 (call0_analyze_prologue): Update the comments. Change arguments.
5719 Add the variety of updates to handle extended prologues, which now can
5720 conduct dynamic stack adjustments.
5721 (call0_frame_cache): Likewise.
5722 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5723 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5725 2011-03-10 Michael Snyder <msnyder@vmware.com>
5727 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5728 (cmd_qtframe): Ditto.
5729 (cmd_qtbuffer): Ditto.
5730 (cmd_bigqtbuffer): Ditto.
5732 2011-03-10 Tom Tromey <tromey@redhat.com>
5734 * tracepoint.c (trace_actions_command): Update.
5735 * thread.c (thread_apply_command): Update.
5736 * reverse.c (delete_bookmark_command): Update.
5737 (bookmarks_info): Update.
5738 * printcmd.c (undisplay_command): Update.
5739 * memattr.c (mem_enable_command): Update.
5740 (mem_disable_command): Update.
5741 (mem_delete_command): Update.
5742 * inferior.c (detach_inferior_command): Update.
5743 (kill_inferior_command): Update.
5744 (remove_inferior_command): Update.
5745 * cli/cli-utils.h (struct get_number_or_range_state): New.
5746 (init_number_or_range): Declare.
5747 (get_number_or_range): Update.
5748 * cli/cli-utils.c (init_number_or_range): New function.
5749 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5751 (number_is_in_list): Update.
5752 * breakpoint.h (get_tracepoint_by_number): Update.
5753 * breakpoint.c (map_breakpoint_numbers): Update for change to
5754 get_number_or_range.
5755 (find_location_by_number): Use get_number, not
5756 get_number_or_range.
5757 (trace_pass_set_count): New function.
5758 (trace_pass_command): Update for change to get_number_or_range.
5760 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5763 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5765 * python/py-param.c (add_setshow_generic): Add set/show callback
5766 parameters. Register Python object context.
5767 (get_show_value): New function.
5768 (get_set_value): New function.
5769 (call_doc_function): New function.
5770 (get_doc_string): Move behind get_show_value/get_set_value.
5772 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5774 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5776 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5778 * xtensa-tdep.c (xtensa_read_register): Add comment.
5779 (xtensa_write_register): Likewise.
5780 (xtensa_hextochar): Add comment and update to match coding conventions.
5781 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5782 (execute_l32e, execute_s32e, execute_code): Update comments.
5783 (xtensa_exception_handler_t): Update to match coding conventions.
5784 (xtensa_insn_kind): Likewise.
5786 2011-03-09 Michael Snyder <msnyder@vmware.com>
5788 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5790 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5792 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5794 2011-03-09 Tom Tromey <tromey@redhat.com>
5796 * thread.c (restore_selected_frame): Handle frame_level == -1.
5797 (make_cleanup_restore_current_thread): Use
5798 get_selected_frame_if_set.
5799 * frame.h (get_selected_frame_if_set): Declare.
5800 * frame.c (get_selected_frame_if_set): New function.
5802 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5804 * cli/cli-cmds.c (shell_escape): Use lbasename.
5805 * coffread.c (coff_start_symtab): Constify parameter.
5806 (complete_symtab): Constify `name' parameter.
5807 (coff_symtab_read): Constify `filestring' local.
5808 (coff_getfilename): Constify return and `result' local.
5810 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5811 * linux-fork.c (info_checkpoints_command): Use lbasename.
5812 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5813 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5814 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5815 * procfs.c (procfs_make_note_section): Use lbasename.
5816 * tui/tui-io.c (printable_part): Constity return and parameter.
5818 (print_filename): Constify parameters, and local `s'.
5819 (tui_rl_display_match_list): Constify local `temp'.
5821 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5824 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5825 Fix DWARF-3+ DW_AT_accessibility default assumption.
5826 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5827 cu->header.version >= 3.
5829 2011-03-09 Yao Qi <yao@codesourcery.com>
5831 * common/Makefile.in: Remove.
5832 * common/configure: Remove.
5833 * common/configure.ac: Remove.
5835 2011-03-09 Yao Qi <yao@codesourcery.com>
5838 2011-02-11 Yao Qi <yao@codesourcery.com>
5840 * common/Makefile.in: Add copyright header.
5842 2011-02-11 Yao Qi <yao@codesourcery.com>
5844 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5846 * configure.ac: Add common to sub dir.
5847 * configure: Regenerate.
5849 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5851 * xtensa-tdep.c (call0_ret): New function.
5852 (xtensa_skip_prologue): Speed up analysis.
5854 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5856 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5857 while executing MI command -data-list-changed-registers.
5859 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5861 * xtensa-tdep.c (xtensa_read_register): New function.
5862 (xtensa_write_register): New function.
5863 (xtensa_find_register_by_name): New function.
5864 (xtensa_windowed_frame_cache): Update comments in type description.
5865 (xtensa_frame_cache): Likewise.
5866 (xtensa_window_interrupt_insn): New function.
5867 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5868 (xtensa_insn_kind): Add new instructions.
5869 (rwx_special_register): New function.
5870 (call0_classify_opcode): Add new instructions to the analysis.
5871 (a0_saved, a7_saved, a11_saved): New variables.
5872 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5873 (execute_l32e): New function.
5874 (execute_s32e): New function.
5875 (xtensa_exception_handler_t): New type.
5876 (execute_code): New function.
5877 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5878 analysis for Xtensa Window Exception handlers.
5880 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5882 * xtensa-tdep.c (TX_PS): New.
5883 (windowing_enabled): Update to count for Call0 ABI.
5884 (xtensa_hextochar): New.
5885 (xtensa_init_reggroups): Make algorithm generic.
5886 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5888 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5890 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5892 2011-03-08 Michael Snyder <msnyder@vmware.com>
5894 * i386-tdep.c (i386_follow_jump): Check return value of
5896 (i386_analyze_struct_return): Ditto.
5897 (i386_skip_probe): Ditto.
5898 (i386_match_insn): Ditto.
5899 (i386_skip_noop): Ditto.
5900 (i386_analyze_frame_setup): Ditto.
5901 (i386_analyze_register_saves): Ditto.
5902 (i386_skip_prologue): Ditto.
5903 (i386_skip_main_prologue): Ditto.
5905 * target.c (read_whatever_is_readable): Fix memory leak.
5907 * i386-tdep.c (i386_process_record): Document fall through.
5909 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5911 Fix DWARF-3+ DW_AT_accessibility default assumption.
5912 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5913 cu->header.version >= 3.
5915 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5917 * remote.c (remote_check_symbols): Skip if the target has no
5920 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5922 * target.c (read_whatever_is_readable): Reformat comment,
5923 with a minor typo fix. Minor reformatting of the code.
5925 2011-03-08 Yao Qi <yao@codesourcery.com>
5927 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5928 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5929 Use cached result instead of calling displaced_in_arm_mode again.
5930 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5931 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5932 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5933 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5934 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5935 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5936 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5937 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5938 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5939 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5940 (arm_catch_kernel_helper_return): Likewise.
5941 * gdb/arm-tdep.h : Update function declarations.
5943 2011-03-07 Michael Snyder <msnyder@vmware.com>
5945 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5947 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5949 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5951 * elfread.c (elf_symtab_read): Stop memory leak.
5953 * main.c (captured_main): Fix memory leak.
5955 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5957 * ada-lang.c (compare_names): Call is_name_suffix with string1
5960 2011-03-07 Tom Tromey <tromey@redhat.com>
5962 * xcoffread.c (xcoff_sym_fns): Update.
5963 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5964 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5965 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5966 (symbol_file_add_with_addrs_or_offsets): Likewise.
5967 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5968 * somread.c (som_sym_fns): Update.
5969 * psymtab.h (require_partial_symbols): Declare.
5970 * psymtab.c (require_partial_symbols): New function.
5971 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5972 (ALL_OBJFILE_PSYMTABS): Undef.
5973 (ALL_PSYMTABS): Move from psympriv.h.
5974 (lookup_partial_symtab, find_pc_sect_psymtab)
5975 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5976 (find_last_source_symtab_from_partial)
5977 (forget_cached_source_info_partial)
5978 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5979 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5980 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5981 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5982 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5983 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5984 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5985 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5986 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5988 * mipsread.c (ecoff_sym_fns): Update.
5989 * machoread.c (macho_sym_fns): Update.
5990 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5991 (read_psyms): New function.
5992 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5993 (elf_sym_fns_lazy_psyms): New global.
5994 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5995 dwarf2_build_psymtabs.
5996 * dbxread.c (aout_sym_fns): Update.
5997 * coffread.c (coff_sym_fns): Update.
5999 2011-03-07 Tom Tromey <tromey@redhat.com>
6001 * infrun.c (print_exited_reason): Include inferior id and pid in
6004 2011-03-07 Tom Tromey <tromey@redhat.com>
6006 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6008 (target_has_execution_1): Update.
6009 (target_has_execution_current): Declare.
6010 (target_has_execution): Call target_has_execution_current.
6011 (default_child_has_execution): Update.
6012 * target.c (default_child_has_execution): Add 'the_ptid'
6014 (target_has_execution_1): Likewise.
6015 (target_has_execution_current): New function.
6016 (add_target): Update.
6017 (init_dummy_target): Update.
6018 * remote-m32r-sdi.c (m32r_has_execution): New function.
6019 (init_m32r_ops): Use it.
6020 * record.c (record_core_has_execution): Now static. Add
6021 'the_ptid' parameter.
6022 * inferior.c (have_live_inferiors): Don't save current thread.
6023 Use target_has_execution_1.
6025 2011-03-07 Yao Qi <yao@codesourcery.com>
6027 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6029 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6031 * elfread.c (elf_symtab_read): Minor reformatting.
6033 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6035 * objc-lang.c (selectors_info): Minor reformatting.
6037 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6039 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6041 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6042 Michael Snyder <msnyder@vmware.com>
6044 * ada-valprint.c (ada_val_print_array): Move the declaration of
6045 "byte_order" and "elttype" inside the block where these variables
6046 are actually used. Remove some special handling for the case
6047 where "elttype" and "eltlen" are null. Replace by a comment
6048 and a couple of assertion checks.
6050 2011-03-05 Michael Snyder <msnyder@vmware.com>
6052 * source.c (add_path): Replace semicolon at end of block.
6053 * dwarf2expr.c (execute_stack_op): Ditto.
6055 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6057 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6058 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6059 (bfin-*-*): Likewise.
6061 2011-03-05 Michael Snyder <msnyder@vmware.com>
6063 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6064 * mdebugread.c (parse_symbol): Ditto.
6065 * parse.c (parse_exp_in_context): Ditto.
6066 * source.c (add_path): Ditto.
6067 * utils.c (gnu_debuglink_crc32): Ditto.
6068 * varobj.c (variable_language): Ditto.
6070 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6072 2011-03-04 Michael Snyder <msnyder@vmware.com>
6074 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6076 * symfile.c (simple_overlay_update): Check for null return value
6077 from lookup_minimal_symbol.
6079 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6081 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6083 * eval.c (parse_and_eval_address_1): Remove function.
6084 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6085 instead of parse_and_eval_address_1.
6086 * value.h (parse_and_eval_address_1): Remove prototype.
6088 2011-03-04 Michael Snyder <msnyder@vmware.com>
6090 * remote.c (putpkt_binary): Document that case stmt falls through.
6092 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6094 * breakpointc (print_it_typical): Move NULL check from here...
6095 (print_bp_stop_message): ... to here.
6097 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6099 * breakpoint.c (enable_command): Use break instead of continue,
6100 and fill in a missing break.
6101 (disable_command): Ditto.
6103 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6105 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6106 (terminal_save_ours): Remove misleading comment.
6107 (inflow_inferior_data_cleanup): Free ttystate.
6108 (inflow_inferior_exit): Likewise.
6109 (copy_terminal_info): Copy ttystate.
6111 * serial.c (serial_copy_tty_state): New function.
6112 * serial.h (serial_copy_tty_state): Add prototype.
6113 (struct serial_ops): Add copy_tty_state callback.
6114 * ser-base.c (ser_base_copy_tty_state): New function.
6115 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6116 * ser-go32.c (dos_copy_tty_state): New function.
6117 (dos_ops): Install copy_tty_state callback.
6118 * ser-mingw.c (_initialize_ser_windows): Likewise.
6119 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6120 * ser-unix.c (hardwire_copy_tty_state): New function.
6121 (_initialize_ser_hardwire): Install it.
6123 2011-03-04 Michael Snyder <msnyder@vmware.com>
6125 * breakpoint.c (create_breakpoint): Add missing break statement.
6127 Reverting this patch:
6128 * infcall.c (call_function_by_hand): Add break statements for lint.
6130 Reverting this patch:
6131 * cli/cli-script.c (script_from_file): Add break for lint.
6133 2011-03-04 Michael Snyder <msnyder@vmware.com>
6135 * solib.c (reload_shared_libraries_1): Close memory leak.
6137 2011-03-03 Tom Tromey <tromey@redhat.com>
6140 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6143 2011-03-03 Michael Snyder <msnyder@vmware.com>
6145 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6146 fields of struct 'st' to zero.
6148 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6149 sal.pspace before calling set_current_source_symtab_and_line.
6151 2011-03-03 Yao Qi <yao@codesourcery.com>
6153 * Makefile.in (configure-common): Remove. Let Makefile
6154 in dir common to rebuild itself.
6155 (common/Makefile): Likewise.
6157 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6159 * utils.c (parse_escape): Add i18n markup in error message.
6161 2011-03-03 Yao Qi <yao@codesourcery.com>
6163 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6165 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6166 (displaced_write_reg, displaced_read_reg): Likewise.
6167 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6168 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6169 (cleanup_branch): Replace magic number 14 and 15 with
6170 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6172 2011-03-02 Michael Snyder <msnyder@vmware.com>
6174 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6176 * cli/cli-script.c (script_from_file): Add break for lint.
6178 * mdebugread.c (parse_partial_symbols): Fix indent.
6180 * target-descriptions.c (tdesc_gdb_type): No need to call
6181 xstrdup, callee saves a copy.
6183 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6185 * infcall.c (call_function_by_hand): Add break statements for lint.
6187 * utils.c (parse_escape): Escape the escape char.
6189 * python/py-inferior.c (build_inferior_list): Error out if
6190 PyList_Append fails.
6191 (gdbpy_inferiors): Error out if build_inferior_list fails.
6193 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6196 * record.c (record_restore): Move printf to before error return.
6198 2011-03-02 Yao Qi <yao@codesourcery.com>
6200 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6201 is_thumb and insn_size.
6202 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6203 on both ARM and Thumb mode.
6204 (arm_process_displaced_insn): Set is_thumb and insn_size.
6205 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6206 (arm_displaced_step_fixup): Likewise.
6208 2011-03-01 Michael Snyder <msnyder@vmware.com>
6210 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6212 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6214 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6216 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6218 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6221 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6222 which shadows function parameter.
6224 * tracepoint.c (create_tsv_from_upload): Superfluous call
6225 to xstrdup. Callee already calls xstrdup.
6227 * linespec.c (decode_line_1): Remove unnecessary null check.
6229 * tracepoint.c (scope_info): Fix mem leak, remove underused
6232 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6233 superfluous null check.
6235 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6236 (value_of_builtin_frame_fp_reg): Ditto.
6238 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6240 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6243 * linespec.c (decode_line_1): Check for null before dereference.
6245 * reverse.c (record_restore): Move null-check to before pointer
6248 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6250 * objc-lang.c (selectors_info): Add explanitory comment.
6251 (classes_info): Ditto.
6253 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6255 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6256 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6257 versions of the trampoline. Handle Thumb vs. ARM addresses.
6258 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6259 (arm_linux_init_abi): Install it.
6260 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6261 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6263 2011-02-28 Michael Snyder <msnyder@vmware.com>
6265 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6266 a little bigger, to avoid possibility of an overflow.
6268 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6269 buffers a little bigger, to avoid possibility of an overflow.
6271 * coffread.c (coff_getfilename): Add check to avoid overflow.
6273 * objc-lang.c (selectors_info): Add a small safety margin to
6275 (classes_info): Error out on too long REGEXP.
6277 * infrun.c (handle_inferior_event): Remove unused function call.
6279 * fork-child.c (fork_inferior): Remove ifdef'd code and
6282 * linux-thread-db.c (attach_thread): Discard unused value.
6284 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6286 * remote.c (remote_get_noisy_reply): Discard unused value.
6287 (remote_vcont_resume): Ditto.
6288 (remote_stop_ns): Ditto.
6290 * linespec.c (decode_objc): Delete unused variable.
6292 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6294 * dwarf2read.c (add_partial_symbol): Discard unused values.
6295 (read_base_type): Delete unused variable.
6297 * dbxread.c (read_dbx_symtab): Discard unused value.
6299 * eval.c (evaluate_subexp_standard): Delete unused variable,
6300 and discard unused values.
6302 * infcmd.c (_initialize_infcmd): Discard unused values.
6304 * stabsread.c (rs6000_builtin_type): Missing break statement.
6306 * dbxread.c (process_one_symbol): Discard unused value.
6308 * coffread.c (coff_end_symtab): Delete unused variable.
6310 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6311 (dwarf2_add_typedef): Delete unused variable.
6312 (read_namespace): Ditto.
6313 (dwarf_decode_macros): Ditto.
6315 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6317 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6319 * p-valprint.c (pascal_val_print): Discard unused value.
6321 * utils.c (nquery): Call va_end before return;
6325 * proc-service.c (ps_plog): Call va_end before return.
6327 2011-02-28 Tom Tromey <tromey@redhat.com>
6329 * python/python.c (gdbpy_value_cst): New global.
6330 (_initialize_python): Initialize it.
6331 * python/python-internal.h (gdbpy_value_cst): Declare.
6332 * python/py-value.c (convert_value_from_python): Use
6335 2011-02-28 Michael Snyder <msnyder@vmware.com>
6337 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6339 * breakpoint.c (catch_syscall_completer): Free malloced list.
6341 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6343 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6344 (lval_func_check_synthetic_pointer): Ditto.
6345 (lval_func_free_closure): Fix use-after-free.
6347 2011-02-28 Tom Tromey <tromey@redhat.com>
6349 * psymtab.c (expand_partial_symbol_tables): Use
6350 ALL_OBJFILE_PSYMTABS.
6352 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6354 * objc-lang.c (selectors_info): Error on too long REGEXP.
6356 2011-02-28 Michael Snyder <msnyder@vmware.com>
6358 * python/py-param.c (set_parameter_value): Add missing
6361 * linux-record.c (record_linux_system_call): Add missing
6364 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6366 * breakpoint.c (print_one_breakpoint_location): Remove unused
6367 argument PRINT_ADDRESS_BITS. Update callers.
6368 (print_one_breakpoint): Likewise.
6370 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6372 * breakpoint.c (wrap_indent_at_field): New function.
6373 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6374 Allocate ui_stream locally instead of using STB argument.
6375 (print_one_breakpoint_location): Update call.
6376 * ui-out.c (ui_out_query_field): New function.
6377 * ui-out.h (ui_out_query_field): Add prototype.
6379 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6381 From Michael Snyder <msnyder@vmware.com>
6382 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6384 2011-02-27 Michael Snyder <msnyder@vmware.com>
6386 * objc-lang.c (selectors_info): Prevent string overrun.
6388 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6391 * symtab.c (rbreak_command): Move variable 'file_name' to
6394 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6395 param with a local variable of the same name.
6397 2011-02-27 Michael Snyder <msnyder@vmware.com>
6399 * value.c (value_from_history_ref): New function.
6400 * value.h (value_from_history_ref): Export.
6401 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6402 to parse value history references.
6403 * cli/cli-utils.h (get_number_trailer): Update comment.
6405 2011-02-27 Michael Snyder <msnyder@vmware.com>
6407 * inferior.c (detach_inferior_command): Use get_number_or_range.
6408 (kill_inferior_command): Ditto.
6409 (remove_inferior_command): Ditto.
6410 (initialize_inferiors): Make command names plural.
6411 Update help strings.
6413 2011-02-27 Michael Snyder <msnyder@vmware.com>
6415 * darwin-nat-info.c: Fix comment typo.
6416 * dwarf2expr.h: Ditto.
6417 * fbsd-nat.c: Ditto.
6418 * fbsd-nat.h: Ditto.
6419 * frame-unwind.h: Ditto.
6421 * hppa-hpux-tdep.c: Ditto.
6422 * i386-linux-nat.c: Ditto.
6423 * linux-nat.c: Ditto.
6424 * nbsd-nat.c: Ditto.
6425 * nbsd-nat.h: Ditto.
6426 * ppc-linux-tdep.c: Ditto.
6429 * tui/tui-winsource.c: Ditto.
6431 2011-02-26 Michael Snyder <msnyder@vmware.com>
6433 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6435 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6437 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6438 with a local variable of the same name.
6440 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6441 param with a local variable of the same name.
6442 (i387_supply_xsave): Ditto.
6444 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6445 that it does not shadow a function parameter.
6447 * i386-nat.c (i386_length_and_rw_bits): Document that case
6448 statement is meant to fall through.
6450 * expprint.c (dump_subexp_body_standard): Document that case
6451 statement is meant to fall through.
6453 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6454 dead if statement. Condition can't be false.
6456 2011-02-25 Michael Snyder <msnyder@vmware.com>
6458 * arm-tdep.c: Fix typos in comments.
6459 * bsd-uthread.c: Ditto.
6460 * completer.c: Ditto.
6462 * cp-namespace.c: Ditto.
6463 * cp-support.c: Ditto.
6464 * cris-tdep.c: Ditto.
6466 * dwarf2read.c: Ditto.
6468 * gdbtypes.h: Ditto.
6469 * inferior.h: Ditto.
6470 * mdebugread.c: Ditto.
6471 * mips-tdep.c: Ditto.
6472 * ppc-linux-nat.c: Ditto.
6473 * ppc-linux-tdep.c: Ditto.
6474 * printcmd.c: Ditto.
6475 * sol-thread.c: Ditto.
6476 * solib-frv.c: Ditto.
6478 * sparc64-tdep.c: Ditto.
6479 * spu-tdep.c: Ditto.
6480 * stabsread.c: Ditto.
6485 * python/py-block.c: Ditto.
6486 * python/py-symbol.c: Ditto.
6487 * python/py-symtab.c: Ditto.
6488 * python/py-value.c: Ditto.
6489 * tui/tui-win.c: Ditto.
6491 2011-02-25 Michael Snyder <msnyder@vmware.com>
6493 * inferior.c (print_inferior): Accept a string instead of an int
6494 for requested_inferiors, and use get_number_or_range to parse it.
6495 (info_inferiors_command): Pass args string to print_inferior.
6496 (initialize_inferiors): Change help string for info inferiors.
6497 * inferior.h (print_inferior): Export prototype change.
6499 2011-02-25 Tom Tromey <tromey@redhat.com>
6501 * common/ax.def (invalid2): Set to 0x31.
6503 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6505 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6507 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6509 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6511 2011-02-24 Michael Snyder <msnyder@vmware.com>
6513 * Makefile.in (clean): Make clean should remove generated files
6514 observer.h and observer.inc.
6516 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6518 Revert the following patch (not approved yet):
6519 2011-02-21 Hui Zhu <teawater@gmail.com>
6520 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6521 * ax-gdb.c (gen_printf_expr_callback): New function.
6522 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6523 * ax-general.c (ax_memcpy): New function.
6524 (ax_print): Handle "printf".
6526 * ax.h (ax_memcpy): Forward declare.
6527 * common/ax.def (invalid2): Removed.
6528 (printf): New entry.
6529 * printcmd.c (printcmd.h): New include.
6530 (string_printf): New function.
6531 (ui_printf): Removed.
6532 (printf_command): Remove static. Call string_printf.
6533 (eval_command): Call string_printf.
6534 * printcmd.h: New file.
6535 * tracepoint.c (validate_actionline,
6536 encode_actions_1): handle printf_command.
6538 2011-02-23 Tom Tromey <tromey@redhat.com>
6540 * ax-general.c (ax_pick): Add missing newline.
6542 2011-02-23 Michael Snyder <msnyder@vmware.com>
6544 * breakpoint.c (breakpoint_1): Change first argument from an int
6545 to a char pointer, so that the function now accepts a list of
6546 breakpoints rather than just one. Use new function
6547 'number_is_in_list' to implement.
6548 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6549 (watchpoints_info): Ditto.
6550 (tracepoints_info): Ditto.
6551 (maintenance_info_breakpoints): Ditto.
6552 (_initialize_breakpoint): Update help strings to reflect the fact
6553 that these functions can now take more than one argument.
6554 * cli/cli-utils.c (number_is_in_list): New function.
6555 * cli/cli-utils.h (number_is_in_list): Export.
6557 2011-02-23 Michael Snyder <msnyder@vmware.com>
6559 * memattr.c (mem_enable_command): Use get_number_or_range.
6560 (mem_disable_command): Ditto.
6561 (mem_delete_command): Ditto.
6562 (_initialize_mem): Tweak usage message to reflect multiple
6565 2011-02-22 Doug Evans <dje@google.com>
6567 Add gdb.lookup_global_symbol python function.
6569 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6570 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6571 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6573 2011-02-22 Tom Tromey <tromey@redhat.com>
6575 * language.c (language_class_name_from_physname): Rename
6576 'curr_language' argument to 'lang'; use in body.
6578 2011-02-22 Michael Snyder <msnyder@vmware.com>
6580 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6582 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6584 * frame-unwind.h: Fix comment to mention the this frame, not the
6587 2011-02-22 Tom Tromey <tromey@redhat.com>
6589 * symfile.c (auto_solib_limit): Remove.
6590 * symfile.h (auto_solib_limit): Remove.
6592 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6594 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6596 2011-02-21 Michael Snyder <msnyder@vmware.com>
6598 * gdbthread.h (print_thread_info): Change prototype.
6599 * thread.c (print_thread_info): Accept char* instead of int for
6600 requested_threads argument. Use new function number_is_in_list
6601 to determine which threads to list.
6602 (info_threads_command): Pass char* to print_thread_info.
6603 * cli/cli-utils.c (number_is_in_list): New function.
6604 * cli/cli-utils.h (number_is_in_list): Export.
6605 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6607 (print_one_inferior): Ditto.
6608 (mi_cmd_list_thread_groups): Ditto.
6610 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6612 * common/Makefile.in (CFLAGS): New.
6613 (COMPILE): Add $(CFLAGS).
6615 2011-02-21 Tom Tromey <tromey@redhat.com>
6617 * breakpoint.c (catch_syscall_command_1): Fix typo.
6619 2011-02-21 Tom Tromey <tromey@redhat.com>
6621 * reverse.c: Include cli-utils.h.
6622 * printcmd.c: Include cli-utils.h.
6623 (string_printf): Use skip_spaces.
6624 * cli/cli-utils.h: New file.
6625 * cli/cli-utils.c: New file.
6626 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6627 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6628 * breakpoint.h (get_number, get_number_or_range): Move to
6630 * breakpoint.c: Include cli-utils.h.
6631 (get_number_trailer, get_number, get_number_or_range)
6632 (ep_skip_leading_whitespace): Move to cli-utils.c.
6633 (create_breakpoint_sal, find_condition_and_thread)
6634 (decode_static_tracepoint_spec, watch_command_1)
6635 (watch_maybe_just_location, ep_parse_optional_if_clause)
6636 (catch_fork_command_1, catch_exec_command_1)
6637 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6638 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6639 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6640 (HFILES_NO_SRCDIR): Add cli-utils.h.
6641 (cli-utils.o): New target.
6643 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6645 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6646 before calling discard_all_inferiors.
6648 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6650 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6651 (struct builtin_opencl_type): Remove.
6652 (builtin_opencl_type): Change return type to "struct type **".
6653 (lookup_opencl_vector_type): Update caller.
6654 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6655 (build_opencl_types): Install plain array of "struct type *"
6656 instead of "struct builtin_opencl_type".
6658 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6659 Ulrich Weigand <uweigand@de.ibm.com>
6661 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6662 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6663 (struct arm_linux_hwbp_cap): New type.
6664 (arm_linux_get_hwbp_cap): New function.
6665 (arm_linux_get_hw_breakpoint_count): Likewise.
6666 (arm_linux_get_hw_watchpoint_count): Likewise.
6667 (arm_linux_can_use_hw_breakpoint): Likewise.
6668 (arm_hwbp_type): New type.
6669 (arm_hwbp_control_t): Likewise.
6670 (struct arm_linux_hw_breakpoint): Likewise.
6671 (struct arm_linux_thread_points): Likewise.
6672 (arm_threads): New global variable.
6673 (arm_linux_find_breakpoints_by_tid): New function.
6674 (arm_hwbp_control_initialize): Likewise.
6675 (arm_hwbp_control_is_enabled): Likewise.
6676 (arm_hwbp_control_disable): Likewise.
6677 (arm_linux_hw_breakpoint_initialize): Likewise.
6678 (arm_linux_get_hwbp_type): Likewise.
6679 (arm_linux_hw_watchpoint_initialize): Likewise.
6680 (arm_linux_hw_breakpoint_equal): Likewise.
6681 (arm_linux_insert_hw_breakpoint1): Likewise.
6682 (arm_linux_remove_hw_breakpoint1): Likewise.
6683 (arm_linux_insert_hw_breakpoint): Likewise.
6684 (arm_linux_remove_hw_breakpoint): Likewise.
6685 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6686 (arm_linux_insert_watchpoint): Likewise.
6687 (arm_linux_remove_watchpoint): Likewise.
6688 (arm_linux_stopped_data_address): Likewise.
6689 (arm_linux_stopped_by_watchpoint): Likewise.
6690 (arm_linux_watchpoint_addr_within_range): Likewise.
6691 (arm_linux_new_thread): Likewise.
6692 (arm_linux_thread_exit): Likewise.
6693 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6694 related target callbacks. Register arm_linux_new_thread and
6695 arm_linux_thread_exit.
6696 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6697 * arm-tdep.c (arm_pc_is_thumb): Make global.
6698 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6700 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6702 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6703 per-frame locations while within a function epilogue.
6705 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6707 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6708 to GNU coding standards.
6710 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6712 Allow use of mingw native on Windows 95 OS.
6713 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6714 (ser_windows_close): Only call CancelIo if function exists.
6715 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6716 to check for existence of CancelIo function in kernel32 DLL.
6718 2011-02-21 Hui Zhu <teawater@gmail.com>
6720 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6721 * ax-gdb.c (gen_printf_expr_callback): New function.
6722 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6723 * ax-general.c (ax_memcpy): New function.
6724 (ax_print): Handle "printf".
6726 * ax.h (ax_memcpy): Forward declare.
6727 * common/ax.def (invalid2): Removed.
6728 (printf): New entry.
6729 * printcmd.c (printcmd.h): New include.
6730 (string_printf): New function.
6731 (ui_printf): Removed.
6732 (printf_command): Remove static. Call string_printf.
6733 (eval_command): Call string_printf.
6734 * printcmd.h: New file.
6735 * tracepoint.c (validate_actionline,
6736 encode_actions_1): handle printf_command.
6738 2011-02-19 Michael Snyder <msnyder@vmware.com>
6740 * reverse.c (delete_one_bookmark): Argument is now bookmark
6741 id rather than pointer to bookmark struct.
6742 (delete_bookmark_command): Use get_number_or_range.
6743 (goto_bookmark_command): Parse with get_number instead of strtoul.
6744 (bookmark_1): New function. Print info for one bookmark.
6745 (bookmarks_info): Use get_number_or_range and bookmark_1.
6747 2011-02-18 Michael Snyder <msnyder@vmware.com>
6749 * thread.c (info_threads_command): Re-implement using
6750 get_number_or_range.
6751 (thread_apply_command): Ditto.
6753 2011-02-18 Tom Tromey <tromey@redhat.com>
6755 * common/ax.def: New file.
6756 * ax.h (enum agent_op): Use ax.def.
6757 * ax-general.c (aop_map): Use ax.def.
6759 2011-02-18 Tom Tromey <tromey@redhat.com>
6761 * ax-general.c (aop_map): Add pick and rot.
6762 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6763 <DW_OP_rot>: Implement.
6764 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6766 * ax-general.c (ax_pick): New function.
6768 2011-02-18 Tom Tromey <tromey@redhat.com>
6770 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6772 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6773 Tom Tromey <tromey@redhat.com>
6775 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6776 make_symbol_overload_list_block with NULL BLOCK.
6777 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6779 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6781 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6782 * breakpoint.h (get_number_or_range): Declare.
6783 * printcmd.c (ALL_DISPLAYS): Declare.
6784 (delete_display): Reimplement taking a display pointer.
6785 (undisplay_command): Accept a range of displays to delete, using
6786 get_number_or_range.
6788 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6790 * c-valprint.c (c_val_print): Add embedded_offset to address
6791 for arrays of unspecified length.
6792 * p-valprint.c (pascal_val_print): Likewise.
6794 2011-02-18 Yao Qi <yao@codesourcery.com>
6796 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6797 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6798 (thumb_process_displaced_insn): New.
6799 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6800 call to arm_process_displaced_insn.
6801 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6803 2011-02-17 Tom Tromey <tromey@redhat.com>
6805 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6806 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6807 compile_dwarf_to_ax. No longer static. Call
6808 dwarf2_compile_cfa_to_ax.
6809 (locexpr_tracepoint_var_ref): Update.
6810 (loclist_tracepoint_var_ref): Update.
6811 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6812 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6813 argument; add 'gdbarch' and 'pc'.
6814 (dwarf2_compile_cfa_to_ax): New function.
6815 (dwarf2_frame_cache): Update.
6817 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6819 * ada-lang.c (ada_type_of_array): Fix the size of the array
6820 in the case of an unconstrained packed array.
6822 2011-02-17 Yao Qi <yao@codesourcery.com>
6824 * common/Makefile.in: Add more targets for make.
6826 2011-02-16 Tom Tromey <tromey@redhat.com>
6828 * dwarf2loc.c (unimplemented): Fix typo.
6830 2011-02-16 Tom Tromey <tromey@redhat.com>
6832 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6833 (compile_dwarf_to_ax) <default>: Use unimplemented.
6834 <DW_OP_deref>: Update.
6835 (disassemble_dwarf_expression): Update.
6836 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6837 (decode_locdesc): Update.
6838 * dwarf2expr.h (dwarf_stack_op_name): Update.
6840 2011-02-16 Tom Tromey <tromey@redhat.com>
6842 * ax.h (struct aop_map) <name>: Now const.
6844 2011-02-16 Tom Tromey <tromey@redhat.com>
6846 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6849 2011-02-16 Yao Qi <yao@codesourcery.com>
6851 * infrun.c (get_displaced_step_closure_by_addr): New.
6852 * inferior.h: Declare it.
6853 * arm-tdep.c: (arm_pc_is_thumb): Call
6854 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6857 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6858 Jan Kratochvil <jan.kratochvil@redhat.com>
6861 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6863 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6864 Jan Kratochvil <jan.kratochvil@redhat.com>
6866 * value.c (value_contents_copy_raw): Extend describing comment.
6867 Assert that the destination contents we're overwriting are wholly
6869 (value_contents_copy): Extend describing comment.
6871 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6872 Jan Kratochvil <jan.kratochvil@redhat.com>
6874 * value.c (value_available_contents_eq): Remove redundant local
6875 variables. Fix available contents comparision.
6876 * value.h (value_available_contents_eq): Extend describing
6879 2011-02-16 Yao Qi <yao@codesourcery.com>
6881 * thread.c (info_threads_command): Add missing i18n markup and remove
6884 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6886 * breakpoint.c (longjmp_names): New variable.
6887 (struct breakpoint_objfile_data): New type.
6888 (breakpoint_objfile_key): New variable.
6889 (msym_not_found): New variable.
6890 (msym_not_found_p): New predicate.
6891 (get_breakpoint_objfile_data): New function.
6892 (create_overlay_event_breakpoint): Check per-objfile cache for
6894 (create_longjmp_master_breakpoint): Likewise.
6895 (create_std_terminate_master_breakpoint): Likewise.
6896 (create_exception_master_breakpoint): Likewise.
6897 (_initialize_breakpoint): Register per-objfile data key.
6899 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6901 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6903 (create_longjmp_master_breakpoint): Loop over longjmp names.
6904 (create_std_terminate_master_breakpoint): Const-propagate parameter
6906 (update_breakpoints_after_exec): Adjust.
6907 (breakpoint_re_set): Adjust.
6909 2011-02-15 Michael Snyder <msnyder@vmware.com>
6911 * thread.c (info_threads_command): Process arg as thread id,
6912 or list of thread ids.
6913 (thread_find_command): New command.
6914 (_initialize_thread): Document argument for info threads.
6915 Document 'thread find' command.
6916 * NEWS: Document new command "thread find".
6918 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6920 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6921 * aclocal.m4: Regenerated with aclocal-1.11.1.
6922 * common/configure: Regenerate with autoconf-2.64.
6924 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6926 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6927 bool data type to a size of one byte.
6929 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6930 Jan Kratochvil <jan.kratochvil@redhat.com>
6932 * target.c (memory_xfer_live_readonly_partial): Document where to
6933 look for interface description.
6935 2011-02-15 Yao Qi <yao@codesourcery.com>
6938 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6939 order to store PC value on stack instead of text section.
6941 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6943 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6944 the EFP register set size.
6945 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6946 data from the VMX register.
6947 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6948 and write data from/to the VMX register.
6950 2011-02-14 Michael Snyder <msnyder@vmware.com>
6952 * command.h (enum command_class): New class 'no_set_class', for
6953 "show" commands without a corresponding "set" command.
6954 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6955 * copying.c (_initialize_copying): Ditto for "show copying" and
6957 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6959 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6960 which there is no corresponding "set" command (eg. "show copying").
6962 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6963 Jan Kratochvil <jan.kratochvil@redhat.com>
6965 * exec.c (section_table_available_memory): Change `len' parameter
6967 * exec.h (section_table_available_memory): Ditto.
6968 * value.h (read_value_memory): Rename the `offset' parameter to
6971 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6972 Jan Kratochvil <jan.kratochvil@redhat.com>
6974 * memrange.c (compare_mem_ranges): Mention sort order in
6976 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6977 * tracepoint.c (traceframe_available_memory): Extend comment to
6978 mention what happens to RESULT when the target does not support
6981 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6982 Jan Kratochvil <jan.kratochvil@redhat.com>
6984 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6987 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6989 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6990 No longer handle NULL values.
6992 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6994 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6995 * value.c: Include "exceptions.h".
6996 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6998 * cp-abi.c: Include gdb_assert.h.
6999 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7000 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7002 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7003 parameters. No longer returns -1 on error.
7004 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7006 * cp-valprint.c: Include exceptions.h.
7007 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7008 the baseclass_offset. Handle unavailable base classes. Use
7009 val_print_invalid_address.
7010 * p-valprint.c: Include exceptions.h.
7011 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7012 when fetching the baseclass_offset. No longer expect
7013 baseclass_offset returning -1. Handle unavailable base classes.
7014 Use val_print_invalid_address.
7015 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7016 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7017 `embedded_offset' and `val' parameters. Adjust.
7018 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7019 parameter, and change its type to gdb_byte pointer. Add
7020 `embedded_offset' and `val' parameters. Adjust. No longer expect
7021 baseclass_offset returning -1.
7022 (value_dynamic_cast): Use value_contents_for_printing rather than
7023 value_contents. Adjust.
7024 (search_struct_field): No longer expect baseclass_offset returning
7026 (search_struct_method): If reading memory from the target is
7027 necessary, wrap it in a new value to pass to baseclass_offset. No
7028 longer expect baseclass_offset returning -1.
7029 (find_method_list): No longer expect baseclass_offset returning
7030 -1. Use value_contents_for_printing rather than value_contents.
7031 * valprint.c (val_print_invalid_address): New function.
7032 * valprint.h (val_print_invalid_address): Declare.
7033 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7034 and `val' parameters. No longer expect baseclass_offset returning
7036 * gnu-v2-abi.c: Include "exceptions.h".
7037 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7038 parameters. Handle unavailable memory. Recurse through
7039 gnuv2_baseclass_offset directly, rather than through
7040 baseclass_offset. No longer returns -1 on not found, instead
7042 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7043 `val' parameters. Adjust.
7045 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7047 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7048 almost but not quite adjacent.
7050 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7052 * value.h (value_entirely_available): Declare.
7053 * value.c (value_entirely_available): New function.
7054 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7055 real type if the pointer is unavailable.
7057 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7059 * valops.c (value_repeat): Use read_value_memory instead of
7062 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7064 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7065 * value.c (value_contents_copy_raw, value_contents_copy): New
7067 (value_primitive_field): Use value_contents_copy_raw instead of
7069 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7071 (value_array, value_slice): Ditto.
7072 * valarith.c (value_subscripted_rvalue): Use
7073 value_contents_copy_raw instead of memcpy.
7075 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7077 <unavailable> references.
7079 * valops.c (get_value_at): Use value_from_contents_and_address,
7080 avoiding read_memory.
7082 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7084 * c-valprint.c (c_val_print): Print a string with unavailable
7085 contents as an array.
7087 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7089 * value.h (unpack_bits_as_long): Delete declaration.
7090 (unpack_value_bits_as_long): Declare.
7091 (unpack_value_field_as_long): Declare.
7092 (value_field_bitfield): Declare.
7093 * value.c (unpack_bits_as_long): Rename to...
7094 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7095 value parameters. Return the extracted result in a new output
7096 parameter. If the value contents are unavailable, return false,
7097 otherwise return true.
7098 (unpack_value_bits_as_long): New.
7099 (unpack_field_as_long): Rename to...
7100 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7101 Add embedded_offset and value parameters. Return the extracted
7102 result in a new output parameter. If the value contents are
7103 unavailable, return false, otherwise return true.
7104 (unpack_value_field_as_long): New.
7105 (unpack_field_as_long_1): New.
7106 (unpack_field_as_long): Reimplement as wrapper around
7107 unpack_value_field_as_long_1.
7108 (value_field_bitfield): New function.
7109 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7110 unpack_value_bits_as_long. Mark the value as unavailable, if it
7112 * jv-valprint.c (java_print_value_fields): Use
7113 value_field_bitfield.
7114 * p-valprint.c (pascal_object_print_value_fields): Use
7115 value_field_bitfield.
7116 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7118 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7120 * value.c (get_internalvar_integer): Also return the int value of
7121 TYPE_CODE_INT INTERNALVAR_VALUE values.
7122 (set_internalvar): Don't special case TYPE_CODE_INT.
7124 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7126 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7127 INTERNALVAR_POINTER.
7129 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7130 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7131 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7133 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7135 * value.h (value_available_contents_eq): Declare.
7136 * value.c (find_first_range_overlap): New function.
7137 (value_available_contents_eq): New function.
7138 * valprint.c (val_print_array_elements): Use
7139 value_available_contents_eq.
7140 * ada-valprint.c (val_print_packed_array_elements): Use
7141 value_available_contents_eq.
7142 * jv-valprint.c (java_value_print): Use
7143 value_available_contents_eq.
7145 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7147 * target.c (target_read_live_memory): New function.
7148 (memory_xfer_live_readonly_partial): New.
7149 (memory_xfer_partial): If reading from a traceframe, fallback to
7150 reading unavailable read-only memory from read-only regions of
7152 * tracepoint.c (disconnect_tracing): Adjust.
7153 (set_current_traceframe): New, factored out from
7154 set_traceframe_number.
7155 (set_traceframe_number): Reimplement to only change the traceframe
7156 number on the GDB side.
7157 (do_restore_current_traceframe_cleanup): Adjust.
7158 (make_cleanup_restore_traceframe_number): New.
7159 (cur_traceframe_number): New global.
7160 (tfile_open): Set cur_traceframe_number to no traceframe.
7161 (set_tfile_traceframe): New function.
7162 (tfile_trace_find): If looking up a traceframe using any method
7163 other than by number, make sure the current tfile traceframe
7164 matches gdb's current traceframe. Update the current tfile
7165 traceframe if the lookup succeeded.
7166 (tfile_fetch_registers, tfile_xfer_partial)
7167 (tfile_get_trace_state_variable_value): Make sure the remote
7168 traceframe matches gdb's current traceframe.
7169 * remote.c (remote_traceframe_number): New global.
7170 (remote_open_1): Set it to -1.
7171 (set_remote_traceframe): New function.
7172 (remote_fetch_registers, remote_store_registers)
7173 (remote_xfer_memory, remote_xfer_partial)
7174 (remote_get_trace_state_variable_value): Make sure the remote
7175 traceframe matches gdb's current traceframe.
7176 (remote_trace_find): If looking up a traceframe using any method
7177 other than by number, make sure the current remote traceframe
7178 matches gdb's current traceframe. Update the current remote
7179 traceframe if the lookup succeeded.
7180 * infrun.c (fetch_inferior_event): Adjust.
7181 * tracepoint.h (set_current_traceframe): Declare.
7182 (get_traceframe_number, set_traceframe_number): Add describing
7185 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7187 Mark pieces of values as unavailable if the corresponding memory
7190 * valops.c: Include tracepoint.h.
7191 (value_fetch_lazy): Use read_value_memory.
7192 (read_value_memory): New.
7193 * value.h (read_value_memory): Declare.
7194 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7195 * exec.c (section_table_available_memory): New function.
7196 * exec.h (section_table_available_memory): Declare.
7198 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7200 * Makefile.in (SFILES): Add memrange.c.
7201 (HFILES_NO_SRCDIR): Add memrange.h.
7202 (COMMON_OBS): Add memrange.o.
7203 * memrange.c: New file.
7204 * memrange.h: New file.
7205 * tracepoint.c: Include memrange.h.
7206 (struct mem_range): Delete.
7207 (mem_range_s): Delete.
7208 (traceframe_available_memory): New function.
7209 * tracepoint.h (traceframe_available_memory): Declare.
7211 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7213 * target.h (struct traceframe_info): Forward declare.
7214 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7215 (struct target_ops) <to_traceframe_info>: New field.
7216 (target_traceframe_info): New.
7217 * target.c (update_current_target): Inherit and default
7219 * remote.c (PACKET_qXfer_traceframe_info): New.
7220 (remote_protocol_features): Register qXfer:traceframe-info:read.
7221 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7222 (remote_traceframe_info): New.
7223 (init_remote_ops): Install it.
7224 (_initialize_remote): Install "set/show remote traceframe-info"
7226 * tracepoint.h (parse_traceframe_info): Declare.
7227 * tracepoint.c (struct mem_range): New.
7228 (mem_range_s): New typedef.
7229 (struct traceframe_info): New.
7230 (traceframe_info): New global.
7231 (free_traceframe_info): New function.
7232 (clear_traceframe_info): New function.
7233 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7235 (build_traceframe_info): New function.
7236 (tfile_traceframe_info): New function.
7237 (init_tfile_ops): Install tfile_traceframe_info.
7238 (traceframe_info_start_memory, free_result): New functions.
7239 (memory_attributes, traceframe_info_elements): New globals.
7240 (parse_traceframe_info, get_traceframe_info): New functions.
7241 * features/traceframe-info.dtd: New file.
7242 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7244 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7246 Base support for <unavailable> value contents.
7248 * value.h (value_bytes_available): Declare.
7249 (mark_value_bytes_unavailable): Declare.
7250 * value.c (struct range): New struct.
7251 (range_s): New typedef.
7252 (ranges_overlap): New function.
7253 (range_lessthan): New function.
7254 (ranges_contain_p): New function.
7255 (struct value) <unavailable>: New field.
7256 (value_bytes_available): New function.
7257 (mark_value_bytes_unavailable): New function.
7258 (require_not_optimized_out): Constify parameter.
7259 (require_available): New function.
7260 (value_contents_all, value_contents): Require all bytes be
7262 (value_free): Free `unavailable'.
7263 (value_copy): Copy `unavailable'.
7264 * valprint.h (val_print_unavailable): Declare.
7265 * valprint.c (valprint_check_validity): Rename `offset' parameter
7266 to `embedded_offset'. If printing a scalar, check whether the
7267 value chunk is available.
7268 (val_print_unavailable): New.
7269 (val_print_scalar_formatted): Check whether the value is
7271 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7272 pretty-printing unavailable values.
7274 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7276 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7277 * c-typeprint.c (c_type_print_args): Update the function comment. New
7278 variable param_type, initialize it. Remove const/volatile qualifiers
7279 for language_cplus and !show_artificial. Use param_type.
7281 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7283 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7284 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7285 * symtab.h (struct symtab) <next>: Comment extension.
7287 2011-02-12 Yao Qi <yao@codesourcery.com>
7289 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7291 2011-02-11 Yao Qi <yao@codesourcery.com>
7293 * common/Makefile.in: Add copyright header.
7295 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7297 * infrun.c (proceed): Move switching out and in of tfind mode from
7299 (fetch_inferior_event): ... to here.
7301 2011-02-11 Yao Qi <yao@codesourcery.com>
7303 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7305 * configure.ac: Add common to sub dir.
7306 * configure: Regenerate.
7308 2011-02-11 Yao Qi <yao@codesourcery.com>
7312 * common/Makefile.in: New.
7313 * common/configure.ac: New.
7314 * common/aclocal.m4: New.
7315 * common/configure: Generate.
7317 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7319 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7320 side of the parenthesis.
7323 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7324 * vec.h (VEC_block_remove): Fix comment.
7326 2011-02-08 Michael Snyder <msnyder@vmware.com>
7328 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7330 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7332 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7333 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7336 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7339 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7341 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7342 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7344 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7346 * dwarf2read.c (read_subroutine_type): Set special calling
7347 convention flag for functions compiled by IBM XL C for OpenCL.
7348 * ppc-sysv-tdep.c: Include "dwarf2.h"
7349 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7351 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7352 IBM OpenCL vector types calling convention.
7353 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7354 (ppc_sysv_abi_broken_return_value): Likewise.
7355 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7356 types calling convention.
7357 (ppc64_sysv_abi_return_value): Likewise.
7358 * spu-tdep.c: Include "dwarf2.h"
7359 (spu_return_value): Implement IBM OpenCL vector types calling
7362 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7364 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7365 correct ABI for AltiVec vector arguments.
7367 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7369 * valprint.c (val_print): Extend comment.
7370 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7371 interface explanation to val_print.
7372 (ada_val_print_array): Adjust comment to current interface.
7373 (print_field_values): Adjust comment to current interface.
7374 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7375 explanation to val_print.
7376 * f-valprint.c (f_val_print): Ditto.
7377 * jv-valprint.c (java_val_print): Ditto.
7378 * m2-valprint.c (m2_val_print): Ditto.
7379 * p-valprint.c (pascal_val_print): Ditto.
7381 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7383 * breakpoint.c (parse_breakpoint_sals): Fix description.
7385 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7386 Oguz Kayral <oguzkayral@gmail.com>
7388 * python/py-inferior.c (python_on_normal_stop): New function.
7389 (python_on_resume): New function.
7390 (python_inferior_exit): New function.
7391 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7392 inferior_exit observers.
7393 * python/py-evtregistry.c: New file.
7394 * python/py-threadevent.c : New file.
7395 * python/py-event.c: New file.
7396 * python/py-evts.c: New file.
7397 * python/py-continueevent.c: New file.
7398 * python/py-bpevent.c: New file.
7399 * python/py-signalevent.c: New file.
7400 * python/py-exetiedevent.c: New file.
7401 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7402 Move struct breakpoint_object from here...
7403 * python/python-internal.h: ... to here.
7404 * python/py-event.h: New file.
7405 * python/py-events.h: New file.
7406 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7407 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7408 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7409 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7410 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7411 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7412 Add build rules for all the above.
7414 2011-02-04 Tom Tromey <tromey@redhat.com>
7416 * dwarf2read.c (dwarf2_section_empty_p): New function.
7417 (dwarf2_read_section): Use dwarf2_section_empty_p.
7418 (dwarf2_section_size): New function.
7419 (dwarf2_get_section_info): Unconditionally read section.
7420 (dwarf2_read_index): Use dwarf2_section_empty_p.
7421 (partial_read_comp_unit_head): Use dwarf2_section_size.
7422 (dwarf2_symbol_mark_computed): Likewise.
7424 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7426 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7428 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7430 * mips-linux-tdep.c: Include xml-syscall.h.
7431 (mips_linux_get_syscall_number): New function.
7432 (mips_linux_init_abi): Add calls to
7433 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7434 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7435 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7436 * syscalls/mips-n32-linux.xml: New file.
7437 * syscalls/mips-n64-linux.xml: New file.
7438 * syscalls/mips-o32-linux.xml: New file.
7440 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7442 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7443 Complain about inverted range entries.
7444 (dwarf2_record_block_ranges): Likewise.
7446 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7449 * breakpoint.c (update_watchpoint): Fix name of the
7450 update_global_location_list function.
7451 (print_one_breakpoint): Fix typo.
7452 (_initialize_breakpoint): Remove extra space in hbreak help
7454 * breakpoint.h (struct bp_location) <length>: Fix field
7457 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7459 * regcache.c (registers_changed_ptid): Don't explictly always
7460 clear `current_regcache'. Only clear current_thread_ptid and
7461 current_thread_arch when PTID matches. Only reinit the frame
7462 cache if PTID matches the current inferior_ptid. Move alloca(0)
7464 (registers_changed): ... here.
7466 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7468 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7469 starts with __stack_chk_guard as stack guard symbol.
7471 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7473 * disasm.c (compare_lines): Handle the end of sequence markers
7474 within the line table to better support disassembling over
7475 compilation unit boundaries.
7477 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7479 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7480 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7481 implementation even if no symbols are available.
7482 (thumb_analyze_prologue): Update call to skip_prologue_function.
7483 (arm_analyze_prologue): Likewise.
7485 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7487 * arm-tdep.c: Include "observer.h".
7488 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7489 (arm_exidx_data_key): New static variable.
7490 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7491 (struct arm_exidx_data): Likewise.
7492 (arm_exidx_data_free): New function.
7493 (arm_compare_exidx_entries): Likewise.
7494 (arm_obj_section_from_vma): Likewise.
7495 (arm_exidx_new_objfile): Likewise.
7496 (arm_find_exidx_entry): Likewise.
7497 (arm_exidx_fill_cache): Likewise.
7498 (arm_exidx_unwind_sniffer): Likewise.
7499 (arm_exidx_unwind): New global variable.
7500 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7501 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7502 observer. Register arm_exidx_data_key as objfile data.
7504 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7506 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7507 due to accessing uninitialized variable. Fix indentation.
7509 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7511 * c-valprint.c (c_value_print): When doing virtual base pointer
7512 adjustment, create a new value with adjusted contents rather than
7513 changing the contents of the value being printed (and getting it
7516 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7518 * xml-support.c (xml_find_attribute): New.
7519 (xinclude_start_include): Use it.
7520 * xml-support.h (xml_find_attribute): Declare.
7521 * memory-map.c (memory_map_start_memory)
7522 (memory_map_start_property): Use xml_find_attribute.
7523 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7525 * remote.c (start_thread): Use xml_find_attribute.
7526 * solib-target.c (library_list_start_segment)
7527 (library_list_start_section, library_list_start_library)
7528 (library_list_start_list): Use xml_find_attribute.
7529 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7530 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7531 (tdesc_start_field): Use xml_find_attribute.
7533 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7535 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7536 (BUILD_OCL_VTYPES): Update.
7538 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7540 * configure.ac: Work around non-GNU sed limitation when computing
7541 python version number.
7542 * configure: Regenerate.
7544 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7546 Fix debug printing of TYPE_INSTANCE.
7547 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7548 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7550 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7552 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7553 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7554 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7555 * ada-operator.inc: Rename the file to ...
7556 * ada-operator.def: ... here, wrap all the entries by macro OP.
7557 * expprint.c (op_name_standard): Remove all the entries. Include
7558 "std-operator.def" instead.
7559 * expression.h (enum exp_opcode): Include "std-operator.def" and
7560 "ada-operator.def". Move all the entries ...
7561 * std-operator.def: ... here, wrap all the entries by macro OP.
7563 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7565 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7566 * breakpoint.c (remove_jit_event_breakpoints): New function.
7567 * jit.c (jit_descriptor_addr): Delete.
7568 (registering_code): Delete.
7569 (clear_int): Delete.
7570 (jit_inferior_data): New variable.
7571 (struct jit_inferior_data): New type.
7572 (get_jit_inferior_data): New function.
7573 (jit_inferior_data_cleanup): New function.
7574 (jit_read_descriptor): Adjust.
7575 (jit_register_code): Adjust.
7576 (jit_breakpoint_re_set_internal): New function; move code here ...
7577 (jit_inferior_init): ... from here.
7578 (jit_breakpoint_re_set): Adjust.
7579 (jit_reset_inferior_data_and_breakpoints): New function.
7580 (jit_inferior_created_observer): Adjust.
7581 (jit_inferior_exit_hook): Adjust.
7582 (jit_executable_changed_observer): New function.
7583 (jit_event_handler): Adjust.
7584 (_initialize_jit): Adjust.
7586 2011-01-31 Michael Snyder <msnyder@vmware.com>
7588 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7591 2011-01-31 Tom Tromey <tromey@redhat.com>
7594 * python/python.c (execute_gdb_command): Call
7595 prevent_dont_repeat.
7596 * top.c (suppress_dont_repeat): New global.
7597 (dont_repeat): Use it.
7598 (prevent_dont_repeat): New function.
7599 * command.h (prevent_dont_repeat): Declare.
7601 2011-01-31 Tom Tromey <tromey@redhat.com>
7603 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7604 * python/py-breakpoint.c (bppy_set_silent): Use
7605 breakpoint_set_silent.
7606 (bppy_set_thread): Use breakpoint_set_thread.
7607 (bppy_set_task): Use breakpoint_set_task.
7608 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7609 (breakpoint_set_task): Declare.
7610 (make_breakpoint_silent): Remove.
7611 * breakpoint.c (breakpoint_set_silent): New function.
7612 (breakpoint_set_thread): Likewise.
7613 (breakpoint_set_task): Likewise.
7614 (make_breakpoint_silent): Remove.
7616 2011-01-31 Tom Tromey <tromey@redhat.com>
7618 * breakpoint.h (user_breakpoint_p): Declare.
7619 * breakpoint.c (user_breakpoint_p): New function.
7620 (breakpoint_1): Use it.
7621 (save_breakpoints): Likewise.
7623 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7625 * configure.ac: Add handling of Python distribution on Windows.
7626 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7627 sysconfig variables are not defined, then do not use them.
7628 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7629 instead. On Windows, return all paths using forward-slashes
7630 rather than backslashes.
7632 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7634 * configure.ac: Remove fallback behavior for building
7635 against Python. Remove tweaking of Python include path.
7636 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7637 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7638 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7639 Always restore CPPFLAGS and LIBS after linking test.
7640 * configure: Regenerated.
7641 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7642 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7643 * python/python-internal.h: Adjust includes of Python .h files.
7645 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7647 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7650 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7652 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7655 2011-01-31 Yao Qi <yao@codesourcery.com>
7657 * arm-linux-nat.c: Update calls to regcache_register_status
7658 instead of regcache_valid_p.
7659 * aix-thread.c: Likewise.
7660 * i386gnu-nat.c: Likewise.
7662 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7665 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7666 touching TYPE_FIELD_ARTIFICIAL.
7668 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7670 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7673 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7675 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7676 selected, don't try iterating over the traceframe's blocks.
7677 (tfile_has_stack): If there's no traceframe selected, then there's
7679 (tfile_has_registers): If there's no traceframe selected, then
7680 there's no registers.
7682 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7684 * target.c (memory_xfer_partial): No need to restore shadows if we
7685 haven't read anything.
7687 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7689 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7690 and val_print_scalar_formatted.
7692 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7694 * tracepoint.c (tfile_read): New.
7695 (tfile_open): Use it.
7696 (tfile_get_traceframe_address): Use it.
7697 (tfile_trace_find): Use it.
7698 (walk_blocks_callback_func): New typedef.
7699 (match_blocktype): New function.
7700 (traceframe_walk_blocks): New function.
7701 (traceframe_find_block_type): New function.
7702 (tfile_fetch_registers, tfile_xfer_partial)
7703 (tfile_get_trace_state_variable_value): Use
7704 traceframe_find_block_type and tfile_read.
7706 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7708 * remote-mips.c: Add internationalization mark ups. Remove
7709 trailing \n from already marked up strings.
7711 2011-01-26 Tom Tromey <tromey@redhat.com>
7713 * python/py-prettyprint.c (print_string_repr): Clear
7714 'addressprint' option when calling val_print_string.
7715 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7716 option when calling val_print_string.
7718 2011-01-26 Tom Tromey <tromey@redhat.com>
7720 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7722 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7724 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7725 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7726 (gdb_py_long_as_ulongest): New defines.
7727 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7728 (gdb_py_int_as_long): Declare.
7729 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7730 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7731 (valpy_long): Add comment.
7732 * python/py-utils.c (get_addr_from_python): Use
7733 gdb_py_long_as_ulongest. Handle overflow properly.
7734 (gdb_py_object_from_longest): New function.
7735 (gdb_py_object_from_ulongest): Likewise.
7736 (gdb_py_int_as_long): Likewise.
7737 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7738 * python/py-symtab.c (salpy_get_pc): Use
7739 gdb_py_long_from_ulongest.
7740 (salpy_get_line): Use PyInt_FromLong.
7741 * python/py-param.c (set_parameter_value): Use
7743 * python/py-lazy-string.c (stpy_get_address): Use
7744 gdb_py_long_from_ulongest.
7745 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7746 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7747 * python/py-breakpoint.c (bppy_set_thread): Use
7749 (bppy_set_task): Likewise.
7750 (bppy_set_ignore_count): Likewise.
7751 (bppy_set_hit_count): Likewise.
7752 * python/py-block.c (blpy_get_start): Use
7753 gdb_py_object_from_ulongest.
7754 (blpy_get_end): Likewise.
7755 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7757 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7760 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7761 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7762 equality test for objfile, initialize addr_low if needed.
7764 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7766 * tui/tui-regs.c (tui_register_format): Remove dead code.
7768 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7770 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7771 instead of print_scalar_formatted.
7772 (print_scalar_formatted): Don't handle 's' format strings here,
7773 and add an assertion that we never see such format here.
7774 * valprint.h (val_print_scalar_formatted): Declare.
7775 * valprint.c (val_print_scalar_formatted): New.
7776 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7777 instead of print_scalar_formatted.
7778 * jv-valprint.c (java_val_print): Ditto.
7779 * p-valprint.c (pascal_val_print): Ditto.
7780 * ada-valprint.c (ada_val_print_1): Ditto.
7781 * f-valprint.c (f_val_print): Ditto.
7782 * infcmd.c (registers_info): Ditto.
7783 * m2-valprint.c (m2_val_print): Ditto.
7785 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7787 * m2-valprint.c (print_unbounded_array): Pass
7788 value_contents_for_printing rather than value_contents, to
7789 m2_print_array_contents. Also pass in the value.
7791 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7793 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7794 (save_gdb_index_command): Switch to .gdb_index version 4.
7796 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7798 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7799 than frame_register, and always pass a valid value to val_print.
7801 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7803 Centralize printing "<optimized out>".
7805 * valprint.h (val_print_optimized_out): Declare.
7806 * cp-valprint.c (cp_print_value_fields): Use
7807 val_print_optimized_out.
7808 * jv-valprint.c (java_print_value_fields): Ditto.
7809 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7810 * printcmd.c (print_formatted): Ditto.
7811 * valprint.c (valprint_check_validity): Ditto.
7812 (value_check_printable): Ditto.
7813 (val_print_optimized_out): New.
7815 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7817 * infcmd.c (default_print_registers_info): Allocate values so to
7818 never pass a NULL value to val_print.
7820 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7822 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7823 boolean. Make sure to always pass a value that matches the
7824 contents buffer to callees. Preserve `address' for following
7826 * value.c (value_contents_for_printing_const): New.
7827 (value_address): Constify value argument.
7828 * value.h (value_contents_for_printing_const): Declare.
7829 (value_address): Constify value argument.
7831 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7833 * regcache.c (struct regcache_descr): Rename
7834 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7835 and sizeof_cooked_register_valid_p to
7836 sizeof_cooked_register_status.
7837 (init_regcache_descr): Adjust.
7838 (struct regcache): Rename register_valid_p field to
7840 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7841 (do_cooked_read): Adjust.
7842 (regcache_valid_p): Rename to ...
7843 (regcache_register_status): ... this. Adjust.
7844 (regcache_invalidate): Adjust.
7845 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7847 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7848 as unavailable, not valid.
7849 (regcache_dump): Adjust.
7850 * regcache.h (enum register_status): New.
7851 (regcache_register_status): Declare.
7852 (regcache_invalidate): Delete declaration.
7853 * corelow.c (get_core_registers): Adjust.
7854 * tracepoint.c (tfile_fetch_registers): Adjust.
7855 * trad-frame.c (REG_VALUE): Rename to ...
7856 (TF_REG_VALUE): ... this.
7857 (REG_UNKNOWN): Rename to ...
7858 (TF_REG_UNKNOWN): ... this.
7859 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7860 * mi/mi-main.c (register_changed_p): Adjust.
7862 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7864 * regcache.c (struct regcache_descr): Remove outdated comment.
7865 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7867 (regcache_xmalloc): Rename to ...
7868 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7869 Allocate the regcache type accordingly.
7870 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7871 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7872 cooked registers, not raw.
7873 (regcache_dup_no_passthrough): Delete.
7874 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7875 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7876 mention obsolete write_register_bytes.
7877 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7879 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7881 Stop remote_read_bytes from handling partial reads itself.
7883 * remote-fileio.c: Include target.h.
7884 (remote_fileio_write_bytes): Delete.
7885 (remote_fileio_func_open, remote_fileio_func_write)
7886 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7888 (remote_fileio_func_stat): Use target_read_memory and
7889 target_write_memory.
7890 (remote_fileio_func_gettimeofday): Use target_write_memory.
7891 (remote_fileio_func_system): Use target_read_memory.
7892 * remote.c (remote_write_bytes): Make it static.
7893 (remote_read_bytes): Don't handle partial reads here.
7894 * remote.h (remote_read_bytes): Delete declaration.
7896 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7898 Simplify XML parsing a bit.
7900 * xml-support.h (gdb_xml_parse_quick): Declare.
7901 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7902 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7904 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7905 gdb_xml_create_parser_and_cleanup_1.
7906 (gdb_xml_parse_quick): New.
7907 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7908 * osdata.c (osdata_parse): Ditto.
7909 * remote.c (remote_threads_info): Ditto.
7910 * solib-target.c (solib_target_parse_libraries): Ditto.
7911 * xml-syscall.c (syscall_parse_xml): Ditto.
7912 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7914 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7916 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7917 with remote-mips.o added to gdb_target_obs.
7918 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7920 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7922 * ada-valprint.c (val_print_packed_array_elements): Pass the
7923 correct struct value to val_print.
7924 (ada_val_print_1): Ditto.
7926 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7928 Don't lose embedded_offset in printing routines throughout.
7930 * valprint.h (val_print_array_elements): Change prototype.
7931 * valprint.c (val_print_array_elements): Add `embedded_offset'
7932 parameter, and adjust to pass it down to val_print, while passing
7933 `valaddr' or `address' unmodified. Take embedded_offset into
7934 account when checking repetitions.
7935 * c-valprint.c (c_val_print): Pass embedded_offset to
7936 val_print_array_elements instead of adjusting `valaddr' and
7938 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7939 embedded_offset to val_print_array_elements instead of adjusting
7941 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7942 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7943 val_print_array_elements and pascal_object_print_value_fields
7944 instead of adjusting `valaddr'.
7945 (pascal_object_print_value_fields): Add `offset' parameter, and
7947 (pascal_object_print_value): Add `offset' parameter, and adjust to
7949 (pascal_object_print_static_field): Use
7950 value_contents_for_printing/value_embedded_offset, rather than
7952 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7953 parameter, and adjust to use it. Use
7954 value_contents_for_printing/value_embedded_offset, rather than
7956 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7957 (ada_val_print_array): Add `offset' parameter, and adjust to use
7959 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7960 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7961 Instead work with offsets. Use
7962 value_contents_for_printing/value_embedded_offset, rather than
7963 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7964 and use value_from_pointer to extract a target pointer, rather
7965 than value_from_longest.
7966 (print_variant_part): Add `offset' parameter. Replace
7967 `outer_valaddr' parameter by a new `outer_offset' parameter.
7968 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7969 (ada_value_print): Use
7970 value_contents_for_printing/value_embedded_offset, rather than
7972 (print_record): Add `offset' parameter, and adjust to pass it
7974 (print_field_values): Add `offset' parameter. Replace
7975 `outer_valaddr' parameter by a new `outer_offset' parameter.
7976 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7977 Use value_contents_for_printing/value_embedded_offset, rather than
7979 * d-valprint.c (dynamic_array_type): Use
7980 value_contents_for_printing/value_embedded_offset, rather than
7982 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7983 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7984 (java_print_value_fields): Take `offset' into account. Don't
7985 re-adjust `valaddr'. Instead pass down adjusted offsets.
7986 (java_val_print): Take `embedded_offset' into account. Pass it to
7987 java_print_value_fields.
7988 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7989 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7990 down adjusted offsets.
7991 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7992 (f_val_print): Take `embedded_offset' into account.
7994 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7996 * inflow.c: Include "gdbcmd.h".
7997 (interactive_mode): New static global, moved here from top.c.
7998 (show_interactive_mode): New function, moved here from top.c.
7999 use gdb_has_a_terminal instead of input_from_terminal_p to
8000 determine the current mode.
8001 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8003 (_initialize_inflow): Add the "set/show interactive-mode"
8004 commands. Moved here from top.c, after having adjusted slightly
8006 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8008 (input_from_terminal_p): Remove handling of "interactive-mode"
8009 setting, moved to infow.c.
8010 (init_main): Remove creation of the "set/show interactive-mode"
8011 commands, moved to inflow.c.
8013 2011-01-19 Joel Brobecker <brobecker@adacore.com>
8015 * NEWS: Add entry for native ia64-hpux support.
8017 2011-01-19 Tom Tromey <tromey@redhat.com>
8020 * thread.c (free_thread): Free 'name'.
8021 (print_thread_info): Emit thread name. Change CLI output.
8022 (thread_name_command): New function.
8023 (do_captured_thread_select): Emit newline.
8024 (_initialize_thread): Register 'thread name' command.
8025 * target.h (struct target_ops) <to_thread_name>: New field.
8026 (target_thread_name): New macro.
8027 * target.c (update_current_target): Handle to_thread_name.
8028 * python/py-infthread.c (thpy_get_name): New function.
8029 (thpy_set_name): Likewise.
8030 (thread_object_getset): Add "name".
8031 * linux-nat.c (linux_nat_thread_name): New function.
8032 (linux_nat_add_target): Set to_thread_name.
8033 * gdbthread.h (struct thread_info) <name>: New field.
8035 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8037 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8038 (ada_val_print_1): Likewise.
8040 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8042 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8043 upper limit address is not greater than the function end address
8044 when the upper limit could not be computed using the debugging
8047 2011-01-17 Tom Tromey <tromey@redhat.com>
8049 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8051 * utils.c: Include gdb_regex.h.
8052 (do_regfree_cleanup): New function.
8053 (make_regfree_cleanup): Likewise.
8054 (get_regcomp_error): Likewise.
8055 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8057 2011-01-17 Tom Tromey <tromey@redhat.com>
8059 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8062 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8064 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8065 for internal variables.
8066 (last_was_structop): New static variable.
8067 (COMPLETE): New token.
8068 (field_exp): New rule to group all '.' suffix handling.
8069 Add mark_struct_expression calls when approriate to be able
8070 to correctly find fields for completion.
8071 (yylex): Adapt to handle field completion and set INTVAR when
8074 2011-01-14 Yao Qi <yao@codesourcery.com>
8076 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8077 save_reggroup, restore_reggroup and all_reggroup.
8079 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8081 * ada-valprint. (ada_printchar): Use the correct type length
8082 in call to ada_emit_char.
8083 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8085 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8087 * solib-som.h (hpux_major_release): Declare variable here.
8088 * solib-som.c: Remove <sys/utsname.h> header.
8089 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8090 (hpux_major_release): Make global, change default value to
8091 DEFAULT_HPUX_MAJOR_RELEASE.
8092 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8093 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8094 Add "solib-som.h" header.
8095 (set_hpux_major_release): New function.
8096 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8098 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8100 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8102 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8104 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8105 new-line at end of warning message.
8106 (ia64_hpux_store_register): Remove trailing new-line at end of
8108 * ia64-hpux-tdep.c: Rephrase comment.
8109 * solib-ia64-hpux.c (struct dld_info): Change type of field
8110 dld_flags from "long long" to ULONGEST.
8112 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8114 * target.h (deprecated_child_ops): Delete declaration.
8115 * target.c (deprecated_child_ops): Delete definition.
8117 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8119 * Makefile.in (hpux-thread.o): Delete rule.
8120 * configure.ac: Don't check for HPUX DCE threads support.
8121 * configure, config.in: Regenerate.
8122 * hppa-hpux-nat.c (child_suppress_run): Delete.
8123 (hppa_hpux_child_can_run): Delete.
8124 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8125 * hpux-thread.c: Delete.
8127 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8129 * hpux-thread.c (hpux_pid_to_str): Delete.
8131 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8133 * ada-valprint.c (ada_emit_char): Remove strange code.
8134 Check that c is <= UCHAR_MAX before passing it to isascii.
8135 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8137 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8139 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8140 to the case where instream is stdin.
8142 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8144 * ia64-tdep.h (struct regcache): Forward declare.
8145 (struct ia64_infcall_ops): New struct type.
8146 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8148 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8149 Renames ia64_find_global_pointer.
8150 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8151 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8152 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8154 (ia64_infcall_ops): New static global constant.
8155 (ia64_gdbarch_init): Set tdep->infcall_ops.
8156 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8157 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8158 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8159 (ia64_hpux_dummy_code): New static global constant.
8160 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8161 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8162 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8164 (ia64_hpux_infcall_ops): New static global constant.
8165 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8166 for inferior function calls to work properly on ia64-hpux.
8168 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8170 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8171 * ia64-tdep.h (struct frame_info): forward declaration.
8172 (struct gdbarch_tdep): Add field size_of_register_frame.
8173 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8174 to determine the size of the register frame.
8175 (ia64_size_of_register_frame): New function.
8176 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8177 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8178 (IA64_HPUX_UREG_REASON): New macro.
8179 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8181 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8182 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8183 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8186 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8188 Add support for ia64-hpux.
8189 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8190 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8192 * configure.host: Add handling for ia64-hpux hosts. Add associated
8194 * configure.tgt: Add handling for ia64-hpux targets.
8195 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8196 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8197 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8199 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8201 [ttrace] Compute thread list immediately after attach.
8202 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8204 (inf_ttrace_attach): Use it.
8206 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8208 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8209 if we could not determine the frame's function address. Instead,
8210 use the frame's PC, and then continue.
8212 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8214 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8215 not already defined.
8217 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8219 * ia64-tdep.c (ia64_struct_type_p): New function.
8220 (ia64_extract_return_value): Handle integral values that are
8221 less than 8 bytes long.
8222 (ia64_push_dummy_call): Likewise.
8224 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8226 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8227 floatformat_ia64_ext.
8228 (floatformat_ia64_ext_big): New static const.
8229 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8231 2011-01-12 Tom Tromey <tromey@redhat.com>
8233 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8235 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8236 (mi_cmd_thread_list_ids): Likewise.
8237 (mi_cmd_data_list_changed_registers): Likewise.
8238 (mi_cmd_data_list_register_values): Likewise.
8239 (mi_cmd_data_write_register_values): Likewise.
8240 (mi_cmd_data_evaluate_expression): Likewise.
8241 (mi_cmd_data_read_memory): Likewise.
8242 (mi_cmd_data_read_memory_bytes): Likewise.
8243 (mi_cmd_data_write_memory): Likewise.
8244 (mi_cmd_enable_timings): Likewise.
8245 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8246 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8247 (mi_cmd_var_delete): Likewise.
8248 (mi_cmd_var_set_format): Likewise.
8249 (mi_cmd_var_show_format): Likewise.
8250 (mi_cmd_var_info_num_children): Likewise.
8251 (mi_cmd_var_list_children): Likewise.
8252 (mi_cmd_var_info_type): Likewise.
8253 (mi_cmd_var_info_expression): Likewise.
8254 (mi_cmd_var_show_attributes): Likewise.
8255 (mi_cmd_var_assign): Likewise.
8256 (mi_cmd_var_update): Likewise.
8257 (mi_cmd_enable_pretty_printing): Likewise.
8258 (mi_cmd_var_set_update_range): Likewise.
8259 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8261 (mi_cmd_target_file_put): Likewise.
8262 (mi_cmd_target_file_delete): Likewise.
8263 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8265 (mi_cmd_stack_info_depth): Likewise.
8266 (mi_cmd_stack_list_locals): Likewise.
8267 (mi_cmd_stack_list_args): Likewise.
8268 (mi_cmd_stack_select_frame): Likewise.
8269 (mi_cmd_stack_select_frame): Likewise.
8270 (mi_cmd_stack_info_frame): Likewise.
8271 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8273 (mi_cmd_file_list_exec_source_files): Likewise.
8274 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8275 (mi_cmd_env_cd): Likewise.
8276 (mi_cmd_env_path): Likewise.
8277 (mi_cmd_env_dir): Likewise.
8278 (mi_cmd_inferior_tty_show): Likewise.
8279 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8280 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8281 (mi_cmd_break_watch): Likewise.
8283 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8285 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8286 (ppc_linux_insert_hw_breakpoint): Likewise.
8287 (ppc_linux_remove_hw_breakpoint): Likewise.
8288 (ppc_linux_insert_watchpoint): Likewise.
8290 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8291 Jan Kratochvil <jan.kratochvil@redhat.com>
8293 PR fortran/11104 and DWARF unbound arrays detection.
8294 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8295 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8296 unspecified upper bound.
8297 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8298 variables array_size_array, tmp_type and offset_item. New variable
8299 array. Remove call to f77_get_upperbound. New variables array_type
8300 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8301 the final call to deprecated_set_value_type.
8303 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8305 Make value allocations more lazy.
8306 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8307 instead of allocate_value and set_value_lazy when possible.
8308 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8309 instead of allocate_value and set_value_lazy.
8310 * findvar.c (value_of_register_lazy): Likewise.
8311 (read_var_value): Remove V preallocation, call just check_typedef in
8312 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8313 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8314 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8315 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8316 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8317 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8318 the end, remove set_value_lazy there.
8319 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8320 instead of allocate_value and set_value_lazy when possible.
8321 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8322 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8323 of allocate_value and set_value_lazy.
8324 (value_from_contents_and_address): Use allocate_value_lazy instead of
8325 allocate_value and set_value_lazy when possible.
8327 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8329 * disasm.c (dump_insns): Support dumping opcodes for MI.
8330 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8331 dumping of instruction opcodes.
8333 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8335 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8338 2011-01-11 Tom Tromey <tromey@redhat.com>
8340 * thread.c (do_captured_thread_select): Emit newline before
8343 2011-01-11 Michael Snyder <msnyder@vmware.com>
8345 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8346 * score-tdep.c: Ditto.
8347 * score-tdep.h: Ditto.
8348 * ser-base.c: Ditto.
8349 * ser-go32.c: Ditto.
8352 * ser-mingw.c: Ditto.
8353 * ser-pipe.c: Ditto.
8355 * ser-unix.c: Ditto.
8356 * sh64-tdep.c: Ditto.
8357 * shnbsd-nat.c: Ditto.
8361 * solib-darwin.c: Ditto.
8362 * solib-frv.c: Ditto.
8364 * solib-irix.c: Ditto.
8365 * solib-osf.c: Ditto.
8366 * solib-pa64.c: Ditto.
8367 * solib-som.c: Ditto.
8368 * solib-spu.c: Ditto.
8369 * solib-sunos.c: Ditto.
8370 * solib-svr4.c: Ditto.
8372 * sol-thread.c: Ditto.
8376 * sparc64-linux-tdep.c: Ditto.
8377 * sparc64-tdep.c: Ditto.
8378 * sparc-linux-nat.c: Ditto.
8379 * sparc-linux-tdep.c: Ditto.
8380 * sparc-sol2-nat.c: Ditto.
8381 * sparc-sol2-tdep.c: Ditto.
8382 * sparc-tdep.c: Ditto.
8383 * sparc-tdep.h: Ditto.
8384 * spu-tdep.c: Ditto.
8385 * stabsread.c: Ditto.
8386 * stabsread.h: Ditto.
8394 * target-descriptions.c: Ditto.
8395 * target-descriptions.h: Ditto.
8397 * target-memory.c: Ditto.
8398 * terminal.h: Ditto.
8401 * tracepoint.c: Ditto.
8402 * tracepoint.h: Ditto.
8403 * trad-frame.h: Ditto.
8404 * typeprint.c: Ditto.
8406 2011-01-11 Michael Snyder <msnyder@vmware.com>
8408 * ui-file.c: Comment cleanup, mostly periods and spaces.
8413 * v850-tdep.c: Ditto.
8414 * valarith.c: Ditto.
8416 * valprint.c: Ditto.
8417 * valprint.h: Ditto.
8422 * vax-tdep.c: Ditto.
8426 * windows-nat.c: Ditto.
8427 * windows-tdep.c: Ditto.
8428 * xcoffread.c: Ditto.
8429 * xcoffsolib.c: Ditto.
8430 * xml-support.c: Ditto.
8431 * xstormy16-tdep.c: Ditto.
8432 * xtensa-tdep.c: Ditto.
8433 * xtensa-tdep.h: Ditto.
8435 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8437 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8438 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8440 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8441 Thiago Jung Bauermann <bauerman@br.ibm.com>
8443 Implement support for PowerPC BookE ranged watchpoints.
8445 (struct breakpoint_ops) <resources_needed>: New method.
8446 Initialize to NULL in all existing breakpoint_ops instances.
8447 (struct breakpoint) <exact>: New field.
8448 (target_exact_watchpoints): Declare external global.
8449 * breakpoint.c (target_exact_watchpoints): New global flag.
8450 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8451 b->enable_state to bp_enabled before calling
8452 hw_watchpoint_used_count.
8453 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8454 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8456 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8457 if the watchpoint is exact.
8458 (resources_needed_watchpoint): New function.
8459 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8460 (watch_command_1): Set b->exact if the user asked for an exact
8461 watchpoint and one can be set.
8462 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8463 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8464 the user asks for an exact watchpoint and one can be set. Return
8465 number of needed debug registers to watch the expression.
8466 * gdbtypes.c (is_scalar_type): New function, based on
8467 valprint.c:scalar_type_p.
8468 (is_scalar_type_recursive): New function.
8469 * gdbtypes.h (is_scalar_type_recursive): Declare.
8470 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8471 handle regions when ranged watchpoints are available.
8472 (create_watchpoint_request): New function.
8473 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8474 create_watchpoint_request.
8475 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8476 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8477 `set powerpc' and `show powerpc' commands.
8478 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8479 Mention documentation comment in the target macro.
8480 (target_region_ok_for_hw_watchpoint): Document return value.
8482 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8484 * breakpoint.c (update_watchpoint): Decide on using a software or
8485 hardware watchpoint after the bp_locations are created.
8487 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8489 Convert hardware watchpoints to use breakpoint_ops.
8490 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8491 <insert_location>: ... this. Return int instead of void.
8492 Accept pointer to struct bp_location instead of pointer to
8493 struct breakpoint. Adapt all implementations.
8494 (breakpoint_ops) <remove>: Rename to...
8495 <remove_location>: ... this. Accept pointer to struct bp_location
8496 instead of pointer to struct breakpoint. Adapt all implementations.
8497 * breakpoint.c (insert_catchpoint): Delete function.
8498 (insert_bp_location): Call the watchpoint or catchpoint's
8499 breakpoint_ops.insert method.
8500 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8501 breakpoint_ops.remove method.
8502 (insert_watchpoint, remove_watchpoint): New functions.
8503 (watchpoint_breakpoint_ops): New structure.
8504 (watch_command_1): Initialize the OPS field.
8505 * inf-child.c (inf_child_insert_fork_catchpoint)
8506 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8507 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8508 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8510 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8511 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8512 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8513 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8514 * target.c (update_current_target): Change default implementation of
8515 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8516 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8517 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8518 to_set_syscall_catchpoint to return_one.
8519 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8520 (debug_to_insert_exec_catchpoint): Report return value.
8521 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8522 (to_insert_exec_catchpoint): Change declaration to return int instead
8525 2011-01-11 Michael Snyder <msnyder@vmware.com>
8527 * arm-tdep.c: Internationalization.
8530 * fork-child.c: Ditto.
8531 * nto-procfs.c: Ditto.
8532 * ppc-sysv-tdep.c: Ditto.
8534 * remote-mips.c: Ditto.
8536 * rs6000-nat.c: Ditto.
8537 * rs6000-tdep.c: Ditto.
8541 * xml-support.c: Ditto.
8542 * mi/mi-cmd-break.c: Ditto.
8543 * mi/mi-cmd-var.c: Ditto.
8544 * mi/mi-interp.c: Ditto.
8545 * mi/mi-main.c: Ditto.
8547 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8549 * remote-sim.c (gdbsim_store_register): Update API to
8550 sim_store_register to check more error conditions.
8552 2011-01-10 Michael Snyder <msnyder@vmware.com>
8554 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8555 * nto-tdep.c: Ditto.
8556 * nto-tdep.h: Ditto.
8557 * objc-exp.y: Ditto.
8558 * objc-lang.c: Ditto.
8559 * objfiles.c: Ditto.
8560 * objfiles.h: Ditto.
8561 * observer.c: Ditto.
8562 * opencl-lang.c: Ditto.
8565 * parser-defs.h: Ditto.
8568 * posix-hdep.c: Ditto.
8569 * ppcbug-rom.c: Ditto.
8570 * ppc-linux-nat.c: Ditto.
8571 * ppc-linux-tdep.c: Ditto.
8572 * ppc-linux-tdep.h: Ditto.
8573 * ppcnbsd-tdep.c: Ditto.
8574 * ppcobsd-tdep.c: Ditto.
8575 * ppcobsd-tdep.h: Ditto.
8576 * ppc-sysv-tdep.c: Ditto.
8577 * ppc-tdep.h: Ditto.
8578 * printcmd.c: Ditto.
8579 * proc-abi.c: Ditto.
8580 * proc-flags.c: Ditto.
8582 * proc-utils.h: Ditto.
8583 * progspace.h: Ditto.
8584 * prologue-value.c: Ditto.
8585 * prologue-value.h: Ditto.
8586 * psympriv.h: Ditto.
8588 * p-typeprint.c: Ditto.
8589 * p-valprint.c: Ditto.
8590 * ravenscar-sparc-thread.c: Ditto.
8591 * ravenscar-thread.c: Ditto.
8592 * ravenscar-thread.h: Ditto.
8594 * regcache.c: Ditto.
8595 * regcache.h: Ditto.
8597 * remote-fileio.c: Ditto.
8598 * remote-fileio.h: Ditto.
8600 * remote-m32r-sdi.c: Ditto.
8601 * remote-mips.c: Ditto.
8602 * remote-sim.c: Ditto.
8603 * rs6000-aix-tdep.c: Ditto.
8604 * rs6000-nat.c: Ditto.
8605 * rs6000-tdep.c: Ditto.
8607 2011-01-10 Michael Snyder <msnyder@vmware.com>
8609 * charset.c (validate): Internationalization.
8610 * coffread.c (read_one_sym): Ditto.
8611 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8612 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8613 * inflow.c (new_tty): Ditto.
8614 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8615 * m32c-tdep.c (m32c_return_value): Ditto.
8616 * mep-tdep.c (mep_store_return_value): Ditto.
8617 * score-tdep.c (score7_fetch_insn): Ditto.
8618 * ser-mingw.c (pipe_windows_open): Ditto.
8619 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8620 * spu-tdep.c (spu_register_type): Ditto.
8621 * tracepoint.c (trace_find_command): Ditto.
8622 * valarith.c (value_pos): Ditto.
8624 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8626 * ada-valprint.c (printstr): Minor comment reformatting.
8628 2011-01-08 Michael Snyder <msnyder@vmware.com>
8630 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8633 2011-01-08 Michael Snyder <msnyder@vmware.com>
8635 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8636 * hppa-hpux-tdep.c: Ditto.
8637 * hppa-linux-nat.c: Ditto.
8638 * hppa-linux-tdep.c: Ditto.
8639 * hppanbsd-tdep.c: Ditto.
8640 * hppa-tdep.c: Ditto.
8641 * hppa-tdep.h: Ditto.
8642 * hpux-thread.c: Ditto.
8643 * i386-cygwin-tdep.c: Ditto.
8644 * i386-darwin-nat.c: Ditto.
8645 * i386gnu-nat.c: Ditto.
8646 * i386-linux-nat.c: Ditto.
8647 * i386-linux-tdep.c: Ditto.
8648 * i386-nat.c: Ditto.
8649 * i386-nat.h: Ditto.
8650 * i386nbsd-tdep.c: Ditto.
8651 * i386-sol2-nat.c: Ditto.
8652 * i386-stub.c: Ditto.
8653 * i386-tdep.c: Ditto.
8654 * i386-tdep.h: Ditto.
8655 * i387-tdep.c: Ditto.
8656 * ia64-linux-nat.c: Ditto.
8657 * ia64-linux-tdep.c: Ditto.
8658 * ia64-tdep.c: Ditto.
8662 * inferior.c: Ditto.
8663 * inferior.h: Ditto.
8669 * iq2000-tdep.c: Ditto.
8670 * irix5-nat.c: Ditto.
8676 * jv-typeprint.c: Ditto.
8677 * jv-valprint.c: Ditto.
8678 * language.c: Ditto.
8679 * language.h: Ditto.
8680 * linespec.c: Ditto.
8681 * linux-fork.c: Ditto.
8682 * linux-nat.c: Ditto.
8683 * linux-thread-db.c: Ditto.
8684 * lm32-tdep.c: Ditto.
8686 2011-01-08 Michael Snyder <msnyder@vmware.com>
8688 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8690 * m2-typeprint.c: Ditto.
8691 * m2-valprint.c: Ditto.
8692 * m32c-tdep.c: Ditto.
8693 * m32r-linux-nat.c: Ditto.
8694 * m32r-rom.c: Ditto.
8695 * m32r-tdep.c: Ditto.
8696 * m32r-tdep.h: Ditto.
8697 * m68hc11-tdep.c: Ditto.
8698 * m58klinux-nat.c: Ditto.
8699 * m68k-tdep.c: Ditto.
8700 * m88k-tdep.c: Ditto.
8701 * m88k-tdep.h: Ditto.
8702 * machoread.c: Ditto.
8703 * macrocmd.c: Ditto.
8704 * macroexp.c: Ditto.
8705 * macrotab.c: Ditto.
8708 * mdebugread.c: Ditto.
8709 * mdebugread.h: Ditto.
8712 * memory-map.h: Ditto.
8713 * mep-tdep.c: Ditto.
8714 * microblaze-rom.c: Ditto.
8715 * microblaze-tdep.c: Ditto.
8717 * mips-irix-tdep.c: Ditto.
8718 * mips-linux-nat.c: Ditto.
8719 * mips-linux-tdep.c: Ditto.
8720 * mips-linux-tdep.h: Ditto.
8721 * mipsnbsd-nat.c: Ditto.
8722 * mipsnbsd-tdep.c: Ditto.
8723 * mipsread.c: Ditto.
8724 * mips-tdep.c: Ditto.
8725 * mips-tdep.h: Ditto.
8726 * mn10300-linux-tdep.c: Ditto.
8727 * mn10300-tdep.c: Ditto.
8728 * mn10300-tdep.h: Ditto.
8731 * moxie-tdep.c: Ditto.
8732 * moxie-tdep.h: Ditto.
8735 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8737 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8739 2011-01-08 Robert Millan <rmh@gnu.org>
8741 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8743 2011-01-07 Michael Snyder <msnyder@vmware.com>
8745 * charset.c (_initialize_charset): Fix typo in string.
8747 2011-01-07 Michael Snyder <msnyder@vmware.com>
8749 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8751 * tui/tui-layout.c (tui_set_layout_for_display_command):
8752 Split line so that operator goes to beginning of line.
8753 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8754 assignment out of if statement.
8756 2011-01-07 Michael Snyder <msnyder@vmware.com>
8758 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8759 * ada-lang.h: Ditto.
8760 * ada-tasks.c: Ditto.
8761 * ada-valprint.c: Ditto.
8762 * aix-threads.c: Ditto.
8763 * alpha-linux-nat.c: Ditto.
8764 * alpha-linux-tdep.c: Ditto.
8765 * alpha-mdebug-tdep.c: Ditto.
8766 * alpha-nat.c: Ditto.
8767 * alpha-osf1-tdep.c: Ditto.
8768 * alpha-tdep.c: Ditto.
8769 * alphabsd-nat.c: Ditto.
8770 * alphabsd-tdep.c: Ditto.
8771 * amd64-darwin-tdep.c: Ditto.
8772 * amd64-linux-nat.c: Ditto.
8773 * amd64-linux-tdep.c: Ditto.
8774 * amd64-sol2-tdep.c: Ditto.
8775 * amd64-tdep.c: Ditto.
8776 * amd64-fbsd-tdep.c: Ditto.
8777 * amd64-nbsd-tdep.c: Ditto.
8778 * amd64-obsd-tdep.c: Ditto.
8779 * amd64-linux-nat.c: Ditto.
8780 * amd64-linux-tdep.c: Ditto.
8781 * arm-tdep.c: Ditto.
8782 * arm-tdep.h: Ditto.
8783 * armnbsd-nat.c: Ditto.
8784 * avr-tdep.c: Ditto.
8785 * bfin-tdep.c: Ditto.
8787 * c-typeprintc: Ditto.
8788 * c-valprint.c: Ditto.
8789 * coff-pe-read.h: Ditto.
8790 * coffreead.c: Ditto.
8791 * cris-tdep.c: Ditto.
8793 * darwin-nat-info.c: Ditto.
8794 * darwin-nat.c: Ditto.
8795 * dbug-rom.c: Ditto.
8799 * dec-thread.c: Ditto.
8801 * demangle.c: Ditto.
8802 * dicos-tdep.c: Ditto.
8803 * dictionary.c: Ditto.
8804 * dictionary.h: Ditto.
8805 * dink32-rom.c: Ditto.
8807 * doublest.c: Ditto.
8809 * dummy-frame.c: Ditto.
8810 * dwarf2-frame.c: Ditto.
8811 * dwarf2expr.c: Ditto.
8812 * dwarf2loc.c: Ditto.
8813 * dwarf2read.c: Ditto.
8817 * event-top.h: Ditto.
8818 * exceptions.c: Ditto.
8819 * exceptions.h: Ditto.
8821 * expprint.c: Ditto.
8822 * expression.h: Ditto.
8826 * f-typeprint.c: Ditto.
8827 * f-valprint.c: Ditto.
8828 * fbsd-nat.c: Ditto.
8830 * fork-child.c: Ditto.
8833 * frv-linux-tdep.c: Ditto.
8834 * frv-tdep.c: Ditto.
8836 * gdb-stabs.h: Ditto.
8837 * gdb_assert.h: Ditto.
8838 * gdb_string.h: Ditto.
8839 * gdb_thread_db.h: Ditto.
8840 * gdb_wait.h: Ditto.
8841 * gdbarch.sh: Ditto.
8843 * gdbthread.h: Ditto.
8844 * gdbtypes.c: Ditto.
8845 * gdbtypes.h: Ditto.
8848 * gnu-v2-abi.c: Ditto.
8849 * gnu-v3-abi.c: Ditto.
8850 * go32-nat.c: Ditto.
8851 * gdbarch.c: Regenerate.
8852 * gdbarch.h: Regenerate.
8854 2011-01-07 Michael Snyder <msnyder@vmware.com>
8856 * ax-gdb.c: Adjust some long output strings.
8857 * breakpoint.c: Ditto.
8862 * linux-nat.c: Ditto.
8863 * solib-pa64.c: Ditto.
8864 * solib-som.c: Ditto.
8866 2011-01-06 Tom Tromey <tromey@redhat.com>
8870 * python/python.c (GdbMethods): Add "newest_frame" method.
8871 * python/python-internal.h (gdbpy_newest_frame): Declare.
8872 * python/py-frame.c (gdbpy_newest_frame): New function.
8874 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8876 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8877 * jit.c (jit_debug): New variable.
8878 (show_jit_debug): New function.
8879 (struct target_buffer): Use ULONGEST.
8880 (bfd_open_from_target_memory): Likewise.
8881 (jit_register_code, jit_inferior_init): Add debug output.
8882 (_initialize_jit): Register "debug jit" command.
8884 2011-01-06 Tom Tromey <tromey@redhat.com>
8886 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8887 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8890 2011-01-06 Tom Tromey <tromey@redhat.com>
8892 * python/py-frame.c (frapy_block): Use get_frame_block.
8894 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8896 Do not stop on SIGPRIO signals by default
8897 * infrun.c (_initialize_infrun): Unset signal_stop and
8898 signal_print for TARGET_SIGNAL_PRIO.
8900 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8902 * ada-tasks.c: Fix style violation in comment.
8904 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8906 * linespec.c (decode_compound, find_method): Remove trailing \n
8907 at end of error string.
8908 * solib-irix.c (irix_current_sos): Likewise.
8909 * varobj.c (uninstall_variable): Likewise.
8911 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8913 * copyright.py: New script.
8914 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8915 Launch emacs without exec'ing. Call copyright.py afterwards.
8917 2011-01-05 Michael Snyder <msnyder@vmware.com>
8919 * addrmap.c: Shorten lines of >= 80 columns.
8920 * arch-utils.c: Ditto.
8921 * arch-utils.h: Ditto.
8923 * ax-general.c: Ditto.
8925 * blockframe.c: Ditto.
8926 * breakpoint.c: Ditto.
8927 * buildsym.c: Ditto.
8929 * c-typeprint.c: Ditto.
8931 * coffread.c: Ditto.
8935 * cp-namespace.c: Ditto.
8936 * cp-support.c: Ditto.
8937 * dbug-rom.c: Ditto.
8942 * dictionary.c: Ditto.
8944 * doublest.c: Ditto.
8945 * dwarf2-frame.c: Ditto.
8946 * dwarf2expr.c: Ditto.
8947 * dwarf2loc.c: Ditto.
8948 * dwarf2read.c: Ditto.
8951 * event-loop.c: Ditto.
8952 * event-loop.h: Ditto.
8953 * exceptions.h: Ditto.
8955 * expprint.c: Ditto.
8956 * expression.h: Ditto.
8958 * f-valprint.c: Ditto.
8960 * frame-base.c: Ditto.
8961 * frame-unwind.c: Ditto.
8962 * frame-unwind.h: Ditto.
8966 * gdb-stabs.h: Ditto.
8967 * gdb_assert.h: Ditto.
8968 * gdb_dirent.h: Ditto.
8969 * gdb_obstack.h: Ditto.
8971 * gdbtypes.c: Ditto.
8972 * gdbtypes.h: Ditto.
8973 * inf-ttrace.c: Ditto.
8978 * inline-frame.h: Ditto.
8979 * language.c: Ditto.
8980 * language.h: Ditto.
8981 * libunwind-frame.c: Ditto.
8982 * libunwind-frame.h: Ditto.
8983 * linespec.c: Ditto.
8984 * linux-nat.c: Ditto.
8985 * linux-nat.h: Ditto.
8986 * linux-thread-db.c: Ditto.
8987 * machoread.c: Ditto.
8988 * macroexp.c: Ditto.
8989 * macrotab.c: Ditto.
8992 * mdebugread.c: Ditto.
8997 * objfiles.c: Ditto.
8998 * objfiles.h: Ditto.
9000 * p-typeprint.c: Ditto.
9001 * p-valprint.c: Ditto.
9003 * printcmd.c: Ditto.
9004 * proc-events.c: Ditto.
9006 * progspace.c: Ditto.
9007 * progspace.h: Ditto.
9008 * psympriv.h: Ditto.
9011 * regcache.c: Ditto.
9012 * regcache.h: Ditto.
9013 * remote-fileio.c: Ditto.
9015 * ser-mingw.c: Ditto.
9017 * ser-unix.c: Ditto.
9020 * solib-frv.c: Ditto.
9021 * solib-irix.c: Ditto.
9022 * solib-osf.c: Ditto.
9023 * solib-pa64.c: Ditto.
9024 * solib-som.c: Ditto.
9025 * solib-sunos.c: Ditto.
9026 * solib-svr4.c: Ditto.
9027 * solib-target.c: Ditto.
9031 * stabsread.c: Ditto.
9032 * stabsread.c: Ditto.
9035 * symfile-mem.c: Ditto.
9041 * target-descriptions.c: Ditto.
9042 * target-memory.c: Ditto.
9045 * terminal.h: Ditto.
9048 * tracepoint.c: Ditto.
9049 * tracepoint.h: Ditto.
9053 * user-regs.c: Ditto.
9054 * user-regs.h: Ditto.
9056 * valarith.c: Ditto.
9058 * valprint.c: Ditto.
9059 * valprint.h: Ditto.
9064 * xcoffread.c: Ditto.
9065 * xcoffsolib.c: Ditto.
9066 * xcoffsolib.h: Ditto.
9067 * xml-syscall.c: Ditto.
9068 * xml-tdesc.c: Ditto.
9070 2011-01-05 Michael Snyder <msnyder@vmware.com>
9072 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9073 * cli/cli-decode.c: Ditto.
9074 * cli/cli-dump.c: Ditto.
9075 * cli/cli-logging.c: Ditto.
9076 * cli/cli-script.c: Ditto.
9077 * cli/cli-setshow.c: Ditto.
9078 * common/signals.c: Ditto.
9079 * mi/mi-cmd-break.c: Ditto.
9080 * mi/mi-cmd-disas.c: Ditto.
9081 * mi/mi-cmd-stack.c: Ditto.
9082 * mi/mi-cmd-var.c: Ditto.
9083 * mi/mi-cmds.c: Ditto.
9084 * mi/mi-common.h: Ditto.
9085 * mi/mi-console.c: Ditto.
9086 * mi/mi-interp.c: Ditto.
9087 * mi/mi-main.c: Ditto.
9088 * osf-share/cma_attr.c: Ditto.
9089 * osf-share/cma_deb_core.h: Ditto.
9090 * osf-share/cma_debug_client.h: Ditto.
9091 * osf-share/cma_handle.h: Ditto.
9092 * osf-share/cma_mutex.h: Ditto.
9093 * osf-share/cma_stack_int.h: Ditto.
9094 * osf-share/cma_tcb_defs.h: Ditto.
9095 * python/py-auto-load.c: Ditto.
9096 * python/py-breakpoint.c: Ditto.
9097 * python/py-cmd.c: Ditto.
9098 * python/py-frame.c: Ditto.
9099 * python/py-objfile.c: Ditto.
9100 * python/py-param.c: Ditto.
9101 * python/py-progspace.c: Ditto.
9102 * python/py-symbol.c: Ditto.
9103 * python/py-value.c: Ditto.
9104 * python/python-internal.h: Ditto.
9105 * python/python.c: Ditto.
9106 * tui/tui-data.c: Ditto.
9107 * tui/tui-disasm.c: Ditto.
9108 * tui/tui-hooks.c: Ditto.
9109 * tui/tui-io.c: Ditto.
9110 * tui/tui-layout.c: Ditto.
9111 * tui/tui-regs.c: Ditto.
9112 * tui/tui-source.c: Ditto.
9113 * tui/tui-stack.c: Ditto.
9114 * tui/tui-win.c: Ditto.
9115 * tui/tui-windata.c: Ditto.
9116 * tui/tui-winsource.c: Ditto.
9118 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9120 * configure.ac, gdb.1: Copyright year update.
9122 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9124 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9125 this_pc_in_block, morestack_msym and morestack_name. Check for
9126 "__morestack" minimal symbol there.
9128 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9130 * symfile.c (find_sym_fns): Add call to dont_repeat.
9132 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9134 Copyright year update in most files (performed by copyright.sh).
9136 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9138 * top.c (print_gdb_version): Update copyright year in version output.
9140 For older changes see ChangeLog-2010.
9146 version-control: never