1 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3 * inf-loop.c (execute_command): Don't check if the current thread
4 if running before synchronously waiting for command completion.
5 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
7 (normal_stop): Call async_enable_stdin here.
8 * inf-loop.c (inferior_event_handler): Don't call
9 async_enable_stdin, nor handle "set exec-done-display" here.
11 2011-09-04 Joel Brobecker <brobecker@adacore.com>
15 2011-09-04 Joel Brobecker <brobecker@adacore.com>
17 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
19 2011-09-04 Joel Brobecker <brobecker@adacore.com>
21 * NEWS: Add entry for OpenBSD/NetBSD build failure.
23 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
25 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
27 2011-09-02 Matt Rice <ratmice@gmail.com>
30 * event-top.c (cli_command_loop): Replace readline setup with
31 direct call to display_gdb_prompt.
32 (display_gdb_prompt): Do not call observer mechanism during
33 synchronous execution.
35 2011-09-02 Pedro Alves <pedro@codesourcery.com>
37 * linux-nat.c (in_pid_list_p): New.
38 (linux_record_stopped_pid): Delete.
39 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
40 already attached to the LWP. Return an indication if so.
41 (linux_nat_filter_event): Adjust.
42 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
43 returning an indication to ignore this thread.
45 2011-09-02 Pedro Alves <pedro@codesourcery.com>
47 * top.c: Include interps.h.
48 (execute_command): If the target can async, but the interpreter is
49 in sync mode, synchronously wait for the command to finish before
51 (execute_command_to_string): Force the interpreter to sync mode.
52 * infrun.c: Include interps.h.
53 (fetch_inferior_event): Don't restore the prompt yet if the
54 interpreter is in sync mode.
55 * interps.c (interpreter_async): New global.
56 * interps.h (interpreter_async): Declare.
57 * inf-loop.c: Include interps.h.
58 (inferior_event_handler): Don't print the language change or run
59 breakpoint commands yet if the interpreter in is sync mode.
60 * main.c (captured_command_loop): Flip the interpreter to async
62 * cli/cli-script.c: Include interps.h.
63 (execute_user_command, while_command, if_command): Force the
64 interpreter to sync mode.
65 * python/python.c: Include interps.h.
66 (python_command, execute_gdb_command): Force the interpreter to
69 2011-09-02 Pedro Alves <pedro@codesourcery.com>
71 * value.c (show_convenience): Catch errors thrown while printing
72 each internal variable.
73 * infrun.c (validate_siginfo_access): New function.
74 (siginfo_value_read, siginfo_value_write): Call it.
76 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
79 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
80 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
83 2011-08-29 Yao Qi <yao@codesourcery.com>
85 * solib-dsbt.c (bfd_lookup_symbol): Removed.
87 (enable_break2): Update caller.
88 * solib-frv.c (bfd_lookup_symbol): Removed.
90 (enable_break2): Update caller.
91 * solib-pa64.c (bfd_lookup_symbol): Removed.
93 * solib-svr4.c (bfd_lookup_symbol): Removed.
94 (cmp_name_and_sec_flags): New.
95 (enable_break): Update caller.
96 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
97 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
98 (gdb_bfd_lookup_symbol): New.
99 * solib.h: Functions declarations.
101 2011-08-29 Yao Qi <yao@codesourcery.com>
103 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
106 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
108 Fix TUI stepi on code without symbols.
109 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
112 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
115 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
116 and the static keyword.
117 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
118 Make prefix an array.
119 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
120 * mi/mi-main.c (get_register): Remove stb initialization and the static
123 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
125 Code cleanup - make mi_opt const.
126 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
128 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
129 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
130 (mi_cmd_env_dir): Likewise.
131 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
132 (mi_cmd_target_file_put): Likewise.
133 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
134 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
135 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
136 (mi_valid_noargs): Make opts const.
137 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
138 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
139 (mi_cmd_data_read_memory): Likewise.
140 (mi_cmd_data_read_memory_bytes): Likewise.
141 (mi_cmd_data_write_memory): Likewise.
143 2011-08-26 Matt Rice <ratmice@gmail.com>
145 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
146 bcache_xmalloc, replace bcache_xmalloc with call to
147 psymbol_bcache_init for psymbol_cache.
148 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
150 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
152 * inf-loop.c (inferior_event_handler): Add exception_print in
155 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
157 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
158 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
159 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
160 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
161 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
162 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
163 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
164 * infrun.c (fetch_inferior_event): Call
165 make_bpstat_clear_actions_cleanup.
166 * top.c (execute_command): New variable cleanup_if_error, call
167 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
168 * utils.c (do_bpstat_clear_actions_cleanup)
169 (make_bpstat_clear_actions_cleanup): New functions.
171 2011-08-26 Pedro Alves <pedro@codesourcery.com>
173 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
174 either the parent or the child forks. Rename a couple locals.
176 2011-08-26 Pedro Alves <pedro@codesourcery.com>
178 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
179 library call. Avoid reading the `status' local if all waitpid
182 2011-08-26 Pedro Alves <pedro@codesourcery.com>
184 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
185 opening /proc/PID/task always succeeds.
187 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
189 * linespec.c (symtab_from_filename): Check for the end of string.
191 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
194 * varobj.c (cplus_describe_child): Add the keyword
195 'class' to the output of the method when dealing
196 with a cast to a base class.
198 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
200 No functionality change.
201 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
202 function comment a reference, new variables tp and bs, move here code
203 from throw_exception.
204 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
205 describe it in the comment.
206 * exceptions.c (throw_exception): Remove variable tp, move the code for
207 bpstat_clear_actions to bpstat_clear_actions.
209 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
211 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
212 * linux-nat.c: Include linux-procfs.h.
213 (linux_proc_get_tgid): Move to ...
214 * common/linux-procfs.c: ... here. New file.
215 * common/linux-procfs.h: New file.
216 * linux-thread-db.c: Include linux-procfs.h.
217 * Makefile.in: Update dependencies.
218 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
219 * config/arm/linux.mh: Likewise.
220 * config/i386/linux.mh: Likewise.
221 * config/i386/linux64.mh: Likewise.
222 * config/ia64/linux.mh: Likewise.
223 * config/m32r/linux.mh: Likewise.
224 * config/m68k/linux.mh: Likewise.
225 * config/mips/linux.mh: Likewise.
226 * config/pa/linux.mh: Likewise.
227 * config/pa/linux.mh: Likewise.
228 * config/powerpc/linux.mh: Likewise.
229 * config/powerpc/ppc64-linux.mh: Likewise.
230 * config/powerpc/spu-linux.mh: Likewise.
231 * config/sparc/linux.mh: Likewise.
232 * config/sparc/linux64.mh: Likewise.
233 * config/xtensa/linux.mh: Likewise.
235 2011-08-24 Hui Zhu <teawater@gmail.com>
237 * tracepoint.c (cond_string_is_same): New function.
238 (find_matching_tracepoint): Add condition check
239 by cond_string_is_same.
241 2011-08-23 Josh Matthews <josh@joshmatthews.net>
243 Fix build error in Darwin port.
244 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
246 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
249 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
250 (command_line_is_silent): New function.
251 (bpstat_do_actions_1): No longer use commands_left, use
252 command_line_is_silent for commands.
253 (bpstat_alloc): Remove clearing of commands_left.
254 (bpstat_stop_status): Remove initialization of commands_left, use
255 command_line_is_silent.
256 * breakpoint.h (struct bpstats): Remove commands_left.
258 2011-08-18 Keith Seitz <keiths@redhat.com>
261 * cp-name-parser.y (struct demangle_info): Remove unused
264 (allocate_info): Change return type to struct demangle_info *.
265 Always allocate a new demangle_info.
266 Remove unused PREV pointer.
267 (cp_new_demangle_parse_info): New function.
268 (cp_demangled_name_parse_free): New function.
269 (do_demangled_name_parse_free_cleanup): New function.
270 (make_cleanup_cp_demangled_name_parse_free): New function.
271 (cp_demangled_name_to_comp): Change return type to
272 struct demangle_parse_info *.
273 Allocate a new storage for each call.
274 (main): Update usage for cp_demangled_name_to_comp
276 * cp-support.h (struct demangle_parse_info): New structure.
277 (cp_demangled_name_to_comp): Update API change for
279 (cp_new_demangle_parse_info): Declare.
280 (make_cleanup_cp_demangled_name_parse_free): New declaration.
281 (cp_demangled_name_parse_free): Declare.
282 * cp-support.c (cp_canonicalize_string): Update API
283 change for cp_demangled_name_to_comp.
284 (mangled_name_to_comp): Likewise.
285 Return struct demangle_parse_info, too.
286 (cp_class_name_from_physname): Update mangled_name_to_comp
288 (method_name_from_physname): Likewise.
289 (cp_func_name): Update API change for cp_demangled_name_to_comp.
290 (cp_remove_params): Likewise.
291 * python/py-type.c (typy_legacy_template_argument): Likewise.
293 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
294 (cp_merge_demangle_parse_infos): Declare.
295 * cp-support.c (ignore_typedefs): New file global.
296 (copy_string_to_obstack): New function.
297 (inspect_type): New function.
298 (replace_typedefs): New function.
299 (replace_typedefs_qualified_name): New function.
300 (cp_canonicalize_string_no_typedefs): New function.
301 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
302 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
303 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
304 instead of cp_canonicalize_string.
305 (find_method): Likewise.
306 (decode_compound): Before looking up the name, call
307 cp_canonicalize_string_no_typedefs.
308 (decode_variable): Likewise.
310 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
311 Tom Tromey <tromey@redhat.com>
312 Matt Rice <ratmice@gmail.com>
314 * python/lib/gdb/prompt.py: New file.
315 * python/lib/gdb/command/prompt.py: New file.
316 * NEWS: Document set extended-prompt and gdb.prompt library
318 2011-08-16 Yao Qi <yao@codesourcery.com>
320 * tic6x-linux-tdep.c: Move const arrays definition from here...
321 * tic6x-tdep.c: to here ...
323 2011-08-14 Yao Qi <yao@codesourcery.com>
325 * NEWS: New port to Texas Instruments TMS320C6x.
327 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
328 Bernd Schmidt <bernds@codesourcery.com>
329 Yao Qi <yao@codesourcery.com>
331 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
332 * solib-dsbt.c: New file. Support DSBT shared object.
333 * tic6x-linux-tdep.c: New file.
334 * tic6x-tdep.c: New file.
335 * tic6x-tdep.h: New file.
337 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
338 Yao Qi <yao@codesourcery.com>
340 * remote.c (PACKET_qXfer_fdpic): New enum value.
341 (remote_protocol_features): Add qXfer:fdpic:read packet.
342 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
343 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
344 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
346 2011-08-14 Yao Qi <yao@codesourcery.com>
348 Target description for tic6x.
349 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
350 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
351 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
352 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
353 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
354 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
355 * features/tic6x-c64xp-linux.xml: New.
356 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
357 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
358 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
359 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
360 * regformats/tic6x-c64xp.dat,
361 regformats/tic6x-c62x-linux.dat: Generated.
362 * regformats/tic6x-c64x-linux.dat,
363 regformats/tic6x-c64xp-linux.dat: Generated.
364 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
365 features/tic6x-*.c files.
366 Add regformats/tic6x-*.dat files.
368 2011-08-12 Doug Evans <dje@google.com>
370 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
371 * python/py-symbol.c (sympy_get_type): New function.
372 (symbol_object_getset): Add "type".
374 2011-08-12 Pedro Alves <pedro@codesourcery.com>
378 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
380 (tui_show_register_group): Don't store a byte buffer in the data
382 (tui_register_format): Skip registers with an empty name.
383 (tui_get_register): Store a struct value in the data element's
384 value field instead of a byte buffer holding the raw register
385 contents. Account for optimized-out and unavailable registers
386 when comparing register contents.
388 2011-08-09 Pedro Alves <pedro@codesourcery.com>
390 * printcmd.c (current_display_number): Update comment.
391 (disable_current_display_cleanup): Delete.
392 (do_one_display): Use make_cleanup_restore_integer. Gracefully
393 catch errors thrown while evaluating and printing the display.
395 2011-08-09 Tom Tromey <tromey@redhat.com>
397 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
399 2011-08-09 Pedro Alves <pedro@codesourcery.com>
401 * elfread.c (elf_symtab_read): Rework comments.
402 * maint.c (maintenance_command): Ditto.
403 * somread.c (som_symtab_read): Ditto.
404 * solib.c (solib_find, solib_map_sections, update_solib_list)
405 (solib_add, info_sharedlibrary_command, solib_name_from_address)
406 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
407 (sharedlibrary_command, no_shared_libraries): Ditto.
408 * solib-irix.c (locate_base, disable_break, enable_break)
409 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
410 (irix_current_sos, irix_open_symbol_file_object)
411 (irix_special_symbol_handling): Ditto.
412 * solib-sunos.c (locate_base, first_link_map_member)
413 (sunos_current_sos, disable_break, enable_break)
414 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
416 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
417 (open_symbol_file_object, svr4_current_sos, enable_break)
418 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
420 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
421 (frv_current_sos, enable_break, frv_special_symbol_handling)
422 (frv_solib_create_inferior_hook): Ditto.
423 * solist.h (struct target_so_ops): Extend the comments of the
424 special_symbol_handling, current_sos and open_symbol_file_object
427 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
429 * python/lib/gdb/__init__.py: Auto-load files in command and
430 function directories.
431 * python/python.c (finish_python_initialization): Use
433 * python/lib/gdb/command/pretty_printers.py: Self register
435 * NEWS: Document auto-loading.
437 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
439 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
440 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
441 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
443 2011-08-08 Tom Tromey <tromey@redhat.com>
445 * breakpoint.c (clean_up_filters): Remove.
446 (catch_syscall_split_args): Use VEC_cleanup.
448 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
450 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
451 (main): Uncomment "Demangling error\n".
453 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
455 * solib-target.c (segment_attributes): Make them static.
456 (section_attributes, library_children, library_attributes): Likewise.
457 (library_list_children, library_list_attributes): Likesise.
458 (library_list_elements): Likewise.
460 2011-08-05 Pedro Alves <pedro@codesourcery.com>
462 * exceptions.c (throw_exception): Don't disable the current
464 * printcmd.c (disable_current_display_cleanup): New function.
465 (do_one_display): Install a cleanup to disable the current display
466 if doing the display throws.
468 2011-08-05 Eli Zaretskii <eliz@gnu.org>
470 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
471 initialization of the tp_new member to the corresponding
472 gdbpy_initialize_* function.
473 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
474 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
475 * python/py-function.c (gdbpy_initialize_functions): Likewise.
476 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
477 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
479 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
481 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
482 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
483 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
484 references to current_uiout.
486 2011-08-04 Pedro Alves <pedro@codesourcery.com>
488 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
489 (start_event_loop): Use TRY_CATCH instead of catch_errors.
490 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
491 * top.c (gdb_readline_wrapper): Adjust.
492 * tui/tui-interp.c (tui_command_loop):
493 (_initialize_tui_interp): Don't install it.
495 2011-08-04 Pedro Alves <pedro@codesourcery.com>
497 * ui-out.h (uiout): Rename to ...
498 (current_uiout): ... this.
499 * ui-out.c (uiout): Rename to ...
500 (current_uiout): ... this.
501 * ada-lang.c (print_it_exception, print_one_exception)
502 (print_mention_exception): Adjust.
503 * breakpoint.c (watchpoint_check): Adjust.
504 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
505 (default_collect_info, watchpoints_info, print_one_catch_fork)
506 (print_one_catch_vfork, print_one_catch_syscall)
507 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
508 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
509 (print_it_watchpoint, print_mention_watchpoint)
510 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
511 (print_it_exception_catchpoint, print_one_exception_catchpoint)
512 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
513 (bkpt_print_mention, momentary_bkpt_print_it)
514 (tracepoint_print_mention, update_static_tracepoint)
515 (tracepoints_info, save_breakpoints): Adjust.
516 * cli-out.c (field_separator): Adjust.
517 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
518 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
519 * frame.c (get_current_frame): Adjust.
520 * infcmd.c (run_command_1, print_return_value): Adjust.
521 * inferior.c (inferior_command, info_inferiors_command): Adjust.
522 * infrun.c (print_end_stepping_range_reason): Adjust.
523 (print_signal_exited_reason, print_exited_reason): Adjust.
524 (print_signal_received_reason, print_no_history_reason): Adjust.
525 * interps.c (interp_set): Adjust.
526 * osdata.c (info_osdata_command): Adjust.
527 * progspace.c (maintenance_info_program_spaces_command): Adjust.
528 * remote-fileio.c (remote_fileio_request): Adjust.
529 * remote.c (show_remote_cmd): Adjust.
530 * solib.c (info_sharedlibrary_command): Adjust.
531 * source.c (print_source_lines_base): Adjust.
532 * stack.c (print_stack_frame): Adjust.
533 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
534 * symfile-mem.c (add_vsyscall_page): Adjust.
535 * symfile.c (load_progress, generic_load)
536 (print_transfer_performance): Adjust.
537 * thread.c (info_threads_command, restore_selected_frame)
538 (thread_command): Adjust.
539 * top.c (make_cleanup_restore_ui_file): Adjust.
540 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
541 (print_one_static_tracepoint_marker): Adjust.
542 * cli/cli-cmds.c (print_disassembly): Adjust.
543 * cli/cli-decode.c (print_doc_line): Adjust.
544 * cli/cli-interp.c (safe_execute_command): Adjust.
545 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
546 (handle_redirections): Adjust.
547 * cli/cli-script.c (show_user_1): Adjust.
548 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
549 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
550 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
551 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
552 (mi_cmd_env_dir): Adjust.
553 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
554 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
555 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
556 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
557 (list_args_or_locals): Adjust.
558 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
559 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
560 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
561 (mi_cmd_var_list_children, mi_cmd_var_info_type)
562 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
563 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
564 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
565 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
566 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
567 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
568 (list_available_thread_groups, mi_cmd_list_thread_groups)
569 (mi_cmd_data_list_register_names)
570 (mi_cmd_data_list_changed_registers)
571 (mi_cmd_data_list_register_values, get_register)
572 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
573 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
574 (mi_cmd_list_target_features, mi_cmd_add_inferior)
575 (mi_execute_command, mi_load_progress): Adjust.
576 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
577 * python/py-auto-load.c (print_script, info_auto_load_scripts):
579 * python/py-breakpoint.c (bppy_get_commands): Adjust.
580 * tui/tui-interp.c (tui_command_loop): Adjust.
581 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
583 2011-08-04 Pedro Alves <pedro@codesourcery.com>
585 * exceptions.c (struct catcher): Remove saved_uiout field.
586 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
587 no longer save/resvore the global ui_out builder.
588 (catch_exceptions_with_msg): Save/override/restore the global
589 ui_out builder manually instead of relying on TRY_CATCH to do it.
590 (catch_errors): Save/restore the global ui_out builder manually
591 instead of relying on TRY_CATCH to do it.
592 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
595 * cli/cli-interp.c (safe_execute_command): Save/override/restore
596 the global ui_out builder manually instead of relying on TRY_CATCH
599 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
601 * breakpoint.c (update_global_location_list): Ensure
602 invariant 'first loc marked not duplicated and inserted,
603 following locs marked duplicated/not inserted' is respected
604 for multiple locations at the same address.
605 (unduplicated_should_be_inserted) New function.
606 (swap_insertion) New function.
608 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
610 * stack.c (print_frame_arguments_choices): Comment typo fix.
612 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
615 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
616 * breakpoint.c (insert_bp_location): Remove disabled_breaks
617 argument. Update callers.
619 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
622 * doublest.c (convert_doublest_to_floatformat): Pass correct
623 mantissa length to put_field.
625 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
627 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
628 exception_print code path.
629 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
630 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
631 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
633 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
636 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
637 Remove, merge them into ...
638 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
639 variable args and its initialization.
640 (struct print_args_args, print_args_stub): Remove, merge them into
642 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
644 (do_gdb_disassembly): ... here. Remove variable args and its
646 (print_frame): Remove variable args and its initialization, new
647 variable gdbarch and numargs (from print_args_stub), inline here
648 print_args_stub with a TRY_CATCH.
649 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
651 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
652 New variable e, remove variable btargs and its initialization.
654 2011-08-01 Tristan Gingold <gingold@adacore.com>
656 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
658 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
660 * breakpoint.c (insert_bp_location): Document return value.
661 (insert_breakpoint_locations): Fix documentation.
662 (remove_breakpoints): Add documentation.
664 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
666 * breakpoint.c (insert_bp_location): Remove disabled_breaks
667 argument. Update callers.
669 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
671 * stack.c (print_frame_info): Comment typo fix.
673 2011-07-29 Sterling Augustine <saugustine@google.com>
675 * MAINTAINERS (Write After Approval): Add myself to the list.
677 2011-07-29 Tom Tromey <tromey@redhat.com>
679 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
680 (library_list_start_segment): Update.
681 (library_list_start_section): Update.
683 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
685 * varobj.c (value_get_print_value): Move hint check later into the
686 function. Comment function. Free thevalue before reusing it.
688 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
689 Pedro Alves <pedro@codesourcery.com>
691 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
693 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
694 Assert the result kind.
695 * value.h (value_one): Remove parameter lv.
697 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
699 Fix crash on lval_computed values.
700 * valops.c (value_zero): Use not_lval for lval_computed.
702 2011-07-27 Tom Tromey <tromey@redhat.com>
704 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
705 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
707 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
709 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
710 "ptype" by their typedefs difference.
712 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
714 * dwarf2expr.c (ctx_no_read_reg): New function.
715 * dwarf2expr.h (ctx_no_read_reg): New declaration.
716 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
717 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
718 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
720 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
722 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
723 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
725 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
726 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
727 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
728 (ctx_no_get_base_type): Move the functions here.
729 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
730 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
731 (ctx_no_get_base_type): New declarations.
733 2011-07-27 Tom Tromey <tromey@redhat.com>
735 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
737 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
738 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
740 2011-07-26 Sterling Augustine <saugustine@google.com>
742 * cli/cli-dump.c (dump_binary_file): Change parameter type to
744 (dump_bfd_file): Likewise.
746 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
748 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
749 (remote_hw_watchpoint_length_limit): New variable.
750 (_initialize_remote) add set,show cmds for this new variable.
751 * gdb.texinfo: document these new commands.
752 * NEWS: Mention these new commands.
754 2011-07-26 Pedro Alves <pedro@codesourcery.com>
756 * breakpoint.c (works_in_software_mode_watchpoint): Also return
757 true for software watchpoints.
759 2011-07-26 Joel Brobecker <brobecker@adacore.com>
763 2011-07-26 Tom Tromey <tromey@redhat.com>
765 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
766 * dwarf2read.c (read_indirect_string_at_offset): New function.
767 (read_indirect_string): Use it.
768 (dwarf_decode_macro_bytes): New function, taken from
769 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
770 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
771 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
773 (struct dwarf2_per_objfile) <macro>: New field.
774 (dwarf2_elf_names): Add .debug_macro.
775 (dwarf2_macros_too_long_complaint): Add 'section' argument.
776 (dwarf2_locate_sections): Handle new section.
777 (read_file_scope): Handle DW_AT_GNU_macros.
778 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
780 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
782 * NEWS: Mention dcache configuration.
783 * dcache.c (dcache_set_list, dcache_show_list): New variables.
784 (dcache_size, dcache_line_size): New variables.
785 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
786 (struct dcache_block): Make it expandable.
787 (struct dcache_struct): New field.
788 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
789 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
790 (dcache_poke_byte, dcache_print_line): Adjust.
791 (set_dcache_size, set_dcache_line_size): New functions.
792 (set_dcache_command, show_dcache_command): New functions.
793 (_initialize_dcache): Add new commands.
795 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
797 * progspace.h (struct program_space): Add solib_add_generation.
798 * infcmd.c (post_create_inferior): Only call solib_add if not
800 * solib.c (solib_add): Increment solib_add_generation.
802 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
804 Fix implicit pointer offsets.
805 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
808 2011-07-25 Tom Tromey <tromey@redhat.com>
810 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
812 (ada_exception_sal): Make 'ops' const.
813 (ada_decode_exception_location): Likewise.
814 (ada_decode_assert_location): Likewise.
815 (catch_assert_command): Update.
816 (catch_ada_exception_command): Update.
817 (create_ada_exception_catchpoint): Make 'ops' const.
818 * breakpoint.c (set_raw_breakpoint_without_location)
819 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
821 (create_internal_breakpoint): Update.
822 (init_raw_breakpoint_without_location): Make 'ops' const.
823 (init_raw_breakpoint, init_catchpoint)
824 (create_fork_vfork_event_catchpoint)
825 (create_syscall_event_catchpoint, init_breakpoint_sal)
826 (create_breakpoint_sal, create_breakpoints_sal)
827 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
828 * breakpoint.h (struct breakpoint) <ops>: Now const.
829 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
832 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
834 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
836 2011-07-25 Pedro Alves <pedro@codesourcery.com>
838 * breakpoint.h (print_recreate_thread): Declare.
839 (struct breakpoint): Move step_count, pass_count,
840 number_on_target, static_trace_marker_id,
841 static_trace_marker_id_idx ...
842 (struct tracepoint): ... to this new struct.
843 (get_tracepoint, get_tracepoint_by_number_on_target)
844 (get_tracepoint_by_number): Change return type to struct
846 * breakpoint.c (is_tracepoint_type): New, factored out from
848 (is_tracepoint): Adjust.
849 (print_one_breakpoint_location): Cast to struct tracepoint as
850 necessary, and adjust.
851 (print_recreate_catch_fork, print_recreate_catch_vfork)
852 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
853 print_recreate_thread.
854 (init_breakpoint_sal): New, factored out from
855 create_breakpoint_sal.
856 (create_breakpoint_sal): Reimplement.
857 (create_breakpoint): Allocate a struct tracecepoint if the caller
858 wanted a tracepoint. Use init_breakpoint_sal and
860 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
861 (print_recreate_masked_watchpoint)
862 (print_recreate_exception_catchpoint): Call print_recreate_thread.
863 (tracepoint_print_one_detail): Adjust.
864 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
865 Dump the pass count here.
866 (update_static_tracepoint): Adjust.
867 (addr_string_to_sals): Adjust.
868 (create_tracepoint_from_upload): Adjust. Change return type to
869 struct tracepoint pointer.
870 (trace_pass_set_count): Change parameter type to struct tracepoint
872 (trace_pass_command): Adjust.
873 (get_tracepoint, get_tracepoint_by_number_on_target)
874 (get_tracepoint_by_number): Change return type to struct
875 tracepoint pointer, and adjust.
876 (print_recreate_thread): New, factored out from save_breakpoints.
877 (save_breakpoints): Don't print thread and task and passcount
879 * remote.c (remote_download_tracepoint): Adjust.
880 * tracepoint.c (trace_actions_command, validate_actionline)
881 (start_tracing, tfind_1, trace_find_tracepoint_command)
882 (trace_dump_command): Adjust.
883 (find_matching_tracepoint): Change return type to struct
884 tracepoint pointer, and adjust.
885 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
886 (tfile_trace_find, tfile_fetch_registers): Adjust.
887 * tracepoint.h (create_tracepoint_from_upload): Change return type
888 to struct tracepoint pointer.
889 * ada-lang.c (print_recreate_exception): Call
890 print_recreate_thread.
891 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
893 2011-07-25 Pedro Alves <pedro@codesourcery.com>
895 * breakpoint.h (struct breakpoint): Move ops as first field. Move
896 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
897 cond_exp_valid_block, val, val_valid, watchpoint_frame,
898 watchpoint_thread, watchpoint_triggered ...
899 (struct watchpoint): ... to this new struct.
900 (is_watchpoint): Declare.
901 (install_breakpoint): Add new `internal' parameter.
902 * breakpoint.c (is_watchpoint): Delete declaration.
903 (set_breakpoint_condition): Handle watchpoints.
904 (is_watchpoint): Make public.
905 (watchpoint_in_thread_scope): Change parameter type to struct
907 (watchpoint_del_at_next_stop): Change parameter type to struct
908 watchpoint. Remove assertion. Adjust.
909 (update_watchpoint): Ditto.
910 (insert_breakpoints, breakpoint_init_inferior)
911 (watchpoints_triggered, watchpoint_check)
912 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
913 (bpstat_stop_status, print_one_breakpoint_location)
914 (print_one_breakpoint_location, watchpoint_locations_match): Cast
915 to struct watchpoint as necessary, and adjust.
916 (install_breakpoint): Add `internal' argument. If true, don't
917 mention the new breakpoint. Use set_breakpoint_number.
918 (create_fork_vfork_event_catchpoint)
919 (create_syscall_event_catchpoint): Adjust.
920 (dtor_watchpoint): New.
921 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
922 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
923 (print_it_watchpoint, print_mention_watchpoint)
924 (print_recreate_watchpoint, insert_masked_watchpoint)
925 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
926 (print_one_detail_masked_watchpoint)
927 (print_mention_masked_watchpoint)
928 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
929 necessary, and adjust.
930 (watch_command_1): Allocate and initialize a struct watchpoint
931 instead of a struct breakpoint. Use install_breakpoint.
932 (catch_exec_command_1): Adjust.
933 (base_breakpoint_dtor): Delete accesses to watchpoint specific
935 (delete_breakpoint, enable_breakpoint_disp)
936 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
937 as necessary, and adjust.
938 (initialize_breakpoint_ops): Install dtor_watchpoint as
939 watchpoints' dtor method.
940 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
941 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
942 to struct watchpoint as necessary, and adjust.
944 2011-07-25 Pedro Alves <pedro@codesourcery.com>
946 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
947 the the base class ops table.
948 (catch_exception_breakpoint_ops)
949 (catch_exception_unhandled_breakpoint_ops)
950 (catch_assert_breakpoint_ops): Don't statically initialize.
951 (initialize_ada_catchpoint_ops): New.
952 (_initialize_ada_language): Call it.
953 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
954 (bkpt_breakpoint_ops): Forward declare.
955 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
956 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
957 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
958 (masked_watchpoint_breakpoint_ops)
959 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
960 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
961 base class ops table.
962 (null_re_set, null_check_status, null_works_in_software_mode)
963 (null_resources_needed, null_print_one_detail): Delete.
964 (bkpt_dtor): Rename to ...
965 (base_breakpoint_dtor): ... this. Make static.
966 (bkpt_allocate_location): Rename to ...
967 (base_breakpoint_allocate_location): ... this. Make static.
968 (base_breakpoint_re_set): New.
969 (internal_error_pure_virtual_called): New.
970 (base_breakpoint_insert_location, base_breakpoint_remove_location)
971 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
972 (base_breakpoint_works_in_software_mode)
973 (base_breakpoint_resources_needed, base_breakpoint_print_it)
974 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
975 (base_breakpoint_print_recreate): New functions.
976 (base_breakpoint_ops): New global.
977 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
978 (bkpt_breakpoint_hit): Make static.
979 (bkpt_check_status): Delete.
980 (bkpt_resources_needed): Make static.
981 (bkpt_works_in_software_mode): Delete.
982 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
984 (bkpt_breakpoint_ops, internal_breakpoint_ops)
985 (momentary_breakpoint_ops): Don't statically initialize.
986 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
988 (tracepoint_insert_location, tracepoint_remove_location)
989 (tracepoint_check_status, tracepoint_works_in_software_mode)
990 (tracepoint_print_it): Delete.
991 (tracepoint_breakpoint_ops): Don't statically initialize.
992 (initialize_breakpoint_ops): New.
993 (_initialize_breakpoint): Call it.
994 * breakpoint.h (null_re_set, null_works_in_software_mode)
995 (null_resources_needed, null_check_status, null_print_one_detail):
996 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
997 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
998 (bkpt_check_status, bkpt_resources_needed)
999 (bkpt_works_in_software_mode, bkpt_print_it)
1000 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1001 Delete declarations.
1002 (initialize_breakpoint_ops): Declare.
1004 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1006 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1007 (momentary_bkpt_print_it): Simplify.
1009 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1011 Split internal, momentary and user breakpoints breakpoint_ops
1014 * breakpoint.c (internal_breakpoint_ops)
1015 (momentary_breakpoint_ops): Forward declare.
1016 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1017 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1018 (create_overlay_event_breakpoint)
1019 (create_std_terminate_master_breakpoint)
1020 (create_exception_master_breakpoint): Create breakpoints with
1021 internal_breakpoint_ops vtable.
1022 (set_longjmp_breakpoint): Create momentary breakpoints with
1023 momentary_breakpoint_ops vtable, using
1024 momentary_breakpoint_from_master.
1025 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1026 (create_solib_event_breakpoint): Create breakpoints with
1027 internal_breakpoint_ops vtable.
1028 (set_momentary_breakpoint): Create breakpoints with
1029 momentary_breakpoint_ops vtable.
1030 (momentary_breakpoint_from_master): New, factored out from
1031 clone_momentary_breakpoint.
1032 (clone_momentary_breakpoint): Adjust.
1033 (watch_command_1): Create scope breakpoints with
1034 momentary_breakpoint_ops vtable.
1035 (bkpt_re_set): Remove handling of internal and momentary
1037 (bkpt_print_mention, bkpt_print_recreate): New.
1038 (bkpt_breakpoint_ops): Adjust.
1039 (internal_bkpt_re_set, internal_bkpt_check_status)
1040 (internal_bkpt_print_it, internal_bkpt_print_mention)
1041 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1042 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1043 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1044 (momentary_bkpt_print_recreate): New.
1045 (momentary_breakpoint_ops): New.
1047 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1049 Implement most breakpoint_ops methods for all breakpoint types,
1050 and move the default handlings to the proper callbacks.
1052 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1053 works_in_software_mode method.
1054 (insert_bp_location): Go through breakpoint_ops->insert_location
1055 for software and hardware watchpoints.
1056 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1058 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1059 for software and hardware watchpoints.
1060 (print_it_typical): Delete.
1061 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1063 (watchpoint_check): Adjust comment.
1064 (bpstat_check_location): Simply always call the breakpoint's
1065 breakpoint_hit method.
1066 (bpstat_stop_status): Always call the breakpoint's check_status
1067 method. Remove special cases for watchpoints and internal event
1068 breakpoints from here (moved to the check_status implementations).
1069 (print_one_breakpoint_location): Assume b->ops is never NULL.
1070 Remove static tracepoint marker id printing from here (moved to
1071 the print_one_detail callback implementation of tracepoints).
1072 (init_bp_location): Assert OPS is never NULL.
1073 (allocate_bp_location): Always call the breakpoint's
1074 allocate_location method, and remove the default code from here.
1075 (free_bp_location): Always call the location's dtor method, and
1076 remove the default code from here.
1077 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1078 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1079 parameter. Pass it down.
1080 (set_raw_breakpoint): Ditto.
1081 (print_it_catch_fork): Adjust to take a bpstat as argument.
1082 (catch_fork_breakpoint_ops): Install methods.
1083 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1084 (catch_vfork_breakpoint_ops): Install methods.
1085 (dtor_catch_syscall): Call the base dtor.
1086 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1087 (catch_syscall_breakpoint_ops): Install methods.
1088 (dtor_catch_exec): Call the base dtor.
1089 (print_it_catch_exec): Adjust to take a bpstat as argument.
1090 (catch_exec_breakpoint_ops): Install methods.
1091 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1092 the breakpoint's resources_needed method, and remove the default
1094 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1096 (clone_momentary_breakpoint): Clone the original's ops.
1097 (mention): Always call the breakpoint's print_mention method, and
1098 remove the default code from here.
1099 (create_breakpoint_sal): Adjust to pass the ops to
1100 set_raw_breakpoint rather than setting it manually.
1101 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1102 ops to set_raw_breakpoint_without_location rather than setting it
1104 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1105 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1106 (ranged_breakpoint_ops): Install methods.
1107 (break_range_command): Adjust to pass the ops to
1108 set_raw_breakpoint rather than setting it manually.
1109 (re_set_watchpoint, breakpoint_hit_watchpoint)
1110 (check_status_watchpoint, resources_needed_watchpoint)
1111 (works_in_software_mode_watchpoint, print_it_watchpoint)
1112 (print_mention_watchpoint, print_recreate_watchpoint): New
1114 (watchpoint_breakpoint_ops): Install new methods.
1115 (print_it_masked_watchpoint): New function.
1116 (masked_watchpoint_breakpoint_ops): Install new methods.
1117 (watch_command_1): Adjust to pass the right breakpoint_ops to
1118 set_raw_breakpoint_without_location rather than setting it
1119 manually later. Record the current pspace.
1120 (print_it_exception_catchpoint): Adjust to take a bpstat as
1122 (gnu_v3_exception_catchpoint_ops): Install new methods.
1123 (say_where): New function.
1124 (null_re_set, null_check_status, null_works_in_software_mode)
1125 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1127 (bp_location_ops): New global.
1128 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1129 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1130 (bkpt_check_status, bkpt_resources_needed)
1131 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1132 (bkpt_print_recreate): New functions.
1133 (bkpt_breakpoint_ops): New global.
1134 (tracepoint_re_set, tracepoint_insert_location)
1135 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1136 (tracepoint_check_status, tracepoint_works_in_software_mode)
1137 (tracepoint_print_it, tracepoint_print_one_detail)
1138 (tracepoint_print_mention, tracepoint_print_recreate): New
1140 (tracepoint_breakpoint_ops): New global.
1141 (delete_breakpoint): Always call the breakpoint's dtor method, and
1142 remove the default handling from here.
1143 (breakpoint_re_set_default): Make static.
1144 (breakpoint_re_set_one): Always call the breakpoints re_set
1145 method, and remove the default handling from here.
1146 (trace_command, ftrace_command, strace_command)
1147 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1148 to create_breakpoint.
1149 (save_breakpoints): Always call the breakpoint's print_recreate
1150 method, and remove the default handling from here.
1152 * ada-lang.c (dtor_exception): Call the base dtor.
1153 (re_set_exception): Call the base method.
1154 (print_it_exception, print_it_catch_exception): Adjust to take a
1156 (catch_exception_breakpoint_ops): Install methods.
1157 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1159 (catch_exception_unhandled_breakpoint_ops): Install methods.
1160 (print_it_catch_assert): Adjust to take a bpstat as argument.
1161 (catch_assert_breakpoint_ops): Install methods.
1163 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1164 to take a bpstat as argument.
1165 (enum print_stop_action): Add describing comments to each enum
1167 (breakpoint_re_set_default): Delete declaration.
1168 (null_re_set, null_works_in_software_mode, null_resources_needed)
1169 (null_check_status, null_print_one_detail): Declare.
1170 (bkpt_breakpoint_ops): Declare.
1171 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1172 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1173 (bkpt_check_status, bkpt_resources_needed)
1174 (bkpt_works_in_software_mode, bkpt_print_it)
1175 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1178 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1179 bkpt_breakpoint_ops.
1180 * python/py-breakpoint.c (bppy_init): Ditto.
1182 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1184 * MAINTAINERS (Write After Approval): Add myself to the list.
1186 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1188 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1190 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1192 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1193 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1194 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1196 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1197 (struct i386_debug_reg_state): New.
1198 (i386_init_dregs): New.
1200 (i386_cleanup_dregs): Use i386_init_dregs.
1201 (i386_show_dr): Add state parameter and adjust.
1202 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1204 (i386_remove_aligned_watchpoint): Likewise.
1205 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1206 (i386_update_inferior_debug_regs): New.
1207 (i386_insert_watchpoint): Work on a local mirror of the debug
1208 registers, and only update the inferior on success.
1209 (i386_remove_watchpoint): Ditto.
1210 (i386_region_ok_for_watchpoint): Adjust.
1211 (i386_stopped_data_address): Adjust.
1212 (i386_insert_hw_breakpoint): Adjust.
1213 (i386_remove_hw_breakpoint): Adjust.
1215 2011-07-22 Tom Tromey <tromey@redhat.com>
1217 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1218 from amd64_pseudo_register_read. Change arguments. Call
1219 mark_value_bytes_unavailable when needed.
1220 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1221 set_gdbarch_pseudo_register_read.
1222 * sentinel-frame.c (sentinel_frame_prev_register): Use
1223 regcache_cooked_read_value.
1224 * regcache.h (regcache_cooked_read_value): Declare.
1225 * regcache.c (regcache_cooked_read_value): New function.
1226 (regcache_cooked_read): Call
1227 gdbarch_pseudo_register_read_value if available.
1228 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1229 (i386_pseudo_register_read): Remove.
1230 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1231 i386_pseudo_register_read. Change arguments. Call
1232 mark_value_bytes_unavailable when needed.
1233 (i386_pseudo_register_read_value): New function.
1234 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1235 not set_gdbarch_pseudo_register_read.
1236 * gdbarch.sh (pseudo_register_read_value): New method.
1237 * gdbarch.c, gdbarch.h: Rebuild.
1238 * findvar.c (value_from_register): Call get_frame_register_value.
1240 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1242 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1244 (display_gdb_prompt): Likewise.
1245 (change_annotation_level): Likewise.
1246 (push_prompt): Likewise.
1247 (pop_prompt): Likewise.
1248 (handle_stop_sig): Use get_prompt with a level.
1249 * top.c (command_loop): Use get_prompt with a level.
1250 (set_async_annotation_level): Use set_prompt with a level.
1251 (get_prefix): New function.
1252 (set_prefix): Ditto.
1253 (set_suffix): Ditto.
1254 (get_suffix): Ditto.
1255 (get_prompt): Accept a level argument.
1256 (set_prompt): Accept a level argument. Free old prompts. Set
1257 new_async_prompt if level is 0.
1258 (init_main): Use set_prompt with a level. Do not set
1260 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1261 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1262 Modify set_prompt, get_prompt to account for levels.
1263 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1265 * python/python.c (before_prompt_hook): Use set_prompt.
1267 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1269 * defs.h: Add guard against inclusion in gdbserver.
1270 (struct ptid, ptid_t): Move to common/ptid.h.
1271 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1272 xsnprintf, internal_error): Move to common/common-utils.h.
1274 * gdb_assert.h: Move into common/ sub-directory.
1275 * gdb_locale.h: Ditto.
1276 * gdb_dirent.h: Ditto.
1277 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1278 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1279 Move into common/ptid.h.
1280 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1281 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1282 Change nomem to malloc_failure.
1283 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1284 * utils.c (nomem): Rename to malloc_failure.
1285 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1286 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1287 (gdb_buildargv): Change nomem to malloc_failure.
1288 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1289 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1290 ptid_is_pid): Move into common/ptid.c.
1291 (initialize_infrun): Delete initialization of null_ptid and
1293 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1294 linux_common_xfer_osdata.
1295 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1296 common/ptid.c and common/buffer.c.
1297 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1298 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1299 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1300 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1302 * common/gdb_assert.h: New.
1303 * common/gdb_dirent.h: New.
1304 * common/gdb_locale.h: New.
1305 * common/buffer.c: New.
1306 * common/buffer.h: New.
1307 * common/ptid.c: New.
1308 * common/ptid.h: New.
1309 * common/xml-utils.c: New.
1310 * common/xml-utils.h: New.
1311 * common/common-utils.c: New.
1312 * common/common-utils.h: New.
1313 * common/linux-osdata.c: New.
1314 * common/linux-osdata.h: New.
1315 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1316 * config/arm/linux.mh (NATDEPFILES): Ditto.
1317 * config/i386/linux.mh (NATDEPFILES): Ditto.
1318 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1319 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1320 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1321 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1322 * config/mips/linux.mh (NATDEPFILES): Ditto.
1323 * config/pa/linux.mh (NATDEPFILES): Ditto.
1324 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1325 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1326 * config/s390/s390.mh (NATDEPFILES): Ditto.
1327 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1328 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1329 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1331 2011-07-21 Matt Rice <ratmice@gmail.com>
1333 * NEWS: Add info macros and info definitions commands.
1335 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1337 * NEWS: Document Python prompt substitution hook.
1339 2011-07-18 Matt Rice <ratmice@gmail.com>
1342 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1343 * macrotab.c (foreach_macro): Ditto.
1344 (foreach_macro_in_scope): Ditto.
1345 * macrocmd.c (print_macro_callback): New function.
1346 (info_macro_command): Move some code to print_macro_definition.
1347 (print_macro_definition): New function.
1348 (print_one_macro): Add new arguments to callback.
1349 (info_definitions_command): New function.
1350 (info_macros_command): Ditto.
1351 (_initialize_macrocmd): Add info macros and info definitions commands.
1352 * symtab.c (add_macro_name): Add new arguments to callback.
1354 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1355 Tom Tromey <tromey@redhat.com>
1357 * top.c (set_prompt): Rewrite to free previous prompt, free
1358 asynch_new_prompt and set both on new prompts.
1359 * event-top.c (display_gdb_prompt): Add prompt substitution
1361 * python/python.c (before_prompt_hook): New function.
1363 2011-07-20 Matt Rice <ratmice@gmail.com>
1365 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1366 arguments to store_unsigned_integer.
1368 2011-07-20 Tom Tromey <tromey@redhat.com>
1370 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1371 in some declaration-only cases.
1373 2011-07-18 Tom Tromey <tromey@redhat.com>
1376 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1377 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1378 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1379 <debug_type_section>: New field.
1380 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1381 (load_cu): Use appropriate section.
1382 (create_signatured_type_table_from_index): Add 'section'
1384 (dwarf2_read_index): Only allow a single .debug_types section.
1385 (dw2_get_file_names): Use appropriate section.
1386 (read_type_comp_unit_head): Add 'section' argument.
1387 (create_debug_types_hash_table): Loop over all .debug_types
1389 (init_cu_die_reader): Use appropriate section.
1390 (process_psymtab_comp_unit, load_partial_comp_unit)
1391 (load_full_comp_unit, read_die_and_children, find_partial_die)
1392 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1393 (lookup_signatured_type_at_offset): Add 'section' argument.
1394 (read_signatured_type_at_offset): Add 'sect' argument.
1395 (read_signatured_type): Use appropriate section.
1396 (set_die_type, get_die_type_at_offset): Update.
1397 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1399 (write_psymtabs_to_index): Don't allow index with more than one
1400 .debug_types section.
1402 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1404 Fix crash if referenced CU is aged out.
1405 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1406 xfree of block.data.
1407 (indirect_pieced_value): New variable back_to, use to for xfree of
1409 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1411 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1412 (load_cu): New function from ...
1413 (dw2_do_instantiate_symtab): ... the code here ...
1414 (process_full_comp_unit): ... and here.
1415 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1418 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1420 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1423 2011-07-19 Gary Benson <gbenson@redhat.com>
1425 * infrun.c (struct execution_control_state): New member
1426 stop_func_filled_in.
1427 (clear_stop_func, fill_in_stop_func): New functions.
1428 (handle_inferior_event): Call clear_stop_func rather than
1429 manipulating the execution control state directly.
1430 Call fill_in_stop_func lazily as required rather than
1431 directly calling find_pc_partial_function in all cases.
1433 2011-07-18 Tom Tromey <tromey@redhat.com>
1435 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1436 checking for variable-sized array.
1438 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1440 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1441 of supported languages.
1442 * varobj.c: Add top definitions and basic implementation of the
1443 following callbacks: ada_number_of_children, ada_name_of_variable,
1444 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1445 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1446 (languages): Register Ada-specific callbacks.
1447 (variable_language): Add the Ada case in the language setter switch.
1449 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1451 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1453 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1456 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1457 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1458 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1459 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1460 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1461 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1462 (struct dwarf_expr_context_funcs): New, move here methods from ...
1463 (struct dwarf_expr_context): ... here. New fields funcs.
1464 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1465 (dwarf_expr_ctx_funcs): New.
1466 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1467 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1468 (needs_frame_ctx_funcs): New.
1469 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1471 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1473 * MAINTAINERS (Write After Approval): Add myself to the list.
1475 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1477 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1478 that CIE pointer of an FDE really points to a CIE .
1480 2011-07-15 Hui Zhu <teawater@gmail.com>
1482 * remote.c (remote_get_trace_status): Add comments.
1484 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1486 Code cleanup - constify struct lval_funcs.
1487 * dwarf2loc.c (pieced_value_funcs): Make it const.
1488 * infrun.c (siginfo_value_funcs): Likewise.
1489 * opencl-lang.c (opencl_value_funcs): Likewise.
1490 * valops.c (value_assign, value_ind): Make the funcs variable const.
1491 * value.c (struct value): Make location.computed.funcs target const.
1492 Rearrange the comments.
1493 (allocate_computed_value): Make the funcs parameter target const.
1494 (value_computed_funcs): Return the funcs target const.
1495 (value_free, value_copy, set_value_component_location): Make the funcs
1497 * value.h (allocate_computed_value): Make the funcs parameter target
1499 (value_computed_funcs): Return the funcs target const.
1500 * windows-tdep.c (tlb_value_funcs): Make it const.
1502 2011-07-14 Hui Zhu <teawater@gmail.com>
1504 * remote.c (remote_get_trace_status): Initialize p.
1506 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1509 * remote.c (remote_get_trace_status): New variable ex. Put
1510 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1512 2011-07-13 Tom Tromey <tromey@redhat.com>
1514 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1515 value_from_contents for final conversion.
1517 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1520 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1521 Indent prototypes so they do not get into tags.
1523 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1525 Code cleanup making also optimized out values lazy.
1526 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1527 allocate_optimized_out_value. Twice.
1528 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1529 * findvar.c (read_var_value): Likewise.
1530 * value.c (allocate_optimized_out_value): New function.
1531 * value.h (allocate_optimized_out_value): New declaration.
1533 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1535 Fix occasional crash of CTRL-C during DWARF read in.
1536 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1538 2011-07-11 Tom Tromey <tromey@redhat.com>
1540 * regcache.c (struct regcache_descr): Fix typo.
1541 * i387-tdep.c (i387_supply_xsave): Fix typo.
1543 2011-07-11 Tom Tromey <tromey@redhat.com>
1545 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1546 (read_file_scope, read_type_unit_scope): Use it.
1548 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1550 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1553 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1556 * python/python.c: Set gdbpy_should_print_stack default to off.
1557 (set_python): Deprecate maint set python print-stack to
1559 (_initialize_python): Deprecate maint set/show python print-stack.
1560 Add new prefix command, python. Add new setting, print-backtrace.
1561 * NEWS: Document set python print-stack. Document default change.
1563 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1565 * python/py-inferior.c (infpy_dealloc): New function.
1566 (inferior_to_inferior_object): Return a new object, or a
1567 new reference to the existing object.
1568 (find_thread_object): Cleanup references to inferior.
1569 (delete_thread_object): Ditto.
1570 * python/py-infthread.c (create_thread_object): Do not increment
1571 inferior reference count.
1573 2011-07-08 Tom Tromey <tromey@redhat.com>
1575 * dwarf2loc.c (locexpr_regname): New function.
1576 (locexpr_describe_location_piece): Use it.
1577 (disassemble_dwarf_expression): Add per_cu argument. Use
1579 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1580 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1582 (locexpr_describe_location_1): Add per_cu argument.
1583 (locexpr_describe_location): Update.
1584 (loclist_describe_location): Update.
1586 2011-07-08 Tom Tromey <tromey@redhat.com>
1588 * dwarf2expr.c (execute_stack_op): Add QUIT.
1590 2011-07-07 Hui Zhu <teawater@gmail.com>
1593 2011-07-06 Hui Zhu <teawater@gmail.com>
1594 * remote.c (remote_start_remote): Add TRY_CATCH for
1595 remote_get_trace_status.
1596 * tracepoint.c (disconnect_tracing): Ditto.
1598 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1600 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1601 variables as signed, not unsigned.
1603 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1605 * jit.c (jit_inferior_init): Reformat forward declaration.
1607 2011-07-06 Matt Rice <ratmice@gmail.com>
1609 * MAINTAINERS (Write After Approval): Add myself to the list.
1611 2011-07-06 Hui Zhu <teawater@gmail.com>
1613 * remote.c (remote_start_remote): Add TRY_CATCH for
1614 remote_get_trace_status.
1615 * tracepoint.c (disconnect_tracing): Ditto.
1617 2011-07-05 Tom Tromey <tromey@redhat.com>
1619 * symtab.c (operator_chars): Now static.
1620 * linespec.c (operator_chars): Don't declare.
1622 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1624 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1626 2011-07-05 Tom Tromey <tromey@redhat.com>
1628 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1629 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1630 (TYPE_CPLUS_REALLY_JAVA): New macro.
1631 * dwarf2read.c (process_structure_scope): Set
1632 TYPE_CPLUS_REALLY_JAVA.
1634 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1636 * ada-lang.c: Fix typos.
1637 * amd64-tdep.c: Likewise.
1638 * breakpoint.c: Likewise.
1639 * cli/cli-decode.c: Likewise.
1640 * findcmd.c: Likewise.
1641 * inline-frame.c: Likewise.
1642 * mi/mi-main.c: Likewise.
1643 * minsyms.c: Likewise.
1644 * monitor.c: Likewise.
1645 * monitor.h: Likewise.
1646 * prologue-value.c: Likewise.
1647 * reverse.c: Likewise.
1648 * s390-tdep.c: Likewise.
1650 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1652 * jit.c (jit_inferior_init): Forward declare.
1653 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1655 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1657 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1659 2011-07-04 Tristan Gingold <gingold@adacore.com>
1661 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1662 (tcb_fieldno): Add activation_link field.
1663 (get_known_tasks_addr): Moved and rewritten.
1664 (get_tcb_types_info): Set activation_link field.
1665 (read_known_tasks_array): Add parameter. Rewritten.
1666 (read_known_tasks_list): New function.
1667 (read_known_tasks): New function.
1668 (ada_build_task_list): Call read_known_tasks instead of
1669 read_known_tasks_array.
1670 * ravenscar-thread.c: Add first_task_name constant.
1671 (has_ravenscar_runtime): Check for task list too.
1673 2011-07-04 Tristan Gingold <gingold@adacore.com>
1675 * ada-tasks.c: Renames fieldno to actb_fieldno.
1676 (ada_get_task_number): Indentation.
1677 (get_tcb_types_info): Remove all parameters. Write directly
1679 (ptid_from_atcb_common): Adjust.
1680 (read_atcb): Adjust.
1682 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1684 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1686 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1688 * ui-out.c (ui_out_field_core_addr): Mention that the function
1689 description is in the header file.
1690 * ui-out.h (ui_out_field_core_addr): Document function.
1692 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1694 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1695 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1697 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1699 * symtab.c (expand_line_sal): Remove empty line.
1701 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1703 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1704 same way as ELFOSABI_NONE.
1705 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1707 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1709 * breakpoint.c: Fix typos in comments.
1710 * linespec.c: Likewise.
1711 * symtab.c: Likewise.
1713 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1715 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1716 section in separate object files.
1718 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1720 Fix false GCC warning.
1721 * linespec.c (decode_line_1): Initialize values.
1723 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1725 * linespec.c (find_method): Accept the function type automatically only
1726 if it was specified with parameter types.
1728 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1730 Stop on first linespec terminator instead of eating what we can.
1731 * linespec.c (is_linespec_boundary): New function.
1732 (name_end): Remove function.
1733 (keep_name_info): New parameter on_boundary, replace the body.
1734 (decode_line_1): Provide the parameter to keep_name_info.
1735 (decode_compound): Likewise. Drop the trailing java return type
1738 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1740 Fall back linespec to minimal symbols.
1741 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1742 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1743 (find_method, symbol_found): Change error to cplusplus_error.
1745 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1747 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1749 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1750 Tom Tromey <tromey@redhat.com>
1752 * dwarf2read.c (check_physname): New variable.
1753 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1754 (show_check_physname): New function.
1755 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1757 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1759 * machoread.c (macho_symfile_read): Delete OBE comment.
1761 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1763 * machoread.c (struct macho_oso_data): Delete.
1764 (current_oso): Delete.
1765 (macho_relocate_common_syms): New function, mostly extracted
1767 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1768 Remove code that sets and unset current_oso.
1769 (macho_symfile_relocate): Delete handling of common symbols,
1770 now moved to macho_relocate_common_syms.
1772 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1774 * darwin-nat.c (darwin_ptrace): Add documentation.
1775 Set errno to zero before calling ptrace. If ptrace returns
1776 -1 and errno is zero, then change then return zero.
1777 (darwin_kill_inferior): Issue a warning instead of triggering
1778 a failed assertion when the PT_KILL ptrace operations returned
1781 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1783 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1784 only when inf->private->no_ptrace.
1786 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1788 * ada-lang.c (print_it_exception): Print temporary catchpoints
1789 as "Temporary catchpoint".
1790 (print_mention_exception): Likewise.
1792 2011-07-01 Tom Tromey <tromey@redhat.com>
1794 * jv-lang.c (java_language_defn): Use java_printchar,
1796 (java_get_encoding): New function.
1797 (java_emit_char): Use generic_emit_char.
1798 (java_printchar): New function.
1799 (java_printstr): Likewise.
1801 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1803 * ada-typeprint.c (print_record_type): If unable to decode
1804 the name of the parent type, use the encoded name.
1806 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1808 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1809 pointer to constrained packed array type output.
1810 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1811 packed array output.
1813 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1815 * ada-typeprint.c (print_array_type): removed if condition on show
1816 being negative for bounds printing.
1818 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1820 * ada-lang.c (ada_identical_enum_types_p): New function.
1821 (symbols_are_identical_enums): New function.
1822 (remove_extra_symbols): Do nothing if NSYMS < 2.
1823 Use symbols_are_identical_enums.
1825 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1827 * ada-valprint.c (ada_value_print): Handle typedefs.
1829 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1831 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1833 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1835 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1836 (decode_constrained_packed_array): Likewise.
1837 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1839 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1841 * ada-exp.y (convert_char_literal): Handle typedef types.
1843 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1845 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1847 2011-06-30 Tom Tromey <tromey@redhat.com>
1849 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1850 * valops.c (find_overload_match): Call do_cleanups on early exit
1852 * solib.c (solib_find): Call do_cleanups on early exit path.
1854 2011-06-30 Tom Tromey <tromey@redhat.com>
1856 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1857 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1858 return paths. Defer final do_cleanups until last return.
1859 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1862 2011-06-30 Tom Tromey <tromey@redhat.com>
1864 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1866 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1868 * MAINTAINERS (Write After Approval): Add myself to the list.
1870 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1872 Disable epilogue unwinders on recent GCCs.
1873 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1874 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1875 * dwarf2read.c (process_full_comp_unit): Initialize
1876 EPILOGUE_UNWIND_VALID.
1877 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1878 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1879 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1881 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1883 Code cleanup - reformatting.
1884 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1885 (producer_is_gcc_ge_4): ... here, change the return value.
1886 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1889 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1891 Fix non-only rename list for Fortran modules import.
1892 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1893 cp_add_using_directive caller.
1894 (cp_add_using_directive): New parameter excludes, describe it. New
1895 variables ix and param. Compare if also excludes match. Allocate NEW
1896 with variable size, initialize EXCLUDES there.
1897 (cp_lookup_symbol_imports): New variable excludep, test
1898 current->EXCLUDES with it.
1899 * cp-support.h: Include vec.h.
1900 (struct using_direct): New field excludes, describe it.
1901 (DEF_VEC_P (const_char_ptr)): New.
1902 (cp_add_using_directive): New parameter excludes.
1903 * defs.h (const_char_ptr): New typedef.
1904 * dwarf2read.c (read_import_statement): New variables child_die,
1905 excludes and cleanups, read in excludes.
1906 (read_namespace): Adjust the cp_add_using_directive caller.
1908 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1911 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1912 negative comparisons.
1914 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
1916 * mi/mi-main.c (mi_cmd_list_features): Emit
1917 breakpoint-notifications.
1919 2011-06-29 Tom Tromey <tromey@redhat.com>
1922 * valprint.h (generic_emit_char, generic_printstr): Declare.
1923 * valprint.c (wchar_printable, append_string_as_wide)
1924 (print_wchar): Move from c-lang.c.
1925 (generic_emit_char): New function; mostly taken from c_emit_char.
1926 (generic_printstr): New function; mostly taken from c_printstr.
1927 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1928 represented as arrays.
1929 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1931 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1932 identically to TYPE_CODE_INT.
1933 * f-lang.c (f_get_encoding): New function.
1934 (f_emit_char): Use generic_emit_char.
1935 (f_printchar): Replace comment.
1936 (f_printstr): Use generic_printstr.
1937 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1938 "character" types specially.
1939 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1941 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1943 (c_emit_char): Call generic_emit_char.
1944 (c_printstr): Call generic_printstr.
1946 2011-06-29 Gary Benson <gbenson@redhat.com>
1948 * breakpoint.c (bpstat_what): Removed duplicated case.
1950 2011-06-28 Tom Tromey <tromey@redhat.com>
1952 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
1954 2011-06-27 Tom Tromey <tromey@redhat.com>
1956 * valops.c (find_overload_match): Call do_cleanups before early
1958 * top.c (execute_command): Call do_cleanups before early return.
1959 (command_loop): Likewise.
1960 * stack.c (backtrace_command): Make a null cleanup early. Don't
1961 conditionally call do_cleanups.
1962 * python/py-value.c (TRY_CATCH): Move cleanup handling into
1964 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
1965 so cleanups are always run.
1966 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
1967 * findcmd.c (parse_find_args): Call do_cleanups on early return
1969 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
1970 Don't conditionally call do_cleanups.
1971 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
1974 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1976 * MAINTAINERS (Write After Approval): Use default email address.
1978 2011-06-27 Joel Brobecker <brobecker@adacore.com>
1980 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
1982 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1984 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
1985 saved_regs_mask and copied_regs_mask fields.
1986 (sparc_record_save_insn): New prototype.
1987 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
1988 (sparc_record_save_insn): New function.
1989 (sparc_analyze_prologue): Add head comment. Recognize store insns
1990 of call-saved registers. Use OFFSET consistently. Recognize flat
1991 frames and cache their settings.
1992 (sparc32_skip_prologue): Handle flat frames.
1993 (sparc_frame_cache): Add frame_offset to the base address.
1994 (sparc32_frame_cache): Adjust to new frame description.
1995 (sparc32_frame_prev_register): Likewise.
1996 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1997 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1998 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1999 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2000 frame by calling sparc_record_save_insn.
2001 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2002 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2003 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2005 2011-06-27 Tristan Gingold <gingold@adacore.com>
2007 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2008 field by map_addr and map_len.
2009 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2010 (munmap_section_buffer): Likewise.
2012 2011-06-24 Tom Tromey <tromey@redhat.com>
2014 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2015 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2016 * python/python.c (gdbpy_parameter): Make 'arg' const.
2017 (execute_gdb_command): Likewise.
2018 (gdbpy_decode_line): Likewise. Copy it.
2019 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2020 (gdbpy_write): Make 'arg' const.
2021 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2023 (gdbpy_lookup_type): Likewise.
2024 * python/py-prettyprint.c (print_children): Make 'name' const.
2025 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2026 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2028 * python/py-function.c (fnpy_init): Make 'name' const.
2029 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2030 (gdbpy_string_to_argv): Make 'input' const.
2031 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2033 * gdbtypes.h (lookup_typename): Update.
2034 * gdbtypes.c (lookup_typename): Make 'name' const.
2035 (lookup_struct): Likewise.
2036 (lookup_union): Likewise.
2037 (lookup_enum): Likewise.
2039 2011-06-24 Tom Tromey <tromey@redhat.com>
2041 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2042 gdb_thread_db.h. Move all common/ entries to be together.
2043 (TAGS): Don't depend on DEPFILES.
2045 2011-06-23 Yao Qi <yao@codesourcery.com>
2047 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2048 * remote.c (remote_start_remote): ... here.
2049 * monitor.c (monitor_open): ... here.
2051 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2053 * gdbtypes.c (append_composite_type_field_aligned): Fix
2054 calculation of bit position based on alignment.
2056 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2058 * breakpoint.c (bpstat_stop_status): Call the check_status
2059 breakpoint_ops method.
2060 (print_one_breakpoint_location): Also print the condition for Ada
2061 exception catchpoints.
2062 (allocate_bp_location): New, factored out from
2063 allocate_bp_location.
2064 (allocate_bp_location): Adjust. Call the owner breakpoint's
2065 allocate_location method, if there is one.
2066 (free_bp_location): Call the locations's dtor method, if there is
2068 (init_raw_breakpoint_without_location): New breakpoint_ops
2070 (set_raw_breakpoint_without_location): Adjust.
2071 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2072 (set_raw_breakpoint): Adjust.
2073 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2074 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2075 re_set and check_status methods.
2076 (init_catchpoint): Don't memset, initialize thread, addr_string
2077 and enable_state. Pass the ops down to init_raw_breakpoint.
2078 (install_catchpoint): Rename to ...
2079 (install_breakpoint): ... this, and make extern.
2080 (create_fork_vfork_event_catchpoint): Adjust.
2081 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2082 re_set and check_status methods.
2083 (create_syscall_event_catchpoint): Adjust.
2084 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2085 (masked_watchpoint_breakpoint_ops): Install NULL
2086 allocate_location, re_set and check_status methods.
2087 (catch_exec_command_1): Adjust.
2088 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2089 re_set and check_status methods.
2090 (create_ada_exception_breakpoint): Rename to ...
2091 (init_ada_exception_breakpoint): ... this. Add a struct
2092 breakpoint parameter, and delete the exp_string, cond_string and
2093 cond parameters. Use init_raw_breakpoint, and don't install or
2094 mention the breakpoint yet. Don't clear breakpoint fields that
2095 init_raw_breakpoint already clears.
2096 (re_set_breakpoint): Delete, split into ...
2097 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2099 (breakpoint_re_set_one): Call the breakpoint's
2100 breakpoint_ops->re_set implementation, if there's one. Adjust.
2101 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2102 (struct bp_location_ops): New type.
2103 (struct bp_location): New field `ops'.
2104 (struct breakpoint_ops): New `allocate_location', `re_set' and
2105 `check_status' fields. Make `breakpoint_hit''s description match
2107 (init_bp_location): Declare.
2108 (breakpoint_re_set_default): Declare.
2109 (create_ada_exception_breakpoint): Rename to ...
2110 (init_ada_exception_breakpoint): ... this. Add a struct
2111 breakpoint parameter, and delete the exp_string, cond_string and
2113 (install_breakpoint): Declare.
2114 * ada-lang.c: Include exceptions.h.
2115 <Ada exceptions description>: Update.
2116 (struct ada_catchpoint_location): New type.
2117 (ada_catchpoint_location_dtor): New function.
2118 (ada_catchpoint_location_ops): New global.
2119 (ada_catchpoint): New type.
2120 (create_excep_cond_exprs): New function.
2121 (dtor_exception, allocate_location_exception, re_set_exception)
2122 (should_stop_exception, check_status_exception): New functions.
2123 (print_one_exception, print_mention_exception)
2124 (print_recreate_exception): Adjust.
2125 (dtor_catch_exception, allocate_location_catch_exception)
2126 (re_set_catch_exception, check_status_catch_exception): New
2128 (catch_exception_breakpoint_ops): Install them.
2129 (dtor_catch_exception_unhandled)
2130 (allocate_location_catch_exception_unhandled)
2131 (re_set_catch_exception_unhandled)
2132 (check_status_catch_exception_unhandled): New functions.
2133 (catch_exception_unhandled_breakpoint_ops): Install them.
2134 (dtor_catch_assert, allocate_location_catch_assert)
2135 (re_set_catch_assert, check_status_catch_assert): New functions.
2136 (catch_assert_breakpoint_ops): Install them.
2137 (ada_exception_catchpoint_p): Delete.
2138 (catch_ada_exception_command_split)
2139 (ada_exception_catchpoint_cond_string): Rename exp_string
2140 parameter to excep_string. Adjust.
2141 (ada_parse_catchpoint_condition): Delete.
2142 (ada_exception_sal): Rename the exp_string parameter to
2143 excep_string. Delete the cond_string and cond parameters.
2145 (ada_decode_exception_location): Rename the exp_string parameter
2146 to excep_string. Delete the cond_string and cond parameters.
2148 (create_ada_exception_catchpoint): New function.
2149 (catch_ada_exception_command, ada_decode_assert_location)
2150 (catch_assert_command): Adjust.
2151 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2153 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2155 * ada-lang.c: Include arch-utils.h.
2156 (ada_decode_exception_location): Make static.
2157 (catch_ada_exception_command): Moved here from breakpoint.c.
2158 (ada_decode_assert_location): Make static.
2159 (catch_assert_command): Moved here from breakpoint.c.
2160 (_initialize_ada_lang): Install the exception and assert
2161 catchpoint commands here.
2162 * ada-lang.h (ada_decode_exception_location)
2163 (ada_decode_assert_location): Delete declarations.
2164 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2166 (create_ada_exception_breakpoint): Make extern.
2167 (catch_ada_exception_command, catch_assert_command): Moved to
2169 (add_catch_command): Make extern.
2170 (_initilize_breakpoint): Don't install the exception and assert
2171 catchpoint commands here.
2172 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2174 (add_catch_command, create_ada_exception_breakpoint): Declare.
2176 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2178 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2179 the breakpoint to the breakpoint chain here.
2180 (set_raw_breakpoint_without_location): Add the breakpoint to the
2181 breakpoint chain here.
2182 (init_raw_breakpoint): Adjust comments.
2183 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2185 (init_catchpoint): Don't set the catchpoint's breakpoint number
2187 (install_catchpoint): New function.
2188 (create_fork_vfork_event_catchpoint)
2189 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2190 use install_catchpoint.
2192 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2194 * breakpoint.c (create_catchpoint_without_mention)
2195 (create_catchpoint): Delete.
2197 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2199 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2200 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2201 reference to exec_pathname.
2202 (struct exec_catchpoint): New type.
2203 (dtor_catch_exec): New function.
2204 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2205 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2206 (catch_exec_command_1): Adjust to use init_catchpoint.
2207 (delete_breakpoint): Remove reference to exec_pathname.
2209 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2211 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2212 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2213 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2214 reference to syscalls_to_be_caught.
2215 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2217 (struct syscall_catchpoint): New type.
2218 (dtor_catch_syscall): New function.
2219 (insert_catch_syscall, remove_catch_syscall)
2220 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2221 (print_recreate_catch_syscall): Adjust.
2222 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2223 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2224 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2225 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2226 (masked_watchpoint_breakpoint_ops)
2227 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2228 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2229 there is one. Remove references to syscalls_to_be_caught.
2230 (catching_syscall_number): Adjust.
2231 * ada-lang.c (catch_exception_breakpoint_ops)
2232 (catch_exception_unhandled_breakpoint_ops)
2233 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2235 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2237 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2239 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2240 reference to forked_inferior_pid.
2241 (struct fork_catchpoint): New type.
2242 (breakpoint_hit_catch_fork, print_it_catch_fork)
2243 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2244 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2245 (create_fork_vfork_event_catchpoint): Adjust to use
2248 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2250 * breakpoint.c (add_to_breakpoint_chain)
2251 (init_raw_breakpoint_without_location): New functions, factored
2253 (set_raw_breakpoint_without_location): ... this one.
2254 (init_raw_breakpoint): New function, factored out from
2255 set_raw_breakpoint and adjusted to use
2256 init_raw_breakpoint_without_location.
2257 (set_raw_breakpoint): Adjust.
2258 (init_catchpoint): New function, factored out from
2259 create_catchpoint_without_mention and adjusted to use
2260 init_raw_breakpoint.
2261 (create_catchpoint_without_mention): Adjust.
2263 2011-06-22 Tom Tromey <tromey@redhat.com>
2265 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2266 argument of 0 specially.
2268 2011-06-22 Yao Qi <yao@codesourcery.com>
2270 * infrun.c (handle_inferior_event): Remove write-only local variable
2271 `sw_single_step_trap_p'.
2273 2011-06-20 Tom Tromey <tromey@redhat.com>
2275 * symtab.c (lookup_language_this): End loop if block is NULL.
2277 2011-06-17 Tom Tromey <tromey@redhat.com>
2279 * valops.c (value_of_this): Use lookup_language_this.
2280 * symtab.h (lookup_language_this): Declare.
2281 * symtab.c (lookup_language_this): New function.
2282 (lookup_symbol_aux): Use lookup_language_this.
2283 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2285 2011-06-17 Tom Tromey <tromey@redhat.com>
2287 * value.h (value_of_this): Update.
2288 (value_of_local): Remove.
2289 * valops.c (value_of_this): Rename from value_of_local. Change
2291 * p-exp.y (exp): Update.
2292 (variable): Likewise.
2293 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2295 2011-06-17 Tom Tromey <tromey@redhat.com>
2297 * valops.c (value_of_local): Complain if NAME is NULL.
2298 * std-operator.def (OP_OBJC_SELF): Remove.
2299 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2300 * objc-exp.y (name_not_typename): Use OP_THIS.
2301 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2303 <OP_OBJC_SELF>: Remove.
2304 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2306 2011-06-16 Tristan Gingold <gingold@adacore.com>
2308 * python/py-events.h (gdb_py_events): Make it extern.
2309 * python/py-evtregistry.c (gdb_py_events): Declare.
2311 2011-06-16 Hui Zhu <teawater@gmail.com>
2313 * remote.c (remote_trace_set_readonly_regions): Add check for
2314 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2317 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2319 * arm-linux-tdep.c: Include "auxv.h".
2321 (ARM_LINUX_SIZEOF_VFP): Define.
2322 (arm_linux_supply_vfp): New function.
2323 (arm_linux_collect_vfp): Likewise.
2324 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2325 (arm_linux_fpa_regset_sections): New variable.
2326 (arm_linux_vfp_regset_sections): Likewise.
2327 (arm_linux_core_read_description): New function.
2328 (arm_linux_init_abi): Install arm_linux_core_read_description and
2329 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2330 appropriate for the architecture.
2331 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2332 (tdesc_arm_with_m): Declare.
2333 (tdesc_arm_with_iwmmxt): Likewise.
2334 (tdesc_arm_with_vfpv2): Likewise.
2335 (tdesc_arm_with_vfpv3): Likewise.
2336 (tdesc_arm_with_neon): Likewise.
2337 * arm-linux-nat.c: Move features/*.c includes ...
2338 * arm-tdep.c: ... here.
2339 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2340 target description data structures ...
2341 * arm-tdep.c (_initialize_arm_tdep): ... here.
2342 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2343 HWCAP_VFPv3D16): Move definitions ...
2344 * arm-linux-tdep.h: ... here.
2346 2011-06-15 Hui Zhu <teawater@gmail.com>
2348 * remote.c (remote_trace_set_readonly_regions): Add a check for
2351 2011-06-14 Tom Tromey <tromey@redhat.com>
2353 * coffread.c (coffread_objfile): Rename from current_objfile.
2354 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2355 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2357 2011-06-14 Tom Tromey <tromey@redhat.com>
2359 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2360 (class_symtab): Remove.
2361 (jv_dynamics_progspace_key): New global.
2362 (jv_per_objfile_free): Reset program space data. Update assert.
2363 Don't clear globals.
2364 (get_dynamics_objfile): Use and set program space data.
2365 (get_java_class_symtab): Use get_dynamics_objfile.
2366 (add_class_symbol): Likewise.
2367 (java_link_class_type): Likewise.
2368 (java_object_type, jv_clear_object_type, set_java_object_type):
2370 (get_java_object_type): Update. Don't cache result.
2371 (is_object_type): Don't call set_java_object_type.
2372 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2373 initialize jv_dynamics_progspace_key.
2375 2011-06-14 Tom Tromey <tromey@redhat.com>
2377 * symtab.h (current_objfile): Don't declare.
2378 * objfiles.h (current_objfile): Don't declare.
2379 * objfiles.c (current_objfile): Remove.
2380 * mdebugread.c (current_objfile): New file-scope global.
2381 * dbxread.c (current_objfile): New file-scope global.
2382 * coffread.c (current_objfile): New file-scope global.
2384 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2386 * top.h (line): Rename to ...
2387 (saved_command_line): ... this.
2388 (linesize): Rename to ...
2389 (saved_command_line_size): ... this.
2390 * top.c (line): Rename to ...
2391 (saved_command_line): ... this.
2392 (linesize): Rename to ...
2393 (saved_command_line_size): ... this.
2394 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2395 * event-top.c (command_line_handler): Adjust.
2396 * main.c (captured_main): Adjust.
2398 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2400 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2401 get_frame_func instead of get_frame_pc to determine the code
2402 address used to construct the frame ID.
2403 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2404 (i386_epilogue_frame_this_id): Likewise.
2405 (i386_epilogue_frame_prev_register): New function.
2406 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2407 (i386_stack_tramp_frame_sniffer): Fix coding style.
2408 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2409 (i386_gdbarch_init): Fix comments.
2411 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2413 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2414 instruction when walking back through the instruction stream.
2416 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2418 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2419 fullname parameters order.
2421 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2424 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2426 * psymtab.c (map_symbol_filenames_psymtab)
2427 (map_partial_symbol_filenames): Likewise.
2428 * psymtab.h: Include symfile.h.
2429 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2430 * symfile.h (symbol_filename_ftype): New.
2431 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2432 map_symbol_filenames, clarify more the naming in comment.
2434 2011-06-07 Doug Evans <dje@google.com>
2436 * cc-with-index.sh: Fix typos in comment.
2437 Look for ../../gdb, for fullname.exp.
2439 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2440 Pedro Alves <pedro@codesourcery.com>
2442 * cli/cli-cmds.c (shell_escape): Use waitpid.
2443 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2445 2011-06-07 Tristan Gingold <gingold@adacore.com>
2447 * xcoffread.c (dwarf2_xcoff_names): New variable.
2448 (aix_process_linenos): Add a guard.
2449 (xcoff_symfile_finish): Free dwarf2.
2450 (xcoff_initial_scan): Add dwarf2 support.
2452 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2454 * infcall.c (run_inferior_call): Don't mask async. Instead force
2455 a synchronous wait, if the target can async.
2457 * target.h (struct target_ops): Delete to_async_mask.
2458 (target_async_mask): Delete.
2459 * target.c (update_current_target): Delete references to to_async_mask.
2460 * linux-nat.c (linux_nat_async_mask_value): Delete.
2461 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2462 to linux_nat_async_mask_value.
2463 (linux_nat_async_mask): Delete.
2464 (linux_nat_async, linux_nat_close): Remove references to
2465 linux_nat_async_mask_value.
2466 * record.c (record_async_mask_value): Delete.
2467 (record_async): Remove references to record_async_mask_value.
2468 (record_async_mask): Delete.
2469 (record_can_async_p, record_is_async_p): Remove references to
2470 record_async_mask_value.
2471 (init_record_ops, init_record_core_ops): Remove references to
2473 * remote.c (remote_async_mask_value): Delete.
2474 (init_remote_ops): Remove reference to remote_async_mask.
2475 (remote_can_async_p, remote_is_async_p): Remove references to
2476 remote_async_mask_value.
2477 (remote_async): Remove references to remote_async_mask_value.
2478 (remote_async_mask): Delete.
2480 * infrun.c (fetch_inferior_event): Don't claim registers changed
2481 if the current thread is already not executing.
2483 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2485 From Stephen Kitt <steve@sk2.org>
2486 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2487 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2489 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2491 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2492 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2494 2011-06-03 Tom Tromey <tromey@redhat.com>
2496 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2498 * python/py-exitedevent.c (create_exited_event_object): Change
2499 type of 'exit_code'. Optionally add exit_code attribute.
2500 (emit_exited_event): Change type of 'exit_code'.
2501 * python/py-event.h (emit_exited_event): Update.
2502 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2503 * infrun.c (handle_inferior_event): Set exit code fields on
2505 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2507 * inferior.c (exit_inferior_1): Initialize new fields.
2509 2011-06-03 Tom Tromey <tromey@redhat.com>
2511 * dwarf2expr.c (get_signed_type): New function.
2512 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2514 2011-06-02 Keith Seitz <keiths@redhat.com>
2516 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2518 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2520 * top.h (simplified_command_loop): Delete declaration.
2522 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2524 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2525 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2527 2011-06-01 Yao Qi <yao@codesourcery.com>
2529 * objfiles.h (obj_section_addr): Update reference to objfile from
2531 (obj_section_endaddr): Likewise.
2533 2011-06-01 Daniel Jacobowitz <drow@false.org>
2535 * MAINTAINERS: Update my email address and affiliation. Also
2536 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2538 2010-05-31 Keith Seitz <keiths@redhat.com>
2541 * linespec.c (get_search_block): New function.
2542 (find_methods): Add FILE_SYMTATB parameter and use it and
2543 get_search_block to pass an appropriate block to
2544 lookup_symbol_in_namespace.
2545 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2546 Check if *ARGPTR starts with a filename first.
2547 If it does, call locate_first_half again to locate the next
2548 "first half" of the linespec.
2549 Pass FILE_SYMTATB to decode_objc and decode_compound.
2550 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2551 (locate_first_half): Stop on the first colon seen.
2552 (decode_compound): Add FILE_SYMTAB parameter.
2553 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2554 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2555 get_search_block with lookup_symbol.
2556 (find_method): Add FILE_SYMTAB parameter and pass it to
2558 (decode_objc): Use get_search_block.
2560 2010-05-31 Keith Seitz <keiths@redhat.com>
2563 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2564 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2565 and CP_ANONYMOUS_NAMESPACE_LEN.
2566 (cp_is_anonymous): Likewise.
2567 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2568 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2569 * dwarf2read.c (namespace_name): Likewise.
2570 (fixup_partial_die): Likewise.
2571 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2572 seen in the input, keep it.
2574 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2576 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2577 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2578 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2579 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2580 * remote.c (_initialize_remote): Register
2581 async_remote_interrupt_twice directly as
2582 sigint_remote_twice_token event.
2584 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2586 * target.h (enum inferior_event_type): Delete INF_ERROR.
2587 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2589 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2591 * interps.c (interp_set): Don't cancel continuations.
2593 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2595 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2597 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2599 * continuations.h (continuation_ftype): Add `err' parameter.
2600 Document parameters.
2601 (do_all_continuations, do_all_continuations_thread)
2602 (do_all_intermediate_continuations)
2603 (do_all_intermediate_continuations_thread)
2604 (do_all_inferior_continuations): Add `err' parameter.
2605 * continuations.c (do_my_continuations_1, do_my_continuations)
2606 (do_all_inferior_continuations, do_all_continuations_ptid)
2607 (do_all_continuations_thread_callback)
2608 (do_all_continuations_thread, do_all_continuations)
2609 (do_all_intermediate_continuations_thread_callback)
2610 (do_all_intermediate_continuations_thread)
2611 (do_all_intermediate_continuations): Add `err' parameter, and pass
2612 it down all the way to the continuations proper.
2613 * inf-loop.c (inferior_event_handler): If fetching an inferior
2614 event throws an error, don't pop the target, and still call the
2615 continuations, but with `err' set. Adjust all other continuation
2617 * breakpoint.c (until_break_command_continuation): Add `err'
2619 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2620 issue another step if `err' is set.
2621 (struct until_next_continuation_args): New.
2622 (until_next_continuation): Add `err' parameter. Adjust.
2623 (until_next_command): Adjust.
2624 (struct finish_command_continuation_args): Add `thread' field.
2625 (finish_command_continuation): Add `err' parameter. Handle it.
2626 (finish_forward): Adjust.
2627 (attach_command_continuation): Add `err' parameter. Handle it.
2628 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2629 cancel the continuations.
2630 * interps.c (interp_set): Adjust to cancel the continuations.
2631 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2632 continuations rather than discarding.
2633 (free_thread): Don't clear thread inferior resources here.
2634 (delete_thread_1): Do it here instead. And do it before removing
2635 the thread from the threads list. Tag the thread as exited before
2636 clearing thread inferior resources.
2638 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2640 * infcall.c (call_function_by_hand): Rephrase error message.
2642 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2644 * defs.h (struct thread_info, struct inferior): Delete forward
2646 * breakpoint.h (struct thread_info): New forward declaration.
2647 * observer.sh (struct inferior): New forward declaration.
2648 * python/python-internal.h (struct inferior): New forward
2651 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2653 * defs.h (struct continuation, continuation_ftype)
2654 (continuation_free_arg_ftype, add_continuation)
2655 (do_all_continuations, do_all_continuations_thread)
2656 (discard_all_continuations, discard_all_continuations_thread)
2657 (add_intermediate_continuation, do_all_intermediate_continuations)
2658 (do_all_intermediate_continuations_thread)
2659 (discard_all_intermediate_continuations)
2660 (discard_all_intermediate_continuations_thread)
2661 (add_inferior_continuation, do_all_inferior_continuations)
2662 (discard_all_inferior_continuations): Move to ...
2663 * continuations.h: ... this new file.
2664 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2665 infcmd.c, inferior.c, infrun.c, interps.c: Include
2668 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2669 Doug Evans <dje@google.com>
2671 Fix PR 10970, PR 12702.
2672 * linux-nat.c (linux_lwp_is_zombie): New function.
2673 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2674 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2676 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2678 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2680 (add_continuation, add_intermediate_continuation)
2681 (add_inferior_continuation): Use them.
2682 * continuations.c (struct continuation): Use them.
2683 (make_continuation_ftype): Delete.
2684 (make_continuation, add_inferior_continuation, add_continuation)
2685 (add_intermediate_continuation): Use continuation_ftype and
2686 continuation_free_arg_ftype. Rename parameters to shorter names.
2688 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2690 * continuations.c (make_continuation): Make it return void.
2691 (do_my_continuations): Rename to ...
2692 (do_my_continuations_1): ... this. Remove old_chain parameter and
2694 (do_my_continuations): New.
2695 (discard_my_continuations): Rename to ...
2696 (discard_my_continuations_1): ... this. Remove old_chain
2697 parameter and adjust.
2698 (discard_my_continuations): New.
2699 (add_inferior_continuation): Simplify.
2700 (do_all_inferior_continuations): Reimplement on top
2701 do_my_continuations.
2702 (discard_all_inferior_continuations): Simplify.
2703 (add_continuation): Simplify.
2704 (do_all_continuations_ptid): Simplify.
2705 (discard_all_continuations_thread_callback): Simplify.
2706 (add_intermediate_continuation): Simplify.
2707 (discard_all_intermediate_continuations_thread_callback):
2710 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2712 * utils.c (struct continuation, add_continuation)
2713 (add_inferior_continuation)
2714 (do_all_inferior_continuations, discard_all_inferior_continuations)
2715 (restore_thread_cleanup, do_all_continuations_ptid)
2716 (do_all_continuations_thread_callback)
2717 (do_all_continuations_thread, do_all_continuations)
2718 (discard_all_continuations_thread_callback)
2719 (discard_all_continuations_thread, discard_all_continuations)
2720 (add_intermediate_continuation)
2721 (do_all_intermediate_continuations_thread_callback)
2722 (do_all_intermediate_continuations_thread)
2723 (do_all_intermediate_continuations)
2724 (discard_all_intermediate_continuations_thread_callback)
2725 (discard_all_intermediate_continuations_thread)
2726 (discard_all_intermediate_continuations): Move to ...
2727 * continuations.c: ... this new file, and adjust to no longer
2728 implement continuations on top of cleanups.
2729 * Makefile.in (SFILES): Add continuations.c.
2730 (COMMON_OBS): Add continuations.o.
2732 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2734 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2735 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2736 Internal error on invalid values.
2737 * reverse.c: Don't handle EXEC_ERROR.
2738 * mi/mi-main.c: Don't handle EXEC_ERROR.
2740 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2742 * record.c: Include event-loop.h, inf-loop.h.
2743 (record_beneath_to_async): New global.
2744 (tmp_to_async): New global.
2745 (record_async_inferior_event_token): New global.
2746 (record_open_1): Don't error out if async is enabled.
2747 (record_open): Handle to_async. Create an async event source in
2749 (record_close): Delete the async event source.
2750 (record_resumed): New global.
2751 (record_execution_dir): New global.
2752 (record_resume, record_core_resume): Set them. Register the
2753 target on the event loop.
2754 (record_wait): Rename to ...
2755 (record_wait_1): ... this. Add more debug output. Handle
2756 TARGET_WNOHANG, and the target beneath returning
2757 TARGET_WAITKIND_IGNORE.
2758 (record_wait): Reimplement on top of record_wait_1.
2759 (record_async_mask_value): New global.
2760 (record_async, record_async_mask, record_can_async_p)
2761 (record_is_async_p, record_execution_direction): New functions.
2762 (init_record_ops, init_record_core_ops): Install new methods.
2763 * infrun.c (fetch_inferior_event): Temporarily switch the global
2764 execution direction to the direction the target was going.
2765 (execution_direction): Change type to int.
2766 * target.c (default_execution_direction): New function.
2767 (update_current_target): Inherit and de_fault
2768 to_execution_direction.
2769 * target.h (struct target_ops) <to_execution_direction>: New
2771 (target_execution_direction): New macro.
2772 * inferior.h (execution_direction): Change type to int.
2774 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2776 * infcall.c (call_function_by_hand): Don't allow calling functions
2777 in reverse execution mode.
2779 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2781 * infcmd.c (finish_command): Allow async finish in reverse.
2783 2011-05-26 Yao Qi <yao@codesourcery.com>
2785 * gdb_thread_db.h: Delete. Move to ...
2786 * common/gdb_thread_db.h: ... here.
2788 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2790 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2791 function's entry point instead of a manually managed momentary
2792 breakpoint, and only ever issue one proceed call.
2793 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2794 doing a reverse-finish, switch to stepi mode, to do another step.
2795 (insert_step_resume_breakpoint_at_sal): Make public.
2796 (normal_stop): No need to save function value return registers if
2798 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2800 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2802 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2803 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2804 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2806 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2807 step-resume breakpoints.
2808 (print_it_typical): Handle bp_hp_step_resume.
2809 (bpstat_what): Ditto.
2810 (bptype_string): Ditto.
2811 (print_one_breakpoint_location): Ditto.
2812 (allocate_bp_location): Ditto.
2814 (breakpoint_re_set_one): Ditto.
2815 * infrun.c (handle_inferior_event): Adjust. Split
2816 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2817 BPSTAT_WHAT_HP_STEP_RESUME.
2818 (insert_step_resume_breakpoint_at_sal): Rename to ...
2819 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2820 parameter. Handle it.
2821 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2822 insert_step_resume_breakpoint_at_sal_1.
2823 (insert_step_resume_breakpoint_at_frame): Rename to ...
2824 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2825 set a high-priority step-resume breakpoint.
2826 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2827 (insert_step_resume_breakpoint_at_caller): Ditto.
2829 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2831 * breakpoint.c (iterate_over_related_breakpoints): New.
2832 (do_map_delete_breakpoint): New.
2833 (delete_command): Pass do_map_delete_breakpoint to
2834 map_breakpoint_numbers.
2835 (do_disable_breakpoint): New.
2836 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2838 (do_enable_breakpoint): Rename to ...
2839 (enable_breakpoint_disp): ... this.
2840 (enable_breakpoint): Adjust.
2841 (do_enable_breakpoint): New.
2842 (enable_once_breakpoint): Delete.
2843 (do_map_enable_breakpoint): New.
2844 (do_map_enable_once_breakpoint): New.
2845 (enable_once_command, enable_delete_command)
2846 (delete_trace_command): Iterate over the breakpoint's related
2849 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2851 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2852 for ALPHA_ZERO_REGNUM.
2853 (alpha_supply_int_regs): Explicitly supply zero as the value for
2854 ALPHA_ZERO_REGNUM in the register cache.
2855 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2857 2011-05-26 Yao Qi <yao@codesourcery.com>
2859 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2861 2011-05-26 Tristan Gingold <gingold@adacore.com>
2863 * symfile.h (struct dwarf2_section_names): New type.
2864 (struct dwarf2_debug_sections): New type.
2865 (dwarf2_has_info): Add parameter.
2866 * dwarf2read.c (dwarf2_elf_names): New variable.
2867 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2868 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2869 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2870 (dwarf2_has_info): Add names parameter. Pass names
2871 to dwarf2_locate_sections.
2872 (section_is_p): Rewrite using the names parameter.
2873 (dwarf2_locate_sections): Use section names from the names parameter.
2874 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2875 * elfread.c (read_psyms): Ditto.
2876 * machoread.c (macho_symfile_read): Ditto.
2878 2011-05-25 Andreas Schwab <schwab@redhat.com>
2881 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2883 2011-05-24 Keith Seitz <keiths@redhat.com>
2886 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2887 (decode_compound): Unconditionally call keep_name_info.
2889 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2891 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2892 scope, clear its command list.
2893 (map_breakpoint_numbers): Don't walk the related breakpoints list
2896 2011-05-24 Tom Tromey <tromey@redhat.com>
2898 * MAINTAINERS: Move Jim Blandy to past maintainers.
2900 2011-05-24 Tristan Gingold <gingold@adacore.com>
2902 * symfile.h (enum dwarf2_section_enum): New type.
2903 (dwarf2_get_section_info): New prototype.
2904 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2905 section_name by sect. Use a switch to select the info.
2906 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2907 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2909 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2911 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2912 shared library event breakpoint if there's no execution.
2914 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2916 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2917 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2919 2011-05-23 Tom Tromey <tromey@redhat.com>
2921 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2924 2011-05-23 Doug Evans <dje@google.com>
2926 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2927 entry for RuntimeError to doc string.
2929 2011-05-23 Jerome Guitton <guitton@adacore.com>
2931 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2932 sequence for probing loops.
2934 2011-05-23 Pedro Alves <pedro@codesourcery.com>
2936 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2939 2011-05-21 Mark Kettenis <kettenis@gnu.org>
2941 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2942 zero as the value for %g0 in the register cache.
2943 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2944 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2946 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2948 * infrun.c (proceed): Set previous_inferior_ptid here.
2949 (init_wait_for_inferior): Initialize previous_inferior_ptid from
2950 inferior_ptid, not null_ptid.
2951 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
2952 (fetch_inferior_event): Nor here.
2954 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2956 * inf-loop.c (inferior_event_handler): Only output a message if
2959 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
2961 * MAINTAINERS: Update my e-mail address.
2963 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2965 * infrun.c (proceed): Switch the inferior event loop to
2966 INF_EXEC_COMPLETE if the target refused to resume from a
2969 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2971 * infcmd.c: Include "inf-loop.h".
2972 (step_once): When stepping into an inline subroutine, pretend the
2973 target has run. If the target can async, switch the inferior
2974 event loop to INF_EXEC_COMPLETE.
2975 * inferior.h (user_visible_resume_ptid): Declare.
2976 * infrun.c (user_visible_resume_ptid): New function, factored out
2979 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
2980 that the current thread is running. Merge async and sync
2983 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2985 * infcmd.c (step_1): Simplify synchronous case.
2987 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2989 * tracepoint.c: Include exceptions.h.
2990 (TFILE_PID): Move higher in file.
2991 (tfile_open): Delay pushing the tfile target until we're assured
2992 the tfile header is present in the file. Wrap reading the initial
2993 newline-terminated lines in TRY_CATCH. Pop the target if the
2994 initial setup failed. Add the tfile's thread immediately
2995 aftwards, before any non-essential setup. Don't skip
2996 post_create_inferior if there are no traceframes present in the
2998 (tfile_close): Remove redundant check for null before xfree call.
2999 (tfile_thread_alive): New function.
3000 (init_tfile_ops): Register it as to_thread_alive callback.
3002 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3004 * tracepoint.c (tfile_open): Delete #if 0'd code.
3006 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3008 Fix -readnow for -gdwarf-4 unused type units.
3009 * dwarf2read.c (struct signatured_type): Remove the field offset.
3010 (create_signatured_type_table_from_index): Remove its initialization.
3011 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3012 instead. Add a complaint call.
3013 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3014 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3015 (lookup_signatured_type_at_offset, read_signatured_type)
3016 (write_one_signatured_type): Update the field for per_cu.
3018 2011-05-19 Tom Tromey <tromey@redhat.com>
3020 * python/py-inferior.c (python_inferior_exit): Use
3022 (python_on_resume): Likewise.
3024 2011-05-19 Matt Rice <ratmice@gmail.com>
3026 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3028 2011-05-19 Hui Zhu <teawater@gmail.com>
3030 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3032 2011-05-19 Hui Zhu <teawater@gmail.com>
3034 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3036 2011-05-18 Tom Tromey <tromey@redhat.com>
3038 * dwarf2read.c (dwarf2_add_field): Constify.
3039 * value.c (value_static_field): Constify.
3040 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3042 * ax-gdb.c (gen_static_field): Constify
3044 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3046 * linux-nat.c (kill_callback): Use SIGKILL first.
3048 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3050 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3052 2011-05-18 Tom Tromey <tromey@redhat.com>
3054 * value.c (value_fn_field): Constify.
3055 * symtab.c (gdb_mangle_name): Constify.
3056 * stabsread.c (update_method_name_from_physname): Make 'physname'
3058 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3059 const. Use explicit fputc_filtered loop.
3060 (pascal_type_print_base): Constify.
3061 * p-lang.h (pascal_type_print_method_args): Update.
3062 * linespec.c (add_matching_methods): Constify.
3063 (add_constructors): Likewise.
3064 * jv-typeprint.c (java_type_print_base): Constify.
3065 * gdbtypes.h (struct cplus_struct_type)
3066 <fn_fieldlist.fn_field.physname>: Now const.
3067 * dwarf2read.c (compute_delayed_physnames): Constify.
3068 (dwarf2_add_member_fn): Likewise.
3069 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3071 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3073 * infrun.c (resume): Mention which is the current thread, and its
3074 current PC in debug output.
3075 (prepare_to_proceed): Mention the thread switching in debug
3078 2011-05-18 Tom Tromey <tromey@redhat.com>
3080 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3081 path check. Use xmalloc and cleanups.
3082 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3084 2011-05-17 Tom Tromey <tromey@redhat.com>
3086 * cp-valprint.c (cp_print_value_fields): Catch errors from
3089 2011-05-17 Tom Tromey <tromey@redhat.com>
3091 * dwarf2read.c (dwarf2_get_die_type): Call
3092 get_die_type_at_offset.
3093 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3094 get_base_type function.
3096 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3098 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3101 2011-05-16 Doug Evans <dje@google.com>
3103 * python/py-auto-load.c (source_section_scripts): Mention objfile
3106 2011-05-15 Doug Evans <dje@google.com>
3108 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3109 (try_thread_db_load_from_pdir): Call it. If unable to find
3110 libthread_db in directory of libpthread, see if we're looking at
3111 the separate-debug-info copy.
3113 * python/py-autoload.c (print_script): Print "Missing" instead of
3114 "No" for missing scripts.
3115 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3117 2011-05-13 Doug Evans <dje@google.com>
3119 * ui-file.c (stdio_file_write_async_safe): Add comment.
3121 2011-05-14 Hui Zhu <teawater@gmail.com>
3123 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3125 2011-05-13 Doug Evans <dje@google.com>
3127 Support $pdir and $sdir in libthread-db-search-path.
3128 * NEWS: Mention $sdir,$pdir.
3129 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3130 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3131 (try_thread_db_load_from_sdir): New function.
3132 (try_thread_db_load_from_dir): New function.
3133 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3134 system directories if search of libthread-db-search-path fails,
3135 that is now done via $sdir.
3136 (has_libpthread): New function.
3137 (thread_db_load): Remove search for libthread_db in directory of
3138 libpthread, that is now done via $pdir.
3140 * NEWS: Mention "info auto-load-scripts".
3141 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3142 script_not_found_warning_printed.
3143 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3144 all callers updated. Initialize script_not_found_warning_printed.
3145 (get_auto_load_pspace_data_for_loading): New function.
3146 (maybe_add_script): New function.
3147 (source_section_scripts): Simplify. Only print one warning regardless
3148 of the number of auto-load scripts not found.
3149 (clear_section_scripts): Clear script_not_found_warning_printed.
3150 (auto_load_objfile_script): Record script in hash table.
3151 (count_matching_scripts): New function.
3152 (maybe_print_script): Renamed from maybe_print_section_script, all
3153 callers updated. Rewrite to use ui_out_*.
3154 (info_auto_load_scripts): Renamed from
3155 maintenance_print_section_scripts, all callers updated.
3156 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3157 renamed as "info auto-load-scripts".
3159 2011-05-13 Tom Tromey <tromey@redhat.com>
3161 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3162 (read_sleb128): Likewise.
3164 2011-05-13 Tom Tromey <tromey@redhat.com>
3166 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3169 2011-05-13 Doug Evans <dje@google.com>
3171 * linux-nat.c (debug_linux_nat_async): Delete.
3172 Replace all references to use debug_linux_nat instead.
3173 (show_debug_linux_nat_async): Delete.
3174 (sigchld_handler): Call ui_file_write_async_safe instead of
3176 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3177 * ui-file.c (struct ui_file): New member to_write_async_safe.
3178 (null_file_write_async_safe): New function.
3179 (ui_file_write_async_safe): New function.
3180 (set_ui_file_write_async_safe): New function.
3181 (ui_file_new): Initialize to_write_async_safe.
3182 (stdio_file_write_async_safe): New function.
3183 (struct stdio_file): New member fd.
3184 (stdio_file_new): Initialize to_write_async_safe, fd.
3185 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3187 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3188 (set_ui_file_write_async_safe): Declare.
3189 (ui_file_write_async_safe): Declare.
3191 2011-05-13 Tom Tromey <tromey@redhat.com>
3193 * utils.c (do_value_free): New function.
3194 (make_cleanup_value_free): Likewise.
3195 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3197 (dwarf2_loc_desc_needs_frame): Call
3198 make_cleanup_value_free_to_mark.
3199 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3200 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3202 (new_dwarf_expr_context): Don't call value_mark.
3203 * dwarf2-frame.c (execute_stack_op): Call
3204 make_cleanup_value_free_to_mark.
3205 * defs.h (make_cleanup_value_free): Declare.
3207 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3209 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3210 prepare_execute_command.
3211 * top.c (prepare_execute_command): Return cleanup.
3212 (execute_command): Use cleanup from prepare_execute_command.
3213 * top.h (prepare_execute_command): Change prototype to return
3215 * defs.h (struct value): Add opaque declaration.
3216 (make_cleanup_value_free_to_mark): Add prototype.
3217 * utils.c (do_value_free_to_mark): New function.
3218 (make_cleanup_value_free_to_mark): Likewise.
3220 2011-05-12 Tom Tromey <tromey@redhat.com>
3222 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3223 cast left-hand-side to unsigned.
3225 2011-05-12 Tom Tromey <tromey@redhat.com>
3228 * value.h (value_from_contents): Declare.
3229 * value.c (value_from_contents): New function.
3230 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3231 (dwarf2_get_die_type): New function.
3232 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3233 (allocate_piece_closure): Acquire reference to values.
3234 (read_pieced_value): Update for value-based expressions.
3235 (write_pieced_value): Likewise.
3236 (free_pieced_value_closure): Call value_free as needed.
3237 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3238 Update for value-based expressions.
3239 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3240 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3241 <get_base_type>: New field.
3242 (struct dwarf_expr_piece) <v.value>: Change type.
3243 <v.regno>: New field.
3244 (struct dwarf_expr_context) <mark>: New field.
3245 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3246 (dwarf_expr_pop, dwarf_expr_push): Remove.
3247 (dwarf_expr_push_address): Declare.
3248 * dwarf2expr.c (dwarf_arch_cookie): New global.
3249 (struct dwarf_gdbarch_types): New.
3250 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3252 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3254 (dwarf_expr_push_address): New function.
3255 (dwarf_expr_pop): Now static.
3256 (dwarf_expr_fetch): Change return type.
3257 (dwarf_require_integral): New function.
3258 (dwarf_expr_fetch): Simplify.
3259 (add_piece): Update.
3260 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3262 (execute_stack_op) <sign_ext>: Remove.
3263 Use values for DWARF stack.
3264 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3265 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3267 (_initialize_dwarf2expr): New function.
3268 (add_piece): Update.
3269 (new_dwarf_expr_context): Set new field.
3270 (free_dwarf_expr_context): Call value_free_to_mark.
3271 * dwarf2-frame.c (no_base_type): New function.
3272 (execute_stack_op): Set get_base_type field. Update.
3274 2011-05-12 Tom Tromey <tromey@redhat.com>
3276 * dwarf2read.c (read_common_block): Fix formatting.
3278 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3280 * breakpoint.c (disable_breakpoint): Disable all locations
3281 associated with a tracepoint on target if a trace experiment is
3283 (disable_command): Disable a specific tracepoint location on target if
3284 a trace experiment is running.
3285 (do_enable_breakpoint): Enable all locations associated with a
3286 tracepoint on target if a trace experiment is running.
3287 (enable_command) Enable a specific tracepoint location on target if a
3288 trace experiment is running.
3289 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3290 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3291 to_disable_tracepoint.
3292 * target.h: Add declaration of struct bp_location.
3293 (struct target_ops): Add new functions
3294 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3295 to_disable_tracepoint to target operations.
3296 (target_supports_enable_disable_tracepoint): New macro.
3297 (target_enable_tracepoint): New macro.
3298 (target_disable_tracepoint): New macro.
3299 * remote.c (struct remote_state): Add new field.
3300 (remote_enable_disable_tracepoint_feature): New.
3301 (remote_protocol_features): Add new entry.
3302 (remote_supports_enable_disable_tracepoint): New.
3303 (remote_enable_tracepoint): New.
3304 (remote_disable_tracepoint): New.
3305 (init_remote_ops): Add remote_enable_tracepoint,
3306 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3307 to remote operations.
3308 * tracepoint.c (start_tracing): Allow tracing to start without any
3309 tracepoints enabled with just a warning if they can be re-enabled
3311 * NEWS: Add news item for the new behaviour of the enable and disable
3312 GDB commands when applied to tracepoints.
3313 Add news items for the new remote packets QTEnable and QTDisable.
3315 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3317 * config.in: Regenerate.
3318 * configure: Regenerate.
3319 * configure.ac <--with-system-readline> (for readline_echoing_p):
3321 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3322 (tui_old_rl_echoing_p): ... here.
3323 (tui_setup_io): Rename extern declaration readline_echoing_p to
3324 _rl_echoing_p. Adjust assignments for the both renames.
3326 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3328 * symtab.c (lookup_symtab): Run cleanup before returning.
3330 2011-05-11 Tom Tromey <tromey@redhat.com>
3332 * dwarf2read.c (handle_data_member_location): New function.
3333 (dwarf2_add_field): Use it.
3334 (read_common_block): Likewise.
3336 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3338 Make addrs->SECTINDEX always defined.
3339 * symfile.c (relative_addr_info_to_section_offsets): Check for
3340 SECTINDEX -1, not for zero ADDR.
3341 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3342 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3343 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3346 2011-05-10 Doug Evans <dje@google.com>
3348 * linux-thread-db.c: Whitespace cleanup.
3349 (try_thread_db_load_1): Fix comment.
3351 * linux-thread-db.c (set_libthread_db_search_path): New function.
3352 (_initialize_thread_db): Add setter for libthread-db-search-path.
3354 2011-05-09 Doug Evans <dje@google.com>
3356 * NEWS: Mention --with-iconv-bin.
3357 * configure.ac: New option --with-iconv-bin.
3358 * configure: Regenerate.
3359 * config.in: Regenerate.
3360 * defs.h (relocate_gdb_directory): Declare.
3361 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3362 removed progname parameter, and exported. All callers updated.
3363 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3365 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3366 adding missing call to restore_child_signals_mask.
3368 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3370 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3372 * infrun.c (proceed, start_remote): Adjust.
3373 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3374 and adjust to not handle it.
3375 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3376 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3377 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3378 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3379 * windows-nat.c (do_initial_windows_stuff): Adjust.
3380 * infcmd.c (attach_command): Adjust.
3381 (notice_new_inferior): Adjust.
3383 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3385 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3386 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3387 * spu-tdep.c (op_selb): Use correct value.
3389 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3391 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3392 "parent" parameter to symbol_file_add_from_bfd call.
3394 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3395 Thiago Jung Bauermann <bauerman@br.ibm.com>
3397 Implement support for PowerPC BookE masked watchpoints.
3398 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3400 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3401 method. Initialize to NULL in all existing breakpoint_ops instances.
3402 (struct breakpoint) <hw_wp_mask>: New field.
3403 * breakpoint.c (is_masked_watchpoint): Add prototype.
3404 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3405 breakpoint's breakpoint_ops.works_in_software_mode if available.
3406 (watchpoints_triggered): Handle the case of a hardware masked
3408 (watchpoint_check): Likewise.
3409 (works_in_software_mode_watchpoint): New function.
3410 (insert_masked_watchpoint, remove_masked_watchpoint)
3411 (resources_needed_masked_watchpoint)
3412 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3413 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3414 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3416 (masked_watchpoint_breakpoint_ops): New structure.
3417 (watch_command_1): Check for the existence of the `mask' parameter.
3418 Set b->ops according to the type of hardware watchpoint being created.
3419 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3420 (ppc_linux_remove_mask_watchpoint)
3421 (ppc_linux_masked_watch_num_registers): New functions.
3422 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3423 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3424 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3425 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3426 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3427 (target_masked_watch_num_registers): New functions.
3428 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3429 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3431 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3432 (target_masked_watch_num_registers): Add prototypes.
3434 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3437 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3438 (producer_is_gcc_ge_4_0): New function.
3439 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3440 symtab->language code.
3441 (var_decode_location): Set cu->has_loclist.
3442 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3443 skip. Intialize force_skip from locations_valid. Move the prologue
3444 skipping code into two passes.
3445 * symtab.h (struct symtab): Make the primary field a bitfield. New
3446 field locations_valid.
3448 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3450 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3451 (classify_inner_name): Call cp_lookup_nested_type with
3453 * cp-namespace.c (cp_lookup_nested_type): New variable
3454 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3455 type_name_no_tag_or_error with saved_parent_type.
3456 * dwarf2read.c (load_partial_dies): Read in any children of
3457 DW_TAG_typedef with complaint in such case.
3458 * gdbtypes.c (type_name_no_tag_or_error): New function.
3459 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3460 * valops.c (destructor_name_p): New comment for parameter type. Remove
3461 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3462 * value.h (destructor_name_p): Remove type const.
3464 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3466 * symtab.c (compare_symbol_name): New function.
3467 (completion_list_add_name, expand_partial_symbol_name): Call it,
3468 remove the variable ncmp.
3469 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3472 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3474 Demote to sw watchpoint only in update_watchpoint.
3475 * breakpoint.c (update_watchpoint): Change between software and
3476 hardware watchpoint for all kinds of watchpoints, not just
3477 read/write ones. Determine b->exact value here instead of
3478 in watch_command_1. Error out if there are not enough resources
3479 for a read or access hardware watchpoint.
3480 (watch_command_1): Remove logic of checking whether there are
3481 enough resources available, since update_watchpoint will do that
3482 work now. Don't set b->exact here. Catch exceptions thrown by
3483 update_watchpoint and delete the watchpoint.
3484 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3485 Use target_exact_watchpoints instead.
3486 (delete_breakpoint): Notify observers only if deleted watchpoint
3487 has a breakpoint number assigned to it.
3489 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3491 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3493 2011-05-05 Jerome Guitton <guitton@adacore.com>
3495 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3497 (i386_stack_tramp_frame_unwind): New static global.
3498 (i386_match_pattern): New function, extracted from i386_match_insn.
3499 (i386_match_insn): Use i386_match_pattern.
3500 (i386_match_insn_block): New function.
3501 (i386_tramp_chain_in_reg_insns)
3502 (i386_tramp_chain_on_stack_insns): New static variables.
3503 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3506 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3508 * configure.host (xscale*): Don't handle target.
3509 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3512 2011-05-04 Yao Qi <yao@codesourcery.com>
3514 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3516 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3519 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3520 | * elfread.c (elf_symtab_read): Stop memory leak.
3522 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3524 * nto-tdep.c (nto_target): Replace deprecated call to
3525 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3527 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3529 Fix false GCC warning.
3530 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3532 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3534 * breakpoint.c (update_watchpoint): Move code to change
3535 the enable state of breakpoint from here ...
3536 (do_enable_breakpoint): ... to here.
3538 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3540 * valprint.c (val_print_array_elements): Fixed poor performance
3541 of printing very large arrays with repeat_count_threshold set
3542 to unlimited. New comment.
3544 2011-04-29 Tom Tromey <tromey@redhat.com>
3546 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3547 (mi_parse): Likewise.
3548 * breakpoint.c (break_range_command): Use sizeof char*, not
3550 (create_breakpoint): Likewise.
3551 (parse_breakpoint_sals): Likewise.
3553 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3555 * linux-nat.c (linux_child_remove_fork_catchpoint)
3556 (linux_child_remove_vfork_catchpoint)
3557 (linux_child_remove_exec_catchpoint): New functions.
3558 (linux_target_install_ops): Install them.
3560 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3564 * varobj.c (install_default_visualizer): Do not install a
3565 visualizer if the varobj is CPLUS_FAKE_CHILD.
3566 (construct_visualizer): Likewise.
3568 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3570 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3571 case insensitive comparison.
3573 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3575 * infrun.c (proceed): Revert previous change.
3576 (resume): Instead, handle the case of signal delivery while stepping
3577 off a breakpoint location here, and only if software single-stepping
3578 is used. Handle nested signals.
3580 2011-04-28 Yao Qi <yao@codesourcery.com>
3582 * arm-tdep.c (copy_unmodified): Rename to ...
3583 (arm_copy_unmodified): .. this. New.
3584 (copy_preload): Move common part to ...
3585 (install_preload): .. this. New.
3586 (arm_copy_preload): New.
3587 (copy_preload_reg): Move common part to ...
3588 (install_preload_reg): ... this. New.
3589 (arm_copy_preload_reg): New.
3590 (copy_b_bl_blx): Move common part to ...
3591 (install_b_bl_blx): .. this. New.
3592 (arm_copy_b_bl_blx): New.
3593 (copy_bx_blx_reg): Move common part to ...
3594 (install_bx_blx_reg): ... this. New.
3595 (arm_copy_bx_blx_reg): New.
3596 (copy_alu_reg): Move common part to ...
3597 (install_alu_reg): ... this. New.
3598 (arm_copy_alu_reg): New.
3599 (copy_alu_shifted_reg): Move common part to ...
3600 (install_alu_shifted_reg): ... this. New.
3601 (copy_ldr_str_ldrb_strb): Move common part to ...
3602 (install_ldr_str_ldrb_strb): ... this. New.
3603 (arm_copy_ldr_str_ldrb_strb): New.
3604 (copy_copro_load_store): Move some common part to ...
3605 (install_copy_copro_load_store): ... this. New.
3606 (arm_copy_copro_load_store): New.
3608 (arm_copy_svc): Renamed from copy_svc.
3609 (copy_undef): Delete.
3610 (arm_copy_undef): Renamed from copy_undef.
3611 (decode_ext_reg_ld_st): Delete.
3612 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3613 (decode_svc_copro): Delete.
3614 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3615 (copy_copro_load_store, copy_alu_imm): update callers.
3616 (copy_extra_ld_st, copy_block_xfer): Likewise.
3617 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3618 (decode_miscellaneous, decode_dp_misc): Likewise.
3619 (decode_ld_st_word_ubyte, decode_media): Likewise.
3620 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3621 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3622 (decode_unconditional, decode_miscellaneous): Likewise.
3623 (decode_media, decode_b_bl_ldmstm): Likewise.
3624 (arm_process_displaced_insn): Likewise..
3625 (decode_misc_memhint_neon): Delete.
3626 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3627 (decode_miscellaneous): Delete.
3628 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3629 (decode_dp_misc): Delete.
3630 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3631 (decode_ld_st_word_ubyte): Delete.
3632 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3633 (decode_media): Delete.
3634 (arm_decode_media): Renamed from decode_media.
3635 (decode_b_bl_ldmstm): Delete.
3636 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3637 (decode_ext_reg_ld_st): Delete.
3638 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3639 (decode_unconditional): Delete.
3640 (arm_decode_unconditional): Renamed from decode_unconditional.
3642 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3644 Case insensitive lookups implementation.
3645 * dwarf2read.c: Include ctype.h.
3646 (struct mapped_index): New field version.
3647 (mapped_index_string_hash): New parameter index_version. New comment
3648 for it. Call tolower appropriately.
3649 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3650 Choose the right index version for mapped_index_string_hash.
3651 (dwarf2_read_index): Support also the index version 5. Initialize the
3652 new struct mapped_index field version.
3653 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3654 (find_slot): Explain the version needs. Pass INT_MAX for the new
3656 (write_psymtabs_to_index): Produce version 5.
3657 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3658 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3659 * psymtab.c (lookup_partial_symbol): Find the
3660 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3662 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3664 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3665 (completion_list_add_name): New variable ncmp, initialize it, use it.
3666 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3667 * utils.c (strcmp_iw): Support case_sensitive_off.
3668 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3669 New function comment part. New variables saved_string1,
3670 saved_string2 and case_pass. Add a proper second pass.
3672 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3674 Replace re_comp/re_exec by regcomp/regexec.
3675 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3676 (search_symbols_name_matches): Use them, use regexec.
3677 (search_symbols): New variable retval_chain, adjust the use of
3678 old_chain against it. Replace re_comp by regcomp. Use the new struct
3679 search_symbols_data fields, use regexec instead of re_exec.
3681 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3683 Format the code for the next patch.
3684 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3685 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3686 New variables c1 and c2.
3688 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3690 * infrun.c (proceed): Do not single-step into signal delivery
3691 when stepping off a breakpoint location.
3692 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3693 (insert_step_resume_breakpoint_at_caller): Likewise.
3694 (insert_step_resume_breakpoint_at_sal): Likewise.
3695 (insert_longjmp_resume_breakpoint): Likewise.
3697 2011-04-27 Yao Qi <yao@codesourcery.com>
3699 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3701 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3703 * procfs.c (procfs_pass_signals): Fix advance declaration.
3705 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3707 * target.h (struct target_ops): Remove to_notice_signals;
3708 add to_pass_signals.
3709 (target_notice_signals): Remove.
3710 (target_pass_signals): Add prototype.
3711 * target.c (update_current_target): Remove to_notice_signals;
3712 mention to_pass_signals.
3713 (target_pass_signals): New function.
3714 (debug_to_notice_signals): Remove.
3715 (setup_target_debug): Do not install debug_to_notice_signals.
3717 * infrun.c (signal_pass): New global.
3718 (resume): Call target_pass_signals.
3719 (handle_inferior_event): Report all signals while stepping over
3720 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3721 are re-inserted when stepping over a signal handler.
3722 (signal_cache_update): New function.
3723 (signal_stop_update): Call it.
3724 (signal_print_update): Likewise.
3725 (signal_pass_update): Likewise.
3726 (handle_command): Call signal_cache_update and target_pass_signals
3727 instead of target_notice_signals.
3728 (_initialize_infrun): Initialize signal_pass.
3730 * linux-nat.c (pass_mask): New global.
3731 (linux_nat_pass_signals): New function.
3732 (linux_nat_create_inferior): Report all signals initially.
3733 (linux_nat_attach): Likewise.
3734 (linux_nat_resume): Use pass_mask to decide whether to directly
3735 handle an inferior signal.
3736 (linux_nat_wait_1): Likewise.
3737 (linux_nat_add_target): Install to_pass_signals callback.
3739 * nto-procfs.c (notice_signals): Remove.
3740 (procfs_resume): Do not call notice_signals.
3741 (procfs_notice_signals): Remove.
3742 (procfs_pass_signals): New function.
3743 (init_procfs_ops): Install to_pass_signals callback instead of
3744 to_notice_signals callback.
3745 (_initialize_procfs): Report all signals initially.
3747 * procfs.c (procfs_notice_signals): Remove.
3748 (procfs_pass_signals): New function.
3749 (procfs_target): Install to_pass_signals callback instead of
3750 to_notice_signals callback.
3751 (register_gdb_signals): Remove.
3752 (procfs_debug_inferior): Report all signals initially.
3753 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3755 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3756 parameters; use them instead of calling signal_..._state routines.
3757 (remote_notice_signals): Remove.
3758 (remote_start_remote): Report all signals initially.
3759 (remote_resume): Do not call remote_pass_signals.
3760 (_initialize_remote): Install to_pass_signals callback instead of
3761 to_notice_signals callback.
3763 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3765 * breakpoint.c (user_settable_breakpoint): Delete.
3766 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3767 (delete_command): Check user_breakpoint_p instead of looking at
3768 the breakpoint's type.
3769 (disable_command): Ditto.
3770 (enable_command): Ditto.
3771 (delete_trace_command): Use user_breakpoint_p instead of looking
3772 at the breakpoint number directly. When checking if there are
3773 user visible tracepoints, in order to know whether to ask the user
3774 for confirmation, check whether the breakpoint is actually a
3777 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3779 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3782 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3784 MI breakpoint notifications.
3786 * annotate.c (breakpoint_changed): Adjust parameter type.
3787 * breakpoint.c (set_breakpoint_condition): Adjust to change
3788 in breakpoint_modified type.
3789 (breakpoint_set_commands): Likewise.
3790 (do_map_commands_command): Likewise.
3791 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3792 changed after bumping hit count.
3793 (bpstat_stop_status): Likewise.
3794 (print_one_breakpoint_location): Don't wrap in tuple here.
3795 (print_one_breakpoint): Always print individual locations.
3796 For locations, use unnamed tuple.
3797 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3799 (create_catchpoint, create_syscall_event_catchpoint): Call
3800 breakpoint_created obsever.
3801 (mention): Don't call breakpoint_created observer.
3802 (create_breakpoint_sal): Call breakpoint_created observer.
3803 (create_breakpoint, watch_command_1): Likewise.
3804 (create_ada_exception_breakpoint): Likewise.
3805 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3806 (locations_are_equal): New.
3807 (update_breakpoint_locations): If locations were changed, notify.
3808 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3809 Call breakpoint_modified observer.
3811 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3812 (mi_cmd_break_insert): Don't set observers for modify and delete.
3813 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3814 (mi_breakpoint_created, mi_breakpoint_deleted)
3815 (mi_breakpoint_modified): New.
3816 (mi_interpreter_init): Hook the above.
3817 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3818 while -break-* commands are executing.
3819 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3820 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3822 (mi_ui_out_impl): Hook in mi_redirect.
3823 (mi_field_skip): True to the name, skip the field, don't output
3824 a field with an empty value.
3826 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3827 (gdbpy_breakpoint_deleted): Adjust.
3828 * tui/tui-hooks.c (tui_event_create_breakpoint)
3829 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3831 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3833 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3834 (procfs_remove_hw_watchpoint): Likewise.
3836 2011-04-26 Michael Walle <michael@walle.cc>
3838 * remote.c (remote_start_remote): Ack packet after sending the
3841 2011-04-26 Yao Qi <yao@codesourcery.com>
3843 * linux-nat.c: Move common macros to ...
3844 Include linux-ptrace.h.
3845 * common/linux-ptrace.h: ... here. New.
3847 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3849 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3850 !objfile_has_partial_symbols. New comment.
3851 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3852 SYM_READ_PSYMBOLS is not present. Extend the comment.
3853 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3855 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3857 * defs.h (ENUM_BITFIELD): Remove.
3859 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3860 Eli Zaretskii <eliz@gnu.org>
3862 * NEWS: Document the new gdbserver --once option.
3864 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3866 * MAINTAINERS: Update my email address.
3868 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3870 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3871 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3872 function call if __STDC_ISO_10646__ macro is defined.
3873 (intermediate_encoding): New prototype.
3874 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3875 to generate compile time error for unsupported gdb_wchar_t size.
3876 (ENDIAN_SUFFIX): New macro.
3877 (intermediate_encoding): New function.
3879 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3881 * ada-lang.c (struct add_partial_datum): Update the comment for
3882 expand_partial_symbol_name.
3883 (ada_add_partial_symbol_completions): Rename to ...
3884 (ada_expand_partial_symbol_name): ... here, change return type, update
3885 function comment, call symbol_completion_match instead of
3886 symbol_completion_add.
3887 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3888 and ada_expand_partial_symbol_name.
3889 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3891 (dw2_map_symbol_names): Remove.
3892 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3893 * psymtab.c (map_symbol_names_psymtab): Remove.
3894 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3895 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3897 (psym_functions): Unlist map_symbol_names_psymtab.
3898 (map_partial_symbol_names): Rename to ...
3899 (expand_partial_symbol_names): ... here, change the FUN type, call
3900 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3901 * psymtab.h (map_partial_symbol_names): Rename to ...
3902 (expand_partial_symbol_names): ... here, change the FUN type.
3903 * symfile.h (struct quick_symbol_functions): Update the description of
3904 expand_symtabs_matching. Remove map_symbol_names.
3905 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3906 (struct add_name_data): Update the comment for
3907 expand_partial_symbol_name.
3908 (add_partial_symbol_name): Rename to ...
3909 (expand_partial_symbol_name): ... here. Replace
3910 completion_list_add_name call by strncmp.
3911 (default_make_symbol_completion_list_break_on): Use now
3912 expand_partial_symbol_names and expand_partial_symbol_name.
3913 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3915 2011-04-20 Tom Tromey <tromey@redhat.com>
3917 * dwarf2read.c (save_gdb_index_command): Replace format
3918 documentation with a pointer to the manual.
3920 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3922 * regcache.c: Include remote.h.
3923 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3924 (regcache_dump): Handle regcache_dump_remote.
3925 (maintenance_print_remote_registers): New function.
3926 (_initialize_regcache): Install "maint print remote-registers"
3928 * remote.c (map_regcache_remote_table): New function, factored out
3930 (init_remote_state): ... here.
3931 (remote_register_number_and_offset): New.
3932 * remote.h (remote_register_number_and_offset): Declare.
3934 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3936 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3937 null_ptid, assume and allow a NULL address space, instead of
3938 asking the target for the ptid's address space.
3939 * infrun.c (ptid_is_pid): Remove assertion.
3941 2011-04-19 Tom Tromey <tromey@redhat.com>
3943 * windows-tdep.c (windows_xfer_shared_library):
3944 * windows-nat.c (get_module_name, windows_make_so):
3945 * v850-tdep.c (v850_handle_pushm):
3946 * utils.c (null_cleanup, gdb_realpath):
3947 * ui-out.c (get_next_header):
3948 * tracepoint.c (clear_traceframe_info):
3949 * symtab.c (lookup_symtab):
3950 * serial.h (struct serial_ops):
3951 * mipsread.c (read_alphacoff_dynamic_symtab):
3952 * infcmd.c (print_return_value):
3953 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
3954 * f-exp.y (parse_number):
3955 * exceptions.c (catch_exceptions):
3956 * dummy-frame.c (dummy_frame_this_id):
3957 * defs.h (struct cleanup):
3958 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
3959 * arm-tdep.c (arm_push_dummy_call):
3960 * amd64-tdep.h (amd64_collect_xsave):
3961 * amd64-tdep.c (amd64_collect_xsave):
3962 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
3963 * README (typing): Remove duplicate words.
3964 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
3965 * infrun.c (siginfo_value_read): Fix typo.
3966 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
3967 * top.c (source_line_number): Add comma.
3969 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
3971 * thread.c (any_live_thread_of_process): Prioritize threads
3972 that are not executing.
3973 * gdbthread.h (any_live_thread_of_process): Update comment
3974 as per above change.
3976 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
3978 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
3979 (scan_xcoff_symtab): Likewise.
3981 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3983 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
3986 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3987 Pedro Alves <pedro@codesourcery.com>
3989 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
3990 variables to simplify code and avoid == operator at end of
3991 line as this is against GNU coding standards.
3993 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3995 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
3996 lm_name to name_lm to avoid conflict with lm_name function.
3998 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4000 ARI fixes: Use only lowercase function name for static functions.
4001 * nto-tdep.c (LM_ADDR): Rename to...
4002 (lm_addr): New function name.
4003 (nto_relocate_section_addresses): Adapt to change above.
4004 * solib-sunos.c (LM_ADDR): Rename to...
4005 (lm_addr): New function name.
4006 (LM_NEXT): Rename to...
4007 (lm_next): New function name.
4008 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4009 function name changes above.
4010 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4011 (lm_addr_from_link_map): New function name.
4012 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4013 (has_lm_dynamic_from_link_map): New function name.
4014 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4015 (lm_dynamic_from_link_map): New function name.
4016 (LM_ADDR_CHECK): Rename to...
4017 (lm_addr_check): New function name.
4018 (LM_NEXT): Rename to...
4019 (lm_next): New function name.
4020 (LM_PREV): Rename to...
4021 (lm_prev): New function name.
4022 (LM_NAME): Rename to...
4023 (lm_name): New function name.
4024 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4025 (ignore_first_link_map_entry): New function name.
4026 (svr4_keep_data_in_core): Adapt to function name changes above.
4027 (svr4_current_sos): Likewise.
4028 (enable_break): Likewise.
4029 (svr4_relocate_section_addresses): Likewise.
4031 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4034 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4035 sprintf. Simplify code and avoid loosing memory.
4036 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4037 (call0_frame_cache): Remove && operator from end of line.
4039 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4041 Fix libraries displacement if they change whether they were prelinked.
4042 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4043 does not match. Comment why.
4045 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4047 * corelow.c: Include wrapper.h.
4048 (core_open): Call now gdb_target_find_new_threads.
4049 * wrapper.c: Include target.h.
4050 (gdb_target_find_new_threads): New.
4051 * wrapper.h (gdb_target_find_new_threads): New declaration.
4053 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4055 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4056 even if !TARGET_HAS_EXECUTION.
4058 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4060 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4061 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4062 bfd_get_synthetic_symtab.
4063 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4064 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4065 parameter parent, remove the call to add_separate_debug_objfile.
4066 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4067 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4068 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4069 parent, new comment for it, call add_separate_debug_objfile for it.
4070 (symbol_file_add_separate): Pass objfile as the parameter parent,
4071 remove the call to add_separate_debug_objfile.
4072 (symbol_file_add_from_bfd): New parameter parent, pass it.
4073 (symbol_file_add): Pass NULL to the new parameter parent.
4074 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4076 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4078 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4081 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4083 Fix Python access to inlined frames.
4084 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4085 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4087 2011-04-15 Tom Tromey <tromey@redhat.com>
4089 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4091 2011-04-15 Gary Benson <gbenson@redhat.com>
4093 * MAINTAINERS: Add myself to write-after-approval section.
4095 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4097 * remote-sim.c (sim_command_completer): New function.
4098 (_initialize_remote_sim): Set completer to sim_command_completer.
4100 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4102 * breakpoint.c (print_exception_catchpoint): Rename to ...
4103 (print_it_exception_catchpoint): ... this.
4104 (gnu_v3_exception_catchpoint_ops): Update with new name
4105 for print_it_exception_catchpoint.
4107 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4109 * MAINTAINERS: Add myself for write after approval privileges.
4111 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4113 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4115 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4117 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4119 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4121 * breakpoint.c (save_breakpoints): Verify whether
4122 breakpoint_ops.print_recreate is defined before calling it.
4124 2011-04-11 Gary Benson <gbenson@redhat.com>
4126 Fix failure with --enable-maintainer-mode.
4127 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4129 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4132 * symtab.c (search_symbols): Reorder the KIND description in the
4133 function comment. Remove the unused 4th element of types, types2,
4134 types3 and types4. New gdb_assert on KIND.
4135 (symtab_symbol_info): Remove the unused 4th element of classnames.
4136 New gdb_assert on KIND.
4137 * symtab.h (enum search_domain): New warning in the enum comment.
4138 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4141 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4143 Fix crash of gdb save-index on a STABS file.
4144 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4147 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4149 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4150 * dwarf2read.c: Include ctype.h.
4151 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4153 (dwarf2_add_field): Fix new_field->accessibility by calling
4154 dwarf2_default_access_attribute. Restructure setting accessibility
4156 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4157 is_private and is_protected by calling
4158 dwarf2_default_access_attribute.
4160 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4162 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4163 to the initialization.
4165 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4167 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4170 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4172 Remove support for old Cygwin 1.5 versions.
4173 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4174 function on old Cygwin version.
4175 * windows-nat.c: Remove cygwin version check and always define
4176 __USEWIDE for Cygwin compilation.
4178 2011-04-07 Yao Qi <yao@codesourcery.com>
4180 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4182 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4183 (arm_copy_svc): Remove parameters INSN and TO.
4184 (decode_svc_copro): Update caller.
4185 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4186 from function pointer `copy_svc_os'.
4188 2011-04-07 Yao Qi <yao@codesourcery.com>
4190 * arm-tdep.c (cleanup_branch): Set a correct return address in
4191 LR for ARM and Thumb.
4193 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4196 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4197 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4198 in the function comment, a new note on values compatibility.
4199 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4200 * symtab.h (SYMBOL_HASH_NEXT): New.
4202 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4204 * ppc-linux-nat.c (check_condition): Add len output parameter.
4205 Set it based on the memory region referenced in the condition
4206 expression. Update all callers.
4208 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4210 Fix crash regression on systems featuring .gdb_index.
4211 * objfiles.c (free_objfile): Move the
4212 forget_cached_source_info_for_objfile call earlier. Comment it.
4213 Extend the comment for objfile_free_data.
4215 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4217 Fix regression of displaying the debug format.
4218 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4221 2011-04-04 Tom Tromey <tromey@redhat.com>
4223 * cli/cli-interp.c (struct captured_execute_command_args):
4225 (do_captured_execute_command): Remove.
4226 (safe_execute_command): Use TRY_CATCH.
4227 * cli/cli-script.c (struct wrapped_read_command_file_args):
4229 (wrapped_read_command_file): Remove.
4230 (script_from_file): Use TRY_CATCH.
4231 * exceptions.c (catch_exception): Remove.
4232 * exceptions.h (catch_exception): Remove.
4233 (deprecated_throw_reason): Update comment.
4234 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4235 argument to 'context'.
4236 (mi_execute_command): Use TRY_CATCH.
4237 * remote.c (struct start_remote_args): Remove.
4238 (remote_start_remote): Update; change arguments.
4239 (remote_open_1): Use TRY_CATCH.
4241 2011-04-04 Tom Tromey <tromey@redhat.com>
4243 * tracepoint.c (scope_info): Update.
4244 * symtab.c (decode_line_spec): Update.
4245 * python/python.c (gdbpy_decode_line): Update.
4246 * linespec.h (decode_line_1): Update.
4247 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4248 (decode_compound, find_method, symtab_from_filename)
4249 (decode_variable): Likewise.
4250 * cli/cli-cmds.c (edit_command): Update.
4251 (list_command): Update.
4252 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4254 (create_breakpoint): Update.
4255 (until_break_command): Update.
4256 (addr_string_to_sals): Update.
4257 (decode_line_spec_1): Update.
4259 2011-04-04 Tom Tromey <tromey@redhat.com>
4261 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4262 (do_captured_parse_breakpoint): Remove.
4263 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4264 Use TRY_CATCH directly.
4266 2011-04-04 Tom Tromey <tromey@redhat.com>
4268 * symtab.h (free_symtab): Remove.
4269 (forget_cached_source_info_for_objfile): Declare.
4270 * symmisc.c (free_symtab): Remove.
4271 * source.c (forget_cached_source_info_for_objfile): New function.
4272 (forget_cached_source_info): Use it.
4273 * objfiles.c (free_objfile): Simplify check before calling
4274 clear_current_source_symtab_and_line. Call
4275 forget_cached_source_info_for_objfile.
4277 2011-04-04 Tom Tromey <tromey@redhat.com>
4279 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4280 (new_symtab): Don't set `free_code' on symtab.
4281 (new_linetable): Properly handle size==0.
4282 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4283 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4285 * jv-lang.c (struct jv_per_objfile_data): New.
4286 (jv_per_objfile_free): Free the data.
4287 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4288 (get_java_class_symtab): Set the `dict' field on the
4289 jv_per_objfile_data.
4290 (free_class_block): Remove.
4291 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4294 2011-04-04 Tom Tromey <tromey@redhat.com>
4296 * symfile.c (reread_symbols): Update.
4297 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4299 * objfiles.c (allocate_objfile): Update.
4300 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4302 * cp-namespace.c (lookup_symbol_file): Don't call
4303 lookup_possible_namespace_symbol.
4304 (initialize_namespace_symtab, get_possible_namespace_block)
4305 (free_namespace_block, cp_check_possible_namespace_symbols)
4306 (check_possible_namespace_symbols_loop)
4307 (check_one_possible_namespace_symbol)
4308 (lookup_possible_namespace_symbol): Remove.
4309 (maintenance_cplus_namespace): Replace with notice.
4310 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4312 2011-04-04 Tom Tromey <tromey@redhat.com>
4314 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4315 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4316 * symmisc.c (free_symtab): Don't free debugformat.
4317 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4318 (record_debugformat, record_producer): Document.
4319 * buildsym.c (end_symtab): Don't save debugformat and producer
4321 (end_symtab): Don't free debugformat and producer fields.
4322 (record_debugformat): Don't call xstrdup.
4323 (record_producer): Likewise.
4325 2011-04-04 Tom Tromey <tromey@redhat.com>
4327 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4328 (source_line_charpos, source_charpos_line): Remove.
4330 2011-04-04 Tom Tromey <tromey@redhat.com>
4332 * symtab.h (domain_enum): Split in two...
4333 (enum search_domain): New.
4334 (search_symbols): Update.
4335 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4336 redundant declarations.
4337 (search_symbols): Change 'kind' argument to search_domain.
4339 (print_symbol_info): Likewise.
4340 (symtab_symbol_info): Likewise.
4341 * symfile.h (struct quick_symbol_functions)
4342 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4343 <expand_symtabs_matching>: Likewise.
4344 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4345 (expand_symtabs_matching_via_partial): Update.
4346 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4347 (dw2_expand_symtabs_for_function): Update.
4348 * block.h: Moved anonymous enum...
4349 * defs.h (enum block_enum): ... here. Now named.
4351 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4353 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4354 * version.in: Bump version to 7.3.50.20110403-cvs.
4356 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4358 * NEWS: Create a new section for the next release branch.
4359 Rename the section of the current branch, now that it has
4362 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4364 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4365 for "fpscr" in target description.
4367 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4369 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4370 initialize it. Delay HASH initialization. Strip the part after open
4371 parenthesis for languages with qualifiers. Call do_cleanups.
4373 2011-04-01 Tom Tromey <tromey@redhat.com>
4375 * utils.c (report_command_stats): Don't print `-' for negative
4378 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4380 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4381 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4384 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4386 * breakpoint.h (bpdisp_text): Add declaration.
4387 * breakpoint.c (bpdisp_text): Make non-static.
4388 * ada-lang.c: #include "mi/mi-common.h".
4389 (print_it_exception): Rewrite to improve GDB/MI output.
4391 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4393 * arm-tdep.h (struct address_space): Add forward declaration.
4395 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4397 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4398 * arm-tdep.c (arm_override_mode): New global.
4399 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4400 execution mode heuristics.
4401 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4402 second single-step breakpoint if needed, using
4403 arm_insert_single_step_breakpoint.
4404 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4405 ARM execution mode, do not call thumb_get_next_pc_raw.
4406 (arm_get_next_pc): Encode execution mode in return value. Call
4407 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4408 (arm_insert_single_step_breakpoint): New function.
4409 (arm_software_single_step): Call it.
4410 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4411 argument to return execution mode of sigreturn target.
4412 (arm_linux_syscall_next_pc): Use it.
4413 (arm_linux_copy_svc): Update call.
4414 (arm_linux_software_single_step): Call
4415 arm_insert_single_step_breakpoint.
4417 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4419 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4422 2011-03-31 Tom Tromey <tromey@redhat.com>
4424 * varobj.c (update_dynamic_varobj_children): Properly handle
4425 errors from iterator.
4427 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4429 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4430 struct linkage name twice.
4432 2011-03-31 Tom Tromey <tromey@redhat.com>
4434 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4435 missing ">" to message.
4437 2011-03-31 Tom Tromey <tromey@redhat.com>
4439 * varobj.c (instantiate_pretty_printer): Remove duplicate
4442 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4444 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4445 if neither saved value nor register available (e.g. signal frame).
4447 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4449 * macroexp.c (expand): Avoid uninitialized variable
4452 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4454 * breakpoint.c (break_range_command): Fix typo in comment.
4456 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4457 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4459 Implement support for PowerPC BookE ranged breakpoints.
4460 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4461 * breakpoint.h (struct bp_target_info) <length>: New member
4463 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4464 instead of struct breakpoint as argument, and also add ASPACE
4465 and BP_ADDR arguments. Update all callers.
4466 (struct breakpoint_ops) <print_one_detail>: New method.
4467 (struct breakpoint) <addr_string_range_end>: New member variable.
4468 * breakpoint.c (breakpoint_location_address_match): Add function
4470 (insert_bp_location): Set bl->target_info.length.
4471 (breakpoint_here_p): Call breakpoint_location_address_match.
4472 (moribund_breakpoint_here_p): Likewise.
4473 (regular_breakpoint_inserted_here_p): Likewise.
4474 (breakpoint_thread_match): Likewise.
4475 (bpstat_stop_status): Likewise.
4476 (bpstat_check_location): Move call to
4477 breakpoint_ops.breakpoint_hit to the top.
4478 (print_one_breakpoint_location): Call
4479 breakpoint_ops.print_one_detail if available.
4480 (breakpoint_address_match_range): New function.
4481 (breakpoint_location_address_match): Likewise.
4482 (breakpoint_locations_match): Compare the length field of the
4484 (hw_breakpoint_used_count): Count resources used by all locations
4485 in a breakpoint, and use breakpoint_ops.resources_needed if
4487 (breakpoint_hit_ranged_breakpoint): New function.
4488 (resources_needed_ranged_breakpoint): Likewise.
4489 (print_it_ranged_breakpoint): Likewise.
4490 (print_one_ranged_breakpoint): Likewise.
4491 (print_one_detail_ranged_breakpoint): Likewise.
4492 (print_mention_ranged_breakpoint): Likewise.
4493 (print_recreate_ranged_breakpoint): Likewise.
4494 (ranged_breakpoint_ops): New structure.
4495 (find_breakpoint_range_end): New function.
4496 (break_range_command): Likewise.
4497 (delete_breakpoint): Free addr_string_range_end.
4498 (update_breakpoint_locations): Add SALS_END argument. Update
4499 all callers. Calculate breakpoint length if a non-zero SALS_END
4500 is given. Call breakpoint_locations_match instead of
4501 breakpoint_address_match.
4502 (reset_breakpoint): Find SaL of the end of the range if B is a
4504 (_initialize_breakpoint): Register break-range command.
4505 * defs.h (print_core_address): Add function prototype.
4506 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4508 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4509 (ppc_linux_remove_hw_breakpoint): Likewise.
4510 (_initialize_ppc_linux_nat): Initialize
4511 to_ranged_break_num_registers.
4512 * target.c (update_current_target): Add comment about
4513 to_ranged_break_num_registers.
4514 (target_ranged_break_num_registers): New function.
4515 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4517 (target_ranged_break_num_registers): Add function prototype.
4518 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4519 * utils.c (print_core_address): ... here.
4521 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4523 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4524 variable compiler warning.
4526 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4528 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4530 (re_set_breakpoint): ... to here ...
4531 (addr_string_to_sals): ... and here.
4533 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4535 * Makefile.in (SFILES): Add missing C sources.
4536 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4537 Add missing headers.
4539 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4541 * .gitignore: New file.
4543 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4545 * NEWS: Mention new cfi device simulation.
4547 2011-03-29 Tom Tromey <tromey@redhat.com>
4549 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4550 otherwise anonymous types.
4551 (dwarf2_name): Likewise.
4552 * valops.c (value_struct_elt_for_reference): Refine artificial
4553 type logic. Call error if j==-1.
4555 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4557 Fix false GCC warning.
4558 * infcall.c (find_function_addr): Initialize funaddr.
4560 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4562 Fix mingw compilation with --enable-targets=all.
4563 * remote-mips.c (gdb_usleep.h): Include header.
4564 (mips_enter_debug): Use gdb_usleep instead of sleep.
4566 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4568 Support resolution of STT_GNU_IFUNC via breakpoints.
4569 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4570 bp_gnu_ifunc_resolver_return.
4571 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4572 the loop. Support bp_gnu_ifunc_resolver and
4573 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4574 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4576 (bptype_string, print_one_breakpoint_location): Support
4577 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4578 (user_settable_breakpoint): Return true also for
4579 bp_gnu_ifunc_resolver.
4580 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4581 bp_gnu_ifunc_resolver_return.
4582 (set_breakpoint_location_function): New parameter explicit_loc,
4583 describe it. Call find_pc_partial_function_gnu_ifunc with new
4584 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4585 EXPLICIT_LOC is not set.
4586 (set_raw_breakpoint): Set EXPLICIT_LOC for
4587 set_breakpoint_location_function.
4588 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4589 set_breakpoint_location_function.
4590 (mention): Support bp_gnu_ifunc_resolver and
4591 bp_gnu_ifunc_resolver_return.
4592 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4593 set_breakpoint_location_function.
4594 (update_breakpoint_locations): Remove static.
4595 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4596 bp_gnu_ifunc_resolver_return.
4597 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4598 bp_gnu_ifunc_resolver_return.
4599 (update_breakpoint_locations): New declaration.
4600 * elfread.c: Include gdbthread.h and regcache.h.
4601 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4603 (elf_gnu_ifunc_fns): Install them.
4604 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4605 (stub_gnu_ifunc_resolver_return_stop): New functions.
4606 (stub_gnu_ifunc_fns): Install them.
4607 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4608 and gnu_ifunc_resolver_return_stop.
4609 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4611 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4613 STT_GNU_IFUNC reader implementation.
4614 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4615 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4616 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4617 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4618 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4619 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4620 (elf_gnu_ifunc_resolve_addr): New.
4621 (elf_symfile_read): Call elf_rel_plt_read.
4622 (elf_gnu_ifunc_fns): New.
4623 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4624 Install elf_gnu_ifunc_fns.
4625 * infcall.c (find_function_return_type): New function.
4626 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4627 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4628 (stub_gnu_ifunc_resolve_name): New functions.
4629 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4630 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4631 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4633 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4635 Code cleanup for later STT_GNU_IFUNC support.
4636 * infcall.c (find_function_addr): Remove variable code, use explicit
4637 dereferences for it. Move VALUE_TYPE initialization later.
4639 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4641 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4642 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4643 (clear_pc_function_cache): Clear it.
4644 (find_pc_partial_function): Rename to ...
4645 (find_pc_partial_function_gnu_ifunc): ... this function. New
4646 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4647 (find_pc_partial_function): New wrapper for this function.
4648 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4650 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4652 GDB internal type support for STT_GNU_IFUNC.
4653 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4654 (elf_symtab_read): Set mst_text_gnu_ifunc for
4655 BSF_GNU_INDIRECT_FUNCTION.
4656 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4657 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4658 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4659 nodebug_got_plt_symbol.
4660 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4661 (TYPE_GNU_IFUNC): New.
4662 (struct main_type): New field flag_gnu_ifunc.
4663 (struct builtin_type): New field builtin_func_func.
4664 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4665 nodebug_got_plt_symbol.
4666 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4667 (in_gnu_ifunc_stub): New.
4668 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4670 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4671 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4672 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4674 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4675 * symtab.c (search_symbols): Likewise.
4676 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4677 and mst_slot_got_plt.
4678 (in_gnu_ifunc_stub): New declaration.
4680 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4682 Support a ring of related breakpoints.
4683 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4684 other functions, add gdb_assert.
4685 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4686 watchpoint_del_at_next_stop.
4687 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4688 (bpstat_stop_status): Handle ring in related_breakpoint.
4689 (set_raw_breakpoint_without_location): Initialize ring in
4691 (delete_breakpoint): Handle ring in related_breakpoint, use
4692 watchpoint_del_at_next_stop.
4693 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4695 2011-03-28 Tom Tromey <tromey@redhat.com>
4698 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4699 with `language_minimal'.
4701 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4703 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4704 instead of checking for STT_ARM_TFUNC symbol type.
4706 2011-03-25 Tom Tromey <tromey@redhat.com>
4708 * linespec.c (symbol_found): Restore line-based result for
4709 non-LOC_LABEL symbols.
4711 2011-03-25 Kai Tietz <ktietz@redhat.com>
4713 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4714 instead of strcmp for comparison.
4715 (tui_source_is_displayed): Likewise.
4716 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4718 2011-03-24 Mark Wielaard <mjw@redhat.com>
4720 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4722 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4723 (find_partial_die_in_comp_unit): Likewise in comment.
4724 (read_attribute_value): Likewise.
4725 (lookup_die_type): Likewise.
4726 (dwarf_form_name): Likewise.
4727 (dump_die_shallow): Likewise.
4728 (follow_die_ref_or_sig): Likewise.
4730 2011-03-24 Tom Tromey <tromey@redhat.com>
4732 PR breakpoints/11816:
4733 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4734 (decode_compound): Update.
4735 (find_function_symbol): New function.
4736 (decode_dollar): Update.
4737 (decode_label): Add 'function_symbol' parameter. Handle
4738 function-relative labels.
4739 (decode_variable): Update.
4740 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4741 not its line. Set `special_display' and canonical name for
4744 2011-03-24 Tom Tromey <tromey@redhat.com>
4746 * linespec.h (struct linespec_result) <special_display>: New
4748 * breakpoint.h (struct breakpoint) <display_canonical>: New
4750 * breakpoint.c (print_breakpoint_location): Respect
4752 (create_breakpoint_sal): Add 'display_canonical' parameter.
4753 (create_breakpoints_sal): Update.
4754 (create_breakpoint): Update.
4756 2011-03-24 Tom Tromey <tromey@redhat.com>
4758 * symtab.c (decode_line_spec): Update.
4759 * linespec.c (build_canonical_line_spec): Change type of
4761 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4762 (find_method, decode_all_digits, decode_dollar, decode_label)
4763 (symbol_found): Likewise.
4764 (init_linespec_result): New function.
4765 * breakpoint.c (struct captured_parse_breakpoint_args)
4766 <canonical_p>: New field, replaces addr_string_p.
4767 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4769 (parse_breakpoint_sals): Likewise.
4770 (do_captured_parse_breakpoint): Update.
4771 (create_breakpoint): Use struct linespec_result.
4772 (until_break_command): Update.
4773 (breakpoint_re_set_one): Update.
4774 (decode_line_spec_1): Update.
4775 * linespec.h (struct linespec_result): New.
4776 (init_linespec_result): Declare.
4778 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4780 * regcache.c (regcache_raw_read): If the target didn't supply a
4781 given raw register, mark it as unavailable.
4783 2011-03-23 Kai Tietz <ktietz@redhat.com>
4785 * breakpoint.c (clear_command): Use filename_cmp
4786 instead of strcmp for comparison.
4787 * buildsym.c (watch_main_source_file_lossage): Likewise.
4788 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4789 checking just for slash.
4790 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4791 strrchr and filename_cmp instead of strcmp for filenames.
4792 (add_old_header_file): Use filename_cmp
4793 instead of strcmp for comparison.
4794 * exec.c (exec_set_section_address): Likewise.
4795 * macrotab.c (macro_lookup_inclusion): Likewise.
4796 (macro_lookup_inclusion): Likewise.
4797 * elfread.c (_initialize_elfread): Likewise.
4798 (elfstab_offset_sections): Likewise.
4799 (elfstab_offset_sections): Use lbasename instead of
4801 * mdebugread.c (parse_partial_symbols): Likewise.
4802 (arse_partial_symbols): Use filename_(n)cmp instead of
4803 str(n)cmp for comparison.
4804 * minsyms.c (lookup_minimal_symbol): Likewise.
4805 * psymtab.c (read_psymtabs_with_filename): Likewise.
4806 * solib.c (solib_read_symbols): Likewise.
4807 (reload_shared_libraries_1): Likewise.
4808 * symmisc.c (maintenance_print_symbols): Likewise.
4809 * symfile.c (separate_debug_file_exists): Likewise.
4810 (reread_symbols): Likewise.
4811 (find_separate_debug_file_by_debuglink): Likewise.
4812 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4813 * source.c (add_path): Likewise.
4814 * symtab.c (filename_seen): Likewise.
4815 (file_matches): Likewise.
4816 (print_symbol_info): Likewise.
4817 (maybe_add_partial_symtab_filename): Likewise.
4818 (make_source_files_completion_list): Likewise.
4819 * xml-syscall.c (init_sysinfo): Likewise.
4820 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4821 IS_DIR_SEPARATOR for checking for trailing path separator.
4823 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4825 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4826 label abort_expression.
4827 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4828 DWARF_VALUE_OPTIMIZED_OUT.
4830 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4833 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4834 to linkage_name. Invert its value. Update the function comment.
4835 (c_type_print_varspec_suffix): Invert it at the caller.
4836 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4838 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4840 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4841 errors when reading the `stop_pc'.
4842 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4845 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4847 * NEWS: Document gdb.Write stream keyword.
4849 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4852 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4853 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4854 (dwarf2_add_field): Fix new_field->accessibility for
4855 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4857 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4861 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4862 other error classes. Do not print stack trace.
4864 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4866 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4867 (dwarf2_add_field): Fix new_field->accessibility for
4868 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4870 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4872 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4873 encountering a load via a non-SP register.
4875 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4877 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4878 field in returned unwinder.
4880 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4882 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4884 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4886 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4889 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4891 * frame.c (frame_unwind_register): Throw an error if unwinding the
4893 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4894 an unwind stop reason.
4895 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4896 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4897 UNWIND_UNAVAILABLE>: New.
4898 * inline-frame.c (inline_frame_unwind): Install
4899 default_frame_unwind_stop_reason.
4900 * frame-unwind.c: Include "exceptions.h".
4901 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4902 (default_frame_unwind_stop_reason): New.
4903 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4904 (default_frame_unwind_stop_reason): Declare.
4905 (struct frame_unwind) <stop_reason>: New function pointer.
4907 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4908 * dwarf2-frame.c: Include exceptions.h.
4909 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4910 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4911 computing the CFA. If such an error was thrown, set
4912 unavailable_retaddr.
4913 (dwarf2_frame_unwind_stop_reason): New.
4914 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4916 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4917 (dwarf2_signal_frame_unwind): Ditto.
4919 * amd64-tdep.c: Include "exceptions.h".
4920 (struct amd64_frame_cache): New field "base_p".
4921 (amd64_init_frame_cache): Clear it.
4922 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4923 Avoid reading registers with functions that throw if the register
4924 is not necessary to compute the frame base.
4925 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4926 swallowing NOT_AVAILABLE_ERROR.
4927 (amd64_frame_unwind_stop_reason): New.
4928 (amd64_frame_this_id): Don't build a frame id if the frame base
4930 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4931 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4932 base_p if the frame base was computable.
4933 (amd64_sigtramp_frame_unwind_stop_reason): New.
4934 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4935 frame base was unavailable.
4936 (amd64_sigtramp_frame_unwind): Install
4937 amd64_sigtramp_frame_unwind_stop_reason.
4938 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4939 base_p if the frame base was computable.
4940 (amd64_epilogue_frame_unwind_stop_reason): New.
4941 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4942 frame base was unavailable.
4943 (amd64_epilogue_frame_unwind): Install
4944 amd64_epilogue_frame_unwind_stop_reason.
4945 * i386-tdep.c: Include "exceptions.h".
4946 (struct i386_frame_cache): New field "base_p".
4947 (i386_init_frame_cache): Clear it.
4948 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
4949 Avoid reading registers with functions that throw if the register
4950 is not necessary to compute the frame base.
4951 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4952 swallowing NOT_AVAILABLE_ERROR.
4953 (i386_frame_unwind_stop_reason): New.
4954 (i386_frame_this_id): Don't build a frame id if the frame base was
4956 (i386_frame_prev_register): Handle unavailable SP.
4957 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
4958 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4959 base_p if the frame base was computable.
4960 (i386_epilogue_frame_unwind_stop_reason): New.
4961 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
4962 base was unavailable.
4963 (i386_epilogue_frame_unwind): Install
4964 i386_epilogue_frame_unwind_stop_reason.
4965 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4966 base_p if the frame base was computable.
4967 (i386_sigtramp_frame_unwind_stop_reason): New.
4968 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
4969 base was unavailable.
4970 (i386_sigtramp_frame_unwind): Install
4971 i386_sigtramp_frame_unwind_stop_reason.
4972 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
4973 type's size, not the register's.
4974 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
4976 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
4977 default_frame_unwind_stop_reason.
4978 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
4979 (alpha_heuristic_frame_unwind): Ditto.
4980 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
4981 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
4982 * avr-tdep.c (avr_frame_unwind): Ditto.
4983 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
4985 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
4986 * frv-tdep.c (frv_frame_unwind): Ditto.
4987 * h8300-tdep.c (h8300_frame_unwind): Ditto.
4988 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
4989 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
4990 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
4991 (hppa_stub_frame_unwind): Ditto.
4992 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
4993 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
4994 (ia64_libunwind_frame_unwind)
4995 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
4996 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
4997 * lm32-tdep.c (lm32_frame_unwind): Ditto.
4998 * m32c-tdep.c (m32c_unwind): Ditto.
4999 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5000 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5001 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5002 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5003 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5004 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5005 * mep-tdep.c (mep_frame_unwind): Ditto.
5006 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5007 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5008 (mips_stub_frame_unwind): Ditto.
5009 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5010 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5011 * mt-tdep.c (mt_frame_unwind): Ditto.
5012 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5013 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5014 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5015 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5016 (s390_sigtramp_frame_unwind): Ditto.
5017 * score-tdep.c (score_prologue_unwind): Ditto.
5018 * sh-tdep.c (sh_frame_unwind): Ditto.
5019 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5020 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5021 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5022 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5023 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5024 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5025 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5026 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5027 (sparc64obsd_trapframe_unwind): Ditto.
5028 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5029 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5030 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5031 * v850-tdep.c (v850_frame_unwind): Ditto.
5032 * vax-tdep.c (vax_frame_unwind): Ditto.
5033 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5034 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5035 * xtensa-tdep.c (xtensa_unwind): Ditto.
5037 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5039 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5040 there's always a frame. Use get_frame_pc_if_available instead of
5041 get_frame_pc, and if there's no PC available, don't look up a
5044 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5046 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5049 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5051 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5054 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5056 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5057 * frame.c (frame_unwind_caller_pc_if_available): New.
5058 * stack.c (frame_info): Handle unavailable PC.
5060 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5062 * frame.c (frame_unwind_pc): Rename to ...
5063 (frame_unwind_pc_if_available): ... this. New `pc' output
5064 parameter. Change return type to int. Gracefully handle
5065 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5066 happened, or 1 otherwise.
5067 (frame_unwind_pc): Reimplement on top of
5068 frame_unwind_pc_if_available.
5069 (get_frame_func): Rename to ...
5070 (get_frame_func_if_available): New `pc' output parameter. Change
5071 return type to int. Gracefully handle the PC not being available.
5072 (get_frame_func): Reimplement on top of
5073 get_frame_func_if_available.
5074 (select_frame): Handle the PC being unavailable.
5075 (get_prev_frame): Handle the PC being unavailable.
5076 (get_frame_pc_if_available): New.
5077 (get_frame_address_in_block_if_available): New.
5078 (find_frame_sal): Handle the frame PC not being available.
5079 * frame.h (get_frame_pc_if_available): Declare.
5080 (get_frame_address_in_block_if_available): Declare.
5081 (get_frame_func_if_available): Declare.
5082 * stack.c (print_frame_info): Handle the PC being unavailable.
5083 (find_frame_funname): Ditto.
5084 (print_frame): Handle the PC being unavailable.
5085 (get_frame_language): Ditto.
5086 * blockframe.c (get_frame_block): Ditto.
5087 * macroscope.c (default_macro_scope): Ditto.
5088 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5090 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5092 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5093 NOT_AVAILABLE_ERROR when evaluating the location expression.
5095 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5097 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5098 returning that the register piece is unavailable/optimized out.
5099 (write_pieced_value): Handle get_frame_register_bytes returning
5100 that the register piece is unavailable/optimized out when doing a
5101 read-modify write of a bitfield.
5102 * findvar.c (value_from_register): Handle get_frame_register_bytes
5103 returning that the register piece is unavailable/optimized out.
5104 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5105 and `unavailablep'. Throw error on bad debug info. Use
5106 frame_register instead of frame_register_read, to fill in the new
5108 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5110 * valops.c: (value_assign): Adjust, and handle
5111 get_frame_register_bytes failing.
5112 * spu-tdep.c: Include exceptions.h.
5113 (spu_software_single_step): Adjust, and handle
5114 get_frame_register_bytes failing.
5115 (spu_get_longjmp_target): Ditto.
5116 * gdbarch.sh (register_to_value): Change to return int. New
5117 parameters `optimizedp' and `unavailablep'.
5118 * gdbarch.h, gdbarch.c: Regenerate.
5119 * i386-tdep.c (i386_register_to_value): Adjust to new
5120 gdbarch_register_to_value interface.
5121 * i387-tdep.c (i387_register_to_value): Ditto.
5122 * i387-tdep.h (i387_register_to_value): Ditto.
5123 * alpha-tdep.c (alpha_register_to_value): Ditto.
5124 * ia64-tdep.c (ia64_register_to_value): Ditto.
5125 * m68k-tdep.c (m68k_register_to_value): Ditto.
5126 * mips-tdep.c (mips_register_to_value): Ditto.
5127 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5129 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5131 * findvar.c (value_of_register): Mark the value as unavailable, if
5132 the register is unavailable.
5133 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5134 (frame_register): New `unavailablep' parameter.
5135 (frame_register_read): Update comment.
5136 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5137 Set it if the register is unavailable. If the register is
5138 unavailable, clear the output buffer.
5139 (frame_register): New `unavailablep' parameter. Pass it down.
5140 (frame_unwind_register): Adjust.
5141 (put_frame_register): Adjust.
5142 (frame_register_read): Adjust. Also return false if the register
5144 (frame_register_unwind_location): Adjust.
5145 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5146 is unavailable, mark the value accordingly.
5147 * stack.c (frame_info): Handle unavailable registers.
5149 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5151 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5152 simplify, using regcache_cooked_read.
5154 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5156 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5157 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5158 (regcache_raw_read_unsigned, regcache_raw_read_part)
5159 (regcache_cooked_read, regcache_cooked_read_signed)
5160 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5161 (regcache_cooked_read_ftype): Change return to enum
5163 * regcache.c: Include exceptions.h
5164 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5165 (do_cooked_read): Change return to enum register_status. Always
5166 forward to regcache_cooked_read.
5167 (regcache_raw_read): Change return to enum register_status. If
5168 the register is not REG_VALID, memset the buffer. Return the
5170 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5171 return the register's status.
5172 (regcache_raw_read_unsigned): Ditto.
5173 (regcache_cooked_read): Change return to enum register_status.
5174 Assert that with read-only regcaches, the register's status must
5175 be known. If the regcache is read-only, and the register is not
5176 REG_VALID, memset the buffer. Return the register's status.
5177 (regcache_cooked_read_signed): Change return to enum
5178 register_status. Handle non-REG_VALID registers and return the
5180 (regcache_cooked_read_unsigned): Change return to enum
5181 register_status. Handle non-REG_VALID registers and return the
5183 (regcache_xfer_part, regcache_raw_read_part)
5184 (regcache_cooked_read_part): Change return to enum
5185 register_status. Return the register's status.
5186 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5188 (regcache_dump): Handle unavailable cooked registers.
5189 * frame.c (do_frame_register_read): Adjust interface to match
5190 regcache_cooked_read_ftype.
5191 * gdbarch.sh (pseudo_register_read): Change return to enum
5193 * gdbarch.h, gdbarch.c: Regenerate.
5195 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5197 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5198 register_status. If reading a raw register indicates the raw
5199 register is not valid, return the raw register's status,
5200 otherwise, return REG_VALID.
5201 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5202 register_status. Handle non-REG_VALID raw registers and return
5203 the register's status.
5204 * arm-tdep.c (arm_neon_quad_read)
5205 (arm_pseudo_read): Change return to enum register_status. Handle
5206 non-REG_VALID raw registers and return the register's status.
5207 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5208 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5209 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5210 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5211 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5213 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5214 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5215 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5216 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5217 (m32c_pseudo_register_read): Change return to enum
5218 register_status. Adjust.
5219 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5220 enum register_status. Return the register's status.
5221 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5222 register_status. Return the register's status.
5223 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5224 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5225 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5226 * rs6000-tdep.c (move_ev_register_func): New typedef.
5227 (e500_move_ev_register): Use it. Change return to enum
5228 register_status. Return the register's status.
5229 (do_regcache_raw_read): New function.
5230 (do_regcache_raw_write): New function.
5231 (e500_pseudo_register_read): Change return to enum
5232 register_status. Return the register's status. Use
5233 do_regcache_raw_read.
5234 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5235 (dfp_pseudo_register_read): Change return to enum register_status.
5236 Return the register's status.
5237 (vsx_pseudo_register_read): Ditto.
5238 (efpr_pseudo_register_read): Ditto.
5239 (rs6000_pseudo_register_read): Ditto.
5240 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5241 register_status. Return the register's status.
5242 * sh64-tdep.c (pseudo_register_read_portions): New function.
5243 (sh64_pseudo_register_read): Change return to enum
5244 register_status. Use pseudo_register_read_portions. Return the
5246 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5247 register_status. Return the register's status.
5248 * sh-tdep.c (pseudo_register_read_portions): New function.
5249 (sh_pseudo_register_read): Change return to enum register_status.
5250 Use pseudo_register_read_portions. Return the register's status.
5251 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5252 enum register_status. Return the register's status.
5253 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5254 * spu-tdep.c (spu_pseudo_register_read_spu)
5255 (spu_pseudo_register_read): Ditto.
5256 * xtensa-tdep.c (xtensa_register_read_masked)
5257 (xtensa_pseudo_register_read): Ditto.
5258 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5260 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5262 * python/py-value.c (valpy_getitem): Fix formatting of error function
5265 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5267 ARI fixes: Add missing internationalization markups throughout
5269 * darwin-nat-info.c: Ditto.
5272 * mi/mi-main.c: Ditto.
5274 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5276 ARI fixes: Add missing internationalization markups throughout
5279 * cp-name-parser.y: Ditto.
5282 * objc-exp.y: Ditto.
5285 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5287 ARI fixes: Messages should have no trailing new lines.
5288 * darwin-nat.c (mach_check_error): Remove trailing new line from
5289 warning function call message.
5290 * record.c (bfdcore_read): Idem for error call.
5292 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5294 * common/signals.c (target_signal_from_host): Add _ markup to error
5295 function call message.
5296 (target_signal_to_host): Add _ markup and remove trailing new line
5297 from warning call message.
5298 (target_signal_from_command): Add _ markup to error function call
5301 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5305 * python/python.c (gdbpy_write): Accept a stream argument and
5306 operate to the appropriate stream.
5307 (gdbpy_flush): Likewise.
5308 (_initialize_python): Add stream constants.
5309 (finish_python_initialization): Add GdbOutputErrorFile class.
5311 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5313 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5315 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5317 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5318 to store_signed_integer. Add debug message when relocating CALL
5319 instructions. Fix formatting of debug message.
5320 * i386-tdep.c (i386_relocate_instruction): Ditto.
5322 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5324 * target.h (struct target_ops): Remove to_lookup_symbol field.
5325 (target_lookup_symbol): Delete macro.
5326 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5327 (update_current_target, setup_target_debug): Remove handling
5328 of to_lookup_symbol target_ops field.
5329 * ada-tasks.c (get_known_tasks_addr): Remove use of
5330 target_lookup_symbol.
5331 * coffread.c (coff_symtab_read): Likewise.
5332 * dbxread.c (read_dbx_symtab): Ditto.
5334 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5337 * configure.ac: Add getthrds declaration check.
5338 * configure, config.in: Regenerate.
5339 * aix-thread.c (getthrds): Declare only if not already declared
5340 in procinfo.h. More declaration out of get_signaled_thread to
5343 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5345 * python/py-symtab.c: Populate symtab_object_methods,
5347 (stpy_is_valid): New function.
5348 (salpy_is_valid): Ditto.
5349 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5350 (sympy_is_valid): New function.
5351 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5352 (objfpy_is_valid): New function.
5353 * python/py-inferior.c: Populate inferior_object_methods.
5354 (infpy_is_valid): New function.
5355 * python/py-infthread.c: Populate thread_object_methods.
5356 (thpy_is_valid): New function.
5357 * python/py-block.c: Declare block_object_methods. Populate. Declare
5358 block_iterator_object_methods. Populate.
5359 (blpy_is_valid): New function.
5360 (blpy_iter_is_valid): Ditto.
5362 2011-03-16 Keith Seitz <keiths@redhat.com>
5364 * linespec.c (find_methods): Canonicalize NAME before looking
5366 (name_end): New function.
5367 (keep_name_info): New function.
5368 (decode_line_1): Use keep_name_info.
5369 (decode_compound): Likewise.
5370 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5371 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5374 * linespec.c (locate_first_half): Keep overload information, too.
5375 (decode_compound): Use a string to represent break characters
5377 If P points to a break character, do not increment it.
5378 For C++ and Java, keep overload information and relevant keywords.
5379 If we cannot find a symbol, search the minimal symbols.
5382 * linespec.c (decode_compound): Rename SAVED_ARG to
5384 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5386 Pass a valid block to lookup_symbol.
5387 (lookup_prefix_sym): Likewise.
5388 (find_method): Construct search name based on SYM_CLASS instead
5390 * psymtab.c (lookup_partial_symbol): Add language parameter.
5391 (lookup_symbol_aux_psymtabs): Likewise.
5392 Don't assume that the psymtab we found was the right one. Search
5393 for the desired symbol in the symtab to be certain.
5394 (psymtab_search_name): New function.
5395 (lookup_partial_symbol): Use psymtab_search_name.
5396 Add language parameter.
5397 (read_symtabs_for_function): Add language parameter and pass to
5398 lookup_partial_symbol.
5399 (find_symbol_file_from_partial): Likewise.
5401 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5404 * dwarf2read.c (noop_record_line): New function.
5405 (dwarf_decode_lines): Ignore line tables for GCd functions.
5407 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5409 Fix ARI warnings about new lines at the end of messages, which
5410 are unneeded as there is a new line added at the end of the message
5412 * darwin-nat.c (darwin_stop_inferior): Ditto.
5413 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5414 * dfp.c (decimal_to_number): Ditto.
5415 * exec.c (print_section_info): Ditto.
5416 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5417 * osdata.c (get_osdata): Ditto.
5418 * record.c (bfdcore_write): Ditto.
5419 * remote-mips.c (mips_readchar): Ditto.
5420 * remote.c (read_ptid): Ditto.
5421 * ser-mingw.c (ser_windows_raw): Ditto.
5422 * tracepoint.c (add_local_symbols): Ditto.
5423 * windows-nat.c (fake_create_process): Ditto.
5425 2011-03-16 Tom Tromey <tromey@redhat.com>
5427 * tracepoint.c (stop_tracing): Don't declare.
5428 * event-top.c (after_char_processing_hook): Add `(void)'.
5430 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5432 * NEWS: Add Parameter sub-classing description.
5434 2011-03-16 Kai Tietz <ktietz@redhat.com>
5436 * MAINTAINERS: Update my e-mail address.
5438 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5440 * MAINTAINERS: Add myself for write after approval privileges.
5442 2011-03-15 Michael Snyder <msnyder@vmware.com>
5444 * frame.c (find_frame_sal): Assert sym is not null.
5446 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5448 * objc-lang.c (selectors_info): Check strchr for null result.
5450 * stabsread.c (define_symbol): Guard against bad stabstring input.
5452 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5454 Remove trailing spaces and tabulations from pascal language
5459 p-valprint.c: Ditto.
5461 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5463 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5464 than LOW. Comment it.
5465 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5466 HIGHPC not strictly higher than LOWPC.
5468 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5470 Fix formatting of function declarations returning a pointer in
5472 * varobj.c (varobj_add_child): Ditto.
5473 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5474 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5476 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5478 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5479 for the "generic" vector ABI used with GCC 4.3 and later.
5480 (ppc64_sysv_abi_return_value): Likewise.
5482 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5484 * infcall.c (call_function_by_hand): Function return value is
5485 always a non_lval, even when using struct_return.
5487 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5489 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5490 (map_display_numbers): New.
5491 (do_delete_display): New.
5492 (undisplay_command): Use map_display_numbers.
5493 (do_enable_disable_display): New.
5494 (enable_disable_display_command): New function.
5495 (enable_display): Delete.
5496 (enable_display_command): New.
5497 (disable_display_command): Reimplement.
5498 (_initialize_printcmd): Adjust "enable display" command to use
5499 `enable_display_command' as callback.
5501 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5503 * NEWS: Add Python breakpoint 'stop' operation.
5505 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5507 * NEWS: Delete duplicate entry. Fix typo.
5509 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5511 Fix ARI warning about function names in first column.
5512 Put prototype declaration on same line as return type.
5513 * objc-exp.y: Ditto.
5515 * python/py-stopevent.h: Ditto.
5516 For long function names, split parameters to
5517 allow function name on same line as return type.
5518 * solib-pa64.c: Ditto.
5521 For long function declaration, use single line.
5522 * hppa-tdep.h: Ditto.
5523 * inferior.h: Ditto.
5525 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5527 * python/python.h: Declare gdbpy_should_stop and
5528 gdbpy_breakpoint_has_py_cond.
5529 * python/python.c: Add python.h to includes. Remove python.h from
5530 HAVE_PYTHON definition
5531 (gdbpy_should_stop): New dummy function.
5532 (gdbpy_breakpoint_has_py_cond): New dummy function.
5533 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5534 sub-classing capabilities.
5535 (gdbpy_should_stop): New function.
5536 (gdbpy_breakpoint_has_py_cond): New function.
5537 (local_setattro): New function.
5538 * breakpoint.c (condition_command): Add check for Python 'stop'
5540 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5541 operation function as part of stop/continue tests.
5543 2011-03-14 Tom Tromey <tromey@redhat.com>
5546 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5547 (needs_frame_dwarf_call): Likewise.
5549 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5551 Fix ARI warning about functions without parameters that do not
5553 * breakpoint.c (all_tracepoints): Replace () by (void).
5554 * f-exp.y (match_string_literal): Ditto.
5556 * m2-exp.y (yylex): Ditto.
5557 * mep-tdep.c (current_me_module): Ditto.
5558 (current_options): Ditto.
5559 (current_cop_data_bus_width): Ditto.
5560 (current_cr_names): Ditto.
5561 (current_cr_is_float): Ditto.
5562 (current_ccr_names): Ditto.
5563 * objc-exp.y (yylex): Ditto.
5564 * p-exp.y (yylex): Ditto.
5565 * remote.c (send_interrupt_sequence): Ditto.
5566 * tracepoint.c (current_trace_status): Ditto.
5567 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5568 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5570 2011-03-11 Michael Snyder <msnyder@vmware.com>
5572 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5573 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5574 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5575 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5576 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5578 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5579 (delete_async_event_handler): Ditto.
5581 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5583 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5585 * top.c (set_verbose): Assert showcmd was found.
5587 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5589 * xtensa-tdep.c (warning_once): Correct style issues.
5591 2011-03-11 Yao Qi <yao@codesourcery.com>
5593 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5595 2011-03-11 Andreas Schwab <schwab@redhat.com>
5597 * common/aclocal.m4: Remove.
5599 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5601 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5602 (xtensa_write_register, xtensa_read_register): Likewise.
5603 (xtensa_hextochar): Removed.
5604 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5606 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5608 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5609 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5610 (xtensa_alloc_frame_cache): Add initialization for new fields.
5611 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5612 (warning_once): New function.
5613 (xtensa_insn_kind): New item c0opc_and.
5614 (call0_classify_opcode): Add the case for AND instruction.
5615 (call0_track_op): Change arguments. New local variable litbase.
5616 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5617 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5619 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5620 (call0_analyze_prologue): Update the comments. Change arguments.
5621 Add the variety of updates to handle extended prologues, which now can
5622 conduct dynamic stack adjustments.
5623 (call0_frame_cache): Likewise.
5624 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5625 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5627 2011-03-10 Michael Snyder <msnyder@vmware.com>
5629 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5630 (cmd_qtframe): Ditto.
5631 (cmd_qtbuffer): Ditto.
5632 (cmd_bigqtbuffer): Ditto.
5634 2011-03-10 Tom Tromey <tromey@redhat.com>
5636 * tracepoint.c (trace_actions_command): Update.
5637 * thread.c (thread_apply_command): Update.
5638 * reverse.c (delete_bookmark_command): Update.
5639 (bookmarks_info): Update.
5640 * printcmd.c (undisplay_command): Update.
5641 * memattr.c (mem_enable_command): Update.
5642 (mem_disable_command): Update.
5643 (mem_delete_command): Update.
5644 * inferior.c (detach_inferior_command): Update.
5645 (kill_inferior_command): Update.
5646 (remove_inferior_command): Update.
5647 * cli/cli-utils.h (struct get_number_or_range_state): New.
5648 (init_number_or_range): Declare.
5649 (get_number_or_range): Update.
5650 * cli/cli-utils.c (init_number_or_range): New function.
5651 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5653 (number_is_in_list): Update.
5654 * breakpoint.h (get_tracepoint_by_number): Update.
5655 * breakpoint.c (map_breakpoint_numbers): Update for change to
5656 get_number_or_range.
5657 (find_location_by_number): Use get_number, not
5658 get_number_or_range.
5659 (trace_pass_set_count): New function.
5660 (trace_pass_command): Update for change to get_number_or_range.
5662 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5665 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5667 * python/py-param.c (add_setshow_generic): Add set/show callback
5668 parameters. Register Python object context.
5669 (get_show_value): New function.
5670 (get_set_value): New function.
5671 (call_doc_function): New function.
5672 (get_doc_string): Move behind get_show_value/get_set_value.
5674 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5676 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5678 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5680 * xtensa-tdep.c (xtensa_read_register): Add comment.
5681 (xtensa_write_register): Likewise.
5682 (xtensa_hextochar): Add comment and update to match coding conventions.
5683 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5684 (execute_l32e, execute_s32e, execute_code): Update comments.
5685 (xtensa_exception_handler_t): Update to match coding conventions.
5686 (xtensa_insn_kind): Likewise.
5688 2011-03-09 Michael Snyder <msnyder@vmware.com>
5690 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5692 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5694 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5696 2011-03-09 Tom Tromey <tromey@redhat.com>
5698 * thread.c (restore_selected_frame): Handle frame_level == -1.
5699 (make_cleanup_restore_current_thread): Use
5700 get_selected_frame_if_set.
5701 * frame.h (get_selected_frame_if_set): Declare.
5702 * frame.c (get_selected_frame_if_set): New function.
5704 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5706 * cli/cli-cmds.c (shell_escape): Use lbasename.
5707 * coffread.c (coff_start_symtab): Constify parameter.
5708 (complete_symtab): Constify `name' parameter.
5709 (coff_symtab_read): Constify `filestring' local.
5710 (coff_getfilename): Constify return and `result' local.
5712 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5713 * linux-fork.c (info_checkpoints_command): Use lbasename.
5714 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5715 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5716 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5717 * procfs.c (procfs_make_note_section): Use lbasename.
5718 * tui/tui-io.c (printable_part): Constity return and parameter.
5720 (print_filename): Constify parameters, and local `s'.
5721 (tui_rl_display_match_list): Constify local `temp'.
5723 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5726 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5727 Fix DWARF-3+ DW_AT_accessibility default assumption.
5728 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5729 cu->header.version >= 3.
5731 2011-03-09 Yao Qi <yao@codesourcery.com>
5733 * common/Makefile.in: Remove.
5734 * common/configure: Remove.
5735 * common/configure.ac: Remove.
5737 2011-03-09 Yao Qi <yao@codesourcery.com>
5740 2011-02-11 Yao Qi <yao@codesourcery.com>
5742 * common/Makefile.in: Add copyright header.
5744 2011-02-11 Yao Qi <yao@codesourcery.com>
5746 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5748 * configure.ac: Add common to sub dir.
5749 * configure: Regenerate.
5751 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5753 * xtensa-tdep.c (call0_ret): New function.
5754 (xtensa_skip_prologue): Speed up analysis.
5756 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5758 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5759 while executing MI command -data-list-changed-registers.
5761 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5763 * xtensa-tdep.c (xtensa_read_register): New function.
5764 (xtensa_write_register): New function.
5765 (xtensa_find_register_by_name): New function.
5766 (xtensa_windowed_frame_cache): Update comments in type description.
5767 (xtensa_frame_cache): Likewise.
5768 (xtensa_window_interrupt_insn): New function.
5769 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5770 (xtensa_insn_kind): Add new instructions.
5771 (rwx_special_register): New function.
5772 (call0_classify_opcode): Add new instructions to the analysis.
5773 (a0_saved, a7_saved, a11_saved): New variables.
5774 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5775 (execute_l32e): New function.
5776 (execute_s32e): New function.
5777 (xtensa_exception_handler_t): New type.
5778 (execute_code): New function.
5779 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5780 analysis for Xtensa Window Exception handlers.
5782 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5784 * xtensa-tdep.c (TX_PS): New.
5785 (windowing_enabled): Update to count for Call0 ABI.
5786 (xtensa_hextochar): New.
5787 (xtensa_init_reggroups): Make algorithm generic.
5788 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5790 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5792 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5794 2011-03-08 Michael Snyder <msnyder@vmware.com>
5796 * i386-tdep.c (i386_follow_jump): Check return value of
5798 (i386_analyze_struct_return): Ditto.
5799 (i386_skip_probe): Ditto.
5800 (i386_match_insn): Ditto.
5801 (i386_skip_noop): Ditto.
5802 (i386_analyze_frame_setup): Ditto.
5803 (i386_analyze_register_saves): Ditto.
5804 (i386_skip_prologue): Ditto.
5805 (i386_skip_main_prologue): Ditto.
5807 * target.c (read_whatever_is_readable): Fix memory leak.
5809 * i386-tdep.c (i386_process_record): Document fall through.
5811 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5813 Fix DWARF-3+ DW_AT_accessibility default assumption.
5814 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5815 cu->header.version >= 3.
5817 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5819 * remote.c (remote_check_symbols): Skip if the target has no
5822 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5824 * target.c (read_whatever_is_readable): Reformat comment,
5825 with a minor typo fix. Minor reformatting of the code.
5827 2011-03-08 Yao Qi <yao@codesourcery.com>
5829 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5830 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5831 Use cached result instead of calling displaced_in_arm_mode again.
5832 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5833 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5834 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5835 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5836 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5837 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5838 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5839 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5840 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5841 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5842 (arm_catch_kernel_helper_return): Likewise.
5843 * gdb/arm-tdep.h : Update function declarations.
5845 2011-03-07 Michael Snyder <msnyder@vmware.com>
5847 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5849 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5851 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5853 * elfread.c (elf_symtab_read): Stop memory leak.
5855 * main.c (captured_main): Fix memory leak.
5857 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5859 * ada-lang.c (compare_names): Call is_name_suffix with string1
5862 2011-03-07 Tom Tromey <tromey@redhat.com>
5864 * xcoffread.c (xcoff_sym_fns): Update.
5865 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5866 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5867 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5868 (symbol_file_add_with_addrs_or_offsets): Likewise.
5869 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5870 * somread.c (som_sym_fns): Update.
5871 * psymtab.h (require_partial_symbols): Declare.
5872 * psymtab.c (require_partial_symbols): New function.
5873 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5874 (ALL_OBJFILE_PSYMTABS): Undef.
5875 (ALL_PSYMTABS): Move from psympriv.h.
5876 (lookup_partial_symtab, find_pc_sect_psymtab)
5877 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5878 (find_last_source_symtab_from_partial)
5879 (forget_cached_source_info_partial)
5880 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5881 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5882 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5883 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5884 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5885 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5886 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5887 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5888 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5890 * mipsread.c (ecoff_sym_fns): Update.
5891 * machoread.c (macho_sym_fns): Update.
5892 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5893 (read_psyms): New function.
5894 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5895 (elf_sym_fns_lazy_psyms): New global.
5896 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5897 dwarf2_build_psymtabs.
5898 * dbxread.c (aout_sym_fns): Update.
5899 * coffread.c (coff_sym_fns): Update.
5901 2011-03-07 Tom Tromey <tromey@redhat.com>
5903 * infrun.c (print_exited_reason): Include inferior id and pid in
5906 2011-03-07 Tom Tromey <tromey@redhat.com>
5908 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5910 (target_has_execution_1): Update.
5911 (target_has_execution_current): Declare.
5912 (target_has_execution): Call target_has_execution_current.
5913 (default_child_has_execution): Update.
5914 * target.c (default_child_has_execution): Add 'the_ptid'
5916 (target_has_execution_1): Likewise.
5917 (target_has_execution_current): New function.
5918 (add_target): Update.
5919 (init_dummy_target): Update.
5920 * remote-m32r-sdi.c (m32r_has_execution): New function.
5921 (init_m32r_ops): Use it.
5922 * record.c (record_core_has_execution): Now static. Add
5923 'the_ptid' parameter.
5924 * inferior.c (have_live_inferiors): Don't save current thread.
5925 Use target_has_execution_1.
5927 2011-03-07 Yao Qi <yao@codesourcery.com>
5929 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5931 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5933 * elfread.c (elf_symtab_read): Minor reformatting.
5935 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5937 * objc-lang.c (selectors_info): Minor reformatting.
5939 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5941 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5943 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5944 Michael Snyder <msnyder@vmware.com>
5946 * ada-valprint.c (ada_val_print_array): Move the declaration of
5947 "byte_order" and "elttype" inside the block where these variables
5948 are actually used. Remove some special handling for the case
5949 where "elttype" and "eltlen" are null. Replace by a comment
5950 and a couple of assertion checks.
5952 2011-03-05 Michael Snyder <msnyder@vmware.com>
5954 * source.c (add_path): Replace semicolon at end of block.
5955 * dwarf2expr.c (execute_stack_op): Ditto.
5957 2011-03-05 Mike Frysinger <vapier@gentoo.org>
5959 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
5960 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
5961 (bfin-*-*): Likewise.
5963 2011-03-05 Michael Snyder <msnyder@vmware.com>
5965 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
5966 * mdebugread.c (parse_symbol): Ditto.
5967 * parse.c (parse_exp_in_context): Ditto.
5968 * source.c (add_path): Ditto.
5969 * utils.c (gnu_debuglink_crc32): Ditto.
5970 * varobj.c (variable_language): Ditto.
5972 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
5974 2011-03-04 Michael Snyder <msnyder@vmware.com>
5976 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
5978 * symfile.c (simple_overlay_update): Check for null return value
5979 from lookup_minimal_symbol.
5981 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
5983 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5985 * eval.c (parse_and_eval_address_1): Remove function.
5986 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
5987 instead of parse_and_eval_address_1.
5988 * value.h (parse_and_eval_address_1): Remove prototype.
5990 2011-03-04 Michael Snyder <msnyder@vmware.com>
5992 * remote.c (putpkt_binary): Document that case stmt falls through.
5994 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5996 * breakpointc (print_it_typical): Move NULL check from here...
5997 (print_bp_stop_message): ... to here.
5999 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6001 * breakpoint.c (enable_command): Use break instead of continue,
6002 and fill in a missing break.
6003 (disable_command): Ditto.
6005 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6007 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6008 (terminal_save_ours): Remove misleading comment.
6009 (inflow_inferior_data_cleanup): Free ttystate.
6010 (inflow_inferior_exit): Likewise.
6011 (copy_terminal_info): Copy ttystate.
6013 * serial.c (serial_copy_tty_state): New function.
6014 * serial.h (serial_copy_tty_state): Add prototype.
6015 (struct serial_ops): Add copy_tty_state callback.
6016 * ser-base.c (ser_base_copy_tty_state): New function.
6017 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6018 * ser-go32.c (dos_copy_tty_state): New function.
6019 (dos_ops): Install copy_tty_state callback.
6020 * ser-mingw.c (_initialize_ser_windows): Likewise.
6021 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6022 * ser-unix.c (hardwire_copy_tty_state): New function.
6023 (_initialize_ser_hardwire): Install it.
6025 2011-03-04 Michael Snyder <msnyder@vmware.com>
6027 * breakpoint.c (create_breakpoint): Add missing break statement.
6029 Reverting this patch:
6030 * infcall.c (call_function_by_hand): Add break statements for lint.
6032 Reverting this patch:
6033 * cli/cli-script.c (script_from_file): Add break for lint.
6035 2011-03-04 Michael Snyder <msnyder@vmware.com>
6037 * solib.c (reload_shared_libraries_1): Close memory leak.
6039 2011-03-03 Tom Tromey <tromey@redhat.com>
6042 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6045 2011-03-03 Michael Snyder <msnyder@vmware.com>
6047 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6048 fields of struct 'st' to zero.
6050 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6051 sal.pspace before calling set_current_source_symtab_and_line.
6053 2011-03-03 Yao Qi <yao@codesourcery.com>
6055 * Makefile.in (configure-common): Remove. Let Makefile
6056 in dir common to rebuild itself.
6057 (common/Makefile): Likewise.
6059 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6061 * utils.c (parse_escape): Add i18n markup in error message.
6063 2011-03-03 Yao Qi <yao@codesourcery.com>
6065 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6067 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6068 (displaced_write_reg, displaced_read_reg): Likewise.
6069 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6070 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6071 (cleanup_branch): Replace magic number 14 and 15 with
6072 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6074 2011-03-02 Michael Snyder <msnyder@vmware.com>
6076 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6078 * cli/cli-script.c (script_from_file): Add break for lint.
6080 * mdebugread.c (parse_partial_symbols): Fix indent.
6082 * target-descriptions.c (tdesc_gdb_type): No need to call
6083 xstrdup, callee saves a copy.
6085 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6087 * infcall.c (call_function_by_hand): Add break statements for lint.
6089 * utils.c (parse_escape): Escape the escape char.
6091 * python/py-inferior.c (build_inferior_list): Error out if
6092 PyList_Append fails.
6093 (gdbpy_inferiors): Error out if build_inferior_list fails.
6095 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6098 * record.c (record_restore): Move printf to before error return.
6100 2011-03-02 Yao Qi <yao@codesourcery.com>
6102 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6103 is_thumb and insn_size.
6104 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6105 on both ARM and Thumb mode.
6106 (arm_process_displaced_insn): Set is_thumb and insn_size.
6107 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6108 (arm_displaced_step_fixup): Likewise.
6110 2011-03-01 Michael Snyder <msnyder@vmware.com>
6112 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6114 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6116 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6118 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6120 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6123 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6124 which shadows function parameter.
6126 * tracepoint.c (create_tsv_from_upload): Superfluous call
6127 to xstrdup. Callee already calls xstrdup.
6129 * linespec.c (decode_line_1): Remove unnecessary null check.
6131 * tracepoint.c (scope_info): Fix mem leak, remove underused
6134 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6135 superfluous null check.
6137 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6138 (value_of_builtin_frame_fp_reg): Ditto.
6140 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6142 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6145 * linespec.c (decode_line_1): Check for null before dereference.
6147 * reverse.c (record_restore): Move null-check to before pointer
6150 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6152 * objc-lang.c (selectors_info): Add explanitory comment.
6153 (classes_info): Ditto.
6155 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6157 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6158 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6159 versions of the trampoline. Handle Thumb vs. ARM addresses.
6160 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6161 (arm_linux_init_abi): Install it.
6162 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6163 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6165 2011-02-28 Michael Snyder <msnyder@vmware.com>
6167 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6168 a little bigger, to avoid possibility of an overflow.
6170 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6171 buffers a little bigger, to avoid possibility of an overflow.
6173 * coffread.c (coff_getfilename): Add check to avoid overflow.
6175 * objc-lang.c (selectors_info): Add a small safety margin to
6177 (classes_info): Error out on too long REGEXP.
6179 * infrun.c (handle_inferior_event): Remove unused function call.
6181 * fork-child.c (fork_inferior): Remove ifdef'd code and
6184 * linux-thread-db.c (attach_thread): Discard unused value.
6186 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6188 * remote.c (remote_get_noisy_reply): Discard unused value.
6189 (remote_vcont_resume): Ditto.
6190 (remote_stop_ns): Ditto.
6192 * linespec.c (decode_objc): Delete unused variable.
6194 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6196 * dwarf2read.c (add_partial_symbol): Discard unused values.
6197 (read_base_type): Delete unused variable.
6199 * dbxread.c (read_dbx_symtab): Discard unused value.
6201 * eval.c (evaluate_subexp_standard): Delete unused variable,
6202 and discard unused values.
6204 * infcmd.c (_initialize_infcmd): Discard unused values.
6206 * stabsread.c (rs6000_builtin_type): Missing break statement.
6208 * dbxread.c (process_one_symbol): Discard unused value.
6210 * coffread.c (coff_end_symtab): Delete unused variable.
6212 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6213 (dwarf2_add_typedef): Delete unused variable.
6214 (read_namespace): Ditto.
6215 (dwarf_decode_macros): Ditto.
6217 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6219 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6221 * p-valprint.c (pascal_val_print): Discard unused value.
6223 * utils.c (nquery): Call va_end before return;
6227 * proc-service.c (ps_plog): Call va_end before return.
6229 2011-02-28 Tom Tromey <tromey@redhat.com>
6231 * python/python.c (gdbpy_value_cst): New global.
6232 (_initialize_python): Initialize it.
6233 * python/python-internal.h (gdbpy_value_cst): Declare.
6234 * python/py-value.c (convert_value_from_python): Use
6237 2011-02-28 Michael Snyder <msnyder@vmware.com>
6239 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6241 * breakpoint.c (catch_syscall_completer): Free malloced list.
6243 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6245 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6246 (lval_func_check_synthetic_pointer): Ditto.
6247 (lval_func_free_closure): Fix use-after-free.
6249 2011-02-28 Tom Tromey <tromey@redhat.com>
6251 * psymtab.c (expand_partial_symbol_tables): Use
6252 ALL_OBJFILE_PSYMTABS.
6254 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6256 * objc-lang.c (selectors_info): Error on too long REGEXP.
6258 2011-02-28 Michael Snyder <msnyder@vmware.com>
6260 * python/py-param.c (set_parameter_value): Add missing
6263 * linux-record.c (record_linux_system_call): Add missing
6266 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6268 * breakpoint.c (print_one_breakpoint_location): Remove unused
6269 argument PRINT_ADDRESS_BITS. Update callers.
6270 (print_one_breakpoint): Likewise.
6272 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6274 * breakpoint.c (wrap_indent_at_field): New function.
6275 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6276 Allocate ui_stream locally instead of using STB argument.
6277 (print_one_breakpoint_location): Update call.
6278 * ui-out.c (ui_out_query_field): New function.
6279 * ui-out.h (ui_out_query_field): Add prototype.
6281 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6283 From Michael Snyder <msnyder@vmware.com>
6284 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6286 2011-02-27 Michael Snyder <msnyder@vmware.com>
6288 * objc-lang.c (selectors_info): Prevent string overrun.
6290 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6293 * symtab.c (rbreak_command): Move variable 'file_name' to
6296 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6297 param with a local variable of the same name.
6299 2011-02-27 Michael Snyder <msnyder@vmware.com>
6301 * value.c (value_from_history_ref): New function.
6302 * value.h (value_from_history_ref): Export.
6303 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6304 to parse value history references.
6305 * cli/cli-utils.h (get_number_trailer): Update comment.
6307 2011-02-27 Michael Snyder <msnyder@vmware.com>
6309 * inferior.c (detach_inferior_command): Use get_number_or_range.
6310 (kill_inferior_command): Ditto.
6311 (remove_inferior_command): Ditto.
6312 (initialize_inferiors): Make command names plural.
6313 Update help strings.
6315 2011-02-27 Michael Snyder <msnyder@vmware.com>
6317 * darwin-nat-info.c: Fix comment typo.
6318 * dwarf2expr.h: Ditto.
6319 * fbsd-nat.c: Ditto.
6320 * fbsd-nat.h: Ditto.
6321 * frame-unwind.h: Ditto.
6323 * hppa-hpux-tdep.c: Ditto.
6324 * i386-linux-nat.c: Ditto.
6325 * linux-nat.c: Ditto.
6326 * nbsd-nat.c: Ditto.
6327 * nbsd-nat.h: Ditto.
6328 * ppc-linux-tdep.c: Ditto.
6331 * tui/tui-winsource.c: Ditto.
6333 2011-02-26 Michael Snyder <msnyder@vmware.com>
6335 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6337 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6339 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6340 with a local variable of the same name.
6342 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6343 param with a local variable of the same name.
6344 (i387_supply_xsave): Ditto.
6346 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6347 that it does not shadow a function parameter.
6349 * i386-nat.c (i386_length_and_rw_bits): Document that case
6350 statement is meant to fall through.
6352 * expprint.c (dump_subexp_body_standard): Document that case
6353 statement is meant to fall through.
6355 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6356 dead if statement. Condition can't be false.
6358 2011-02-25 Michael Snyder <msnyder@vmware.com>
6360 * arm-tdep.c: Fix typos in comments.
6361 * bsd-uthread.c: Ditto.
6362 * completer.c: Ditto.
6364 * cp-namespace.c: Ditto.
6365 * cp-support.c: Ditto.
6366 * cris-tdep.c: Ditto.
6368 * dwarf2read.c: Ditto.
6370 * gdbtypes.h: Ditto.
6371 * inferior.h: Ditto.
6372 * mdebugread.c: Ditto.
6373 * mips-tdep.c: Ditto.
6374 * ppc-linux-nat.c: Ditto.
6375 * ppc-linux-tdep.c: Ditto.
6376 * printcmd.c: Ditto.
6377 * sol-thread.c: Ditto.
6378 * solib-frv.c: Ditto.
6380 * sparc64-tdep.c: Ditto.
6381 * spu-tdep.c: Ditto.
6382 * stabsread.c: Ditto.
6387 * python/py-block.c: Ditto.
6388 * python/py-symbol.c: Ditto.
6389 * python/py-symtab.c: Ditto.
6390 * python/py-value.c: Ditto.
6391 * tui/tui-win.c: Ditto.
6393 2011-02-25 Michael Snyder <msnyder@vmware.com>
6395 * inferior.c (print_inferior): Accept a string instead of an int
6396 for requested_inferiors, and use get_number_or_range to parse it.
6397 (info_inferiors_command): Pass args string to print_inferior.
6398 (initialize_inferiors): Change help string for info inferiors.
6399 * inferior.h (print_inferior): Export prototype change.
6401 2011-02-25 Tom Tromey <tromey@redhat.com>
6403 * common/ax.def (invalid2): Set to 0x31.
6405 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6407 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6409 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6411 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6413 2011-02-24 Michael Snyder <msnyder@vmware.com>
6415 * Makefile.in (clean): Make clean should remove generated files
6416 observer.h and observer.inc.
6418 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6420 Revert the following patch (not approved yet):
6421 2011-02-21 Hui Zhu <teawater@gmail.com>
6422 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6423 * ax-gdb.c (gen_printf_expr_callback): New function.
6424 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6425 * ax-general.c (ax_memcpy): New function.
6426 (ax_print): Handle "printf".
6428 * ax.h (ax_memcpy): Forward declare.
6429 * common/ax.def (invalid2): Removed.
6430 (printf): New entry.
6431 * printcmd.c (printcmd.h): New include.
6432 (string_printf): New function.
6433 (ui_printf): Removed.
6434 (printf_command): Remove static. Call string_printf.
6435 (eval_command): Call string_printf.
6436 * printcmd.h: New file.
6437 * tracepoint.c (validate_actionline,
6438 encode_actions_1): handle printf_command.
6440 2011-02-23 Tom Tromey <tromey@redhat.com>
6442 * ax-general.c (ax_pick): Add missing newline.
6444 2011-02-23 Michael Snyder <msnyder@vmware.com>
6446 * breakpoint.c (breakpoint_1): Change first argument from an int
6447 to a char pointer, so that the function now accepts a list of
6448 breakpoints rather than just one. Use new function
6449 'number_is_in_list' to implement.
6450 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6451 (watchpoints_info): Ditto.
6452 (tracepoints_info): Ditto.
6453 (maintenance_info_breakpoints): Ditto.
6454 (_initialize_breakpoint): Update help strings to reflect the fact
6455 that these functions can now take more than one argument.
6456 * cli/cli-utils.c (number_is_in_list): New function.
6457 * cli/cli-utils.h (number_is_in_list): Export.
6459 2011-02-23 Michael Snyder <msnyder@vmware.com>
6461 * memattr.c (mem_enable_command): Use get_number_or_range.
6462 (mem_disable_command): Ditto.
6463 (mem_delete_command): Ditto.
6464 (_initialize_mem): Tweak usage message to reflect multiple
6467 2011-02-22 Doug Evans <dje@google.com>
6469 Add gdb.lookup_global_symbol python function.
6471 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6472 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6473 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6475 2011-02-22 Tom Tromey <tromey@redhat.com>
6477 * language.c (language_class_name_from_physname): Rename
6478 'curr_language' argument to 'lang'; use in body.
6480 2011-02-22 Michael Snyder <msnyder@vmware.com>
6482 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6484 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6486 * frame-unwind.h: Fix comment to mention the this frame, not the
6489 2011-02-22 Tom Tromey <tromey@redhat.com>
6491 * symfile.c (auto_solib_limit): Remove.
6492 * symfile.h (auto_solib_limit): Remove.
6494 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6496 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6498 2011-02-21 Michael Snyder <msnyder@vmware.com>
6500 * gdbthread.h (print_thread_info): Change prototype.
6501 * thread.c (print_thread_info): Accept char* instead of int for
6502 requested_threads argument. Use new function number_is_in_list
6503 to determine which threads to list.
6504 (info_threads_command): Pass char* to print_thread_info.
6505 * cli/cli-utils.c (number_is_in_list): New function.
6506 * cli/cli-utils.h (number_is_in_list): Export.
6507 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6509 (print_one_inferior): Ditto.
6510 (mi_cmd_list_thread_groups): Ditto.
6512 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6514 * common/Makefile.in (CFLAGS): New.
6515 (COMPILE): Add $(CFLAGS).
6517 2011-02-21 Tom Tromey <tromey@redhat.com>
6519 * breakpoint.c (catch_syscall_command_1): Fix typo.
6521 2011-02-21 Tom Tromey <tromey@redhat.com>
6523 * reverse.c: Include cli-utils.h.
6524 * printcmd.c: Include cli-utils.h.
6525 (string_printf): Use skip_spaces.
6526 * cli/cli-utils.h: New file.
6527 * cli/cli-utils.c: New file.
6528 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6529 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6530 * breakpoint.h (get_number, get_number_or_range): Move to
6532 * breakpoint.c: Include cli-utils.h.
6533 (get_number_trailer, get_number, get_number_or_range)
6534 (ep_skip_leading_whitespace): Move to cli-utils.c.
6535 (create_breakpoint_sal, find_condition_and_thread)
6536 (decode_static_tracepoint_spec, watch_command_1)
6537 (watch_maybe_just_location, ep_parse_optional_if_clause)
6538 (catch_fork_command_1, catch_exec_command_1)
6539 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6540 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6541 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6542 (HFILES_NO_SRCDIR): Add cli-utils.h.
6543 (cli-utils.o): New target.
6545 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6547 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6548 before calling discard_all_inferiors.
6550 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6552 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6553 (struct builtin_opencl_type): Remove.
6554 (builtin_opencl_type): Change return type to "struct type **".
6555 (lookup_opencl_vector_type): Update caller.
6556 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6557 (build_opencl_types): Install plain array of "struct type *"
6558 instead of "struct builtin_opencl_type".
6560 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6561 Ulrich Weigand <uweigand@de.ibm.com>
6563 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6564 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6565 (struct arm_linux_hwbp_cap): New type.
6566 (arm_linux_get_hwbp_cap): New function.
6567 (arm_linux_get_hw_breakpoint_count): Likewise.
6568 (arm_linux_get_hw_watchpoint_count): Likewise.
6569 (arm_linux_can_use_hw_breakpoint): Likewise.
6570 (arm_hwbp_type): New type.
6571 (arm_hwbp_control_t): Likewise.
6572 (struct arm_linux_hw_breakpoint): Likewise.
6573 (struct arm_linux_thread_points): Likewise.
6574 (arm_threads): New global variable.
6575 (arm_linux_find_breakpoints_by_tid): New function.
6576 (arm_hwbp_control_initialize): Likewise.
6577 (arm_hwbp_control_is_enabled): Likewise.
6578 (arm_hwbp_control_disable): Likewise.
6579 (arm_linux_hw_breakpoint_initialize): Likewise.
6580 (arm_linux_get_hwbp_type): Likewise.
6581 (arm_linux_hw_watchpoint_initialize): Likewise.
6582 (arm_linux_hw_breakpoint_equal): Likewise.
6583 (arm_linux_insert_hw_breakpoint1): Likewise.
6584 (arm_linux_remove_hw_breakpoint1): Likewise.
6585 (arm_linux_insert_hw_breakpoint): Likewise.
6586 (arm_linux_remove_hw_breakpoint): Likewise.
6587 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6588 (arm_linux_insert_watchpoint): Likewise.
6589 (arm_linux_remove_watchpoint): Likewise.
6590 (arm_linux_stopped_data_address): Likewise.
6591 (arm_linux_stopped_by_watchpoint): Likewise.
6592 (arm_linux_watchpoint_addr_within_range): Likewise.
6593 (arm_linux_new_thread): Likewise.
6594 (arm_linux_thread_exit): Likewise.
6595 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6596 related target callbacks. Register arm_linux_new_thread and
6597 arm_linux_thread_exit.
6598 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6599 * arm-tdep.c (arm_pc_is_thumb): Make global.
6600 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6602 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6604 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6605 per-frame locations while within a function epilogue.
6607 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6609 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6610 to GNU coding standards.
6612 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6614 Allow use of mingw native on Windows 95 OS.
6615 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6616 (ser_windows_close): Only call CancelIo if function exists.
6617 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6618 to check for existence of CancelIo function in kernel32 DLL.
6620 2011-02-21 Hui Zhu <teawater@gmail.com>
6622 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6623 * ax-gdb.c (gen_printf_expr_callback): New function.
6624 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6625 * ax-general.c (ax_memcpy): New function.
6626 (ax_print): Handle "printf".
6628 * ax.h (ax_memcpy): Forward declare.
6629 * common/ax.def (invalid2): Removed.
6630 (printf): New entry.
6631 * printcmd.c (printcmd.h): New include.
6632 (string_printf): New function.
6633 (ui_printf): Removed.
6634 (printf_command): Remove static. Call string_printf.
6635 (eval_command): Call string_printf.
6636 * printcmd.h: New file.
6637 * tracepoint.c (validate_actionline,
6638 encode_actions_1): handle printf_command.
6640 2011-02-19 Michael Snyder <msnyder@vmware.com>
6642 * reverse.c (delete_one_bookmark): Argument is now bookmark
6643 id rather than pointer to bookmark struct.
6644 (delete_bookmark_command): Use get_number_or_range.
6645 (goto_bookmark_command): Parse with get_number instead of strtoul.
6646 (bookmark_1): New function. Print info for one bookmark.
6647 (bookmarks_info): Use get_number_or_range and bookmark_1.
6649 2011-02-18 Michael Snyder <msnyder@vmware.com>
6651 * thread.c (info_threads_command): Re-implement using
6652 get_number_or_range.
6653 (thread_apply_command): Ditto.
6655 2011-02-18 Tom Tromey <tromey@redhat.com>
6657 * common/ax.def: New file.
6658 * ax.h (enum agent_op): Use ax.def.
6659 * ax-general.c (aop_map): Use ax.def.
6661 2011-02-18 Tom Tromey <tromey@redhat.com>
6663 * ax-general.c (aop_map): Add pick and rot.
6664 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6665 <DW_OP_rot>: Implement.
6666 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6668 * ax-general.c (ax_pick): New function.
6670 2011-02-18 Tom Tromey <tromey@redhat.com>
6672 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6674 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6675 Tom Tromey <tromey@redhat.com>
6677 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6678 make_symbol_overload_list_block with NULL BLOCK.
6679 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6681 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6683 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6684 * breakpoint.h (get_number_or_range): Declare.
6685 * printcmd.c (ALL_DISPLAYS): Declare.
6686 (delete_display): Reimplement taking a display pointer.
6687 (undisplay_command): Accept a range of displays to delete, using
6688 get_number_or_range.
6690 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6692 * c-valprint.c (c_val_print): Add embedded_offset to address
6693 for arrays of unspecified length.
6694 * p-valprint.c (pascal_val_print): Likewise.
6696 2011-02-18 Yao Qi <yao@codesourcery.com>
6698 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6699 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6700 (thumb_process_displaced_insn): New.
6701 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6702 call to arm_process_displaced_insn.
6703 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6705 2011-02-17 Tom Tromey <tromey@redhat.com>
6707 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6708 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6709 compile_dwarf_to_ax. No longer static. Call
6710 dwarf2_compile_cfa_to_ax.
6711 (locexpr_tracepoint_var_ref): Update.
6712 (loclist_tracepoint_var_ref): Update.
6713 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6714 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6715 argument; add 'gdbarch' and 'pc'.
6716 (dwarf2_compile_cfa_to_ax): New function.
6717 (dwarf2_frame_cache): Update.
6719 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6721 * ada-lang.c (ada_type_of_array): Fix the size of the array
6722 in the case of an unconstrained packed array.
6724 2011-02-17 Yao Qi <yao@codesourcery.com>
6726 * common/Makefile.in: Add more targets for make.
6728 2011-02-16 Tom Tromey <tromey@redhat.com>
6730 * dwarf2loc.c (unimplemented): Fix typo.
6732 2011-02-16 Tom Tromey <tromey@redhat.com>
6734 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6735 (compile_dwarf_to_ax) <default>: Use unimplemented.
6736 <DW_OP_deref>: Update.
6737 (disassemble_dwarf_expression): Update.
6738 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6739 (decode_locdesc): Update.
6740 * dwarf2expr.h (dwarf_stack_op_name): Update.
6742 2011-02-16 Tom Tromey <tromey@redhat.com>
6744 * ax.h (struct aop_map) <name>: Now const.
6746 2011-02-16 Tom Tromey <tromey@redhat.com>
6748 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6751 2011-02-16 Yao Qi <yao@codesourcery.com>
6753 * infrun.c (get_displaced_step_closure_by_addr): New.
6754 * inferior.h: Declare it.
6755 * arm-tdep.c: (arm_pc_is_thumb): Call
6756 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6759 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6760 Jan Kratochvil <jan.kratochvil@redhat.com>
6763 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6765 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6766 Jan Kratochvil <jan.kratochvil@redhat.com>
6768 * value.c (value_contents_copy_raw): Extend describing comment.
6769 Assert that the destination contents we're overwriting are wholly
6771 (value_contents_copy): Extend describing comment.
6773 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6774 Jan Kratochvil <jan.kratochvil@redhat.com>
6776 * value.c (value_available_contents_eq): Remove redundant local
6777 variables. Fix available contents comparision.
6778 * value.h (value_available_contents_eq): Extend describing
6781 2011-02-16 Yao Qi <yao@codesourcery.com>
6783 * thread.c (info_threads_command): Add missing i18n markup and remove
6786 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6788 * breakpoint.c (longjmp_names): New variable.
6789 (struct breakpoint_objfile_data): New type.
6790 (breakpoint_objfile_key): New variable.
6791 (msym_not_found): New variable.
6792 (msym_not_found_p): New predicate.
6793 (get_breakpoint_objfile_data): New function.
6794 (create_overlay_event_breakpoint): Check per-objfile cache for
6796 (create_longjmp_master_breakpoint): Likewise.
6797 (create_std_terminate_master_breakpoint): Likewise.
6798 (create_exception_master_breakpoint): Likewise.
6799 (_initialize_breakpoint): Register per-objfile data key.
6801 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6803 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6805 (create_longjmp_master_breakpoint): Loop over longjmp names.
6806 (create_std_terminate_master_breakpoint): Const-propagate parameter
6808 (update_breakpoints_after_exec): Adjust.
6809 (breakpoint_re_set): Adjust.
6811 2011-02-15 Michael Snyder <msnyder@vmware.com>
6813 * thread.c (info_threads_command): Process arg as thread id,
6814 or list of thread ids.
6815 (thread_find_command): New command.
6816 (_initialize_thread): Document argument for info threads.
6817 Document 'thread find' command.
6818 * NEWS: Document new command "thread find".
6820 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6822 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6823 * aclocal.m4: Regenerated with aclocal-1.11.1.
6824 * common/configure: Regenerate with autoconf-2.64.
6826 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6828 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6829 bool data type to a size of one byte.
6831 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6832 Jan Kratochvil <jan.kratochvil@redhat.com>
6834 * target.c (memory_xfer_live_readonly_partial): Document where to
6835 look for interface description.
6837 2011-02-15 Yao Qi <yao@codesourcery.com>
6840 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6841 order to store PC value on stack instead of text section.
6843 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6845 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6846 the EFP register set size.
6847 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6848 data from the VMX register.
6849 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6850 and write data from/to the VMX register.
6852 2011-02-14 Michael Snyder <msnyder@vmware.com>
6854 * command.h (enum command_class): New class 'no_set_class', for
6855 "show" commands without a corresponding "set" command.
6856 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6857 * copying.c (_initialize_copying): Ditto for "show copying" and
6859 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6861 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6862 which there is no corresponding "set" command (eg. "show copying").
6864 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6865 Jan Kratochvil <jan.kratochvil@redhat.com>
6867 * exec.c (section_table_available_memory): Change `len' parameter
6869 * exec.h (section_table_available_memory): Ditto.
6870 * value.h (read_value_memory): Rename the `offset' parameter to
6873 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6874 Jan Kratochvil <jan.kratochvil@redhat.com>
6876 * memrange.c (compare_mem_ranges): Mention sort order in
6878 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6879 * tracepoint.c (traceframe_available_memory): Extend comment to
6880 mention what happens to RESULT when the target does not support
6883 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6884 Jan Kratochvil <jan.kratochvil@redhat.com>
6886 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6889 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6891 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6892 No longer handle NULL values.
6894 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6896 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6897 * value.c: Include "exceptions.h".
6898 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6900 * cp-abi.c: Include gdb_assert.h.
6901 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6902 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6904 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6905 parameters. No longer returns -1 on error.
6906 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6908 * cp-valprint.c: Include exceptions.h.
6909 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6910 the baseclass_offset. Handle unavailable base classes. Use
6911 val_print_invalid_address.
6912 * p-valprint.c: Include exceptions.h.
6913 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6914 when fetching the baseclass_offset. No longer expect
6915 baseclass_offset returning -1. Handle unavailable base classes.
6916 Use val_print_invalid_address.
6917 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6918 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6919 `embedded_offset' and `val' parameters. Adjust.
6920 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6921 parameter, and change its type to gdb_byte pointer. Add
6922 `embedded_offset' and `val' parameters. Adjust. No longer expect
6923 baseclass_offset returning -1.
6924 (value_dynamic_cast): Use value_contents_for_printing rather than
6925 value_contents. Adjust.
6926 (search_struct_field): No longer expect baseclass_offset returning
6928 (search_struct_method): If reading memory from the target is
6929 necessary, wrap it in a new value to pass to baseclass_offset. No
6930 longer expect baseclass_offset returning -1.
6931 (find_method_list): No longer expect baseclass_offset returning
6932 -1. Use value_contents_for_printing rather than value_contents.
6933 * valprint.c (val_print_invalid_address): New function.
6934 * valprint.h (val_print_invalid_address): Declare.
6935 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6936 and `val' parameters. No longer expect baseclass_offset returning
6938 * gnu-v2-abi.c: Include "exceptions.h".
6939 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6940 parameters. Handle unavailable memory. Recurse through
6941 gnuv2_baseclass_offset directly, rather than through
6942 baseclass_offset. No longer returns -1 on not found, instead
6944 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6945 `val' parameters. Adjust.
6947 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6949 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
6950 almost but not quite adjacent.
6952 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6954 * value.h (value_entirely_available): Declare.
6955 * value.c (value_entirely_available): New function.
6956 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6957 real type if the pointer is unavailable.
6959 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6961 * valops.c (value_repeat): Use read_value_memory instead of
6964 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6966 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
6967 * value.c (value_contents_copy_raw, value_contents_copy): New
6969 (value_primitive_field): Use value_contents_copy_raw instead of
6971 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
6973 (value_array, value_slice): Ditto.
6974 * valarith.c (value_subscripted_rvalue): Use
6975 value_contents_copy_raw instead of memcpy.
6977 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6979 <unavailable> references.
6981 * valops.c (get_value_at): Use value_from_contents_and_address,
6982 avoiding read_memory.
6984 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6986 * c-valprint.c (c_val_print): Print a string with unavailable
6987 contents as an array.
6989 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6991 * value.h (unpack_bits_as_long): Delete declaration.
6992 (unpack_value_bits_as_long): Declare.
6993 (unpack_value_field_as_long): Declare.
6994 (value_field_bitfield): Declare.
6995 * value.c (unpack_bits_as_long): Rename to...
6996 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
6997 value parameters. Return the extracted result in a new output
6998 parameter. If the value contents are unavailable, return false,
6999 otherwise return true.
7000 (unpack_value_bits_as_long): New.
7001 (unpack_field_as_long): Rename to...
7002 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7003 Add embedded_offset and value parameters. Return the extracted
7004 result in a new output parameter. If the value contents are
7005 unavailable, return false, otherwise return true.
7006 (unpack_value_field_as_long): New.
7007 (unpack_field_as_long_1): New.
7008 (unpack_field_as_long): Reimplement as wrapper around
7009 unpack_value_field_as_long_1.
7010 (value_field_bitfield): New function.
7011 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7012 unpack_value_bits_as_long. Mark the value as unavailable, if it
7014 * jv-valprint.c (java_print_value_fields): Use
7015 value_field_bitfield.
7016 * p-valprint.c (pascal_object_print_value_fields): Use
7017 value_field_bitfield.
7018 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7020 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7022 * value.c (get_internalvar_integer): Also return the int value of
7023 TYPE_CODE_INT INTERNALVAR_VALUE values.
7024 (set_internalvar): Don't special case TYPE_CODE_INT.
7026 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7028 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7029 INTERNALVAR_POINTER.
7031 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7032 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7033 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7035 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7037 * value.h (value_available_contents_eq): Declare.
7038 * value.c (find_first_range_overlap): New function.
7039 (value_available_contents_eq): New function.
7040 * valprint.c (val_print_array_elements): Use
7041 value_available_contents_eq.
7042 * ada-valprint.c (val_print_packed_array_elements): Use
7043 value_available_contents_eq.
7044 * jv-valprint.c (java_value_print): Use
7045 value_available_contents_eq.
7047 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7049 * target.c (target_read_live_memory): New function.
7050 (memory_xfer_live_readonly_partial): New.
7051 (memory_xfer_partial): If reading from a traceframe, fallback to
7052 reading unavailable read-only memory from read-only regions of
7054 * tracepoint.c (disconnect_tracing): Adjust.
7055 (set_current_traceframe): New, factored out from
7056 set_traceframe_number.
7057 (set_traceframe_number): Reimplement to only change the traceframe
7058 number on the GDB side.
7059 (do_restore_current_traceframe_cleanup): Adjust.
7060 (make_cleanup_restore_traceframe_number): New.
7061 (cur_traceframe_number): New global.
7062 (tfile_open): Set cur_traceframe_number to no traceframe.
7063 (set_tfile_traceframe): New function.
7064 (tfile_trace_find): If looking up a traceframe using any method
7065 other than by number, make sure the current tfile traceframe
7066 matches gdb's current traceframe. Update the current tfile
7067 traceframe if the lookup succeeded.
7068 (tfile_fetch_registers, tfile_xfer_partial)
7069 (tfile_get_trace_state_variable_value): Make sure the remote
7070 traceframe matches gdb's current traceframe.
7071 * remote.c (remote_traceframe_number): New global.
7072 (remote_open_1): Set it to -1.
7073 (set_remote_traceframe): New function.
7074 (remote_fetch_registers, remote_store_registers)
7075 (remote_xfer_memory, remote_xfer_partial)
7076 (remote_get_trace_state_variable_value): Make sure the remote
7077 traceframe matches gdb's current traceframe.
7078 (remote_trace_find): If looking up a traceframe using any method
7079 other than by number, make sure the current remote traceframe
7080 matches gdb's current traceframe. Update the current remote
7081 traceframe if the lookup succeeded.
7082 * infrun.c (fetch_inferior_event): Adjust.
7083 * tracepoint.h (set_current_traceframe): Declare.
7084 (get_traceframe_number, set_traceframe_number): Add describing
7087 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7089 Mark pieces of values as unavailable if the corresponding memory
7092 * valops.c: Include tracepoint.h.
7093 (value_fetch_lazy): Use read_value_memory.
7094 (read_value_memory): New.
7095 * value.h (read_value_memory): Declare.
7096 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7097 * exec.c (section_table_available_memory): New function.
7098 * exec.h (section_table_available_memory): Declare.
7100 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7102 * Makefile.in (SFILES): Add memrange.c.
7103 (HFILES_NO_SRCDIR): Add memrange.h.
7104 (COMMON_OBS): Add memrange.o.
7105 * memrange.c: New file.
7106 * memrange.h: New file.
7107 * tracepoint.c: Include memrange.h.
7108 (struct mem_range): Delete.
7109 (mem_range_s): Delete.
7110 (traceframe_available_memory): New function.
7111 * tracepoint.h (traceframe_available_memory): Declare.
7113 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7115 * target.h (struct traceframe_info): Forward declare.
7116 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7117 (struct target_ops) <to_traceframe_info>: New field.
7118 (target_traceframe_info): New.
7119 * target.c (update_current_target): Inherit and default
7121 * remote.c (PACKET_qXfer_traceframe_info): New.
7122 (remote_protocol_features): Register qXfer:traceframe-info:read.
7123 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7124 (remote_traceframe_info): New.
7125 (init_remote_ops): Install it.
7126 (_initialize_remote): Install "set/show remote traceframe-info"
7128 * tracepoint.h (parse_traceframe_info): Declare.
7129 * tracepoint.c (struct mem_range): New.
7130 (mem_range_s): New typedef.
7131 (struct traceframe_info): New.
7132 (traceframe_info): New global.
7133 (free_traceframe_info): New function.
7134 (clear_traceframe_info): New function.
7135 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7137 (build_traceframe_info): New function.
7138 (tfile_traceframe_info): New function.
7139 (init_tfile_ops): Install tfile_traceframe_info.
7140 (traceframe_info_start_memory, free_result): New functions.
7141 (memory_attributes, traceframe_info_elements): New globals.
7142 (parse_traceframe_info, get_traceframe_info): New functions.
7143 * features/traceframe-info.dtd: New file.
7144 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7146 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7148 Base support for <unavailable> value contents.
7150 * value.h (value_bytes_available): Declare.
7151 (mark_value_bytes_unavailable): Declare.
7152 * value.c (struct range): New struct.
7153 (range_s): New typedef.
7154 (ranges_overlap): New function.
7155 (range_lessthan): New function.
7156 (ranges_contain_p): New function.
7157 (struct value) <unavailable>: New field.
7158 (value_bytes_available): New function.
7159 (mark_value_bytes_unavailable): New function.
7160 (require_not_optimized_out): Constify parameter.
7161 (require_available): New function.
7162 (value_contents_all, value_contents): Require all bytes be
7164 (value_free): Free `unavailable'.
7165 (value_copy): Copy `unavailable'.
7166 * valprint.h (val_print_unavailable): Declare.
7167 * valprint.c (valprint_check_validity): Rename `offset' parameter
7168 to `embedded_offset'. If printing a scalar, check whether the
7169 value chunk is available.
7170 (val_print_unavailable): New.
7171 (val_print_scalar_formatted): Check whether the value is
7173 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7174 pretty-printing unavailable values.
7176 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7178 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7179 * c-typeprint.c (c_type_print_args): Update the function comment. New
7180 variable param_type, initialize it. Remove const/volatile qualifiers
7181 for language_cplus and !show_artificial. Use param_type.
7183 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7185 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7186 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7187 * symtab.h (struct symtab) <next>: Comment extension.
7189 2011-02-12 Yao Qi <yao@codesourcery.com>
7191 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7193 2011-02-11 Yao Qi <yao@codesourcery.com>
7195 * common/Makefile.in: Add copyright header.
7197 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7199 * infrun.c (proceed): Move switching out and in of tfind mode from
7201 (fetch_inferior_event): ... to here.
7203 2011-02-11 Yao Qi <yao@codesourcery.com>
7205 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7207 * configure.ac: Add common to sub dir.
7208 * configure: Regenerate.
7210 2011-02-11 Yao Qi <yao@codesourcery.com>
7214 * common/Makefile.in: New.
7215 * common/configure.ac: New.
7216 * common/aclocal.m4: New.
7217 * common/configure: Generate.
7219 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7221 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7222 side of the parenthesis.
7225 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7226 * vec.h (VEC_block_remove): Fix comment.
7228 2011-02-08 Michael Snyder <msnyder@vmware.com>
7230 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7232 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7234 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7235 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7238 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7241 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7243 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7244 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7246 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7248 * dwarf2read.c (read_subroutine_type): Set special calling
7249 convention flag for functions compiled by IBM XL C for OpenCL.
7250 * ppc-sysv-tdep.c: Include "dwarf2.h"
7251 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7253 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7254 IBM OpenCL vector types calling convention.
7255 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7256 (ppc_sysv_abi_broken_return_value): Likewise.
7257 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7258 types calling convention.
7259 (ppc64_sysv_abi_return_value): Likewise.
7260 * spu-tdep.c: Include "dwarf2.h"
7261 (spu_return_value): Implement IBM OpenCL vector types calling
7264 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7266 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7267 correct ABI for AltiVec vector arguments.
7269 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7271 * valprint.c (val_print): Extend comment.
7272 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7273 interface explanation to val_print.
7274 (ada_val_print_array): Adjust comment to current interface.
7275 (print_field_values): Adjust comment to current interface.
7276 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7277 explanation to val_print.
7278 * f-valprint.c (f_val_print): Ditto.
7279 * jv-valprint.c (java_val_print): Ditto.
7280 * m2-valprint.c (m2_val_print): Ditto.
7281 * p-valprint.c (pascal_val_print): Ditto.
7283 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7285 * breakpoint.c (parse_breakpoint_sals): Fix description.
7287 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7288 Oguz Kayral <oguzkayral@gmail.com>
7290 * python/py-inferior.c (python_on_normal_stop): New function.
7291 (python_on_resume): New function.
7292 (python_inferior_exit): New function.
7293 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7294 inferior_exit observers.
7295 * python/py-evtregistry.c: New file.
7296 * python/py-threadevent.c : New file.
7297 * python/py-event.c: New file.
7298 * python/py-evts.c: New file.
7299 * python/py-continueevent.c: New file.
7300 * python/py-bpevent.c: New file.
7301 * python/py-signalevent.c: New file.
7302 * python/py-exetiedevent.c: New file.
7303 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7304 Move struct breakpoint_object from here...
7305 * python/python-internal.h: ... to here.
7306 * python/py-event.h: New file.
7307 * python/py-events.h: New file.
7308 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7309 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7310 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7311 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7312 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7313 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7314 Add build rules for all the above.
7316 2011-02-04 Tom Tromey <tromey@redhat.com>
7318 * dwarf2read.c (dwarf2_section_empty_p): New function.
7319 (dwarf2_read_section): Use dwarf2_section_empty_p.
7320 (dwarf2_section_size): New function.
7321 (dwarf2_get_section_info): Unconditionally read section.
7322 (dwarf2_read_index): Use dwarf2_section_empty_p.
7323 (partial_read_comp_unit_head): Use dwarf2_section_size.
7324 (dwarf2_symbol_mark_computed): Likewise.
7326 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7328 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7330 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7332 * mips-linux-tdep.c: Include xml-syscall.h.
7333 (mips_linux_get_syscall_number): New function.
7334 (mips_linux_init_abi): Add calls to
7335 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7336 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7337 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7338 * syscalls/mips-n32-linux.xml: New file.
7339 * syscalls/mips-n64-linux.xml: New file.
7340 * syscalls/mips-o32-linux.xml: New file.
7342 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7344 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7345 Complain about inverted range entries.
7346 (dwarf2_record_block_ranges): Likewise.
7348 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7351 * breakpoint.c (update_watchpoint): Fix name of the
7352 update_global_location_list function.
7353 (print_one_breakpoint): Fix typo.
7354 (_initialize_breakpoint): Remove extra space in hbreak help
7356 * breakpoint.h (struct bp_location) <length>: Fix field
7359 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7361 * regcache.c (registers_changed_ptid): Don't explictly always
7362 clear `current_regcache'. Only clear current_thread_ptid and
7363 current_thread_arch when PTID matches. Only reinit the frame
7364 cache if PTID matches the current inferior_ptid. Move alloca(0)
7366 (registers_changed): ... here.
7368 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7370 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7371 starts with __stack_chk_guard as stack guard symbol.
7373 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7375 * disasm.c (compare_lines): Handle the end of sequence markers
7376 within the line table to better support disassembling over
7377 compilation unit boundaries.
7379 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7381 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7382 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7383 implementation even if no symbols are available.
7384 (thumb_analyze_prologue): Update call to skip_prologue_function.
7385 (arm_analyze_prologue): Likewise.
7387 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7389 * arm-tdep.c: Include "observer.h".
7390 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7391 (arm_exidx_data_key): New static variable.
7392 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7393 (struct arm_exidx_data): Likewise.
7394 (arm_exidx_data_free): New function.
7395 (arm_compare_exidx_entries): Likewise.
7396 (arm_obj_section_from_vma): Likewise.
7397 (arm_exidx_new_objfile): Likewise.
7398 (arm_find_exidx_entry): Likewise.
7399 (arm_exidx_fill_cache): Likewise.
7400 (arm_exidx_unwind_sniffer): Likewise.
7401 (arm_exidx_unwind): New global variable.
7402 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7403 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7404 observer. Register arm_exidx_data_key as objfile data.
7406 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7408 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7409 due to accessing uninitialized variable. Fix indentation.
7411 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7413 * c-valprint.c (c_value_print): When doing virtual base pointer
7414 adjustment, create a new value with adjusted contents rather than
7415 changing the contents of the value being printed (and getting it
7418 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7420 * xml-support.c (xml_find_attribute): New.
7421 (xinclude_start_include): Use it.
7422 * xml-support.h (xml_find_attribute): Declare.
7423 * memory-map.c (memory_map_start_memory)
7424 (memory_map_start_property): Use xml_find_attribute.
7425 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7427 * remote.c (start_thread): Use xml_find_attribute.
7428 * solib-target.c (library_list_start_segment)
7429 (library_list_start_section, library_list_start_library)
7430 (library_list_start_list): Use xml_find_attribute.
7431 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7432 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7433 (tdesc_start_field): Use xml_find_attribute.
7435 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7437 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7438 (BUILD_OCL_VTYPES): Update.
7440 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7442 * configure.ac: Work around non-GNU sed limitation when computing
7443 python version number.
7444 * configure: Regenerate.
7446 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7448 Fix debug printing of TYPE_INSTANCE.
7449 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7450 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7452 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7454 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7455 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7456 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7457 * ada-operator.inc: Rename the file to ...
7458 * ada-operator.def: ... here, wrap all the entries by macro OP.
7459 * expprint.c (op_name_standard): Remove all the entries. Include
7460 "std-operator.def" instead.
7461 * expression.h (enum exp_opcode): Include "std-operator.def" and
7462 "ada-operator.def". Move all the entries ...
7463 * std-operator.def: ... here, wrap all the entries by macro OP.
7465 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7467 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7468 * breakpoint.c (remove_jit_event_breakpoints): New function.
7469 * jit.c (jit_descriptor_addr): Delete.
7470 (registering_code): Delete.
7471 (clear_int): Delete.
7472 (jit_inferior_data): New variable.
7473 (struct jit_inferior_data): New type.
7474 (get_jit_inferior_data): New function.
7475 (jit_inferior_data_cleanup): New function.
7476 (jit_read_descriptor): Adjust.
7477 (jit_register_code): Adjust.
7478 (jit_breakpoint_re_set_internal): New function; move code here ...
7479 (jit_inferior_init): ... from here.
7480 (jit_breakpoint_re_set): Adjust.
7481 (jit_reset_inferior_data_and_breakpoints): New function.
7482 (jit_inferior_created_observer): Adjust.
7483 (jit_inferior_exit_hook): Adjust.
7484 (jit_executable_changed_observer): New function.
7485 (jit_event_handler): Adjust.
7486 (_initialize_jit): Adjust.
7488 2011-01-31 Michael Snyder <msnyder@vmware.com>
7490 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7493 2011-01-31 Tom Tromey <tromey@redhat.com>
7496 * python/python.c (execute_gdb_command): Call
7497 prevent_dont_repeat.
7498 * top.c (suppress_dont_repeat): New global.
7499 (dont_repeat): Use it.
7500 (prevent_dont_repeat): New function.
7501 * command.h (prevent_dont_repeat): Declare.
7503 2011-01-31 Tom Tromey <tromey@redhat.com>
7505 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7506 * python/py-breakpoint.c (bppy_set_silent): Use
7507 breakpoint_set_silent.
7508 (bppy_set_thread): Use breakpoint_set_thread.
7509 (bppy_set_task): Use breakpoint_set_task.
7510 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7511 (breakpoint_set_task): Declare.
7512 (make_breakpoint_silent): Remove.
7513 * breakpoint.c (breakpoint_set_silent): New function.
7514 (breakpoint_set_thread): Likewise.
7515 (breakpoint_set_task): Likewise.
7516 (make_breakpoint_silent): Remove.
7518 2011-01-31 Tom Tromey <tromey@redhat.com>
7520 * breakpoint.h (user_breakpoint_p): Declare.
7521 * breakpoint.c (user_breakpoint_p): New function.
7522 (breakpoint_1): Use it.
7523 (save_breakpoints): Likewise.
7525 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7527 * configure.ac: Add handling of Python distribution on Windows.
7528 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7529 sysconfig variables are not defined, then do not use them.
7530 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7531 instead. On Windows, return all paths using forward-slashes
7532 rather than backslashes.
7534 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7536 * configure.ac: Remove fallback behavior for building
7537 against Python. Remove tweaking of Python include path.
7538 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7539 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7540 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7541 Always restore CPPFLAGS and LIBS after linking test.
7542 * configure: Regenerated.
7543 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7544 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7545 * python/python-internal.h: Adjust includes of Python .h files.
7547 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7549 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7552 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7554 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7557 2011-01-31 Yao Qi <yao@codesourcery.com>
7559 * arm-linux-nat.c: Update calls to regcache_register_status
7560 instead of regcache_valid_p.
7561 * aix-thread.c: Likewise.
7562 * i386gnu-nat.c: Likewise.
7564 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7567 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7568 touching TYPE_FIELD_ARTIFICIAL.
7570 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7572 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7575 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7577 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7578 selected, don't try iterating over the traceframe's blocks.
7579 (tfile_has_stack): If there's no traceframe selected, then there's
7581 (tfile_has_registers): If there's no traceframe selected, then
7582 there's no registers.
7584 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7586 * target.c (memory_xfer_partial): No need to restore shadows if we
7587 haven't read anything.
7589 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7591 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7592 and val_print_scalar_formatted.
7594 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7596 * tracepoint.c (tfile_read): New.
7597 (tfile_open): Use it.
7598 (tfile_get_traceframe_address): Use it.
7599 (tfile_trace_find): Use it.
7600 (walk_blocks_callback_func): New typedef.
7601 (match_blocktype): New function.
7602 (traceframe_walk_blocks): New function.
7603 (traceframe_find_block_type): New function.
7604 (tfile_fetch_registers, tfile_xfer_partial)
7605 (tfile_get_trace_state_variable_value): Use
7606 traceframe_find_block_type and tfile_read.
7608 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7610 * remote-mips.c: Add internationalization mark ups. Remove
7611 trailing \n from already marked up strings.
7613 2011-01-26 Tom Tromey <tromey@redhat.com>
7615 * python/py-prettyprint.c (print_string_repr): Clear
7616 'addressprint' option when calling val_print_string.
7617 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7618 option when calling val_print_string.
7620 2011-01-26 Tom Tromey <tromey@redhat.com>
7622 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7624 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7626 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7627 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7628 (gdb_py_long_as_ulongest): New defines.
7629 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7630 (gdb_py_int_as_long): Declare.
7631 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7632 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7633 (valpy_long): Add comment.
7634 * python/py-utils.c (get_addr_from_python): Use
7635 gdb_py_long_as_ulongest. Handle overflow properly.
7636 (gdb_py_object_from_longest): New function.
7637 (gdb_py_object_from_ulongest): Likewise.
7638 (gdb_py_int_as_long): Likewise.
7639 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7640 * python/py-symtab.c (salpy_get_pc): Use
7641 gdb_py_long_from_ulongest.
7642 (salpy_get_line): Use PyInt_FromLong.
7643 * python/py-param.c (set_parameter_value): Use
7645 * python/py-lazy-string.c (stpy_get_address): Use
7646 gdb_py_long_from_ulongest.
7647 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7648 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7649 * python/py-breakpoint.c (bppy_set_thread): Use
7651 (bppy_set_task): Likewise.
7652 (bppy_set_ignore_count): Likewise.
7653 (bppy_set_hit_count): Likewise.
7654 * python/py-block.c (blpy_get_start): Use
7655 gdb_py_object_from_ulongest.
7656 (blpy_get_end): Likewise.
7657 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7659 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7662 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7663 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7664 equality test for objfile, initialize addr_low if needed.
7666 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7668 * tui/tui-regs.c (tui_register_format): Remove dead code.
7670 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7672 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7673 instead of print_scalar_formatted.
7674 (print_scalar_formatted): Don't handle 's' format strings here,
7675 and add an assertion that we never see such format here.
7676 * valprint.h (val_print_scalar_formatted): Declare.
7677 * valprint.c (val_print_scalar_formatted): New.
7678 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7679 instead of print_scalar_formatted.
7680 * jv-valprint.c (java_val_print): Ditto.
7681 * p-valprint.c (pascal_val_print): Ditto.
7682 * ada-valprint.c (ada_val_print_1): Ditto.
7683 * f-valprint.c (f_val_print): Ditto.
7684 * infcmd.c (registers_info): Ditto.
7685 * m2-valprint.c (m2_val_print): Ditto.
7687 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7689 * m2-valprint.c (print_unbounded_array): Pass
7690 value_contents_for_printing rather than value_contents, to
7691 m2_print_array_contents. Also pass in the value.
7693 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7695 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7696 (save_gdb_index_command): Switch to .gdb_index version 4.
7698 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7700 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7701 than frame_register, and always pass a valid value to val_print.
7703 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7705 Centralize printing "<optimized out>".
7707 * valprint.h (val_print_optimized_out): Declare.
7708 * cp-valprint.c (cp_print_value_fields): Use
7709 val_print_optimized_out.
7710 * jv-valprint.c (java_print_value_fields): Ditto.
7711 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7712 * printcmd.c (print_formatted): Ditto.
7713 * valprint.c (valprint_check_validity): Ditto.
7714 (value_check_printable): Ditto.
7715 (val_print_optimized_out): New.
7717 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7719 * infcmd.c (default_print_registers_info): Allocate values so to
7720 never pass a NULL value to val_print.
7722 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7724 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7725 boolean. Make sure to always pass a value that matches the
7726 contents buffer to callees. Preserve `address' for following
7728 * value.c (value_contents_for_printing_const): New.
7729 (value_address): Constify value argument.
7730 * value.h (value_contents_for_printing_const): Declare.
7731 (value_address): Constify value argument.
7733 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7735 * regcache.c (struct regcache_descr): Rename
7736 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7737 and sizeof_cooked_register_valid_p to
7738 sizeof_cooked_register_status.
7739 (init_regcache_descr): Adjust.
7740 (struct regcache): Rename register_valid_p field to
7742 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7743 (do_cooked_read): Adjust.
7744 (regcache_valid_p): Rename to ...
7745 (regcache_register_status): ... this. Adjust.
7746 (regcache_invalidate): Adjust.
7747 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7749 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7750 as unavailable, not valid.
7751 (regcache_dump): Adjust.
7752 * regcache.h (enum register_status): New.
7753 (regcache_register_status): Declare.
7754 (regcache_invalidate): Delete declaration.
7755 * corelow.c (get_core_registers): Adjust.
7756 * tracepoint.c (tfile_fetch_registers): Adjust.
7757 * trad-frame.c (REG_VALUE): Rename to ...
7758 (TF_REG_VALUE): ... this.
7759 (REG_UNKNOWN): Rename to ...
7760 (TF_REG_UNKNOWN): ... this.
7761 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7762 * mi/mi-main.c (register_changed_p): Adjust.
7764 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7766 * regcache.c (struct regcache_descr): Remove outdated comment.
7767 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7769 (regcache_xmalloc): Rename to ...
7770 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7771 Allocate the regcache type accordingly.
7772 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7773 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7774 cooked registers, not raw.
7775 (regcache_dup_no_passthrough): Delete.
7776 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7777 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7778 mention obsolete write_register_bytes.
7779 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7781 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7783 Stop remote_read_bytes from handling partial reads itself.
7785 * remote-fileio.c: Include target.h.
7786 (remote_fileio_write_bytes): Delete.
7787 (remote_fileio_func_open, remote_fileio_func_write)
7788 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7790 (remote_fileio_func_stat): Use target_read_memory and
7791 target_write_memory.
7792 (remote_fileio_func_gettimeofday): Use target_write_memory.
7793 (remote_fileio_func_system): Use target_read_memory.
7794 * remote.c (remote_write_bytes): Make it static.
7795 (remote_read_bytes): Don't handle partial reads here.
7796 * remote.h (remote_read_bytes): Delete declaration.
7798 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7800 Simplify XML parsing a bit.
7802 * xml-support.h (gdb_xml_parse_quick): Declare.
7803 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7804 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7806 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7807 gdb_xml_create_parser_and_cleanup_1.
7808 (gdb_xml_parse_quick): New.
7809 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7810 * osdata.c (osdata_parse): Ditto.
7811 * remote.c (remote_threads_info): Ditto.
7812 * solib-target.c (solib_target_parse_libraries): Ditto.
7813 * xml-syscall.c (syscall_parse_xml): Ditto.
7814 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7816 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7818 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7819 with remote-mips.o added to gdb_target_obs.
7820 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7822 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7824 * ada-valprint.c (val_print_packed_array_elements): Pass the
7825 correct struct value to val_print.
7826 (ada_val_print_1): Ditto.
7828 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7830 Don't lose embedded_offset in printing routines throughout.
7832 * valprint.h (val_print_array_elements): Change prototype.
7833 * valprint.c (val_print_array_elements): Add `embedded_offset'
7834 parameter, and adjust to pass it down to val_print, while passing
7835 `valaddr' or `address' unmodified. Take embedded_offset into
7836 account when checking repetitions.
7837 * c-valprint.c (c_val_print): Pass embedded_offset to
7838 val_print_array_elements instead of adjusting `valaddr' and
7840 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7841 embedded_offset to val_print_array_elements instead of adjusting
7843 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7844 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7845 val_print_array_elements and pascal_object_print_value_fields
7846 instead of adjusting `valaddr'.
7847 (pascal_object_print_value_fields): Add `offset' parameter, and
7849 (pascal_object_print_value): Add `offset' parameter, and adjust to
7851 (pascal_object_print_static_field): Use
7852 value_contents_for_printing/value_embedded_offset, rather than
7854 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7855 parameter, and adjust to use it. Use
7856 value_contents_for_printing/value_embedded_offset, rather than
7858 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7859 (ada_val_print_array): Add `offset' parameter, and adjust to use
7861 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7862 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7863 Instead work with offsets. Use
7864 value_contents_for_printing/value_embedded_offset, rather than
7865 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7866 and use value_from_pointer to extract a target pointer, rather
7867 than value_from_longest.
7868 (print_variant_part): Add `offset' parameter. Replace
7869 `outer_valaddr' parameter by a new `outer_offset' parameter.
7870 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7871 (ada_value_print): Use
7872 value_contents_for_printing/value_embedded_offset, rather than
7874 (print_record): Add `offset' parameter, and adjust to pass it
7876 (print_field_values): Add `offset' parameter. Replace
7877 `outer_valaddr' parameter by a new `outer_offset' parameter.
7878 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7879 Use value_contents_for_printing/value_embedded_offset, rather than
7881 * d-valprint.c (dynamic_array_type): Use
7882 value_contents_for_printing/value_embedded_offset, rather than
7884 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7885 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7886 (java_print_value_fields): Take `offset' into account. Don't
7887 re-adjust `valaddr'. Instead pass down adjusted offsets.
7888 (java_val_print): Take `embedded_offset' into account. Pass it to
7889 java_print_value_fields.
7890 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7891 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7892 down adjusted offsets.
7893 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7894 (f_val_print): Take `embedded_offset' into account.
7896 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7898 * inflow.c: Include "gdbcmd.h".
7899 (interactive_mode): New static global, moved here from top.c.
7900 (show_interactive_mode): New function, moved here from top.c.
7901 use gdb_has_a_terminal instead of input_from_terminal_p to
7902 determine the current mode.
7903 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7905 (_initialize_inflow): Add the "set/show interactive-mode"
7906 commands. Moved here from top.c, after having adjusted slightly
7908 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7910 (input_from_terminal_p): Remove handling of "interactive-mode"
7911 setting, moved to infow.c.
7912 (init_main): Remove creation of the "set/show interactive-mode"
7913 commands, moved to inflow.c.
7915 2011-01-19 Joel Brobecker <brobecker@adacore.com>
7917 * NEWS: Add entry for native ia64-hpux support.
7919 2011-01-19 Tom Tromey <tromey@redhat.com>
7922 * thread.c (free_thread): Free 'name'.
7923 (print_thread_info): Emit thread name. Change CLI output.
7924 (thread_name_command): New function.
7925 (do_captured_thread_select): Emit newline.
7926 (_initialize_thread): Register 'thread name' command.
7927 * target.h (struct target_ops) <to_thread_name>: New field.
7928 (target_thread_name): New macro.
7929 * target.c (update_current_target): Handle to_thread_name.
7930 * python/py-infthread.c (thpy_get_name): New function.
7931 (thpy_set_name): Likewise.
7932 (thread_object_getset): Add "name".
7933 * linux-nat.c (linux_nat_thread_name): New function.
7934 (linux_nat_add_target): Set to_thread_name.
7935 * gdbthread.h (struct thread_info) <name>: New field.
7937 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7939 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7940 (ada_val_print_1): Likewise.
7942 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7944 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7945 upper limit address is not greater than the function end address
7946 when the upper limit could not be computed using the debugging
7949 2011-01-17 Tom Tromey <tromey@redhat.com>
7951 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
7953 * utils.c: Include gdb_regex.h.
7954 (do_regfree_cleanup): New function.
7955 (make_regfree_cleanup): Likewise.
7956 (get_regcomp_error): Likewise.
7957 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
7959 2011-01-17 Tom Tromey <tromey@redhat.com>
7961 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
7964 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7966 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
7967 for internal variables.
7968 (last_was_structop): New static variable.
7969 (COMPLETE): New token.
7970 (field_exp): New rule to group all '.' suffix handling.
7971 Add mark_struct_expression calls when approriate to be able
7972 to correctly find fields for completion.
7973 (yylex): Adapt to handle field completion and set INTVAR when
7976 2011-01-14 Yao Qi <yao@codesourcery.com>
7978 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
7979 save_reggroup, restore_reggroup and all_reggroup.
7981 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7983 * ada-valprint. (ada_printchar): Use the correct type length
7984 in call to ada_emit_char.
7985 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
7987 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7989 * solib-som.h (hpux_major_release): Declare variable here.
7990 * solib-som.c: Remove <sys/utsname.h> header.
7991 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
7992 (hpux_major_release): Make global, change default value to
7993 DEFAULT_HPUX_MAJOR_RELEASE.
7994 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7995 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
7996 Add "solib-som.h" header.
7997 (set_hpux_major_release): New function.
7998 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8000 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8002 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8004 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8006 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8007 new-line at end of warning message.
8008 (ia64_hpux_store_register): Remove trailing new-line at end of
8010 * ia64-hpux-tdep.c: Rephrase comment.
8011 * solib-ia64-hpux.c (struct dld_info): Change type of field
8012 dld_flags from "long long" to ULONGEST.
8014 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8016 * target.h (deprecated_child_ops): Delete declaration.
8017 * target.c (deprecated_child_ops): Delete definition.
8019 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8021 * Makefile.in (hpux-thread.o): Delete rule.
8022 * configure.ac: Don't check for HPUX DCE threads support.
8023 * configure, config.in: Regenerate.
8024 * hppa-hpux-nat.c (child_suppress_run): Delete.
8025 (hppa_hpux_child_can_run): Delete.
8026 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8027 * hpux-thread.c: Delete.
8029 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8031 * hpux-thread.c (hpux_pid_to_str): Delete.
8033 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8035 * ada-valprint.c (ada_emit_char): Remove strange code.
8036 Check that c is <= UCHAR_MAX before passing it to isascii.
8037 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8039 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8041 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8042 to the case where instream is stdin.
8044 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8046 * ia64-tdep.h (struct regcache): Forward declare.
8047 (struct ia64_infcall_ops): New struct type.
8048 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8050 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8051 Renames ia64_find_global_pointer.
8052 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8053 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8054 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8056 (ia64_infcall_ops): New static global constant.
8057 (ia64_gdbarch_init): Set tdep->infcall_ops.
8058 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8059 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8060 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8061 (ia64_hpux_dummy_code): New static global constant.
8062 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8063 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8064 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8066 (ia64_hpux_infcall_ops): New static global constant.
8067 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8068 for inferior function calls to work properly on ia64-hpux.
8070 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8072 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8073 * ia64-tdep.h (struct frame_info): forward declaration.
8074 (struct gdbarch_tdep): Add field size_of_register_frame.
8075 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8076 to determine the size of the register frame.
8077 (ia64_size_of_register_frame): New function.
8078 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8079 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8080 (IA64_HPUX_UREG_REASON): New macro.
8081 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8083 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8084 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8085 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8088 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8090 Add support for ia64-hpux.
8091 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8092 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8094 * configure.host: Add handling for ia64-hpux hosts. Add associated
8096 * configure.tgt: Add handling for ia64-hpux targets.
8097 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8098 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8099 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8101 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8103 [ttrace] Compute thread list immediately after attach.
8104 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8106 (inf_ttrace_attach): Use it.
8108 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8110 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8111 if we could not determine the frame's function address. Instead,
8112 use the frame's PC, and then continue.
8114 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8116 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8117 not already defined.
8119 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8121 * ia64-tdep.c (ia64_struct_type_p): New function.
8122 (ia64_extract_return_value): Handle integral values that are
8123 less than 8 bytes long.
8124 (ia64_push_dummy_call): Likewise.
8126 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8128 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8129 floatformat_ia64_ext.
8130 (floatformat_ia64_ext_big): New static const.
8131 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8133 2011-01-12 Tom Tromey <tromey@redhat.com>
8135 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8137 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8138 (mi_cmd_thread_list_ids): Likewise.
8139 (mi_cmd_data_list_changed_registers): Likewise.
8140 (mi_cmd_data_list_register_values): Likewise.
8141 (mi_cmd_data_write_register_values): Likewise.
8142 (mi_cmd_data_evaluate_expression): Likewise.
8143 (mi_cmd_data_read_memory): Likewise.
8144 (mi_cmd_data_read_memory_bytes): Likewise.
8145 (mi_cmd_data_write_memory): Likewise.
8146 (mi_cmd_enable_timings): Likewise.
8147 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8148 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8149 (mi_cmd_var_delete): Likewise.
8150 (mi_cmd_var_set_format): Likewise.
8151 (mi_cmd_var_show_format): Likewise.
8152 (mi_cmd_var_info_num_children): Likewise.
8153 (mi_cmd_var_list_children): Likewise.
8154 (mi_cmd_var_info_type): Likewise.
8155 (mi_cmd_var_info_expression): Likewise.
8156 (mi_cmd_var_show_attributes): Likewise.
8157 (mi_cmd_var_assign): Likewise.
8158 (mi_cmd_var_update): Likewise.
8159 (mi_cmd_enable_pretty_printing): Likewise.
8160 (mi_cmd_var_set_update_range): Likewise.
8161 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8163 (mi_cmd_target_file_put): Likewise.
8164 (mi_cmd_target_file_delete): Likewise.
8165 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8167 (mi_cmd_stack_info_depth): Likewise.
8168 (mi_cmd_stack_list_locals): Likewise.
8169 (mi_cmd_stack_list_args): Likewise.
8170 (mi_cmd_stack_select_frame): Likewise.
8171 (mi_cmd_stack_select_frame): Likewise.
8172 (mi_cmd_stack_info_frame): Likewise.
8173 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8175 (mi_cmd_file_list_exec_source_files): Likewise.
8176 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8177 (mi_cmd_env_cd): Likewise.
8178 (mi_cmd_env_path): Likewise.
8179 (mi_cmd_env_dir): Likewise.
8180 (mi_cmd_inferior_tty_show): Likewise.
8181 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8182 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8183 (mi_cmd_break_watch): Likewise.
8185 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8187 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8188 (ppc_linux_insert_hw_breakpoint): Likewise.
8189 (ppc_linux_remove_hw_breakpoint): Likewise.
8190 (ppc_linux_insert_watchpoint): Likewise.
8192 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8193 Jan Kratochvil <jan.kratochvil@redhat.com>
8195 PR fortran/11104 and DWARF unbound arrays detection.
8196 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8197 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8198 unspecified upper bound.
8199 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8200 variables array_size_array, tmp_type and offset_item. New variable
8201 array. Remove call to f77_get_upperbound. New variables array_type
8202 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8203 the final call to deprecated_set_value_type.
8205 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8207 Make value allocations more lazy.
8208 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8209 instead of allocate_value and set_value_lazy when possible.
8210 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8211 instead of allocate_value and set_value_lazy.
8212 * findvar.c (value_of_register_lazy): Likewise.
8213 (read_var_value): Remove V preallocation, call just check_typedef in
8214 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8215 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8216 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8217 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8218 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8219 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8220 the end, remove set_value_lazy there.
8221 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8222 instead of allocate_value and set_value_lazy when possible.
8223 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8224 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8225 of allocate_value and set_value_lazy.
8226 (value_from_contents_and_address): Use allocate_value_lazy instead of
8227 allocate_value and set_value_lazy when possible.
8229 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8231 * disasm.c (dump_insns): Support dumping opcodes for MI.
8232 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8233 dumping of instruction opcodes.
8235 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8237 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8240 2011-01-11 Tom Tromey <tromey@redhat.com>
8242 * thread.c (do_captured_thread_select): Emit newline before
8245 2011-01-11 Michael Snyder <msnyder@vmware.com>
8247 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8248 * score-tdep.c: Ditto.
8249 * score-tdep.h: Ditto.
8250 * ser-base.c: Ditto.
8251 * ser-go32.c: Ditto.
8254 * ser-mingw.c: Ditto.
8255 * ser-pipe.c: Ditto.
8257 * ser-unix.c: Ditto.
8258 * sh64-tdep.c: Ditto.
8259 * shnbsd-nat.c: Ditto.
8263 * solib-darwin.c: Ditto.
8264 * solib-frv.c: Ditto.
8266 * solib-irix.c: Ditto.
8267 * solib-osf.c: Ditto.
8268 * solib-pa64.c: Ditto.
8269 * solib-som.c: Ditto.
8270 * solib-spu.c: Ditto.
8271 * solib-sunos.c: Ditto.
8272 * solib-svr4.c: Ditto.
8274 * sol-thread.c: Ditto.
8278 * sparc64-linux-tdep.c: Ditto.
8279 * sparc64-tdep.c: Ditto.
8280 * sparc-linux-nat.c: Ditto.
8281 * sparc-linux-tdep.c: Ditto.
8282 * sparc-sol2-nat.c: Ditto.
8283 * sparc-sol2-tdep.c: Ditto.
8284 * sparc-tdep.c: Ditto.
8285 * sparc-tdep.h: Ditto.
8286 * spu-tdep.c: Ditto.
8287 * stabsread.c: Ditto.
8288 * stabsread.h: Ditto.
8296 * target-descriptions.c: Ditto.
8297 * target-descriptions.h: Ditto.
8299 * target-memory.c: Ditto.
8300 * terminal.h: Ditto.
8303 * tracepoint.c: Ditto.
8304 * tracepoint.h: Ditto.
8305 * trad-frame.h: Ditto.
8306 * typeprint.c: Ditto.
8308 2011-01-11 Michael Snyder <msnyder@vmware.com>
8310 * ui-file.c: Comment cleanup, mostly periods and spaces.
8315 * v850-tdep.c: Ditto.
8316 * valarith.c: Ditto.
8318 * valprint.c: Ditto.
8319 * valprint.h: Ditto.
8324 * vax-tdep.c: Ditto.
8328 * windows-nat.c: Ditto.
8329 * windows-tdep.c: Ditto.
8330 * xcoffread.c: Ditto.
8331 * xcoffsolib.c: Ditto.
8332 * xml-support.c: Ditto.
8333 * xstormy16-tdep.c: Ditto.
8334 * xtensa-tdep.c: Ditto.
8335 * xtensa-tdep.h: Ditto.
8337 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8339 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8340 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8342 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8343 Thiago Jung Bauermann <bauerman@br.ibm.com>
8345 Implement support for PowerPC BookE ranged watchpoints.
8347 (struct breakpoint_ops) <resources_needed>: New method.
8348 Initialize to NULL in all existing breakpoint_ops instances.
8349 (struct breakpoint) <exact>: New field.
8350 (target_exact_watchpoints): Declare external global.
8351 * breakpoint.c (target_exact_watchpoints): New global flag.
8352 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8353 b->enable_state to bp_enabled before calling
8354 hw_watchpoint_used_count.
8355 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8356 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8358 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8359 if the watchpoint is exact.
8360 (resources_needed_watchpoint): New function.
8361 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8362 (watch_command_1): Set b->exact if the user asked for an exact
8363 watchpoint and one can be set.
8364 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8365 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8366 the user asks for an exact watchpoint and one can be set. Return
8367 number of needed debug registers to watch the expression.
8368 * gdbtypes.c (is_scalar_type): New function, based on
8369 valprint.c:scalar_type_p.
8370 (is_scalar_type_recursive): New function.
8371 * gdbtypes.h (is_scalar_type_recursive): Declare.
8372 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8373 handle regions when ranged watchpoints are available.
8374 (create_watchpoint_request): New function.
8375 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8376 create_watchpoint_request.
8377 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8378 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8379 `set powerpc' and `show powerpc' commands.
8380 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8381 Mention documentation comment in the target macro.
8382 (target_region_ok_for_hw_watchpoint): Document return value.
8384 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8386 * breakpoint.c (update_watchpoint): Decide on using a software or
8387 hardware watchpoint after the bp_locations are created.
8389 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8391 Convert hardware watchpoints to use breakpoint_ops.
8392 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8393 <insert_location>: ... this. Return int instead of void.
8394 Accept pointer to struct bp_location instead of pointer to
8395 struct breakpoint. Adapt all implementations.
8396 (breakpoint_ops) <remove>: Rename to...
8397 <remove_location>: ... this. Accept pointer to struct bp_location
8398 instead of pointer to struct breakpoint. Adapt all implementations.
8399 * breakpoint.c (insert_catchpoint): Delete function.
8400 (insert_bp_location): Call the watchpoint or catchpoint's
8401 breakpoint_ops.insert method.
8402 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8403 breakpoint_ops.remove method.
8404 (insert_watchpoint, remove_watchpoint): New functions.
8405 (watchpoint_breakpoint_ops): New structure.
8406 (watch_command_1): Initialize the OPS field.
8407 * inf-child.c (inf_child_insert_fork_catchpoint)
8408 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8409 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8410 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8412 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8413 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8414 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8415 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8416 * target.c (update_current_target): Change default implementation of
8417 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8418 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8419 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8420 to_set_syscall_catchpoint to return_one.
8421 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8422 (debug_to_insert_exec_catchpoint): Report return value.
8423 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8424 (to_insert_exec_catchpoint): Change declaration to return int instead
8427 2011-01-11 Michael Snyder <msnyder@vmware.com>
8429 * arm-tdep.c: Internationalization.
8432 * fork-child.c: Ditto.
8433 * nto-procfs.c: Ditto.
8434 * ppc-sysv-tdep.c: Ditto.
8436 * remote-mips.c: Ditto.
8438 * rs6000-nat.c: Ditto.
8439 * rs6000-tdep.c: Ditto.
8443 * xml-support.c: Ditto.
8444 * mi/mi-cmd-break.c: Ditto.
8445 * mi/mi-cmd-var.c: Ditto.
8446 * mi/mi-interp.c: Ditto.
8447 * mi/mi-main.c: Ditto.
8449 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8451 * remote-sim.c (gdbsim_store_register): Update API to
8452 sim_store_register to check more error conditions.
8454 2011-01-10 Michael Snyder <msnyder@vmware.com>
8456 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8457 * nto-tdep.c: Ditto.
8458 * nto-tdep.h: Ditto.
8459 * objc-exp.y: Ditto.
8460 * objc-lang.c: Ditto.
8461 * objfiles.c: Ditto.
8462 * objfiles.h: Ditto.
8463 * observer.c: Ditto.
8464 * opencl-lang.c: Ditto.
8467 * parser-defs.h: Ditto.
8470 * posix-hdep.c: Ditto.
8471 * ppcbug-rom.c: Ditto.
8472 * ppc-linux-nat.c: Ditto.
8473 * ppc-linux-tdep.c: Ditto.
8474 * ppc-linux-tdep.h: Ditto.
8475 * ppcnbsd-tdep.c: Ditto.
8476 * ppcobsd-tdep.c: Ditto.
8477 * ppcobsd-tdep.h: Ditto.
8478 * ppc-sysv-tdep.c: Ditto.
8479 * ppc-tdep.h: Ditto.
8480 * printcmd.c: Ditto.
8481 * proc-abi.c: Ditto.
8482 * proc-flags.c: Ditto.
8484 * proc-utils.h: Ditto.
8485 * progspace.h: Ditto.
8486 * prologue-value.c: Ditto.
8487 * prologue-value.h: Ditto.
8488 * psympriv.h: Ditto.
8490 * p-typeprint.c: Ditto.
8491 * p-valprint.c: Ditto.
8492 * ravenscar-sparc-thread.c: Ditto.
8493 * ravenscar-thread.c: Ditto.
8494 * ravenscar-thread.h: Ditto.
8496 * regcache.c: Ditto.
8497 * regcache.h: Ditto.
8499 * remote-fileio.c: Ditto.
8500 * remote-fileio.h: Ditto.
8502 * remote-m32r-sdi.c: Ditto.
8503 * remote-mips.c: Ditto.
8504 * remote-sim.c: Ditto.
8505 * rs6000-aix-tdep.c: Ditto.
8506 * rs6000-nat.c: Ditto.
8507 * rs6000-tdep.c: Ditto.
8509 2011-01-10 Michael Snyder <msnyder@vmware.com>
8511 * charset.c (validate): Internationalization.
8512 * coffread.c (read_one_sym): Ditto.
8513 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8514 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8515 * inflow.c (new_tty): Ditto.
8516 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8517 * m32c-tdep.c (m32c_return_value): Ditto.
8518 * mep-tdep.c (mep_store_return_value): Ditto.
8519 * score-tdep.c (score7_fetch_insn): Ditto.
8520 * ser-mingw.c (pipe_windows_open): Ditto.
8521 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8522 * spu-tdep.c (spu_register_type): Ditto.
8523 * tracepoint.c (trace_find_command): Ditto.
8524 * valarith.c (value_pos): Ditto.
8526 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8528 * ada-valprint.c (printstr): Minor comment reformatting.
8530 2011-01-08 Michael Snyder <msnyder@vmware.com>
8532 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8535 2011-01-08 Michael Snyder <msnyder@vmware.com>
8537 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8538 * hppa-hpux-tdep.c: Ditto.
8539 * hppa-linux-nat.c: Ditto.
8540 * hppa-linux-tdep.c: Ditto.
8541 * hppanbsd-tdep.c: Ditto.
8542 * hppa-tdep.c: Ditto.
8543 * hppa-tdep.h: Ditto.
8544 * hpux-thread.c: Ditto.
8545 * i386-cygwin-tdep.c: Ditto.
8546 * i386-darwin-nat.c: Ditto.
8547 * i386gnu-nat.c: Ditto.
8548 * i386-linux-nat.c: Ditto.
8549 * i386-linux-tdep.c: Ditto.
8550 * i386-nat.c: Ditto.
8551 * i386-nat.h: Ditto.
8552 * i386nbsd-tdep.c: Ditto.
8553 * i386-sol2-nat.c: Ditto.
8554 * i386-stub.c: Ditto.
8555 * i386-tdep.c: Ditto.
8556 * i386-tdep.h: Ditto.
8557 * i387-tdep.c: Ditto.
8558 * ia64-linux-nat.c: Ditto.
8559 * ia64-linux-tdep.c: Ditto.
8560 * ia64-tdep.c: Ditto.
8564 * inferior.c: Ditto.
8565 * inferior.h: Ditto.
8571 * iq2000-tdep.c: Ditto.
8572 * irix5-nat.c: Ditto.
8578 * jv-typeprint.c: Ditto.
8579 * jv-valprint.c: Ditto.
8580 * language.c: Ditto.
8581 * language.h: Ditto.
8582 * linespec.c: Ditto.
8583 * linux-fork.c: Ditto.
8584 * linux-nat.c: Ditto.
8585 * linux-thread-db.c: Ditto.
8586 * lm32-tdep.c: Ditto.
8588 2011-01-08 Michael Snyder <msnyder@vmware.com>
8590 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8592 * m2-typeprint.c: Ditto.
8593 * m2-valprint.c: Ditto.
8594 * m32c-tdep.c: Ditto.
8595 * m32r-linux-nat.c: Ditto.
8596 * m32r-rom.c: Ditto.
8597 * m32r-tdep.c: Ditto.
8598 * m32r-tdep.h: Ditto.
8599 * m68hc11-tdep.c: Ditto.
8600 * m58klinux-nat.c: Ditto.
8601 * m68k-tdep.c: Ditto.
8602 * m88k-tdep.c: Ditto.
8603 * m88k-tdep.h: Ditto.
8604 * machoread.c: Ditto.
8605 * macrocmd.c: Ditto.
8606 * macroexp.c: Ditto.
8607 * macrotab.c: Ditto.
8610 * mdebugread.c: Ditto.
8611 * mdebugread.h: Ditto.
8614 * memory-map.h: Ditto.
8615 * mep-tdep.c: Ditto.
8616 * microblaze-rom.c: Ditto.
8617 * microblaze-tdep.c: Ditto.
8619 * mips-irix-tdep.c: Ditto.
8620 * mips-linux-nat.c: Ditto.
8621 * mips-linux-tdep.c: Ditto.
8622 * mips-linux-tdep.h: Ditto.
8623 * mipsnbsd-nat.c: Ditto.
8624 * mipsnbsd-tdep.c: Ditto.
8625 * mipsread.c: Ditto.
8626 * mips-tdep.c: Ditto.
8627 * mips-tdep.h: Ditto.
8628 * mn10300-linux-tdep.c: Ditto.
8629 * mn10300-tdep.c: Ditto.
8630 * mn10300-tdep.h: Ditto.
8633 * moxie-tdep.c: Ditto.
8634 * moxie-tdep.h: Ditto.
8637 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8639 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8641 2011-01-08 Robert Millan <rmh@gnu.org>
8643 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8645 2011-01-07 Michael Snyder <msnyder@vmware.com>
8647 * charset.c (_initialize_charset): Fix typo in string.
8649 2011-01-07 Michael Snyder <msnyder@vmware.com>
8651 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8653 * tui/tui-layout.c (tui_set_layout_for_display_command):
8654 Split line so that operator goes to beginning of line.
8655 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8656 assignment out of if statement.
8658 2011-01-07 Michael Snyder <msnyder@vmware.com>
8660 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8661 * ada-lang.h: Ditto.
8662 * ada-tasks.c: Ditto.
8663 * ada-valprint.c: Ditto.
8664 * aix-threads.c: Ditto.
8665 * alpha-linux-nat.c: Ditto.
8666 * alpha-linux-tdep.c: Ditto.
8667 * alpha-mdebug-tdep.c: Ditto.
8668 * alpha-nat.c: Ditto.
8669 * alpha-osf1-tdep.c: Ditto.
8670 * alpha-tdep.c: Ditto.
8671 * alphabsd-nat.c: Ditto.
8672 * alphabsd-tdep.c: Ditto.
8673 * amd64-darwin-tdep.c: Ditto.
8674 * amd64-linux-nat.c: Ditto.
8675 * amd64-linux-tdep.c: Ditto.
8676 * amd64-sol2-tdep.c: Ditto.
8677 * amd64-tdep.c: Ditto.
8678 * amd64-fbsd-tdep.c: Ditto.
8679 * amd64-nbsd-tdep.c: Ditto.
8680 * amd64-obsd-tdep.c: Ditto.
8681 * amd64-linux-nat.c: Ditto.
8682 * amd64-linux-tdep.c: Ditto.
8683 * arm-tdep.c: Ditto.
8684 * arm-tdep.h: Ditto.
8685 * armnbsd-nat.c: Ditto.
8686 * avr-tdep.c: Ditto.
8687 * bfin-tdep.c: Ditto.
8689 * c-typeprintc: Ditto.
8690 * c-valprint.c: Ditto.
8691 * coff-pe-read.h: Ditto.
8692 * coffreead.c: Ditto.
8693 * cris-tdep.c: Ditto.
8695 * darwin-nat-info.c: Ditto.
8696 * darwin-nat.c: Ditto.
8697 * dbug-rom.c: Ditto.
8701 * dec-thread.c: Ditto.
8703 * demangle.c: Ditto.
8704 * dicos-tdep.c: Ditto.
8705 * dictionary.c: Ditto.
8706 * dictionary.h: Ditto.
8707 * dink32-rom.c: Ditto.
8709 * doublest.c: Ditto.
8711 * dummy-frame.c: Ditto.
8712 * dwarf2-frame.c: Ditto.
8713 * dwarf2expr.c: Ditto.
8714 * dwarf2loc.c: Ditto.
8715 * dwarf2read.c: Ditto.
8719 * event-top.h: Ditto.
8720 * exceptions.c: Ditto.
8721 * exceptions.h: Ditto.
8723 * expprint.c: Ditto.
8724 * expression.h: Ditto.
8728 * f-typeprint.c: Ditto.
8729 * f-valprint.c: Ditto.
8730 * fbsd-nat.c: Ditto.
8732 * fork-child.c: Ditto.
8735 * frv-linux-tdep.c: Ditto.
8736 * frv-tdep.c: Ditto.
8738 * gdb-stabs.h: Ditto.
8739 * gdb_assert.h: Ditto.
8740 * gdb_string.h: Ditto.
8741 * gdb_thread_db.h: Ditto.
8742 * gdb_wait.h: Ditto.
8743 * gdbarch.sh: Ditto.
8745 * gdbthread.h: Ditto.
8746 * gdbtypes.c: Ditto.
8747 * gdbtypes.h: Ditto.
8750 * gnu-v2-abi.c: Ditto.
8751 * gnu-v3-abi.c: Ditto.
8752 * go32-nat.c: Ditto.
8753 * gdbarch.c: Regenerate.
8754 * gdbarch.h: Regenerate.
8756 2011-01-07 Michael Snyder <msnyder@vmware.com>
8758 * ax-gdb.c: Adjust some long output strings.
8759 * breakpoint.c: Ditto.
8764 * linux-nat.c: Ditto.
8765 * solib-pa64.c: Ditto.
8766 * solib-som.c: Ditto.
8768 2011-01-06 Tom Tromey <tromey@redhat.com>
8772 * python/python.c (GdbMethods): Add "newest_frame" method.
8773 * python/python-internal.h (gdbpy_newest_frame): Declare.
8774 * python/py-frame.c (gdbpy_newest_frame): New function.
8776 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8778 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8779 * jit.c (jit_debug): New variable.
8780 (show_jit_debug): New function.
8781 (struct target_buffer): Use ULONGEST.
8782 (bfd_open_from_target_memory): Likewise.
8783 (jit_register_code, jit_inferior_init): Add debug output.
8784 (_initialize_jit): Register "debug jit" command.
8786 2011-01-06 Tom Tromey <tromey@redhat.com>
8788 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8789 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8792 2011-01-06 Tom Tromey <tromey@redhat.com>
8794 * python/py-frame.c (frapy_block): Use get_frame_block.
8796 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8798 Do not stop on SIGPRIO signals by default
8799 * infrun.c (_initialize_infrun): Unset signal_stop and
8800 signal_print for TARGET_SIGNAL_PRIO.
8802 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8804 * ada-tasks.c: Fix style violation in comment.
8806 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8808 * linespec.c (decode_compound, find_method): Remove trailing \n
8809 at end of error string.
8810 * solib-irix.c (irix_current_sos): Likewise.
8811 * varobj.c (uninstall_variable): Likewise.
8813 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8815 * copyright.py: New script.
8816 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8817 Launch emacs without exec'ing. Call copyright.py afterwards.
8819 2011-01-05 Michael Snyder <msnyder@vmware.com>
8821 * addrmap.c: Shorten lines of >= 80 columns.
8822 * arch-utils.c: Ditto.
8823 * arch-utils.h: Ditto.
8825 * ax-general.c: Ditto.
8827 * blockframe.c: Ditto.
8828 * breakpoint.c: Ditto.
8829 * buildsym.c: Ditto.
8831 * c-typeprint.c: Ditto.
8833 * coffread.c: Ditto.
8837 * cp-namespace.c: Ditto.
8838 * cp-support.c: Ditto.
8839 * dbug-rom.c: Ditto.
8844 * dictionary.c: Ditto.
8846 * doublest.c: Ditto.
8847 * dwarf2-frame.c: Ditto.
8848 * dwarf2expr.c: Ditto.
8849 * dwarf2loc.c: Ditto.
8850 * dwarf2read.c: Ditto.
8853 * event-loop.c: Ditto.
8854 * event-loop.h: Ditto.
8855 * exceptions.h: Ditto.
8857 * expprint.c: Ditto.
8858 * expression.h: Ditto.
8860 * f-valprint.c: Ditto.
8862 * frame-base.c: Ditto.
8863 * frame-unwind.c: Ditto.
8864 * frame-unwind.h: Ditto.
8868 * gdb-stabs.h: Ditto.
8869 * gdb_assert.h: Ditto.
8870 * gdb_dirent.h: Ditto.
8871 * gdb_obstack.h: Ditto.
8873 * gdbtypes.c: Ditto.
8874 * gdbtypes.h: Ditto.
8875 * inf-ttrace.c: Ditto.
8880 * inline-frame.h: Ditto.
8881 * language.c: Ditto.
8882 * language.h: Ditto.
8883 * libunwind-frame.c: Ditto.
8884 * libunwind-frame.h: Ditto.
8885 * linespec.c: Ditto.
8886 * linux-nat.c: Ditto.
8887 * linux-nat.h: Ditto.
8888 * linux-thread-db.c: Ditto.
8889 * machoread.c: Ditto.
8890 * macroexp.c: Ditto.
8891 * macrotab.c: Ditto.
8894 * mdebugread.c: Ditto.
8899 * objfiles.c: Ditto.
8900 * objfiles.h: Ditto.
8902 * p-typeprint.c: Ditto.
8903 * p-valprint.c: Ditto.
8905 * printcmd.c: Ditto.
8906 * proc-events.c: Ditto.
8908 * progspace.c: Ditto.
8909 * progspace.h: Ditto.
8910 * psympriv.h: Ditto.
8913 * regcache.c: Ditto.
8914 * regcache.h: Ditto.
8915 * remote-fileio.c: Ditto.
8917 * ser-mingw.c: Ditto.
8919 * ser-unix.c: Ditto.
8922 * solib-frv.c: Ditto.
8923 * solib-irix.c: Ditto.
8924 * solib-osf.c: Ditto.
8925 * solib-pa64.c: Ditto.
8926 * solib-som.c: Ditto.
8927 * solib-sunos.c: Ditto.
8928 * solib-svr4.c: Ditto.
8929 * solib-target.c: Ditto.
8933 * stabsread.c: Ditto.
8934 * stabsread.c: Ditto.
8937 * symfile-mem.c: Ditto.
8943 * target-descriptions.c: Ditto.
8944 * target-memory.c: Ditto.
8947 * terminal.h: Ditto.
8950 * tracepoint.c: Ditto.
8951 * tracepoint.h: Ditto.
8955 * user-regs.c: Ditto.
8956 * user-regs.h: Ditto.
8958 * valarith.c: Ditto.
8960 * valprint.c: Ditto.
8961 * valprint.h: Ditto.
8966 * xcoffread.c: Ditto.
8967 * xcoffsolib.c: Ditto.
8968 * xcoffsolib.h: Ditto.
8969 * xml-syscall.c: Ditto.
8970 * xml-tdesc.c: Ditto.
8972 2011-01-05 Michael Snyder <msnyder@vmware.com>
8974 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
8975 * cli/cli-decode.c: Ditto.
8976 * cli/cli-dump.c: Ditto.
8977 * cli/cli-logging.c: Ditto.
8978 * cli/cli-script.c: Ditto.
8979 * cli/cli-setshow.c: Ditto.
8980 * common/signals.c: Ditto.
8981 * mi/mi-cmd-break.c: Ditto.
8982 * mi/mi-cmd-disas.c: Ditto.
8983 * mi/mi-cmd-stack.c: Ditto.
8984 * mi/mi-cmd-var.c: Ditto.
8985 * mi/mi-cmds.c: Ditto.
8986 * mi/mi-common.h: Ditto.
8987 * mi/mi-console.c: Ditto.
8988 * mi/mi-interp.c: Ditto.
8989 * mi/mi-main.c: Ditto.
8990 * osf-share/cma_attr.c: Ditto.
8991 * osf-share/cma_deb_core.h: Ditto.
8992 * osf-share/cma_debug_client.h: Ditto.
8993 * osf-share/cma_handle.h: Ditto.
8994 * osf-share/cma_mutex.h: Ditto.
8995 * osf-share/cma_stack_int.h: Ditto.
8996 * osf-share/cma_tcb_defs.h: Ditto.
8997 * python/py-auto-load.c: Ditto.
8998 * python/py-breakpoint.c: Ditto.
8999 * python/py-cmd.c: Ditto.
9000 * python/py-frame.c: Ditto.
9001 * python/py-objfile.c: Ditto.
9002 * python/py-param.c: Ditto.
9003 * python/py-progspace.c: Ditto.
9004 * python/py-symbol.c: Ditto.
9005 * python/py-value.c: Ditto.
9006 * python/python-internal.h: Ditto.
9007 * python/python.c: Ditto.
9008 * tui/tui-data.c: Ditto.
9009 * tui/tui-disasm.c: Ditto.
9010 * tui/tui-hooks.c: Ditto.
9011 * tui/tui-io.c: Ditto.
9012 * tui/tui-layout.c: Ditto.
9013 * tui/tui-regs.c: Ditto.
9014 * tui/tui-source.c: Ditto.
9015 * tui/tui-stack.c: Ditto.
9016 * tui/tui-win.c: Ditto.
9017 * tui/tui-windata.c: Ditto.
9018 * tui/tui-winsource.c: Ditto.
9020 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9022 * configure.ac, gdb.1: Copyright year update.
9024 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9026 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9027 this_pc_in_block, morestack_msym and morestack_name. Check for
9028 "__morestack" minimal symbol there.
9030 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9032 * symfile.c (find_sym_fns): Add call to dont_repeat.
9034 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9036 Copyright year update in most files (performed by copyright.sh).
9038 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9040 * top.c (print_gdb_version): Update copyright year in version output.
9042 For older changes see ChangeLog-2010.
9048 version-control: never