1 2011-09-07 Yao Qi <yao@codesourcery.com>
3 * gdbthread.h (struct thread_info): Remove fields
4 `stepping_through_solib_after_catch' and
5 `stepping_through_solib_catchpoints'.
6 * infrun.c (init_thread_stepping_state): Update.
7 (process_event_stop_test, currently_stepping): Update.
8 (currently_stepping_or_nexting_callback): Update.
10 2011-09-07 Yao Qi <yao@codesourcery.com>
12 * gdbthread.h (struct thread_info): Comment on field
13 `step_after_step_resume_breakpoint'.
15 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
17 * remote.c (remote_console_output): Reindent.
19 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
21 * frame.c (has_stack_frames): Check for currently selected
24 2011-09-06 Pedro Alves <pedro@codesourcery.com>
26 * event-top.h (MAXPROMPTS, struct prompts): Delete.
27 (set_async_annotation_level, set_async_prompt, pop_prompt)
28 (push_prompt, new_async_prompt): Delete declarations.
29 * top.h (get_prompt, set_prompt): Change prototype.
30 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
32 * top.c (command_loop):
33 (top_prompt): New global.
34 (get_prefix, set_prefix, get_suffix, ): Delete.
35 (get_prompt, set_prompt): Rewrite.
36 (show_new_async_prompt): Rename to ...
37 (show_prompt): ... this.
38 (init_main): Adjust. Don't handle --annotate=2 here.
39 * event-top.c (new_async_prompt): Delete.
40 (the_prompts): Delete.
41 (more_to_come): Make static.
42 (display_gdb_prompt): Use top_level_prompt() to compute the top
43 level prompt, and don't notify the before_prompt observers
44 directly here. Always trick readline into not trying to display
45 the prompt if sync_execution and displaying the primary prompt.
46 If displaying a local/secondary prompt, always show it, even if
47 sync_execution is set.
48 (change_annotation_level): Delete.
49 (top_level_prompt): New, based on change_annotation_level.
50 (push_prompt, pop_prompt): Delete.
51 (async_disable_stdin): No longer pushes prompt.
52 (command_line_handler): No longer pushes or pops prompt. If more
53 input is expected, call display_gdb_prompt with an explicit empty
55 (async_stop_sig): Adjust.
56 (set_async_annotation_level, set_async_prompt): Delete.
57 * python/python.c (before_prompt_hook): Adjust.
59 2011-09-05 Pedro Alves <pedro@codesourcery.com>
63 * infrun.c (fetch_inferior_event): Check if there's a selected
64 thread before checking if the selected thread is executing.
66 2011-09-05 Pedro Alves <pedro@codesourcery.com>
68 * inf-loop.c (execute_command): Don't check if the current thread
69 if running before synchronously waiting for command completion.
70 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
72 (normal_stop): Call async_enable_stdin here.
73 * inf-loop.c (inferior_event_handler): Don't call
74 async_enable_stdin, nor handle "set exec-done-display" here.
76 2011-09-04 Joel Brobecker <brobecker@adacore.com>
80 2011-09-04 Joel Brobecker <brobecker@adacore.com>
82 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
84 2011-09-04 Joel Brobecker <brobecker@adacore.com>
86 * NEWS: Add entry for OpenBSD/NetBSD build failure.
88 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
90 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
92 2011-09-02 Matt Rice <ratmice@gmail.com>
95 * event-top.c (cli_command_loop): Replace readline setup with
96 direct call to display_gdb_prompt.
97 (display_gdb_prompt): Do not call observer mechanism during
98 synchronous execution.
100 2011-09-02 Pedro Alves <pedro@codesourcery.com>
102 * linux-nat.c (in_pid_list_p): New.
103 (linux_record_stopped_pid): Delete.
104 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
105 already attached to the LWP. Return an indication if so.
106 (linux_nat_filter_event): Adjust.
107 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
108 returning an indication to ignore this thread.
110 2011-09-02 Pedro Alves <pedro@codesourcery.com>
112 * top.c: Include interps.h.
113 (execute_command): If the target can async, but the interpreter is
114 in sync mode, synchronously wait for the command to finish before
116 (execute_command_to_string): Force the interpreter to sync mode.
117 * infrun.c: Include interps.h.
118 (fetch_inferior_event): Don't restore the prompt yet if the
119 interpreter is in sync mode.
120 * interps.c (interpreter_async): New global.
121 * interps.h (interpreter_async): Declare.
122 * inf-loop.c: Include interps.h.
123 (inferior_event_handler): Don't print the language change or run
124 breakpoint commands yet if the interpreter in is sync mode.
125 * main.c (captured_command_loop): Flip the interpreter to async
127 * cli/cli-script.c: Include interps.h.
128 (execute_user_command, while_command, if_command): Force the
129 interpreter to sync mode.
130 * python/python.c: Include interps.h.
131 (python_command, execute_gdb_command): Force the interpreter to
134 2011-09-02 Pedro Alves <pedro@codesourcery.com>
136 * value.c (show_convenience): Catch errors thrown while printing
137 each internal variable.
138 * infrun.c (validate_siginfo_access): New function.
139 (siginfo_value_read, siginfo_value_write): Call it.
141 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
144 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
145 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
148 2011-08-29 Yao Qi <yao@codesourcery.com>
150 * solib-dsbt.c (bfd_lookup_symbol): Removed.
152 (enable_break2): Update caller.
153 * solib-frv.c (bfd_lookup_symbol): Removed.
155 (enable_break2): Update caller.
156 * solib-pa64.c (bfd_lookup_symbol): Removed.
158 * solib-svr4.c (bfd_lookup_symbol): Removed.
159 (cmp_name_and_sec_flags): New.
160 (enable_break): Update caller.
161 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
162 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
163 (gdb_bfd_lookup_symbol): New.
164 * solib.h: Functions declarations.
166 2011-08-29 Yao Qi <yao@codesourcery.com>
168 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
171 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
173 Fix TUI stepi on code without symbols.
174 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
177 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
180 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
181 and the static keyword.
182 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
183 Make prefix an array.
184 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
185 * mi/mi-main.c (get_register): Remove stb initialization and the static
188 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
190 Code cleanup - make mi_opt const.
191 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
193 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
194 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
195 (mi_cmd_env_dir): Likewise.
196 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
197 (mi_cmd_target_file_put): Likewise.
198 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
199 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
200 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
201 (mi_valid_noargs): Make opts const.
202 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
203 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
204 (mi_cmd_data_read_memory): Likewise.
205 (mi_cmd_data_read_memory_bytes): Likewise.
206 (mi_cmd_data_write_memory): Likewise.
208 2011-08-26 Matt Rice <ratmice@gmail.com>
210 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
211 bcache_xmalloc, replace bcache_xmalloc with call to
212 psymbol_bcache_init for psymbol_cache.
213 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
215 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
217 * inf-loop.c (inferior_event_handler): Add exception_print in
220 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
222 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
223 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
224 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
225 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
226 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
227 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
228 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
229 * infrun.c (fetch_inferior_event): Call
230 make_bpstat_clear_actions_cleanup.
231 * top.c (execute_command): New variable cleanup_if_error, call
232 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
233 * utils.c (do_bpstat_clear_actions_cleanup)
234 (make_bpstat_clear_actions_cleanup): New functions.
236 2011-08-26 Pedro Alves <pedro@codesourcery.com>
238 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
239 either the parent or the child forks. Rename a couple locals.
241 2011-08-26 Pedro Alves <pedro@codesourcery.com>
243 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
244 library call. Avoid reading the `status' local if all waitpid
247 2011-08-26 Pedro Alves <pedro@codesourcery.com>
249 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
250 opening /proc/PID/task always succeeds.
252 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
254 * linespec.c (symtab_from_filename): Check for the end of string.
256 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
259 * varobj.c (cplus_describe_child): Add the keyword
260 'class' to the output of the method when dealing
261 with a cast to a base class.
263 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
265 No functionality change.
266 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
267 function comment a reference, new variables tp and bs, move here code
268 from throw_exception.
269 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
270 describe it in the comment.
271 * exceptions.c (throw_exception): Remove variable tp, move the code for
272 bpstat_clear_actions to bpstat_clear_actions.
274 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
276 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
277 * linux-nat.c: Include linux-procfs.h.
278 (linux_proc_get_tgid): Move to ...
279 * common/linux-procfs.c: ... here. New file.
280 * common/linux-procfs.h: New file.
281 * linux-thread-db.c: Include linux-procfs.h.
282 * Makefile.in: Update dependencies.
283 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
284 * config/arm/linux.mh: Likewise.
285 * config/i386/linux.mh: Likewise.
286 * config/i386/linux64.mh: Likewise.
287 * config/ia64/linux.mh: Likewise.
288 * config/m32r/linux.mh: Likewise.
289 * config/m68k/linux.mh: Likewise.
290 * config/mips/linux.mh: Likewise.
291 * config/pa/linux.mh: Likewise.
292 * config/pa/linux.mh: Likewise.
293 * config/powerpc/linux.mh: Likewise.
294 * config/powerpc/ppc64-linux.mh: Likewise.
295 * config/powerpc/spu-linux.mh: Likewise.
296 * config/sparc/linux.mh: Likewise.
297 * config/sparc/linux64.mh: Likewise.
298 * config/xtensa/linux.mh: Likewise.
300 2011-08-24 Hui Zhu <teawater@gmail.com>
302 * tracepoint.c (cond_string_is_same): New function.
303 (find_matching_tracepoint): Add condition check
304 by cond_string_is_same.
306 2011-08-23 Josh Matthews <josh@joshmatthews.net>
308 Fix build error in Darwin port.
309 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
311 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
314 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
315 (command_line_is_silent): New function.
316 (bpstat_do_actions_1): No longer use commands_left, use
317 command_line_is_silent for commands.
318 (bpstat_alloc): Remove clearing of commands_left.
319 (bpstat_stop_status): Remove initialization of commands_left, use
320 command_line_is_silent.
321 * breakpoint.h (struct bpstats): Remove commands_left.
323 2011-08-18 Keith Seitz <keiths@redhat.com>
326 * cp-name-parser.y (struct demangle_info): Remove unused
329 (allocate_info): Change return type to struct demangle_info *.
330 Always allocate a new demangle_info.
331 Remove unused PREV pointer.
332 (cp_new_demangle_parse_info): New function.
333 (cp_demangled_name_parse_free): New function.
334 (do_demangled_name_parse_free_cleanup): New function.
335 (make_cleanup_cp_demangled_name_parse_free): New function.
336 (cp_demangled_name_to_comp): Change return type to
337 struct demangle_parse_info *.
338 Allocate a new storage for each call.
339 (main): Update usage for cp_demangled_name_to_comp
341 * cp-support.h (struct demangle_parse_info): New structure.
342 (cp_demangled_name_to_comp): Update API change for
344 (cp_new_demangle_parse_info): Declare.
345 (make_cleanup_cp_demangled_name_parse_free): New declaration.
346 (cp_demangled_name_parse_free): Declare.
347 * cp-support.c (cp_canonicalize_string): Update API
348 change for cp_demangled_name_to_comp.
349 (mangled_name_to_comp): Likewise.
350 Return struct demangle_parse_info, too.
351 (cp_class_name_from_physname): Update mangled_name_to_comp
353 (method_name_from_physname): Likewise.
354 (cp_func_name): Update API change for cp_demangled_name_to_comp.
355 (cp_remove_params): Likewise.
356 * python/py-type.c (typy_legacy_template_argument): Likewise.
358 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
359 (cp_merge_demangle_parse_infos): Declare.
360 * cp-support.c (ignore_typedefs): New file global.
361 (copy_string_to_obstack): New function.
362 (inspect_type): New function.
363 (replace_typedefs): New function.
364 (replace_typedefs_qualified_name): New function.
365 (cp_canonicalize_string_no_typedefs): New function.
366 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
367 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
368 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
369 instead of cp_canonicalize_string.
370 (find_method): Likewise.
371 (decode_compound): Before looking up the name, call
372 cp_canonicalize_string_no_typedefs.
373 (decode_variable): Likewise.
375 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
376 Tom Tromey <tromey@redhat.com>
377 Matt Rice <ratmice@gmail.com>
379 * python/lib/gdb/prompt.py: New file.
380 * python/lib/gdb/command/prompt.py: New file.
381 * NEWS: Document set extended-prompt and gdb.prompt library
383 2011-08-16 Yao Qi <yao@codesourcery.com>
385 * tic6x-linux-tdep.c: Move const arrays definition from here...
386 * tic6x-tdep.c: to here ...
388 2011-08-14 Yao Qi <yao@codesourcery.com>
390 * NEWS: New port to Texas Instruments TMS320C6x.
392 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
393 Bernd Schmidt <bernds@codesourcery.com>
394 Yao Qi <yao@codesourcery.com>
396 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
397 * solib-dsbt.c: New file. Support DSBT shared object.
398 * tic6x-linux-tdep.c: New file.
399 * tic6x-tdep.c: New file.
400 * tic6x-tdep.h: New file.
402 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
403 Yao Qi <yao@codesourcery.com>
405 * remote.c (PACKET_qXfer_fdpic): New enum value.
406 (remote_protocol_features): Add qXfer:fdpic:read packet.
407 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
408 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
409 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
411 2011-08-14 Yao Qi <yao@codesourcery.com>
413 Target description for tic6x.
414 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
415 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
416 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
417 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
418 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
419 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
420 * features/tic6x-c64xp-linux.xml: New.
421 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
422 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
423 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
424 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
425 * regformats/tic6x-c64xp.dat,
426 regformats/tic6x-c62x-linux.dat: Generated.
427 * regformats/tic6x-c64x-linux.dat,
428 regformats/tic6x-c64xp-linux.dat: Generated.
429 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
430 features/tic6x-*.c files.
431 Add regformats/tic6x-*.dat files.
433 2011-08-12 Doug Evans <dje@google.com>
435 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
436 * python/py-symbol.c (sympy_get_type): New function.
437 (symbol_object_getset): Add "type".
439 2011-08-12 Pedro Alves <pedro@codesourcery.com>
443 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
445 (tui_show_register_group): Don't store a byte buffer in the data
447 (tui_register_format): Skip registers with an empty name.
448 (tui_get_register): Store a struct value in the data element's
449 value field instead of a byte buffer holding the raw register
450 contents. Account for optimized-out and unavailable registers
451 when comparing register contents.
453 2011-08-09 Pedro Alves <pedro@codesourcery.com>
455 * printcmd.c (current_display_number): Update comment.
456 (disable_current_display_cleanup): Delete.
457 (do_one_display): Use make_cleanup_restore_integer. Gracefully
458 catch errors thrown while evaluating and printing the display.
460 2011-08-09 Tom Tromey <tromey@redhat.com>
462 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
464 2011-08-09 Pedro Alves <pedro@codesourcery.com>
466 * elfread.c (elf_symtab_read): Rework comments.
467 * maint.c (maintenance_command): Ditto.
468 * somread.c (som_symtab_read): Ditto.
469 * solib.c (solib_find, solib_map_sections, update_solib_list)
470 (solib_add, info_sharedlibrary_command, solib_name_from_address)
471 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
472 (sharedlibrary_command, no_shared_libraries): Ditto.
473 * solib-irix.c (locate_base, disable_break, enable_break)
474 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
475 (irix_current_sos, irix_open_symbol_file_object)
476 (irix_special_symbol_handling): Ditto.
477 * solib-sunos.c (locate_base, first_link_map_member)
478 (sunos_current_sos, disable_break, enable_break)
479 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
481 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
482 (open_symbol_file_object, svr4_current_sos, enable_break)
483 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
485 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
486 (frv_current_sos, enable_break, frv_special_symbol_handling)
487 (frv_solib_create_inferior_hook): Ditto.
488 * solist.h (struct target_so_ops): Extend the comments of the
489 special_symbol_handling, current_sos and open_symbol_file_object
492 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
494 * python/lib/gdb/__init__.py: Auto-load files in command and
495 function directories.
496 * python/python.c (finish_python_initialization): Use
498 * python/lib/gdb/command/pretty_printers.py: Self register
500 * NEWS: Document auto-loading.
502 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
504 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
505 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
506 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
508 2011-08-08 Tom Tromey <tromey@redhat.com>
510 * breakpoint.c (clean_up_filters): Remove.
511 (catch_syscall_split_args): Use VEC_cleanup.
513 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
515 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
516 (main): Uncomment "Demangling error\n".
518 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
520 * solib-target.c (segment_attributes): Make them static.
521 (section_attributes, library_children, library_attributes): Likewise.
522 (library_list_children, library_list_attributes): Likesise.
523 (library_list_elements): Likewise.
525 2011-08-05 Pedro Alves <pedro@codesourcery.com>
527 * exceptions.c (throw_exception): Don't disable the current
529 * printcmd.c (disable_current_display_cleanup): New function.
530 (do_one_display): Install a cleanup to disable the current display
531 if doing the display throws.
533 2011-08-05 Eli Zaretskii <eliz@gnu.org>
535 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
536 initialization of the tp_new member to the corresponding
537 gdbpy_initialize_* function.
538 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
539 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
540 * python/py-function.c (gdbpy_initialize_functions): Likewise.
541 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
542 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
544 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
546 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
547 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
548 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
549 references to current_uiout.
551 2011-08-04 Pedro Alves <pedro@codesourcery.com>
553 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
554 (start_event_loop): Use TRY_CATCH instead of catch_errors.
555 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
556 * top.c (gdb_readline_wrapper): Adjust.
557 * tui/tui-interp.c (tui_command_loop):
558 (_initialize_tui_interp): Don't install it.
560 2011-08-04 Pedro Alves <pedro@codesourcery.com>
562 * ui-out.h (uiout): Rename to ...
563 (current_uiout): ... this.
564 * ui-out.c (uiout): Rename to ...
565 (current_uiout): ... this.
566 * ada-lang.c (print_it_exception, print_one_exception)
567 (print_mention_exception): Adjust.
568 * breakpoint.c (watchpoint_check): Adjust.
569 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
570 (default_collect_info, watchpoints_info, print_one_catch_fork)
571 (print_one_catch_vfork, print_one_catch_syscall)
572 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
573 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
574 (print_it_watchpoint, print_mention_watchpoint)
575 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
576 (print_it_exception_catchpoint, print_one_exception_catchpoint)
577 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
578 (bkpt_print_mention, momentary_bkpt_print_it)
579 (tracepoint_print_mention, update_static_tracepoint)
580 (tracepoints_info, save_breakpoints): Adjust.
581 * cli-out.c (field_separator): Adjust.
582 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
583 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
584 * frame.c (get_current_frame): Adjust.
585 * infcmd.c (run_command_1, print_return_value): Adjust.
586 * inferior.c (inferior_command, info_inferiors_command): Adjust.
587 * infrun.c (print_end_stepping_range_reason): Adjust.
588 (print_signal_exited_reason, print_exited_reason): Adjust.
589 (print_signal_received_reason, print_no_history_reason): Adjust.
590 * interps.c (interp_set): Adjust.
591 * osdata.c (info_osdata_command): Adjust.
592 * progspace.c (maintenance_info_program_spaces_command): Adjust.
593 * remote-fileio.c (remote_fileio_request): Adjust.
594 * remote.c (show_remote_cmd): Adjust.
595 * solib.c (info_sharedlibrary_command): Adjust.
596 * source.c (print_source_lines_base): Adjust.
597 * stack.c (print_stack_frame): Adjust.
598 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
599 * symfile-mem.c (add_vsyscall_page): Adjust.
600 * symfile.c (load_progress, generic_load)
601 (print_transfer_performance): Adjust.
602 * thread.c (info_threads_command, restore_selected_frame)
603 (thread_command): Adjust.
604 * top.c (make_cleanup_restore_ui_file): Adjust.
605 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
606 (print_one_static_tracepoint_marker): Adjust.
607 * cli/cli-cmds.c (print_disassembly): Adjust.
608 * cli/cli-decode.c (print_doc_line): Adjust.
609 * cli/cli-interp.c (safe_execute_command): Adjust.
610 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
611 (handle_redirections): Adjust.
612 * cli/cli-script.c (show_user_1): Adjust.
613 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
614 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
615 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
616 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
617 (mi_cmd_env_dir): Adjust.
618 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
619 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
620 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
621 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
622 (list_args_or_locals): Adjust.
623 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
624 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
625 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
626 (mi_cmd_var_list_children, mi_cmd_var_info_type)
627 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
628 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
629 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
630 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
631 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
632 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
633 (list_available_thread_groups, mi_cmd_list_thread_groups)
634 (mi_cmd_data_list_register_names)
635 (mi_cmd_data_list_changed_registers)
636 (mi_cmd_data_list_register_values, get_register)
637 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
638 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
639 (mi_cmd_list_target_features, mi_cmd_add_inferior)
640 (mi_execute_command, mi_load_progress): Adjust.
641 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
642 * python/py-auto-load.c (print_script, info_auto_load_scripts):
644 * python/py-breakpoint.c (bppy_get_commands): Adjust.
645 * tui/tui-interp.c (tui_command_loop): Adjust.
646 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
648 2011-08-04 Pedro Alves <pedro@codesourcery.com>
650 * exceptions.c (struct catcher): Remove saved_uiout field.
651 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
652 no longer save/resvore the global ui_out builder.
653 (catch_exceptions_with_msg): Save/override/restore the global
654 ui_out builder manually instead of relying on TRY_CATCH to do it.
655 (catch_errors): Save/restore the global ui_out builder manually
656 instead of relying on TRY_CATCH to do it.
657 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
660 * cli/cli-interp.c (safe_execute_command): Save/override/restore
661 the global ui_out builder manually instead of relying on TRY_CATCH
664 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
666 * breakpoint.c (update_global_location_list): Ensure
667 invariant 'first loc marked not duplicated and inserted,
668 following locs marked duplicated/not inserted' is respected
669 for multiple locations at the same address.
670 (unduplicated_should_be_inserted) New function.
671 (swap_insertion) New function.
673 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
675 * stack.c (print_frame_arguments_choices): Comment typo fix.
677 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
680 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
681 * breakpoint.c (insert_bp_location): Remove disabled_breaks
682 argument. Update callers.
684 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
687 * doublest.c (convert_doublest_to_floatformat): Pass correct
688 mantissa length to put_field.
690 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
692 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
693 exception_print code path.
694 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
695 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
696 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
698 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
701 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
702 Remove, merge them into ...
703 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
704 variable args and its initialization.
705 (struct print_args_args, print_args_stub): Remove, merge them into
707 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
709 (do_gdb_disassembly): ... here. Remove variable args and its
711 (print_frame): Remove variable args and its initialization, new
712 variable gdbarch and numargs (from print_args_stub), inline here
713 print_args_stub with a TRY_CATCH.
714 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
716 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
717 New variable e, remove variable btargs and its initialization.
719 2011-08-01 Tristan Gingold <gingold@adacore.com>
721 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
723 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
725 * breakpoint.c (insert_bp_location): Document return value.
726 (insert_breakpoint_locations): Fix documentation.
727 (remove_breakpoints): Add documentation.
729 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
731 * breakpoint.c (insert_bp_location): Remove disabled_breaks
732 argument. Update callers.
734 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
736 * stack.c (print_frame_info): Comment typo fix.
738 2011-07-29 Sterling Augustine <saugustine@google.com>
740 * MAINTAINERS (Write After Approval): Add myself to the list.
742 2011-07-29 Tom Tromey <tromey@redhat.com>
744 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
745 (library_list_start_segment): Update.
746 (library_list_start_section): Update.
748 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
750 * varobj.c (value_get_print_value): Move hint check later into the
751 function. Comment function. Free thevalue before reusing it.
753 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
754 Pedro Alves <pedro@codesourcery.com>
756 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
758 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
759 Assert the result kind.
760 * value.h (value_one): Remove parameter lv.
762 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
764 Fix crash on lval_computed values.
765 * valops.c (value_zero): Use not_lval for lval_computed.
767 2011-07-27 Tom Tromey <tromey@redhat.com>
769 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
770 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
772 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
774 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
775 "ptype" by their typedefs difference.
777 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
779 * dwarf2expr.c (ctx_no_read_reg): New function.
780 * dwarf2expr.h (ctx_no_read_reg): New declaration.
781 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
782 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
783 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
785 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
787 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
788 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
790 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
791 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
792 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
793 (ctx_no_get_base_type): Move the functions here.
794 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
795 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
796 (ctx_no_get_base_type): New declarations.
798 2011-07-27 Tom Tromey <tromey@redhat.com>
800 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
802 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
803 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
805 2011-07-26 Sterling Augustine <saugustine@google.com>
807 * cli/cli-dump.c (dump_binary_file): Change parameter type to
809 (dump_bfd_file): Likewise.
811 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
813 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
814 (remote_hw_watchpoint_length_limit): New variable.
815 (_initialize_remote) add set,show cmds for this new variable.
816 * gdb.texinfo: document these new commands.
817 * NEWS: Mention these new commands.
819 2011-07-26 Pedro Alves <pedro@codesourcery.com>
821 * breakpoint.c (works_in_software_mode_watchpoint): Also return
822 true for software watchpoints.
824 2011-07-26 Joel Brobecker <brobecker@adacore.com>
828 2011-07-26 Tom Tromey <tromey@redhat.com>
830 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
831 * dwarf2read.c (read_indirect_string_at_offset): New function.
832 (read_indirect_string): Use it.
833 (dwarf_decode_macro_bytes): New function, taken from
834 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
835 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
836 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
838 (struct dwarf2_per_objfile) <macro>: New field.
839 (dwarf2_elf_names): Add .debug_macro.
840 (dwarf2_macros_too_long_complaint): Add 'section' argument.
841 (dwarf2_locate_sections): Handle new section.
842 (read_file_scope): Handle DW_AT_GNU_macros.
843 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
845 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
847 * NEWS: Mention dcache configuration.
848 * dcache.c (dcache_set_list, dcache_show_list): New variables.
849 (dcache_size, dcache_line_size): New variables.
850 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
851 (struct dcache_block): Make it expandable.
852 (struct dcache_struct): New field.
853 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
854 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
855 (dcache_poke_byte, dcache_print_line): Adjust.
856 (set_dcache_size, set_dcache_line_size): New functions.
857 (set_dcache_command, show_dcache_command): New functions.
858 (_initialize_dcache): Add new commands.
860 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
862 * progspace.h (struct program_space): Add solib_add_generation.
863 * infcmd.c (post_create_inferior): Only call solib_add if not
865 * solib.c (solib_add): Increment solib_add_generation.
867 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
869 Fix implicit pointer offsets.
870 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
873 2011-07-25 Tom Tromey <tromey@redhat.com>
875 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
877 (ada_exception_sal): Make 'ops' const.
878 (ada_decode_exception_location): Likewise.
879 (ada_decode_assert_location): Likewise.
880 (catch_assert_command): Update.
881 (catch_ada_exception_command): Update.
882 (create_ada_exception_catchpoint): Make 'ops' const.
883 * breakpoint.c (set_raw_breakpoint_without_location)
884 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
886 (create_internal_breakpoint): Update.
887 (init_raw_breakpoint_without_location): Make 'ops' const.
888 (init_raw_breakpoint, init_catchpoint)
889 (create_fork_vfork_event_catchpoint)
890 (create_syscall_event_catchpoint, init_breakpoint_sal)
891 (create_breakpoint_sal, create_breakpoints_sal)
892 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
893 * breakpoint.h (struct breakpoint) <ops>: Now const.
894 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
897 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
899 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
901 2011-07-25 Pedro Alves <pedro@codesourcery.com>
903 * breakpoint.h (print_recreate_thread): Declare.
904 (struct breakpoint): Move step_count, pass_count,
905 number_on_target, static_trace_marker_id,
906 static_trace_marker_id_idx ...
907 (struct tracepoint): ... to this new struct.
908 (get_tracepoint, get_tracepoint_by_number_on_target)
909 (get_tracepoint_by_number): Change return type to struct
911 * breakpoint.c (is_tracepoint_type): New, factored out from
913 (is_tracepoint): Adjust.
914 (print_one_breakpoint_location): Cast to struct tracepoint as
915 necessary, and adjust.
916 (print_recreate_catch_fork, print_recreate_catch_vfork)
917 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
918 print_recreate_thread.
919 (init_breakpoint_sal): New, factored out from
920 create_breakpoint_sal.
921 (create_breakpoint_sal): Reimplement.
922 (create_breakpoint): Allocate a struct tracecepoint if the caller
923 wanted a tracepoint. Use init_breakpoint_sal and
925 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
926 (print_recreate_masked_watchpoint)
927 (print_recreate_exception_catchpoint): Call print_recreate_thread.
928 (tracepoint_print_one_detail): Adjust.
929 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
930 Dump the pass count here.
931 (update_static_tracepoint): Adjust.
932 (addr_string_to_sals): Adjust.
933 (create_tracepoint_from_upload): Adjust. Change return type to
934 struct tracepoint pointer.
935 (trace_pass_set_count): Change parameter type to struct tracepoint
937 (trace_pass_command): Adjust.
938 (get_tracepoint, get_tracepoint_by_number_on_target)
939 (get_tracepoint_by_number): Change return type to struct
940 tracepoint pointer, and adjust.
941 (print_recreate_thread): New, factored out from save_breakpoints.
942 (save_breakpoints): Don't print thread and task and passcount
944 * remote.c (remote_download_tracepoint): Adjust.
945 * tracepoint.c (trace_actions_command, validate_actionline)
946 (start_tracing, tfind_1, trace_find_tracepoint_command)
947 (trace_dump_command): Adjust.
948 (find_matching_tracepoint): Change return type to struct
949 tracepoint pointer, and adjust.
950 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
951 (tfile_trace_find, tfile_fetch_registers): Adjust.
952 * tracepoint.h (create_tracepoint_from_upload): Change return type
953 to struct tracepoint pointer.
954 * ada-lang.c (print_recreate_exception): Call
955 print_recreate_thread.
956 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
958 2011-07-25 Pedro Alves <pedro@codesourcery.com>
960 * breakpoint.h (struct breakpoint): Move ops as first field. Move
961 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
962 cond_exp_valid_block, val, val_valid, watchpoint_frame,
963 watchpoint_thread, watchpoint_triggered ...
964 (struct watchpoint): ... to this new struct.
965 (is_watchpoint): Declare.
966 (install_breakpoint): Add new `internal' parameter.
967 * breakpoint.c (is_watchpoint): Delete declaration.
968 (set_breakpoint_condition): Handle watchpoints.
969 (is_watchpoint): Make public.
970 (watchpoint_in_thread_scope): Change parameter type to struct
972 (watchpoint_del_at_next_stop): Change parameter type to struct
973 watchpoint. Remove assertion. Adjust.
974 (update_watchpoint): Ditto.
975 (insert_breakpoints, breakpoint_init_inferior)
976 (watchpoints_triggered, watchpoint_check)
977 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
978 (bpstat_stop_status, print_one_breakpoint_location)
979 (print_one_breakpoint_location, watchpoint_locations_match): Cast
980 to struct watchpoint as necessary, and adjust.
981 (install_breakpoint): Add `internal' argument. If true, don't
982 mention the new breakpoint. Use set_breakpoint_number.
983 (create_fork_vfork_event_catchpoint)
984 (create_syscall_event_catchpoint): Adjust.
985 (dtor_watchpoint): New.
986 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
987 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
988 (print_it_watchpoint, print_mention_watchpoint)
989 (print_recreate_watchpoint, insert_masked_watchpoint)
990 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
991 (print_one_detail_masked_watchpoint)
992 (print_mention_masked_watchpoint)
993 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
994 necessary, and adjust.
995 (watch_command_1): Allocate and initialize a struct watchpoint
996 instead of a struct breakpoint. Use install_breakpoint.
997 (catch_exec_command_1): Adjust.
998 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1000 (delete_breakpoint, enable_breakpoint_disp)
1001 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1002 as necessary, and adjust.
1003 (initialize_breakpoint_ops): Install dtor_watchpoint as
1004 watchpoints' dtor method.
1005 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1006 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1007 to struct watchpoint as necessary, and adjust.
1009 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1011 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1012 the the base class ops table.
1013 (catch_exception_breakpoint_ops)
1014 (catch_exception_unhandled_breakpoint_ops)
1015 (catch_assert_breakpoint_ops): Don't statically initialize.
1016 (initialize_ada_catchpoint_ops): New.
1017 (_initialize_ada_language): Call it.
1018 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1019 (bkpt_breakpoint_ops): Forward declare.
1020 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1021 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1022 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1023 (masked_watchpoint_breakpoint_ops)
1024 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1025 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1026 base class ops table.
1027 (null_re_set, null_check_status, null_works_in_software_mode)
1028 (null_resources_needed, null_print_one_detail): Delete.
1029 (bkpt_dtor): Rename to ...
1030 (base_breakpoint_dtor): ... this. Make static.
1031 (bkpt_allocate_location): Rename to ...
1032 (base_breakpoint_allocate_location): ... this. Make static.
1033 (base_breakpoint_re_set): New.
1034 (internal_error_pure_virtual_called): New.
1035 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1036 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1037 (base_breakpoint_works_in_software_mode)
1038 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1039 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1040 (base_breakpoint_print_recreate): New functions.
1041 (base_breakpoint_ops): New global.
1042 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1043 (bkpt_breakpoint_hit): Make static.
1044 (bkpt_check_status): Delete.
1045 (bkpt_resources_needed): Make static.
1046 (bkpt_works_in_software_mode): Delete.
1047 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1049 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1050 (momentary_breakpoint_ops): Don't statically initialize.
1051 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1053 (tracepoint_insert_location, tracepoint_remove_location)
1054 (tracepoint_check_status, tracepoint_works_in_software_mode)
1055 (tracepoint_print_it): Delete.
1056 (tracepoint_breakpoint_ops): Don't statically initialize.
1057 (initialize_breakpoint_ops): New.
1058 (_initialize_breakpoint): Call it.
1059 * breakpoint.h (null_re_set, null_works_in_software_mode)
1060 (null_resources_needed, null_check_status, null_print_one_detail):
1061 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1062 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1063 (bkpt_check_status, bkpt_resources_needed)
1064 (bkpt_works_in_software_mode, bkpt_print_it)
1065 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1066 Delete declarations.
1067 (initialize_breakpoint_ops): Declare.
1069 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1071 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1072 (momentary_bkpt_print_it): Simplify.
1074 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1076 Split internal, momentary and user breakpoints breakpoint_ops
1079 * breakpoint.c (internal_breakpoint_ops)
1080 (momentary_breakpoint_ops): Forward declare.
1081 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1082 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1083 (create_overlay_event_breakpoint)
1084 (create_std_terminate_master_breakpoint)
1085 (create_exception_master_breakpoint): Create breakpoints with
1086 internal_breakpoint_ops vtable.
1087 (set_longjmp_breakpoint): Create momentary breakpoints with
1088 momentary_breakpoint_ops vtable, using
1089 momentary_breakpoint_from_master.
1090 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1091 (create_solib_event_breakpoint): Create breakpoints with
1092 internal_breakpoint_ops vtable.
1093 (set_momentary_breakpoint): Create breakpoints with
1094 momentary_breakpoint_ops vtable.
1095 (momentary_breakpoint_from_master): New, factored out from
1096 clone_momentary_breakpoint.
1097 (clone_momentary_breakpoint): Adjust.
1098 (watch_command_1): Create scope breakpoints with
1099 momentary_breakpoint_ops vtable.
1100 (bkpt_re_set): Remove handling of internal and momentary
1102 (bkpt_print_mention, bkpt_print_recreate): New.
1103 (bkpt_breakpoint_ops): Adjust.
1104 (internal_bkpt_re_set, internal_bkpt_check_status)
1105 (internal_bkpt_print_it, internal_bkpt_print_mention)
1106 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1107 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1108 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1109 (momentary_bkpt_print_recreate): New.
1110 (momentary_breakpoint_ops): New.
1112 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1114 Implement most breakpoint_ops methods for all breakpoint types,
1115 and move the default handlings to the proper callbacks.
1117 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1118 works_in_software_mode method.
1119 (insert_bp_location): Go through breakpoint_ops->insert_location
1120 for software and hardware watchpoints.
1121 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1123 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1124 for software and hardware watchpoints.
1125 (print_it_typical): Delete.
1126 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1128 (watchpoint_check): Adjust comment.
1129 (bpstat_check_location): Simply always call the breakpoint's
1130 breakpoint_hit method.
1131 (bpstat_stop_status): Always call the breakpoint's check_status
1132 method. Remove special cases for watchpoints and internal event
1133 breakpoints from here (moved to the check_status implementations).
1134 (print_one_breakpoint_location): Assume b->ops is never NULL.
1135 Remove static tracepoint marker id printing from here (moved to
1136 the print_one_detail callback implementation of tracepoints).
1137 (init_bp_location): Assert OPS is never NULL.
1138 (allocate_bp_location): Always call the breakpoint's
1139 allocate_location method, and remove the default code from here.
1140 (free_bp_location): Always call the location's dtor method, and
1141 remove the default code from here.
1142 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1143 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1144 parameter. Pass it down.
1145 (set_raw_breakpoint): Ditto.
1146 (print_it_catch_fork): Adjust to take a bpstat as argument.
1147 (catch_fork_breakpoint_ops): Install methods.
1148 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1149 (catch_vfork_breakpoint_ops): Install methods.
1150 (dtor_catch_syscall): Call the base dtor.
1151 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1152 (catch_syscall_breakpoint_ops): Install methods.
1153 (dtor_catch_exec): Call the base dtor.
1154 (print_it_catch_exec): Adjust to take a bpstat as argument.
1155 (catch_exec_breakpoint_ops): Install methods.
1156 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1157 the breakpoint's resources_needed method, and remove the default
1159 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1161 (clone_momentary_breakpoint): Clone the original's ops.
1162 (mention): Always call the breakpoint's print_mention method, and
1163 remove the default code from here.
1164 (create_breakpoint_sal): Adjust to pass the ops to
1165 set_raw_breakpoint rather than setting it manually.
1166 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1167 ops to set_raw_breakpoint_without_location rather than setting it
1169 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1170 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1171 (ranged_breakpoint_ops): Install methods.
1172 (break_range_command): Adjust to pass the ops to
1173 set_raw_breakpoint rather than setting it manually.
1174 (re_set_watchpoint, breakpoint_hit_watchpoint)
1175 (check_status_watchpoint, resources_needed_watchpoint)
1176 (works_in_software_mode_watchpoint, print_it_watchpoint)
1177 (print_mention_watchpoint, print_recreate_watchpoint): New
1179 (watchpoint_breakpoint_ops): Install new methods.
1180 (print_it_masked_watchpoint): New function.
1181 (masked_watchpoint_breakpoint_ops): Install new methods.
1182 (watch_command_1): Adjust to pass the right breakpoint_ops to
1183 set_raw_breakpoint_without_location rather than setting it
1184 manually later. Record the current pspace.
1185 (print_it_exception_catchpoint): Adjust to take a bpstat as
1187 (gnu_v3_exception_catchpoint_ops): Install new methods.
1188 (say_where): New function.
1189 (null_re_set, null_check_status, null_works_in_software_mode)
1190 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1192 (bp_location_ops): New global.
1193 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1194 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1195 (bkpt_check_status, bkpt_resources_needed)
1196 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1197 (bkpt_print_recreate): New functions.
1198 (bkpt_breakpoint_ops): New global.
1199 (tracepoint_re_set, tracepoint_insert_location)
1200 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1201 (tracepoint_check_status, tracepoint_works_in_software_mode)
1202 (tracepoint_print_it, tracepoint_print_one_detail)
1203 (tracepoint_print_mention, tracepoint_print_recreate): New
1205 (tracepoint_breakpoint_ops): New global.
1206 (delete_breakpoint): Always call the breakpoint's dtor method, and
1207 remove the default handling from here.
1208 (breakpoint_re_set_default): Make static.
1209 (breakpoint_re_set_one): Always call the breakpoints re_set
1210 method, and remove the default handling from here.
1211 (trace_command, ftrace_command, strace_command)
1212 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1213 to create_breakpoint.
1214 (save_breakpoints): Always call the breakpoint's print_recreate
1215 method, and remove the default handling from here.
1217 * ada-lang.c (dtor_exception): Call the base dtor.
1218 (re_set_exception): Call the base method.
1219 (print_it_exception, print_it_catch_exception): Adjust to take a
1221 (catch_exception_breakpoint_ops): Install methods.
1222 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1224 (catch_exception_unhandled_breakpoint_ops): Install methods.
1225 (print_it_catch_assert): Adjust to take a bpstat as argument.
1226 (catch_assert_breakpoint_ops): Install methods.
1228 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1229 to take a bpstat as argument.
1230 (enum print_stop_action): Add describing comments to each enum
1232 (breakpoint_re_set_default): Delete declaration.
1233 (null_re_set, null_works_in_software_mode, null_resources_needed)
1234 (null_check_status, null_print_one_detail): Declare.
1235 (bkpt_breakpoint_ops): Declare.
1236 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1237 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1238 (bkpt_check_status, bkpt_resources_needed)
1239 (bkpt_works_in_software_mode, bkpt_print_it)
1240 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1243 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1244 bkpt_breakpoint_ops.
1245 * python/py-breakpoint.c (bppy_init): Ditto.
1247 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1249 * MAINTAINERS (Write After Approval): Add myself to the list.
1251 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1253 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1255 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1257 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1258 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1259 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1261 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1262 (struct i386_debug_reg_state): New.
1263 (i386_init_dregs): New.
1265 (i386_cleanup_dregs): Use i386_init_dregs.
1266 (i386_show_dr): Add state parameter and adjust.
1267 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1269 (i386_remove_aligned_watchpoint): Likewise.
1270 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1271 (i386_update_inferior_debug_regs): New.
1272 (i386_insert_watchpoint): Work on a local mirror of the debug
1273 registers, and only update the inferior on success.
1274 (i386_remove_watchpoint): Ditto.
1275 (i386_region_ok_for_watchpoint): Adjust.
1276 (i386_stopped_data_address): Adjust.
1277 (i386_insert_hw_breakpoint): Adjust.
1278 (i386_remove_hw_breakpoint): Adjust.
1280 2011-07-22 Tom Tromey <tromey@redhat.com>
1282 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1283 from amd64_pseudo_register_read. Change arguments. Call
1284 mark_value_bytes_unavailable when needed.
1285 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1286 set_gdbarch_pseudo_register_read.
1287 * sentinel-frame.c (sentinel_frame_prev_register): Use
1288 regcache_cooked_read_value.
1289 * regcache.h (regcache_cooked_read_value): Declare.
1290 * regcache.c (regcache_cooked_read_value): New function.
1291 (regcache_cooked_read): Call
1292 gdbarch_pseudo_register_read_value if available.
1293 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1294 (i386_pseudo_register_read): Remove.
1295 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1296 i386_pseudo_register_read. Change arguments. Call
1297 mark_value_bytes_unavailable when needed.
1298 (i386_pseudo_register_read_value): New function.
1299 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1300 not set_gdbarch_pseudo_register_read.
1301 * gdbarch.sh (pseudo_register_read_value): New method.
1302 * gdbarch.c, gdbarch.h: Rebuild.
1303 * findvar.c (value_from_register): Call get_frame_register_value.
1305 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1307 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1309 (display_gdb_prompt): Likewise.
1310 (change_annotation_level): Likewise.
1311 (push_prompt): Likewise.
1312 (pop_prompt): Likewise.
1313 (handle_stop_sig): Use get_prompt with a level.
1314 * top.c (command_loop): Use get_prompt with a level.
1315 (set_async_annotation_level): Use set_prompt with a level.
1316 (get_prefix): New function.
1317 (set_prefix): Ditto.
1318 (set_suffix): Ditto.
1319 (get_suffix): Ditto.
1320 (get_prompt): Accept a level argument.
1321 (set_prompt): Accept a level argument. Free old prompts. Set
1322 new_async_prompt if level is 0.
1323 (init_main): Use set_prompt with a level. Do not set
1325 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1326 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1327 Modify set_prompt, get_prompt to account for levels.
1328 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1330 * python/python.c (before_prompt_hook): Use set_prompt.
1332 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1334 * defs.h: Add guard against inclusion in gdbserver.
1335 (struct ptid, ptid_t): Move to common/ptid.h.
1336 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1337 xsnprintf, internal_error): Move to common/common-utils.h.
1339 * gdb_assert.h: Move into common/ sub-directory.
1340 * gdb_locale.h: Ditto.
1341 * gdb_dirent.h: Ditto.
1342 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1343 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1344 Move into common/ptid.h.
1345 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1346 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1347 Change nomem to malloc_failure.
1348 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1349 * utils.c (nomem): Rename to malloc_failure.
1350 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1351 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1352 (gdb_buildargv): Change nomem to malloc_failure.
1353 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1354 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1355 ptid_is_pid): Move into common/ptid.c.
1356 (initialize_infrun): Delete initialization of null_ptid and
1358 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1359 linux_common_xfer_osdata.
1360 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1361 common/ptid.c and common/buffer.c.
1362 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1363 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1364 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1365 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1367 * common/gdb_assert.h: New.
1368 * common/gdb_dirent.h: New.
1369 * common/gdb_locale.h: New.
1370 * common/buffer.c: New.
1371 * common/buffer.h: New.
1372 * common/ptid.c: New.
1373 * common/ptid.h: New.
1374 * common/xml-utils.c: New.
1375 * common/xml-utils.h: New.
1376 * common/common-utils.c: New.
1377 * common/common-utils.h: New.
1378 * common/linux-osdata.c: New.
1379 * common/linux-osdata.h: New.
1380 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1381 * config/arm/linux.mh (NATDEPFILES): Ditto.
1382 * config/i386/linux.mh (NATDEPFILES): Ditto.
1383 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1384 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1385 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1386 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1387 * config/mips/linux.mh (NATDEPFILES): Ditto.
1388 * config/pa/linux.mh (NATDEPFILES): Ditto.
1389 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1390 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1391 * config/s390/s390.mh (NATDEPFILES): Ditto.
1392 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1393 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1394 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1396 2011-07-21 Matt Rice <ratmice@gmail.com>
1398 * NEWS: Add info macros and info definitions commands.
1400 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1402 * NEWS: Document Python prompt substitution hook.
1404 2011-07-18 Matt Rice <ratmice@gmail.com>
1407 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1408 * macrotab.c (foreach_macro): Ditto.
1409 (foreach_macro_in_scope): Ditto.
1410 * macrocmd.c (print_macro_callback): New function.
1411 (info_macro_command): Move some code to print_macro_definition.
1412 (print_macro_definition): New function.
1413 (print_one_macro): Add new arguments to callback.
1414 (info_definitions_command): New function.
1415 (info_macros_command): Ditto.
1416 (_initialize_macrocmd): Add info macros and info definitions commands.
1417 * symtab.c (add_macro_name): Add new arguments to callback.
1419 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1420 Tom Tromey <tromey@redhat.com>
1422 * top.c (set_prompt): Rewrite to free previous prompt, free
1423 asynch_new_prompt and set both on new prompts.
1424 * event-top.c (display_gdb_prompt): Add prompt substitution
1426 * python/python.c (before_prompt_hook): New function.
1428 2011-07-20 Matt Rice <ratmice@gmail.com>
1430 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1431 arguments to store_unsigned_integer.
1433 2011-07-20 Tom Tromey <tromey@redhat.com>
1435 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1436 in some declaration-only cases.
1438 2011-07-18 Tom Tromey <tromey@redhat.com>
1441 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1442 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1443 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1444 <debug_type_section>: New field.
1445 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1446 (load_cu): Use appropriate section.
1447 (create_signatured_type_table_from_index): Add 'section'
1449 (dwarf2_read_index): Only allow a single .debug_types section.
1450 (dw2_get_file_names): Use appropriate section.
1451 (read_type_comp_unit_head): Add 'section' argument.
1452 (create_debug_types_hash_table): Loop over all .debug_types
1454 (init_cu_die_reader): Use appropriate section.
1455 (process_psymtab_comp_unit, load_partial_comp_unit)
1456 (load_full_comp_unit, read_die_and_children, find_partial_die)
1457 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1458 (lookup_signatured_type_at_offset): Add 'section' argument.
1459 (read_signatured_type_at_offset): Add 'sect' argument.
1460 (read_signatured_type): Use appropriate section.
1461 (set_die_type, get_die_type_at_offset): Update.
1462 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1464 (write_psymtabs_to_index): Don't allow index with more than one
1465 .debug_types section.
1467 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1469 Fix crash if referenced CU is aged out.
1470 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1471 xfree of block.data.
1472 (indirect_pieced_value): New variable back_to, use to for xfree of
1474 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1476 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1477 (load_cu): New function from ...
1478 (dw2_do_instantiate_symtab): ... the code here ...
1479 (process_full_comp_unit): ... and here.
1480 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1483 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1485 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1488 2011-07-19 Gary Benson <gbenson@redhat.com>
1490 * infrun.c (struct execution_control_state): New member
1491 stop_func_filled_in.
1492 (clear_stop_func, fill_in_stop_func): New functions.
1493 (handle_inferior_event): Call clear_stop_func rather than
1494 manipulating the execution control state directly.
1495 Call fill_in_stop_func lazily as required rather than
1496 directly calling find_pc_partial_function in all cases.
1498 2011-07-18 Tom Tromey <tromey@redhat.com>
1500 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1501 checking for variable-sized array.
1503 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1505 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1506 of supported languages.
1507 * varobj.c: Add top definitions and basic implementation of the
1508 following callbacks: ada_number_of_children, ada_name_of_variable,
1509 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1510 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1511 (languages): Register Ada-specific callbacks.
1512 (variable_language): Add the Ada case in the language setter switch.
1514 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1516 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1518 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1521 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1522 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1523 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1524 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1525 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1526 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1527 (struct dwarf_expr_context_funcs): New, move here methods from ...
1528 (struct dwarf_expr_context): ... here. New fields funcs.
1529 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1530 (dwarf_expr_ctx_funcs): New.
1531 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1532 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1533 (needs_frame_ctx_funcs): New.
1534 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1536 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1538 * MAINTAINERS (Write After Approval): Add myself to the list.
1540 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1542 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1543 that CIE pointer of an FDE really points to a CIE .
1545 2011-07-15 Hui Zhu <teawater@gmail.com>
1547 * remote.c (remote_get_trace_status): Add comments.
1549 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1551 Code cleanup - constify struct lval_funcs.
1552 * dwarf2loc.c (pieced_value_funcs): Make it const.
1553 * infrun.c (siginfo_value_funcs): Likewise.
1554 * opencl-lang.c (opencl_value_funcs): Likewise.
1555 * valops.c (value_assign, value_ind): Make the funcs variable const.
1556 * value.c (struct value): Make location.computed.funcs target const.
1557 Rearrange the comments.
1558 (allocate_computed_value): Make the funcs parameter target const.
1559 (value_computed_funcs): Return the funcs target const.
1560 (value_free, value_copy, set_value_component_location): Make the funcs
1562 * value.h (allocate_computed_value): Make the funcs parameter target
1564 (value_computed_funcs): Return the funcs target const.
1565 * windows-tdep.c (tlb_value_funcs): Make it const.
1567 2011-07-14 Hui Zhu <teawater@gmail.com>
1569 * remote.c (remote_get_trace_status): Initialize p.
1571 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1574 * remote.c (remote_get_trace_status): New variable ex. Put
1575 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1577 2011-07-13 Tom Tromey <tromey@redhat.com>
1579 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1580 value_from_contents for final conversion.
1582 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1585 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1586 Indent prototypes so they do not get into tags.
1588 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1590 Code cleanup making also optimized out values lazy.
1591 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1592 allocate_optimized_out_value. Twice.
1593 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1594 * findvar.c (read_var_value): Likewise.
1595 * value.c (allocate_optimized_out_value): New function.
1596 * value.h (allocate_optimized_out_value): New declaration.
1598 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1600 Fix occasional crash of CTRL-C during DWARF read in.
1601 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1603 2011-07-11 Tom Tromey <tromey@redhat.com>
1605 * regcache.c (struct regcache_descr): Fix typo.
1606 * i387-tdep.c (i387_supply_xsave): Fix typo.
1608 2011-07-11 Tom Tromey <tromey@redhat.com>
1610 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1611 (read_file_scope, read_type_unit_scope): Use it.
1613 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1615 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1618 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1621 * python/python.c: Set gdbpy_should_print_stack default to off.
1622 (set_python): Deprecate maint set python print-stack to
1624 (_initialize_python): Deprecate maint set/show python print-stack.
1625 Add new prefix command, python. Add new setting, print-backtrace.
1626 * NEWS: Document set python print-stack. Document default change.
1628 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1630 * python/py-inferior.c (infpy_dealloc): New function.
1631 (inferior_to_inferior_object): Return a new object, or a
1632 new reference to the existing object.
1633 (find_thread_object): Cleanup references to inferior.
1634 (delete_thread_object): Ditto.
1635 * python/py-infthread.c (create_thread_object): Do not increment
1636 inferior reference count.
1638 2011-07-08 Tom Tromey <tromey@redhat.com>
1640 * dwarf2loc.c (locexpr_regname): New function.
1641 (locexpr_describe_location_piece): Use it.
1642 (disassemble_dwarf_expression): Add per_cu argument. Use
1644 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1645 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1647 (locexpr_describe_location_1): Add per_cu argument.
1648 (locexpr_describe_location): Update.
1649 (loclist_describe_location): Update.
1651 2011-07-08 Tom Tromey <tromey@redhat.com>
1653 * dwarf2expr.c (execute_stack_op): Add QUIT.
1655 2011-07-07 Hui Zhu <teawater@gmail.com>
1658 2011-07-06 Hui Zhu <teawater@gmail.com>
1659 * remote.c (remote_start_remote): Add TRY_CATCH for
1660 remote_get_trace_status.
1661 * tracepoint.c (disconnect_tracing): Ditto.
1663 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1665 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1666 variables as signed, not unsigned.
1668 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1670 * jit.c (jit_inferior_init): Reformat forward declaration.
1672 2011-07-06 Matt Rice <ratmice@gmail.com>
1674 * MAINTAINERS (Write After Approval): Add myself to the list.
1676 2011-07-06 Hui Zhu <teawater@gmail.com>
1678 * remote.c (remote_start_remote): Add TRY_CATCH for
1679 remote_get_trace_status.
1680 * tracepoint.c (disconnect_tracing): Ditto.
1682 2011-07-05 Tom Tromey <tromey@redhat.com>
1684 * symtab.c (operator_chars): Now static.
1685 * linespec.c (operator_chars): Don't declare.
1687 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1689 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1691 2011-07-05 Tom Tromey <tromey@redhat.com>
1693 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1694 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1695 (TYPE_CPLUS_REALLY_JAVA): New macro.
1696 * dwarf2read.c (process_structure_scope): Set
1697 TYPE_CPLUS_REALLY_JAVA.
1699 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1701 * ada-lang.c: Fix typos.
1702 * amd64-tdep.c: Likewise.
1703 * breakpoint.c: Likewise.
1704 * cli/cli-decode.c: Likewise.
1705 * findcmd.c: Likewise.
1706 * inline-frame.c: Likewise.
1707 * mi/mi-main.c: Likewise.
1708 * minsyms.c: Likewise.
1709 * monitor.c: Likewise.
1710 * monitor.h: Likewise.
1711 * prologue-value.c: Likewise.
1712 * reverse.c: Likewise.
1713 * s390-tdep.c: Likewise.
1715 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1717 * jit.c (jit_inferior_init): Forward declare.
1718 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1720 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1722 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1724 2011-07-04 Tristan Gingold <gingold@adacore.com>
1726 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1727 (tcb_fieldno): Add activation_link field.
1728 (get_known_tasks_addr): Moved and rewritten.
1729 (get_tcb_types_info): Set activation_link field.
1730 (read_known_tasks_array): Add parameter. Rewritten.
1731 (read_known_tasks_list): New function.
1732 (read_known_tasks): New function.
1733 (ada_build_task_list): Call read_known_tasks instead of
1734 read_known_tasks_array.
1735 * ravenscar-thread.c: Add first_task_name constant.
1736 (has_ravenscar_runtime): Check for task list too.
1738 2011-07-04 Tristan Gingold <gingold@adacore.com>
1740 * ada-tasks.c: Renames fieldno to actb_fieldno.
1741 (ada_get_task_number): Indentation.
1742 (get_tcb_types_info): Remove all parameters. Write directly
1744 (ptid_from_atcb_common): Adjust.
1745 (read_atcb): Adjust.
1747 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1749 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1751 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1753 * ui-out.c (ui_out_field_core_addr): Mention that the function
1754 description is in the header file.
1755 * ui-out.h (ui_out_field_core_addr): Document function.
1757 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1759 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1760 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1762 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1764 * symtab.c (expand_line_sal): Remove empty line.
1766 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1768 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1769 same way as ELFOSABI_NONE.
1770 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1772 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1774 * breakpoint.c: Fix typos in comments.
1775 * linespec.c: Likewise.
1776 * symtab.c: Likewise.
1778 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1780 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1781 section in separate object files.
1783 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1785 Fix false GCC warning.
1786 * linespec.c (decode_line_1): Initialize values.
1788 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1790 * linespec.c (find_method): Accept the function type automatically only
1791 if it was specified with parameter types.
1793 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1795 Stop on first linespec terminator instead of eating what we can.
1796 * linespec.c (is_linespec_boundary): New function.
1797 (name_end): Remove function.
1798 (keep_name_info): New parameter on_boundary, replace the body.
1799 (decode_line_1): Provide the parameter to keep_name_info.
1800 (decode_compound): Likewise. Drop the trailing java return type
1803 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1805 Fall back linespec to minimal symbols.
1806 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1807 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1808 (find_method, symbol_found): Change error to cplusplus_error.
1810 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1812 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1814 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1815 Tom Tromey <tromey@redhat.com>
1817 * dwarf2read.c (check_physname): New variable.
1818 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1819 (show_check_physname): New function.
1820 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1822 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1824 * machoread.c (macho_symfile_read): Delete OBE comment.
1826 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1828 * machoread.c (struct macho_oso_data): Delete.
1829 (current_oso): Delete.
1830 (macho_relocate_common_syms): New function, mostly extracted
1832 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1833 Remove code that sets and unset current_oso.
1834 (macho_symfile_relocate): Delete handling of common symbols,
1835 now moved to macho_relocate_common_syms.
1837 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1839 * darwin-nat.c (darwin_ptrace): Add documentation.
1840 Set errno to zero before calling ptrace. If ptrace returns
1841 -1 and errno is zero, then change then return zero.
1842 (darwin_kill_inferior): Issue a warning instead of triggering
1843 a failed assertion when the PT_KILL ptrace operations returned
1846 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1848 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1849 only when inf->private->no_ptrace.
1851 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1853 * ada-lang.c (print_it_exception): Print temporary catchpoints
1854 as "Temporary catchpoint".
1855 (print_mention_exception): Likewise.
1857 2011-07-01 Tom Tromey <tromey@redhat.com>
1859 * jv-lang.c (java_language_defn): Use java_printchar,
1861 (java_get_encoding): New function.
1862 (java_emit_char): Use generic_emit_char.
1863 (java_printchar): New function.
1864 (java_printstr): Likewise.
1866 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1868 * ada-typeprint.c (print_record_type): If unable to decode
1869 the name of the parent type, use the encoded name.
1871 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1873 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1874 pointer to constrained packed array type output.
1875 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1876 packed array output.
1878 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1880 * ada-typeprint.c (print_array_type): removed if condition on show
1881 being negative for bounds printing.
1883 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1885 * ada-lang.c (ada_identical_enum_types_p): New function.
1886 (symbols_are_identical_enums): New function.
1887 (remove_extra_symbols): Do nothing if NSYMS < 2.
1888 Use symbols_are_identical_enums.
1890 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1892 * ada-valprint.c (ada_value_print): Handle typedefs.
1894 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1896 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1898 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1900 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1901 (decode_constrained_packed_array): Likewise.
1902 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1904 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1906 * ada-exp.y (convert_char_literal): Handle typedef types.
1908 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1910 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1912 2011-06-30 Tom Tromey <tromey@redhat.com>
1914 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1915 * valops.c (find_overload_match): Call do_cleanups on early exit
1917 * solib.c (solib_find): Call do_cleanups on early exit path.
1919 2011-06-30 Tom Tromey <tromey@redhat.com>
1921 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1922 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1923 return paths. Defer final do_cleanups until last return.
1924 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1927 2011-06-30 Tom Tromey <tromey@redhat.com>
1929 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1931 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1933 * MAINTAINERS (Write After Approval): Add myself to the list.
1935 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1937 Disable epilogue unwinders on recent GCCs.
1938 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1939 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1940 * dwarf2read.c (process_full_comp_unit): Initialize
1941 EPILOGUE_UNWIND_VALID.
1942 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1943 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1944 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1946 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1948 Code cleanup - reformatting.
1949 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1950 (producer_is_gcc_ge_4): ... here, change the return value.
1951 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1954 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1956 Fix non-only rename list for Fortran modules import.
1957 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1958 cp_add_using_directive caller.
1959 (cp_add_using_directive): New parameter excludes, describe it. New
1960 variables ix and param. Compare if also excludes match. Allocate NEW
1961 with variable size, initialize EXCLUDES there.
1962 (cp_lookup_symbol_imports): New variable excludep, test
1963 current->EXCLUDES with it.
1964 * cp-support.h: Include vec.h.
1965 (struct using_direct): New field excludes, describe it.
1966 (DEF_VEC_P (const_char_ptr)): New.
1967 (cp_add_using_directive): New parameter excludes.
1968 * defs.h (const_char_ptr): New typedef.
1969 * dwarf2read.c (read_import_statement): New variables child_die,
1970 excludes and cleanups, read in excludes.
1971 (read_namespace): Adjust the cp_add_using_directive caller.
1973 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1976 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1977 negative comparisons.
1979 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
1981 * mi/mi-main.c (mi_cmd_list_features): Emit
1982 breakpoint-notifications.
1984 2011-06-29 Tom Tromey <tromey@redhat.com>
1987 * valprint.h (generic_emit_char, generic_printstr): Declare.
1988 * valprint.c (wchar_printable, append_string_as_wide)
1989 (print_wchar): Move from c-lang.c.
1990 (generic_emit_char): New function; mostly taken from c_emit_char.
1991 (generic_printstr): New function; mostly taken from c_printstr.
1992 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1993 represented as arrays.
1994 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1996 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1997 identically to TYPE_CODE_INT.
1998 * f-lang.c (f_get_encoding): New function.
1999 (f_emit_char): Use generic_emit_char.
2000 (f_printchar): Replace comment.
2001 (f_printstr): Use generic_printstr.
2002 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2003 "character" types specially.
2004 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2006 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2008 (c_emit_char): Call generic_emit_char.
2009 (c_printstr): Call generic_printstr.
2011 2011-06-29 Gary Benson <gbenson@redhat.com>
2013 * breakpoint.c (bpstat_what): Removed duplicated case.
2015 2011-06-28 Tom Tromey <tromey@redhat.com>
2017 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2019 2011-06-27 Tom Tromey <tromey@redhat.com>
2021 * valops.c (find_overload_match): Call do_cleanups before early
2023 * top.c (execute_command): Call do_cleanups before early return.
2024 (command_loop): Likewise.
2025 * stack.c (backtrace_command): Make a null cleanup early. Don't
2026 conditionally call do_cleanups.
2027 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2029 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2030 so cleanups are always run.
2031 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2032 * findcmd.c (parse_find_args): Call do_cleanups on early return
2034 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2035 Don't conditionally call do_cleanups.
2036 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2039 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2041 * MAINTAINERS (Write After Approval): Use default email address.
2043 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2045 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2047 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2049 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2050 saved_regs_mask and copied_regs_mask fields.
2051 (sparc_record_save_insn): New prototype.
2052 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2053 (sparc_record_save_insn): New function.
2054 (sparc_analyze_prologue): Add head comment. Recognize store insns
2055 of call-saved registers. Use OFFSET consistently. Recognize flat
2056 frames and cache their settings.
2057 (sparc32_skip_prologue): Handle flat frames.
2058 (sparc_frame_cache): Add frame_offset to the base address.
2059 (sparc32_frame_cache): Adjust to new frame description.
2060 (sparc32_frame_prev_register): Likewise.
2061 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2062 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2063 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2064 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2065 frame by calling sparc_record_save_insn.
2066 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2067 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2068 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2070 2011-06-27 Tristan Gingold <gingold@adacore.com>
2072 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2073 field by map_addr and map_len.
2074 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2075 (munmap_section_buffer): Likewise.
2077 2011-06-24 Tom Tromey <tromey@redhat.com>
2079 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2080 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2081 * python/python.c (gdbpy_parameter): Make 'arg' const.
2082 (execute_gdb_command): Likewise.
2083 (gdbpy_decode_line): Likewise. Copy it.
2084 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2085 (gdbpy_write): Make 'arg' const.
2086 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2088 (gdbpy_lookup_type): Likewise.
2089 * python/py-prettyprint.c (print_children): Make 'name' const.
2090 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2091 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2093 * python/py-function.c (fnpy_init): Make 'name' const.
2094 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2095 (gdbpy_string_to_argv): Make 'input' const.
2096 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2098 * gdbtypes.h (lookup_typename): Update.
2099 * gdbtypes.c (lookup_typename): Make 'name' const.
2100 (lookup_struct): Likewise.
2101 (lookup_union): Likewise.
2102 (lookup_enum): Likewise.
2104 2011-06-24 Tom Tromey <tromey@redhat.com>
2106 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2107 gdb_thread_db.h. Move all common/ entries to be together.
2108 (TAGS): Don't depend on DEPFILES.
2110 2011-06-23 Yao Qi <yao@codesourcery.com>
2112 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2113 * remote.c (remote_start_remote): ... here.
2114 * monitor.c (monitor_open): ... here.
2116 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2118 * gdbtypes.c (append_composite_type_field_aligned): Fix
2119 calculation of bit position based on alignment.
2121 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2123 * breakpoint.c (bpstat_stop_status): Call the check_status
2124 breakpoint_ops method.
2125 (print_one_breakpoint_location): Also print the condition for Ada
2126 exception catchpoints.
2127 (allocate_bp_location): New, factored out from
2128 allocate_bp_location.
2129 (allocate_bp_location): Adjust. Call the owner breakpoint's
2130 allocate_location method, if there is one.
2131 (free_bp_location): Call the locations's dtor method, if there is
2133 (init_raw_breakpoint_without_location): New breakpoint_ops
2135 (set_raw_breakpoint_without_location): Adjust.
2136 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2137 (set_raw_breakpoint): Adjust.
2138 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2139 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2140 re_set and check_status methods.
2141 (init_catchpoint): Don't memset, initialize thread, addr_string
2142 and enable_state. Pass the ops down to init_raw_breakpoint.
2143 (install_catchpoint): Rename to ...
2144 (install_breakpoint): ... this, and make extern.
2145 (create_fork_vfork_event_catchpoint): Adjust.
2146 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2147 re_set and check_status methods.
2148 (create_syscall_event_catchpoint): Adjust.
2149 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2150 (masked_watchpoint_breakpoint_ops): Install NULL
2151 allocate_location, re_set and check_status methods.
2152 (catch_exec_command_1): Adjust.
2153 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2154 re_set and check_status methods.
2155 (create_ada_exception_breakpoint): Rename to ...
2156 (init_ada_exception_breakpoint): ... this. Add a struct
2157 breakpoint parameter, and delete the exp_string, cond_string and
2158 cond parameters. Use init_raw_breakpoint, and don't install or
2159 mention the breakpoint yet. Don't clear breakpoint fields that
2160 init_raw_breakpoint already clears.
2161 (re_set_breakpoint): Delete, split into ...
2162 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2164 (breakpoint_re_set_one): Call the breakpoint's
2165 breakpoint_ops->re_set implementation, if there's one. Adjust.
2166 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2167 (struct bp_location_ops): New type.
2168 (struct bp_location): New field `ops'.
2169 (struct breakpoint_ops): New `allocate_location', `re_set' and
2170 `check_status' fields. Make `breakpoint_hit''s description match
2172 (init_bp_location): Declare.
2173 (breakpoint_re_set_default): Declare.
2174 (create_ada_exception_breakpoint): Rename to ...
2175 (init_ada_exception_breakpoint): ... this. Add a struct
2176 breakpoint parameter, and delete the exp_string, cond_string and
2178 (install_breakpoint): Declare.
2179 * ada-lang.c: Include exceptions.h.
2180 <Ada exceptions description>: Update.
2181 (struct ada_catchpoint_location): New type.
2182 (ada_catchpoint_location_dtor): New function.
2183 (ada_catchpoint_location_ops): New global.
2184 (ada_catchpoint): New type.
2185 (create_excep_cond_exprs): New function.
2186 (dtor_exception, allocate_location_exception, re_set_exception)
2187 (should_stop_exception, check_status_exception): New functions.
2188 (print_one_exception, print_mention_exception)
2189 (print_recreate_exception): Adjust.
2190 (dtor_catch_exception, allocate_location_catch_exception)
2191 (re_set_catch_exception, check_status_catch_exception): New
2193 (catch_exception_breakpoint_ops): Install them.
2194 (dtor_catch_exception_unhandled)
2195 (allocate_location_catch_exception_unhandled)
2196 (re_set_catch_exception_unhandled)
2197 (check_status_catch_exception_unhandled): New functions.
2198 (catch_exception_unhandled_breakpoint_ops): Install them.
2199 (dtor_catch_assert, allocate_location_catch_assert)
2200 (re_set_catch_assert, check_status_catch_assert): New functions.
2201 (catch_assert_breakpoint_ops): Install them.
2202 (ada_exception_catchpoint_p): Delete.
2203 (catch_ada_exception_command_split)
2204 (ada_exception_catchpoint_cond_string): Rename exp_string
2205 parameter to excep_string. Adjust.
2206 (ada_parse_catchpoint_condition): Delete.
2207 (ada_exception_sal): Rename the exp_string parameter to
2208 excep_string. Delete the cond_string and cond parameters.
2210 (ada_decode_exception_location): Rename the exp_string parameter
2211 to excep_string. Delete the cond_string and cond parameters.
2213 (create_ada_exception_catchpoint): New function.
2214 (catch_ada_exception_command, ada_decode_assert_location)
2215 (catch_assert_command): Adjust.
2216 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2218 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2220 * ada-lang.c: Include arch-utils.h.
2221 (ada_decode_exception_location): Make static.
2222 (catch_ada_exception_command): Moved here from breakpoint.c.
2223 (ada_decode_assert_location): Make static.
2224 (catch_assert_command): Moved here from breakpoint.c.
2225 (_initialize_ada_lang): Install the exception and assert
2226 catchpoint commands here.
2227 * ada-lang.h (ada_decode_exception_location)
2228 (ada_decode_assert_location): Delete declarations.
2229 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2231 (create_ada_exception_breakpoint): Make extern.
2232 (catch_ada_exception_command, catch_assert_command): Moved to
2234 (add_catch_command): Make extern.
2235 (_initilize_breakpoint): Don't install the exception and assert
2236 catchpoint commands here.
2237 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2239 (add_catch_command, create_ada_exception_breakpoint): Declare.
2241 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2243 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2244 the breakpoint to the breakpoint chain here.
2245 (set_raw_breakpoint_without_location): Add the breakpoint to the
2246 breakpoint chain here.
2247 (init_raw_breakpoint): Adjust comments.
2248 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2250 (init_catchpoint): Don't set the catchpoint's breakpoint number
2252 (install_catchpoint): New function.
2253 (create_fork_vfork_event_catchpoint)
2254 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2255 use install_catchpoint.
2257 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2259 * breakpoint.c (create_catchpoint_without_mention)
2260 (create_catchpoint): Delete.
2262 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2264 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2265 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2266 reference to exec_pathname.
2267 (struct exec_catchpoint): New type.
2268 (dtor_catch_exec): New function.
2269 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2270 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2271 (catch_exec_command_1): Adjust to use init_catchpoint.
2272 (delete_breakpoint): Remove reference to exec_pathname.
2274 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2276 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2277 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2278 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2279 reference to syscalls_to_be_caught.
2280 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2282 (struct syscall_catchpoint): New type.
2283 (dtor_catch_syscall): New function.
2284 (insert_catch_syscall, remove_catch_syscall)
2285 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2286 (print_recreate_catch_syscall): Adjust.
2287 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2288 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2289 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2290 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2291 (masked_watchpoint_breakpoint_ops)
2292 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2293 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2294 there is one. Remove references to syscalls_to_be_caught.
2295 (catching_syscall_number): Adjust.
2296 * ada-lang.c (catch_exception_breakpoint_ops)
2297 (catch_exception_unhandled_breakpoint_ops)
2298 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2300 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2302 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2304 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2305 reference to forked_inferior_pid.
2306 (struct fork_catchpoint): New type.
2307 (breakpoint_hit_catch_fork, print_it_catch_fork)
2308 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2309 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2310 (create_fork_vfork_event_catchpoint): Adjust to use
2313 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2315 * breakpoint.c (add_to_breakpoint_chain)
2316 (init_raw_breakpoint_without_location): New functions, factored
2318 (set_raw_breakpoint_without_location): ... this one.
2319 (init_raw_breakpoint): New function, factored out from
2320 set_raw_breakpoint and adjusted to use
2321 init_raw_breakpoint_without_location.
2322 (set_raw_breakpoint): Adjust.
2323 (init_catchpoint): New function, factored out from
2324 create_catchpoint_without_mention and adjusted to use
2325 init_raw_breakpoint.
2326 (create_catchpoint_without_mention): Adjust.
2328 2011-06-22 Tom Tromey <tromey@redhat.com>
2330 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2331 argument of 0 specially.
2333 2011-06-22 Yao Qi <yao@codesourcery.com>
2335 * infrun.c (handle_inferior_event): Remove write-only local variable
2336 `sw_single_step_trap_p'.
2338 2011-06-20 Tom Tromey <tromey@redhat.com>
2340 * symtab.c (lookup_language_this): End loop if block is NULL.
2342 2011-06-17 Tom Tromey <tromey@redhat.com>
2344 * valops.c (value_of_this): Use lookup_language_this.
2345 * symtab.h (lookup_language_this): Declare.
2346 * symtab.c (lookup_language_this): New function.
2347 (lookup_symbol_aux): Use lookup_language_this.
2348 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2350 2011-06-17 Tom Tromey <tromey@redhat.com>
2352 * value.h (value_of_this): Update.
2353 (value_of_local): Remove.
2354 * valops.c (value_of_this): Rename from value_of_local. Change
2356 * p-exp.y (exp): Update.
2357 (variable): Likewise.
2358 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2360 2011-06-17 Tom Tromey <tromey@redhat.com>
2362 * valops.c (value_of_local): Complain if NAME is NULL.
2363 * std-operator.def (OP_OBJC_SELF): Remove.
2364 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2365 * objc-exp.y (name_not_typename): Use OP_THIS.
2366 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2368 <OP_OBJC_SELF>: Remove.
2369 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2371 2011-06-16 Tristan Gingold <gingold@adacore.com>
2373 * python/py-events.h (gdb_py_events): Make it extern.
2374 * python/py-evtregistry.c (gdb_py_events): Declare.
2376 2011-06-16 Hui Zhu <teawater@gmail.com>
2378 * remote.c (remote_trace_set_readonly_regions): Add check for
2379 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2382 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2384 * arm-linux-tdep.c: Include "auxv.h".
2386 (ARM_LINUX_SIZEOF_VFP): Define.
2387 (arm_linux_supply_vfp): New function.
2388 (arm_linux_collect_vfp): Likewise.
2389 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2390 (arm_linux_fpa_regset_sections): New variable.
2391 (arm_linux_vfp_regset_sections): Likewise.
2392 (arm_linux_core_read_description): New function.
2393 (arm_linux_init_abi): Install arm_linux_core_read_description and
2394 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2395 appropriate for the architecture.
2396 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2397 (tdesc_arm_with_m): Declare.
2398 (tdesc_arm_with_iwmmxt): Likewise.
2399 (tdesc_arm_with_vfpv2): Likewise.
2400 (tdesc_arm_with_vfpv3): Likewise.
2401 (tdesc_arm_with_neon): Likewise.
2402 * arm-linux-nat.c: Move features/*.c includes ...
2403 * arm-tdep.c: ... here.
2404 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2405 target description data structures ...
2406 * arm-tdep.c (_initialize_arm_tdep): ... here.
2407 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2408 HWCAP_VFPv3D16): Move definitions ...
2409 * arm-linux-tdep.h: ... here.
2411 2011-06-15 Hui Zhu <teawater@gmail.com>
2413 * remote.c (remote_trace_set_readonly_regions): Add a check for
2416 2011-06-14 Tom Tromey <tromey@redhat.com>
2418 * coffread.c (coffread_objfile): Rename from current_objfile.
2419 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2420 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2422 2011-06-14 Tom Tromey <tromey@redhat.com>
2424 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2425 (class_symtab): Remove.
2426 (jv_dynamics_progspace_key): New global.
2427 (jv_per_objfile_free): Reset program space data. Update assert.
2428 Don't clear globals.
2429 (get_dynamics_objfile): Use and set program space data.
2430 (get_java_class_symtab): Use get_dynamics_objfile.
2431 (add_class_symbol): Likewise.
2432 (java_link_class_type): Likewise.
2433 (java_object_type, jv_clear_object_type, set_java_object_type):
2435 (get_java_object_type): Update. Don't cache result.
2436 (is_object_type): Don't call set_java_object_type.
2437 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2438 initialize jv_dynamics_progspace_key.
2440 2011-06-14 Tom Tromey <tromey@redhat.com>
2442 * symtab.h (current_objfile): Don't declare.
2443 * objfiles.h (current_objfile): Don't declare.
2444 * objfiles.c (current_objfile): Remove.
2445 * mdebugread.c (current_objfile): New file-scope global.
2446 * dbxread.c (current_objfile): New file-scope global.
2447 * coffread.c (current_objfile): New file-scope global.
2449 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2451 * top.h (line): Rename to ...
2452 (saved_command_line): ... this.
2453 (linesize): Rename to ...
2454 (saved_command_line_size): ... this.
2455 * top.c (line): Rename to ...
2456 (saved_command_line): ... this.
2457 (linesize): Rename to ...
2458 (saved_command_line_size): ... this.
2459 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2460 * event-top.c (command_line_handler): Adjust.
2461 * main.c (captured_main): Adjust.
2463 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2465 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2466 get_frame_func instead of get_frame_pc to determine the code
2467 address used to construct the frame ID.
2468 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2469 (i386_epilogue_frame_this_id): Likewise.
2470 (i386_epilogue_frame_prev_register): New function.
2471 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2472 (i386_stack_tramp_frame_sniffer): Fix coding style.
2473 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2474 (i386_gdbarch_init): Fix comments.
2476 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2478 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2479 instruction when walking back through the instruction stream.
2481 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2483 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2484 fullname parameters order.
2486 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2489 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2491 * psymtab.c (map_symbol_filenames_psymtab)
2492 (map_partial_symbol_filenames): Likewise.
2493 * psymtab.h: Include symfile.h.
2494 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2495 * symfile.h (symbol_filename_ftype): New.
2496 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2497 map_symbol_filenames, clarify more the naming in comment.
2499 2011-06-07 Doug Evans <dje@google.com>
2501 * cc-with-index.sh: Fix typos in comment.
2502 Look for ../../gdb, for fullname.exp.
2504 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2505 Pedro Alves <pedro@codesourcery.com>
2507 * cli/cli-cmds.c (shell_escape): Use waitpid.
2508 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2510 2011-06-07 Tristan Gingold <gingold@adacore.com>
2512 * xcoffread.c (dwarf2_xcoff_names): New variable.
2513 (aix_process_linenos): Add a guard.
2514 (xcoff_symfile_finish): Free dwarf2.
2515 (xcoff_initial_scan): Add dwarf2 support.
2517 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2519 * infcall.c (run_inferior_call): Don't mask async. Instead force
2520 a synchronous wait, if the target can async.
2522 * target.h (struct target_ops): Delete to_async_mask.
2523 (target_async_mask): Delete.
2524 * target.c (update_current_target): Delete references to to_async_mask.
2525 * linux-nat.c (linux_nat_async_mask_value): Delete.
2526 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2527 to linux_nat_async_mask_value.
2528 (linux_nat_async_mask): Delete.
2529 (linux_nat_async, linux_nat_close): Remove references to
2530 linux_nat_async_mask_value.
2531 * record.c (record_async_mask_value): Delete.
2532 (record_async): Remove references to record_async_mask_value.
2533 (record_async_mask): Delete.
2534 (record_can_async_p, record_is_async_p): Remove references to
2535 record_async_mask_value.
2536 (init_record_ops, init_record_core_ops): Remove references to
2538 * remote.c (remote_async_mask_value): Delete.
2539 (init_remote_ops): Remove reference to remote_async_mask.
2540 (remote_can_async_p, remote_is_async_p): Remove references to
2541 remote_async_mask_value.
2542 (remote_async): Remove references to remote_async_mask_value.
2543 (remote_async_mask): Delete.
2545 * infrun.c (fetch_inferior_event): Don't claim registers changed
2546 if the current thread is already not executing.
2548 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2550 From Stephen Kitt <steve@sk2.org>
2551 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2552 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2554 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2556 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2557 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2559 2011-06-03 Tom Tromey <tromey@redhat.com>
2561 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2563 * python/py-exitedevent.c (create_exited_event_object): Change
2564 type of 'exit_code'. Optionally add exit_code attribute.
2565 (emit_exited_event): Change type of 'exit_code'.
2566 * python/py-event.h (emit_exited_event): Update.
2567 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2568 * infrun.c (handle_inferior_event): Set exit code fields on
2570 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2572 * inferior.c (exit_inferior_1): Initialize new fields.
2574 2011-06-03 Tom Tromey <tromey@redhat.com>
2576 * dwarf2expr.c (get_signed_type): New function.
2577 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2579 2011-06-02 Keith Seitz <keiths@redhat.com>
2581 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2583 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2585 * top.h (simplified_command_loop): Delete declaration.
2587 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2589 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2590 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2592 2011-06-01 Yao Qi <yao@codesourcery.com>
2594 * objfiles.h (obj_section_addr): Update reference to objfile from
2596 (obj_section_endaddr): Likewise.
2598 2011-06-01 Daniel Jacobowitz <drow@false.org>
2600 * MAINTAINERS: Update my email address and affiliation. Also
2601 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2603 2010-05-31 Keith Seitz <keiths@redhat.com>
2606 * linespec.c (get_search_block): New function.
2607 (find_methods): Add FILE_SYMTATB parameter and use it and
2608 get_search_block to pass an appropriate block to
2609 lookup_symbol_in_namespace.
2610 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2611 Check if *ARGPTR starts with a filename first.
2612 If it does, call locate_first_half again to locate the next
2613 "first half" of the linespec.
2614 Pass FILE_SYMTATB to decode_objc and decode_compound.
2615 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2616 (locate_first_half): Stop on the first colon seen.
2617 (decode_compound): Add FILE_SYMTAB parameter.
2618 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2619 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2620 get_search_block with lookup_symbol.
2621 (find_method): Add FILE_SYMTAB parameter and pass it to
2623 (decode_objc): Use get_search_block.
2625 2010-05-31 Keith Seitz <keiths@redhat.com>
2628 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2629 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2630 and CP_ANONYMOUS_NAMESPACE_LEN.
2631 (cp_is_anonymous): Likewise.
2632 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2633 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2634 * dwarf2read.c (namespace_name): Likewise.
2635 (fixup_partial_die): Likewise.
2636 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2637 seen in the input, keep it.
2639 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2641 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2642 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2643 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2644 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2645 * remote.c (_initialize_remote): Register
2646 async_remote_interrupt_twice directly as
2647 sigint_remote_twice_token event.
2649 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2651 * target.h (enum inferior_event_type): Delete INF_ERROR.
2652 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2654 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2656 * interps.c (interp_set): Don't cancel continuations.
2658 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2660 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2662 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2664 * continuations.h (continuation_ftype): Add `err' parameter.
2665 Document parameters.
2666 (do_all_continuations, do_all_continuations_thread)
2667 (do_all_intermediate_continuations)
2668 (do_all_intermediate_continuations_thread)
2669 (do_all_inferior_continuations): Add `err' parameter.
2670 * continuations.c (do_my_continuations_1, do_my_continuations)
2671 (do_all_inferior_continuations, do_all_continuations_ptid)
2672 (do_all_continuations_thread_callback)
2673 (do_all_continuations_thread, do_all_continuations)
2674 (do_all_intermediate_continuations_thread_callback)
2675 (do_all_intermediate_continuations_thread)
2676 (do_all_intermediate_continuations): Add `err' parameter, and pass
2677 it down all the way to the continuations proper.
2678 * inf-loop.c (inferior_event_handler): If fetching an inferior
2679 event throws an error, don't pop the target, and still call the
2680 continuations, but with `err' set. Adjust all other continuation
2682 * breakpoint.c (until_break_command_continuation): Add `err'
2684 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2685 issue another step if `err' is set.
2686 (struct until_next_continuation_args): New.
2687 (until_next_continuation): Add `err' parameter. Adjust.
2688 (until_next_command): Adjust.
2689 (struct finish_command_continuation_args): Add `thread' field.
2690 (finish_command_continuation): Add `err' parameter. Handle it.
2691 (finish_forward): Adjust.
2692 (attach_command_continuation): Add `err' parameter. Handle it.
2693 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2694 cancel the continuations.
2695 * interps.c (interp_set): Adjust to cancel the continuations.
2696 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2697 continuations rather than discarding.
2698 (free_thread): Don't clear thread inferior resources here.
2699 (delete_thread_1): Do it here instead. And do it before removing
2700 the thread from the threads list. Tag the thread as exited before
2701 clearing thread inferior resources.
2703 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2705 * infcall.c (call_function_by_hand): Rephrase error message.
2707 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2709 * defs.h (struct thread_info, struct inferior): Delete forward
2711 * breakpoint.h (struct thread_info): New forward declaration.
2712 * observer.sh (struct inferior): New forward declaration.
2713 * python/python-internal.h (struct inferior): New forward
2716 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2718 * defs.h (struct continuation, continuation_ftype)
2719 (continuation_free_arg_ftype, add_continuation)
2720 (do_all_continuations, do_all_continuations_thread)
2721 (discard_all_continuations, discard_all_continuations_thread)
2722 (add_intermediate_continuation, do_all_intermediate_continuations)
2723 (do_all_intermediate_continuations_thread)
2724 (discard_all_intermediate_continuations)
2725 (discard_all_intermediate_continuations_thread)
2726 (add_inferior_continuation, do_all_inferior_continuations)
2727 (discard_all_inferior_continuations): Move to ...
2728 * continuations.h: ... this new file.
2729 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2730 infcmd.c, inferior.c, infrun.c, interps.c: Include
2733 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2734 Doug Evans <dje@google.com>
2736 Fix PR 10970, PR 12702.
2737 * linux-nat.c (linux_lwp_is_zombie): New function.
2738 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2739 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2741 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2743 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2745 (add_continuation, add_intermediate_continuation)
2746 (add_inferior_continuation): Use them.
2747 * continuations.c (struct continuation): Use them.
2748 (make_continuation_ftype): Delete.
2749 (make_continuation, add_inferior_continuation, add_continuation)
2750 (add_intermediate_continuation): Use continuation_ftype and
2751 continuation_free_arg_ftype. Rename parameters to shorter names.
2753 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2755 * continuations.c (make_continuation): Make it return void.
2756 (do_my_continuations): Rename to ...
2757 (do_my_continuations_1): ... this. Remove old_chain parameter and
2759 (do_my_continuations): New.
2760 (discard_my_continuations): Rename to ...
2761 (discard_my_continuations_1): ... this. Remove old_chain
2762 parameter and adjust.
2763 (discard_my_continuations): New.
2764 (add_inferior_continuation): Simplify.
2765 (do_all_inferior_continuations): Reimplement on top
2766 do_my_continuations.
2767 (discard_all_inferior_continuations): Simplify.
2768 (add_continuation): Simplify.
2769 (do_all_continuations_ptid): Simplify.
2770 (discard_all_continuations_thread_callback): Simplify.
2771 (add_intermediate_continuation): Simplify.
2772 (discard_all_intermediate_continuations_thread_callback):
2775 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2777 * utils.c (struct continuation, add_continuation)
2778 (add_inferior_continuation)
2779 (do_all_inferior_continuations, discard_all_inferior_continuations)
2780 (restore_thread_cleanup, do_all_continuations_ptid)
2781 (do_all_continuations_thread_callback)
2782 (do_all_continuations_thread, do_all_continuations)
2783 (discard_all_continuations_thread_callback)
2784 (discard_all_continuations_thread, discard_all_continuations)
2785 (add_intermediate_continuation)
2786 (do_all_intermediate_continuations_thread_callback)
2787 (do_all_intermediate_continuations_thread)
2788 (do_all_intermediate_continuations)
2789 (discard_all_intermediate_continuations_thread_callback)
2790 (discard_all_intermediate_continuations_thread)
2791 (discard_all_intermediate_continuations): Move to ...
2792 * continuations.c: ... this new file, and adjust to no longer
2793 implement continuations on top of cleanups.
2794 * Makefile.in (SFILES): Add continuations.c.
2795 (COMMON_OBS): Add continuations.o.
2797 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2799 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2800 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2801 Internal error on invalid values.
2802 * reverse.c: Don't handle EXEC_ERROR.
2803 * mi/mi-main.c: Don't handle EXEC_ERROR.
2805 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2807 * record.c: Include event-loop.h, inf-loop.h.
2808 (record_beneath_to_async): New global.
2809 (tmp_to_async): New global.
2810 (record_async_inferior_event_token): New global.
2811 (record_open_1): Don't error out if async is enabled.
2812 (record_open): Handle to_async. Create an async event source in
2814 (record_close): Delete the async event source.
2815 (record_resumed): New global.
2816 (record_execution_dir): New global.
2817 (record_resume, record_core_resume): Set them. Register the
2818 target on the event loop.
2819 (record_wait): Rename to ...
2820 (record_wait_1): ... this. Add more debug output. Handle
2821 TARGET_WNOHANG, and the target beneath returning
2822 TARGET_WAITKIND_IGNORE.
2823 (record_wait): Reimplement on top of record_wait_1.
2824 (record_async_mask_value): New global.
2825 (record_async, record_async_mask, record_can_async_p)
2826 (record_is_async_p, record_execution_direction): New functions.
2827 (init_record_ops, init_record_core_ops): Install new methods.
2828 * infrun.c (fetch_inferior_event): Temporarily switch the global
2829 execution direction to the direction the target was going.
2830 (execution_direction): Change type to int.
2831 * target.c (default_execution_direction): New function.
2832 (update_current_target): Inherit and de_fault
2833 to_execution_direction.
2834 * target.h (struct target_ops) <to_execution_direction>: New
2836 (target_execution_direction): New macro.
2837 * inferior.h (execution_direction): Change type to int.
2839 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2841 * infcall.c (call_function_by_hand): Don't allow calling functions
2842 in reverse execution mode.
2844 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2846 * infcmd.c (finish_command): Allow async finish in reverse.
2848 2011-05-26 Yao Qi <yao@codesourcery.com>
2850 * gdb_thread_db.h: Delete. Move to ...
2851 * common/gdb_thread_db.h: ... here.
2853 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2855 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2856 function's entry point instead of a manually managed momentary
2857 breakpoint, and only ever issue one proceed call.
2858 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2859 doing a reverse-finish, switch to stepi mode, to do another step.
2860 (insert_step_resume_breakpoint_at_sal): Make public.
2861 (normal_stop): No need to save function value return registers if
2863 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2865 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2867 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2868 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2869 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2871 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2872 step-resume breakpoints.
2873 (print_it_typical): Handle bp_hp_step_resume.
2874 (bpstat_what): Ditto.
2875 (bptype_string): Ditto.
2876 (print_one_breakpoint_location): Ditto.
2877 (allocate_bp_location): Ditto.
2879 (breakpoint_re_set_one): Ditto.
2880 * infrun.c (handle_inferior_event): Adjust. Split
2881 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2882 BPSTAT_WHAT_HP_STEP_RESUME.
2883 (insert_step_resume_breakpoint_at_sal): Rename to ...
2884 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2885 parameter. Handle it.
2886 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2887 insert_step_resume_breakpoint_at_sal_1.
2888 (insert_step_resume_breakpoint_at_frame): Rename to ...
2889 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2890 set a high-priority step-resume breakpoint.
2891 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2892 (insert_step_resume_breakpoint_at_caller): Ditto.
2894 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2896 * breakpoint.c (iterate_over_related_breakpoints): New.
2897 (do_map_delete_breakpoint): New.
2898 (delete_command): Pass do_map_delete_breakpoint to
2899 map_breakpoint_numbers.
2900 (do_disable_breakpoint): New.
2901 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2903 (do_enable_breakpoint): Rename to ...
2904 (enable_breakpoint_disp): ... this.
2905 (enable_breakpoint): Adjust.
2906 (do_enable_breakpoint): New.
2907 (enable_once_breakpoint): Delete.
2908 (do_map_enable_breakpoint): New.
2909 (do_map_enable_once_breakpoint): New.
2910 (enable_once_command, enable_delete_command)
2911 (delete_trace_command): Iterate over the breakpoint's related
2914 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2916 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2917 for ALPHA_ZERO_REGNUM.
2918 (alpha_supply_int_regs): Explicitly supply zero as the value for
2919 ALPHA_ZERO_REGNUM in the register cache.
2920 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2922 2011-05-26 Yao Qi <yao@codesourcery.com>
2924 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2926 2011-05-26 Tristan Gingold <gingold@adacore.com>
2928 * symfile.h (struct dwarf2_section_names): New type.
2929 (struct dwarf2_debug_sections): New type.
2930 (dwarf2_has_info): Add parameter.
2931 * dwarf2read.c (dwarf2_elf_names): New variable.
2932 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2933 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2934 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2935 (dwarf2_has_info): Add names parameter. Pass names
2936 to dwarf2_locate_sections.
2937 (section_is_p): Rewrite using the names parameter.
2938 (dwarf2_locate_sections): Use section names from the names parameter.
2939 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2940 * elfread.c (read_psyms): Ditto.
2941 * machoread.c (macho_symfile_read): Ditto.
2943 2011-05-25 Andreas Schwab <schwab@redhat.com>
2946 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2948 2011-05-24 Keith Seitz <keiths@redhat.com>
2951 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2952 (decode_compound): Unconditionally call keep_name_info.
2954 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2956 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2957 scope, clear its command list.
2958 (map_breakpoint_numbers): Don't walk the related breakpoints list
2961 2011-05-24 Tom Tromey <tromey@redhat.com>
2963 * MAINTAINERS: Move Jim Blandy to past maintainers.
2965 2011-05-24 Tristan Gingold <gingold@adacore.com>
2967 * symfile.h (enum dwarf2_section_enum): New type.
2968 (dwarf2_get_section_info): New prototype.
2969 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2970 section_name by sect. Use a switch to select the info.
2971 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2972 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2974 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2976 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2977 shared library event breakpoint if there's no execution.
2979 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2981 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2982 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2984 2011-05-23 Tom Tromey <tromey@redhat.com>
2986 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2989 2011-05-23 Doug Evans <dje@google.com>
2991 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2992 entry for RuntimeError to doc string.
2994 2011-05-23 Jerome Guitton <guitton@adacore.com>
2996 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2997 sequence for probing loops.
2999 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3001 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3004 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3006 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3007 zero as the value for %g0 in the register cache.
3008 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3009 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3011 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3013 * infrun.c (proceed): Set previous_inferior_ptid here.
3014 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3015 inferior_ptid, not null_ptid.
3016 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3017 (fetch_inferior_event): Nor here.
3019 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3021 * inf-loop.c (inferior_event_handler): Only output a message if
3024 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3026 * MAINTAINERS: Update my e-mail address.
3028 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3030 * infrun.c (proceed): Switch the inferior event loop to
3031 INF_EXEC_COMPLETE if the target refused to resume from a
3034 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3036 * infcmd.c: Include "inf-loop.h".
3037 (step_once): When stepping into an inline subroutine, pretend the
3038 target has run. If the target can async, switch the inferior
3039 event loop to INF_EXEC_COMPLETE.
3040 * inferior.h (user_visible_resume_ptid): Declare.
3041 * infrun.c (user_visible_resume_ptid): New function, factored out
3044 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3045 that the current thread is running. Merge async and sync
3048 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3050 * infcmd.c (step_1): Simplify synchronous case.
3052 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3054 * tracepoint.c: Include exceptions.h.
3055 (TFILE_PID): Move higher in file.
3056 (tfile_open): Delay pushing the tfile target until we're assured
3057 the tfile header is present in the file. Wrap reading the initial
3058 newline-terminated lines in TRY_CATCH. Pop the target if the
3059 initial setup failed. Add the tfile's thread immediately
3060 aftwards, before any non-essential setup. Don't skip
3061 post_create_inferior if there are no traceframes present in the
3063 (tfile_close): Remove redundant check for null before xfree call.
3064 (tfile_thread_alive): New function.
3065 (init_tfile_ops): Register it as to_thread_alive callback.
3067 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3069 * tracepoint.c (tfile_open): Delete #if 0'd code.
3071 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3073 Fix -readnow for -gdwarf-4 unused type units.
3074 * dwarf2read.c (struct signatured_type): Remove the field offset.
3075 (create_signatured_type_table_from_index): Remove its initialization.
3076 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3077 instead. Add a complaint call.
3078 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3079 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3080 (lookup_signatured_type_at_offset, read_signatured_type)
3081 (write_one_signatured_type): Update the field for per_cu.
3083 2011-05-19 Tom Tromey <tromey@redhat.com>
3085 * python/py-inferior.c (python_inferior_exit): Use
3087 (python_on_resume): Likewise.
3089 2011-05-19 Matt Rice <ratmice@gmail.com>
3091 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3093 2011-05-19 Hui Zhu <teawater@gmail.com>
3095 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3097 2011-05-19 Hui Zhu <teawater@gmail.com>
3099 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3101 2011-05-18 Tom Tromey <tromey@redhat.com>
3103 * dwarf2read.c (dwarf2_add_field): Constify.
3104 * value.c (value_static_field): Constify.
3105 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3107 * ax-gdb.c (gen_static_field): Constify
3109 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3111 * linux-nat.c (kill_callback): Use SIGKILL first.
3113 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3115 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3117 2011-05-18 Tom Tromey <tromey@redhat.com>
3119 * value.c (value_fn_field): Constify.
3120 * symtab.c (gdb_mangle_name): Constify.
3121 * stabsread.c (update_method_name_from_physname): Make 'physname'
3123 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3124 const. Use explicit fputc_filtered loop.
3125 (pascal_type_print_base): Constify.
3126 * p-lang.h (pascal_type_print_method_args): Update.
3127 * linespec.c (add_matching_methods): Constify.
3128 (add_constructors): Likewise.
3129 * jv-typeprint.c (java_type_print_base): Constify.
3130 * gdbtypes.h (struct cplus_struct_type)
3131 <fn_fieldlist.fn_field.physname>: Now const.
3132 * dwarf2read.c (compute_delayed_physnames): Constify.
3133 (dwarf2_add_member_fn): Likewise.
3134 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3136 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3138 * infrun.c (resume): Mention which is the current thread, and its
3139 current PC in debug output.
3140 (prepare_to_proceed): Mention the thread switching in debug
3143 2011-05-18 Tom Tromey <tromey@redhat.com>
3145 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3146 path check. Use xmalloc and cleanups.
3147 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3149 2011-05-17 Tom Tromey <tromey@redhat.com>
3151 * cp-valprint.c (cp_print_value_fields): Catch errors from
3154 2011-05-17 Tom Tromey <tromey@redhat.com>
3156 * dwarf2read.c (dwarf2_get_die_type): Call
3157 get_die_type_at_offset.
3158 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3159 get_base_type function.
3161 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3163 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3166 2011-05-16 Doug Evans <dje@google.com>
3168 * python/py-auto-load.c (source_section_scripts): Mention objfile
3171 2011-05-15 Doug Evans <dje@google.com>
3173 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3174 (try_thread_db_load_from_pdir): Call it. If unable to find
3175 libthread_db in directory of libpthread, see if we're looking at
3176 the separate-debug-info copy.
3178 * python/py-autoload.c (print_script): Print "Missing" instead of
3179 "No" for missing scripts.
3180 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3182 2011-05-13 Doug Evans <dje@google.com>
3184 * ui-file.c (stdio_file_write_async_safe): Add comment.
3186 2011-05-14 Hui Zhu <teawater@gmail.com>
3188 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3190 2011-05-13 Doug Evans <dje@google.com>
3192 Support $pdir and $sdir in libthread-db-search-path.
3193 * NEWS: Mention $sdir,$pdir.
3194 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3195 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3196 (try_thread_db_load_from_sdir): New function.
3197 (try_thread_db_load_from_dir): New function.
3198 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3199 system directories if search of libthread-db-search-path fails,
3200 that is now done via $sdir.
3201 (has_libpthread): New function.
3202 (thread_db_load): Remove search for libthread_db in directory of
3203 libpthread, that is now done via $pdir.
3205 * NEWS: Mention "info auto-load-scripts".
3206 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3207 script_not_found_warning_printed.
3208 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3209 all callers updated. Initialize script_not_found_warning_printed.
3210 (get_auto_load_pspace_data_for_loading): New function.
3211 (maybe_add_script): New function.
3212 (source_section_scripts): Simplify. Only print one warning regardless
3213 of the number of auto-load scripts not found.
3214 (clear_section_scripts): Clear script_not_found_warning_printed.
3215 (auto_load_objfile_script): Record script in hash table.
3216 (count_matching_scripts): New function.
3217 (maybe_print_script): Renamed from maybe_print_section_script, all
3218 callers updated. Rewrite to use ui_out_*.
3219 (info_auto_load_scripts): Renamed from
3220 maintenance_print_section_scripts, all callers updated.
3221 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3222 renamed as "info auto-load-scripts".
3224 2011-05-13 Tom Tromey <tromey@redhat.com>
3226 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3227 (read_sleb128): Likewise.
3229 2011-05-13 Tom Tromey <tromey@redhat.com>
3231 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3234 2011-05-13 Doug Evans <dje@google.com>
3236 * linux-nat.c (debug_linux_nat_async): Delete.
3237 Replace all references to use debug_linux_nat instead.
3238 (show_debug_linux_nat_async): Delete.
3239 (sigchld_handler): Call ui_file_write_async_safe instead of
3241 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3242 * ui-file.c (struct ui_file): New member to_write_async_safe.
3243 (null_file_write_async_safe): New function.
3244 (ui_file_write_async_safe): New function.
3245 (set_ui_file_write_async_safe): New function.
3246 (ui_file_new): Initialize to_write_async_safe.
3247 (stdio_file_write_async_safe): New function.
3248 (struct stdio_file): New member fd.
3249 (stdio_file_new): Initialize to_write_async_safe, fd.
3250 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3252 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3253 (set_ui_file_write_async_safe): Declare.
3254 (ui_file_write_async_safe): Declare.
3256 2011-05-13 Tom Tromey <tromey@redhat.com>
3258 * utils.c (do_value_free): New function.
3259 (make_cleanup_value_free): Likewise.
3260 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3262 (dwarf2_loc_desc_needs_frame): Call
3263 make_cleanup_value_free_to_mark.
3264 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3265 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3267 (new_dwarf_expr_context): Don't call value_mark.
3268 * dwarf2-frame.c (execute_stack_op): Call
3269 make_cleanup_value_free_to_mark.
3270 * defs.h (make_cleanup_value_free): Declare.
3272 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3274 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3275 prepare_execute_command.
3276 * top.c (prepare_execute_command): Return cleanup.
3277 (execute_command): Use cleanup from prepare_execute_command.
3278 * top.h (prepare_execute_command): Change prototype to return
3280 * defs.h (struct value): Add opaque declaration.
3281 (make_cleanup_value_free_to_mark): Add prototype.
3282 * utils.c (do_value_free_to_mark): New function.
3283 (make_cleanup_value_free_to_mark): Likewise.
3285 2011-05-12 Tom Tromey <tromey@redhat.com>
3287 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3288 cast left-hand-side to unsigned.
3290 2011-05-12 Tom Tromey <tromey@redhat.com>
3293 * value.h (value_from_contents): Declare.
3294 * value.c (value_from_contents): New function.
3295 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3296 (dwarf2_get_die_type): New function.
3297 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3298 (allocate_piece_closure): Acquire reference to values.
3299 (read_pieced_value): Update for value-based expressions.
3300 (write_pieced_value): Likewise.
3301 (free_pieced_value_closure): Call value_free as needed.
3302 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3303 Update for value-based expressions.
3304 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3305 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3306 <get_base_type>: New field.
3307 (struct dwarf_expr_piece) <v.value>: Change type.
3308 <v.regno>: New field.
3309 (struct dwarf_expr_context) <mark>: New field.
3310 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3311 (dwarf_expr_pop, dwarf_expr_push): Remove.
3312 (dwarf_expr_push_address): Declare.
3313 * dwarf2expr.c (dwarf_arch_cookie): New global.
3314 (struct dwarf_gdbarch_types): New.
3315 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3317 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3319 (dwarf_expr_push_address): New function.
3320 (dwarf_expr_pop): Now static.
3321 (dwarf_expr_fetch): Change return type.
3322 (dwarf_require_integral): New function.
3323 (dwarf_expr_fetch): Simplify.
3324 (add_piece): Update.
3325 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3327 (execute_stack_op) <sign_ext>: Remove.
3328 Use values for DWARF stack.
3329 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3330 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3332 (_initialize_dwarf2expr): New function.
3333 (add_piece): Update.
3334 (new_dwarf_expr_context): Set new field.
3335 (free_dwarf_expr_context): Call value_free_to_mark.
3336 * dwarf2-frame.c (no_base_type): New function.
3337 (execute_stack_op): Set get_base_type field. Update.
3339 2011-05-12 Tom Tromey <tromey@redhat.com>
3341 * dwarf2read.c (read_common_block): Fix formatting.
3343 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3345 * breakpoint.c (disable_breakpoint): Disable all locations
3346 associated with a tracepoint on target if a trace experiment is
3348 (disable_command): Disable a specific tracepoint location on target if
3349 a trace experiment is running.
3350 (do_enable_breakpoint): Enable all locations associated with a
3351 tracepoint on target if a trace experiment is running.
3352 (enable_command) Enable a specific tracepoint location on target if a
3353 trace experiment is running.
3354 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3355 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3356 to_disable_tracepoint.
3357 * target.h: Add declaration of struct bp_location.
3358 (struct target_ops): Add new functions
3359 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3360 to_disable_tracepoint to target operations.
3361 (target_supports_enable_disable_tracepoint): New macro.
3362 (target_enable_tracepoint): New macro.
3363 (target_disable_tracepoint): New macro.
3364 * remote.c (struct remote_state): Add new field.
3365 (remote_enable_disable_tracepoint_feature): New.
3366 (remote_protocol_features): Add new entry.
3367 (remote_supports_enable_disable_tracepoint): New.
3368 (remote_enable_tracepoint): New.
3369 (remote_disable_tracepoint): New.
3370 (init_remote_ops): Add remote_enable_tracepoint,
3371 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3372 to remote operations.
3373 * tracepoint.c (start_tracing): Allow tracing to start without any
3374 tracepoints enabled with just a warning if they can be re-enabled
3376 * NEWS: Add news item for the new behaviour of the enable and disable
3377 GDB commands when applied to tracepoints.
3378 Add news items for the new remote packets QTEnable and QTDisable.
3380 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3382 * config.in: Regenerate.
3383 * configure: Regenerate.
3384 * configure.ac <--with-system-readline> (for readline_echoing_p):
3386 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3387 (tui_old_rl_echoing_p): ... here.
3388 (tui_setup_io): Rename extern declaration readline_echoing_p to
3389 _rl_echoing_p. Adjust assignments for the both renames.
3391 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3393 * symtab.c (lookup_symtab): Run cleanup before returning.
3395 2011-05-11 Tom Tromey <tromey@redhat.com>
3397 * dwarf2read.c (handle_data_member_location): New function.
3398 (dwarf2_add_field): Use it.
3399 (read_common_block): Likewise.
3401 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3403 Make addrs->SECTINDEX always defined.
3404 * symfile.c (relative_addr_info_to_section_offsets): Check for
3405 SECTINDEX -1, not for zero ADDR.
3406 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3407 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3408 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3411 2011-05-10 Doug Evans <dje@google.com>
3413 * linux-thread-db.c: Whitespace cleanup.
3414 (try_thread_db_load_1): Fix comment.
3416 * linux-thread-db.c (set_libthread_db_search_path): New function.
3417 (_initialize_thread_db): Add setter for libthread-db-search-path.
3419 2011-05-09 Doug Evans <dje@google.com>
3421 * NEWS: Mention --with-iconv-bin.
3422 * configure.ac: New option --with-iconv-bin.
3423 * configure: Regenerate.
3424 * config.in: Regenerate.
3425 * defs.h (relocate_gdb_directory): Declare.
3426 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3427 removed progname parameter, and exported. All callers updated.
3428 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3430 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3431 adding missing call to restore_child_signals_mask.
3433 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3435 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3437 * infrun.c (proceed, start_remote): Adjust.
3438 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3439 and adjust to not handle it.
3440 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3441 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3442 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3443 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3444 * windows-nat.c (do_initial_windows_stuff): Adjust.
3445 * infcmd.c (attach_command): Adjust.
3446 (notice_new_inferior): Adjust.
3448 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3450 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3451 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3452 * spu-tdep.c (op_selb): Use correct value.
3454 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3456 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3457 "parent" parameter to symbol_file_add_from_bfd call.
3459 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3460 Thiago Jung Bauermann <bauerman@br.ibm.com>
3462 Implement support for PowerPC BookE masked watchpoints.
3463 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3465 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3466 method. Initialize to NULL in all existing breakpoint_ops instances.
3467 (struct breakpoint) <hw_wp_mask>: New field.
3468 * breakpoint.c (is_masked_watchpoint): Add prototype.
3469 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3470 breakpoint's breakpoint_ops.works_in_software_mode if available.
3471 (watchpoints_triggered): Handle the case of a hardware masked
3473 (watchpoint_check): Likewise.
3474 (works_in_software_mode_watchpoint): New function.
3475 (insert_masked_watchpoint, remove_masked_watchpoint)
3476 (resources_needed_masked_watchpoint)
3477 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3478 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3479 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3481 (masked_watchpoint_breakpoint_ops): New structure.
3482 (watch_command_1): Check for the existence of the `mask' parameter.
3483 Set b->ops according to the type of hardware watchpoint being created.
3484 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3485 (ppc_linux_remove_mask_watchpoint)
3486 (ppc_linux_masked_watch_num_registers): New functions.
3487 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3488 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3489 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3490 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3491 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3492 (target_masked_watch_num_registers): New functions.
3493 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3494 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3496 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3497 (target_masked_watch_num_registers): Add prototypes.
3499 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3502 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3503 (producer_is_gcc_ge_4_0): New function.
3504 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3505 symtab->language code.
3506 (var_decode_location): Set cu->has_loclist.
3507 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3508 skip. Intialize force_skip from locations_valid. Move the prologue
3509 skipping code into two passes.
3510 * symtab.h (struct symtab): Make the primary field a bitfield. New
3511 field locations_valid.
3513 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3515 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3516 (classify_inner_name): Call cp_lookup_nested_type with
3518 * cp-namespace.c (cp_lookup_nested_type): New variable
3519 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3520 type_name_no_tag_or_error with saved_parent_type.
3521 * dwarf2read.c (load_partial_dies): Read in any children of
3522 DW_TAG_typedef with complaint in such case.
3523 * gdbtypes.c (type_name_no_tag_or_error): New function.
3524 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3525 * valops.c (destructor_name_p): New comment for parameter type. Remove
3526 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3527 * value.h (destructor_name_p): Remove type const.
3529 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3531 * symtab.c (compare_symbol_name): New function.
3532 (completion_list_add_name, expand_partial_symbol_name): Call it,
3533 remove the variable ncmp.
3534 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3537 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3539 Demote to sw watchpoint only in update_watchpoint.
3540 * breakpoint.c (update_watchpoint): Change between software and
3541 hardware watchpoint for all kinds of watchpoints, not just
3542 read/write ones. Determine b->exact value here instead of
3543 in watch_command_1. Error out if there are not enough resources
3544 for a read or access hardware watchpoint.
3545 (watch_command_1): Remove logic of checking whether there are
3546 enough resources available, since update_watchpoint will do that
3547 work now. Don't set b->exact here. Catch exceptions thrown by
3548 update_watchpoint and delete the watchpoint.
3549 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3550 Use target_exact_watchpoints instead.
3551 (delete_breakpoint): Notify observers only if deleted watchpoint
3552 has a breakpoint number assigned to it.
3554 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3556 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3558 2011-05-05 Jerome Guitton <guitton@adacore.com>
3560 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3562 (i386_stack_tramp_frame_unwind): New static global.
3563 (i386_match_pattern): New function, extracted from i386_match_insn.
3564 (i386_match_insn): Use i386_match_pattern.
3565 (i386_match_insn_block): New function.
3566 (i386_tramp_chain_in_reg_insns)
3567 (i386_tramp_chain_on_stack_insns): New static variables.
3568 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3571 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3573 * configure.host (xscale*): Don't handle target.
3574 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3577 2011-05-04 Yao Qi <yao@codesourcery.com>
3579 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3581 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3584 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3585 | * elfread.c (elf_symtab_read): Stop memory leak.
3587 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3589 * nto-tdep.c (nto_target): Replace deprecated call to
3590 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3592 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3594 Fix false GCC warning.
3595 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3597 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3599 * breakpoint.c (update_watchpoint): Move code to change
3600 the enable state of breakpoint from here ...
3601 (do_enable_breakpoint): ... to here.
3603 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3605 * valprint.c (val_print_array_elements): Fixed poor performance
3606 of printing very large arrays with repeat_count_threshold set
3607 to unlimited. New comment.
3609 2011-04-29 Tom Tromey <tromey@redhat.com>
3611 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3612 (mi_parse): Likewise.
3613 * breakpoint.c (break_range_command): Use sizeof char*, not
3615 (create_breakpoint): Likewise.
3616 (parse_breakpoint_sals): Likewise.
3618 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3620 * linux-nat.c (linux_child_remove_fork_catchpoint)
3621 (linux_child_remove_vfork_catchpoint)
3622 (linux_child_remove_exec_catchpoint): New functions.
3623 (linux_target_install_ops): Install them.
3625 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3629 * varobj.c (install_default_visualizer): Do not install a
3630 visualizer if the varobj is CPLUS_FAKE_CHILD.
3631 (construct_visualizer): Likewise.
3633 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3635 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3636 case insensitive comparison.
3638 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3640 * infrun.c (proceed): Revert previous change.
3641 (resume): Instead, handle the case of signal delivery while stepping
3642 off a breakpoint location here, and only if software single-stepping
3643 is used. Handle nested signals.
3645 2011-04-28 Yao Qi <yao@codesourcery.com>
3647 * arm-tdep.c (copy_unmodified): Rename to ...
3648 (arm_copy_unmodified): .. this. New.
3649 (copy_preload): Move common part to ...
3650 (install_preload): .. this. New.
3651 (arm_copy_preload): New.
3652 (copy_preload_reg): Move common part to ...
3653 (install_preload_reg): ... this. New.
3654 (arm_copy_preload_reg): New.
3655 (copy_b_bl_blx): Move common part to ...
3656 (install_b_bl_blx): .. this. New.
3657 (arm_copy_b_bl_blx): New.
3658 (copy_bx_blx_reg): Move common part to ...
3659 (install_bx_blx_reg): ... this. New.
3660 (arm_copy_bx_blx_reg): New.
3661 (copy_alu_reg): Move common part to ...
3662 (install_alu_reg): ... this. New.
3663 (arm_copy_alu_reg): New.
3664 (copy_alu_shifted_reg): Move common part to ...
3665 (install_alu_shifted_reg): ... this. New.
3666 (copy_ldr_str_ldrb_strb): Move common part to ...
3667 (install_ldr_str_ldrb_strb): ... this. New.
3668 (arm_copy_ldr_str_ldrb_strb): New.
3669 (copy_copro_load_store): Move some common part to ...
3670 (install_copy_copro_load_store): ... this. New.
3671 (arm_copy_copro_load_store): New.
3673 (arm_copy_svc): Renamed from copy_svc.
3674 (copy_undef): Delete.
3675 (arm_copy_undef): Renamed from copy_undef.
3676 (decode_ext_reg_ld_st): Delete.
3677 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3678 (decode_svc_copro): Delete.
3679 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3680 (copy_copro_load_store, copy_alu_imm): update callers.
3681 (copy_extra_ld_st, copy_block_xfer): Likewise.
3682 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3683 (decode_miscellaneous, decode_dp_misc): Likewise.
3684 (decode_ld_st_word_ubyte, decode_media): Likewise.
3685 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3686 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3687 (decode_unconditional, decode_miscellaneous): Likewise.
3688 (decode_media, decode_b_bl_ldmstm): Likewise.
3689 (arm_process_displaced_insn): Likewise..
3690 (decode_misc_memhint_neon): Delete.
3691 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3692 (decode_miscellaneous): Delete.
3693 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3694 (decode_dp_misc): Delete.
3695 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3696 (decode_ld_st_word_ubyte): Delete.
3697 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3698 (decode_media): Delete.
3699 (arm_decode_media): Renamed from decode_media.
3700 (decode_b_bl_ldmstm): Delete.
3701 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3702 (decode_ext_reg_ld_st): Delete.
3703 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3704 (decode_unconditional): Delete.
3705 (arm_decode_unconditional): Renamed from decode_unconditional.
3707 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3709 Case insensitive lookups implementation.
3710 * dwarf2read.c: Include ctype.h.
3711 (struct mapped_index): New field version.
3712 (mapped_index_string_hash): New parameter index_version. New comment
3713 for it. Call tolower appropriately.
3714 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3715 Choose the right index version for mapped_index_string_hash.
3716 (dwarf2_read_index): Support also the index version 5. Initialize the
3717 new struct mapped_index field version.
3718 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3719 (find_slot): Explain the version needs. Pass INT_MAX for the new
3721 (write_psymtabs_to_index): Produce version 5.
3722 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3723 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3724 * psymtab.c (lookup_partial_symbol): Find the
3725 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3727 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3729 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3730 (completion_list_add_name): New variable ncmp, initialize it, use it.
3731 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3732 * utils.c (strcmp_iw): Support case_sensitive_off.
3733 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3734 New function comment part. New variables saved_string1,
3735 saved_string2 and case_pass. Add a proper second pass.
3737 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3739 Replace re_comp/re_exec by regcomp/regexec.
3740 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3741 (search_symbols_name_matches): Use them, use regexec.
3742 (search_symbols): New variable retval_chain, adjust the use of
3743 old_chain against it. Replace re_comp by regcomp. Use the new struct
3744 search_symbols_data fields, use regexec instead of re_exec.
3746 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3748 Format the code for the next patch.
3749 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3750 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3751 New variables c1 and c2.
3753 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3755 * infrun.c (proceed): Do not single-step into signal delivery
3756 when stepping off a breakpoint location.
3757 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3758 (insert_step_resume_breakpoint_at_caller): Likewise.
3759 (insert_step_resume_breakpoint_at_sal): Likewise.
3760 (insert_longjmp_resume_breakpoint): Likewise.
3762 2011-04-27 Yao Qi <yao@codesourcery.com>
3764 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3766 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3768 * procfs.c (procfs_pass_signals): Fix advance declaration.
3770 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3772 * target.h (struct target_ops): Remove to_notice_signals;
3773 add to_pass_signals.
3774 (target_notice_signals): Remove.
3775 (target_pass_signals): Add prototype.
3776 * target.c (update_current_target): Remove to_notice_signals;
3777 mention to_pass_signals.
3778 (target_pass_signals): New function.
3779 (debug_to_notice_signals): Remove.
3780 (setup_target_debug): Do not install debug_to_notice_signals.
3782 * infrun.c (signal_pass): New global.
3783 (resume): Call target_pass_signals.
3784 (handle_inferior_event): Report all signals while stepping over
3785 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3786 are re-inserted when stepping over a signal handler.
3787 (signal_cache_update): New function.
3788 (signal_stop_update): Call it.
3789 (signal_print_update): Likewise.
3790 (signal_pass_update): Likewise.
3791 (handle_command): Call signal_cache_update and target_pass_signals
3792 instead of target_notice_signals.
3793 (_initialize_infrun): Initialize signal_pass.
3795 * linux-nat.c (pass_mask): New global.
3796 (linux_nat_pass_signals): New function.
3797 (linux_nat_create_inferior): Report all signals initially.
3798 (linux_nat_attach): Likewise.
3799 (linux_nat_resume): Use pass_mask to decide whether to directly
3800 handle an inferior signal.
3801 (linux_nat_wait_1): Likewise.
3802 (linux_nat_add_target): Install to_pass_signals callback.
3804 * nto-procfs.c (notice_signals): Remove.
3805 (procfs_resume): Do not call notice_signals.
3806 (procfs_notice_signals): Remove.
3807 (procfs_pass_signals): New function.
3808 (init_procfs_ops): Install to_pass_signals callback instead of
3809 to_notice_signals callback.
3810 (_initialize_procfs): Report all signals initially.
3812 * procfs.c (procfs_notice_signals): Remove.
3813 (procfs_pass_signals): New function.
3814 (procfs_target): Install to_pass_signals callback instead of
3815 to_notice_signals callback.
3816 (register_gdb_signals): Remove.
3817 (procfs_debug_inferior): Report all signals initially.
3818 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3820 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3821 parameters; use them instead of calling signal_..._state routines.
3822 (remote_notice_signals): Remove.
3823 (remote_start_remote): Report all signals initially.
3824 (remote_resume): Do not call remote_pass_signals.
3825 (_initialize_remote): Install to_pass_signals callback instead of
3826 to_notice_signals callback.
3828 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3830 * breakpoint.c (user_settable_breakpoint): Delete.
3831 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3832 (delete_command): Check user_breakpoint_p instead of looking at
3833 the breakpoint's type.
3834 (disable_command): Ditto.
3835 (enable_command): Ditto.
3836 (delete_trace_command): Use user_breakpoint_p instead of looking
3837 at the breakpoint number directly. When checking if there are
3838 user visible tracepoints, in order to know whether to ask the user
3839 for confirmation, check whether the breakpoint is actually a
3842 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3844 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3847 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3849 MI breakpoint notifications.
3851 * annotate.c (breakpoint_changed): Adjust parameter type.
3852 * breakpoint.c (set_breakpoint_condition): Adjust to change
3853 in breakpoint_modified type.
3854 (breakpoint_set_commands): Likewise.
3855 (do_map_commands_command): Likewise.
3856 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3857 changed after bumping hit count.
3858 (bpstat_stop_status): Likewise.
3859 (print_one_breakpoint_location): Don't wrap in tuple here.
3860 (print_one_breakpoint): Always print individual locations.
3861 For locations, use unnamed tuple.
3862 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3864 (create_catchpoint, create_syscall_event_catchpoint): Call
3865 breakpoint_created obsever.
3866 (mention): Don't call breakpoint_created observer.
3867 (create_breakpoint_sal): Call breakpoint_created observer.
3868 (create_breakpoint, watch_command_1): Likewise.
3869 (create_ada_exception_breakpoint): Likewise.
3870 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3871 (locations_are_equal): New.
3872 (update_breakpoint_locations): If locations were changed, notify.
3873 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3874 Call breakpoint_modified observer.
3876 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3877 (mi_cmd_break_insert): Don't set observers for modify and delete.
3878 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3879 (mi_breakpoint_created, mi_breakpoint_deleted)
3880 (mi_breakpoint_modified): New.
3881 (mi_interpreter_init): Hook the above.
3882 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3883 while -break-* commands are executing.
3884 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3885 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3887 (mi_ui_out_impl): Hook in mi_redirect.
3888 (mi_field_skip): True to the name, skip the field, don't output
3889 a field with an empty value.
3891 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3892 (gdbpy_breakpoint_deleted): Adjust.
3893 * tui/tui-hooks.c (tui_event_create_breakpoint)
3894 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3896 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3898 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3899 (procfs_remove_hw_watchpoint): Likewise.
3901 2011-04-26 Michael Walle <michael@walle.cc>
3903 * remote.c (remote_start_remote): Ack packet after sending the
3906 2011-04-26 Yao Qi <yao@codesourcery.com>
3908 * linux-nat.c: Move common macros to ...
3909 Include linux-ptrace.h.
3910 * common/linux-ptrace.h: ... here. New.
3912 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3914 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3915 !objfile_has_partial_symbols. New comment.
3916 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3917 SYM_READ_PSYMBOLS is not present. Extend the comment.
3918 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3920 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3922 * defs.h (ENUM_BITFIELD): Remove.
3924 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3925 Eli Zaretskii <eliz@gnu.org>
3927 * NEWS: Document the new gdbserver --once option.
3929 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3931 * MAINTAINERS: Update my email address.
3933 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3935 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3936 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3937 function call if __STDC_ISO_10646__ macro is defined.
3938 (intermediate_encoding): New prototype.
3939 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3940 to generate compile time error for unsupported gdb_wchar_t size.
3941 (ENDIAN_SUFFIX): New macro.
3942 (intermediate_encoding): New function.
3944 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3946 * ada-lang.c (struct add_partial_datum): Update the comment for
3947 expand_partial_symbol_name.
3948 (ada_add_partial_symbol_completions): Rename to ...
3949 (ada_expand_partial_symbol_name): ... here, change return type, update
3950 function comment, call symbol_completion_match instead of
3951 symbol_completion_add.
3952 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3953 and ada_expand_partial_symbol_name.
3954 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3956 (dw2_map_symbol_names): Remove.
3957 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3958 * psymtab.c (map_symbol_names_psymtab): Remove.
3959 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3960 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3962 (psym_functions): Unlist map_symbol_names_psymtab.
3963 (map_partial_symbol_names): Rename to ...
3964 (expand_partial_symbol_names): ... here, change the FUN type, call
3965 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3966 * psymtab.h (map_partial_symbol_names): Rename to ...
3967 (expand_partial_symbol_names): ... here, change the FUN type.
3968 * symfile.h (struct quick_symbol_functions): Update the description of
3969 expand_symtabs_matching. Remove map_symbol_names.
3970 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3971 (struct add_name_data): Update the comment for
3972 expand_partial_symbol_name.
3973 (add_partial_symbol_name): Rename to ...
3974 (expand_partial_symbol_name): ... here. Replace
3975 completion_list_add_name call by strncmp.
3976 (default_make_symbol_completion_list_break_on): Use now
3977 expand_partial_symbol_names and expand_partial_symbol_name.
3978 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3980 2011-04-20 Tom Tromey <tromey@redhat.com>
3982 * dwarf2read.c (save_gdb_index_command): Replace format
3983 documentation with a pointer to the manual.
3985 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3987 * regcache.c: Include remote.h.
3988 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3989 (regcache_dump): Handle regcache_dump_remote.
3990 (maintenance_print_remote_registers): New function.
3991 (_initialize_regcache): Install "maint print remote-registers"
3993 * remote.c (map_regcache_remote_table): New function, factored out
3995 (init_remote_state): ... here.
3996 (remote_register_number_and_offset): New.
3997 * remote.h (remote_register_number_and_offset): Declare.
3999 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4001 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4002 null_ptid, assume and allow a NULL address space, instead of
4003 asking the target for the ptid's address space.
4004 * infrun.c (ptid_is_pid): Remove assertion.
4006 2011-04-19 Tom Tromey <tromey@redhat.com>
4008 * windows-tdep.c (windows_xfer_shared_library):
4009 * windows-nat.c (get_module_name, windows_make_so):
4010 * v850-tdep.c (v850_handle_pushm):
4011 * utils.c (null_cleanup, gdb_realpath):
4012 * ui-out.c (get_next_header):
4013 * tracepoint.c (clear_traceframe_info):
4014 * symtab.c (lookup_symtab):
4015 * serial.h (struct serial_ops):
4016 * mipsread.c (read_alphacoff_dynamic_symtab):
4017 * infcmd.c (print_return_value):
4018 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4019 * f-exp.y (parse_number):
4020 * exceptions.c (catch_exceptions):
4021 * dummy-frame.c (dummy_frame_this_id):
4022 * defs.h (struct cleanup):
4023 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4024 * arm-tdep.c (arm_push_dummy_call):
4025 * amd64-tdep.h (amd64_collect_xsave):
4026 * amd64-tdep.c (amd64_collect_xsave):
4027 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4028 * README (typing): Remove duplicate words.
4029 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4030 * infrun.c (siginfo_value_read): Fix typo.
4031 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4032 * top.c (source_line_number): Add comma.
4034 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4036 * thread.c (any_live_thread_of_process): Prioritize threads
4037 that are not executing.
4038 * gdbthread.h (any_live_thread_of_process): Update comment
4039 as per above change.
4041 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4043 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4044 (scan_xcoff_symtab): Likewise.
4046 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4048 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4051 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4052 Pedro Alves <pedro@codesourcery.com>
4054 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4055 variables to simplify code and avoid == operator at end of
4056 line as this is against GNU coding standards.
4058 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4060 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4061 lm_name to name_lm to avoid conflict with lm_name function.
4063 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4065 ARI fixes: Use only lowercase function name for static functions.
4066 * nto-tdep.c (LM_ADDR): Rename to...
4067 (lm_addr): New function name.
4068 (nto_relocate_section_addresses): Adapt to change above.
4069 * solib-sunos.c (LM_ADDR): Rename to...
4070 (lm_addr): New function name.
4071 (LM_NEXT): Rename to...
4072 (lm_next): New function name.
4073 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4074 function name changes above.
4075 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4076 (lm_addr_from_link_map): New function name.
4077 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4078 (has_lm_dynamic_from_link_map): New function name.
4079 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4080 (lm_dynamic_from_link_map): New function name.
4081 (LM_ADDR_CHECK): Rename to...
4082 (lm_addr_check): New function name.
4083 (LM_NEXT): Rename to...
4084 (lm_next): New function name.
4085 (LM_PREV): Rename to...
4086 (lm_prev): New function name.
4087 (LM_NAME): Rename to...
4088 (lm_name): New function name.
4089 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4090 (ignore_first_link_map_entry): New function name.
4091 (svr4_keep_data_in_core): Adapt to function name changes above.
4092 (svr4_current_sos): Likewise.
4093 (enable_break): Likewise.
4094 (svr4_relocate_section_addresses): Likewise.
4096 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4099 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4100 sprintf. Simplify code and avoid loosing memory.
4101 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4102 (call0_frame_cache): Remove && operator from end of line.
4104 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4106 Fix libraries displacement if they change whether they were prelinked.
4107 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4108 does not match. Comment why.
4110 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4112 * corelow.c: Include wrapper.h.
4113 (core_open): Call now gdb_target_find_new_threads.
4114 * wrapper.c: Include target.h.
4115 (gdb_target_find_new_threads): New.
4116 * wrapper.h (gdb_target_find_new_threads): New declaration.
4118 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4120 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4121 even if !TARGET_HAS_EXECUTION.
4123 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4125 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4126 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4127 bfd_get_synthetic_symtab.
4128 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4129 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4130 parameter parent, remove the call to add_separate_debug_objfile.
4131 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4132 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4133 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4134 parent, new comment for it, call add_separate_debug_objfile for it.
4135 (symbol_file_add_separate): Pass objfile as the parameter parent,
4136 remove the call to add_separate_debug_objfile.
4137 (symbol_file_add_from_bfd): New parameter parent, pass it.
4138 (symbol_file_add): Pass NULL to the new parameter parent.
4139 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4141 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4143 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4146 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4148 Fix Python access to inlined frames.
4149 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4150 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4152 2011-04-15 Tom Tromey <tromey@redhat.com>
4154 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4156 2011-04-15 Gary Benson <gbenson@redhat.com>
4158 * MAINTAINERS: Add myself to write-after-approval section.
4160 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4162 * remote-sim.c (sim_command_completer): New function.
4163 (_initialize_remote_sim): Set completer to sim_command_completer.
4165 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4167 * breakpoint.c (print_exception_catchpoint): Rename to ...
4168 (print_it_exception_catchpoint): ... this.
4169 (gnu_v3_exception_catchpoint_ops): Update with new name
4170 for print_it_exception_catchpoint.
4172 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4174 * MAINTAINERS: Add myself for write after approval privileges.
4176 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4178 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4180 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4182 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4184 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4186 * breakpoint.c (save_breakpoints): Verify whether
4187 breakpoint_ops.print_recreate is defined before calling it.
4189 2011-04-11 Gary Benson <gbenson@redhat.com>
4191 Fix failure with --enable-maintainer-mode.
4192 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4194 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4197 * symtab.c (search_symbols): Reorder the KIND description in the
4198 function comment. Remove the unused 4th element of types, types2,
4199 types3 and types4. New gdb_assert on KIND.
4200 (symtab_symbol_info): Remove the unused 4th element of classnames.
4201 New gdb_assert on KIND.
4202 * symtab.h (enum search_domain): New warning in the enum comment.
4203 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4206 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4208 Fix crash of gdb save-index on a STABS file.
4209 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4212 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4214 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4215 * dwarf2read.c: Include ctype.h.
4216 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4218 (dwarf2_add_field): Fix new_field->accessibility by calling
4219 dwarf2_default_access_attribute. Restructure setting accessibility
4221 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4222 is_private and is_protected by calling
4223 dwarf2_default_access_attribute.
4225 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4227 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4228 to the initialization.
4230 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4232 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4235 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4237 Remove support for old Cygwin 1.5 versions.
4238 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4239 function on old Cygwin version.
4240 * windows-nat.c: Remove cygwin version check and always define
4241 __USEWIDE for Cygwin compilation.
4243 2011-04-07 Yao Qi <yao@codesourcery.com>
4245 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4247 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4248 (arm_copy_svc): Remove parameters INSN and TO.
4249 (decode_svc_copro): Update caller.
4250 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4251 from function pointer `copy_svc_os'.
4253 2011-04-07 Yao Qi <yao@codesourcery.com>
4255 * arm-tdep.c (cleanup_branch): Set a correct return address in
4256 LR for ARM and Thumb.
4258 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4261 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4262 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4263 in the function comment, a new note on values compatibility.
4264 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4265 * symtab.h (SYMBOL_HASH_NEXT): New.
4267 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4269 * ppc-linux-nat.c (check_condition): Add len output parameter.
4270 Set it based on the memory region referenced in the condition
4271 expression. Update all callers.
4273 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4275 Fix crash regression on systems featuring .gdb_index.
4276 * objfiles.c (free_objfile): Move the
4277 forget_cached_source_info_for_objfile call earlier. Comment it.
4278 Extend the comment for objfile_free_data.
4280 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4282 Fix regression of displaying the debug format.
4283 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4286 2011-04-04 Tom Tromey <tromey@redhat.com>
4288 * cli/cli-interp.c (struct captured_execute_command_args):
4290 (do_captured_execute_command): Remove.
4291 (safe_execute_command): Use TRY_CATCH.
4292 * cli/cli-script.c (struct wrapped_read_command_file_args):
4294 (wrapped_read_command_file): Remove.
4295 (script_from_file): Use TRY_CATCH.
4296 * exceptions.c (catch_exception): Remove.
4297 * exceptions.h (catch_exception): Remove.
4298 (deprecated_throw_reason): Update comment.
4299 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4300 argument to 'context'.
4301 (mi_execute_command): Use TRY_CATCH.
4302 * remote.c (struct start_remote_args): Remove.
4303 (remote_start_remote): Update; change arguments.
4304 (remote_open_1): Use TRY_CATCH.
4306 2011-04-04 Tom Tromey <tromey@redhat.com>
4308 * tracepoint.c (scope_info): Update.
4309 * symtab.c (decode_line_spec): Update.
4310 * python/python.c (gdbpy_decode_line): Update.
4311 * linespec.h (decode_line_1): Update.
4312 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4313 (decode_compound, find_method, symtab_from_filename)
4314 (decode_variable): Likewise.
4315 * cli/cli-cmds.c (edit_command): Update.
4316 (list_command): Update.
4317 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4319 (create_breakpoint): Update.
4320 (until_break_command): Update.
4321 (addr_string_to_sals): Update.
4322 (decode_line_spec_1): Update.
4324 2011-04-04 Tom Tromey <tromey@redhat.com>
4326 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4327 (do_captured_parse_breakpoint): Remove.
4328 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4329 Use TRY_CATCH directly.
4331 2011-04-04 Tom Tromey <tromey@redhat.com>
4333 * symtab.h (free_symtab): Remove.
4334 (forget_cached_source_info_for_objfile): Declare.
4335 * symmisc.c (free_symtab): Remove.
4336 * source.c (forget_cached_source_info_for_objfile): New function.
4337 (forget_cached_source_info): Use it.
4338 * objfiles.c (free_objfile): Simplify check before calling
4339 clear_current_source_symtab_and_line. Call
4340 forget_cached_source_info_for_objfile.
4342 2011-04-04 Tom Tromey <tromey@redhat.com>
4344 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4345 (new_symtab): Don't set `free_code' on symtab.
4346 (new_linetable): Properly handle size==0.
4347 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4348 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4350 * jv-lang.c (struct jv_per_objfile_data): New.
4351 (jv_per_objfile_free): Free the data.
4352 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4353 (get_java_class_symtab): Set the `dict' field on the
4354 jv_per_objfile_data.
4355 (free_class_block): Remove.
4356 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4359 2011-04-04 Tom Tromey <tromey@redhat.com>
4361 * symfile.c (reread_symbols): Update.
4362 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4364 * objfiles.c (allocate_objfile): Update.
4365 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4367 * cp-namespace.c (lookup_symbol_file): Don't call
4368 lookup_possible_namespace_symbol.
4369 (initialize_namespace_symtab, get_possible_namespace_block)
4370 (free_namespace_block, cp_check_possible_namespace_symbols)
4371 (check_possible_namespace_symbols_loop)
4372 (check_one_possible_namespace_symbol)
4373 (lookup_possible_namespace_symbol): Remove.
4374 (maintenance_cplus_namespace): Replace with notice.
4375 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4377 2011-04-04 Tom Tromey <tromey@redhat.com>
4379 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4380 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4381 * symmisc.c (free_symtab): Don't free debugformat.
4382 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4383 (record_debugformat, record_producer): Document.
4384 * buildsym.c (end_symtab): Don't save debugformat and producer
4386 (end_symtab): Don't free debugformat and producer fields.
4387 (record_debugformat): Don't call xstrdup.
4388 (record_producer): Likewise.
4390 2011-04-04 Tom Tromey <tromey@redhat.com>
4392 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4393 (source_line_charpos, source_charpos_line): Remove.
4395 2011-04-04 Tom Tromey <tromey@redhat.com>
4397 * symtab.h (domain_enum): Split in two...
4398 (enum search_domain): New.
4399 (search_symbols): Update.
4400 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4401 redundant declarations.
4402 (search_symbols): Change 'kind' argument to search_domain.
4404 (print_symbol_info): Likewise.
4405 (symtab_symbol_info): Likewise.
4406 * symfile.h (struct quick_symbol_functions)
4407 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4408 <expand_symtabs_matching>: Likewise.
4409 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4410 (expand_symtabs_matching_via_partial): Update.
4411 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4412 (dw2_expand_symtabs_for_function): Update.
4413 * block.h: Moved anonymous enum...
4414 * defs.h (enum block_enum): ... here. Now named.
4416 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4418 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4419 * version.in: Bump version to 7.3.50.20110403-cvs.
4421 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4423 * NEWS: Create a new section for the next release branch.
4424 Rename the section of the current branch, now that it has
4427 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4429 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4430 for "fpscr" in target description.
4432 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4434 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4435 initialize it. Delay HASH initialization. Strip the part after open
4436 parenthesis for languages with qualifiers. Call do_cleanups.
4438 2011-04-01 Tom Tromey <tromey@redhat.com>
4440 * utils.c (report_command_stats): Don't print `-' for negative
4443 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4445 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4446 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4449 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4451 * breakpoint.h (bpdisp_text): Add declaration.
4452 * breakpoint.c (bpdisp_text): Make non-static.
4453 * ada-lang.c: #include "mi/mi-common.h".
4454 (print_it_exception): Rewrite to improve GDB/MI output.
4456 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4458 * arm-tdep.h (struct address_space): Add forward declaration.
4460 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4462 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4463 * arm-tdep.c (arm_override_mode): New global.
4464 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4465 execution mode heuristics.
4466 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4467 second single-step breakpoint if needed, using
4468 arm_insert_single_step_breakpoint.
4469 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4470 ARM execution mode, do not call thumb_get_next_pc_raw.
4471 (arm_get_next_pc): Encode execution mode in return value. Call
4472 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4473 (arm_insert_single_step_breakpoint): New function.
4474 (arm_software_single_step): Call it.
4475 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4476 argument to return execution mode of sigreturn target.
4477 (arm_linux_syscall_next_pc): Use it.
4478 (arm_linux_copy_svc): Update call.
4479 (arm_linux_software_single_step): Call
4480 arm_insert_single_step_breakpoint.
4482 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4484 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4487 2011-03-31 Tom Tromey <tromey@redhat.com>
4489 * varobj.c (update_dynamic_varobj_children): Properly handle
4490 errors from iterator.
4492 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4494 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4495 struct linkage name twice.
4497 2011-03-31 Tom Tromey <tromey@redhat.com>
4499 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4500 missing ">" to message.
4502 2011-03-31 Tom Tromey <tromey@redhat.com>
4504 * varobj.c (instantiate_pretty_printer): Remove duplicate
4507 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4509 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4510 if neither saved value nor register available (e.g. signal frame).
4512 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4514 * macroexp.c (expand): Avoid uninitialized variable
4517 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4519 * breakpoint.c (break_range_command): Fix typo in comment.
4521 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4522 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4524 Implement support for PowerPC BookE ranged breakpoints.
4525 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4526 * breakpoint.h (struct bp_target_info) <length>: New member
4528 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4529 instead of struct breakpoint as argument, and also add ASPACE
4530 and BP_ADDR arguments. Update all callers.
4531 (struct breakpoint_ops) <print_one_detail>: New method.
4532 (struct breakpoint) <addr_string_range_end>: New member variable.
4533 * breakpoint.c (breakpoint_location_address_match): Add function
4535 (insert_bp_location): Set bl->target_info.length.
4536 (breakpoint_here_p): Call breakpoint_location_address_match.
4537 (moribund_breakpoint_here_p): Likewise.
4538 (regular_breakpoint_inserted_here_p): Likewise.
4539 (breakpoint_thread_match): Likewise.
4540 (bpstat_stop_status): Likewise.
4541 (bpstat_check_location): Move call to
4542 breakpoint_ops.breakpoint_hit to the top.
4543 (print_one_breakpoint_location): Call
4544 breakpoint_ops.print_one_detail if available.
4545 (breakpoint_address_match_range): New function.
4546 (breakpoint_location_address_match): Likewise.
4547 (breakpoint_locations_match): Compare the length field of the
4549 (hw_breakpoint_used_count): Count resources used by all locations
4550 in a breakpoint, and use breakpoint_ops.resources_needed if
4552 (breakpoint_hit_ranged_breakpoint): New function.
4553 (resources_needed_ranged_breakpoint): Likewise.
4554 (print_it_ranged_breakpoint): Likewise.
4555 (print_one_ranged_breakpoint): Likewise.
4556 (print_one_detail_ranged_breakpoint): Likewise.
4557 (print_mention_ranged_breakpoint): Likewise.
4558 (print_recreate_ranged_breakpoint): Likewise.
4559 (ranged_breakpoint_ops): New structure.
4560 (find_breakpoint_range_end): New function.
4561 (break_range_command): Likewise.
4562 (delete_breakpoint): Free addr_string_range_end.
4563 (update_breakpoint_locations): Add SALS_END argument. Update
4564 all callers. Calculate breakpoint length if a non-zero SALS_END
4565 is given. Call breakpoint_locations_match instead of
4566 breakpoint_address_match.
4567 (reset_breakpoint): Find SaL of the end of the range if B is a
4569 (_initialize_breakpoint): Register break-range command.
4570 * defs.h (print_core_address): Add function prototype.
4571 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4573 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4574 (ppc_linux_remove_hw_breakpoint): Likewise.
4575 (_initialize_ppc_linux_nat): Initialize
4576 to_ranged_break_num_registers.
4577 * target.c (update_current_target): Add comment about
4578 to_ranged_break_num_registers.
4579 (target_ranged_break_num_registers): New function.
4580 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4582 (target_ranged_break_num_registers): Add function prototype.
4583 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4584 * utils.c (print_core_address): ... here.
4586 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4588 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4589 variable compiler warning.
4591 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4593 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4595 (re_set_breakpoint): ... to here ...
4596 (addr_string_to_sals): ... and here.
4598 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4600 * Makefile.in (SFILES): Add missing C sources.
4601 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4602 Add missing headers.
4604 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4606 * .gitignore: New file.
4608 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4610 * NEWS: Mention new cfi device simulation.
4612 2011-03-29 Tom Tromey <tromey@redhat.com>
4614 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4615 otherwise anonymous types.
4616 (dwarf2_name): Likewise.
4617 * valops.c (value_struct_elt_for_reference): Refine artificial
4618 type logic. Call error if j==-1.
4620 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4622 Fix false GCC warning.
4623 * infcall.c (find_function_addr): Initialize funaddr.
4625 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4627 Fix mingw compilation with --enable-targets=all.
4628 * remote-mips.c (gdb_usleep.h): Include header.
4629 (mips_enter_debug): Use gdb_usleep instead of sleep.
4631 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4633 Support resolution of STT_GNU_IFUNC via breakpoints.
4634 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4635 bp_gnu_ifunc_resolver_return.
4636 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4637 the loop. Support bp_gnu_ifunc_resolver and
4638 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4639 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4641 (bptype_string, print_one_breakpoint_location): Support
4642 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4643 (user_settable_breakpoint): Return true also for
4644 bp_gnu_ifunc_resolver.
4645 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4646 bp_gnu_ifunc_resolver_return.
4647 (set_breakpoint_location_function): New parameter explicit_loc,
4648 describe it. Call find_pc_partial_function_gnu_ifunc with new
4649 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4650 EXPLICIT_LOC is not set.
4651 (set_raw_breakpoint): Set EXPLICIT_LOC for
4652 set_breakpoint_location_function.
4653 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4654 set_breakpoint_location_function.
4655 (mention): Support bp_gnu_ifunc_resolver and
4656 bp_gnu_ifunc_resolver_return.
4657 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4658 set_breakpoint_location_function.
4659 (update_breakpoint_locations): Remove static.
4660 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4661 bp_gnu_ifunc_resolver_return.
4662 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4663 bp_gnu_ifunc_resolver_return.
4664 (update_breakpoint_locations): New declaration.
4665 * elfread.c: Include gdbthread.h and regcache.h.
4666 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4668 (elf_gnu_ifunc_fns): Install them.
4669 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4670 (stub_gnu_ifunc_resolver_return_stop): New functions.
4671 (stub_gnu_ifunc_fns): Install them.
4672 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4673 and gnu_ifunc_resolver_return_stop.
4674 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4676 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4678 STT_GNU_IFUNC reader implementation.
4679 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4680 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4681 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4682 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4683 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4684 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4685 (elf_gnu_ifunc_resolve_addr): New.
4686 (elf_symfile_read): Call elf_rel_plt_read.
4687 (elf_gnu_ifunc_fns): New.
4688 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4689 Install elf_gnu_ifunc_fns.
4690 * infcall.c (find_function_return_type): New function.
4691 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4692 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4693 (stub_gnu_ifunc_resolve_name): New functions.
4694 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4695 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4696 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4698 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4700 Code cleanup for later STT_GNU_IFUNC support.
4701 * infcall.c (find_function_addr): Remove variable code, use explicit
4702 dereferences for it. Move VALUE_TYPE initialization later.
4704 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4706 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4707 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4708 (clear_pc_function_cache): Clear it.
4709 (find_pc_partial_function): Rename to ...
4710 (find_pc_partial_function_gnu_ifunc): ... this function. New
4711 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4712 (find_pc_partial_function): New wrapper for this function.
4713 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4715 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4717 GDB internal type support for STT_GNU_IFUNC.
4718 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4719 (elf_symtab_read): Set mst_text_gnu_ifunc for
4720 BSF_GNU_INDIRECT_FUNCTION.
4721 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4722 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4723 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4724 nodebug_got_plt_symbol.
4725 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4726 (TYPE_GNU_IFUNC): New.
4727 (struct main_type): New field flag_gnu_ifunc.
4728 (struct builtin_type): New field builtin_func_func.
4729 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4730 nodebug_got_plt_symbol.
4731 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4732 (in_gnu_ifunc_stub): New.
4733 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4735 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4736 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4737 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4739 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4740 * symtab.c (search_symbols): Likewise.
4741 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4742 and mst_slot_got_plt.
4743 (in_gnu_ifunc_stub): New declaration.
4745 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4747 Support a ring of related breakpoints.
4748 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4749 other functions, add gdb_assert.
4750 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4751 watchpoint_del_at_next_stop.
4752 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4753 (bpstat_stop_status): Handle ring in related_breakpoint.
4754 (set_raw_breakpoint_without_location): Initialize ring in
4756 (delete_breakpoint): Handle ring in related_breakpoint, use
4757 watchpoint_del_at_next_stop.
4758 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4760 2011-03-28 Tom Tromey <tromey@redhat.com>
4763 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4764 with `language_minimal'.
4766 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4768 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4769 instead of checking for STT_ARM_TFUNC symbol type.
4771 2011-03-25 Tom Tromey <tromey@redhat.com>
4773 * linespec.c (symbol_found): Restore line-based result for
4774 non-LOC_LABEL symbols.
4776 2011-03-25 Kai Tietz <ktietz@redhat.com>
4778 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4779 instead of strcmp for comparison.
4780 (tui_source_is_displayed): Likewise.
4781 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4783 2011-03-24 Mark Wielaard <mjw@redhat.com>
4785 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4787 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4788 (find_partial_die_in_comp_unit): Likewise in comment.
4789 (read_attribute_value): Likewise.
4790 (lookup_die_type): Likewise.
4791 (dwarf_form_name): Likewise.
4792 (dump_die_shallow): Likewise.
4793 (follow_die_ref_or_sig): Likewise.
4795 2011-03-24 Tom Tromey <tromey@redhat.com>
4797 PR breakpoints/11816:
4798 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4799 (decode_compound): Update.
4800 (find_function_symbol): New function.
4801 (decode_dollar): Update.
4802 (decode_label): Add 'function_symbol' parameter. Handle
4803 function-relative labels.
4804 (decode_variable): Update.
4805 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4806 not its line. Set `special_display' and canonical name for
4809 2011-03-24 Tom Tromey <tromey@redhat.com>
4811 * linespec.h (struct linespec_result) <special_display>: New
4813 * breakpoint.h (struct breakpoint) <display_canonical>: New
4815 * breakpoint.c (print_breakpoint_location): Respect
4817 (create_breakpoint_sal): Add 'display_canonical' parameter.
4818 (create_breakpoints_sal): Update.
4819 (create_breakpoint): Update.
4821 2011-03-24 Tom Tromey <tromey@redhat.com>
4823 * symtab.c (decode_line_spec): Update.
4824 * linespec.c (build_canonical_line_spec): Change type of
4826 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4827 (find_method, decode_all_digits, decode_dollar, decode_label)
4828 (symbol_found): Likewise.
4829 (init_linespec_result): New function.
4830 * breakpoint.c (struct captured_parse_breakpoint_args)
4831 <canonical_p>: New field, replaces addr_string_p.
4832 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4834 (parse_breakpoint_sals): Likewise.
4835 (do_captured_parse_breakpoint): Update.
4836 (create_breakpoint): Use struct linespec_result.
4837 (until_break_command): Update.
4838 (breakpoint_re_set_one): Update.
4839 (decode_line_spec_1): Update.
4840 * linespec.h (struct linespec_result): New.
4841 (init_linespec_result): Declare.
4843 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4845 * regcache.c (regcache_raw_read): If the target didn't supply a
4846 given raw register, mark it as unavailable.
4848 2011-03-23 Kai Tietz <ktietz@redhat.com>
4850 * breakpoint.c (clear_command): Use filename_cmp
4851 instead of strcmp for comparison.
4852 * buildsym.c (watch_main_source_file_lossage): Likewise.
4853 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4854 checking just for slash.
4855 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4856 strrchr and filename_cmp instead of strcmp for filenames.
4857 (add_old_header_file): Use filename_cmp
4858 instead of strcmp for comparison.
4859 * exec.c (exec_set_section_address): Likewise.
4860 * macrotab.c (macro_lookup_inclusion): Likewise.
4861 (macro_lookup_inclusion): Likewise.
4862 * elfread.c (_initialize_elfread): Likewise.
4863 (elfstab_offset_sections): Likewise.
4864 (elfstab_offset_sections): Use lbasename instead of
4866 * mdebugread.c (parse_partial_symbols): Likewise.
4867 (arse_partial_symbols): Use filename_(n)cmp instead of
4868 str(n)cmp for comparison.
4869 * minsyms.c (lookup_minimal_symbol): Likewise.
4870 * psymtab.c (read_psymtabs_with_filename): Likewise.
4871 * solib.c (solib_read_symbols): Likewise.
4872 (reload_shared_libraries_1): Likewise.
4873 * symmisc.c (maintenance_print_symbols): Likewise.
4874 * symfile.c (separate_debug_file_exists): Likewise.
4875 (reread_symbols): Likewise.
4876 (find_separate_debug_file_by_debuglink): Likewise.
4877 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4878 * source.c (add_path): Likewise.
4879 * symtab.c (filename_seen): Likewise.
4880 (file_matches): Likewise.
4881 (print_symbol_info): Likewise.
4882 (maybe_add_partial_symtab_filename): Likewise.
4883 (make_source_files_completion_list): Likewise.
4884 * xml-syscall.c (init_sysinfo): Likewise.
4885 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4886 IS_DIR_SEPARATOR for checking for trailing path separator.
4888 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4890 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4891 label abort_expression.
4892 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4893 DWARF_VALUE_OPTIMIZED_OUT.
4895 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4898 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4899 to linkage_name. Invert its value. Update the function comment.
4900 (c_type_print_varspec_suffix): Invert it at the caller.
4901 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4903 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4905 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4906 errors when reading the `stop_pc'.
4907 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4910 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4912 * NEWS: Document gdb.Write stream keyword.
4914 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4917 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4918 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4919 (dwarf2_add_field): Fix new_field->accessibility for
4920 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4922 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4926 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4927 other error classes. Do not print stack trace.
4929 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4931 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4932 (dwarf2_add_field): Fix new_field->accessibility for
4933 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4935 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4937 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4938 encountering a load via a non-SP register.
4940 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4942 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4943 field in returned unwinder.
4945 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4947 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4949 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4951 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4954 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4956 * frame.c (frame_unwind_register): Throw an error if unwinding the
4958 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4959 an unwind stop reason.
4960 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4961 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4962 UNWIND_UNAVAILABLE>: New.
4963 * inline-frame.c (inline_frame_unwind): Install
4964 default_frame_unwind_stop_reason.
4965 * frame-unwind.c: Include "exceptions.h".
4966 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4967 (default_frame_unwind_stop_reason): New.
4968 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4969 (default_frame_unwind_stop_reason): Declare.
4970 (struct frame_unwind) <stop_reason>: New function pointer.
4972 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4973 * dwarf2-frame.c: Include exceptions.h.
4974 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4975 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4976 computing the CFA. If such an error was thrown, set
4977 unavailable_retaddr.
4978 (dwarf2_frame_unwind_stop_reason): New.
4979 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4981 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4982 (dwarf2_signal_frame_unwind): Ditto.
4984 * amd64-tdep.c: Include "exceptions.h".
4985 (struct amd64_frame_cache): New field "base_p".
4986 (amd64_init_frame_cache): Clear it.
4987 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4988 Avoid reading registers with functions that throw if the register
4989 is not necessary to compute the frame base.
4990 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4991 swallowing NOT_AVAILABLE_ERROR.
4992 (amd64_frame_unwind_stop_reason): New.
4993 (amd64_frame_this_id): Don't build a frame id if the frame base
4995 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4996 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4997 base_p if the frame base was computable.
4998 (amd64_sigtramp_frame_unwind_stop_reason): New.
4999 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5000 frame base was unavailable.
5001 (amd64_sigtramp_frame_unwind): Install
5002 amd64_sigtramp_frame_unwind_stop_reason.
5003 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5004 base_p if the frame base was computable.
5005 (amd64_epilogue_frame_unwind_stop_reason): New.
5006 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5007 frame base was unavailable.
5008 (amd64_epilogue_frame_unwind): Install
5009 amd64_epilogue_frame_unwind_stop_reason.
5010 * i386-tdep.c: Include "exceptions.h".
5011 (struct i386_frame_cache): New field "base_p".
5012 (i386_init_frame_cache): Clear it.
5013 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5014 Avoid reading registers with functions that throw if the register
5015 is not necessary to compute the frame base.
5016 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5017 swallowing NOT_AVAILABLE_ERROR.
5018 (i386_frame_unwind_stop_reason): New.
5019 (i386_frame_this_id): Don't build a frame id if the frame base was
5021 (i386_frame_prev_register): Handle unavailable SP.
5022 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5023 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5024 base_p if the frame base was computable.
5025 (i386_epilogue_frame_unwind_stop_reason): New.
5026 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5027 base was unavailable.
5028 (i386_epilogue_frame_unwind): Install
5029 i386_epilogue_frame_unwind_stop_reason.
5030 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5031 base_p if the frame base was computable.
5032 (i386_sigtramp_frame_unwind_stop_reason): New.
5033 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5034 base was unavailable.
5035 (i386_sigtramp_frame_unwind): Install
5036 i386_sigtramp_frame_unwind_stop_reason.
5037 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5038 type's size, not the register's.
5039 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5041 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5042 default_frame_unwind_stop_reason.
5043 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5044 (alpha_heuristic_frame_unwind): Ditto.
5045 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5046 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5047 * avr-tdep.c (avr_frame_unwind): Ditto.
5048 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5050 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5051 * frv-tdep.c (frv_frame_unwind): Ditto.
5052 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5053 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5054 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5055 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5056 (hppa_stub_frame_unwind): Ditto.
5057 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5058 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5059 (ia64_libunwind_frame_unwind)
5060 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5061 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5062 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5063 * m32c-tdep.c (m32c_unwind): Ditto.
5064 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5065 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5066 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5067 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5068 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5069 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5070 * mep-tdep.c (mep_frame_unwind): Ditto.
5071 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5072 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5073 (mips_stub_frame_unwind): Ditto.
5074 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5075 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5076 * mt-tdep.c (mt_frame_unwind): Ditto.
5077 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5078 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5079 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5080 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5081 (s390_sigtramp_frame_unwind): Ditto.
5082 * score-tdep.c (score_prologue_unwind): Ditto.
5083 * sh-tdep.c (sh_frame_unwind): Ditto.
5084 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5085 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5086 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5087 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5088 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5089 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5090 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5091 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5092 (sparc64obsd_trapframe_unwind): Ditto.
5093 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5094 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5095 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5096 * v850-tdep.c (v850_frame_unwind): Ditto.
5097 * vax-tdep.c (vax_frame_unwind): Ditto.
5098 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5099 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5100 * xtensa-tdep.c (xtensa_unwind): Ditto.
5102 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5104 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5105 there's always a frame. Use get_frame_pc_if_available instead of
5106 get_frame_pc, and if there's no PC available, don't look up a
5109 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5111 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5114 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5116 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5119 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5121 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5122 * frame.c (frame_unwind_caller_pc_if_available): New.
5123 * stack.c (frame_info): Handle unavailable PC.
5125 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5127 * frame.c (frame_unwind_pc): Rename to ...
5128 (frame_unwind_pc_if_available): ... this. New `pc' output
5129 parameter. Change return type to int. Gracefully handle
5130 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5131 happened, or 1 otherwise.
5132 (frame_unwind_pc): Reimplement on top of
5133 frame_unwind_pc_if_available.
5134 (get_frame_func): Rename to ...
5135 (get_frame_func_if_available): New `pc' output parameter. Change
5136 return type to int. Gracefully handle the PC not being available.
5137 (get_frame_func): Reimplement on top of
5138 get_frame_func_if_available.
5139 (select_frame): Handle the PC being unavailable.
5140 (get_prev_frame): Handle the PC being unavailable.
5141 (get_frame_pc_if_available): New.
5142 (get_frame_address_in_block_if_available): New.
5143 (find_frame_sal): Handle the frame PC not being available.
5144 * frame.h (get_frame_pc_if_available): Declare.
5145 (get_frame_address_in_block_if_available): Declare.
5146 (get_frame_func_if_available): Declare.
5147 * stack.c (print_frame_info): Handle the PC being unavailable.
5148 (find_frame_funname): Ditto.
5149 (print_frame): Handle the PC being unavailable.
5150 (get_frame_language): Ditto.
5151 * blockframe.c (get_frame_block): Ditto.
5152 * macroscope.c (default_macro_scope): Ditto.
5153 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5155 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5157 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5158 NOT_AVAILABLE_ERROR when evaluating the location expression.
5160 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5162 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5163 returning that the register piece is unavailable/optimized out.
5164 (write_pieced_value): Handle get_frame_register_bytes returning
5165 that the register piece is unavailable/optimized out when doing a
5166 read-modify write of a bitfield.
5167 * findvar.c (value_from_register): Handle get_frame_register_bytes
5168 returning that the register piece is unavailable/optimized out.
5169 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5170 and `unavailablep'. Throw error on bad debug info. Use
5171 frame_register instead of frame_register_read, to fill in the new
5173 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5175 * valops.c: (value_assign): Adjust, and handle
5176 get_frame_register_bytes failing.
5177 * spu-tdep.c: Include exceptions.h.
5178 (spu_software_single_step): Adjust, and handle
5179 get_frame_register_bytes failing.
5180 (spu_get_longjmp_target): Ditto.
5181 * gdbarch.sh (register_to_value): Change to return int. New
5182 parameters `optimizedp' and `unavailablep'.
5183 * gdbarch.h, gdbarch.c: Regenerate.
5184 * i386-tdep.c (i386_register_to_value): Adjust to new
5185 gdbarch_register_to_value interface.
5186 * i387-tdep.c (i387_register_to_value): Ditto.
5187 * i387-tdep.h (i387_register_to_value): Ditto.
5188 * alpha-tdep.c (alpha_register_to_value): Ditto.
5189 * ia64-tdep.c (ia64_register_to_value): Ditto.
5190 * m68k-tdep.c (m68k_register_to_value): Ditto.
5191 * mips-tdep.c (mips_register_to_value): Ditto.
5192 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5194 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5196 * findvar.c (value_of_register): Mark the value as unavailable, if
5197 the register is unavailable.
5198 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5199 (frame_register): New `unavailablep' parameter.
5200 (frame_register_read): Update comment.
5201 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5202 Set it if the register is unavailable. If the register is
5203 unavailable, clear the output buffer.
5204 (frame_register): New `unavailablep' parameter. Pass it down.
5205 (frame_unwind_register): Adjust.
5206 (put_frame_register): Adjust.
5207 (frame_register_read): Adjust. Also return false if the register
5209 (frame_register_unwind_location): Adjust.
5210 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5211 is unavailable, mark the value accordingly.
5212 * stack.c (frame_info): Handle unavailable registers.
5214 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5216 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5217 simplify, using regcache_cooked_read.
5219 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5221 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5222 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5223 (regcache_raw_read_unsigned, regcache_raw_read_part)
5224 (regcache_cooked_read, regcache_cooked_read_signed)
5225 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5226 (regcache_cooked_read_ftype): Change return to enum
5228 * regcache.c: Include exceptions.h
5229 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5230 (do_cooked_read): Change return to enum register_status. Always
5231 forward to regcache_cooked_read.
5232 (regcache_raw_read): Change return to enum register_status. If
5233 the register is not REG_VALID, memset the buffer. Return the
5235 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5236 return the register's status.
5237 (regcache_raw_read_unsigned): Ditto.
5238 (regcache_cooked_read): Change return to enum register_status.
5239 Assert that with read-only regcaches, the register's status must
5240 be known. If the regcache is read-only, and the register is not
5241 REG_VALID, memset the buffer. Return the register's status.
5242 (regcache_cooked_read_signed): Change return to enum
5243 register_status. Handle non-REG_VALID registers and return the
5245 (regcache_cooked_read_unsigned): Change return to enum
5246 register_status. Handle non-REG_VALID registers and return the
5248 (regcache_xfer_part, regcache_raw_read_part)
5249 (regcache_cooked_read_part): Change return to enum
5250 register_status. Return the register's status.
5251 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5253 (regcache_dump): Handle unavailable cooked registers.
5254 * frame.c (do_frame_register_read): Adjust interface to match
5255 regcache_cooked_read_ftype.
5256 * gdbarch.sh (pseudo_register_read): Change return to enum
5258 * gdbarch.h, gdbarch.c: Regenerate.
5260 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5262 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5263 register_status. If reading a raw register indicates the raw
5264 register is not valid, return the raw register's status,
5265 otherwise, return REG_VALID.
5266 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5267 register_status. Handle non-REG_VALID raw registers and return
5268 the register's status.
5269 * arm-tdep.c (arm_neon_quad_read)
5270 (arm_pseudo_read): Change return to enum register_status. Handle
5271 non-REG_VALID raw registers and return the register's status.
5272 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5273 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5274 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5275 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5276 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5278 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5279 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5280 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5281 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5282 (m32c_pseudo_register_read): Change return to enum
5283 register_status. Adjust.
5284 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5285 enum register_status. Return the register's status.
5286 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5287 register_status. Return the register's status.
5288 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5289 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5290 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5291 * rs6000-tdep.c (move_ev_register_func): New typedef.
5292 (e500_move_ev_register): Use it. Change return to enum
5293 register_status. Return the register's status.
5294 (do_regcache_raw_read): New function.
5295 (do_regcache_raw_write): New function.
5296 (e500_pseudo_register_read): Change return to enum
5297 register_status. Return the register's status. Use
5298 do_regcache_raw_read.
5299 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5300 (dfp_pseudo_register_read): Change return to enum register_status.
5301 Return the register's status.
5302 (vsx_pseudo_register_read): Ditto.
5303 (efpr_pseudo_register_read): Ditto.
5304 (rs6000_pseudo_register_read): Ditto.
5305 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5306 register_status. Return the register's status.
5307 * sh64-tdep.c (pseudo_register_read_portions): New function.
5308 (sh64_pseudo_register_read): Change return to enum
5309 register_status. Use pseudo_register_read_portions. Return the
5311 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5312 register_status. Return the register's status.
5313 * sh-tdep.c (pseudo_register_read_portions): New function.
5314 (sh_pseudo_register_read): Change return to enum register_status.
5315 Use pseudo_register_read_portions. Return the register's status.
5316 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5317 enum register_status. Return the register's status.
5318 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5319 * spu-tdep.c (spu_pseudo_register_read_spu)
5320 (spu_pseudo_register_read): Ditto.
5321 * xtensa-tdep.c (xtensa_register_read_masked)
5322 (xtensa_pseudo_register_read): Ditto.
5323 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5325 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5327 * python/py-value.c (valpy_getitem): Fix formatting of error function
5330 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5332 ARI fixes: Add missing internationalization markups throughout
5334 * darwin-nat-info.c: Ditto.
5337 * mi/mi-main.c: Ditto.
5339 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5341 ARI fixes: Add missing internationalization markups throughout
5344 * cp-name-parser.y: Ditto.
5347 * objc-exp.y: Ditto.
5350 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5352 ARI fixes: Messages should have no trailing new lines.
5353 * darwin-nat.c (mach_check_error): Remove trailing new line from
5354 warning function call message.
5355 * record.c (bfdcore_read): Idem for error call.
5357 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5359 * common/signals.c (target_signal_from_host): Add _ markup to error
5360 function call message.
5361 (target_signal_to_host): Add _ markup and remove trailing new line
5362 from warning call message.
5363 (target_signal_from_command): Add _ markup to error function call
5366 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5370 * python/python.c (gdbpy_write): Accept a stream argument and
5371 operate to the appropriate stream.
5372 (gdbpy_flush): Likewise.
5373 (_initialize_python): Add stream constants.
5374 (finish_python_initialization): Add GdbOutputErrorFile class.
5376 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5378 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5380 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5382 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5383 to store_signed_integer. Add debug message when relocating CALL
5384 instructions. Fix formatting of debug message.
5385 * i386-tdep.c (i386_relocate_instruction): Ditto.
5387 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5389 * target.h (struct target_ops): Remove to_lookup_symbol field.
5390 (target_lookup_symbol): Delete macro.
5391 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5392 (update_current_target, setup_target_debug): Remove handling
5393 of to_lookup_symbol target_ops field.
5394 * ada-tasks.c (get_known_tasks_addr): Remove use of
5395 target_lookup_symbol.
5396 * coffread.c (coff_symtab_read): Likewise.
5397 * dbxread.c (read_dbx_symtab): Ditto.
5399 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5402 * configure.ac: Add getthrds declaration check.
5403 * configure, config.in: Regenerate.
5404 * aix-thread.c (getthrds): Declare only if not already declared
5405 in procinfo.h. More declaration out of get_signaled_thread to
5408 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5410 * python/py-symtab.c: Populate symtab_object_methods,
5412 (stpy_is_valid): New function.
5413 (salpy_is_valid): Ditto.
5414 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5415 (sympy_is_valid): New function.
5416 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5417 (objfpy_is_valid): New function.
5418 * python/py-inferior.c: Populate inferior_object_methods.
5419 (infpy_is_valid): New function.
5420 * python/py-infthread.c: Populate thread_object_methods.
5421 (thpy_is_valid): New function.
5422 * python/py-block.c: Declare block_object_methods. Populate. Declare
5423 block_iterator_object_methods. Populate.
5424 (blpy_is_valid): New function.
5425 (blpy_iter_is_valid): Ditto.
5427 2011-03-16 Keith Seitz <keiths@redhat.com>
5429 * linespec.c (find_methods): Canonicalize NAME before looking
5431 (name_end): New function.
5432 (keep_name_info): New function.
5433 (decode_line_1): Use keep_name_info.
5434 (decode_compound): Likewise.
5435 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5436 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5439 * linespec.c (locate_first_half): Keep overload information, too.
5440 (decode_compound): Use a string to represent break characters
5442 If P points to a break character, do not increment it.
5443 For C++ and Java, keep overload information and relevant keywords.
5444 If we cannot find a symbol, search the minimal symbols.
5447 * linespec.c (decode_compound): Rename SAVED_ARG to
5449 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5451 Pass a valid block to lookup_symbol.
5452 (lookup_prefix_sym): Likewise.
5453 (find_method): Construct search name based on SYM_CLASS instead
5455 * psymtab.c (lookup_partial_symbol): Add language parameter.
5456 (lookup_symbol_aux_psymtabs): Likewise.
5457 Don't assume that the psymtab we found was the right one. Search
5458 for the desired symbol in the symtab to be certain.
5459 (psymtab_search_name): New function.
5460 (lookup_partial_symbol): Use psymtab_search_name.
5461 Add language parameter.
5462 (read_symtabs_for_function): Add language parameter and pass to
5463 lookup_partial_symbol.
5464 (find_symbol_file_from_partial): Likewise.
5466 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5469 * dwarf2read.c (noop_record_line): New function.
5470 (dwarf_decode_lines): Ignore line tables for GCd functions.
5472 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5474 Fix ARI warnings about new lines at the end of messages, which
5475 are unneeded as there is a new line added at the end of the message
5477 * darwin-nat.c (darwin_stop_inferior): Ditto.
5478 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5479 * dfp.c (decimal_to_number): Ditto.
5480 * exec.c (print_section_info): Ditto.
5481 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5482 * osdata.c (get_osdata): Ditto.
5483 * record.c (bfdcore_write): Ditto.
5484 * remote-mips.c (mips_readchar): Ditto.
5485 * remote.c (read_ptid): Ditto.
5486 * ser-mingw.c (ser_windows_raw): Ditto.
5487 * tracepoint.c (add_local_symbols): Ditto.
5488 * windows-nat.c (fake_create_process): Ditto.
5490 2011-03-16 Tom Tromey <tromey@redhat.com>
5492 * tracepoint.c (stop_tracing): Don't declare.
5493 * event-top.c (after_char_processing_hook): Add `(void)'.
5495 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5497 * NEWS: Add Parameter sub-classing description.
5499 2011-03-16 Kai Tietz <ktietz@redhat.com>
5501 * MAINTAINERS: Update my e-mail address.
5503 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5505 * MAINTAINERS: Add myself for write after approval privileges.
5507 2011-03-15 Michael Snyder <msnyder@vmware.com>
5509 * frame.c (find_frame_sal): Assert sym is not null.
5511 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5513 * objc-lang.c (selectors_info): Check strchr for null result.
5515 * stabsread.c (define_symbol): Guard against bad stabstring input.
5517 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5519 Remove trailing spaces and tabulations from pascal language
5524 p-valprint.c: Ditto.
5526 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5528 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5529 than LOW. Comment it.
5530 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5531 HIGHPC not strictly higher than LOWPC.
5533 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5535 Fix formatting of function declarations returning a pointer in
5537 * varobj.c (varobj_add_child): Ditto.
5538 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5539 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5541 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5543 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5544 for the "generic" vector ABI used with GCC 4.3 and later.
5545 (ppc64_sysv_abi_return_value): Likewise.
5547 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5549 * infcall.c (call_function_by_hand): Function return value is
5550 always a non_lval, even when using struct_return.
5552 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5554 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5555 (map_display_numbers): New.
5556 (do_delete_display): New.
5557 (undisplay_command): Use map_display_numbers.
5558 (do_enable_disable_display): New.
5559 (enable_disable_display_command): New function.
5560 (enable_display): Delete.
5561 (enable_display_command): New.
5562 (disable_display_command): Reimplement.
5563 (_initialize_printcmd): Adjust "enable display" command to use
5564 `enable_display_command' as callback.
5566 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5568 * NEWS: Add Python breakpoint 'stop' operation.
5570 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5572 * NEWS: Delete duplicate entry. Fix typo.
5574 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5576 Fix ARI warning about function names in first column.
5577 Put prototype declaration on same line as return type.
5578 * objc-exp.y: Ditto.
5580 * python/py-stopevent.h: Ditto.
5581 For long function names, split parameters to
5582 allow function name on same line as return type.
5583 * solib-pa64.c: Ditto.
5586 For long function declaration, use single line.
5587 * hppa-tdep.h: Ditto.
5588 * inferior.h: Ditto.
5590 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5592 * python/python.h: Declare gdbpy_should_stop and
5593 gdbpy_breakpoint_has_py_cond.
5594 * python/python.c: Add python.h to includes. Remove python.h from
5595 HAVE_PYTHON definition
5596 (gdbpy_should_stop): New dummy function.
5597 (gdbpy_breakpoint_has_py_cond): New dummy function.
5598 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5599 sub-classing capabilities.
5600 (gdbpy_should_stop): New function.
5601 (gdbpy_breakpoint_has_py_cond): New function.
5602 (local_setattro): New function.
5603 * breakpoint.c (condition_command): Add check for Python 'stop'
5605 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5606 operation function as part of stop/continue tests.
5608 2011-03-14 Tom Tromey <tromey@redhat.com>
5611 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5612 (needs_frame_dwarf_call): Likewise.
5614 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5616 Fix ARI warning about functions without parameters that do not
5618 * breakpoint.c (all_tracepoints): Replace () by (void).
5619 * f-exp.y (match_string_literal): Ditto.
5621 * m2-exp.y (yylex): Ditto.
5622 * mep-tdep.c (current_me_module): Ditto.
5623 (current_options): Ditto.
5624 (current_cop_data_bus_width): Ditto.
5625 (current_cr_names): Ditto.
5626 (current_cr_is_float): Ditto.
5627 (current_ccr_names): Ditto.
5628 * objc-exp.y (yylex): Ditto.
5629 * p-exp.y (yylex): Ditto.
5630 * remote.c (send_interrupt_sequence): Ditto.
5631 * tracepoint.c (current_trace_status): Ditto.
5632 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5633 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5635 2011-03-11 Michael Snyder <msnyder@vmware.com>
5637 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5638 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5639 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5640 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5641 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5643 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5644 (delete_async_event_handler): Ditto.
5646 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5648 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5650 * top.c (set_verbose): Assert showcmd was found.
5652 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5654 * xtensa-tdep.c (warning_once): Correct style issues.
5656 2011-03-11 Yao Qi <yao@codesourcery.com>
5658 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5660 2011-03-11 Andreas Schwab <schwab@redhat.com>
5662 * common/aclocal.m4: Remove.
5664 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5666 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5667 (xtensa_write_register, xtensa_read_register): Likewise.
5668 (xtensa_hextochar): Removed.
5669 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5671 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5673 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5674 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5675 (xtensa_alloc_frame_cache): Add initialization for new fields.
5676 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5677 (warning_once): New function.
5678 (xtensa_insn_kind): New item c0opc_and.
5679 (call0_classify_opcode): Add the case for AND instruction.
5680 (call0_track_op): Change arguments. New local variable litbase.
5681 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5682 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5684 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5685 (call0_analyze_prologue): Update the comments. Change arguments.
5686 Add the variety of updates to handle extended prologues, which now can
5687 conduct dynamic stack adjustments.
5688 (call0_frame_cache): Likewise.
5689 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5690 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5692 2011-03-10 Michael Snyder <msnyder@vmware.com>
5694 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5695 (cmd_qtframe): Ditto.
5696 (cmd_qtbuffer): Ditto.
5697 (cmd_bigqtbuffer): Ditto.
5699 2011-03-10 Tom Tromey <tromey@redhat.com>
5701 * tracepoint.c (trace_actions_command): Update.
5702 * thread.c (thread_apply_command): Update.
5703 * reverse.c (delete_bookmark_command): Update.
5704 (bookmarks_info): Update.
5705 * printcmd.c (undisplay_command): Update.
5706 * memattr.c (mem_enable_command): Update.
5707 (mem_disable_command): Update.
5708 (mem_delete_command): Update.
5709 * inferior.c (detach_inferior_command): Update.
5710 (kill_inferior_command): Update.
5711 (remove_inferior_command): Update.
5712 * cli/cli-utils.h (struct get_number_or_range_state): New.
5713 (init_number_or_range): Declare.
5714 (get_number_or_range): Update.
5715 * cli/cli-utils.c (init_number_or_range): New function.
5716 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5718 (number_is_in_list): Update.
5719 * breakpoint.h (get_tracepoint_by_number): Update.
5720 * breakpoint.c (map_breakpoint_numbers): Update for change to
5721 get_number_or_range.
5722 (find_location_by_number): Use get_number, not
5723 get_number_or_range.
5724 (trace_pass_set_count): New function.
5725 (trace_pass_command): Update for change to get_number_or_range.
5727 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5730 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5732 * python/py-param.c (add_setshow_generic): Add set/show callback
5733 parameters. Register Python object context.
5734 (get_show_value): New function.
5735 (get_set_value): New function.
5736 (call_doc_function): New function.
5737 (get_doc_string): Move behind get_show_value/get_set_value.
5739 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5741 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5743 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5745 * xtensa-tdep.c (xtensa_read_register): Add comment.
5746 (xtensa_write_register): Likewise.
5747 (xtensa_hextochar): Add comment and update to match coding conventions.
5748 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5749 (execute_l32e, execute_s32e, execute_code): Update comments.
5750 (xtensa_exception_handler_t): Update to match coding conventions.
5751 (xtensa_insn_kind): Likewise.
5753 2011-03-09 Michael Snyder <msnyder@vmware.com>
5755 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5757 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5759 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5761 2011-03-09 Tom Tromey <tromey@redhat.com>
5763 * thread.c (restore_selected_frame): Handle frame_level == -1.
5764 (make_cleanup_restore_current_thread): Use
5765 get_selected_frame_if_set.
5766 * frame.h (get_selected_frame_if_set): Declare.
5767 * frame.c (get_selected_frame_if_set): New function.
5769 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5771 * cli/cli-cmds.c (shell_escape): Use lbasename.
5772 * coffread.c (coff_start_symtab): Constify parameter.
5773 (complete_symtab): Constify `name' parameter.
5774 (coff_symtab_read): Constify `filestring' local.
5775 (coff_getfilename): Constify return and `result' local.
5777 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5778 * linux-fork.c (info_checkpoints_command): Use lbasename.
5779 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5780 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5781 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5782 * procfs.c (procfs_make_note_section): Use lbasename.
5783 * tui/tui-io.c (printable_part): Constity return and parameter.
5785 (print_filename): Constify parameters, and local `s'.
5786 (tui_rl_display_match_list): Constify local `temp'.
5788 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5791 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5792 Fix DWARF-3+ DW_AT_accessibility default assumption.
5793 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5794 cu->header.version >= 3.
5796 2011-03-09 Yao Qi <yao@codesourcery.com>
5798 * common/Makefile.in: Remove.
5799 * common/configure: Remove.
5800 * common/configure.ac: Remove.
5802 2011-03-09 Yao Qi <yao@codesourcery.com>
5805 2011-02-11 Yao Qi <yao@codesourcery.com>
5807 * common/Makefile.in: Add copyright header.
5809 2011-02-11 Yao Qi <yao@codesourcery.com>
5811 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5813 * configure.ac: Add common to sub dir.
5814 * configure: Regenerate.
5816 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5818 * xtensa-tdep.c (call0_ret): New function.
5819 (xtensa_skip_prologue): Speed up analysis.
5821 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5823 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5824 while executing MI command -data-list-changed-registers.
5826 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5828 * xtensa-tdep.c (xtensa_read_register): New function.
5829 (xtensa_write_register): New function.
5830 (xtensa_find_register_by_name): New function.
5831 (xtensa_windowed_frame_cache): Update comments in type description.
5832 (xtensa_frame_cache): Likewise.
5833 (xtensa_window_interrupt_insn): New function.
5834 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5835 (xtensa_insn_kind): Add new instructions.
5836 (rwx_special_register): New function.
5837 (call0_classify_opcode): Add new instructions to the analysis.
5838 (a0_saved, a7_saved, a11_saved): New variables.
5839 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5840 (execute_l32e): New function.
5841 (execute_s32e): New function.
5842 (xtensa_exception_handler_t): New type.
5843 (execute_code): New function.
5844 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5845 analysis for Xtensa Window Exception handlers.
5847 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5849 * xtensa-tdep.c (TX_PS): New.
5850 (windowing_enabled): Update to count for Call0 ABI.
5851 (xtensa_hextochar): New.
5852 (xtensa_init_reggroups): Make algorithm generic.
5853 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5855 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5857 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5859 2011-03-08 Michael Snyder <msnyder@vmware.com>
5861 * i386-tdep.c (i386_follow_jump): Check return value of
5863 (i386_analyze_struct_return): Ditto.
5864 (i386_skip_probe): Ditto.
5865 (i386_match_insn): Ditto.
5866 (i386_skip_noop): Ditto.
5867 (i386_analyze_frame_setup): Ditto.
5868 (i386_analyze_register_saves): Ditto.
5869 (i386_skip_prologue): Ditto.
5870 (i386_skip_main_prologue): Ditto.
5872 * target.c (read_whatever_is_readable): Fix memory leak.
5874 * i386-tdep.c (i386_process_record): Document fall through.
5876 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5878 Fix DWARF-3+ DW_AT_accessibility default assumption.
5879 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5880 cu->header.version >= 3.
5882 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5884 * remote.c (remote_check_symbols): Skip if the target has no
5887 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5889 * target.c (read_whatever_is_readable): Reformat comment,
5890 with a minor typo fix. Minor reformatting of the code.
5892 2011-03-08 Yao Qi <yao@codesourcery.com>
5894 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5895 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5896 Use cached result instead of calling displaced_in_arm_mode again.
5897 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5898 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5899 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5900 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5901 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5902 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5903 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5904 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5905 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5906 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5907 (arm_catch_kernel_helper_return): Likewise.
5908 * gdb/arm-tdep.h : Update function declarations.
5910 2011-03-07 Michael Snyder <msnyder@vmware.com>
5912 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5914 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5916 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5918 * elfread.c (elf_symtab_read): Stop memory leak.
5920 * main.c (captured_main): Fix memory leak.
5922 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5924 * ada-lang.c (compare_names): Call is_name_suffix with string1
5927 2011-03-07 Tom Tromey <tromey@redhat.com>
5929 * xcoffread.c (xcoff_sym_fns): Update.
5930 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5931 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5932 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5933 (symbol_file_add_with_addrs_or_offsets): Likewise.
5934 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5935 * somread.c (som_sym_fns): Update.
5936 * psymtab.h (require_partial_symbols): Declare.
5937 * psymtab.c (require_partial_symbols): New function.
5938 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5939 (ALL_OBJFILE_PSYMTABS): Undef.
5940 (ALL_PSYMTABS): Move from psympriv.h.
5941 (lookup_partial_symtab, find_pc_sect_psymtab)
5942 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5943 (find_last_source_symtab_from_partial)
5944 (forget_cached_source_info_partial)
5945 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5946 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5947 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5948 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5949 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5950 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5951 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5952 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5953 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5955 * mipsread.c (ecoff_sym_fns): Update.
5956 * machoread.c (macho_sym_fns): Update.
5957 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5958 (read_psyms): New function.
5959 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5960 (elf_sym_fns_lazy_psyms): New global.
5961 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5962 dwarf2_build_psymtabs.
5963 * dbxread.c (aout_sym_fns): Update.
5964 * coffread.c (coff_sym_fns): Update.
5966 2011-03-07 Tom Tromey <tromey@redhat.com>
5968 * infrun.c (print_exited_reason): Include inferior id and pid in
5971 2011-03-07 Tom Tromey <tromey@redhat.com>
5973 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5975 (target_has_execution_1): Update.
5976 (target_has_execution_current): Declare.
5977 (target_has_execution): Call target_has_execution_current.
5978 (default_child_has_execution): Update.
5979 * target.c (default_child_has_execution): Add 'the_ptid'
5981 (target_has_execution_1): Likewise.
5982 (target_has_execution_current): New function.
5983 (add_target): Update.
5984 (init_dummy_target): Update.
5985 * remote-m32r-sdi.c (m32r_has_execution): New function.
5986 (init_m32r_ops): Use it.
5987 * record.c (record_core_has_execution): Now static. Add
5988 'the_ptid' parameter.
5989 * inferior.c (have_live_inferiors): Don't save current thread.
5990 Use target_has_execution_1.
5992 2011-03-07 Yao Qi <yao@codesourcery.com>
5994 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5996 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5998 * elfread.c (elf_symtab_read): Minor reformatting.
6000 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6002 * objc-lang.c (selectors_info): Minor reformatting.
6004 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6006 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6008 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6009 Michael Snyder <msnyder@vmware.com>
6011 * ada-valprint.c (ada_val_print_array): Move the declaration of
6012 "byte_order" and "elttype" inside the block where these variables
6013 are actually used. Remove some special handling for the case
6014 where "elttype" and "eltlen" are null. Replace by a comment
6015 and a couple of assertion checks.
6017 2011-03-05 Michael Snyder <msnyder@vmware.com>
6019 * source.c (add_path): Replace semicolon at end of block.
6020 * dwarf2expr.c (execute_stack_op): Ditto.
6022 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6024 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6025 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6026 (bfin-*-*): Likewise.
6028 2011-03-05 Michael Snyder <msnyder@vmware.com>
6030 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6031 * mdebugread.c (parse_symbol): Ditto.
6032 * parse.c (parse_exp_in_context): Ditto.
6033 * source.c (add_path): Ditto.
6034 * utils.c (gnu_debuglink_crc32): Ditto.
6035 * varobj.c (variable_language): Ditto.
6037 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6039 2011-03-04 Michael Snyder <msnyder@vmware.com>
6041 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6043 * symfile.c (simple_overlay_update): Check for null return value
6044 from lookup_minimal_symbol.
6046 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6048 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6050 * eval.c (parse_and_eval_address_1): Remove function.
6051 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6052 instead of parse_and_eval_address_1.
6053 * value.h (parse_and_eval_address_1): Remove prototype.
6055 2011-03-04 Michael Snyder <msnyder@vmware.com>
6057 * remote.c (putpkt_binary): Document that case stmt falls through.
6059 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6061 * breakpointc (print_it_typical): Move NULL check from here...
6062 (print_bp_stop_message): ... to here.
6064 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6066 * breakpoint.c (enable_command): Use break instead of continue,
6067 and fill in a missing break.
6068 (disable_command): Ditto.
6070 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6072 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6073 (terminal_save_ours): Remove misleading comment.
6074 (inflow_inferior_data_cleanup): Free ttystate.
6075 (inflow_inferior_exit): Likewise.
6076 (copy_terminal_info): Copy ttystate.
6078 * serial.c (serial_copy_tty_state): New function.
6079 * serial.h (serial_copy_tty_state): Add prototype.
6080 (struct serial_ops): Add copy_tty_state callback.
6081 * ser-base.c (ser_base_copy_tty_state): New function.
6082 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6083 * ser-go32.c (dos_copy_tty_state): New function.
6084 (dos_ops): Install copy_tty_state callback.
6085 * ser-mingw.c (_initialize_ser_windows): Likewise.
6086 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6087 * ser-unix.c (hardwire_copy_tty_state): New function.
6088 (_initialize_ser_hardwire): Install it.
6090 2011-03-04 Michael Snyder <msnyder@vmware.com>
6092 * breakpoint.c (create_breakpoint): Add missing break statement.
6094 Reverting this patch:
6095 * infcall.c (call_function_by_hand): Add break statements for lint.
6097 Reverting this patch:
6098 * cli/cli-script.c (script_from_file): Add break for lint.
6100 2011-03-04 Michael Snyder <msnyder@vmware.com>
6102 * solib.c (reload_shared_libraries_1): Close memory leak.
6104 2011-03-03 Tom Tromey <tromey@redhat.com>
6107 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6110 2011-03-03 Michael Snyder <msnyder@vmware.com>
6112 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6113 fields of struct 'st' to zero.
6115 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6116 sal.pspace before calling set_current_source_symtab_and_line.
6118 2011-03-03 Yao Qi <yao@codesourcery.com>
6120 * Makefile.in (configure-common): Remove. Let Makefile
6121 in dir common to rebuild itself.
6122 (common/Makefile): Likewise.
6124 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6126 * utils.c (parse_escape): Add i18n markup in error message.
6128 2011-03-03 Yao Qi <yao@codesourcery.com>
6130 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6132 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6133 (displaced_write_reg, displaced_read_reg): Likewise.
6134 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6135 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6136 (cleanup_branch): Replace magic number 14 and 15 with
6137 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6139 2011-03-02 Michael Snyder <msnyder@vmware.com>
6141 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6143 * cli/cli-script.c (script_from_file): Add break for lint.
6145 * mdebugread.c (parse_partial_symbols): Fix indent.
6147 * target-descriptions.c (tdesc_gdb_type): No need to call
6148 xstrdup, callee saves a copy.
6150 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6152 * infcall.c (call_function_by_hand): Add break statements for lint.
6154 * utils.c (parse_escape): Escape the escape char.
6156 * python/py-inferior.c (build_inferior_list): Error out if
6157 PyList_Append fails.
6158 (gdbpy_inferiors): Error out if build_inferior_list fails.
6160 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6163 * record.c (record_restore): Move printf to before error return.
6165 2011-03-02 Yao Qi <yao@codesourcery.com>
6167 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6168 is_thumb and insn_size.
6169 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6170 on both ARM and Thumb mode.
6171 (arm_process_displaced_insn): Set is_thumb and insn_size.
6172 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6173 (arm_displaced_step_fixup): Likewise.
6175 2011-03-01 Michael Snyder <msnyder@vmware.com>
6177 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6179 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6181 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6183 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6185 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6188 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6189 which shadows function parameter.
6191 * tracepoint.c (create_tsv_from_upload): Superfluous call
6192 to xstrdup. Callee already calls xstrdup.
6194 * linespec.c (decode_line_1): Remove unnecessary null check.
6196 * tracepoint.c (scope_info): Fix mem leak, remove underused
6199 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6200 superfluous null check.
6202 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6203 (value_of_builtin_frame_fp_reg): Ditto.
6205 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6207 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6210 * linespec.c (decode_line_1): Check for null before dereference.
6212 * reverse.c (record_restore): Move null-check to before pointer
6215 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6217 * objc-lang.c (selectors_info): Add explanitory comment.
6218 (classes_info): Ditto.
6220 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6222 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6223 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6224 versions of the trampoline. Handle Thumb vs. ARM addresses.
6225 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6226 (arm_linux_init_abi): Install it.
6227 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6228 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6230 2011-02-28 Michael Snyder <msnyder@vmware.com>
6232 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6233 a little bigger, to avoid possibility of an overflow.
6235 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6236 buffers a little bigger, to avoid possibility of an overflow.
6238 * coffread.c (coff_getfilename): Add check to avoid overflow.
6240 * objc-lang.c (selectors_info): Add a small safety margin to
6242 (classes_info): Error out on too long REGEXP.
6244 * infrun.c (handle_inferior_event): Remove unused function call.
6246 * fork-child.c (fork_inferior): Remove ifdef'd code and
6249 * linux-thread-db.c (attach_thread): Discard unused value.
6251 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6253 * remote.c (remote_get_noisy_reply): Discard unused value.
6254 (remote_vcont_resume): Ditto.
6255 (remote_stop_ns): Ditto.
6257 * linespec.c (decode_objc): Delete unused variable.
6259 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6261 * dwarf2read.c (add_partial_symbol): Discard unused values.
6262 (read_base_type): Delete unused variable.
6264 * dbxread.c (read_dbx_symtab): Discard unused value.
6266 * eval.c (evaluate_subexp_standard): Delete unused variable,
6267 and discard unused values.
6269 * infcmd.c (_initialize_infcmd): Discard unused values.
6271 * stabsread.c (rs6000_builtin_type): Missing break statement.
6273 * dbxread.c (process_one_symbol): Discard unused value.
6275 * coffread.c (coff_end_symtab): Delete unused variable.
6277 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6278 (dwarf2_add_typedef): Delete unused variable.
6279 (read_namespace): Ditto.
6280 (dwarf_decode_macros): Ditto.
6282 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6284 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6286 * p-valprint.c (pascal_val_print): Discard unused value.
6288 * utils.c (nquery): Call va_end before return;
6292 * proc-service.c (ps_plog): Call va_end before return.
6294 2011-02-28 Tom Tromey <tromey@redhat.com>
6296 * python/python.c (gdbpy_value_cst): New global.
6297 (_initialize_python): Initialize it.
6298 * python/python-internal.h (gdbpy_value_cst): Declare.
6299 * python/py-value.c (convert_value_from_python): Use
6302 2011-02-28 Michael Snyder <msnyder@vmware.com>
6304 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6306 * breakpoint.c (catch_syscall_completer): Free malloced list.
6308 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6310 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6311 (lval_func_check_synthetic_pointer): Ditto.
6312 (lval_func_free_closure): Fix use-after-free.
6314 2011-02-28 Tom Tromey <tromey@redhat.com>
6316 * psymtab.c (expand_partial_symbol_tables): Use
6317 ALL_OBJFILE_PSYMTABS.
6319 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6321 * objc-lang.c (selectors_info): Error on too long REGEXP.
6323 2011-02-28 Michael Snyder <msnyder@vmware.com>
6325 * python/py-param.c (set_parameter_value): Add missing
6328 * linux-record.c (record_linux_system_call): Add missing
6331 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6333 * breakpoint.c (print_one_breakpoint_location): Remove unused
6334 argument PRINT_ADDRESS_BITS. Update callers.
6335 (print_one_breakpoint): Likewise.
6337 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6339 * breakpoint.c (wrap_indent_at_field): New function.
6340 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6341 Allocate ui_stream locally instead of using STB argument.
6342 (print_one_breakpoint_location): Update call.
6343 * ui-out.c (ui_out_query_field): New function.
6344 * ui-out.h (ui_out_query_field): Add prototype.
6346 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6348 From Michael Snyder <msnyder@vmware.com>
6349 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6351 2011-02-27 Michael Snyder <msnyder@vmware.com>
6353 * objc-lang.c (selectors_info): Prevent string overrun.
6355 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6358 * symtab.c (rbreak_command): Move variable 'file_name' to
6361 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6362 param with a local variable of the same name.
6364 2011-02-27 Michael Snyder <msnyder@vmware.com>
6366 * value.c (value_from_history_ref): New function.
6367 * value.h (value_from_history_ref): Export.
6368 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6369 to parse value history references.
6370 * cli/cli-utils.h (get_number_trailer): Update comment.
6372 2011-02-27 Michael Snyder <msnyder@vmware.com>
6374 * inferior.c (detach_inferior_command): Use get_number_or_range.
6375 (kill_inferior_command): Ditto.
6376 (remove_inferior_command): Ditto.
6377 (initialize_inferiors): Make command names plural.
6378 Update help strings.
6380 2011-02-27 Michael Snyder <msnyder@vmware.com>
6382 * darwin-nat-info.c: Fix comment typo.
6383 * dwarf2expr.h: Ditto.
6384 * fbsd-nat.c: Ditto.
6385 * fbsd-nat.h: Ditto.
6386 * frame-unwind.h: Ditto.
6388 * hppa-hpux-tdep.c: Ditto.
6389 * i386-linux-nat.c: Ditto.
6390 * linux-nat.c: Ditto.
6391 * nbsd-nat.c: Ditto.
6392 * nbsd-nat.h: Ditto.
6393 * ppc-linux-tdep.c: Ditto.
6396 * tui/tui-winsource.c: Ditto.
6398 2011-02-26 Michael Snyder <msnyder@vmware.com>
6400 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6402 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6404 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6405 with a local variable of the same name.
6407 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6408 param with a local variable of the same name.
6409 (i387_supply_xsave): Ditto.
6411 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6412 that it does not shadow a function parameter.
6414 * i386-nat.c (i386_length_and_rw_bits): Document that case
6415 statement is meant to fall through.
6417 * expprint.c (dump_subexp_body_standard): Document that case
6418 statement is meant to fall through.
6420 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6421 dead if statement. Condition can't be false.
6423 2011-02-25 Michael Snyder <msnyder@vmware.com>
6425 * arm-tdep.c: Fix typos in comments.
6426 * bsd-uthread.c: Ditto.
6427 * completer.c: Ditto.
6429 * cp-namespace.c: Ditto.
6430 * cp-support.c: Ditto.
6431 * cris-tdep.c: Ditto.
6433 * dwarf2read.c: Ditto.
6435 * gdbtypes.h: Ditto.
6436 * inferior.h: Ditto.
6437 * mdebugread.c: Ditto.
6438 * mips-tdep.c: Ditto.
6439 * ppc-linux-nat.c: Ditto.
6440 * ppc-linux-tdep.c: Ditto.
6441 * printcmd.c: Ditto.
6442 * sol-thread.c: Ditto.
6443 * solib-frv.c: Ditto.
6445 * sparc64-tdep.c: Ditto.
6446 * spu-tdep.c: Ditto.
6447 * stabsread.c: Ditto.
6452 * python/py-block.c: Ditto.
6453 * python/py-symbol.c: Ditto.
6454 * python/py-symtab.c: Ditto.
6455 * python/py-value.c: Ditto.
6456 * tui/tui-win.c: Ditto.
6458 2011-02-25 Michael Snyder <msnyder@vmware.com>
6460 * inferior.c (print_inferior): Accept a string instead of an int
6461 for requested_inferiors, and use get_number_or_range to parse it.
6462 (info_inferiors_command): Pass args string to print_inferior.
6463 (initialize_inferiors): Change help string for info inferiors.
6464 * inferior.h (print_inferior): Export prototype change.
6466 2011-02-25 Tom Tromey <tromey@redhat.com>
6468 * common/ax.def (invalid2): Set to 0x31.
6470 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6472 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6474 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6476 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6478 2011-02-24 Michael Snyder <msnyder@vmware.com>
6480 * Makefile.in (clean): Make clean should remove generated files
6481 observer.h and observer.inc.
6483 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6485 Revert the following patch (not approved yet):
6486 2011-02-21 Hui Zhu <teawater@gmail.com>
6487 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6488 * ax-gdb.c (gen_printf_expr_callback): New function.
6489 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6490 * ax-general.c (ax_memcpy): New function.
6491 (ax_print): Handle "printf".
6493 * ax.h (ax_memcpy): Forward declare.
6494 * common/ax.def (invalid2): Removed.
6495 (printf): New entry.
6496 * printcmd.c (printcmd.h): New include.
6497 (string_printf): New function.
6498 (ui_printf): Removed.
6499 (printf_command): Remove static. Call string_printf.
6500 (eval_command): Call string_printf.
6501 * printcmd.h: New file.
6502 * tracepoint.c (validate_actionline,
6503 encode_actions_1): handle printf_command.
6505 2011-02-23 Tom Tromey <tromey@redhat.com>
6507 * ax-general.c (ax_pick): Add missing newline.
6509 2011-02-23 Michael Snyder <msnyder@vmware.com>
6511 * breakpoint.c (breakpoint_1): Change first argument from an int
6512 to a char pointer, so that the function now accepts a list of
6513 breakpoints rather than just one. Use new function
6514 'number_is_in_list' to implement.
6515 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6516 (watchpoints_info): Ditto.
6517 (tracepoints_info): Ditto.
6518 (maintenance_info_breakpoints): Ditto.
6519 (_initialize_breakpoint): Update help strings to reflect the fact
6520 that these functions can now take more than one argument.
6521 * cli/cli-utils.c (number_is_in_list): New function.
6522 * cli/cli-utils.h (number_is_in_list): Export.
6524 2011-02-23 Michael Snyder <msnyder@vmware.com>
6526 * memattr.c (mem_enable_command): Use get_number_or_range.
6527 (mem_disable_command): Ditto.
6528 (mem_delete_command): Ditto.
6529 (_initialize_mem): Tweak usage message to reflect multiple
6532 2011-02-22 Doug Evans <dje@google.com>
6534 Add gdb.lookup_global_symbol python function.
6536 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6537 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6538 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6540 2011-02-22 Tom Tromey <tromey@redhat.com>
6542 * language.c (language_class_name_from_physname): Rename
6543 'curr_language' argument to 'lang'; use in body.
6545 2011-02-22 Michael Snyder <msnyder@vmware.com>
6547 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6549 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6551 * frame-unwind.h: Fix comment to mention the this frame, not the
6554 2011-02-22 Tom Tromey <tromey@redhat.com>
6556 * symfile.c (auto_solib_limit): Remove.
6557 * symfile.h (auto_solib_limit): Remove.
6559 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6561 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6563 2011-02-21 Michael Snyder <msnyder@vmware.com>
6565 * gdbthread.h (print_thread_info): Change prototype.
6566 * thread.c (print_thread_info): Accept char* instead of int for
6567 requested_threads argument. Use new function number_is_in_list
6568 to determine which threads to list.
6569 (info_threads_command): Pass char* to print_thread_info.
6570 * cli/cli-utils.c (number_is_in_list): New function.
6571 * cli/cli-utils.h (number_is_in_list): Export.
6572 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6574 (print_one_inferior): Ditto.
6575 (mi_cmd_list_thread_groups): Ditto.
6577 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6579 * common/Makefile.in (CFLAGS): New.
6580 (COMPILE): Add $(CFLAGS).
6582 2011-02-21 Tom Tromey <tromey@redhat.com>
6584 * breakpoint.c (catch_syscall_command_1): Fix typo.
6586 2011-02-21 Tom Tromey <tromey@redhat.com>
6588 * reverse.c: Include cli-utils.h.
6589 * printcmd.c: Include cli-utils.h.
6590 (string_printf): Use skip_spaces.
6591 * cli/cli-utils.h: New file.
6592 * cli/cli-utils.c: New file.
6593 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6594 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6595 * breakpoint.h (get_number, get_number_or_range): Move to
6597 * breakpoint.c: Include cli-utils.h.
6598 (get_number_trailer, get_number, get_number_or_range)
6599 (ep_skip_leading_whitespace): Move to cli-utils.c.
6600 (create_breakpoint_sal, find_condition_and_thread)
6601 (decode_static_tracepoint_spec, watch_command_1)
6602 (watch_maybe_just_location, ep_parse_optional_if_clause)
6603 (catch_fork_command_1, catch_exec_command_1)
6604 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6605 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6606 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6607 (HFILES_NO_SRCDIR): Add cli-utils.h.
6608 (cli-utils.o): New target.
6610 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6612 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6613 before calling discard_all_inferiors.
6615 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6617 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6618 (struct builtin_opencl_type): Remove.
6619 (builtin_opencl_type): Change return type to "struct type **".
6620 (lookup_opencl_vector_type): Update caller.
6621 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6622 (build_opencl_types): Install plain array of "struct type *"
6623 instead of "struct builtin_opencl_type".
6625 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6626 Ulrich Weigand <uweigand@de.ibm.com>
6628 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6629 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6630 (struct arm_linux_hwbp_cap): New type.
6631 (arm_linux_get_hwbp_cap): New function.
6632 (arm_linux_get_hw_breakpoint_count): Likewise.
6633 (arm_linux_get_hw_watchpoint_count): Likewise.
6634 (arm_linux_can_use_hw_breakpoint): Likewise.
6635 (arm_hwbp_type): New type.
6636 (arm_hwbp_control_t): Likewise.
6637 (struct arm_linux_hw_breakpoint): Likewise.
6638 (struct arm_linux_thread_points): Likewise.
6639 (arm_threads): New global variable.
6640 (arm_linux_find_breakpoints_by_tid): New function.
6641 (arm_hwbp_control_initialize): Likewise.
6642 (arm_hwbp_control_is_enabled): Likewise.
6643 (arm_hwbp_control_disable): Likewise.
6644 (arm_linux_hw_breakpoint_initialize): Likewise.
6645 (arm_linux_get_hwbp_type): Likewise.
6646 (arm_linux_hw_watchpoint_initialize): Likewise.
6647 (arm_linux_hw_breakpoint_equal): Likewise.
6648 (arm_linux_insert_hw_breakpoint1): Likewise.
6649 (arm_linux_remove_hw_breakpoint1): Likewise.
6650 (arm_linux_insert_hw_breakpoint): Likewise.
6651 (arm_linux_remove_hw_breakpoint): Likewise.
6652 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6653 (arm_linux_insert_watchpoint): Likewise.
6654 (arm_linux_remove_watchpoint): Likewise.
6655 (arm_linux_stopped_data_address): Likewise.
6656 (arm_linux_stopped_by_watchpoint): Likewise.
6657 (arm_linux_watchpoint_addr_within_range): Likewise.
6658 (arm_linux_new_thread): Likewise.
6659 (arm_linux_thread_exit): Likewise.
6660 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6661 related target callbacks. Register arm_linux_new_thread and
6662 arm_linux_thread_exit.
6663 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6664 * arm-tdep.c (arm_pc_is_thumb): Make global.
6665 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6667 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6669 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6670 per-frame locations while within a function epilogue.
6672 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6674 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6675 to GNU coding standards.
6677 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6679 Allow use of mingw native on Windows 95 OS.
6680 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6681 (ser_windows_close): Only call CancelIo if function exists.
6682 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6683 to check for existence of CancelIo function in kernel32 DLL.
6685 2011-02-21 Hui Zhu <teawater@gmail.com>
6687 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6688 * ax-gdb.c (gen_printf_expr_callback): New function.
6689 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6690 * ax-general.c (ax_memcpy): New function.
6691 (ax_print): Handle "printf".
6693 * ax.h (ax_memcpy): Forward declare.
6694 * common/ax.def (invalid2): Removed.
6695 (printf): New entry.
6696 * printcmd.c (printcmd.h): New include.
6697 (string_printf): New function.
6698 (ui_printf): Removed.
6699 (printf_command): Remove static. Call string_printf.
6700 (eval_command): Call string_printf.
6701 * printcmd.h: New file.
6702 * tracepoint.c (validate_actionline,
6703 encode_actions_1): handle printf_command.
6705 2011-02-19 Michael Snyder <msnyder@vmware.com>
6707 * reverse.c (delete_one_bookmark): Argument is now bookmark
6708 id rather than pointer to bookmark struct.
6709 (delete_bookmark_command): Use get_number_or_range.
6710 (goto_bookmark_command): Parse with get_number instead of strtoul.
6711 (bookmark_1): New function. Print info for one bookmark.
6712 (bookmarks_info): Use get_number_or_range and bookmark_1.
6714 2011-02-18 Michael Snyder <msnyder@vmware.com>
6716 * thread.c (info_threads_command): Re-implement using
6717 get_number_or_range.
6718 (thread_apply_command): Ditto.
6720 2011-02-18 Tom Tromey <tromey@redhat.com>
6722 * common/ax.def: New file.
6723 * ax.h (enum agent_op): Use ax.def.
6724 * ax-general.c (aop_map): Use ax.def.
6726 2011-02-18 Tom Tromey <tromey@redhat.com>
6728 * ax-general.c (aop_map): Add pick and rot.
6729 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6730 <DW_OP_rot>: Implement.
6731 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6733 * ax-general.c (ax_pick): New function.
6735 2011-02-18 Tom Tromey <tromey@redhat.com>
6737 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6739 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6740 Tom Tromey <tromey@redhat.com>
6742 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6743 make_symbol_overload_list_block with NULL BLOCK.
6744 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6746 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6748 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6749 * breakpoint.h (get_number_or_range): Declare.
6750 * printcmd.c (ALL_DISPLAYS): Declare.
6751 (delete_display): Reimplement taking a display pointer.
6752 (undisplay_command): Accept a range of displays to delete, using
6753 get_number_or_range.
6755 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6757 * c-valprint.c (c_val_print): Add embedded_offset to address
6758 for arrays of unspecified length.
6759 * p-valprint.c (pascal_val_print): Likewise.
6761 2011-02-18 Yao Qi <yao@codesourcery.com>
6763 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6764 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6765 (thumb_process_displaced_insn): New.
6766 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6767 call to arm_process_displaced_insn.
6768 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6770 2011-02-17 Tom Tromey <tromey@redhat.com>
6772 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6773 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6774 compile_dwarf_to_ax. No longer static. Call
6775 dwarf2_compile_cfa_to_ax.
6776 (locexpr_tracepoint_var_ref): Update.
6777 (loclist_tracepoint_var_ref): Update.
6778 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6779 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6780 argument; add 'gdbarch' and 'pc'.
6781 (dwarf2_compile_cfa_to_ax): New function.
6782 (dwarf2_frame_cache): Update.
6784 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6786 * ada-lang.c (ada_type_of_array): Fix the size of the array
6787 in the case of an unconstrained packed array.
6789 2011-02-17 Yao Qi <yao@codesourcery.com>
6791 * common/Makefile.in: Add more targets for make.
6793 2011-02-16 Tom Tromey <tromey@redhat.com>
6795 * dwarf2loc.c (unimplemented): Fix typo.
6797 2011-02-16 Tom Tromey <tromey@redhat.com>
6799 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6800 (compile_dwarf_to_ax) <default>: Use unimplemented.
6801 <DW_OP_deref>: Update.
6802 (disassemble_dwarf_expression): Update.
6803 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6804 (decode_locdesc): Update.
6805 * dwarf2expr.h (dwarf_stack_op_name): Update.
6807 2011-02-16 Tom Tromey <tromey@redhat.com>
6809 * ax.h (struct aop_map) <name>: Now const.
6811 2011-02-16 Tom Tromey <tromey@redhat.com>
6813 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6816 2011-02-16 Yao Qi <yao@codesourcery.com>
6818 * infrun.c (get_displaced_step_closure_by_addr): New.
6819 * inferior.h: Declare it.
6820 * arm-tdep.c: (arm_pc_is_thumb): Call
6821 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6824 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6825 Jan Kratochvil <jan.kratochvil@redhat.com>
6828 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6830 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6831 Jan Kratochvil <jan.kratochvil@redhat.com>
6833 * value.c (value_contents_copy_raw): Extend describing comment.
6834 Assert that the destination contents we're overwriting are wholly
6836 (value_contents_copy): Extend describing comment.
6838 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6839 Jan Kratochvil <jan.kratochvil@redhat.com>
6841 * value.c (value_available_contents_eq): Remove redundant local
6842 variables. Fix available contents comparision.
6843 * value.h (value_available_contents_eq): Extend describing
6846 2011-02-16 Yao Qi <yao@codesourcery.com>
6848 * thread.c (info_threads_command): Add missing i18n markup and remove
6851 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6853 * breakpoint.c (longjmp_names): New variable.
6854 (struct breakpoint_objfile_data): New type.
6855 (breakpoint_objfile_key): New variable.
6856 (msym_not_found): New variable.
6857 (msym_not_found_p): New predicate.
6858 (get_breakpoint_objfile_data): New function.
6859 (create_overlay_event_breakpoint): Check per-objfile cache for
6861 (create_longjmp_master_breakpoint): Likewise.
6862 (create_std_terminate_master_breakpoint): Likewise.
6863 (create_exception_master_breakpoint): Likewise.
6864 (_initialize_breakpoint): Register per-objfile data key.
6866 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6868 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6870 (create_longjmp_master_breakpoint): Loop over longjmp names.
6871 (create_std_terminate_master_breakpoint): Const-propagate parameter
6873 (update_breakpoints_after_exec): Adjust.
6874 (breakpoint_re_set): Adjust.
6876 2011-02-15 Michael Snyder <msnyder@vmware.com>
6878 * thread.c (info_threads_command): Process arg as thread id,
6879 or list of thread ids.
6880 (thread_find_command): New command.
6881 (_initialize_thread): Document argument for info threads.
6882 Document 'thread find' command.
6883 * NEWS: Document new command "thread find".
6885 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6887 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6888 * aclocal.m4: Regenerated with aclocal-1.11.1.
6889 * common/configure: Regenerate with autoconf-2.64.
6891 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6893 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6894 bool data type to a size of one byte.
6896 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6897 Jan Kratochvil <jan.kratochvil@redhat.com>
6899 * target.c (memory_xfer_live_readonly_partial): Document where to
6900 look for interface description.
6902 2011-02-15 Yao Qi <yao@codesourcery.com>
6905 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6906 order to store PC value on stack instead of text section.
6908 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6910 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6911 the EFP register set size.
6912 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6913 data from the VMX register.
6914 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6915 and write data from/to the VMX register.
6917 2011-02-14 Michael Snyder <msnyder@vmware.com>
6919 * command.h (enum command_class): New class 'no_set_class', for
6920 "show" commands without a corresponding "set" command.
6921 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6922 * copying.c (_initialize_copying): Ditto for "show copying" and
6924 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6926 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6927 which there is no corresponding "set" command (eg. "show copying").
6929 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6930 Jan Kratochvil <jan.kratochvil@redhat.com>
6932 * exec.c (section_table_available_memory): Change `len' parameter
6934 * exec.h (section_table_available_memory): Ditto.
6935 * value.h (read_value_memory): Rename the `offset' parameter to
6938 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6939 Jan Kratochvil <jan.kratochvil@redhat.com>
6941 * memrange.c (compare_mem_ranges): Mention sort order in
6943 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6944 * tracepoint.c (traceframe_available_memory): Extend comment to
6945 mention what happens to RESULT when the target does not support
6948 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6949 Jan Kratochvil <jan.kratochvil@redhat.com>
6951 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6954 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6956 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6957 No longer handle NULL values.
6959 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6961 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6962 * value.c: Include "exceptions.h".
6963 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6965 * cp-abi.c: Include gdb_assert.h.
6966 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6967 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6969 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6970 parameters. No longer returns -1 on error.
6971 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6973 * cp-valprint.c: Include exceptions.h.
6974 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6975 the baseclass_offset. Handle unavailable base classes. Use
6976 val_print_invalid_address.
6977 * p-valprint.c: Include exceptions.h.
6978 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6979 when fetching the baseclass_offset. No longer expect
6980 baseclass_offset returning -1. Handle unavailable base classes.
6981 Use val_print_invalid_address.
6982 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6983 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6984 `embedded_offset' and `val' parameters. Adjust.
6985 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6986 parameter, and change its type to gdb_byte pointer. Add
6987 `embedded_offset' and `val' parameters. Adjust. No longer expect
6988 baseclass_offset returning -1.
6989 (value_dynamic_cast): Use value_contents_for_printing rather than
6990 value_contents. Adjust.
6991 (search_struct_field): No longer expect baseclass_offset returning
6993 (search_struct_method): If reading memory from the target is
6994 necessary, wrap it in a new value to pass to baseclass_offset. No
6995 longer expect baseclass_offset returning -1.
6996 (find_method_list): No longer expect baseclass_offset returning
6997 -1. Use value_contents_for_printing rather than value_contents.
6998 * valprint.c (val_print_invalid_address): New function.
6999 * valprint.h (val_print_invalid_address): Declare.
7000 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7001 and `val' parameters. No longer expect baseclass_offset returning
7003 * gnu-v2-abi.c: Include "exceptions.h".
7004 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7005 parameters. Handle unavailable memory. Recurse through
7006 gnuv2_baseclass_offset directly, rather than through
7007 baseclass_offset. No longer returns -1 on not found, instead
7009 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7010 `val' parameters. Adjust.
7012 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7014 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7015 almost but not quite adjacent.
7017 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7019 * value.h (value_entirely_available): Declare.
7020 * value.c (value_entirely_available): New function.
7021 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7022 real type if the pointer is unavailable.
7024 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7026 * valops.c (value_repeat): Use read_value_memory instead of
7029 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7031 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7032 * value.c (value_contents_copy_raw, value_contents_copy): New
7034 (value_primitive_field): Use value_contents_copy_raw instead of
7036 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7038 (value_array, value_slice): Ditto.
7039 * valarith.c (value_subscripted_rvalue): Use
7040 value_contents_copy_raw instead of memcpy.
7042 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7044 <unavailable> references.
7046 * valops.c (get_value_at): Use value_from_contents_and_address,
7047 avoiding read_memory.
7049 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7051 * c-valprint.c (c_val_print): Print a string with unavailable
7052 contents as an array.
7054 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7056 * value.h (unpack_bits_as_long): Delete declaration.
7057 (unpack_value_bits_as_long): Declare.
7058 (unpack_value_field_as_long): Declare.
7059 (value_field_bitfield): Declare.
7060 * value.c (unpack_bits_as_long): Rename to...
7061 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7062 value parameters. Return the extracted result in a new output
7063 parameter. If the value contents are unavailable, return false,
7064 otherwise return true.
7065 (unpack_value_bits_as_long): New.
7066 (unpack_field_as_long): Rename to...
7067 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7068 Add embedded_offset and value parameters. Return the extracted
7069 result in a new output parameter. If the value contents are
7070 unavailable, return false, otherwise return true.
7071 (unpack_value_field_as_long): New.
7072 (unpack_field_as_long_1): New.
7073 (unpack_field_as_long): Reimplement as wrapper around
7074 unpack_value_field_as_long_1.
7075 (value_field_bitfield): New function.
7076 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7077 unpack_value_bits_as_long. Mark the value as unavailable, if it
7079 * jv-valprint.c (java_print_value_fields): Use
7080 value_field_bitfield.
7081 * p-valprint.c (pascal_object_print_value_fields): Use
7082 value_field_bitfield.
7083 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7085 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7087 * value.c (get_internalvar_integer): Also return the int value of
7088 TYPE_CODE_INT INTERNALVAR_VALUE values.
7089 (set_internalvar): Don't special case TYPE_CODE_INT.
7091 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7093 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7094 INTERNALVAR_POINTER.
7096 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7097 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7098 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7100 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7102 * value.h (value_available_contents_eq): Declare.
7103 * value.c (find_first_range_overlap): New function.
7104 (value_available_contents_eq): New function.
7105 * valprint.c (val_print_array_elements): Use
7106 value_available_contents_eq.
7107 * ada-valprint.c (val_print_packed_array_elements): Use
7108 value_available_contents_eq.
7109 * jv-valprint.c (java_value_print): Use
7110 value_available_contents_eq.
7112 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7114 * target.c (target_read_live_memory): New function.
7115 (memory_xfer_live_readonly_partial): New.
7116 (memory_xfer_partial): If reading from a traceframe, fallback to
7117 reading unavailable read-only memory from read-only regions of
7119 * tracepoint.c (disconnect_tracing): Adjust.
7120 (set_current_traceframe): New, factored out from
7121 set_traceframe_number.
7122 (set_traceframe_number): Reimplement to only change the traceframe
7123 number on the GDB side.
7124 (do_restore_current_traceframe_cleanup): Adjust.
7125 (make_cleanup_restore_traceframe_number): New.
7126 (cur_traceframe_number): New global.
7127 (tfile_open): Set cur_traceframe_number to no traceframe.
7128 (set_tfile_traceframe): New function.
7129 (tfile_trace_find): If looking up a traceframe using any method
7130 other than by number, make sure the current tfile traceframe
7131 matches gdb's current traceframe. Update the current tfile
7132 traceframe if the lookup succeeded.
7133 (tfile_fetch_registers, tfile_xfer_partial)
7134 (tfile_get_trace_state_variable_value): Make sure the remote
7135 traceframe matches gdb's current traceframe.
7136 * remote.c (remote_traceframe_number): New global.
7137 (remote_open_1): Set it to -1.
7138 (set_remote_traceframe): New function.
7139 (remote_fetch_registers, remote_store_registers)
7140 (remote_xfer_memory, remote_xfer_partial)
7141 (remote_get_trace_state_variable_value): Make sure the remote
7142 traceframe matches gdb's current traceframe.
7143 (remote_trace_find): If looking up a traceframe using any method
7144 other than by number, make sure the current remote traceframe
7145 matches gdb's current traceframe. Update the current remote
7146 traceframe if the lookup succeeded.
7147 * infrun.c (fetch_inferior_event): Adjust.
7148 * tracepoint.h (set_current_traceframe): Declare.
7149 (get_traceframe_number, set_traceframe_number): Add describing
7152 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7154 Mark pieces of values as unavailable if the corresponding memory
7157 * valops.c: Include tracepoint.h.
7158 (value_fetch_lazy): Use read_value_memory.
7159 (read_value_memory): New.
7160 * value.h (read_value_memory): Declare.
7161 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7162 * exec.c (section_table_available_memory): New function.
7163 * exec.h (section_table_available_memory): Declare.
7165 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7167 * Makefile.in (SFILES): Add memrange.c.
7168 (HFILES_NO_SRCDIR): Add memrange.h.
7169 (COMMON_OBS): Add memrange.o.
7170 * memrange.c: New file.
7171 * memrange.h: New file.
7172 * tracepoint.c: Include memrange.h.
7173 (struct mem_range): Delete.
7174 (mem_range_s): Delete.
7175 (traceframe_available_memory): New function.
7176 * tracepoint.h (traceframe_available_memory): Declare.
7178 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7180 * target.h (struct traceframe_info): Forward declare.
7181 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7182 (struct target_ops) <to_traceframe_info>: New field.
7183 (target_traceframe_info): New.
7184 * target.c (update_current_target): Inherit and default
7186 * remote.c (PACKET_qXfer_traceframe_info): New.
7187 (remote_protocol_features): Register qXfer:traceframe-info:read.
7188 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7189 (remote_traceframe_info): New.
7190 (init_remote_ops): Install it.
7191 (_initialize_remote): Install "set/show remote traceframe-info"
7193 * tracepoint.h (parse_traceframe_info): Declare.
7194 * tracepoint.c (struct mem_range): New.
7195 (mem_range_s): New typedef.
7196 (struct traceframe_info): New.
7197 (traceframe_info): New global.
7198 (free_traceframe_info): New function.
7199 (clear_traceframe_info): New function.
7200 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7202 (build_traceframe_info): New function.
7203 (tfile_traceframe_info): New function.
7204 (init_tfile_ops): Install tfile_traceframe_info.
7205 (traceframe_info_start_memory, free_result): New functions.
7206 (memory_attributes, traceframe_info_elements): New globals.
7207 (parse_traceframe_info, get_traceframe_info): New functions.
7208 * features/traceframe-info.dtd: New file.
7209 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7211 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7213 Base support for <unavailable> value contents.
7215 * value.h (value_bytes_available): Declare.
7216 (mark_value_bytes_unavailable): Declare.
7217 * value.c (struct range): New struct.
7218 (range_s): New typedef.
7219 (ranges_overlap): New function.
7220 (range_lessthan): New function.
7221 (ranges_contain_p): New function.
7222 (struct value) <unavailable>: New field.
7223 (value_bytes_available): New function.
7224 (mark_value_bytes_unavailable): New function.
7225 (require_not_optimized_out): Constify parameter.
7226 (require_available): New function.
7227 (value_contents_all, value_contents): Require all bytes be
7229 (value_free): Free `unavailable'.
7230 (value_copy): Copy `unavailable'.
7231 * valprint.h (val_print_unavailable): Declare.
7232 * valprint.c (valprint_check_validity): Rename `offset' parameter
7233 to `embedded_offset'. If printing a scalar, check whether the
7234 value chunk is available.
7235 (val_print_unavailable): New.
7236 (val_print_scalar_formatted): Check whether the value is
7238 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7239 pretty-printing unavailable values.
7241 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7243 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7244 * c-typeprint.c (c_type_print_args): Update the function comment. New
7245 variable param_type, initialize it. Remove const/volatile qualifiers
7246 for language_cplus and !show_artificial. Use param_type.
7248 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7250 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7251 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7252 * symtab.h (struct symtab) <next>: Comment extension.
7254 2011-02-12 Yao Qi <yao@codesourcery.com>
7256 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7258 2011-02-11 Yao Qi <yao@codesourcery.com>
7260 * common/Makefile.in: Add copyright header.
7262 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7264 * infrun.c (proceed): Move switching out and in of tfind mode from
7266 (fetch_inferior_event): ... to here.
7268 2011-02-11 Yao Qi <yao@codesourcery.com>
7270 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7272 * configure.ac: Add common to sub dir.
7273 * configure: Regenerate.
7275 2011-02-11 Yao Qi <yao@codesourcery.com>
7279 * common/Makefile.in: New.
7280 * common/configure.ac: New.
7281 * common/aclocal.m4: New.
7282 * common/configure: Generate.
7284 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7286 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7287 side of the parenthesis.
7290 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7291 * vec.h (VEC_block_remove): Fix comment.
7293 2011-02-08 Michael Snyder <msnyder@vmware.com>
7295 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7297 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7299 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7300 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7303 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7306 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7308 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7309 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7311 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7313 * dwarf2read.c (read_subroutine_type): Set special calling
7314 convention flag for functions compiled by IBM XL C for OpenCL.
7315 * ppc-sysv-tdep.c: Include "dwarf2.h"
7316 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7318 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7319 IBM OpenCL vector types calling convention.
7320 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7321 (ppc_sysv_abi_broken_return_value): Likewise.
7322 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7323 types calling convention.
7324 (ppc64_sysv_abi_return_value): Likewise.
7325 * spu-tdep.c: Include "dwarf2.h"
7326 (spu_return_value): Implement IBM OpenCL vector types calling
7329 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7331 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7332 correct ABI for AltiVec vector arguments.
7334 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7336 * valprint.c (val_print): Extend comment.
7337 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7338 interface explanation to val_print.
7339 (ada_val_print_array): Adjust comment to current interface.
7340 (print_field_values): Adjust comment to current interface.
7341 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7342 explanation to val_print.
7343 * f-valprint.c (f_val_print): Ditto.
7344 * jv-valprint.c (java_val_print): Ditto.
7345 * m2-valprint.c (m2_val_print): Ditto.
7346 * p-valprint.c (pascal_val_print): Ditto.
7348 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7350 * breakpoint.c (parse_breakpoint_sals): Fix description.
7352 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7353 Oguz Kayral <oguzkayral@gmail.com>
7355 * python/py-inferior.c (python_on_normal_stop): New function.
7356 (python_on_resume): New function.
7357 (python_inferior_exit): New function.
7358 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7359 inferior_exit observers.
7360 * python/py-evtregistry.c: New file.
7361 * python/py-threadevent.c : New file.
7362 * python/py-event.c: New file.
7363 * python/py-evts.c: New file.
7364 * python/py-continueevent.c: New file.
7365 * python/py-bpevent.c: New file.
7366 * python/py-signalevent.c: New file.
7367 * python/py-exetiedevent.c: New file.
7368 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7369 Move struct breakpoint_object from here...
7370 * python/python-internal.h: ... to here.
7371 * python/py-event.h: New file.
7372 * python/py-events.h: New file.
7373 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7374 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7375 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7376 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7377 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7378 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7379 Add build rules for all the above.
7381 2011-02-04 Tom Tromey <tromey@redhat.com>
7383 * dwarf2read.c (dwarf2_section_empty_p): New function.
7384 (dwarf2_read_section): Use dwarf2_section_empty_p.
7385 (dwarf2_section_size): New function.
7386 (dwarf2_get_section_info): Unconditionally read section.
7387 (dwarf2_read_index): Use dwarf2_section_empty_p.
7388 (partial_read_comp_unit_head): Use dwarf2_section_size.
7389 (dwarf2_symbol_mark_computed): Likewise.
7391 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7393 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7395 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7397 * mips-linux-tdep.c: Include xml-syscall.h.
7398 (mips_linux_get_syscall_number): New function.
7399 (mips_linux_init_abi): Add calls to
7400 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7401 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7402 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7403 * syscalls/mips-n32-linux.xml: New file.
7404 * syscalls/mips-n64-linux.xml: New file.
7405 * syscalls/mips-o32-linux.xml: New file.
7407 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7409 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7410 Complain about inverted range entries.
7411 (dwarf2_record_block_ranges): Likewise.
7413 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7416 * breakpoint.c (update_watchpoint): Fix name of the
7417 update_global_location_list function.
7418 (print_one_breakpoint): Fix typo.
7419 (_initialize_breakpoint): Remove extra space in hbreak help
7421 * breakpoint.h (struct bp_location) <length>: Fix field
7424 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7426 * regcache.c (registers_changed_ptid): Don't explictly always
7427 clear `current_regcache'. Only clear current_thread_ptid and
7428 current_thread_arch when PTID matches. Only reinit the frame
7429 cache if PTID matches the current inferior_ptid. Move alloca(0)
7431 (registers_changed): ... here.
7433 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7435 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7436 starts with __stack_chk_guard as stack guard symbol.
7438 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7440 * disasm.c (compare_lines): Handle the end of sequence markers
7441 within the line table to better support disassembling over
7442 compilation unit boundaries.
7444 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7446 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7447 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7448 implementation even if no symbols are available.
7449 (thumb_analyze_prologue): Update call to skip_prologue_function.
7450 (arm_analyze_prologue): Likewise.
7452 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7454 * arm-tdep.c: Include "observer.h".
7455 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7456 (arm_exidx_data_key): New static variable.
7457 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7458 (struct arm_exidx_data): Likewise.
7459 (arm_exidx_data_free): New function.
7460 (arm_compare_exidx_entries): Likewise.
7461 (arm_obj_section_from_vma): Likewise.
7462 (arm_exidx_new_objfile): Likewise.
7463 (arm_find_exidx_entry): Likewise.
7464 (arm_exidx_fill_cache): Likewise.
7465 (arm_exidx_unwind_sniffer): Likewise.
7466 (arm_exidx_unwind): New global variable.
7467 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7468 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7469 observer. Register arm_exidx_data_key as objfile data.
7471 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7473 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7474 due to accessing uninitialized variable. Fix indentation.
7476 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7478 * c-valprint.c (c_value_print): When doing virtual base pointer
7479 adjustment, create a new value with adjusted contents rather than
7480 changing the contents of the value being printed (and getting it
7483 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7485 * xml-support.c (xml_find_attribute): New.
7486 (xinclude_start_include): Use it.
7487 * xml-support.h (xml_find_attribute): Declare.
7488 * memory-map.c (memory_map_start_memory)
7489 (memory_map_start_property): Use xml_find_attribute.
7490 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7492 * remote.c (start_thread): Use xml_find_attribute.
7493 * solib-target.c (library_list_start_segment)
7494 (library_list_start_section, library_list_start_library)
7495 (library_list_start_list): Use xml_find_attribute.
7496 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7497 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7498 (tdesc_start_field): Use xml_find_attribute.
7500 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7502 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7503 (BUILD_OCL_VTYPES): Update.
7505 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7507 * configure.ac: Work around non-GNU sed limitation when computing
7508 python version number.
7509 * configure: Regenerate.
7511 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7513 Fix debug printing of TYPE_INSTANCE.
7514 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7515 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7517 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7519 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7520 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7521 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7522 * ada-operator.inc: Rename the file to ...
7523 * ada-operator.def: ... here, wrap all the entries by macro OP.
7524 * expprint.c (op_name_standard): Remove all the entries. Include
7525 "std-operator.def" instead.
7526 * expression.h (enum exp_opcode): Include "std-operator.def" and
7527 "ada-operator.def". Move all the entries ...
7528 * std-operator.def: ... here, wrap all the entries by macro OP.
7530 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7532 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7533 * breakpoint.c (remove_jit_event_breakpoints): New function.
7534 * jit.c (jit_descriptor_addr): Delete.
7535 (registering_code): Delete.
7536 (clear_int): Delete.
7537 (jit_inferior_data): New variable.
7538 (struct jit_inferior_data): New type.
7539 (get_jit_inferior_data): New function.
7540 (jit_inferior_data_cleanup): New function.
7541 (jit_read_descriptor): Adjust.
7542 (jit_register_code): Adjust.
7543 (jit_breakpoint_re_set_internal): New function; move code here ...
7544 (jit_inferior_init): ... from here.
7545 (jit_breakpoint_re_set): Adjust.
7546 (jit_reset_inferior_data_and_breakpoints): New function.
7547 (jit_inferior_created_observer): Adjust.
7548 (jit_inferior_exit_hook): Adjust.
7549 (jit_executable_changed_observer): New function.
7550 (jit_event_handler): Adjust.
7551 (_initialize_jit): Adjust.
7553 2011-01-31 Michael Snyder <msnyder@vmware.com>
7555 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7558 2011-01-31 Tom Tromey <tromey@redhat.com>
7561 * python/python.c (execute_gdb_command): Call
7562 prevent_dont_repeat.
7563 * top.c (suppress_dont_repeat): New global.
7564 (dont_repeat): Use it.
7565 (prevent_dont_repeat): New function.
7566 * command.h (prevent_dont_repeat): Declare.
7568 2011-01-31 Tom Tromey <tromey@redhat.com>
7570 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7571 * python/py-breakpoint.c (bppy_set_silent): Use
7572 breakpoint_set_silent.
7573 (bppy_set_thread): Use breakpoint_set_thread.
7574 (bppy_set_task): Use breakpoint_set_task.
7575 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7576 (breakpoint_set_task): Declare.
7577 (make_breakpoint_silent): Remove.
7578 * breakpoint.c (breakpoint_set_silent): New function.
7579 (breakpoint_set_thread): Likewise.
7580 (breakpoint_set_task): Likewise.
7581 (make_breakpoint_silent): Remove.
7583 2011-01-31 Tom Tromey <tromey@redhat.com>
7585 * breakpoint.h (user_breakpoint_p): Declare.
7586 * breakpoint.c (user_breakpoint_p): New function.
7587 (breakpoint_1): Use it.
7588 (save_breakpoints): Likewise.
7590 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7592 * configure.ac: Add handling of Python distribution on Windows.
7593 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7594 sysconfig variables are not defined, then do not use them.
7595 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7596 instead. On Windows, return all paths using forward-slashes
7597 rather than backslashes.
7599 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7601 * configure.ac: Remove fallback behavior for building
7602 against Python. Remove tweaking of Python include path.
7603 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7604 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7605 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7606 Always restore CPPFLAGS and LIBS after linking test.
7607 * configure: Regenerated.
7608 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7609 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7610 * python/python-internal.h: Adjust includes of Python .h files.
7612 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7614 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7617 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7619 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7622 2011-01-31 Yao Qi <yao@codesourcery.com>
7624 * arm-linux-nat.c: Update calls to regcache_register_status
7625 instead of regcache_valid_p.
7626 * aix-thread.c: Likewise.
7627 * i386gnu-nat.c: Likewise.
7629 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7632 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7633 touching TYPE_FIELD_ARTIFICIAL.
7635 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7637 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7640 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7642 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7643 selected, don't try iterating over the traceframe's blocks.
7644 (tfile_has_stack): If there's no traceframe selected, then there's
7646 (tfile_has_registers): If there's no traceframe selected, then
7647 there's no registers.
7649 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7651 * target.c (memory_xfer_partial): No need to restore shadows if we
7652 haven't read anything.
7654 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7656 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7657 and val_print_scalar_formatted.
7659 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7661 * tracepoint.c (tfile_read): New.
7662 (tfile_open): Use it.
7663 (tfile_get_traceframe_address): Use it.
7664 (tfile_trace_find): Use it.
7665 (walk_blocks_callback_func): New typedef.
7666 (match_blocktype): New function.
7667 (traceframe_walk_blocks): New function.
7668 (traceframe_find_block_type): New function.
7669 (tfile_fetch_registers, tfile_xfer_partial)
7670 (tfile_get_trace_state_variable_value): Use
7671 traceframe_find_block_type and tfile_read.
7673 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7675 * remote-mips.c: Add internationalization mark ups. Remove
7676 trailing \n from already marked up strings.
7678 2011-01-26 Tom Tromey <tromey@redhat.com>
7680 * python/py-prettyprint.c (print_string_repr): Clear
7681 'addressprint' option when calling val_print_string.
7682 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7683 option when calling val_print_string.
7685 2011-01-26 Tom Tromey <tromey@redhat.com>
7687 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7689 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7691 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7692 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7693 (gdb_py_long_as_ulongest): New defines.
7694 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7695 (gdb_py_int_as_long): Declare.
7696 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7697 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7698 (valpy_long): Add comment.
7699 * python/py-utils.c (get_addr_from_python): Use
7700 gdb_py_long_as_ulongest. Handle overflow properly.
7701 (gdb_py_object_from_longest): New function.
7702 (gdb_py_object_from_ulongest): Likewise.
7703 (gdb_py_int_as_long): Likewise.
7704 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7705 * python/py-symtab.c (salpy_get_pc): Use
7706 gdb_py_long_from_ulongest.
7707 (salpy_get_line): Use PyInt_FromLong.
7708 * python/py-param.c (set_parameter_value): Use
7710 * python/py-lazy-string.c (stpy_get_address): Use
7711 gdb_py_long_from_ulongest.
7712 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7713 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7714 * python/py-breakpoint.c (bppy_set_thread): Use
7716 (bppy_set_task): Likewise.
7717 (bppy_set_ignore_count): Likewise.
7718 (bppy_set_hit_count): Likewise.
7719 * python/py-block.c (blpy_get_start): Use
7720 gdb_py_object_from_ulongest.
7721 (blpy_get_end): Likewise.
7722 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7724 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7727 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7728 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7729 equality test for objfile, initialize addr_low if needed.
7731 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7733 * tui/tui-regs.c (tui_register_format): Remove dead code.
7735 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7737 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7738 instead of print_scalar_formatted.
7739 (print_scalar_formatted): Don't handle 's' format strings here,
7740 and add an assertion that we never see such format here.
7741 * valprint.h (val_print_scalar_formatted): Declare.
7742 * valprint.c (val_print_scalar_formatted): New.
7743 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7744 instead of print_scalar_formatted.
7745 * jv-valprint.c (java_val_print): Ditto.
7746 * p-valprint.c (pascal_val_print): Ditto.
7747 * ada-valprint.c (ada_val_print_1): Ditto.
7748 * f-valprint.c (f_val_print): Ditto.
7749 * infcmd.c (registers_info): Ditto.
7750 * m2-valprint.c (m2_val_print): Ditto.
7752 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7754 * m2-valprint.c (print_unbounded_array): Pass
7755 value_contents_for_printing rather than value_contents, to
7756 m2_print_array_contents. Also pass in the value.
7758 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7760 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7761 (save_gdb_index_command): Switch to .gdb_index version 4.
7763 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7765 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7766 than frame_register, and always pass a valid value to val_print.
7768 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7770 Centralize printing "<optimized out>".
7772 * valprint.h (val_print_optimized_out): Declare.
7773 * cp-valprint.c (cp_print_value_fields): Use
7774 val_print_optimized_out.
7775 * jv-valprint.c (java_print_value_fields): Ditto.
7776 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7777 * printcmd.c (print_formatted): Ditto.
7778 * valprint.c (valprint_check_validity): Ditto.
7779 (value_check_printable): Ditto.
7780 (val_print_optimized_out): New.
7782 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7784 * infcmd.c (default_print_registers_info): Allocate values so to
7785 never pass a NULL value to val_print.
7787 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7789 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7790 boolean. Make sure to always pass a value that matches the
7791 contents buffer to callees. Preserve `address' for following
7793 * value.c (value_contents_for_printing_const): New.
7794 (value_address): Constify value argument.
7795 * value.h (value_contents_for_printing_const): Declare.
7796 (value_address): Constify value argument.
7798 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7800 * regcache.c (struct regcache_descr): Rename
7801 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7802 and sizeof_cooked_register_valid_p to
7803 sizeof_cooked_register_status.
7804 (init_regcache_descr): Adjust.
7805 (struct regcache): Rename register_valid_p field to
7807 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7808 (do_cooked_read): Adjust.
7809 (regcache_valid_p): Rename to ...
7810 (regcache_register_status): ... this. Adjust.
7811 (regcache_invalidate): Adjust.
7812 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7814 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7815 as unavailable, not valid.
7816 (regcache_dump): Adjust.
7817 * regcache.h (enum register_status): New.
7818 (regcache_register_status): Declare.
7819 (regcache_invalidate): Delete declaration.
7820 * corelow.c (get_core_registers): Adjust.
7821 * tracepoint.c (tfile_fetch_registers): Adjust.
7822 * trad-frame.c (REG_VALUE): Rename to ...
7823 (TF_REG_VALUE): ... this.
7824 (REG_UNKNOWN): Rename to ...
7825 (TF_REG_UNKNOWN): ... this.
7826 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7827 * mi/mi-main.c (register_changed_p): Adjust.
7829 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7831 * regcache.c (struct regcache_descr): Remove outdated comment.
7832 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7834 (regcache_xmalloc): Rename to ...
7835 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7836 Allocate the regcache type accordingly.
7837 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7838 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7839 cooked registers, not raw.
7840 (regcache_dup_no_passthrough): Delete.
7841 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7842 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7843 mention obsolete write_register_bytes.
7844 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7846 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7848 Stop remote_read_bytes from handling partial reads itself.
7850 * remote-fileio.c: Include target.h.
7851 (remote_fileio_write_bytes): Delete.
7852 (remote_fileio_func_open, remote_fileio_func_write)
7853 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7855 (remote_fileio_func_stat): Use target_read_memory and
7856 target_write_memory.
7857 (remote_fileio_func_gettimeofday): Use target_write_memory.
7858 (remote_fileio_func_system): Use target_read_memory.
7859 * remote.c (remote_write_bytes): Make it static.
7860 (remote_read_bytes): Don't handle partial reads here.
7861 * remote.h (remote_read_bytes): Delete declaration.
7863 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7865 Simplify XML parsing a bit.
7867 * xml-support.h (gdb_xml_parse_quick): Declare.
7868 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7869 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7871 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7872 gdb_xml_create_parser_and_cleanup_1.
7873 (gdb_xml_parse_quick): New.
7874 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7875 * osdata.c (osdata_parse): Ditto.
7876 * remote.c (remote_threads_info): Ditto.
7877 * solib-target.c (solib_target_parse_libraries): Ditto.
7878 * xml-syscall.c (syscall_parse_xml): Ditto.
7879 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7881 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7883 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7884 with remote-mips.o added to gdb_target_obs.
7885 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7887 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7889 * ada-valprint.c (val_print_packed_array_elements): Pass the
7890 correct struct value to val_print.
7891 (ada_val_print_1): Ditto.
7893 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7895 Don't lose embedded_offset in printing routines throughout.
7897 * valprint.h (val_print_array_elements): Change prototype.
7898 * valprint.c (val_print_array_elements): Add `embedded_offset'
7899 parameter, and adjust to pass it down to val_print, while passing
7900 `valaddr' or `address' unmodified. Take embedded_offset into
7901 account when checking repetitions.
7902 * c-valprint.c (c_val_print): Pass embedded_offset to
7903 val_print_array_elements instead of adjusting `valaddr' and
7905 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7906 embedded_offset to val_print_array_elements instead of adjusting
7908 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7909 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7910 val_print_array_elements and pascal_object_print_value_fields
7911 instead of adjusting `valaddr'.
7912 (pascal_object_print_value_fields): Add `offset' parameter, and
7914 (pascal_object_print_value): Add `offset' parameter, and adjust to
7916 (pascal_object_print_static_field): Use
7917 value_contents_for_printing/value_embedded_offset, rather than
7919 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7920 parameter, and adjust to use it. Use
7921 value_contents_for_printing/value_embedded_offset, rather than
7923 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7924 (ada_val_print_array): Add `offset' parameter, and adjust to use
7926 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7927 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7928 Instead work with offsets. Use
7929 value_contents_for_printing/value_embedded_offset, rather than
7930 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7931 and use value_from_pointer to extract a target pointer, rather
7932 than value_from_longest.
7933 (print_variant_part): Add `offset' parameter. Replace
7934 `outer_valaddr' parameter by a new `outer_offset' parameter.
7935 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7936 (ada_value_print): Use
7937 value_contents_for_printing/value_embedded_offset, rather than
7939 (print_record): Add `offset' parameter, and adjust to pass it
7941 (print_field_values): Add `offset' parameter. Replace
7942 `outer_valaddr' parameter by a new `outer_offset' parameter.
7943 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7944 Use value_contents_for_printing/value_embedded_offset, rather than
7946 * d-valprint.c (dynamic_array_type): Use
7947 value_contents_for_printing/value_embedded_offset, rather than
7949 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7950 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7951 (java_print_value_fields): Take `offset' into account. Don't
7952 re-adjust `valaddr'. Instead pass down adjusted offsets.
7953 (java_val_print): Take `embedded_offset' into account. Pass it to
7954 java_print_value_fields.
7955 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7956 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7957 down adjusted offsets.
7958 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7959 (f_val_print): Take `embedded_offset' into account.
7961 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7963 * inflow.c: Include "gdbcmd.h".
7964 (interactive_mode): New static global, moved here from top.c.
7965 (show_interactive_mode): New function, moved here from top.c.
7966 use gdb_has_a_terminal instead of input_from_terminal_p to
7967 determine the current mode.
7968 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7970 (_initialize_inflow): Add the "set/show interactive-mode"
7971 commands. Moved here from top.c, after having adjusted slightly
7973 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7975 (input_from_terminal_p): Remove handling of "interactive-mode"
7976 setting, moved to infow.c.
7977 (init_main): Remove creation of the "set/show interactive-mode"
7978 commands, moved to inflow.c.
7980 2011-01-19 Joel Brobecker <brobecker@adacore.com>
7982 * NEWS: Add entry for native ia64-hpux support.
7984 2011-01-19 Tom Tromey <tromey@redhat.com>
7987 * thread.c (free_thread): Free 'name'.
7988 (print_thread_info): Emit thread name. Change CLI output.
7989 (thread_name_command): New function.
7990 (do_captured_thread_select): Emit newline.
7991 (_initialize_thread): Register 'thread name' command.
7992 * target.h (struct target_ops) <to_thread_name>: New field.
7993 (target_thread_name): New macro.
7994 * target.c (update_current_target): Handle to_thread_name.
7995 * python/py-infthread.c (thpy_get_name): New function.
7996 (thpy_set_name): Likewise.
7997 (thread_object_getset): Add "name".
7998 * linux-nat.c (linux_nat_thread_name): New function.
7999 (linux_nat_add_target): Set to_thread_name.
8000 * gdbthread.h (struct thread_info) <name>: New field.
8002 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8004 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8005 (ada_val_print_1): Likewise.
8007 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8009 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8010 upper limit address is not greater than the function end address
8011 when the upper limit could not be computed using the debugging
8014 2011-01-17 Tom Tromey <tromey@redhat.com>
8016 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8018 * utils.c: Include gdb_regex.h.
8019 (do_regfree_cleanup): New function.
8020 (make_regfree_cleanup): Likewise.
8021 (get_regcomp_error): Likewise.
8022 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8024 2011-01-17 Tom Tromey <tromey@redhat.com>
8026 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8029 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8031 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8032 for internal variables.
8033 (last_was_structop): New static variable.
8034 (COMPLETE): New token.
8035 (field_exp): New rule to group all '.' suffix handling.
8036 Add mark_struct_expression calls when approriate to be able
8037 to correctly find fields for completion.
8038 (yylex): Adapt to handle field completion and set INTVAR when
8041 2011-01-14 Yao Qi <yao@codesourcery.com>
8043 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8044 save_reggroup, restore_reggroup and all_reggroup.
8046 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8048 * ada-valprint. (ada_printchar): Use the correct type length
8049 in call to ada_emit_char.
8050 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8052 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8054 * solib-som.h (hpux_major_release): Declare variable here.
8055 * solib-som.c: Remove <sys/utsname.h> header.
8056 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8057 (hpux_major_release): Make global, change default value to
8058 DEFAULT_HPUX_MAJOR_RELEASE.
8059 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8060 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8061 Add "solib-som.h" header.
8062 (set_hpux_major_release): New function.
8063 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8065 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8067 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8069 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8071 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8072 new-line at end of warning message.
8073 (ia64_hpux_store_register): Remove trailing new-line at end of
8075 * ia64-hpux-tdep.c: Rephrase comment.
8076 * solib-ia64-hpux.c (struct dld_info): Change type of field
8077 dld_flags from "long long" to ULONGEST.
8079 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8081 * target.h (deprecated_child_ops): Delete declaration.
8082 * target.c (deprecated_child_ops): Delete definition.
8084 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8086 * Makefile.in (hpux-thread.o): Delete rule.
8087 * configure.ac: Don't check for HPUX DCE threads support.
8088 * configure, config.in: Regenerate.
8089 * hppa-hpux-nat.c (child_suppress_run): Delete.
8090 (hppa_hpux_child_can_run): Delete.
8091 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8092 * hpux-thread.c: Delete.
8094 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8096 * hpux-thread.c (hpux_pid_to_str): Delete.
8098 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8100 * ada-valprint.c (ada_emit_char): Remove strange code.
8101 Check that c is <= UCHAR_MAX before passing it to isascii.
8102 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8104 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8106 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8107 to the case where instream is stdin.
8109 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8111 * ia64-tdep.h (struct regcache): Forward declare.
8112 (struct ia64_infcall_ops): New struct type.
8113 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8115 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8116 Renames ia64_find_global_pointer.
8117 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8118 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8119 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8121 (ia64_infcall_ops): New static global constant.
8122 (ia64_gdbarch_init): Set tdep->infcall_ops.
8123 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8124 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8125 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8126 (ia64_hpux_dummy_code): New static global constant.
8127 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8128 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8129 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8131 (ia64_hpux_infcall_ops): New static global constant.
8132 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8133 for inferior function calls to work properly on ia64-hpux.
8135 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8137 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8138 * ia64-tdep.h (struct frame_info): forward declaration.
8139 (struct gdbarch_tdep): Add field size_of_register_frame.
8140 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8141 to determine the size of the register frame.
8142 (ia64_size_of_register_frame): New function.
8143 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8144 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8145 (IA64_HPUX_UREG_REASON): New macro.
8146 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8148 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8149 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8150 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8153 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8155 Add support for ia64-hpux.
8156 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8157 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8159 * configure.host: Add handling for ia64-hpux hosts. Add associated
8161 * configure.tgt: Add handling for ia64-hpux targets.
8162 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8163 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8164 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8166 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8168 [ttrace] Compute thread list immediately after attach.
8169 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8171 (inf_ttrace_attach): Use it.
8173 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8175 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8176 if we could not determine the frame's function address. Instead,
8177 use the frame's PC, and then continue.
8179 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8181 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8182 not already defined.
8184 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8186 * ia64-tdep.c (ia64_struct_type_p): New function.
8187 (ia64_extract_return_value): Handle integral values that are
8188 less than 8 bytes long.
8189 (ia64_push_dummy_call): Likewise.
8191 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8193 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8194 floatformat_ia64_ext.
8195 (floatformat_ia64_ext_big): New static const.
8196 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8198 2011-01-12 Tom Tromey <tromey@redhat.com>
8200 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8202 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8203 (mi_cmd_thread_list_ids): Likewise.
8204 (mi_cmd_data_list_changed_registers): Likewise.
8205 (mi_cmd_data_list_register_values): Likewise.
8206 (mi_cmd_data_write_register_values): Likewise.
8207 (mi_cmd_data_evaluate_expression): Likewise.
8208 (mi_cmd_data_read_memory): Likewise.
8209 (mi_cmd_data_read_memory_bytes): Likewise.
8210 (mi_cmd_data_write_memory): Likewise.
8211 (mi_cmd_enable_timings): Likewise.
8212 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8213 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8214 (mi_cmd_var_delete): Likewise.
8215 (mi_cmd_var_set_format): Likewise.
8216 (mi_cmd_var_show_format): Likewise.
8217 (mi_cmd_var_info_num_children): Likewise.
8218 (mi_cmd_var_list_children): Likewise.
8219 (mi_cmd_var_info_type): Likewise.
8220 (mi_cmd_var_info_expression): Likewise.
8221 (mi_cmd_var_show_attributes): Likewise.
8222 (mi_cmd_var_assign): Likewise.
8223 (mi_cmd_var_update): Likewise.
8224 (mi_cmd_enable_pretty_printing): Likewise.
8225 (mi_cmd_var_set_update_range): Likewise.
8226 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8228 (mi_cmd_target_file_put): Likewise.
8229 (mi_cmd_target_file_delete): Likewise.
8230 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8232 (mi_cmd_stack_info_depth): Likewise.
8233 (mi_cmd_stack_list_locals): Likewise.
8234 (mi_cmd_stack_list_args): Likewise.
8235 (mi_cmd_stack_select_frame): Likewise.
8236 (mi_cmd_stack_select_frame): Likewise.
8237 (mi_cmd_stack_info_frame): Likewise.
8238 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8240 (mi_cmd_file_list_exec_source_files): Likewise.
8241 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8242 (mi_cmd_env_cd): Likewise.
8243 (mi_cmd_env_path): Likewise.
8244 (mi_cmd_env_dir): Likewise.
8245 (mi_cmd_inferior_tty_show): Likewise.
8246 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8247 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8248 (mi_cmd_break_watch): Likewise.
8250 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8252 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8253 (ppc_linux_insert_hw_breakpoint): Likewise.
8254 (ppc_linux_remove_hw_breakpoint): Likewise.
8255 (ppc_linux_insert_watchpoint): Likewise.
8257 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8258 Jan Kratochvil <jan.kratochvil@redhat.com>
8260 PR fortran/11104 and DWARF unbound arrays detection.
8261 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8262 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8263 unspecified upper bound.
8264 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8265 variables array_size_array, tmp_type and offset_item. New variable
8266 array. Remove call to f77_get_upperbound. New variables array_type
8267 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8268 the final call to deprecated_set_value_type.
8270 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8272 Make value allocations more lazy.
8273 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8274 instead of allocate_value and set_value_lazy when possible.
8275 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8276 instead of allocate_value and set_value_lazy.
8277 * findvar.c (value_of_register_lazy): Likewise.
8278 (read_var_value): Remove V preallocation, call just check_typedef in
8279 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8280 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8281 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8282 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8283 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8284 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8285 the end, remove set_value_lazy there.
8286 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8287 instead of allocate_value and set_value_lazy when possible.
8288 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8289 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8290 of allocate_value and set_value_lazy.
8291 (value_from_contents_and_address): Use allocate_value_lazy instead of
8292 allocate_value and set_value_lazy when possible.
8294 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8296 * disasm.c (dump_insns): Support dumping opcodes for MI.
8297 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8298 dumping of instruction opcodes.
8300 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8302 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8305 2011-01-11 Tom Tromey <tromey@redhat.com>
8307 * thread.c (do_captured_thread_select): Emit newline before
8310 2011-01-11 Michael Snyder <msnyder@vmware.com>
8312 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8313 * score-tdep.c: Ditto.
8314 * score-tdep.h: Ditto.
8315 * ser-base.c: Ditto.
8316 * ser-go32.c: Ditto.
8319 * ser-mingw.c: Ditto.
8320 * ser-pipe.c: Ditto.
8322 * ser-unix.c: Ditto.
8323 * sh64-tdep.c: Ditto.
8324 * shnbsd-nat.c: Ditto.
8328 * solib-darwin.c: Ditto.
8329 * solib-frv.c: Ditto.
8331 * solib-irix.c: Ditto.
8332 * solib-osf.c: Ditto.
8333 * solib-pa64.c: Ditto.
8334 * solib-som.c: Ditto.
8335 * solib-spu.c: Ditto.
8336 * solib-sunos.c: Ditto.
8337 * solib-svr4.c: Ditto.
8339 * sol-thread.c: Ditto.
8343 * sparc64-linux-tdep.c: Ditto.
8344 * sparc64-tdep.c: Ditto.
8345 * sparc-linux-nat.c: Ditto.
8346 * sparc-linux-tdep.c: Ditto.
8347 * sparc-sol2-nat.c: Ditto.
8348 * sparc-sol2-tdep.c: Ditto.
8349 * sparc-tdep.c: Ditto.
8350 * sparc-tdep.h: Ditto.
8351 * spu-tdep.c: Ditto.
8352 * stabsread.c: Ditto.
8353 * stabsread.h: Ditto.
8361 * target-descriptions.c: Ditto.
8362 * target-descriptions.h: Ditto.
8364 * target-memory.c: Ditto.
8365 * terminal.h: Ditto.
8368 * tracepoint.c: Ditto.
8369 * tracepoint.h: Ditto.
8370 * trad-frame.h: Ditto.
8371 * typeprint.c: Ditto.
8373 2011-01-11 Michael Snyder <msnyder@vmware.com>
8375 * ui-file.c: Comment cleanup, mostly periods and spaces.
8380 * v850-tdep.c: Ditto.
8381 * valarith.c: Ditto.
8383 * valprint.c: Ditto.
8384 * valprint.h: Ditto.
8389 * vax-tdep.c: Ditto.
8393 * windows-nat.c: Ditto.
8394 * windows-tdep.c: Ditto.
8395 * xcoffread.c: Ditto.
8396 * xcoffsolib.c: Ditto.
8397 * xml-support.c: Ditto.
8398 * xstormy16-tdep.c: Ditto.
8399 * xtensa-tdep.c: Ditto.
8400 * xtensa-tdep.h: Ditto.
8402 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8404 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8405 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8407 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8408 Thiago Jung Bauermann <bauerman@br.ibm.com>
8410 Implement support for PowerPC BookE ranged watchpoints.
8412 (struct breakpoint_ops) <resources_needed>: New method.
8413 Initialize to NULL in all existing breakpoint_ops instances.
8414 (struct breakpoint) <exact>: New field.
8415 (target_exact_watchpoints): Declare external global.
8416 * breakpoint.c (target_exact_watchpoints): New global flag.
8417 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8418 b->enable_state to bp_enabled before calling
8419 hw_watchpoint_used_count.
8420 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8421 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8423 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8424 if the watchpoint is exact.
8425 (resources_needed_watchpoint): New function.
8426 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8427 (watch_command_1): Set b->exact if the user asked for an exact
8428 watchpoint and one can be set.
8429 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8430 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8431 the user asks for an exact watchpoint and one can be set. Return
8432 number of needed debug registers to watch the expression.
8433 * gdbtypes.c (is_scalar_type): New function, based on
8434 valprint.c:scalar_type_p.
8435 (is_scalar_type_recursive): New function.
8436 * gdbtypes.h (is_scalar_type_recursive): Declare.
8437 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8438 handle regions when ranged watchpoints are available.
8439 (create_watchpoint_request): New function.
8440 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8441 create_watchpoint_request.
8442 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8443 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8444 `set powerpc' and `show powerpc' commands.
8445 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8446 Mention documentation comment in the target macro.
8447 (target_region_ok_for_hw_watchpoint): Document return value.
8449 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8451 * breakpoint.c (update_watchpoint): Decide on using a software or
8452 hardware watchpoint after the bp_locations are created.
8454 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8456 Convert hardware watchpoints to use breakpoint_ops.
8457 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8458 <insert_location>: ... this. Return int instead of void.
8459 Accept pointer to struct bp_location instead of pointer to
8460 struct breakpoint. Adapt all implementations.
8461 (breakpoint_ops) <remove>: Rename to...
8462 <remove_location>: ... this. Accept pointer to struct bp_location
8463 instead of pointer to struct breakpoint. Adapt all implementations.
8464 * breakpoint.c (insert_catchpoint): Delete function.
8465 (insert_bp_location): Call the watchpoint or catchpoint's
8466 breakpoint_ops.insert method.
8467 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8468 breakpoint_ops.remove method.
8469 (insert_watchpoint, remove_watchpoint): New functions.
8470 (watchpoint_breakpoint_ops): New structure.
8471 (watch_command_1): Initialize the OPS field.
8472 * inf-child.c (inf_child_insert_fork_catchpoint)
8473 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8474 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8475 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8477 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8478 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8479 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8480 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8481 * target.c (update_current_target): Change default implementation of
8482 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8483 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8484 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8485 to_set_syscall_catchpoint to return_one.
8486 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8487 (debug_to_insert_exec_catchpoint): Report return value.
8488 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8489 (to_insert_exec_catchpoint): Change declaration to return int instead
8492 2011-01-11 Michael Snyder <msnyder@vmware.com>
8494 * arm-tdep.c: Internationalization.
8497 * fork-child.c: Ditto.
8498 * nto-procfs.c: Ditto.
8499 * ppc-sysv-tdep.c: Ditto.
8501 * remote-mips.c: Ditto.
8503 * rs6000-nat.c: Ditto.
8504 * rs6000-tdep.c: Ditto.
8508 * xml-support.c: Ditto.
8509 * mi/mi-cmd-break.c: Ditto.
8510 * mi/mi-cmd-var.c: Ditto.
8511 * mi/mi-interp.c: Ditto.
8512 * mi/mi-main.c: Ditto.
8514 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8516 * remote-sim.c (gdbsim_store_register): Update API to
8517 sim_store_register to check more error conditions.
8519 2011-01-10 Michael Snyder <msnyder@vmware.com>
8521 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8522 * nto-tdep.c: Ditto.
8523 * nto-tdep.h: Ditto.
8524 * objc-exp.y: Ditto.
8525 * objc-lang.c: Ditto.
8526 * objfiles.c: Ditto.
8527 * objfiles.h: Ditto.
8528 * observer.c: Ditto.
8529 * opencl-lang.c: Ditto.
8532 * parser-defs.h: Ditto.
8535 * posix-hdep.c: Ditto.
8536 * ppcbug-rom.c: Ditto.
8537 * ppc-linux-nat.c: Ditto.
8538 * ppc-linux-tdep.c: Ditto.
8539 * ppc-linux-tdep.h: Ditto.
8540 * ppcnbsd-tdep.c: Ditto.
8541 * ppcobsd-tdep.c: Ditto.
8542 * ppcobsd-tdep.h: Ditto.
8543 * ppc-sysv-tdep.c: Ditto.
8544 * ppc-tdep.h: Ditto.
8545 * printcmd.c: Ditto.
8546 * proc-abi.c: Ditto.
8547 * proc-flags.c: Ditto.
8549 * proc-utils.h: Ditto.
8550 * progspace.h: Ditto.
8551 * prologue-value.c: Ditto.
8552 * prologue-value.h: Ditto.
8553 * psympriv.h: Ditto.
8555 * p-typeprint.c: Ditto.
8556 * p-valprint.c: Ditto.
8557 * ravenscar-sparc-thread.c: Ditto.
8558 * ravenscar-thread.c: Ditto.
8559 * ravenscar-thread.h: Ditto.
8561 * regcache.c: Ditto.
8562 * regcache.h: Ditto.
8564 * remote-fileio.c: Ditto.
8565 * remote-fileio.h: Ditto.
8567 * remote-m32r-sdi.c: Ditto.
8568 * remote-mips.c: Ditto.
8569 * remote-sim.c: Ditto.
8570 * rs6000-aix-tdep.c: Ditto.
8571 * rs6000-nat.c: Ditto.
8572 * rs6000-tdep.c: Ditto.
8574 2011-01-10 Michael Snyder <msnyder@vmware.com>
8576 * charset.c (validate): Internationalization.
8577 * coffread.c (read_one_sym): Ditto.
8578 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8579 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8580 * inflow.c (new_tty): Ditto.
8581 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8582 * m32c-tdep.c (m32c_return_value): Ditto.
8583 * mep-tdep.c (mep_store_return_value): Ditto.
8584 * score-tdep.c (score7_fetch_insn): Ditto.
8585 * ser-mingw.c (pipe_windows_open): Ditto.
8586 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8587 * spu-tdep.c (spu_register_type): Ditto.
8588 * tracepoint.c (trace_find_command): Ditto.
8589 * valarith.c (value_pos): Ditto.
8591 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8593 * ada-valprint.c (printstr): Minor comment reformatting.
8595 2011-01-08 Michael Snyder <msnyder@vmware.com>
8597 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8600 2011-01-08 Michael Snyder <msnyder@vmware.com>
8602 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8603 * hppa-hpux-tdep.c: Ditto.
8604 * hppa-linux-nat.c: Ditto.
8605 * hppa-linux-tdep.c: Ditto.
8606 * hppanbsd-tdep.c: Ditto.
8607 * hppa-tdep.c: Ditto.
8608 * hppa-tdep.h: Ditto.
8609 * hpux-thread.c: Ditto.
8610 * i386-cygwin-tdep.c: Ditto.
8611 * i386-darwin-nat.c: Ditto.
8612 * i386gnu-nat.c: Ditto.
8613 * i386-linux-nat.c: Ditto.
8614 * i386-linux-tdep.c: Ditto.
8615 * i386-nat.c: Ditto.
8616 * i386-nat.h: Ditto.
8617 * i386nbsd-tdep.c: Ditto.
8618 * i386-sol2-nat.c: Ditto.
8619 * i386-stub.c: Ditto.
8620 * i386-tdep.c: Ditto.
8621 * i386-tdep.h: Ditto.
8622 * i387-tdep.c: Ditto.
8623 * ia64-linux-nat.c: Ditto.
8624 * ia64-linux-tdep.c: Ditto.
8625 * ia64-tdep.c: Ditto.
8629 * inferior.c: Ditto.
8630 * inferior.h: Ditto.
8636 * iq2000-tdep.c: Ditto.
8637 * irix5-nat.c: Ditto.
8643 * jv-typeprint.c: Ditto.
8644 * jv-valprint.c: Ditto.
8645 * language.c: Ditto.
8646 * language.h: Ditto.
8647 * linespec.c: Ditto.
8648 * linux-fork.c: Ditto.
8649 * linux-nat.c: Ditto.
8650 * linux-thread-db.c: Ditto.
8651 * lm32-tdep.c: Ditto.
8653 2011-01-08 Michael Snyder <msnyder@vmware.com>
8655 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8657 * m2-typeprint.c: Ditto.
8658 * m2-valprint.c: Ditto.
8659 * m32c-tdep.c: Ditto.
8660 * m32r-linux-nat.c: Ditto.
8661 * m32r-rom.c: Ditto.
8662 * m32r-tdep.c: Ditto.
8663 * m32r-tdep.h: Ditto.
8664 * m68hc11-tdep.c: Ditto.
8665 * m58klinux-nat.c: Ditto.
8666 * m68k-tdep.c: Ditto.
8667 * m88k-tdep.c: Ditto.
8668 * m88k-tdep.h: Ditto.
8669 * machoread.c: Ditto.
8670 * macrocmd.c: Ditto.
8671 * macroexp.c: Ditto.
8672 * macrotab.c: Ditto.
8675 * mdebugread.c: Ditto.
8676 * mdebugread.h: Ditto.
8679 * memory-map.h: Ditto.
8680 * mep-tdep.c: Ditto.
8681 * microblaze-rom.c: Ditto.
8682 * microblaze-tdep.c: Ditto.
8684 * mips-irix-tdep.c: Ditto.
8685 * mips-linux-nat.c: Ditto.
8686 * mips-linux-tdep.c: Ditto.
8687 * mips-linux-tdep.h: Ditto.
8688 * mipsnbsd-nat.c: Ditto.
8689 * mipsnbsd-tdep.c: Ditto.
8690 * mipsread.c: Ditto.
8691 * mips-tdep.c: Ditto.
8692 * mips-tdep.h: Ditto.
8693 * mn10300-linux-tdep.c: Ditto.
8694 * mn10300-tdep.c: Ditto.
8695 * mn10300-tdep.h: Ditto.
8698 * moxie-tdep.c: Ditto.
8699 * moxie-tdep.h: Ditto.
8702 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8704 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8706 2011-01-08 Robert Millan <rmh@gnu.org>
8708 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8710 2011-01-07 Michael Snyder <msnyder@vmware.com>
8712 * charset.c (_initialize_charset): Fix typo in string.
8714 2011-01-07 Michael Snyder <msnyder@vmware.com>
8716 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8718 * tui/tui-layout.c (tui_set_layout_for_display_command):
8719 Split line so that operator goes to beginning of line.
8720 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8721 assignment out of if statement.
8723 2011-01-07 Michael Snyder <msnyder@vmware.com>
8725 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8726 * ada-lang.h: Ditto.
8727 * ada-tasks.c: Ditto.
8728 * ada-valprint.c: Ditto.
8729 * aix-threads.c: Ditto.
8730 * alpha-linux-nat.c: Ditto.
8731 * alpha-linux-tdep.c: Ditto.
8732 * alpha-mdebug-tdep.c: Ditto.
8733 * alpha-nat.c: Ditto.
8734 * alpha-osf1-tdep.c: Ditto.
8735 * alpha-tdep.c: Ditto.
8736 * alphabsd-nat.c: Ditto.
8737 * alphabsd-tdep.c: Ditto.
8738 * amd64-darwin-tdep.c: Ditto.
8739 * amd64-linux-nat.c: Ditto.
8740 * amd64-linux-tdep.c: Ditto.
8741 * amd64-sol2-tdep.c: Ditto.
8742 * amd64-tdep.c: Ditto.
8743 * amd64-fbsd-tdep.c: Ditto.
8744 * amd64-nbsd-tdep.c: Ditto.
8745 * amd64-obsd-tdep.c: Ditto.
8746 * amd64-linux-nat.c: Ditto.
8747 * amd64-linux-tdep.c: Ditto.
8748 * arm-tdep.c: Ditto.
8749 * arm-tdep.h: Ditto.
8750 * armnbsd-nat.c: Ditto.
8751 * avr-tdep.c: Ditto.
8752 * bfin-tdep.c: Ditto.
8754 * c-typeprintc: Ditto.
8755 * c-valprint.c: Ditto.
8756 * coff-pe-read.h: Ditto.
8757 * coffreead.c: Ditto.
8758 * cris-tdep.c: Ditto.
8760 * darwin-nat-info.c: Ditto.
8761 * darwin-nat.c: Ditto.
8762 * dbug-rom.c: Ditto.
8766 * dec-thread.c: Ditto.
8768 * demangle.c: Ditto.
8769 * dicos-tdep.c: Ditto.
8770 * dictionary.c: Ditto.
8771 * dictionary.h: Ditto.
8772 * dink32-rom.c: Ditto.
8774 * doublest.c: Ditto.
8776 * dummy-frame.c: Ditto.
8777 * dwarf2-frame.c: Ditto.
8778 * dwarf2expr.c: Ditto.
8779 * dwarf2loc.c: Ditto.
8780 * dwarf2read.c: Ditto.
8784 * event-top.h: Ditto.
8785 * exceptions.c: Ditto.
8786 * exceptions.h: Ditto.
8788 * expprint.c: Ditto.
8789 * expression.h: Ditto.
8793 * f-typeprint.c: Ditto.
8794 * f-valprint.c: Ditto.
8795 * fbsd-nat.c: Ditto.
8797 * fork-child.c: Ditto.
8800 * frv-linux-tdep.c: Ditto.
8801 * frv-tdep.c: Ditto.
8803 * gdb-stabs.h: Ditto.
8804 * gdb_assert.h: Ditto.
8805 * gdb_string.h: Ditto.
8806 * gdb_thread_db.h: Ditto.
8807 * gdb_wait.h: Ditto.
8808 * gdbarch.sh: Ditto.
8810 * gdbthread.h: Ditto.
8811 * gdbtypes.c: Ditto.
8812 * gdbtypes.h: Ditto.
8815 * gnu-v2-abi.c: Ditto.
8816 * gnu-v3-abi.c: Ditto.
8817 * go32-nat.c: Ditto.
8818 * gdbarch.c: Regenerate.
8819 * gdbarch.h: Regenerate.
8821 2011-01-07 Michael Snyder <msnyder@vmware.com>
8823 * ax-gdb.c: Adjust some long output strings.
8824 * breakpoint.c: Ditto.
8829 * linux-nat.c: Ditto.
8830 * solib-pa64.c: Ditto.
8831 * solib-som.c: Ditto.
8833 2011-01-06 Tom Tromey <tromey@redhat.com>
8837 * python/python.c (GdbMethods): Add "newest_frame" method.
8838 * python/python-internal.h (gdbpy_newest_frame): Declare.
8839 * python/py-frame.c (gdbpy_newest_frame): New function.
8841 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8843 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8844 * jit.c (jit_debug): New variable.
8845 (show_jit_debug): New function.
8846 (struct target_buffer): Use ULONGEST.
8847 (bfd_open_from_target_memory): Likewise.
8848 (jit_register_code, jit_inferior_init): Add debug output.
8849 (_initialize_jit): Register "debug jit" command.
8851 2011-01-06 Tom Tromey <tromey@redhat.com>
8853 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8854 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8857 2011-01-06 Tom Tromey <tromey@redhat.com>
8859 * python/py-frame.c (frapy_block): Use get_frame_block.
8861 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8863 Do not stop on SIGPRIO signals by default
8864 * infrun.c (_initialize_infrun): Unset signal_stop and
8865 signal_print for TARGET_SIGNAL_PRIO.
8867 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8869 * ada-tasks.c: Fix style violation in comment.
8871 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8873 * linespec.c (decode_compound, find_method): Remove trailing \n
8874 at end of error string.
8875 * solib-irix.c (irix_current_sos): Likewise.
8876 * varobj.c (uninstall_variable): Likewise.
8878 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8880 * copyright.py: New script.
8881 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8882 Launch emacs without exec'ing. Call copyright.py afterwards.
8884 2011-01-05 Michael Snyder <msnyder@vmware.com>
8886 * addrmap.c: Shorten lines of >= 80 columns.
8887 * arch-utils.c: Ditto.
8888 * arch-utils.h: Ditto.
8890 * ax-general.c: Ditto.
8892 * blockframe.c: Ditto.
8893 * breakpoint.c: Ditto.
8894 * buildsym.c: Ditto.
8896 * c-typeprint.c: Ditto.
8898 * coffread.c: Ditto.
8902 * cp-namespace.c: Ditto.
8903 * cp-support.c: Ditto.
8904 * dbug-rom.c: Ditto.
8909 * dictionary.c: Ditto.
8911 * doublest.c: Ditto.
8912 * dwarf2-frame.c: Ditto.
8913 * dwarf2expr.c: Ditto.
8914 * dwarf2loc.c: Ditto.
8915 * dwarf2read.c: Ditto.
8918 * event-loop.c: Ditto.
8919 * event-loop.h: Ditto.
8920 * exceptions.h: Ditto.
8922 * expprint.c: Ditto.
8923 * expression.h: Ditto.
8925 * f-valprint.c: Ditto.
8927 * frame-base.c: Ditto.
8928 * frame-unwind.c: Ditto.
8929 * frame-unwind.h: Ditto.
8933 * gdb-stabs.h: Ditto.
8934 * gdb_assert.h: Ditto.
8935 * gdb_dirent.h: Ditto.
8936 * gdb_obstack.h: Ditto.
8938 * gdbtypes.c: Ditto.
8939 * gdbtypes.h: Ditto.
8940 * inf-ttrace.c: Ditto.
8945 * inline-frame.h: Ditto.
8946 * language.c: Ditto.
8947 * language.h: Ditto.
8948 * libunwind-frame.c: Ditto.
8949 * libunwind-frame.h: Ditto.
8950 * linespec.c: Ditto.
8951 * linux-nat.c: Ditto.
8952 * linux-nat.h: Ditto.
8953 * linux-thread-db.c: Ditto.
8954 * machoread.c: Ditto.
8955 * macroexp.c: Ditto.
8956 * macrotab.c: Ditto.
8959 * mdebugread.c: Ditto.
8964 * objfiles.c: Ditto.
8965 * objfiles.h: Ditto.
8967 * p-typeprint.c: Ditto.
8968 * p-valprint.c: Ditto.
8970 * printcmd.c: Ditto.
8971 * proc-events.c: Ditto.
8973 * progspace.c: Ditto.
8974 * progspace.h: Ditto.
8975 * psympriv.h: Ditto.
8978 * regcache.c: Ditto.
8979 * regcache.h: Ditto.
8980 * remote-fileio.c: Ditto.
8982 * ser-mingw.c: Ditto.
8984 * ser-unix.c: Ditto.
8987 * solib-frv.c: Ditto.
8988 * solib-irix.c: Ditto.
8989 * solib-osf.c: Ditto.
8990 * solib-pa64.c: Ditto.
8991 * solib-som.c: Ditto.
8992 * solib-sunos.c: Ditto.
8993 * solib-svr4.c: Ditto.
8994 * solib-target.c: Ditto.
8998 * stabsread.c: Ditto.
8999 * stabsread.c: Ditto.
9002 * symfile-mem.c: Ditto.
9008 * target-descriptions.c: Ditto.
9009 * target-memory.c: Ditto.
9012 * terminal.h: Ditto.
9015 * tracepoint.c: Ditto.
9016 * tracepoint.h: Ditto.
9020 * user-regs.c: Ditto.
9021 * user-regs.h: Ditto.
9023 * valarith.c: Ditto.
9025 * valprint.c: Ditto.
9026 * valprint.h: Ditto.
9031 * xcoffread.c: Ditto.
9032 * xcoffsolib.c: Ditto.
9033 * xcoffsolib.h: Ditto.
9034 * xml-syscall.c: Ditto.
9035 * xml-tdesc.c: Ditto.
9037 2011-01-05 Michael Snyder <msnyder@vmware.com>
9039 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9040 * cli/cli-decode.c: Ditto.
9041 * cli/cli-dump.c: Ditto.
9042 * cli/cli-logging.c: Ditto.
9043 * cli/cli-script.c: Ditto.
9044 * cli/cli-setshow.c: Ditto.
9045 * common/signals.c: Ditto.
9046 * mi/mi-cmd-break.c: Ditto.
9047 * mi/mi-cmd-disas.c: Ditto.
9048 * mi/mi-cmd-stack.c: Ditto.
9049 * mi/mi-cmd-var.c: Ditto.
9050 * mi/mi-cmds.c: Ditto.
9051 * mi/mi-common.h: Ditto.
9052 * mi/mi-console.c: Ditto.
9053 * mi/mi-interp.c: Ditto.
9054 * mi/mi-main.c: Ditto.
9055 * osf-share/cma_attr.c: Ditto.
9056 * osf-share/cma_deb_core.h: Ditto.
9057 * osf-share/cma_debug_client.h: Ditto.
9058 * osf-share/cma_handle.h: Ditto.
9059 * osf-share/cma_mutex.h: Ditto.
9060 * osf-share/cma_stack_int.h: Ditto.
9061 * osf-share/cma_tcb_defs.h: Ditto.
9062 * python/py-auto-load.c: Ditto.
9063 * python/py-breakpoint.c: Ditto.
9064 * python/py-cmd.c: Ditto.
9065 * python/py-frame.c: Ditto.
9066 * python/py-objfile.c: Ditto.
9067 * python/py-param.c: Ditto.
9068 * python/py-progspace.c: Ditto.
9069 * python/py-symbol.c: Ditto.
9070 * python/py-value.c: Ditto.
9071 * python/python-internal.h: Ditto.
9072 * python/python.c: Ditto.
9073 * tui/tui-data.c: Ditto.
9074 * tui/tui-disasm.c: Ditto.
9075 * tui/tui-hooks.c: Ditto.
9076 * tui/tui-io.c: Ditto.
9077 * tui/tui-layout.c: Ditto.
9078 * tui/tui-regs.c: Ditto.
9079 * tui/tui-source.c: Ditto.
9080 * tui/tui-stack.c: Ditto.
9081 * tui/tui-win.c: Ditto.
9082 * tui/tui-windata.c: Ditto.
9083 * tui/tui-winsource.c: Ditto.
9085 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9087 * configure.ac, gdb.1: Copyright year update.
9089 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9091 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9092 this_pc_in_block, morestack_msym and morestack_name. Check for
9093 "__morestack" minimal symbol there.
9095 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9097 * symfile.c (find_sym_fns): Add call to dont_repeat.
9099 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9101 Copyright year update in most files (performed by copyright.sh).
9103 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9105 * top.c (print_gdb_version): Update copyright year in version output.
9107 For older changes see ChangeLog-2010.
9113 version-control: never