1 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3 * remote.c (remote_console_output): Reindent.
5 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
7 * frame.c (has_stack_frames): Check for currently selected
10 2011-09-06 Pedro Alves <pedro@codesourcery.com>
12 * event-top.h (MAXPROMPTS, struct prompts): Delete.
13 (set_async_annotation_level, set_async_prompt, pop_prompt)
14 (push_prompt, new_async_prompt): Delete declarations.
15 * top.h (get_prompt, set_prompt): Change prototype.
16 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
18 * top.c (command_loop):
19 (top_prompt): New global.
20 (get_prefix, set_prefix, get_suffix, ): Delete.
21 (get_prompt, set_prompt): Rewrite.
22 (show_new_async_prompt): Rename to ...
23 (show_prompt): ... this.
24 (init_main): Adjust. Don't handle --annotate=2 here.
25 * event-top.c (new_async_prompt): Delete.
26 (the_prompts): Delete.
27 (more_to_come): Make static.
28 (display_gdb_prompt): Use top_level_prompt() to compute the top
29 level prompt, and don't notify the before_prompt observers
30 directly here. Always trick readline into not trying to display
31 the prompt if sync_execution and displaying the primary prompt.
32 If displaying a local/secondary prompt, always show it, even if
33 sync_execution is set.
34 (change_annotation_level): Delete.
35 (top_level_prompt): New, based on change_annotation_level.
36 (push_prompt, pop_prompt): Delete.
37 (async_disable_stdin): No longer pushes prompt.
38 (command_line_handler): No longer pushes or pops prompt. If more
39 input is expected, call display_gdb_prompt with an explicit empty
41 (async_stop_sig): Adjust.
42 (set_async_annotation_level, set_async_prompt): Delete.
43 * python/python.c (before_prompt_hook): Adjust.
45 2011-09-05 Pedro Alves <pedro@codesourcery.com>
49 * infrun.c (fetch_inferior_event): Check if there's a selected
50 thread before checking if the selected thread is executing.
52 2011-09-05 Pedro Alves <pedro@codesourcery.com>
54 * inf-loop.c (execute_command): Don't check if the current thread
55 if running before synchronously waiting for command completion.
56 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
58 (normal_stop): Call async_enable_stdin here.
59 * inf-loop.c (inferior_event_handler): Don't call
60 async_enable_stdin, nor handle "set exec-done-display" here.
62 2011-09-04 Joel Brobecker <brobecker@adacore.com>
66 2011-09-04 Joel Brobecker <brobecker@adacore.com>
68 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
70 2011-09-04 Joel Brobecker <brobecker@adacore.com>
72 * NEWS: Add entry for OpenBSD/NetBSD build failure.
74 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
76 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
78 2011-09-02 Matt Rice <ratmice@gmail.com>
81 * event-top.c (cli_command_loop): Replace readline setup with
82 direct call to display_gdb_prompt.
83 (display_gdb_prompt): Do not call observer mechanism during
84 synchronous execution.
86 2011-09-02 Pedro Alves <pedro@codesourcery.com>
88 * linux-nat.c (in_pid_list_p): New.
89 (linux_record_stopped_pid): Delete.
90 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
91 already attached to the LWP. Return an indication if so.
92 (linux_nat_filter_event): Adjust.
93 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
94 returning an indication to ignore this thread.
96 2011-09-02 Pedro Alves <pedro@codesourcery.com>
98 * top.c: Include interps.h.
99 (execute_command): If the target can async, but the interpreter is
100 in sync mode, synchronously wait for the command to finish before
102 (execute_command_to_string): Force the interpreter to sync mode.
103 * infrun.c: Include interps.h.
104 (fetch_inferior_event): Don't restore the prompt yet if the
105 interpreter is in sync mode.
106 * interps.c (interpreter_async): New global.
107 * interps.h (interpreter_async): Declare.
108 * inf-loop.c: Include interps.h.
109 (inferior_event_handler): Don't print the language change or run
110 breakpoint commands yet if the interpreter in is sync mode.
111 * main.c (captured_command_loop): Flip the interpreter to async
113 * cli/cli-script.c: Include interps.h.
114 (execute_user_command, while_command, if_command): Force the
115 interpreter to sync mode.
116 * python/python.c: Include interps.h.
117 (python_command, execute_gdb_command): Force the interpreter to
120 2011-09-02 Pedro Alves <pedro@codesourcery.com>
122 * value.c (show_convenience): Catch errors thrown while printing
123 each internal variable.
124 * infrun.c (validate_siginfo_access): New function.
125 (siginfo_value_read, siginfo_value_write): Call it.
127 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
130 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
131 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
134 2011-08-29 Yao Qi <yao@codesourcery.com>
136 * solib-dsbt.c (bfd_lookup_symbol): Removed.
138 (enable_break2): Update caller.
139 * solib-frv.c (bfd_lookup_symbol): Removed.
141 (enable_break2): Update caller.
142 * solib-pa64.c (bfd_lookup_symbol): Removed.
144 * solib-svr4.c (bfd_lookup_symbol): Removed.
145 (cmp_name_and_sec_flags): New.
146 (enable_break): Update caller.
147 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
148 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
149 (gdb_bfd_lookup_symbol): New.
150 * solib.h: Functions declarations.
152 2011-08-29 Yao Qi <yao@codesourcery.com>
154 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
157 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
159 Fix TUI stepi on code without symbols.
160 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
163 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
166 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
167 and the static keyword.
168 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
169 Make prefix an array.
170 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
171 * mi/mi-main.c (get_register): Remove stb initialization and the static
174 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
176 Code cleanup - make mi_opt const.
177 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
179 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
180 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
181 (mi_cmd_env_dir): Likewise.
182 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
183 (mi_cmd_target_file_put): Likewise.
184 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
185 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
186 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
187 (mi_valid_noargs): Make opts const.
188 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
189 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
190 (mi_cmd_data_read_memory): Likewise.
191 (mi_cmd_data_read_memory_bytes): Likewise.
192 (mi_cmd_data_write_memory): Likewise.
194 2011-08-26 Matt Rice <ratmice@gmail.com>
196 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
197 bcache_xmalloc, replace bcache_xmalloc with call to
198 psymbol_bcache_init for psymbol_cache.
199 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
201 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
203 * inf-loop.c (inferior_event_handler): Add exception_print in
206 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
208 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
209 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
210 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
211 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
212 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
213 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
214 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
215 * infrun.c (fetch_inferior_event): Call
216 make_bpstat_clear_actions_cleanup.
217 * top.c (execute_command): New variable cleanup_if_error, call
218 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
219 * utils.c (do_bpstat_clear_actions_cleanup)
220 (make_bpstat_clear_actions_cleanup): New functions.
222 2011-08-26 Pedro Alves <pedro@codesourcery.com>
224 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
225 either the parent or the child forks. Rename a couple locals.
227 2011-08-26 Pedro Alves <pedro@codesourcery.com>
229 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
230 library call. Avoid reading the `status' local if all waitpid
233 2011-08-26 Pedro Alves <pedro@codesourcery.com>
235 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
236 opening /proc/PID/task always succeeds.
238 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
240 * linespec.c (symtab_from_filename): Check for the end of string.
242 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
245 * varobj.c (cplus_describe_child): Add the keyword
246 'class' to the output of the method when dealing
247 with a cast to a base class.
249 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
251 No functionality change.
252 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
253 function comment a reference, new variables tp and bs, move here code
254 from throw_exception.
255 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
256 describe it in the comment.
257 * exceptions.c (throw_exception): Remove variable tp, move the code for
258 bpstat_clear_actions to bpstat_clear_actions.
260 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
262 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
263 * linux-nat.c: Include linux-procfs.h.
264 (linux_proc_get_tgid): Move to ...
265 * common/linux-procfs.c: ... here. New file.
266 * common/linux-procfs.h: New file.
267 * linux-thread-db.c: Include linux-procfs.h.
268 * Makefile.in: Update dependencies.
269 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
270 * config/arm/linux.mh: Likewise.
271 * config/i386/linux.mh: Likewise.
272 * config/i386/linux64.mh: Likewise.
273 * config/ia64/linux.mh: Likewise.
274 * config/m32r/linux.mh: Likewise.
275 * config/m68k/linux.mh: Likewise.
276 * config/mips/linux.mh: Likewise.
277 * config/pa/linux.mh: Likewise.
278 * config/pa/linux.mh: Likewise.
279 * config/powerpc/linux.mh: Likewise.
280 * config/powerpc/ppc64-linux.mh: Likewise.
281 * config/powerpc/spu-linux.mh: Likewise.
282 * config/sparc/linux.mh: Likewise.
283 * config/sparc/linux64.mh: Likewise.
284 * config/xtensa/linux.mh: Likewise.
286 2011-08-24 Hui Zhu <teawater@gmail.com>
288 * tracepoint.c (cond_string_is_same): New function.
289 (find_matching_tracepoint): Add condition check
290 by cond_string_is_same.
292 2011-08-23 Josh Matthews <josh@joshmatthews.net>
294 Fix build error in Darwin port.
295 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
297 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
300 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
301 (command_line_is_silent): New function.
302 (bpstat_do_actions_1): No longer use commands_left, use
303 command_line_is_silent for commands.
304 (bpstat_alloc): Remove clearing of commands_left.
305 (bpstat_stop_status): Remove initialization of commands_left, use
306 command_line_is_silent.
307 * breakpoint.h (struct bpstats): Remove commands_left.
309 2011-08-18 Keith Seitz <keiths@redhat.com>
312 * cp-name-parser.y (struct demangle_info): Remove unused
315 (allocate_info): Change return type to struct demangle_info *.
316 Always allocate a new demangle_info.
317 Remove unused PREV pointer.
318 (cp_new_demangle_parse_info): New function.
319 (cp_demangled_name_parse_free): New function.
320 (do_demangled_name_parse_free_cleanup): New function.
321 (make_cleanup_cp_demangled_name_parse_free): New function.
322 (cp_demangled_name_to_comp): Change return type to
323 struct demangle_parse_info *.
324 Allocate a new storage for each call.
325 (main): Update usage for cp_demangled_name_to_comp
327 * cp-support.h (struct demangle_parse_info): New structure.
328 (cp_demangled_name_to_comp): Update API change for
330 (cp_new_demangle_parse_info): Declare.
331 (make_cleanup_cp_demangled_name_parse_free): New declaration.
332 (cp_demangled_name_parse_free): Declare.
333 * cp-support.c (cp_canonicalize_string): Update API
334 change for cp_demangled_name_to_comp.
335 (mangled_name_to_comp): Likewise.
336 Return struct demangle_parse_info, too.
337 (cp_class_name_from_physname): Update mangled_name_to_comp
339 (method_name_from_physname): Likewise.
340 (cp_func_name): Update API change for cp_demangled_name_to_comp.
341 (cp_remove_params): Likewise.
342 * python/py-type.c (typy_legacy_template_argument): Likewise.
344 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
345 (cp_merge_demangle_parse_infos): Declare.
346 * cp-support.c (ignore_typedefs): New file global.
347 (copy_string_to_obstack): New function.
348 (inspect_type): New function.
349 (replace_typedefs): New function.
350 (replace_typedefs_qualified_name): New function.
351 (cp_canonicalize_string_no_typedefs): New function.
352 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
353 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
354 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
355 instead of cp_canonicalize_string.
356 (find_method): Likewise.
357 (decode_compound): Before looking up the name, call
358 cp_canonicalize_string_no_typedefs.
359 (decode_variable): Likewise.
361 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
362 Tom Tromey <tromey@redhat.com>
363 Matt Rice <ratmice@gmail.com>
365 * python/lib/gdb/prompt.py: New file.
366 * python/lib/gdb/command/prompt.py: New file.
367 * NEWS: Document set extended-prompt and gdb.prompt library
369 2011-08-16 Yao Qi <yao@codesourcery.com>
371 * tic6x-linux-tdep.c: Move const arrays definition from here...
372 * tic6x-tdep.c: to here ...
374 2011-08-14 Yao Qi <yao@codesourcery.com>
376 * NEWS: New port to Texas Instruments TMS320C6x.
378 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
379 Bernd Schmidt <bernds@codesourcery.com>
380 Yao Qi <yao@codesourcery.com>
382 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
383 * solib-dsbt.c: New file. Support DSBT shared object.
384 * tic6x-linux-tdep.c: New file.
385 * tic6x-tdep.c: New file.
386 * tic6x-tdep.h: New file.
388 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
389 Yao Qi <yao@codesourcery.com>
391 * remote.c (PACKET_qXfer_fdpic): New enum value.
392 (remote_protocol_features): Add qXfer:fdpic:read packet.
393 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
394 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
395 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
397 2011-08-14 Yao Qi <yao@codesourcery.com>
399 Target description for tic6x.
400 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
401 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
402 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
403 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
404 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
405 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
406 * features/tic6x-c64xp-linux.xml: New.
407 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
408 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
409 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
410 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
411 * regformats/tic6x-c64xp.dat,
412 regformats/tic6x-c62x-linux.dat: Generated.
413 * regformats/tic6x-c64x-linux.dat,
414 regformats/tic6x-c64xp-linux.dat: Generated.
415 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
416 features/tic6x-*.c files.
417 Add regformats/tic6x-*.dat files.
419 2011-08-12 Doug Evans <dje@google.com>
421 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
422 * python/py-symbol.c (sympy_get_type): New function.
423 (symbol_object_getset): Add "type".
425 2011-08-12 Pedro Alves <pedro@codesourcery.com>
429 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
431 (tui_show_register_group): Don't store a byte buffer in the data
433 (tui_register_format): Skip registers with an empty name.
434 (tui_get_register): Store a struct value in the data element's
435 value field instead of a byte buffer holding the raw register
436 contents. Account for optimized-out and unavailable registers
437 when comparing register contents.
439 2011-08-09 Pedro Alves <pedro@codesourcery.com>
441 * printcmd.c (current_display_number): Update comment.
442 (disable_current_display_cleanup): Delete.
443 (do_one_display): Use make_cleanup_restore_integer. Gracefully
444 catch errors thrown while evaluating and printing the display.
446 2011-08-09 Tom Tromey <tromey@redhat.com>
448 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
450 2011-08-09 Pedro Alves <pedro@codesourcery.com>
452 * elfread.c (elf_symtab_read): Rework comments.
453 * maint.c (maintenance_command): Ditto.
454 * somread.c (som_symtab_read): Ditto.
455 * solib.c (solib_find, solib_map_sections, update_solib_list)
456 (solib_add, info_sharedlibrary_command, solib_name_from_address)
457 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
458 (sharedlibrary_command, no_shared_libraries): Ditto.
459 * solib-irix.c (locate_base, disable_break, enable_break)
460 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
461 (irix_current_sos, irix_open_symbol_file_object)
462 (irix_special_symbol_handling): Ditto.
463 * solib-sunos.c (locate_base, first_link_map_member)
464 (sunos_current_sos, disable_break, enable_break)
465 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
467 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
468 (open_symbol_file_object, svr4_current_sos, enable_break)
469 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
471 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
472 (frv_current_sos, enable_break, frv_special_symbol_handling)
473 (frv_solib_create_inferior_hook): Ditto.
474 * solist.h (struct target_so_ops): Extend the comments of the
475 special_symbol_handling, current_sos and open_symbol_file_object
478 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
480 * python/lib/gdb/__init__.py: Auto-load files in command and
481 function directories.
482 * python/python.c (finish_python_initialization): Use
484 * python/lib/gdb/command/pretty_printers.py: Self register
486 * NEWS: Document auto-loading.
488 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
490 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
491 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
492 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
494 2011-08-08 Tom Tromey <tromey@redhat.com>
496 * breakpoint.c (clean_up_filters): Remove.
497 (catch_syscall_split_args): Use VEC_cleanup.
499 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
501 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
502 (main): Uncomment "Demangling error\n".
504 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
506 * solib-target.c (segment_attributes): Make them static.
507 (section_attributes, library_children, library_attributes): Likewise.
508 (library_list_children, library_list_attributes): Likesise.
509 (library_list_elements): Likewise.
511 2011-08-05 Pedro Alves <pedro@codesourcery.com>
513 * exceptions.c (throw_exception): Don't disable the current
515 * printcmd.c (disable_current_display_cleanup): New function.
516 (do_one_display): Install a cleanup to disable the current display
517 if doing the display throws.
519 2011-08-05 Eli Zaretskii <eliz@gnu.org>
521 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
522 initialization of the tp_new member to the corresponding
523 gdbpy_initialize_* function.
524 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
525 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
526 * python/py-function.c (gdbpy_initialize_functions): Likewise.
527 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
528 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
530 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
532 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
533 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
534 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
535 references to current_uiout.
537 2011-08-04 Pedro Alves <pedro@codesourcery.com>
539 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
540 (start_event_loop): Use TRY_CATCH instead of catch_errors.
541 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
542 * top.c (gdb_readline_wrapper): Adjust.
543 * tui/tui-interp.c (tui_command_loop):
544 (_initialize_tui_interp): Don't install it.
546 2011-08-04 Pedro Alves <pedro@codesourcery.com>
548 * ui-out.h (uiout): Rename to ...
549 (current_uiout): ... this.
550 * ui-out.c (uiout): Rename to ...
551 (current_uiout): ... this.
552 * ada-lang.c (print_it_exception, print_one_exception)
553 (print_mention_exception): Adjust.
554 * breakpoint.c (watchpoint_check): Adjust.
555 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
556 (default_collect_info, watchpoints_info, print_one_catch_fork)
557 (print_one_catch_vfork, print_one_catch_syscall)
558 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
559 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
560 (print_it_watchpoint, print_mention_watchpoint)
561 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
562 (print_it_exception_catchpoint, print_one_exception_catchpoint)
563 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
564 (bkpt_print_mention, momentary_bkpt_print_it)
565 (tracepoint_print_mention, update_static_tracepoint)
566 (tracepoints_info, save_breakpoints): Adjust.
567 * cli-out.c (field_separator): Adjust.
568 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
569 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
570 * frame.c (get_current_frame): Adjust.
571 * infcmd.c (run_command_1, print_return_value): Adjust.
572 * inferior.c (inferior_command, info_inferiors_command): Adjust.
573 * infrun.c (print_end_stepping_range_reason): Adjust.
574 (print_signal_exited_reason, print_exited_reason): Adjust.
575 (print_signal_received_reason, print_no_history_reason): Adjust.
576 * interps.c (interp_set): Adjust.
577 * osdata.c (info_osdata_command): Adjust.
578 * progspace.c (maintenance_info_program_spaces_command): Adjust.
579 * remote-fileio.c (remote_fileio_request): Adjust.
580 * remote.c (show_remote_cmd): Adjust.
581 * solib.c (info_sharedlibrary_command): Adjust.
582 * source.c (print_source_lines_base): Adjust.
583 * stack.c (print_stack_frame): Adjust.
584 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
585 * symfile-mem.c (add_vsyscall_page): Adjust.
586 * symfile.c (load_progress, generic_load)
587 (print_transfer_performance): Adjust.
588 * thread.c (info_threads_command, restore_selected_frame)
589 (thread_command): Adjust.
590 * top.c (make_cleanup_restore_ui_file): Adjust.
591 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
592 (print_one_static_tracepoint_marker): Adjust.
593 * cli/cli-cmds.c (print_disassembly): Adjust.
594 * cli/cli-decode.c (print_doc_line): Adjust.
595 * cli/cli-interp.c (safe_execute_command): Adjust.
596 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
597 (handle_redirections): Adjust.
598 * cli/cli-script.c (show_user_1): Adjust.
599 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
600 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
601 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
602 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
603 (mi_cmd_env_dir): Adjust.
604 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
605 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
606 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
607 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
608 (list_args_or_locals): Adjust.
609 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
610 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
611 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
612 (mi_cmd_var_list_children, mi_cmd_var_info_type)
613 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
614 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
615 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
616 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
617 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
618 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
619 (list_available_thread_groups, mi_cmd_list_thread_groups)
620 (mi_cmd_data_list_register_names)
621 (mi_cmd_data_list_changed_registers)
622 (mi_cmd_data_list_register_values, get_register)
623 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
624 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
625 (mi_cmd_list_target_features, mi_cmd_add_inferior)
626 (mi_execute_command, mi_load_progress): Adjust.
627 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
628 * python/py-auto-load.c (print_script, info_auto_load_scripts):
630 * python/py-breakpoint.c (bppy_get_commands): Adjust.
631 * tui/tui-interp.c (tui_command_loop): Adjust.
632 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
634 2011-08-04 Pedro Alves <pedro@codesourcery.com>
636 * exceptions.c (struct catcher): Remove saved_uiout field.
637 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
638 no longer save/resvore the global ui_out builder.
639 (catch_exceptions_with_msg): Save/override/restore the global
640 ui_out builder manually instead of relying on TRY_CATCH to do it.
641 (catch_errors): Save/restore the global ui_out builder manually
642 instead of relying on TRY_CATCH to do it.
643 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
646 * cli/cli-interp.c (safe_execute_command): Save/override/restore
647 the global ui_out builder manually instead of relying on TRY_CATCH
650 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
652 * breakpoint.c (update_global_location_list): Ensure
653 invariant 'first loc marked not duplicated and inserted,
654 following locs marked duplicated/not inserted' is respected
655 for multiple locations at the same address.
656 (unduplicated_should_be_inserted) New function.
657 (swap_insertion) New function.
659 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
661 * stack.c (print_frame_arguments_choices): Comment typo fix.
663 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
666 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
667 * breakpoint.c (insert_bp_location): Remove disabled_breaks
668 argument. Update callers.
670 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
673 * doublest.c (convert_doublest_to_floatformat): Pass correct
674 mantissa length to put_field.
676 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
678 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
679 exception_print code path.
680 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
681 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
682 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
684 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
687 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
688 Remove, merge them into ...
689 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
690 variable args and its initialization.
691 (struct print_args_args, print_args_stub): Remove, merge them into
693 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
695 (do_gdb_disassembly): ... here. Remove variable args and its
697 (print_frame): Remove variable args and its initialization, new
698 variable gdbarch and numargs (from print_args_stub), inline here
699 print_args_stub with a TRY_CATCH.
700 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
702 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
703 New variable e, remove variable btargs and its initialization.
705 2011-08-01 Tristan Gingold <gingold@adacore.com>
707 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
709 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
711 * breakpoint.c (insert_bp_location): Document return value.
712 (insert_breakpoint_locations): Fix documentation.
713 (remove_breakpoints): Add documentation.
715 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
717 * breakpoint.c (insert_bp_location): Remove disabled_breaks
718 argument. Update callers.
720 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
722 * stack.c (print_frame_info): Comment typo fix.
724 2011-07-29 Sterling Augustine <saugustine@google.com>
726 * MAINTAINERS (Write After Approval): Add myself to the list.
728 2011-07-29 Tom Tromey <tromey@redhat.com>
730 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
731 (library_list_start_segment): Update.
732 (library_list_start_section): Update.
734 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
736 * varobj.c (value_get_print_value): Move hint check later into the
737 function. Comment function. Free thevalue before reusing it.
739 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
740 Pedro Alves <pedro@codesourcery.com>
742 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
744 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
745 Assert the result kind.
746 * value.h (value_one): Remove parameter lv.
748 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
750 Fix crash on lval_computed values.
751 * valops.c (value_zero): Use not_lval for lval_computed.
753 2011-07-27 Tom Tromey <tromey@redhat.com>
755 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
756 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
758 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
760 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
761 "ptype" by their typedefs difference.
763 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
765 * dwarf2expr.c (ctx_no_read_reg): New function.
766 * dwarf2expr.h (ctx_no_read_reg): New declaration.
767 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
768 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
769 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
771 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
773 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
774 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
776 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
777 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
778 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
779 (ctx_no_get_base_type): Move the functions here.
780 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
781 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
782 (ctx_no_get_base_type): New declarations.
784 2011-07-27 Tom Tromey <tromey@redhat.com>
786 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
788 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
789 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
791 2011-07-26 Sterling Augustine <saugustine@google.com>
793 * cli/cli-dump.c (dump_binary_file): Change parameter type to
795 (dump_bfd_file): Likewise.
797 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
799 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
800 (remote_hw_watchpoint_length_limit): New variable.
801 (_initialize_remote) add set,show cmds for this new variable.
802 * gdb.texinfo: document these new commands.
803 * NEWS: Mention these new commands.
805 2011-07-26 Pedro Alves <pedro@codesourcery.com>
807 * breakpoint.c (works_in_software_mode_watchpoint): Also return
808 true for software watchpoints.
810 2011-07-26 Joel Brobecker <brobecker@adacore.com>
814 2011-07-26 Tom Tromey <tromey@redhat.com>
816 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
817 * dwarf2read.c (read_indirect_string_at_offset): New function.
818 (read_indirect_string): Use it.
819 (dwarf_decode_macro_bytes): New function, taken from
820 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
821 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
822 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
824 (struct dwarf2_per_objfile) <macro>: New field.
825 (dwarf2_elf_names): Add .debug_macro.
826 (dwarf2_macros_too_long_complaint): Add 'section' argument.
827 (dwarf2_locate_sections): Handle new section.
828 (read_file_scope): Handle DW_AT_GNU_macros.
829 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
831 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
833 * NEWS: Mention dcache configuration.
834 * dcache.c (dcache_set_list, dcache_show_list): New variables.
835 (dcache_size, dcache_line_size): New variables.
836 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
837 (struct dcache_block): Make it expandable.
838 (struct dcache_struct): New field.
839 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
840 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
841 (dcache_poke_byte, dcache_print_line): Adjust.
842 (set_dcache_size, set_dcache_line_size): New functions.
843 (set_dcache_command, show_dcache_command): New functions.
844 (_initialize_dcache): Add new commands.
846 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
848 * progspace.h (struct program_space): Add solib_add_generation.
849 * infcmd.c (post_create_inferior): Only call solib_add if not
851 * solib.c (solib_add): Increment solib_add_generation.
853 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
855 Fix implicit pointer offsets.
856 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
859 2011-07-25 Tom Tromey <tromey@redhat.com>
861 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
863 (ada_exception_sal): Make 'ops' const.
864 (ada_decode_exception_location): Likewise.
865 (ada_decode_assert_location): Likewise.
866 (catch_assert_command): Update.
867 (catch_ada_exception_command): Update.
868 (create_ada_exception_catchpoint): Make 'ops' const.
869 * breakpoint.c (set_raw_breakpoint_without_location)
870 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
872 (create_internal_breakpoint): Update.
873 (init_raw_breakpoint_without_location): Make 'ops' const.
874 (init_raw_breakpoint, init_catchpoint)
875 (create_fork_vfork_event_catchpoint)
876 (create_syscall_event_catchpoint, init_breakpoint_sal)
877 (create_breakpoint_sal, create_breakpoints_sal)
878 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
879 * breakpoint.h (struct breakpoint) <ops>: Now const.
880 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
883 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
885 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
887 2011-07-25 Pedro Alves <pedro@codesourcery.com>
889 * breakpoint.h (print_recreate_thread): Declare.
890 (struct breakpoint): Move step_count, pass_count,
891 number_on_target, static_trace_marker_id,
892 static_trace_marker_id_idx ...
893 (struct tracepoint): ... to this new struct.
894 (get_tracepoint, get_tracepoint_by_number_on_target)
895 (get_tracepoint_by_number): Change return type to struct
897 * breakpoint.c (is_tracepoint_type): New, factored out from
899 (is_tracepoint): Adjust.
900 (print_one_breakpoint_location): Cast to struct tracepoint as
901 necessary, and adjust.
902 (print_recreate_catch_fork, print_recreate_catch_vfork)
903 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
904 print_recreate_thread.
905 (init_breakpoint_sal): New, factored out from
906 create_breakpoint_sal.
907 (create_breakpoint_sal): Reimplement.
908 (create_breakpoint): Allocate a struct tracecepoint if the caller
909 wanted a tracepoint. Use init_breakpoint_sal and
911 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
912 (print_recreate_masked_watchpoint)
913 (print_recreate_exception_catchpoint): Call print_recreate_thread.
914 (tracepoint_print_one_detail): Adjust.
915 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
916 Dump the pass count here.
917 (update_static_tracepoint): Adjust.
918 (addr_string_to_sals): Adjust.
919 (create_tracepoint_from_upload): Adjust. Change return type to
920 struct tracepoint pointer.
921 (trace_pass_set_count): Change parameter type to struct tracepoint
923 (trace_pass_command): Adjust.
924 (get_tracepoint, get_tracepoint_by_number_on_target)
925 (get_tracepoint_by_number): Change return type to struct
926 tracepoint pointer, and adjust.
927 (print_recreate_thread): New, factored out from save_breakpoints.
928 (save_breakpoints): Don't print thread and task and passcount
930 * remote.c (remote_download_tracepoint): Adjust.
931 * tracepoint.c (trace_actions_command, validate_actionline)
932 (start_tracing, tfind_1, trace_find_tracepoint_command)
933 (trace_dump_command): Adjust.
934 (find_matching_tracepoint): Change return type to struct
935 tracepoint pointer, and adjust.
936 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
937 (tfile_trace_find, tfile_fetch_registers): Adjust.
938 * tracepoint.h (create_tracepoint_from_upload): Change return type
939 to struct tracepoint pointer.
940 * ada-lang.c (print_recreate_exception): Call
941 print_recreate_thread.
942 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
944 2011-07-25 Pedro Alves <pedro@codesourcery.com>
946 * breakpoint.h (struct breakpoint): Move ops as first field. Move
947 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
948 cond_exp_valid_block, val, val_valid, watchpoint_frame,
949 watchpoint_thread, watchpoint_triggered ...
950 (struct watchpoint): ... to this new struct.
951 (is_watchpoint): Declare.
952 (install_breakpoint): Add new `internal' parameter.
953 * breakpoint.c (is_watchpoint): Delete declaration.
954 (set_breakpoint_condition): Handle watchpoints.
955 (is_watchpoint): Make public.
956 (watchpoint_in_thread_scope): Change parameter type to struct
958 (watchpoint_del_at_next_stop): Change parameter type to struct
959 watchpoint. Remove assertion. Adjust.
960 (update_watchpoint): Ditto.
961 (insert_breakpoints, breakpoint_init_inferior)
962 (watchpoints_triggered, watchpoint_check)
963 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
964 (bpstat_stop_status, print_one_breakpoint_location)
965 (print_one_breakpoint_location, watchpoint_locations_match): Cast
966 to struct watchpoint as necessary, and adjust.
967 (install_breakpoint): Add `internal' argument. If true, don't
968 mention the new breakpoint. Use set_breakpoint_number.
969 (create_fork_vfork_event_catchpoint)
970 (create_syscall_event_catchpoint): Adjust.
971 (dtor_watchpoint): New.
972 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
973 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
974 (print_it_watchpoint, print_mention_watchpoint)
975 (print_recreate_watchpoint, insert_masked_watchpoint)
976 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
977 (print_one_detail_masked_watchpoint)
978 (print_mention_masked_watchpoint)
979 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
980 necessary, and adjust.
981 (watch_command_1): Allocate and initialize a struct watchpoint
982 instead of a struct breakpoint. Use install_breakpoint.
983 (catch_exec_command_1): Adjust.
984 (base_breakpoint_dtor): Delete accesses to watchpoint specific
986 (delete_breakpoint, enable_breakpoint_disp)
987 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
988 as necessary, and adjust.
989 (initialize_breakpoint_ops): Install dtor_watchpoint as
990 watchpoints' dtor method.
991 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
992 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
993 to struct watchpoint as necessary, and adjust.
995 2011-07-25 Pedro Alves <pedro@codesourcery.com>
997 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
998 the the base class ops table.
999 (catch_exception_breakpoint_ops)
1000 (catch_exception_unhandled_breakpoint_ops)
1001 (catch_assert_breakpoint_ops): Don't statically initialize.
1002 (initialize_ada_catchpoint_ops): New.
1003 (_initialize_ada_language): Call it.
1004 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1005 (bkpt_breakpoint_ops): Forward declare.
1006 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1007 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1008 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1009 (masked_watchpoint_breakpoint_ops)
1010 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1011 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1012 base class ops table.
1013 (null_re_set, null_check_status, null_works_in_software_mode)
1014 (null_resources_needed, null_print_one_detail): Delete.
1015 (bkpt_dtor): Rename to ...
1016 (base_breakpoint_dtor): ... this. Make static.
1017 (bkpt_allocate_location): Rename to ...
1018 (base_breakpoint_allocate_location): ... this. Make static.
1019 (base_breakpoint_re_set): New.
1020 (internal_error_pure_virtual_called): New.
1021 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1022 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1023 (base_breakpoint_works_in_software_mode)
1024 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1025 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1026 (base_breakpoint_print_recreate): New functions.
1027 (base_breakpoint_ops): New global.
1028 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1029 (bkpt_breakpoint_hit): Make static.
1030 (bkpt_check_status): Delete.
1031 (bkpt_resources_needed): Make static.
1032 (bkpt_works_in_software_mode): Delete.
1033 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1035 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1036 (momentary_breakpoint_ops): Don't statically initialize.
1037 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1039 (tracepoint_insert_location, tracepoint_remove_location)
1040 (tracepoint_check_status, tracepoint_works_in_software_mode)
1041 (tracepoint_print_it): Delete.
1042 (tracepoint_breakpoint_ops): Don't statically initialize.
1043 (initialize_breakpoint_ops): New.
1044 (_initialize_breakpoint): Call it.
1045 * breakpoint.h (null_re_set, null_works_in_software_mode)
1046 (null_resources_needed, null_check_status, null_print_one_detail):
1047 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1048 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1049 (bkpt_check_status, bkpt_resources_needed)
1050 (bkpt_works_in_software_mode, bkpt_print_it)
1051 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1052 Delete declarations.
1053 (initialize_breakpoint_ops): Declare.
1055 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1057 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1058 (momentary_bkpt_print_it): Simplify.
1060 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1062 Split internal, momentary and user breakpoints breakpoint_ops
1065 * breakpoint.c (internal_breakpoint_ops)
1066 (momentary_breakpoint_ops): Forward declare.
1067 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1068 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1069 (create_overlay_event_breakpoint)
1070 (create_std_terminate_master_breakpoint)
1071 (create_exception_master_breakpoint): Create breakpoints with
1072 internal_breakpoint_ops vtable.
1073 (set_longjmp_breakpoint): Create momentary breakpoints with
1074 momentary_breakpoint_ops vtable, using
1075 momentary_breakpoint_from_master.
1076 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1077 (create_solib_event_breakpoint): Create breakpoints with
1078 internal_breakpoint_ops vtable.
1079 (set_momentary_breakpoint): Create breakpoints with
1080 momentary_breakpoint_ops vtable.
1081 (momentary_breakpoint_from_master): New, factored out from
1082 clone_momentary_breakpoint.
1083 (clone_momentary_breakpoint): Adjust.
1084 (watch_command_1): Create scope breakpoints with
1085 momentary_breakpoint_ops vtable.
1086 (bkpt_re_set): Remove handling of internal and momentary
1088 (bkpt_print_mention, bkpt_print_recreate): New.
1089 (bkpt_breakpoint_ops): Adjust.
1090 (internal_bkpt_re_set, internal_bkpt_check_status)
1091 (internal_bkpt_print_it, internal_bkpt_print_mention)
1092 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1093 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1094 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1095 (momentary_bkpt_print_recreate): New.
1096 (momentary_breakpoint_ops): New.
1098 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1100 Implement most breakpoint_ops methods for all breakpoint types,
1101 and move the default handlings to the proper callbacks.
1103 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1104 works_in_software_mode method.
1105 (insert_bp_location): Go through breakpoint_ops->insert_location
1106 for software and hardware watchpoints.
1107 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1109 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1110 for software and hardware watchpoints.
1111 (print_it_typical): Delete.
1112 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1114 (watchpoint_check): Adjust comment.
1115 (bpstat_check_location): Simply always call the breakpoint's
1116 breakpoint_hit method.
1117 (bpstat_stop_status): Always call the breakpoint's check_status
1118 method. Remove special cases for watchpoints and internal event
1119 breakpoints from here (moved to the check_status implementations).
1120 (print_one_breakpoint_location): Assume b->ops is never NULL.
1121 Remove static tracepoint marker id printing from here (moved to
1122 the print_one_detail callback implementation of tracepoints).
1123 (init_bp_location): Assert OPS is never NULL.
1124 (allocate_bp_location): Always call the breakpoint's
1125 allocate_location method, and remove the default code from here.
1126 (free_bp_location): Always call the location's dtor method, and
1127 remove the default code from here.
1128 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1129 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1130 parameter. Pass it down.
1131 (set_raw_breakpoint): Ditto.
1132 (print_it_catch_fork): Adjust to take a bpstat as argument.
1133 (catch_fork_breakpoint_ops): Install methods.
1134 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1135 (catch_vfork_breakpoint_ops): Install methods.
1136 (dtor_catch_syscall): Call the base dtor.
1137 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1138 (catch_syscall_breakpoint_ops): Install methods.
1139 (dtor_catch_exec): Call the base dtor.
1140 (print_it_catch_exec): Adjust to take a bpstat as argument.
1141 (catch_exec_breakpoint_ops): Install methods.
1142 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1143 the breakpoint's resources_needed method, and remove the default
1145 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1147 (clone_momentary_breakpoint): Clone the original's ops.
1148 (mention): Always call the breakpoint's print_mention method, and
1149 remove the default code from here.
1150 (create_breakpoint_sal): Adjust to pass the ops to
1151 set_raw_breakpoint rather than setting it manually.
1152 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1153 ops to set_raw_breakpoint_without_location rather than setting it
1155 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1156 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1157 (ranged_breakpoint_ops): Install methods.
1158 (break_range_command): Adjust to pass the ops to
1159 set_raw_breakpoint rather than setting it manually.
1160 (re_set_watchpoint, breakpoint_hit_watchpoint)
1161 (check_status_watchpoint, resources_needed_watchpoint)
1162 (works_in_software_mode_watchpoint, print_it_watchpoint)
1163 (print_mention_watchpoint, print_recreate_watchpoint): New
1165 (watchpoint_breakpoint_ops): Install new methods.
1166 (print_it_masked_watchpoint): New function.
1167 (masked_watchpoint_breakpoint_ops): Install new methods.
1168 (watch_command_1): Adjust to pass the right breakpoint_ops to
1169 set_raw_breakpoint_without_location rather than setting it
1170 manually later. Record the current pspace.
1171 (print_it_exception_catchpoint): Adjust to take a bpstat as
1173 (gnu_v3_exception_catchpoint_ops): Install new methods.
1174 (say_where): New function.
1175 (null_re_set, null_check_status, null_works_in_software_mode)
1176 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1178 (bp_location_ops): New global.
1179 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1180 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1181 (bkpt_check_status, bkpt_resources_needed)
1182 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1183 (bkpt_print_recreate): New functions.
1184 (bkpt_breakpoint_ops): New global.
1185 (tracepoint_re_set, tracepoint_insert_location)
1186 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1187 (tracepoint_check_status, tracepoint_works_in_software_mode)
1188 (tracepoint_print_it, tracepoint_print_one_detail)
1189 (tracepoint_print_mention, tracepoint_print_recreate): New
1191 (tracepoint_breakpoint_ops): New global.
1192 (delete_breakpoint): Always call the breakpoint's dtor method, and
1193 remove the default handling from here.
1194 (breakpoint_re_set_default): Make static.
1195 (breakpoint_re_set_one): Always call the breakpoints re_set
1196 method, and remove the default handling from here.
1197 (trace_command, ftrace_command, strace_command)
1198 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1199 to create_breakpoint.
1200 (save_breakpoints): Always call the breakpoint's print_recreate
1201 method, and remove the default handling from here.
1203 * ada-lang.c (dtor_exception): Call the base dtor.
1204 (re_set_exception): Call the base method.
1205 (print_it_exception, print_it_catch_exception): Adjust to take a
1207 (catch_exception_breakpoint_ops): Install methods.
1208 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1210 (catch_exception_unhandled_breakpoint_ops): Install methods.
1211 (print_it_catch_assert): Adjust to take a bpstat as argument.
1212 (catch_assert_breakpoint_ops): Install methods.
1214 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1215 to take a bpstat as argument.
1216 (enum print_stop_action): Add describing comments to each enum
1218 (breakpoint_re_set_default): Delete declaration.
1219 (null_re_set, null_works_in_software_mode, null_resources_needed)
1220 (null_check_status, null_print_one_detail): Declare.
1221 (bkpt_breakpoint_ops): Declare.
1222 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1223 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1224 (bkpt_check_status, bkpt_resources_needed)
1225 (bkpt_works_in_software_mode, bkpt_print_it)
1226 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1229 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1230 bkpt_breakpoint_ops.
1231 * python/py-breakpoint.c (bppy_init): Ditto.
1233 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1235 * MAINTAINERS (Write After Approval): Add myself to the list.
1237 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1239 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1241 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1243 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1244 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1245 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1247 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1248 (struct i386_debug_reg_state): New.
1249 (i386_init_dregs): New.
1251 (i386_cleanup_dregs): Use i386_init_dregs.
1252 (i386_show_dr): Add state parameter and adjust.
1253 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1255 (i386_remove_aligned_watchpoint): Likewise.
1256 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1257 (i386_update_inferior_debug_regs): New.
1258 (i386_insert_watchpoint): Work on a local mirror of the debug
1259 registers, and only update the inferior on success.
1260 (i386_remove_watchpoint): Ditto.
1261 (i386_region_ok_for_watchpoint): Adjust.
1262 (i386_stopped_data_address): Adjust.
1263 (i386_insert_hw_breakpoint): Adjust.
1264 (i386_remove_hw_breakpoint): Adjust.
1266 2011-07-22 Tom Tromey <tromey@redhat.com>
1268 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1269 from amd64_pseudo_register_read. Change arguments. Call
1270 mark_value_bytes_unavailable when needed.
1271 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1272 set_gdbarch_pseudo_register_read.
1273 * sentinel-frame.c (sentinel_frame_prev_register): Use
1274 regcache_cooked_read_value.
1275 * regcache.h (regcache_cooked_read_value): Declare.
1276 * regcache.c (regcache_cooked_read_value): New function.
1277 (regcache_cooked_read): Call
1278 gdbarch_pseudo_register_read_value if available.
1279 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1280 (i386_pseudo_register_read): Remove.
1281 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1282 i386_pseudo_register_read. Change arguments. Call
1283 mark_value_bytes_unavailable when needed.
1284 (i386_pseudo_register_read_value): New function.
1285 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1286 not set_gdbarch_pseudo_register_read.
1287 * gdbarch.sh (pseudo_register_read_value): New method.
1288 * gdbarch.c, gdbarch.h: Rebuild.
1289 * findvar.c (value_from_register): Call get_frame_register_value.
1291 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1293 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1295 (display_gdb_prompt): Likewise.
1296 (change_annotation_level): Likewise.
1297 (push_prompt): Likewise.
1298 (pop_prompt): Likewise.
1299 (handle_stop_sig): Use get_prompt with a level.
1300 * top.c (command_loop): Use get_prompt with a level.
1301 (set_async_annotation_level): Use set_prompt with a level.
1302 (get_prefix): New function.
1303 (set_prefix): Ditto.
1304 (set_suffix): Ditto.
1305 (get_suffix): Ditto.
1306 (get_prompt): Accept a level argument.
1307 (set_prompt): Accept a level argument. Free old prompts. Set
1308 new_async_prompt if level is 0.
1309 (init_main): Use set_prompt with a level. Do not set
1311 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1312 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1313 Modify set_prompt, get_prompt to account for levels.
1314 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1316 * python/python.c (before_prompt_hook): Use set_prompt.
1318 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1320 * defs.h: Add guard against inclusion in gdbserver.
1321 (struct ptid, ptid_t): Move to common/ptid.h.
1322 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1323 xsnprintf, internal_error): Move to common/common-utils.h.
1325 * gdb_assert.h: Move into common/ sub-directory.
1326 * gdb_locale.h: Ditto.
1327 * gdb_dirent.h: Ditto.
1328 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1329 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1330 Move into common/ptid.h.
1331 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1332 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1333 Change nomem to malloc_failure.
1334 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1335 * utils.c (nomem): Rename to malloc_failure.
1336 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1337 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1338 (gdb_buildargv): Change nomem to malloc_failure.
1339 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1340 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1341 ptid_is_pid): Move into common/ptid.c.
1342 (initialize_infrun): Delete initialization of null_ptid and
1344 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1345 linux_common_xfer_osdata.
1346 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1347 common/ptid.c and common/buffer.c.
1348 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1349 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1350 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1351 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1353 * common/gdb_assert.h: New.
1354 * common/gdb_dirent.h: New.
1355 * common/gdb_locale.h: New.
1356 * common/buffer.c: New.
1357 * common/buffer.h: New.
1358 * common/ptid.c: New.
1359 * common/ptid.h: New.
1360 * common/xml-utils.c: New.
1361 * common/xml-utils.h: New.
1362 * common/common-utils.c: New.
1363 * common/common-utils.h: New.
1364 * common/linux-osdata.c: New.
1365 * common/linux-osdata.h: New.
1366 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1367 * config/arm/linux.mh (NATDEPFILES): Ditto.
1368 * config/i386/linux.mh (NATDEPFILES): Ditto.
1369 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1370 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1371 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1372 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1373 * config/mips/linux.mh (NATDEPFILES): Ditto.
1374 * config/pa/linux.mh (NATDEPFILES): Ditto.
1375 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1376 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1377 * config/s390/s390.mh (NATDEPFILES): Ditto.
1378 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1379 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1380 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1382 2011-07-21 Matt Rice <ratmice@gmail.com>
1384 * NEWS: Add info macros and info definitions commands.
1386 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1388 * NEWS: Document Python prompt substitution hook.
1390 2011-07-18 Matt Rice <ratmice@gmail.com>
1393 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1394 * macrotab.c (foreach_macro): Ditto.
1395 (foreach_macro_in_scope): Ditto.
1396 * macrocmd.c (print_macro_callback): New function.
1397 (info_macro_command): Move some code to print_macro_definition.
1398 (print_macro_definition): New function.
1399 (print_one_macro): Add new arguments to callback.
1400 (info_definitions_command): New function.
1401 (info_macros_command): Ditto.
1402 (_initialize_macrocmd): Add info macros and info definitions commands.
1403 * symtab.c (add_macro_name): Add new arguments to callback.
1405 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1406 Tom Tromey <tromey@redhat.com>
1408 * top.c (set_prompt): Rewrite to free previous prompt, free
1409 asynch_new_prompt and set both on new prompts.
1410 * event-top.c (display_gdb_prompt): Add prompt substitution
1412 * python/python.c (before_prompt_hook): New function.
1414 2011-07-20 Matt Rice <ratmice@gmail.com>
1416 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1417 arguments to store_unsigned_integer.
1419 2011-07-20 Tom Tromey <tromey@redhat.com>
1421 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1422 in some declaration-only cases.
1424 2011-07-18 Tom Tromey <tromey@redhat.com>
1427 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1428 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1429 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1430 <debug_type_section>: New field.
1431 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1432 (load_cu): Use appropriate section.
1433 (create_signatured_type_table_from_index): Add 'section'
1435 (dwarf2_read_index): Only allow a single .debug_types section.
1436 (dw2_get_file_names): Use appropriate section.
1437 (read_type_comp_unit_head): Add 'section' argument.
1438 (create_debug_types_hash_table): Loop over all .debug_types
1440 (init_cu_die_reader): Use appropriate section.
1441 (process_psymtab_comp_unit, load_partial_comp_unit)
1442 (load_full_comp_unit, read_die_and_children, find_partial_die)
1443 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1444 (lookup_signatured_type_at_offset): Add 'section' argument.
1445 (read_signatured_type_at_offset): Add 'sect' argument.
1446 (read_signatured_type): Use appropriate section.
1447 (set_die_type, get_die_type_at_offset): Update.
1448 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1450 (write_psymtabs_to_index): Don't allow index with more than one
1451 .debug_types section.
1453 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1455 Fix crash if referenced CU is aged out.
1456 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1457 xfree of block.data.
1458 (indirect_pieced_value): New variable back_to, use to for xfree of
1460 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1462 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1463 (load_cu): New function from ...
1464 (dw2_do_instantiate_symtab): ... the code here ...
1465 (process_full_comp_unit): ... and here.
1466 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1469 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1471 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1474 2011-07-19 Gary Benson <gbenson@redhat.com>
1476 * infrun.c (struct execution_control_state): New member
1477 stop_func_filled_in.
1478 (clear_stop_func, fill_in_stop_func): New functions.
1479 (handle_inferior_event): Call clear_stop_func rather than
1480 manipulating the execution control state directly.
1481 Call fill_in_stop_func lazily as required rather than
1482 directly calling find_pc_partial_function in all cases.
1484 2011-07-18 Tom Tromey <tromey@redhat.com>
1486 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1487 checking for variable-sized array.
1489 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1491 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1492 of supported languages.
1493 * varobj.c: Add top definitions and basic implementation of the
1494 following callbacks: ada_number_of_children, ada_name_of_variable,
1495 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1496 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1497 (languages): Register Ada-specific callbacks.
1498 (variable_language): Add the Ada case in the language setter switch.
1500 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1502 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1504 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1507 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1508 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1509 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1510 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1511 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1512 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1513 (struct dwarf_expr_context_funcs): New, move here methods from ...
1514 (struct dwarf_expr_context): ... here. New fields funcs.
1515 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1516 (dwarf_expr_ctx_funcs): New.
1517 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1518 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1519 (needs_frame_ctx_funcs): New.
1520 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1522 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1524 * MAINTAINERS (Write After Approval): Add myself to the list.
1526 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1528 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1529 that CIE pointer of an FDE really points to a CIE .
1531 2011-07-15 Hui Zhu <teawater@gmail.com>
1533 * remote.c (remote_get_trace_status): Add comments.
1535 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1537 Code cleanup - constify struct lval_funcs.
1538 * dwarf2loc.c (pieced_value_funcs): Make it const.
1539 * infrun.c (siginfo_value_funcs): Likewise.
1540 * opencl-lang.c (opencl_value_funcs): Likewise.
1541 * valops.c (value_assign, value_ind): Make the funcs variable const.
1542 * value.c (struct value): Make location.computed.funcs target const.
1543 Rearrange the comments.
1544 (allocate_computed_value): Make the funcs parameter target const.
1545 (value_computed_funcs): Return the funcs target const.
1546 (value_free, value_copy, set_value_component_location): Make the funcs
1548 * value.h (allocate_computed_value): Make the funcs parameter target
1550 (value_computed_funcs): Return the funcs target const.
1551 * windows-tdep.c (tlb_value_funcs): Make it const.
1553 2011-07-14 Hui Zhu <teawater@gmail.com>
1555 * remote.c (remote_get_trace_status): Initialize p.
1557 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1560 * remote.c (remote_get_trace_status): New variable ex. Put
1561 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1563 2011-07-13 Tom Tromey <tromey@redhat.com>
1565 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1566 value_from_contents for final conversion.
1568 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1571 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1572 Indent prototypes so they do not get into tags.
1574 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1576 Code cleanup making also optimized out values lazy.
1577 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1578 allocate_optimized_out_value. Twice.
1579 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1580 * findvar.c (read_var_value): Likewise.
1581 * value.c (allocate_optimized_out_value): New function.
1582 * value.h (allocate_optimized_out_value): New declaration.
1584 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1586 Fix occasional crash of CTRL-C during DWARF read in.
1587 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1589 2011-07-11 Tom Tromey <tromey@redhat.com>
1591 * regcache.c (struct regcache_descr): Fix typo.
1592 * i387-tdep.c (i387_supply_xsave): Fix typo.
1594 2011-07-11 Tom Tromey <tromey@redhat.com>
1596 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1597 (read_file_scope, read_type_unit_scope): Use it.
1599 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1601 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1604 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1607 * python/python.c: Set gdbpy_should_print_stack default to off.
1608 (set_python): Deprecate maint set python print-stack to
1610 (_initialize_python): Deprecate maint set/show python print-stack.
1611 Add new prefix command, python. Add new setting, print-backtrace.
1612 * NEWS: Document set python print-stack. Document default change.
1614 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1616 * python/py-inferior.c (infpy_dealloc): New function.
1617 (inferior_to_inferior_object): Return a new object, or a
1618 new reference to the existing object.
1619 (find_thread_object): Cleanup references to inferior.
1620 (delete_thread_object): Ditto.
1621 * python/py-infthread.c (create_thread_object): Do not increment
1622 inferior reference count.
1624 2011-07-08 Tom Tromey <tromey@redhat.com>
1626 * dwarf2loc.c (locexpr_regname): New function.
1627 (locexpr_describe_location_piece): Use it.
1628 (disassemble_dwarf_expression): Add per_cu argument. Use
1630 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1631 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1633 (locexpr_describe_location_1): Add per_cu argument.
1634 (locexpr_describe_location): Update.
1635 (loclist_describe_location): Update.
1637 2011-07-08 Tom Tromey <tromey@redhat.com>
1639 * dwarf2expr.c (execute_stack_op): Add QUIT.
1641 2011-07-07 Hui Zhu <teawater@gmail.com>
1644 2011-07-06 Hui Zhu <teawater@gmail.com>
1645 * remote.c (remote_start_remote): Add TRY_CATCH for
1646 remote_get_trace_status.
1647 * tracepoint.c (disconnect_tracing): Ditto.
1649 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1651 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1652 variables as signed, not unsigned.
1654 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1656 * jit.c (jit_inferior_init): Reformat forward declaration.
1658 2011-07-06 Matt Rice <ratmice@gmail.com>
1660 * MAINTAINERS (Write After Approval): Add myself to the list.
1662 2011-07-06 Hui Zhu <teawater@gmail.com>
1664 * remote.c (remote_start_remote): Add TRY_CATCH for
1665 remote_get_trace_status.
1666 * tracepoint.c (disconnect_tracing): Ditto.
1668 2011-07-05 Tom Tromey <tromey@redhat.com>
1670 * symtab.c (operator_chars): Now static.
1671 * linespec.c (operator_chars): Don't declare.
1673 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1675 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1677 2011-07-05 Tom Tromey <tromey@redhat.com>
1679 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1680 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1681 (TYPE_CPLUS_REALLY_JAVA): New macro.
1682 * dwarf2read.c (process_structure_scope): Set
1683 TYPE_CPLUS_REALLY_JAVA.
1685 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1687 * ada-lang.c: Fix typos.
1688 * amd64-tdep.c: Likewise.
1689 * breakpoint.c: Likewise.
1690 * cli/cli-decode.c: Likewise.
1691 * findcmd.c: Likewise.
1692 * inline-frame.c: Likewise.
1693 * mi/mi-main.c: Likewise.
1694 * minsyms.c: Likewise.
1695 * monitor.c: Likewise.
1696 * monitor.h: Likewise.
1697 * prologue-value.c: Likewise.
1698 * reverse.c: Likewise.
1699 * s390-tdep.c: Likewise.
1701 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1703 * jit.c (jit_inferior_init): Forward declare.
1704 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1706 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1708 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1710 2011-07-04 Tristan Gingold <gingold@adacore.com>
1712 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1713 (tcb_fieldno): Add activation_link field.
1714 (get_known_tasks_addr): Moved and rewritten.
1715 (get_tcb_types_info): Set activation_link field.
1716 (read_known_tasks_array): Add parameter. Rewritten.
1717 (read_known_tasks_list): New function.
1718 (read_known_tasks): New function.
1719 (ada_build_task_list): Call read_known_tasks instead of
1720 read_known_tasks_array.
1721 * ravenscar-thread.c: Add first_task_name constant.
1722 (has_ravenscar_runtime): Check for task list too.
1724 2011-07-04 Tristan Gingold <gingold@adacore.com>
1726 * ada-tasks.c: Renames fieldno to actb_fieldno.
1727 (ada_get_task_number): Indentation.
1728 (get_tcb_types_info): Remove all parameters. Write directly
1730 (ptid_from_atcb_common): Adjust.
1731 (read_atcb): Adjust.
1733 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1735 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1737 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1739 * ui-out.c (ui_out_field_core_addr): Mention that the function
1740 description is in the header file.
1741 * ui-out.h (ui_out_field_core_addr): Document function.
1743 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1745 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1746 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1748 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1750 * symtab.c (expand_line_sal): Remove empty line.
1752 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1754 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1755 same way as ELFOSABI_NONE.
1756 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1758 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1760 * breakpoint.c: Fix typos in comments.
1761 * linespec.c: Likewise.
1762 * symtab.c: Likewise.
1764 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1766 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1767 section in separate object files.
1769 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1771 Fix false GCC warning.
1772 * linespec.c (decode_line_1): Initialize values.
1774 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1776 * linespec.c (find_method): Accept the function type automatically only
1777 if it was specified with parameter types.
1779 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1781 Stop on first linespec terminator instead of eating what we can.
1782 * linespec.c (is_linespec_boundary): New function.
1783 (name_end): Remove function.
1784 (keep_name_info): New parameter on_boundary, replace the body.
1785 (decode_line_1): Provide the parameter to keep_name_info.
1786 (decode_compound): Likewise. Drop the trailing java return type
1789 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1791 Fall back linespec to minimal symbols.
1792 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1793 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1794 (find_method, symbol_found): Change error to cplusplus_error.
1796 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1798 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1800 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1801 Tom Tromey <tromey@redhat.com>
1803 * dwarf2read.c (check_physname): New variable.
1804 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1805 (show_check_physname): New function.
1806 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1808 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1810 * machoread.c (macho_symfile_read): Delete OBE comment.
1812 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1814 * machoread.c (struct macho_oso_data): Delete.
1815 (current_oso): Delete.
1816 (macho_relocate_common_syms): New function, mostly extracted
1818 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1819 Remove code that sets and unset current_oso.
1820 (macho_symfile_relocate): Delete handling of common symbols,
1821 now moved to macho_relocate_common_syms.
1823 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1825 * darwin-nat.c (darwin_ptrace): Add documentation.
1826 Set errno to zero before calling ptrace. If ptrace returns
1827 -1 and errno is zero, then change then return zero.
1828 (darwin_kill_inferior): Issue a warning instead of triggering
1829 a failed assertion when the PT_KILL ptrace operations returned
1832 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1834 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1835 only when inf->private->no_ptrace.
1837 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1839 * ada-lang.c (print_it_exception): Print temporary catchpoints
1840 as "Temporary catchpoint".
1841 (print_mention_exception): Likewise.
1843 2011-07-01 Tom Tromey <tromey@redhat.com>
1845 * jv-lang.c (java_language_defn): Use java_printchar,
1847 (java_get_encoding): New function.
1848 (java_emit_char): Use generic_emit_char.
1849 (java_printchar): New function.
1850 (java_printstr): Likewise.
1852 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1854 * ada-typeprint.c (print_record_type): If unable to decode
1855 the name of the parent type, use the encoded name.
1857 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1859 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1860 pointer to constrained packed array type output.
1861 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1862 packed array output.
1864 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1866 * ada-typeprint.c (print_array_type): removed if condition on show
1867 being negative for bounds printing.
1869 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1871 * ada-lang.c (ada_identical_enum_types_p): New function.
1872 (symbols_are_identical_enums): New function.
1873 (remove_extra_symbols): Do nothing if NSYMS < 2.
1874 Use symbols_are_identical_enums.
1876 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1878 * ada-valprint.c (ada_value_print): Handle typedefs.
1880 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1882 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1884 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1886 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1887 (decode_constrained_packed_array): Likewise.
1888 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1890 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1892 * ada-exp.y (convert_char_literal): Handle typedef types.
1894 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1896 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1898 2011-06-30 Tom Tromey <tromey@redhat.com>
1900 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1901 * valops.c (find_overload_match): Call do_cleanups on early exit
1903 * solib.c (solib_find): Call do_cleanups on early exit path.
1905 2011-06-30 Tom Tromey <tromey@redhat.com>
1907 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1908 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1909 return paths. Defer final do_cleanups until last return.
1910 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1913 2011-06-30 Tom Tromey <tromey@redhat.com>
1915 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1917 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1919 * MAINTAINERS (Write After Approval): Add myself to the list.
1921 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1923 Disable epilogue unwinders on recent GCCs.
1924 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1925 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1926 * dwarf2read.c (process_full_comp_unit): Initialize
1927 EPILOGUE_UNWIND_VALID.
1928 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1929 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1930 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1932 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1934 Code cleanup - reformatting.
1935 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1936 (producer_is_gcc_ge_4): ... here, change the return value.
1937 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1940 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1942 Fix non-only rename list for Fortran modules import.
1943 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1944 cp_add_using_directive caller.
1945 (cp_add_using_directive): New parameter excludes, describe it. New
1946 variables ix and param. Compare if also excludes match. Allocate NEW
1947 with variable size, initialize EXCLUDES there.
1948 (cp_lookup_symbol_imports): New variable excludep, test
1949 current->EXCLUDES with it.
1950 * cp-support.h: Include vec.h.
1951 (struct using_direct): New field excludes, describe it.
1952 (DEF_VEC_P (const_char_ptr)): New.
1953 (cp_add_using_directive): New parameter excludes.
1954 * defs.h (const_char_ptr): New typedef.
1955 * dwarf2read.c (read_import_statement): New variables child_die,
1956 excludes and cleanups, read in excludes.
1957 (read_namespace): Adjust the cp_add_using_directive caller.
1959 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1962 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1963 negative comparisons.
1965 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
1967 * mi/mi-main.c (mi_cmd_list_features): Emit
1968 breakpoint-notifications.
1970 2011-06-29 Tom Tromey <tromey@redhat.com>
1973 * valprint.h (generic_emit_char, generic_printstr): Declare.
1974 * valprint.c (wchar_printable, append_string_as_wide)
1975 (print_wchar): Move from c-lang.c.
1976 (generic_emit_char): New function; mostly taken from c_emit_char.
1977 (generic_printstr): New function; mostly taken from c_printstr.
1978 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1979 represented as arrays.
1980 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1982 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1983 identically to TYPE_CODE_INT.
1984 * f-lang.c (f_get_encoding): New function.
1985 (f_emit_char): Use generic_emit_char.
1986 (f_printchar): Replace comment.
1987 (f_printstr): Use generic_printstr.
1988 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1989 "character" types specially.
1990 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1992 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1994 (c_emit_char): Call generic_emit_char.
1995 (c_printstr): Call generic_printstr.
1997 2011-06-29 Gary Benson <gbenson@redhat.com>
1999 * breakpoint.c (bpstat_what): Removed duplicated case.
2001 2011-06-28 Tom Tromey <tromey@redhat.com>
2003 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2005 2011-06-27 Tom Tromey <tromey@redhat.com>
2007 * valops.c (find_overload_match): Call do_cleanups before early
2009 * top.c (execute_command): Call do_cleanups before early return.
2010 (command_loop): Likewise.
2011 * stack.c (backtrace_command): Make a null cleanup early. Don't
2012 conditionally call do_cleanups.
2013 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2015 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2016 so cleanups are always run.
2017 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2018 * findcmd.c (parse_find_args): Call do_cleanups on early return
2020 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2021 Don't conditionally call do_cleanups.
2022 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2025 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2027 * MAINTAINERS (Write After Approval): Use default email address.
2029 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2031 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2033 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2035 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2036 saved_regs_mask and copied_regs_mask fields.
2037 (sparc_record_save_insn): New prototype.
2038 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2039 (sparc_record_save_insn): New function.
2040 (sparc_analyze_prologue): Add head comment. Recognize store insns
2041 of call-saved registers. Use OFFSET consistently. Recognize flat
2042 frames and cache their settings.
2043 (sparc32_skip_prologue): Handle flat frames.
2044 (sparc_frame_cache): Add frame_offset to the base address.
2045 (sparc32_frame_cache): Adjust to new frame description.
2046 (sparc32_frame_prev_register): Likewise.
2047 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2048 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2049 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2050 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2051 frame by calling sparc_record_save_insn.
2052 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2053 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2054 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2056 2011-06-27 Tristan Gingold <gingold@adacore.com>
2058 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2059 field by map_addr and map_len.
2060 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2061 (munmap_section_buffer): Likewise.
2063 2011-06-24 Tom Tromey <tromey@redhat.com>
2065 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2066 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2067 * python/python.c (gdbpy_parameter): Make 'arg' const.
2068 (execute_gdb_command): Likewise.
2069 (gdbpy_decode_line): Likewise. Copy it.
2070 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2071 (gdbpy_write): Make 'arg' const.
2072 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2074 (gdbpy_lookup_type): Likewise.
2075 * python/py-prettyprint.c (print_children): Make 'name' const.
2076 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2077 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2079 * python/py-function.c (fnpy_init): Make 'name' const.
2080 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2081 (gdbpy_string_to_argv): Make 'input' const.
2082 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2084 * gdbtypes.h (lookup_typename): Update.
2085 * gdbtypes.c (lookup_typename): Make 'name' const.
2086 (lookup_struct): Likewise.
2087 (lookup_union): Likewise.
2088 (lookup_enum): Likewise.
2090 2011-06-24 Tom Tromey <tromey@redhat.com>
2092 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2093 gdb_thread_db.h. Move all common/ entries to be together.
2094 (TAGS): Don't depend on DEPFILES.
2096 2011-06-23 Yao Qi <yao@codesourcery.com>
2098 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2099 * remote.c (remote_start_remote): ... here.
2100 * monitor.c (monitor_open): ... here.
2102 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2104 * gdbtypes.c (append_composite_type_field_aligned): Fix
2105 calculation of bit position based on alignment.
2107 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2109 * breakpoint.c (bpstat_stop_status): Call the check_status
2110 breakpoint_ops method.
2111 (print_one_breakpoint_location): Also print the condition for Ada
2112 exception catchpoints.
2113 (allocate_bp_location): New, factored out from
2114 allocate_bp_location.
2115 (allocate_bp_location): Adjust. Call the owner breakpoint's
2116 allocate_location method, if there is one.
2117 (free_bp_location): Call the locations's dtor method, if there is
2119 (init_raw_breakpoint_without_location): New breakpoint_ops
2121 (set_raw_breakpoint_without_location): Adjust.
2122 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2123 (set_raw_breakpoint): Adjust.
2124 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2125 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2126 re_set and check_status methods.
2127 (init_catchpoint): Don't memset, initialize thread, addr_string
2128 and enable_state. Pass the ops down to init_raw_breakpoint.
2129 (install_catchpoint): Rename to ...
2130 (install_breakpoint): ... this, and make extern.
2131 (create_fork_vfork_event_catchpoint): Adjust.
2132 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2133 re_set and check_status methods.
2134 (create_syscall_event_catchpoint): Adjust.
2135 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2136 (masked_watchpoint_breakpoint_ops): Install NULL
2137 allocate_location, re_set and check_status methods.
2138 (catch_exec_command_1): Adjust.
2139 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2140 re_set and check_status methods.
2141 (create_ada_exception_breakpoint): Rename to ...
2142 (init_ada_exception_breakpoint): ... this. Add a struct
2143 breakpoint parameter, and delete the exp_string, cond_string and
2144 cond parameters. Use init_raw_breakpoint, and don't install or
2145 mention the breakpoint yet. Don't clear breakpoint fields that
2146 init_raw_breakpoint already clears.
2147 (re_set_breakpoint): Delete, split into ...
2148 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2150 (breakpoint_re_set_one): Call the breakpoint's
2151 breakpoint_ops->re_set implementation, if there's one. Adjust.
2152 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2153 (struct bp_location_ops): New type.
2154 (struct bp_location): New field `ops'.
2155 (struct breakpoint_ops): New `allocate_location', `re_set' and
2156 `check_status' fields. Make `breakpoint_hit''s description match
2158 (init_bp_location): Declare.
2159 (breakpoint_re_set_default): Declare.
2160 (create_ada_exception_breakpoint): Rename to ...
2161 (init_ada_exception_breakpoint): ... this. Add a struct
2162 breakpoint parameter, and delete the exp_string, cond_string and
2164 (install_breakpoint): Declare.
2165 * ada-lang.c: Include exceptions.h.
2166 <Ada exceptions description>: Update.
2167 (struct ada_catchpoint_location): New type.
2168 (ada_catchpoint_location_dtor): New function.
2169 (ada_catchpoint_location_ops): New global.
2170 (ada_catchpoint): New type.
2171 (create_excep_cond_exprs): New function.
2172 (dtor_exception, allocate_location_exception, re_set_exception)
2173 (should_stop_exception, check_status_exception): New functions.
2174 (print_one_exception, print_mention_exception)
2175 (print_recreate_exception): Adjust.
2176 (dtor_catch_exception, allocate_location_catch_exception)
2177 (re_set_catch_exception, check_status_catch_exception): New
2179 (catch_exception_breakpoint_ops): Install them.
2180 (dtor_catch_exception_unhandled)
2181 (allocate_location_catch_exception_unhandled)
2182 (re_set_catch_exception_unhandled)
2183 (check_status_catch_exception_unhandled): New functions.
2184 (catch_exception_unhandled_breakpoint_ops): Install them.
2185 (dtor_catch_assert, allocate_location_catch_assert)
2186 (re_set_catch_assert, check_status_catch_assert): New functions.
2187 (catch_assert_breakpoint_ops): Install them.
2188 (ada_exception_catchpoint_p): Delete.
2189 (catch_ada_exception_command_split)
2190 (ada_exception_catchpoint_cond_string): Rename exp_string
2191 parameter to excep_string. Adjust.
2192 (ada_parse_catchpoint_condition): Delete.
2193 (ada_exception_sal): Rename the exp_string parameter to
2194 excep_string. Delete the cond_string and cond parameters.
2196 (ada_decode_exception_location): Rename the exp_string parameter
2197 to excep_string. Delete the cond_string and cond parameters.
2199 (create_ada_exception_catchpoint): New function.
2200 (catch_ada_exception_command, ada_decode_assert_location)
2201 (catch_assert_command): Adjust.
2202 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2204 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2206 * ada-lang.c: Include arch-utils.h.
2207 (ada_decode_exception_location): Make static.
2208 (catch_ada_exception_command): Moved here from breakpoint.c.
2209 (ada_decode_assert_location): Make static.
2210 (catch_assert_command): Moved here from breakpoint.c.
2211 (_initialize_ada_lang): Install the exception and assert
2212 catchpoint commands here.
2213 * ada-lang.h (ada_decode_exception_location)
2214 (ada_decode_assert_location): Delete declarations.
2215 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2217 (create_ada_exception_breakpoint): Make extern.
2218 (catch_ada_exception_command, catch_assert_command): Moved to
2220 (add_catch_command): Make extern.
2221 (_initilize_breakpoint): Don't install the exception and assert
2222 catchpoint commands here.
2223 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2225 (add_catch_command, create_ada_exception_breakpoint): Declare.
2227 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2229 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2230 the breakpoint to the breakpoint chain here.
2231 (set_raw_breakpoint_without_location): Add the breakpoint to the
2232 breakpoint chain here.
2233 (init_raw_breakpoint): Adjust comments.
2234 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2236 (init_catchpoint): Don't set the catchpoint's breakpoint number
2238 (install_catchpoint): New function.
2239 (create_fork_vfork_event_catchpoint)
2240 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2241 use install_catchpoint.
2243 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2245 * breakpoint.c (create_catchpoint_without_mention)
2246 (create_catchpoint): Delete.
2248 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2250 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2251 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2252 reference to exec_pathname.
2253 (struct exec_catchpoint): New type.
2254 (dtor_catch_exec): New function.
2255 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2256 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2257 (catch_exec_command_1): Adjust to use init_catchpoint.
2258 (delete_breakpoint): Remove reference to exec_pathname.
2260 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2262 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2263 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2264 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2265 reference to syscalls_to_be_caught.
2266 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2268 (struct syscall_catchpoint): New type.
2269 (dtor_catch_syscall): New function.
2270 (insert_catch_syscall, remove_catch_syscall)
2271 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2272 (print_recreate_catch_syscall): Adjust.
2273 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2274 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2275 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2276 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2277 (masked_watchpoint_breakpoint_ops)
2278 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2279 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2280 there is one. Remove references to syscalls_to_be_caught.
2281 (catching_syscall_number): Adjust.
2282 * ada-lang.c (catch_exception_breakpoint_ops)
2283 (catch_exception_unhandled_breakpoint_ops)
2284 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2286 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2288 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2290 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2291 reference to forked_inferior_pid.
2292 (struct fork_catchpoint): New type.
2293 (breakpoint_hit_catch_fork, print_it_catch_fork)
2294 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2295 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2296 (create_fork_vfork_event_catchpoint): Adjust to use
2299 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2301 * breakpoint.c (add_to_breakpoint_chain)
2302 (init_raw_breakpoint_without_location): New functions, factored
2304 (set_raw_breakpoint_without_location): ... this one.
2305 (init_raw_breakpoint): New function, factored out from
2306 set_raw_breakpoint and adjusted to use
2307 init_raw_breakpoint_without_location.
2308 (set_raw_breakpoint): Adjust.
2309 (init_catchpoint): New function, factored out from
2310 create_catchpoint_without_mention and adjusted to use
2311 init_raw_breakpoint.
2312 (create_catchpoint_without_mention): Adjust.
2314 2011-06-22 Tom Tromey <tromey@redhat.com>
2316 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2317 argument of 0 specially.
2319 2011-06-22 Yao Qi <yao@codesourcery.com>
2321 * infrun.c (handle_inferior_event): Remove write-only local variable
2322 `sw_single_step_trap_p'.
2324 2011-06-20 Tom Tromey <tromey@redhat.com>
2326 * symtab.c (lookup_language_this): End loop if block is NULL.
2328 2011-06-17 Tom Tromey <tromey@redhat.com>
2330 * valops.c (value_of_this): Use lookup_language_this.
2331 * symtab.h (lookup_language_this): Declare.
2332 * symtab.c (lookup_language_this): New function.
2333 (lookup_symbol_aux): Use lookup_language_this.
2334 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2336 2011-06-17 Tom Tromey <tromey@redhat.com>
2338 * value.h (value_of_this): Update.
2339 (value_of_local): Remove.
2340 * valops.c (value_of_this): Rename from value_of_local. Change
2342 * p-exp.y (exp): Update.
2343 (variable): Likewise.
2344 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2346 2011-06-17 Tom Tromey <tromey@redhat.com>
2348 * valops.c (value_of_local): Complain if NAME is NULL.
2349 * std-operator.def (OP_OBJC_SELF): Remove.
2350 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2351 * objc-exp.y (name_not_typename): Use OP_THIS.
2352 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2354 <OP_OBJC_SELF>: Remove.
2355 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2357 2011-06-16 Tristan Gingold <gingold@adacore.com>
2359 * python/py-events.h (gdb_py_events): Make it extern.
2360 * python/py-evtregistry.c (gdb_py_events): Declare.
2362 2011-06-16 Hui Zhu <teawater@gmail.com>
2364 * remote.c (remote_trace_set_readonly_regions): Add check for
2365 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2368 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2370 * arm-linux-tdep.c: Include "auxv.h".
2372 (ARM_LINUX_SIZEOF_VFP): Define.
2373 (arm_linux_supply_vfp): New function.
2374 (arm_linux_collect_vfp): Likewise.
2375 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2376 (arm_linux_fpa_regset_sections): New variable.
2377 (arm_linux_vfp_regset_sections): Likewise.
2378 (arm_linux_core_read_description): New function.
2379 (arm_linux_init_abi): Install arm_linux_core_read_description and
2380 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2381 appropriate for the architecture.
2382 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2383 (tdesc_arm_with_m): Declare.
2384 (tdesc_arm_with_iwmmxt): Likewise.
2385 (tdesc_arm_with_vfpv2): Likewise.
2386 (tdesc_arm_with_vfpv3): Likewise.
2387 (tdesc_arm_with_neon): Likewise.
2388 * arm-linux-nat.c: Move features/*.c includes ...
2389 * arm-tdep.c: ... here.
2390 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2391 target description data structures ...
2392 * arm-tdep.c (_initialize_arm_tdep): ... here.
2393 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2394 HWCAP_VFPv3D16): Move definitions ...
2395 * arm-linux-tdep.h: ... here.
2397 2011-06-15 Hui Zhu <teawater@gmail.com>
2399 * remote.c (remote_trace_set_readonly_regions): Add a check for
2402 2011-06-14 Tom Tromey <tromey@redhat.com>
2404 * coffread.c (coffread_objfile): Rename from current_objfile.
2405 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2406 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2408 2011-06-14 Tom Tromey <tromey@redhat.com>
2410 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2411 (class_symtab): Remove.
2412 (jv_dynamics_progspace_key): New global.
2413 (jv_per_objfile_free): Reset program space data. Update assert.
2414 Don't clear globals.
2415 (get_dynamics_objfile): Use and set program space data.
2416 (get_java_class_symtab): Use get_dynamics_objfile.
2417 (add_class_symbol): Likewise.
2418 (java_link_class_type): Likewise.
2419 (java_object_type, jv_clear_object_type, set_java_object_type):
2421 (get_java_object_type): Update. Don't cache result.
2422 (is_object_type): Don't call set_java_object_type.
2423 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2424 initialize jv_dynamics_progspace_key.
2426 2011-06-14 Tom Tromey <tromey@redhat.com>
2428 * symtab.h (current_objfile): Don't declare.
2429 * objfiles.h (current_objfile): Don't declare.
2430 * objfiles.c (current_objfile): Remove.
2431 * mdebugread.c (current_objfile): New file-scope global.
2432 * dbxread.c (current_objfile): New file-scope global.
2433 * coffread.c (current_objfile): New file-scope global.
2435 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2437 * top.h (line): Rename to ...
2438 (saved_command_line): ... this.
2439 (linesize): Rename to ...
2440 (saved_command_line_size): ... this.
2441 * top.c (line): Rename to ...
2442 (saved_command_line): ... this.
2443 (linesize): Rename to ...
2444 (saved_command_line_size): ... this.
2445 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2446 * event-top.c (command_line_handler): Adjust.
2447 * main.c (captured_main): Adjust.
2449 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2451 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2452 get_frame_func instead of get_frame_pc to determine the code
2453 address used to construct the frame ID.
2454 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2455 (i386_epilogue_frame_this_id): Likewise.
2456 (i386_epilogue_frame_prev_register): New function.
2457 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2458 (i386_stack_tramp_frame_sniffer): Fix coding style.
2459 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2460 (i386_gdbarch_init): Fix comments.
2462 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2464 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2465 instruction when walking back through the instruction stream.
2467 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2469 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2470 fullname parameters order.
2472 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2475 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2477 * psymtab.c (map_symbol_filenames_psymtab)
2478 (map_partial_symbol_filenames): Likewise.
2479 * psymtab.h: Include symfile.h.
2480 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2481 * symfile.h (symbol_filename_ftype): New.
2482 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2483 map_symbol_filenames, clarify more the naming in comment.
2485 2011-06-07 Doug Evans <dje@google.com>
2487 * cc-with-index.sh: Fix typos in comment.
2488 Look for ../../gdb, for fullname.exp.
2490 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2491 Pedro Alves <pedro@codesourcery.com>
2493 * cli/cli-cmds.c (shell_escape): Use waitpid.
2494 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2496 2011-06-07 Tristan Gingold <gingold@adacore.com>
2498 * xcoffread.c (dwarf2_xcoff_names): New variable.
2499 (aix_process_linenos): Add a guard.
2500 (xcoff_symfile_finish): Free dwarf2.
2501 (xcoff_initial_scan): Add dwarf2 support.
2503 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2505 * infcall.c (run_inferior_call): Don't mask async. Instead force
2506 a synchronous wait, if the target can async.
2508 * target.h (struct target_ops): Delete to_async_mask.
2509 (target_async_mask): Delete.
2510 * target.c (update_current_target): Delete references to to_async_mask.
2511 * linux-nat.c (linux_nat_async_mask_value): Delete.
2512 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2513 to linux_nat_async_mask_value.
2514 (linux_nat_async_mask): Delete.
2515 (linux_nat_async, linux_nat_close): Remove references to
2516 linux_nat_async_mask_value.
2517 * record.c (record_async_mask_value): Delete.
2518 (record_async): Remove references to record_async_mask_value.
2519 (record_async_mask): Delete.
2520 (record_can_async_p, record_is_async_p): Remove references to
2521 record_async_mask_value.
2522 (init_record_ops, init_record_core_ops): Remove references to
2524 * remote.c (remote_async_mask_value): Delete.
2525 (init_remote_ops): Remove reference to remote_async_mask.
2526 (remote_can_async_p, remote_is_async_p): Remove references to
2527 remote_async_mask_value.
2528 (remote_async): Remove references to remote_async_mask_value.
2529 (remote_async_mask): Delete.
2531 * infrun.c (fetch_inferior_event): Don't claim registers changed
2532 if the current thread is already not executing.
2534 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2536 From Stephen Kitt <steve@sk2.org>
2537 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2538 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2540 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2542 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2543 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2545 2011-06-03 Tom Tromey <tromey@redhat.com>
2547 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2549 * python/py-exitedevent.c (create_exited_event_object): Change
2550 type of 'exit_code'. Optionally add exit_code attribute.
2551 (emit_exited_event): Change type of 'exit_code'.
2552 * python/py-event.h (emit_exited_event): Update.
2553 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2554 * infrun.c (handle_inferior_event): Set exit code fields on
2556 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2558 * inferior.c (exit_inferior_1): Initialize new fields.
2560 2011-06-03 Tom Tromey <tromey@redhat.com>
2562 * dwarf2expr.c (get_signed_type): New function.
2563 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2565 2011-06-02 Keith Seitz <keiths@redhat.com>
2567 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2569 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2571 * top.h (simplified_command_loop): Delete declaration.
2573 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2575 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2576 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2578 2011-06-01 Yao Qi <yao@codesourcery.com>
2580 * objfiles.h (obj_section_addr): Update reference to objfile from
2582 (obj_section_endaddr): Likewise.
2584 2011-06-01 Daniel Jacobowitz <drow@false.org>
2586 * MAINTAINERS: Update my email address and affiliation. Also
2587 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2589 2010-05-31 Keith Seitz <keiths@redhat.com>
2592 * linespec.c (get_search_block): New function.
2593 (find_methods): Add FILE_SYMTATB parameter and use it and
2594 get_search_block to pass an appropriate block to
2595 lookup_symbol_in_namespace.
2596 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2597 Check if *ARGPTR starts with a filename first.
2598 If it does, call locate_first_half again to locate the next
2599 "first half" of the linespec.
2600 Pass FILE_SYMTATB to decode_objc and decode_compound.
2601 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2602 (locate_first_half): Stop on the first colon seen.
2603 (decode_compound): Add FILE_SYMTAB parameter.
2604 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2605 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2606 get_search_block with lookup_symbol.
2607 (find_method): Add FILE_SYMTAB parameter and pass it to
2609 (decode_objc): Use get_search_block.
2611 2010-05-31 Keith Seitz <keiths@redhat.com>
2614 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2615 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2616 and CP_ANONYMOUS_NAMESPACE_LEN.
2617 (cp_is_anonymous): Likewise.
2618 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2619 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2620 * dwarf2read.c (namespace_name): Likewise.
2621 (fixup_partial_die): Likewise.
2622 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2623 seen in the input, keep it.
2625 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2627 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2628 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2629 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2630 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2631 * remote.c (_initialize_remote): Register
2632 async_remote_interrupt_twice directly as
2633 sigint_remote_twice_token event.
2635 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2637 * target.h (enum inferior_event_type): Delete INF_ERROR.
2638 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2640 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2642 * interps.c (interp_set): Don't cancel continuations.
2644 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2646 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2648 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2650 * continuations.h (continuation_ftype): Add `err' parameter.
2651 Document parameters.
2652 (do_all_continuations, do_all_continuations_thread)
2653 (do_all_intermediate_continuations)
2654 (do_all_intermediate_continuations_thread)
2655 (do_all_inferior_continuations): Add `err' parameter.
2656 * continuations.c (do_my_continuations_1, do_my_continuations)
2657 (do_all_inferior_continuations, do_all_continuations_ptid)
2658 (do_all_continuations_thread_callback)
2659 (do_all_continuations_thread, do_all_continuations)
2660 (do_all_intermediate_continuations_thread_callback)
2661 (do_all_intermediate_continuations_thread)
2662 (do_all_intermediate_continuations): Add `err' parameter, and pass
2663 it down all the way to the continuations proper.
2664 * inf-loop.c (inferior_event_handler): If fetching an inferior
2665 event throws an error, don't pop the target, and still call the
2666 continuations, but with `err' set. Adjust all other continuation
2668 * breakpoint.c (until_break_command_continuation): Add `err'
2670 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2671 issue another step if `err' is set.
2672 (struct until_next_continuation_args): New.
2673 (until_next_continuation): Add `err' parameter. Adjust.
2674 (until_next_command): Adjust.
2675 (struct finish_command_continuation_args): Add `thread' field.
2676 (finish_command_continuation): Add `err' parameter. Handle it.
2677 (finish_forward): Adjust.
2678 (attach_command_continuation): Add `err' parameter. Handle it.
2679 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2680 cancel the continuations.
2681 * interps.c (interp_set): Adjust to cancel the continuations.
2682 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2683 continuations rather than discarding.
2684 (free_thread): Don't clear thread inferior resources here.
2685 (delete_thread_1): Do it here instead. And do it before removing
2686 the thread from the threads list. Tag the thread as exited before
2687 clearing thread inferior resources.
2689 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2691 * infcall.c (call_function_by_hand): Rephrase error message.
2693 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2695 * defs.h (struct thread_info, struct inferior): Delete forward
2697 * breakpoint.h (struct thread_info): New forward declaration.
2698 * observer.sh (struct inferior): New forward declaration.
2699 * python/python-internal.h (struct inferior): New forward
2702 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2704 * defs.h (struct continuation, continuation_ftype)
2705 (continuation_free_arg_ftype, add_continuation)
2706 (do_all_continuations, do_all_continuations_thread)
2707 (discard_all_continuations, discard_all_continuations_thread)
2708 (add_intermediate_continuation, do_all_intermediate_continuations)
2709 (do_all_intermediate_continuations_thread)
2710 (discard_all_intermediate_continuations)
2711 (discard_all_intermediate_continuations_thread)
2712 (add_inferior_continuation, do_all_inferior_continuations)
2713 (discard_all_inferior_continuations): Move to ...
2714 * continuations.h: ... this new file.
2715 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2716 infcmd.c, inferior.c, infrun.c, interps.c: Include
2719 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2720 Doug Evans <dje@google.com>
2722 Fix PR 10970, PR 12702.
2723 * linux-nat.c (linux_lwp_is_zombie): New function.
2724 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2725 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2727 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2729 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2731 (add_continuation, add_intermediate_continuation)
2732 (add_inferior_continuation): Use them.
2733 * continuations.c (struct continuation): Use them.
2734 (make_continuation_ftype): Delete.
2735 (make_continuation, add_inferior_continuation, add_continuation)
2736 (add_intermediate_continuation): Use continuation_ftype and
2737 continuation_free_arg_ftype. Rename parameters to shorter names.
2739 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2741 * continuations.c (make_continuation): Make it return void.
2742 (do_my_continuations): Rename to ...
2743 (do_my_continuations_1): ... this. Remove old_chain parameter and
2745 (do_my_continuations): New.
2746 (discard_my_continuations): Rename to ...
2747 (discard_my_continuations_1): ... this. Remove old_chain
2748 parameter and adjust.
2749 (discard_my_continuations): New.
2750 (add_inferior_continuation): Simplify.
2751 (do_all_inferior_continuations): Reimplement on top
2752 do_my_continuations.
2753 (discard_all_inferior_continuations): Simplify.
2754 (add_continuation): Simplify.
2755 (do_all_continuations_ptid): Simplify.
2756 (discard_all_continuations_thread_callback): Simplify.
2757 (add_intermediate_continuation): Simplify.
2758 (discard_all_intermediate_continuations_thread_callback):
2761 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2763 * utils.c (struct continuation, add_continuation)
2764 (add_inferior_continuation)
2765 (do_all_inferior_continuations, discard_all_inferior_continuations)
2766 (restore_thread_cleanup, do_all_continuations_ptid)
2767 (do_all_continuations_thread_callback)
2768 (do_all_continuations_thread, do_all_continuations)
2769 (discard_all_continuations_thread_callback)
2770 (discard_all_continuations_thread, discard_all_continuations)
2771 (add_intermediate_continuation)
2772 (do_all_intermediate_continuations_thread_callback)
2773 (do_all_intermediate_continuations_thread)
2774 (do_all_intermediate_continuations)
2775 (discard_all_intermediate_continuations_thread_callback)
2776 (discard_all_intermediate_continuations_thread)
2777 (discard_all_intermediate_continuations): Move to ...
2778 * continuations.c: ... this new file, and adjust to no longer
2779 implement continuations on top of cleanups.
2780 * Makefile.in (SFILES): Add continuations.c.
2781 (COMMON_OBS): Add continuations.o.
2783 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2785 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2786 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2787 Internal error on invalid values.
2788 * reverse.c: Don't handle EXEC_ERROR.
2789 * mi/mi-main.c: Don't handle EXEC_ERROR.
2791 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2793 * record.c: Include event-loop.h, inf-loop.h.
2794 (record_beneath_to_async): New global.
2795 (tmp_to_async): New global.
2796 (record_async_inferior_event_token): New global.
2797 (record_open_1): Don't error out if async is enabled.
2798 (record_open): Handle to_async. Create an async event source in
2800 (record_close): Delete the async event source.
2801 (record_resumed): New global.
2802 (record_execution_dir): New global.
2803 (record_resume, record_core_resume): Set them. Register the
2804 target on the event loop.
2805 (record_wait): Rename to ...
2806 (record_wait_1): ... this. Add more debug output. Handle
2807 TARGET_WNOHANG, and the target beneath returning
2808 TARGET_WAITKIND_IGNORE.
2809 (record_wait): Reimplement on top of record_wait_1.
2810 (record_async_mask_value): New global.
2811 (record_async, record_async_mask, record_can_async_p)
2812 (record_is_async_p, record_execution_direction): New functions.
2813 (init_record_ops, init_record_core_ops): Install new methods.
2814 * infrun.c (fetch_inferior_event): Temporarily switch the global
2815 execution direction to the direction the target was going.
2816 (execution_direction): Change type to int.
2817 * target.c (default_execution_direction): New function.
2818 (update_current_target): Inherit and de_fault
2819 to_execution_direction.
2820 * target.h (struct target_ops) <to_execution_direction>: New
2822 (target_execution_direction): New macro.
2823 * inferior.h (execution_direction): Change type to int.
2825 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2827 * infcall.c (call_function_by_hand): Don't allow calling functions
2828 in reverse execution mode.
2830 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2832 * infcmd.c (finish_command): Allow async finish in reverse.
2834 2011-05-26 Yao Qi <yao@codesourcery.com>
2836 * gdb_thread_db.h: Delete. Move to ...
2837 * common/gdb_thread_db.h: ... here.
2839 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2841 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2842 function's entry point instead of a manually managed momentary
2843 breakpoint, and only ever issue one proceed call.
2844 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2845 doing a reverse-finish, switch to stepi mode, to do another step.
2846 (insert_step_resume_breakpoint_at_sal): Make public.
2847 (normal_stop): No need to save function value return registers if
2849 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2851 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2853 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2854 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2855 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2857 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2858 step-resume breakpoints.
2859 (print_it_typical): Handle bp_hp_step_resume.
2860 (bpstat_what): Ditto.
2861 (bptype_string): Ditto.
2862 (print_one_breakpoint_location): Ditto.
2863 (allocate_bp_location): Ditto.
2865 (breakpoint_re_set_one): Ditto.
2866 * infrun.c (handle_inferior_event): Adjust. Split
2867 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2868 BPSTAT_WHAT_HP_STEP_RESUME.
2869 (insert_step_resume_breakpoint_at_sal): Rename to ...
2870 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2871 parameter. Handle it.
2872 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2873 insert_step_resume_breakpoint_at_sal_1.
2874 (insert_step_resume_breakpoint_at_frame): Rename to ...
2875 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2876 set a high-priority step-resume breakpoint.
2877 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2878 (insert_step_resume_breakpoint_at_caller): Ditto.
2880 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2882 * breakpoint.c (iterate_over_related_breakpoints): New.
2883 (do_map_delete_breakpoint): New.
2884 (delete_command): Pass do_map_delete_breakpoint to
2885 map_breakpoint_numbers.
2886 (do_disable_breakpoint): New.
2887 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2889 (do_enable_breakpoint): Rename to ...
2890 (enable_breakpoint_disp): ... this.
2891 (enable_breakpoint): Adjust.
2892 (do_enable_breakpoint): New.
2893 (enable_once_breakpoint): Delete.
2894 (do_map_enable_breakpoint): New.
2895 (do_map_enable_once_breakpoint): New.
2896 (enable_once_command, enable_delete_command)
2897 (delete_trace_command): Iterate over the breakpoint's related
2900 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2902 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2903 for ALPHA_ZERO_REGNUM.
2904 (alpha_supply_int_regs): Explicitly supply zero as the value for
2905 ALPHA_ZERO_REGNUM in the register cache.
2906 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2908 2011-05-26 Yao Qi <yao@codesourcery.com>
2910 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2912 2011-05-26 Tristan Gingold <gingold@adacore.com>
2914 * symfile.h (struct dwarf2_section_names): New type.
2915 (struct dwarf2_debug_sections): New type.
2916 (dwarf2_has_info): Add parameter.
2917 * dwarf2read.c (dwarf2_elf_names): New variable.
2918 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2919 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2920 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2921 (dwarf2_has_info): Add names parameter. Pass names
2922 to dwarf2_locate_sections.
2923 (section_is_p): Rewrite using the names parameter.
2924 (dwarf2_locate_sections): Use section names from the names parameter.
2925 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2926 * elfread.c (read_psyms): Ditto.
2927 * machoread.c (macho_symfile_read): Ditto.
2929 2011-05-25 Andreas Schwab <schwab@redhat.com>
2932 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2934 2011-05-24 Keith Seitz <keiths@redhat.com>
2937 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2938 (decode_compound): Unconditionally call keep_name_info.
2940 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2942 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2943 scope, clear its command list.
2944 (map_breakpoint_numbers): Don't walk the related breakpoints list
2947 2011-05-24 Tom Tromey <tromey@redhat.com>
2949 * MAINTAINERS: Move Jim Blandy to past maintainers.
2951 2011-05-24 Tristan Gingold <gingold@adacore.com>
2953 * symfile.h (enum dwarf2_section_enum): New type.
2954 (dwarf2_get_section_info): New prototype.
2955 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2956 section_name by sect. Use a switch to select the info.
2957 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2958 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2960 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2962 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2963 shared library event breakpoint if there's no execution.
2965 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2967 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2968 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2970 2011-05-23 Tom Tromey <tromey@redhat.com>
2972 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2975 2011-05-23 Doug Evans <dje@google.com>
2977 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2978 entry for RuntimeError to doc string.
2980 2011-05-23 Jerome Guitton <guitton@adacore.com>
2982 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2983 sequence for probing loops.
2985 2011-05-23 Pedro Alves <pedro@codesourcery.com>
2987 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2990 2011-05-21 Mark Kettenis <kettenis@gnu.org>
2992 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2993 zero as the value for %g0 in the register cache.
2994 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2995 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2997 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2999 * infrun.c (proceed): Set previous_inferior_ptid here.
3000 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3001 inferior_ptid, not null_ptid.
3002 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3003 (fetch_inferior_event): Nor here.
3005 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3007 * inf-loop.c (inferior_event_handler): Only output a message if
3010 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3012 * MAINTAINERS: Update my e-mail address.
3014 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3016 * infrun.c (proceed): Switch the inferior event loop to
3017 INF_EXEC_COMPLETE if the target refused to resume from a
3020 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3022 * infcmd.c: Include "inf-loop.h".
3023 (step_once): When stepping into an inline subroutine, pretend the
3024 target has run. If the target can async, switch the inferior
3025 event loop to INF_EXEC_COMPLETE.
3026 * inferior.h (user_visible_resume_ptid): Declare.
3027 * infrun.c (user_visible_resume_ptid): New function, factored out
3030 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3031 that the current thread is running. Merge async and sync
3034 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3036 * infcmd.c (step_1): Simplify synchronous case.
3038 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3040 * tracepoint.c: Include exceptions.h.
3041 (TFILE_PID): Move higher in file.
3042 (tfile_open): Delay pushing the tfile target until we're assured
3043 the tfile header is present in the file. Wrap reading the initial
3044 newline-terminated lines in TRY_CATCH. Pop the target if the
3045 initial setup failed. Add the tfile's thread immediately
3046 aftwards, before any non-essential setup. Don't skip
3047 post_create_inferior if there are no traceframes present in the
3049 (tfile_close): Remove redundant check for null before xfree call.
3050 (tfile_thread_alive): New function.
3051 (init_tfile_ops): Register it as to_thread_alive callback.
3053 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3055 * tracepoint.c (tfile_open): Delete #if 0'd code.
3057 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3059 Fix -readnow for -gdwarf-4 unused type units.
3060 * dwarf2read.c (struct signatured_type): Remove the field offset.
3061 (create_signatured_type_table_from_index): Remove its initialization.
3062 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3063 instead. Add a complaint call.
3064 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3065 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3066 (lookup_signatured_type_at_offset, read_signatured_type)
3067 (write_one_signatured_type): Update the field for per_cu.
3069 2011-05-19 Tom Tromey <tromey@redhat.com>
3071 * python/py-inferior.c (python_inferior_exit): Use
3073 (python_on_resume): Likewise.
3075 2011-05-19 Matt Rice <ratmice@gmail.com>
3077 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3079 2011-05-19 Hui Zhu <teawater@gmail.com>
3081 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3083 2011-05-19 Hui Zhu <teawater@gmail.com>
3085 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3087 2011-05-18 Tom Tromey <tromey@redhat.com>
3089 * dwarf2read.c (dwarf2_add_field): Constify.
3090 * value.c (value_static_field): Constify.
3091 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3093 * ax-gdb.c (gen_static_field): Constify
3095 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3097 * linux-nat.c (kill_callback): Use SIGKILL first.
3099 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3101 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3103 2011-05-18 Tom Tromey <tromey@redhat.com>
3105 * value.c (value_fn_field): Constify.
3106 * symtab.c (gdb_mangle_name): Constify.
3107 * stabsread.c (update_method_name_from_physname): Make 'physname'
3109 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3110 const. Use explicit fputc_filtered loop.
3111 (pascal_type_print_base): Constify.
3112 * p-lang.h (pascal_type_print_method_args): Update.
3113 * linespec.c (add_matching_methods): Constify.
3114 (add_constructors): Likewise.
3115 * jv-typeprint.c (java_type_print_base): Constify.
3116 * gdbtypes.h (struct cplus_struct_type)
3117 <fn_fieldlist.fn_field.physname>: Now const.
3118 * dwarf2read.c (compute_delayed_physnames): Constify.
3119 (dwarf2_add_member_fn): Likewise.
3120 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3122 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3124 * infrun.c (resume): Mention which is the current thread, and its
3125 current PC in debug output.
3126 (prepare_to_proceed): Mention the thread switching in debug
3129 2011-05-18 Tom Tromey <tromey@redhat.com>
3131 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3132 path check. Use xmalloc and cleanups.
3133 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3135 2011-05-17 Tom Tromey <tromey@redhat.com>
3137 * cp-valprint.c (cp_print_value_fields): Catch errors from
3140 2011-05-17 Tom Tromey <tromey@redhat.com>
3142 * dwarf2read.c (dwarf2_get_die_type): Call
3143 get_die_type_at_offset.
3144 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3145 get_base_type function.
3147 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3149 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3152 2011-05-16 Doug Evans <dje@google.com>
3154 * python/py-auto-load.c (source_section_scripts): Mention objfile
3157 2011-05-15 Doug Evans <dje@google.com>
3159 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3160 (try_thread_db_load_from_pdir): Call it. If unable to find
3161 libthread_db in directory of libpthread, see if we're looking at
3162 the separate-debug-info copy.
3164 * python/py-autoload.c (print_script): Print "Missing" instead of
3165 "No" for missing scripts.
3166 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3168 2011-05-13 Doug Evans <dje@google.com>
3170 * ui-file.c (stdio_file_write_async_safe): Add comment.
3172 2011-05-14 Hui Zhu <teawater@gmail.com>
3174 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3176 2011-05-13 Doug Evans <dje@google.com>
3178 Support $pdir and $sdir in libthread-db-search-path.
3179 * NEWS: Mention $sdir,$pdir.
3180 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3181 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3182 (try_thread_db_load_from_sdir): New function.
3183 (try_thread_db_load_from_dir): New function.
3184 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3185 system directories if search of libthread-db-search-path fails,
3186 that is now done via $sdir.
3187 (has_libpthread): New function.
3188 (thread_db_load): Remove search for libthread_db in directory of
3189 libpthread, that is now done via $pdir.
3191 * NEWS: Mention "info auto-load-scripts".
3192 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3193 script_not_found_warning_printed.
3194 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3195 all callers updated. Initialize script_not_found_warning_printed.
3196 (get_auto_load_pspace_data_for_loading): New function.
3197 (maybe_add_script): New function.
3198 (source_section_scripts): Simplify. Only print one warning regardless
3199 of the number of auto-load scripts not found.
3200 (clear_section_scripts): Clear script_not_found_warning_printed.
3201 (auto_load_objfile_script): Record script in hash table.
3202 (count_matching_scripts): New function.
3203 (maybe_print_script): Renamed from maybe_print_section_script, all
3204 callers updated. Rewrite to use ui_out_*.
3205 (info_auto_load_scripts): Renamed from
3206 maintenance_print_section_scripts, all callers updated.
3207 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3208 renamed as "info auto-load-scripts".
3210 2011-05-13 Tom Tromey <tromey@redhat.com>
3212 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3213 (read_sleb128): Likewise.
3215 2011-05-13 Tom Tromey <tromey@redhat.com>
3217 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3220 2011-05-13 Doug Evans <dje@google.com>
3222 * linux-nat.c (debug_linux_nat_async): Delete.
3223 Replace all references to use debug_linux_nat instead.
3224 (show_debug_linux_nat_async): Delete.
3225 (sigchld_handler): Call ui_file_write_async_safe instead of
3227 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3228 * ui-file.c (struct ui_file): New member to_write_async_safe.
3229 (null_file_write_async_safe): New function.
3230 (ui_file_write_async_safe): New function.
3231 (set_ui_file_write_async_safe): New function.
3232 (ui_file_new): Initialize to_write_async_safe.
3233 (stdio_file_write_async_safe): New function.
3234 (struct stdio_file): New member fd.
3235 (stdio_file_new): Initialize to_write_async_safe, fd.
3236 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3238 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3239 (set_ui_file_write_async_safe): Declare.
3240 (ui_file_write_async_safe): Declare.
3242 2011-05-13 Tom Tromey <tromey@redhat.com>
3244 * utils.c (do_value_free): New function.
3245 (make_cleanup_value_free): Likewise.
3246 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3248 (dwarf2_loc_desc_needs_frame): Call
3249 make_cleanup_value_free_to_mark.
3250 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3251 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3253 (new_dwarf_expr_context): Don't call value_mark.
3254 * dwarf2-frame.c (execute_stack_op): Call
3255 make_cleanup_value_free_to_mark.
3256 * defs.h (make_cleanup_value_free): Declare.
3258 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3260 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3261 prepare_execute_command.
3262 * top.c (prepare_execute_command): Return cleanup.
3263 (execute_command): Use cleanup from prepare_execute_command.
3264 * top.h (prepare_execute_command): Change prototype to return
3266 * defs.h (struct value): Add opaque declaration.
3267 (make_cleanup_value_free_to_mark): Add prototype.
3268 * utils.c (do_value_free_to_mark): New function.
3269 (make_cleanup_value_free_to_mark): Likewise.
3271 2011-05-12 Tom Tromey <tromey@redhat.com>
3273 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3274 cast left-hand-side to unsigned.
3276 2011-05-12 Tom Tromey <tromey@redhat.com>
3279 * value.h (value_from_contents): Declare.
3280 * value.c (value_from_contents): New function.
3281 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3282 (dwarf2_get_die_type): New function.
3283 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3284 (allocate_piece_closure): Acquire reference to values.
3285 (read_pieced_value): Update for value-based expressions.
3286 (write_pieced_value): Likewise.
3287 (free_pieced_value_closure): Call value_free as needed.
3288 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3289 Update for value-based expressions.
3290 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3291 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3292 <get_base_type>: New field.
3293 (struct dwarf_expr_piece) <v.value>: Change type.
3294 <v.regno>: New field.
3295 (struct dwarf_expr_context) <mark>: New field.
3296 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3297 (dwarf_expr_pop, dwarf_expr_push): Remove.
3298 (dwarf_expr_push_address): Declare.
3299 * dwarf2expr.c (dwarf_arch_cookie): New global.
3300 (struct dwarf_gdbarch_types): New.
3301 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3303 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3305 (dwarf_expr_push_address): New function.
3306 (dwarf_expr_pop): Now static.
3307 (dwarf_expr_fetch): Change return type.
3308 (dwarf_require_integral): New function.
3309 (dwarf_expr_fetch): Simplify.
3310 (add_piece): Update.
3311 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3313 (execute_stack_op) <sign_ext>: Remove.
3314 Use values for DWARF stack.
3315 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3316 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3318 (_initialize_dwarf2expr): New function.
3319 (add_piece): Update.
3320 (new_dwarf_expr_context): Set new field.
3321 (free_dwarf_expr_context): Call value_free_to_mark.
3322 * dwarf2-frame.c (no_base_type): New function.
3323 (execute_stack_op): Set get_base_type field. Update.
3325 2011-05-12 Tom Tromey <tromey@redhat.com>
3327 * dwarf2read.c (read_common_block): Fix formatting.
3329 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3331 * breakpoint.c (disable_breakpoint): Disable all locations
3332 associated with a tracepoint on target if a trace experiment is
3334 (disable_command): Disable a specific tracepoint location on target if
3335 a trace experiment is running.
3336 (do_enable_breakpoint): Enable all locations associated with a
3337 tracepoint on target if a trace experiment is running.
3338 (enable_command) Enable a specific tracepoint location on target if a
3339 trace experiment is running.
3340 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3341 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3342 to_disable_tracepoint.
3343 * target.h: Add declaration of struct bp_location.
3344 (struct target_ops): Add new functions
3345 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3346 to_disable_tracepoint to target operations.
3347 (target_supports_enable_disable_tracepoint): New macro.
3348 (target_enable_tracepoint): New macro.
3349 (target_disable_tracepoint): New macro.
3350 * remote.c (struct remote_state): Add new field.
3351 (remote_enable_disable_tracepoint_feature): New.
3352 (remote_protocol_features): Add new entry.
3353 (remote_supports_enable_disable_tracepoint): New.
3354 (remote_enable_tracepoint): New.
3355 (remote_disable_tracepoint): New.
3356 (init_remote_ops): Add remote_enable_tracepoint,
3357 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3358 to remote operations.
3359 * tracepoint.c (start_tracing): Allow tracing to start without any
3360 tracepoints enabled with just a warning if they can be re-enabled
3362 * NEWS: Add news item for the new behaviour of the enable and disable
3363 GDB commands when applied to tracepoints.
3364 Add news items for the new remote packets QTEnable and QTDisable.
3366 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3368 * config.in: Regenerate.
3369 * configure: Regenerate.
3370 * configure.ac <--with-system-readline> (for readline_echoing_p):
3372 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3373 (tui_old_rl_echoing_p): ... here.
3374 (tui_setup_io): Rename extern declaration readline_echoing_p to
3375 _rl_echoing_p. Adjust assignments for the both renames.
3377 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3379 * symtab.c (lookup_symtab): Run cleanup before returning.
3381 2011-05-11 Tom Tromey <tromey@redhat.com>
3383 * dwarf2read.c (handle_data_member_location): New function.
3384 (dwarf2_add_field): Use it.
3385 (read_common_block): Likewise.
3387 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3389 Make addrs->SECTINDEX always defined.
3390 * symfile.c (relative_addr_info_to_section_offsets): Check for
3391 SECTINDEX -1, not for zero ADDR.
3392 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3393 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3394 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3397 2011-05-10 Doug Evans <dje@google.com>
3399 * linux-thread-db.c: Whitespace cleanup.
3400 (try_thread_db_load_1): Fix comment.
3402 * linux-thread-db.c (set_libthread_db_search_path): New function.
3403 (_initialize_thread_db): Add setter for libthread-db-search-path.
3405 2011-05-09 Doug Evans <dje@google.com>
3407 * NEWS: Mention --with-iconv-bin.
3408 * configure.ac: New option --with-iconv-bin.
3409 * configure: Regenerate.
3410 * config.in: Regenerate.
3411 * defs.h (relocate_gdb_directory): Declare.
3412 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3413 removed progname parameter, and exported. All callers updated.
3414 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3416 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3417 adding missing call to restore_child_signals_mask.
3419 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3421 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3423 * infrun.c (proceed, start_remote): Adjust.
3424 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3425 and adjust to not handle it.
3426 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3427 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3428 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3429 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3430 * windows-nat.c (do_initial_windows_stuff): Adjust.
3431 * infcmd.c (attach_command): Adjust.
3432 (notice_new_inferior): Adjust.
3434 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3436 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3437 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3438 * spu-tdep.c (op_selb): Use correct value.
3440 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3442 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3443 "parent" parameter to symbol_file_add_from_bfd call.
3445 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3446 Thiago Jung Bauermann <bauerman@br.ibm.com>
3448 Implement support for PowerPC BookE masked watchpoints.
3449 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3451 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3452 method. Initialize to NULL in all existing breakpoint_ops instances.
3453 (struct breakpoint) <hw_wp_mask>: New field.
3454 * breakpoint.c (is_masked_watchpoint): Add prototype.
3455 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3456 breakpoint's breakpoint_ops.works_in_software_mode if available.
3457 (watchpoints_triggered): Handle the case of a hardware masked
3459 (watchpoint_check): Likewise.
3460 (works_in_software_mode_watchpoint): New function.
3461 (insert_masked_watchpoint, remove_masked_watchpoint)
3462 (resources_needed_masked_watchpoint)
3463 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3464 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3465 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3467 (masked_watchpoint_breakpoint_ops): New structure.
3468 (watch_command_1): Check for the existence of the `mask' parameter.
3469 Set b->ops according to the type of hardware watchpoint being created.
3470 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3471 (ppc_linux_remove_mask_watchpoint)
3472 (ppc_linux_masked_watch_num_registers): New functions.
3473 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3474 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3475 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3476 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3477 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3478 (target_masked_watch_num_registers): New functions.
3479 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3480 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3482 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3483 (target_masked_watch_num_registers): Add prototypes.
3485 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3488 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3489 (producer_is_gcc_ge_4_0): New function.
3490 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3491 symtab->language code.
3492 (var_decode_location): Set cu->has_loclist.
3493 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3494 skip. Intialize force_skip from locations_valid. Move the prologue
3495 skipping code into two passes.
3496 * symtab.h (struct symtab): Make the primary field a bitfield. New
3497 field locations_valid.
3499 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3501 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3502 (classify_inner_name): Call cp_lookup_nested_type with
3504 * cp-namespace.c (cp_lookup_nested_type): New variable
3505 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3506 type_name_no_tag_or_error with saved_parent_type.
3507 * dwarf2read.c (load_partial_dies): Read in any children of
3508 DW_TAG_typedef with complaint in such case.
3509 * gdbtypes.c (type_name_no_tag_or_error): New function.
3510 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3511 * valops.c (destructor_name_p): New comment for parameter type. Remove
3512 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3513 * value.h (destructor_name_p): Remove type const.
3515 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3517 * symtab.c (compare_symbol_name): New function.
3518 (completion_list_add_name, expand_partial_symbol_name): Call it,
3519 remove the variable ncmp.
3520 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3523 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3525 Demote to sw watchpoint only in update_watchpoint.
3526 * breakpoint.c (update_watchpoint): Change between software and
3527 hardware watchpoint for all kinds of watchpoints, not just
3528 read/write ones. Determine b->exact value here instead of
3529 in watch_command_1. Error out if there are not enough resources
3530 for a read or access hardware watchpoint.
3531 (watch_command_1): Remove logic of checking whether there are
3532 enough resources available, since update_watchpoint will do that
3533 work now. Don't set b->exact here. Catch exceptions thrown by
3534 update_watchpoint and delete the watchpoint.
3535 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3536 Use target_exact_watchpoints instead.
3537 (delete_breakpoint): Notify observers only if deleted watchpoint
3538 has a breakpoint number assigned to it.
3540 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3542 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3544 2011-05-05 Jerome Guitton <guitton@adacore.com>
3546 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3548 (i386_stack_tramp_frame_unwind): New static global.
3549 (i386_match_pattern): New function, extracted from i386_match_insn.
3550 (i386_match_insn): Use i386_match_pattern.
3551 (i386_match_insn_block): New function.
3552 (i386_tramp_chain_in_reg_insns)
3553 (i386_tramp_chain_on_stack_insns): New static variables.
3554 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3557 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3559 * configure.host (xscale*): Don't handle target.
3560 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3563 2011-05-04 Yao Qi <yao@codesourcery.com>
3565 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3567 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3570 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3571 | * elfread.c (elf_symtab_read): Stop memory leak.
3573 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3575 * nto-tdep.c (nto_target): Replace deprecated call to
3576 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3578 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3580 Fix false GCC warning.
3581 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3583 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3585 * breakpoint.c (update_watchpoint): Move code to change
3586 the enable state of breakpoint from here ...
3587 (do_enable_breakpoint): ... to here.
3589 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3591 * valprint.c (val_print_array_elements): Fixed poor performance
3592 of printing very large arrays with repeat_count_threshold set
3593 to unlimited. New comment.
3595 2011-04-29 Tom Tromey <tromey@redhat.com>
3597 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3598 (mi_parse): Likewise.
3599 * breakpoint.c (break_range_command): Use sizeof char*, not
3601 (create_breakpoint): Likewise.
3602 (parse_breakpoint_sals): Likewise.
3604 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3606 * linux-nat.c (linux_child_remove_fork_catchpoint)
3607 (linux_child_remove_vfork_catchpoint)
3608 (linux_child_remove_exec_catchpoint): New functions.
3609 (linux_target_install_ops): Install them.
3611 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3615 * varobj.c (install_default_visualizer): Do not install a
3616 visualizer if the varobj is CPLUS_FAKE_CHILD.
3617 (construct_visualizer): Likewise.
3619 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3621 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3622 case insensitive comparison.
3624 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3626 * infrun.c (proceed): Revert previous change.
3627 (resume): Instead, handle the case of signal delivery while stepping
3628 off a breakpoint location here, and only if software single-stepping
3629 is used. Handle nested signals.
3631 2011-04-28 Yao Qi <yao@codesourcery.com>
3633 * arm-tdep.c (copy_unmodified): Rename to ...
3634 (arm_copy_unmodified): .. this. New.
3635 (copy_preload): Move common part to ...
3636 (install_preload): .. this. New.
3637 (arm_copy_preload): New.
3638 (copy_preload_reg): Move common part to ...
3639 (install_preload_reg): ... this. New.
3640 (arm_copy_preload_reg): New.
3641 (copy_b_bl_blx): Move common part to ...
3642 (install_b_bl_blx): .. this. New.
3643 (arm_copy_b_bl_blx): New.
3644 (copy_bx_blx_reg): Move common part to ...
3645 (install_bx_blx_reg): ... this. New.
3646 (arm_copy_bx_blx_reg): New.
3647 (copy_alu_reg): Move common part to ...
3648 (install_alu_reg): ... this. New.
3649 (arm_copy_alu_reg): New.
3650 (copy_alu_shifted_reg): Move common part to ...
3651 (install_alu_shifted_reg): ... this. New.
3652 (copy_ldr_str_ldrb_strb): Move common part to ...
3653 (install_ldr_str_ldrb_strb): ... this. New.
3654 (arm_copy_ldr_str_ldrb_strb): New.
3655 (copy_copro_load_store): Move some common part to ...
3656 (install_copy_copro_load_store): ... this. New.
3657 (arm_copy_copro_load_store): New.
3659 (arm_copy_svc): Renamed from copy_svc.
3660 (copy_undef): Delete.
3661 (arm_copy_undef): Renamed from copy_undef.
3662 (decode_ext_reg_ld_st): Delete.
3663 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3664 (decode_svc_copro): Delete.
3665 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3666 (copy_copro_load_store, copy_alu_imm): update callers.
3667 (copy_extra_ld_st, copy_block_xfer): Likewise.
3668 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3669 (decode_miscellaneous, decode_dp_misc): Likewise.
3670 (decode_ld_st_word_ubyte, decode_media): Likewise.
3671 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3672 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3673 (decode_unconditional, decode_miscellaneous): Likewise.
3674 (decode_media, decode_b_bl_ldmstm): Likewise.
3675 (arm_process_displaced_insn): Likewise..
3676 (decode_misc_memhint_neon): Delete.
3677 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3678 (decode_miscellaneous): Delete.
3679 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3680 (decode_dp_misc): Delete.
3681 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3682 (decode_ld_st_word_ubyte): Delete.
3683 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3684 (decode_media): Delete.
3685 (arm_decode_media): Renamed from decode_media.
3686 (decode_b_bl_ldmstm): Delete.
3687 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3688 (decode_ext_reg_ld_st): Delete.
3689 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3690 (decode_unconditional): Delete.
3691 (arm_decode_unconditional): Renamed from decode_unconditional.
3693 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3695 Case insensitive lookups implementation.
3696 * dwarf2read.c: Include ctype.h.
3697 (struct mapped_index): New field version.
3698 (mapped_index_string_hash): New parameter index_version. New comment
3699 for it. Call tolower appropriately.
3700 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3701 Choose the right index version for mapped_index_string_hash.
3702 (dwarf2_read_index): Support also the index version 5. Initialize the
3703 new struct mapped_index field version.
3704 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3705 (find_slot): Explain the version needs. Pass INT_MAX for the new
3707 (write_psymtabs_to_index): Produce version 5.
3708 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3709 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3710 * psymtab.c (lookup_partial_symbol): Find the
3711 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3713 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3715 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3716 (completion_list_add_name): New variable ncmp, initialize it, use it.
3717 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3718 * utils.c (strcmp_iw): Support case_sensitive_off.
3719 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3720 New function comment part. New variables saved_string1,
3721 saved_string2 and case_pass. Add a proper second pass.
3723 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3725 Replace re_comp/re_exec by regcomp/regexec.
3726 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3727 (search_symbols_name_matches): Use them, use regexec.
3728 (search_symbols): New variable retval_chain, adjust the use of
3729 old_chain against it. Replace re_comp by regcomp. Use the new struct
3730 search_symbols_data fields, use regexec instead of re_exec.
3732 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3734 Format the code for the next patch.
3735 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3736 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3737 New variables c1 and c2.
3739 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3741 * infrun.c (proceed): Do not single-step into signal delivery
3742 when stepping off a breakpoint location.
3743 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3744 (insert_step_resume_breakpoint_at_caller): Likewise.
3745 (insert_step_resume_breakpoint_at_sal): Likewise.
3746 (insert_longjmp_resume_breakpoint): Likewise.
3748 2011-04-27 Yao Qi <yao@codesourcery.com>
3750 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3752 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3754 * procfs.c (procfs_pass_signals): Fix advance declaration.
3756 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3758 * target.h (struct target_ops): Remove to_notice_signals;
3759 add to_pass_signals.
3760 (target_notice_signals): Remove.
3761 (target_pass_signals): Add prototype.
3762 * target.c (update_current_target): Remove to_notice_signals;
3763 mention to_pass_signals.
3764 (target_pass_signals): New function.
3765 (debug_to_notice_signals): Remove.
3766 (setup_target_debug): Do not install debug_to_notice_signals.
3768 * infrun.c (signal_pass): New global.
3769 (resume): Call target_pass_signals.
3770 (handle_inferior_event): Report all signals while stepping over
3771 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3772 are re-inserted when stepping over a signal handler.
3773 (signal_cache_update): New function.
3774 (signal_stop_update): Call it.
3775 (signal_print_update): Likewise.
3776 (signal_pass_update): Likewise.
3777 (handle_command): Call signal_cache_update and target_pass_signals
3778 instead of target_notice_signals.
3779 (_initialize_infrun): Initialize signal_pass.
3781 * linux-nat.c (pass_mask): New global.
3782 (linux_nat_pass_signals): New function.
3783 (linux_nat_create_inferior): Report all signals initially.
3784 (linux_nat_attach): Likewise.
3785 (linux_nat_resume): Use pass_mask to decide whether to directly
3786 handle an inferior signal.
3787 (linux_nat_wait_1): Likewise.
3788 (linux_nat_add_target): Install to_pass_signals callback.
3790 * nto-procfs.c (notice_signals): Remove.
3791 (procfs_resume): Do not call notice_signals.
3792 (procfs_notice_signals): Remove.
3793 (procfs_pass_signals): New function.
3794 (init_procfs_ops): Install to_pass_signals callback instead of
3795 to_notice_signals callback.
3796 (_initialize_procfs): Report all signals initially.
3798 * procfs.c (procfs_notice_signals): Remove.
3799 (procfs_pass_signals): New function.
3800 (procfs_target): Install to_pass_signals callback instead of
3801 to_notice_signals callback.
3802 (register_gdb_signals): Remove.
3803 (procfs_debug_inferior): Report all signals initially.
3804 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3806 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3807 parameters; use them instead of calling signal_..._state routines.
3808 (remote_notice_signals): Remove.
3809 (remote_start_remote): Report all signals initially.
3810 (remote_resume): Do not call remote_pass_signals.
3811 (_initialize_remote): Install to_pass_signals callback instead of
3812 to_notice_signals callback.
3814 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3816 * breakpoint.c (user_settable_breakpoint): Delete.
3817 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3818 (delete_command): Check user_breakpoint_p instead of looking at
3819 the breakpoint's type.
3820 (disable_command): Ditto.
3821 (enable_command): Ditto.
3822 (delete_trace_command): Use user_breakpoint_p instead of looking
3823 at the breakpoint number directly. When checking if there are
3824 user visible tracepoints, in order to know whether to ask the user
3825 for confirmation, check whether the breakpoint is actually a
3828 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3830 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3833 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3835 MI breakpoint notifications.
3837 * annotate.c (breakpoint_changed): Adjust parameter type.
3838 * breakpoint.c (set_breakpoint_condition): Adjust to change
3839 in breakpoint_modified type.
3840 (breakpoint_set_commands): Likewise.
3841 (do_map_commands_command): Likewise.
3842 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3843 changed after bumping hit count.
3844 (bpstat_stop_status): Likewise.
3845 (print_one_breakpoint_location): Don't wrap in tuple here.
3846 (print_one_breakpoint): Always print individual locations.
3847 For locations, use unnamed tuple.
3848 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3850 (create_catchpoint, create_syscall_event_catchpoint): Call
3851 breakpoint_created obsever.
3852 (mention): Don't call breakpoint_created observer.
3853 (create_breakpoint_sal): Call breakpoint_created observer.
3854 (create_breakpoint, watch_command_1): Likewise.
3855 (create_ada_exception_breakpoint): Likewise.
3856 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3857 (locations_are_equal): New.
3858 (update_breakpoint_locations): If locations were changed, notify.
3859 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3860 Call breakpoint_modified observer.
3862 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3863 (mi_cmd_break_insert): Don't set observers for modify and delete.
3864 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3865 (mi_breakpoint_created, mi_breakpoint_deleted)
3866 (mi_breakpoint_modified): New.
3867 (mi_interpreter_init): Hook the above.
3868 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3869 while -break-* commands are executing.
3870 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3871 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3873 (mi_ui_out_impl): Hook in mi_redirect.
3874 (mi_field_skip): True to the name, skip the field, don't output
3875 a field with an empty value.
3877 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3878 (gdbpy_breakpoint_deleted): Adjust.
3879 * tui/tui-hooks.c (tui_event_create_breakpoint)
3880 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3882 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3884 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3885 (procfs_remove_hw_watchpoint): Likewise.
3887 2011-04-26 Michael Walle <michael@walle.cc>
3889 * remote.c (remote_start_remote): Ack packet after sending the
3892 2011-04-26 Yao Qi <yao@codesourcery.com>
3894 * linux-nat.c: Move common macros to ...
3895 Include linux-ptrace.h.
3896 * common/linux-ptrace.h: ... here. New.
3898 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3900 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3901 !objfile_has_partial_symbols. New comment.
3902 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3903 SYM_READ_PSYMBOLS is not present. Extend the comment.
3904 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3906 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3908 * defs.h (ENUM_BITFIELD): Remove.
3910 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3911 Eli Zaretskii <eliz@gnu.org>
3913 * NEWS: Document the new gdbserver --once option.
3915 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3917 * MAINTAINERS: Update my email address.
3919 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3921 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3922 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3923 function call if __STDC_ISO_10646__ macro is defined.
3924 (intermediate_encoding): New prototype.
3925 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3926 to generate compile time error for unsupported gdb_wchar_t size.
3927 (ENDIAN_SUFFIX): New macro.
3928 (intermediate_encoding): New function.
3930 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3932 * ada-lang.c (struct add_partial_datum): Update the comment for
3933 expand_partial_symbol_name.
3934 (ada_add_partial_symbol_completions): Rename to ...
3935 (ada_expand_partial_symbol_name): ... here, change return type, update
3936 function comment, call symbol_completion_match instead of
3937 symbol_completion_add.
3938 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3939 and ada_expand_partial_symbol_name.
3940 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3942 (dw2_map_symbol_names): Remove.
3943 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3944 * psymtab.c (map_symbol_names_psymtab): Remove.
3945 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3946 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3948 (psym_functions): Unlist map_symbol_names_psymtab.
3949 (map_partial_symbol_names): Rename to ...
3950 (expand_partial_symbol_names): ... here, change the FUN type, call
3951 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3952 * psymtab.h (map_partial_symbol_names): Rename to ...
3953 (expand_partial_symbol_names): ... here, change the FUN type.
3954 * symfile.h (struct quick_symbol_functions): Update the description of
3955 expand_symtabs_matching. Remove map_symbol_names.
3956 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3957 (struct add_name_data): Update the comment for
3958 expand_partial_symbol_name.
3959 (add_partial_symbol_name): Rename to ...
3960 (expand_partial_symbol_name): ... here. Replace
3961 completion_list_add_name call by strncmp.
3962 (default_make_symbol_completion_list_break_on): Use now
3963 expand_partial_symbol_names and expand_partial_symbol_name.
3964 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3966 2011-04-20 Tom Tromey <tromey@redhat.com>
3968 * dwarf2read.c (save_gdb_index_command): Replace format
3969 documentation with a pointer to the manual.
3971 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3973 * regcache.c: Include remote.h.
3974 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3975 (regcache_dump): Handle regcache_dump_remote.
3976 (maintenance_print_remote_registers): New function.
3977 (_initialize_regcache): Install "maint print remote-registers"
3979 * remote.c (map_regcache_remote_table): New function, factored out
3981 (init_remote_state): ... here.
3982 (remote_register_number_and_offset): New.
3983 * remote.h (remote_register_number_and_offset): Declare.
3985 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3987 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3988 null_ptid, assume and allow a NULL address space, instead of
3989 asking the target for the ptid's address space.
3990 * infrun.c (ptid_is_pid): Remove assertion.
3992 2011-04-19 Tom Tromey <tromey@redhat.com>
3994 * windows-tdep.c (windows_xfer_shared_library):
3995 * windows-nat.c (get_module_name, windows_make_so):
3996 * v850-tdep.c (v850_handle_pushm):
3997 * utils.c (null_cleanup, gdb_realpath):
3998 * ui-out.c (get_next_header):
3999 * tracepoint.c (clear_traceframe_info):
4000 * symtab.c (lookup_symtab):
4001 * serial.h (struct serial_ops):
4002 * mipsread.c (read_alphacoff_dynamic_symtab):
4003 * infcmd.c (print_return_value):
4004 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4005 * f-exp.y (parse_number):
4006 * exceptions.c (catch_exceptions):
4007 * dummy-frame.c (dummy_frame_this_id):
4008 * defs.h (struct cleanup):
4009 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4010 * arm-tdep.c (arm_push_dummy_call):
4011 * amd64-tdep.h (amd64_collect_xsave):
4012 * amd64-tdep.c (amd64_collect_xsave):
4013 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4014 * README (typing): Remove duplicate words.
4015 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4016 * infrun.c (siginfo_value_read): Fix typo.
4017 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4018 * top.c (source_line_number): Add comma.
4020 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4022 * thread.c (any_live_thread_of_process): Prioritize threads
4023 that are not executing.
4024 * gdbthread.h (any_live_thread_of_process): Update comment
4025 as per above change.
4027 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4029 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4030 (scan_xcoff_symtab): Likewise.
4032 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4034 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4037 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4038 Pedro Alves <pedro@codesourcery.com>
4040 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4041 variables to simplify code and avoid == operator at end of
4042 line as this is against GNU coding standards.
4044 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4046 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4047 lm_name to name_lm to avoid conflict with lm_name function.
4049 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4051 ARI fixes: Use only lowercase function name for static functions.
4052 * nto-tdep.c (LM_ADDR): Rename to...
4053 (lm_addr): New function name.
4054 (nto_relocate_section_addresses): Adapt to change above.
4055 * solib-sunos.c (LM_ADDR): Rename to...
4056 (lm_addr): New function name.
4057 (LM_NEXT): Rename to...
4058 (lm_next): New function name.
4059 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4060 function name changes above.
4061 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4062 (lm_addr_from_link_map): New function name.
4063 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4064 (has_lm_dynamic_from_link_map): New function name.
4065 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4066 (lm_dynamic_from_link_map): New function name.
4067 (LM_ADDR_CHECK): Rename to...
4068 (lm_addr_check): New function name.
4069 (LM_NEXT): Rename to...
4070 (lm_next): New function name.
4071 (LM_PREV): Rename to...
4072 (lm_prev): New function name.
4073 (LM_NAME): Rename to...
4074 (lm_name): New function name.
4075 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4076 (ignore_first_link_map_entry): New function name.
4077 (svr4_keep_data_in_core): Adapt to function name changes above.
4078 (svr4_current_sos): Likewise.
4079 (enable_break): Likewise.
4080 (svr4_relocate_section_addresses): Likewise.
4082 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4085 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4086 sprintf. Simplify code and avoid loosing memory.
4087 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4088 (call0_frame_cache): Remove && operator from end of line.
4090 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4092 Fix libraries displacement if they change whether they were prelinked.
4093 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4094 does not match. Comment why.
4096 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4098 * corelow.c: Include wrapper.h.
4099 (core_open): Call now gdb_target_find_new_threads.
4100 * wrapper.c: Include target.h.
4101 (gdb_target_find_new_threads): New.
4102 * wrapper.h (gdb_target_find_new_threads): New declaration.
4104 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4106 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4107 even if !TARGET_HAS_EXECUTION.
4109 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4111 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4112 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4113 bfd_get_synthetic_symtab.
4114 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4115 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4116 parameter parent, remove the call to add_separate_debug_objfile.
4117 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4118 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4119 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4120 parent, new comment for it, call add_separate_debug_objfile for it.
4121 (symbol_file_add_separate): Pass objfile as the parameter parent,
4122 remove the call to add_separate_debug_objfile.
4123 (symbol_file_add_from_bfd): New parameter parent, pass it.
4124 (symbol_file_add): Pass NULL to the new parameter parent.
4125 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4127 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4129 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4132 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4134 Fix Python access to inlined frames.
4135 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4136 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4138 2011-04-15 Tom Tromey <tromey@redhat.com>
4140 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4142 2011-04-15 Gary Benson <gbenson@redhat.com>
4144 * MAINTAINERS: Add myself to write-after-approval section.
4146 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4148 * remote-sim.c (sim_command_completer): New function.
4149 (_initialize_remote_sim): Set completer to sim_command_completer.
4151 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4153 * breakpoint.c (print_exception_catchpoint): Rename to ...
4154 (print_it_exception_catchpoint): ... this.
4155 (gnu_v3_exception_catchpoint_ops): Update with new name
4156 for print_it_exception_catchpoint.
4158 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4160 * MAINTAINERS: Add myself for write after approval privileges.
4162 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4164 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4166 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4168 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4170 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4172 * breakpoint.c (save_breakpoints): Verify whether
4173 breakpoint_ops.print_recreate is defined before calling it.
4175 2011-04-11 Gary Benson <gbenson@redhat.com>
4177 Fix failure with --enable-maintainer-mode.
4178 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4180 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4183 * symtab.c (search_symbols): Reorder the KIND description in the
4184 function comment. Remove the unused 4th element of types, types2,
4185 types3 and types4. New gdb_assert on KIND.
4186 (symtab_symbol_info): Remove the unused 4th element of classnames.
4187 New gdb_assert on KIND.
4188 * symtab.h (enum search_domain): New warning in the enum comment.
4189 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4192 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4194 Fix crash of gdb save-index on a STABS file.
4195 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4198 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4200 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4201 * dwarf2read.c: Include ctype.h.
4202 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4204 (dwarf2_add_field): Fix new_field->accessibility by calling
4205 dwarf2_default_access_attribute. Restructure setting accessibility
4207 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4208 is_private and is_protected by calling
4209 dwarf2_default_access_attribute.
4211 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4213 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4214 to the initialization.
4216 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4218 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4221 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4223 Remove support for old Cygwin 1.5 versions.
4224 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4225 function on old Cygwin version.
4226 * windows-nat.c: Remove cygwin version check and always define
4227 __USEWIDE for Cygwin compilation.
4229 2011-04-07 Yao Qi <yao@codesourcery.com>
4231 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4233 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4234 (arm_copy_svc): Remove parameters INSN and TO.
4235 (decode_svc_copro): Update caller.
4236 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4237 from function pointer `copy_svc_os'.
4239 2011-04-07 Yao Qi <yao@codesourcery.com>
4241 * arm-tdep.c (cleanup_branch): Set a correct return address in
4242 LR for ARM and Thumb.
4244 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4247 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4248 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4249 in the function comment, a new note on values compatibility.
4250 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4251 * symtab.h (SYMBOL_HASH_NEXT): New.
4253 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4255 * ppc-linux-nat.c (check_condition): Add len output parameter.
4256 Set it based on the memory region referenced in the condition
4257 expression. Update all callers.
4259 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4261 Fix crash regression on systems featuring .gdb_index.
4262 * objfiles.c (free_objfile): Move the
4263 forget_cached_source_info_for_objfile call earlier. Comment it.
4264 Extend the comment for objfile_free_data.
4266 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4268 Fix regression of displaying the debug format.
4269 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4272 2011-04-04 Tom Tromey <tromey@redhat.com>
4274 * cli/cli-interp.c (struct captured_execute_command_args):
4276 (do_captured_execute_command): Remove.
4277 (safe_execute_command): Use TRY_CATCH.
4278 * cli/cli-script.c (struct wrapped_read_command_file_args):
4280 (wrapped_read_command_file): Remove.
4281 (script_from_file): Use TRY_CATCH.
4282 * exceptions.c (catch_exception): Remove.
4283 * exceptions.h (catch_exception): Remove.
4284 (deprecated_throw_reason): Update comment.
4285 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4286 argument to 'context'.
4287 (mi_execute_command): Use TRY_CATCH.
4288 * remote.c (struct start_remote_args): Remove.
4289 (remote_start_remote): Update; change arguments.
4290 (remote_open_1): Use TRY_CATCH.
4292 2011-04-04 Tom Tromey <tromey@redhat.com>
4294 * tracepoint.c (scope_info): Update.
4295 * symtab.c (decode_line_spec): Update.
4296 * python/python.c (gdbpy_decode_line): Update.
4297 * linespec.h (decode_line_1): Update.
4298 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4299 (decode_compound, find_method, symtab_from_filename)
4300 (decode_variable): Likewise.
4301 * cli/cli-cmds.c (edit_command): Update.
4302 (list_command): Update.
4303 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4305 (create_breakpoint): Update.
4306 (until_break_command): Update.
4307 (addr_string_to_sals): Update.
4308 (decode_line_spec_1): Update.
4310 2011-04-04 Tom Tromey <tromey@redhat.com>
4312 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4313 (do_captured_parse_breakpoint): Remove.
4314 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4315 Use TRY_CATCH directly.
4317 2011-04-04 Tom Tromey <tromey@redhat.com>
4319 * symtab.h (free_symtab): Remove.
4320 (forget_cached_source_info_for_objfile): Declare.
4321 * symmisc.c (free_symtab): Remove.
4322 * source.c (forget_cached_source_info_for_objfile): New function.
4323 (forget_cached_source_info): Use it.
4324 * objfiles.c (free_objfile): Simplify check before calling
4325 clear_current_source_symtab_and_line. Call
4326 forget_cached_source_info_for_objfile.
4328 2011-04-04 Tom Tromey <tromey@redhat.com>
4330 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4331 (new_symtab): Don't set `free_code' on symtab.
4332 (new_linetable): Properly handle size==0.
4333 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4334 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4336 * jv-lang.c (struct jv_per_objfile_data): New.
4337 (jv_per_objfile_free): Free the data.
4338 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4339 (get_java_class_symtab): Set the `dict' field on the
4340 jv_per_objfile_data.
4341 (free_class_block): Remove.
4342 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4345 2011-04-04 Tom Tromey <tromey@redhat.com>
4347 * symfile.c (reread_symbols): Update.
4348 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4350 * objfiles.c (allocate_objfile): Update.
4351 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4353 * cp-namespace.c (lookup_symbol_file): Don't call
4354 lookup_possible_namespace_symbol.
4355 (initialize_namespace_symtab, get_possible_namespace_block)
4356 (free_namespace_block, cp_check_possible_namespace_symbols)
4357 (check_possible_namespace_symbols_loop)
4358 (check_one_possible_namespace_symbol)
4359 (lookup_possible_namespace_symbol): Remove.
4360 (maintenance_cplus_namespace): Replace with notice.
4361 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4363 2011-04-04 Tom Tromey <tromey@redhat.com>
4365 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4366 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4367 * symmisc.c (free_symtab): Don't free debugformat.
4368 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4369 (record_debugformat, record_producer): Document.
4370 * buildsym.c (end_symtab): Don't save debugformat and producer
4372 (end_symtab): Don't free debugformat and producer fields.
4373 (record_debugformat): Don't call xstrdup.
4374 (record_producer): Likewise.
4376 2011-04-04 Tom Tromey <tromey@redhat.com>
4378 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4379 (source_line_charpos, source_charpos_line): Remove.
4381 2011-04-04 Tom Tromey <tromey@redhat.com>
4383 * symtab.h (domain_enum): Split in two...
4384 (enum search_domain): New.
4385 (search_symbols): Update.
4386 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4387 redundant declarations.
4388 (search_symbols): Change 'kind' argument to search_domain.
4390 (print_symbol_info): Likewise.
4391 (symtab_symbol_info): Likewise.
4392 * symfile.h (struct quick_symbol_functions)
4393 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4394 <expand_symtabs_matching>: Likewise.
4395 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4396 (expand_symtabs_matching_via_partial): Update.
4397 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4398 (dw2_expand_symtabs_for_function): Update.
4399 * block.h: Moved anonymous enum...
4400 * defs.h (enum block_enum): ... here. Now named.
4402 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4404 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4405 * version.in: Bump version to 7.3.50.20110403-cvs.
4407 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4409 * NEWS: Create a new section for the next release branch.
4410 Rename the section of the current branch, now that it has
4413 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4415 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4416 for "fpscr" in target description.
4418 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4420 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4421 initialize it. Delay HASH initialization. Strip the part after open
4422 parenthesis for languages with qualifiers. Call do_cleanups.
4424 2011-04-01 Tom Tromey <tromey@redhat.com>
4426 * utils.c (report_command_stats): Don't print `-' for negative
4429 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4431 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4432 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4435 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4437 * breakpoint.h (bpdisp_text): Add declaration.
4438 * breakpoint.c (bpdisp_text): Make non-static.
4439 * ada-lang.c: #include "mi/mi-common.h".
4440 (print_it_exception): Rewrite to improve GDB/MI output.
4442 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4444 * arm-tdep.h (struct address_space): Add forward declaration.
4446 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4448 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4449 * arm-tdep.c (arm_override_mode): New global.
4450 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4451 execution mode heuristics.
4452 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4453 second single-step breakpoint if needed, using
4454 arm_insert_single_step_breakpoint.
4455 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4456 ARM execution mode, do not call thumb_get_next_pc_raw.
4457 (arm_get_next_pc): Encode execution mode in return value. Call
4458 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4459 (arm_insert_single_step_breakpoint): New function.
4460 (arm_software_single_step): Call it.
4461 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4462 argument to return execution mode of sigreturn target.
4463 (arm_linux_syscall_next_pc): Use it.
4464 (arm_linux_copy_svc): Update call.
4465 (arm_linux_software_single_step): Call
4466 arm_insert_single_step_breakpoint.
4468 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4470 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4473 2011-03-31 Tom Tromey <tromey@redhat.com>
4475 * varobj.c (update_dynamic_varobj_children): Properly handle
4476 errors from iterator.
4478 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4480 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4481 struct linkage name twice.
4483 2011-03-31 Tom Tromey <tromey@redhat.com>
4485 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4486 missing ">" to message.
4488 2011-03-31 Tom Tromey <tromey@redhat.com>
4490 * varobj.c (instantiate_pretty_printer): Remove duplicate
4493 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4495 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4496 if neither saved value nor register available (e.g. signal frame).
4498 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4500 * macroexp.c (expand): Avoid uninitialized variable
4503 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4505 * breakpoint.c (break_range_command): Fix typo in comment.
4507 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4508 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4510 Implement support for PowerPC BookE ranged breakpoints.
4511 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4512 * breakpoint.h (struct bp_target_info) <length>: New member
4514 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4515 instead of struct breakpoint as argument, and also add ASPACE
4516 and BP_ADDR arguments. Update all callers.
4517 (struct breakpoint_ops) <print_one_detail>: New method.
4518 (struct breakpoint) <addr_string_range_end>: New member variable.
4519 * breakpoint.c (breakpoint_location_address_match): Add function
4521 (insert_bp_location): Set bl->target_info.length.
4522 (breakpoint_here_p): Call breakpoint_location_address_match.
4523 (moribund_breakpoint_here_p): Likewise.
4524 (regular_breakpoint_inserted_here_p): Likewise.
4525 (breakpoint_thread_match): Likewise.
4526 (bpstat_stop_status): Likewise.
4527 (bpstat_check_location): Move call to
4528 breakpoint_ops.breakpoint_hit to the top.
4529 (print_one_breakpoint_location): Call
4530 breakpoint_ops.print_one_detail if available.
4531 (breakpoint_address_match_range): New function.
4532 (breakpoint_location_address_match): Likewise.
4533 (breakpoint_locations_match): Compare the length field of the
4535 (hw_breakpoint_used_count): Count resources used by all locations
4536 in a breakpoint, and use breakpoint_ops.resources_needed if
4538 (breakpoint_hit_ranged_breakpoint): New function.
4539 (resources_needed_ranged_breakpoint): Likewise.
4540 (print_it_ranged_breakpoint): Likewise.
4541 (print_one_ranged_breakpoint): Likewise.
4542 (print_one_detail_ranged_breakpoint): Likewise.
4543 (print_mention_ranged_breakpoint): Likewise.
4544 (print_recreate_ranged_breakpoint): Likewise.
4545 (ranged_breakpoint_ops): New structure.
4546 (find_breakpoint_range_end): New function.
4547 (break_range_command): Likewise.
4548 (delete_breakpoint): Free addr_string_range_end.
4549 (update_breakpoint_locations): Add SALS_END argument. Update
4550 all callers. Calculate breakpoint length if a non-zero SALS_END
4551 is given. Call breakpoint_locations_match instead of
4552 breakpoint_address_match.
4553 (reset_breakpoint): Find SaL of the end of the range if B is a
4555 (_initialize_breakpoint): Register break-range command.
4556 * defs.h (print_core_address): Add function prototype.
4557 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4559 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4560 (ppc_linux_remove_hw_breakpoint): Likewise.
4561 (_initialize_ppc_linux_nat): Initialize
4562 to_ranged_break_num_registers.
4563 * target.c (update_current_target): Add comment about
4564 to_ranged_break_num_registers.
4565 (target_ranged_break_num_registers): New function.
4566 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4568 (target_ranged_break_num_registers): Add function prototype.
4569 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4570 * utils.c (print_core_address): ... here.
4572 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4574 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4575 variable compiler warning.
4577 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4579 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4581 (re_set_breakpoint): ... to here ...
4582 (addr_string_to_sals): ... and here.
4584 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4586 * Makefile.in (SFILES): Add missing C sources.
4587 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4588 Add missing headers.
4590 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4592 * .gitignore: New file.
4594 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4596 * NEWS: Mention new cfi device simulation.
4598 2011-03-29 Tom Tromey <tromey@redhat.com>
4600 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4601 otherwise anonymous types.
4602 (dwarf2_name): Likewise.
4603 * valops.c (value_struct_elt_for_reference): Refine artificial
4604 type logic. Call error if j==-1.
4606 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4608 Fix false GCC warning.
4609 * infcall.c (find_function_addr): Initialize funaddr.
4611 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4613 Fix mingw compilation with --enable-targets=all.
4614 * remote-mips.c (gdb_usleep.h): Include header.
4615 (mips_enter_debug): Use gdb_usleep instead of sleep.
4617 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4619 Support resolution of STT_GNU_IFUNC via breakpoints.
4620 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4621 bp_gnu_ifunc_resolver_return.
4622 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4623 the loop. Support bp_gnu_ifunc_resolver and
4624 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4625 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4627 (bptype_string, print_one_breakpoint_location): Support
4628 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4629 (user_settable_breakpoint): Return true also for
4630 bp_gnu_ifunc_resolver.
4631 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4632 bp_gnu_ifunc_resolver_return.
4633 (set_breakpoint_location_function): New parameter explicit_loc,
4634 describe it. Call find_pc_partial_function_gnu_ifunc with new
4635 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4636 EXPLICIT_LOC is not set.
4637 (set_raw_breakpoint): Set EXPLICIT_LOC for
4638 set_breakpoint_location_function.
4639 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4640 set_breakpoint_location_function.
4641 (mention): Support bp_gnu_ifunc_resolver and
4642 bp_gnu_ifunc_resolver_return.
4643 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4644 set_breakpoint_location_function.
4645 (update_breakpoint_locations): Remove static.
4646 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4647 bp_gnu_ifunc_resolver_return.
4648 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4649 bp_gnu_ifunc_resolver_return.
4650 (update_breakpoint_locations): New declaration.
4651 * elfread.c: Include gdbthread.h and regcache.h.
4652 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4654 (elf_gnu_ifunc_fns): Install them.
4655 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4656 (stub_gnu_ifunc_resolver_return_stop): New functions.
4657 (stub_gnu_ifunc_fns): Install them.
4658 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4659 and gnu_ifunc_resolver_return_stop.
4660 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4662 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4664 STT_GNU_IFUNC reader implementation.
4665 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4666 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4667 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4668 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4669 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4670 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4671 (elf_gnu_ifunc_resolve_addr): New.
4672 (elf_symfile_read): Call elf_rel_plt_read.
4673 (elf_gnu_ifunc_fns): New.
4674 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4675 Install elf_gnu_ifunc_fns.
4676 * infcall.c (find_function_return_type): New function.
4677 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4678 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4679 (stub_gnu_ifunc_resolve_name): New functions.
4680 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4681 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4682 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4684 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4686 Code cleanup for later STT_GNU_IFUNC support.
4687 * infcall.c (find_function_addr): Remove variable code, use explicit
4688 dereferences for it. Move VALUE_TYPE initialization later.
4690 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4692 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4693 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4694 (clear_pc_function_cache): Clear it.
4695 (find_pc_partial_function): Rename to ...
4696 (find_pc_partial_function_gnu_ifunc): ... this function. New
4697 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4698 (find_pc_partial_function): New wrapper for this function.
4699 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4701 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4703 GDB internal type support for STT_GNU_IFUNC.
4704 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4705 (elf_symtab_read): Set mst_text_gnu_ifunc for
4706 BSF_GNU_INDIRECT_FUNCTION.
4707 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4708 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4709 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4710 nodebug_got_plt_symbol.
4711 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4712 (TYPE_GNU_IFUNC): New.
4713 (struct main_type): New field flag_gnu_ifunc.
4714 (struct builtin_type): New field builtin_func_func.
4715 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4716 nodebug_got_plt_symbol.
4717 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4718 (in_gnu_ifunc_stub): New.
4719 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4721 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4722 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4723 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4725 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4726 * symtab.c (search_symbols): Likewise.
4727 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4728 and mst_slot_got_plt.
4729 (in_gnu_ifunc_stub): New declaration.
4731 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4733 Support a ring of related breakpoints.
4734 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4735 other functions, add gdb_assert.
4736 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4737 watchpoint_del_at_next_stop.
4738 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4739 (bpstat_stop_status): Handle ring in related_breakpoint.
4740 (set_raw_breakpoint_without_location): Initialize ring in
4742 (delete_breakpoint): Handle ring in related_breakpoint, use
4743 watchpoint_del_at_next_stop.
4744 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4746 2011-03-28 Tom Tromey <tromey@redhat.com>
4749 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4750 with `language_minimal'.
4752 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4754 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4755 instead of checking for STT_ARM_TFUNC symbol type.
4757 2011-03-25 Tom Tromey <tromey@redhat.com>
4759 * linespec.c (symbol_found): Restore line-based result for
4760 non-LOC_LABEL symbols.
4762 2011-03-25 Kai Tietz <ktietz@redhat.com>
4764 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4765 instead of strcmp for comparison.
4766 (tui_source_is_displayed): Likewise.
4767 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4769 2011-03-24 Mark Wielaard <mjw@redhat.com>
4771 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4773 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4774 (find_partial_die_in_comp_unit): Likewise in comment.
4775 (read_attribute_value): Likewise.
4776 (lookup_die_type): Likewise.
4777 (dwarf_form_name): Likewise.
4778 (dump_die_shallow): Likewise.
4779 (follow_die_ref_or_sig): Likewise.
4781 2011-03-24 Tom Tromey <tromey@redhat.com>
4783 PR breakpoints/11816:
4784 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4785 (decode_compound): Update.
4786 (find_function_symbol): New function.
4787 (decode_dollar): Update.
4788 (decode_label): Add 'function_symbol' parameter. Handle
4789 function-relative labels.
4790 (decode_variable): Update.
4791 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4792 not its line. Set `special_display' and canonical name for
4795 2011-03-24 Tom Tromey <tromey@redhat.com>
4797 * linespec.h (struct linespec_result) <special_display>: New
4799 * breakpoint.h (struct breakpoint) <display_canonical>: New
4801 * breakpoint.c (print_breakpoint_location): Respect
4803 (create_breakpoint_sal): Add 'display_canonical' parameter.
4804 (create_breakpoints_sal): Update.
4805 (create_breakpoint): Update.
4807 2011-03-24 Tom Tromey <tromey@redhat.com>
4809 * symtab.c (decode_line_spec): Update.
4810 * linespec.c (build_canonical_line_spec): Change type of
4812 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4813 (find_method, decode_all_digits, decode_dollar, decode_label)
4814 (symbol_found): Likewise.
4815 (init_linespec_result): New function.
4816 * breakpoint.c (struct captured_parse_breakpoint_args)
4817 <canonical_p>: New field, replaces addr_string_p.
4818 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4820 (parse_breakpoint_sals): Likewise.
4821 (do_captured_parse_breakpoint): Update.
4822 (create_breakpoint): Use struct linespec_result.
4823 (until_break_command): Update.
4824 (breakpoint_re_set_one): Update.
4825 (decode_line_spec_1): Update.
4826 * linespec.h (struct linespec_result): New.
4827 (init_linespec_result): Declare.
4829 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4831 * regcache.c (regcache_raw_read): If the target didn't supply a
4832 given raw register, mark it as unavailable.
4834 2011-03-23 Kai Tietz <ktietz@redhat.com>
4836 * breakpoint.c (clear_command): Use filename_cmp
4837 instead of strcmp for comparison.
4838 * buildsym.c (watch_main_source_file_lossage): Likewise.
4839 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4840 checking just for slash.
4841 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4842 strrchr and filename_cmp instead of strcmp for filenames.
4843 (add_old_header_file): Use filename_cmp
4844 instead of strcmp for comparison.
4845 * exec.c (exec_set_section_address): Likewise.
4846 * macrotab.c (macro_lookup_inclusion): Likewise.
4847 (macro_lookup_inclusion): Likewise.
4848 * elfread.c (_initialize_elfread): Likewise.
4849 (elfstab_offset_sections): Likewise.
4850 (elfstab_offset_sections): Use lbasename instead of
4852 * mdebugread.c (parse_partial_symbols): Likewise.
4853 (arse_partial_symbols): Use filename_(n)cmp instead of
4854 str(n)cmp for comparison.
4855 * minsyms.c (lookup_minimal_symbol): Likewise.
4856 * psymtab.c (read_psymtabs_with_filename): Likewise.
4857 * solib.c (solib_read_symbols): Likewise.
4858 (reload_shared_libraries_1): Likewise.
4859 * symmisc.c (maintenance_print_symbols): Likewise.
4860 * symfile.c (separate_debug_file_exists): Likewise.
4861 (reread_symbols): Likewise.
4862 (find_separate_debug_file_by_debuglink): Likewise.
4863 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4864 * source.c (add_path): Likewise.
4865 * symtab.c (filename_seen): Likewise.
4866 (file_matches): Likewise.
4867 (print_symbol_info): Likewise.
4868 (maybe_add_partial_symtab_filename): Likewise.
4869 (make_source_files_completion_list): Likewise.
4870 * xml-syscall.c (init_sysinfo): Likewise.
4871 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4872 IS_DIR_SEPARATOR for checking for trailing path separator.
4874 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4876 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4877 label abort_expression.
4878 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4879 DWARF_VALUE_OPTIMIZED_OUT.
4881 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4884 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4885 to linkage_name. Invert its value. Update the function comment.
4886 (c_type_print_varspec_suffix): Invert it at the caller.
4887 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4889 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4891 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4892 errors when reading the `stop_pc'.
4893 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4896 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4898 * NEWS: Document gdb.Write stream keyword.
4900 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4903 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4904 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4905 (dwarf2_add_field): Fix new_field->accessibility for
4906 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4908 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4912 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4913 other error classes. Do not print stack trace.
4915 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4917 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4918 (dwarf2_add_field): Fix new_field->accessibility for
4919 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4921 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4923 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4924 encountering a load via a non-SP register.
4926 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4928 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4929 field in returned unwinder.
4931 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4933 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4935 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4937 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4940 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4942 * frame.c (frame_unwind_register): Throw an error if unwinding the
4944 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4945 an unwind stop reason.
4946 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4947 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4948 UNWIND_UNAVAILABLE>: New.
4949 * inline-frame.c (inline_frame_unwind): Install
4950 default_frame_unwind_stop_reason.
4951 * frame-unwind.c: Include "exceptions.h".
4952 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4953 (default_frame_unwind_stop_reason): New.
4954 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4955 (default_frame_unwind_stop_reason): Declare.
4956 (struct frame_unwind) <stop_reason>: New function pointer.
4958 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4959 * dwarf2-frame.c: Include exceptions.h.
4960 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4961 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4962 computing the CFA. If such an error was thrown, set
4963 unavailable_retaddr.
4964 (dwarf2_frame_unwind_stop_reason): New.
4965 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4967 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4968 (dwarf2_signal_frame_unwind): Ditto.
4970 * amd64-tdep.c: Include "exceptions.h".
4971 (struct amd64_frame_cache): New field "base_p".
4972 (amd64_init_frame_cache): Clear it.
4973 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4974 Avoid reading registers with functions that throw if the register
4975 is not necessary to compute the frame base.
4976 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4977 swallowing NOT_AVAILABLE_ERROR.
4978 (amd64_frame_unwind_stop_reason): New.
4979 (amd64_frame_this_id): Don't build a frame id if the frame base
4981 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4982 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4983 base_p if the frame base was computable.
4984 (amd64_sigtramp_frame_unwind_stop_reason): New.
4985 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4986 frame base was unavailable.
4987 (amd64_sigtramp_frame_unwind): Install
4988 amd64_sigtramp_frame_unwind_stop_reason.
4989 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4990 base_p if the frame base was computable.
4991 (amd64_epilogue_frame_unwind_stop_reason): New.
4992 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4993 frame base was unavailable.
4994 (amd64_epilogue_frame_unwind): Install
4995 amd64_epilogue_frame_unwind_stop_reason.
4996 * i386-tdep.c: Include "exceptions.h".
4997 (struct i386_frame_cache): New field "base_p".
4998 (i386_init_frame_cache): Clear it.
4999 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5000 Avoid reading registers with functions that throw if the register
5001 is not necessary to compute the frame base.
5002 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5003 swallowing NOT_AVAILABLE_ERROR.
5004 (i386_frame_unwind_stop_reason): New.
5005 (i386_frame_this_id): Don't build a frame id if the frame base was
5007 (i386_frame_prev_register): Handle unavailable SP.
5008 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5009 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5010 base_p if the frame base was computable.
5011 (i386_epilogue_frame_unwind_stop_reason): New.
5012 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5013 base was unavailable.
5014 (i386_epilogue_frame_unwind): Install
5015 i386_epilogue_frame_unwind_stop_reason.
5016 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5017 base_p if the frame base was computable.
5018 (i386_sigtramp_frame_unwind_stop_reason): New.
5019 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5020 base was unavailable.
5021 (i386_sigtramp_frame_unwind): Install
5022 i386_sigtramp_frame_unwind_stop_reason.
5023 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5024 type's size, not the register's.
5025 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5027 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5028 default_frame_unwind_stop_reason.
5029 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5030 (alpha_heuristic_frame_unwind): Ditto.
5031 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5032 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5033 * avr-tdep.c (avr_frame_unwind): Ditto.
5034 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5036 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5037 * frv-tdep.c (frv_frame_unwind): Ditto.
5038 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5039 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5040 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5041 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5042 (hppa_stub_frame_unwind): Ditto.
5043 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5044 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5045 (ia64_libunwind_frame_unwind)
5046 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5047 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5048 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5049 * m32c-tdep.c (m32c_unwind): Ditto.
5050 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5051 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5052 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5053 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5054 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5055 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5056 * mep-tdep.c (mep_frame_unwind): Ditto.
5057 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5058 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5059 (mips_stub_frame_unwind): Ditto.
5060 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5061 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5062 * mt-tdep.c (mt_frame_unwind): Ditto.
5063 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5064 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5065 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5066 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5067 (s390_sigtramp_frame_unwind): Ditto.
5068 * score-tdep.c (score_prologue_unwind): Ditto.
5069 * sh-tdep.c (sh_frame_unwind): Ditto.
5070 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5071 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5072 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5073 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5074 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5075 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5076 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5077 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5078 (sparc64obsd_trapframe_unwind): Ditto.
5079 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5080 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5081 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5082 * v850-tdep.c (v850_frame_unwind): Ditto.
5083 * vax-tdep.c (vax_frame_unwind): Ditto.
5084 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5085 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5086 * xtensa-tdep.c (xtensa_unwind): Ditto.
5088 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5090 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5091 there's always a frame. Use get_frame_pc_if_available instead of
5092 get_frame_pc, and if there's no PC available, don't look up a
5095 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5097 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5100 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5102 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5105 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5107 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5108 * frame.c (frame_unwind_caller_pc_if_available): New.
5109 * stack.c (frame_info): Handle unavailable PC.
5111 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5113 * frame.c (frame_unwind_pc): Rename to ...
5114 (frame_unwind_pc_if_available): ... this. New `pc' output
5115 parameter. Change return type to int. Gracefully handle
5116 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5117 happened, or 1 otherwise.
5118 (frame_unwind_pc): Reimplement on top of
5119 frame_unwind_pc_if_available.
5120 (get_frame_func): Rename to ...
5121 (get_frame_func_if_available): New `pc' output parameter. Change
5122 return type to int. Gracefully handle the PC not being available.
5123 (get_frame_func): Reimplement on top of
5124 get_frame_func_if_available.
5125 (select_frame): Handle the PC being unavailable.
5126 (get_prev_frame): Handle the PC being unavailable.
5127 (get_frame_pc_if_available): New.
5128 (get_frame_address_in_block_if_available): New.
5129 (find_frame_sal): Handle the frame PC not being available.
5130 * frame.h (get_frame_pc_if_available): Declare.
5131 (get_frame_address_in_block_if_available): Declare.
5132 (get_frame_func_if_available): Declare.
5133 * stack.c (print_frame_info): Handle the PC being unavailable.
5134 (find_frame_funname): Ditto.
5135 (print_frame): Handle the PC being unavailable.
5136 (get_frame_language): Ditto.
5137 * blockframe.c (get_frame_block): Ditto.
5138 * macroscope.c (default_macro_scope): Ditto.
5139 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5141 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5143 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5144 NOT_AVAILABLE_ERROR when evaluating the location expression.
5146 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5148 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5149 returning that the register piece is unavailable/optimized out.
5150 (write_pieced_value): Handle get_frame_register_bytes returning
5151 that the register piece is unavailable/optimized out when doing a
5152 read-modify write of a bitfield.
5153 * findvar.c (value_from_register): Handle get_frame_register_bytes
5154 returning that the register piece is unavailable/optimized out.
5155 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5156 and `unavailablep'. Throw error on bad debug info. Use
5157 frame_register instead of frame_register_read, to fill in the new
5159 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5161 * valops.c: (value_assign): Adjust, and handle
5162 get_frame_register_bytes failing.
5163 * spu-tdep.c: Include exceptions.h.
5164 (spu_software_single_step): Adjust, and handle
5165 get_frame_register_bytes failing.
5166 (spu_get_longjmp_target): Ditto.
5167 * gdbarch.sh (register_to_value): Change to return int. New
5168 parameters `optimizedp' and `unavailablep'.
5169 * gdbarch.h, gdbarch.c: Regenerate.
5170 * i386-tdep.c (i386_register_to_value): Adjust to new
5171 gdbarch_register_to_value interface.
5172 * i387-tdep.c (i387_register_to_value): Ditto.
5173 * i387-tdep.h (i387_register_to_value): Ditto.
5174 * alpha-tdep.c (alpha_register_to_value): Ditto.
5175 * ia64-tdep.c (ia64_register_to_value): Ditto.
5176 * m68k-tdep.c (m68k_register_to_value): Ditto.
5177 * mips-tdep.c (mips_register_to_value): Ditto.
5178 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5180 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5182 * findvar.c (value_of_register): Mark the value as unavailable, if
5183 the register is unavailable.
5184 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5185 (frame_register): New `unavailablep' parameter.
5186 (frame_register_read): Update comment.
5187 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5188 Set it if the register is unavailable. If the register is
5189 unavailable, clear the output buffer.
5190 (frame_register): New `unavailablep' parameter. Pass it down.
5191 (frame_unwind_register): Adjust.
5192 (put_frame_register): Adjust.
5193 (frame_register_read): Adjust. Also return false if the register
5195 (frame_register_unwind_location): Adjust.
5196 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5197 is unavailable, mark the value accordingly.
5198 * stack.c (frame_info): Handle unavailable registers.
5200 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5202 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5203 simplify, using regcache_cooked_read.
5205 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5207 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5208 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5209 (regcache_raw_read_unsigned, regcache_raw_read_part)
5210 (regcache_cooked_read, regcache_cooked_read_signed)
5211 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5212 (regcache_cooked_read_ftype): Change return to enum
5214 * regcache.c: Include exceptions.h
5215 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5216 (do_cooked_read): Change return to enum register_status. Always
5217 forward to regcache_cooked_read.
5218 (regcache_raw_read): Change return to enum register_status. If
5219 the register is not REG_VALID, memset the buffer. Return the
5221 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5222 return the register's status.
5223 (regcache_raw_read_unsigned): Ditto.
5224 (regcache_cooked_read): Change return to enum register_status.
5225 Assert that with read-only regcaches, the register's status must
5226 be known. If the regcache is read-only, and the register is not
5227 REG_VALID, memset the buffer. Return the register's status.
5228 (regcache_cooked_read_signed): Change return to enum
5229 register_status. Handle non-REG_VALID registers and return the
5231 (regcache_cooked_read_unsigned): Change return to enum
5232 register_status. Handle non-REG_VALID registers and return the
5234 (regcache_xfer_part, regcache_raw_read_part)
5235 (regcache_cooked_read_part): Change return to enum
5236 register_status. Return the register's status.
5237 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5239 (regcache_dump): Handle unavailable cooked registers.
5240 * frame.c (do_frame_register_read): Adjust interface to match
5241 regcache_cooked_read_ftype.
5242 * gdbarch.sh (pseudo_register_read): Change return to enum
5244 * gdbarch.h, gdbarch.c: Regenerate.
5246 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5248 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5249 register_status. If reading a raw register indicates the raw
5250 register is not valid, return the raw register's status,
5251 otherwise, return REG_VALID.
5252 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5253 register_status. Handle non-REG_VALID raw registers and return
5254 the register's status.
5255 * arm-tdep.c (arm_neon_quad_read)
5256 (arm_pseudo_read): Change return to enum register_status. Handle
5257 non-REG_VALID raw registers and return the register's status.
5258 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5259 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5260 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5261 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5262 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5264 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5265 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5266 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5267 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5268 (m32c_pseudo_register_read): Change return to enum
5269 register_status. Adjust.
5270 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5271 enum register_status. Return the register's status.
5272 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5273 register_status. Return the register's status.
5274 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5275 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5276 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5277 * rs6000-tdep.c (move_ev_register_func): New typedef.
5278 (e500_move_ev_register): Use it. Change return to enum
5279 register_status. Return the register's status.
5280 (do_regcache_raw_read): New function.
5281 (do_regcache_raw_write): New function.
5282 (e500_pseudo_register_read): Change return to enum
5283 register_status. Return the register's status. Use
5284 do_regcache_raw_read.
5285 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5286 (dfp_pseudo_register_read): Change return to enum register_status.
5287 Return the register's status.
5288 (vsx_pseudo_register_read): Ditto.
5289 (efpr_pseudo_register_read): Ditto.
5290 (rs6000_pseudo_register_read): Ditto.
5291 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5292 register_status. Return the register's status.
5293 * sh64-tdep.c (pseudo_register_read_portions): New function.
5294 (sh64_pseudo_register_read): Change return to enum
5295 register_status. Use pseudo_register_read_portions. Return the
5297 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5298 register_status. Return the register's status.
5299 * sh-tdep.c (pseudo_register_read_portions): New function.
5300 (sh_pseudo_register_read): Change return to enum register_status.
5301 Use pseudo_register_read_portions. Return the register's status.
5302 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5303 enum register_status. Return the register's status.
5304 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5305 * spu-tdep.c (spu_pseudo_register_read_spu)
5306 (spu_pseudo_register_read): Ditto.
5307 * xtensa-tdep.c (xtensa_register_read_masked)
5308 (xtensa_pseudo_register_read): Ditto.
5309 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5311 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5313 * python/py-value.c (valpy_getitem): Fix formatting of error function
5316 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5318 ARI fixes: Add missing internationalization markups throughout
5320 * darwin-nat-info.c: Ditto.
5323 * mi/mi-main.c: Ditto.
5325 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5327 ARI fixes: Add missing internationalization markups throughout
5330 * cp-name-parser.y: Ditto.
5333 * objc-exp.y: Ditto.
5336 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5338 ARI fixes: Messages should have no trailing new lines.
5339 * darwin-nat.c (mach_check_error): Remove trailing new line from
5340 warning function call message.
5341 * record.c (bfdcore_read): Idem for error call.
5343 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5345 * common/signals.c (target_signal_from_host): Add _ markup to error
5346 function call message.
5347 (target_signal_to_host): Add _ markup and remove trailing new line
5348 from warning call message.
5349 (target_signal_from_command): Add _ markup to error function call
5352 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5356 * python/python.c (gdbpy_write): Accept a stream argument and
5357 operate to the appropriate stream.
5358 (gdbpy_flush): Likewise.
5359 (_initialize_python): Add stream constants.
5360 (finish_python_initialization): Add GdbOutputErrorFile class.
5362 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5364 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5366 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5368 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5369 to store_signed_integer. Add debug message when relocating CALL
5370 instructions. Fix formatting of debug message.
5371 * i386-tdep.c (i386_relocate_instruction): Ditto.
5373 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5375 * target.h (struct target_ops): Remove to_lookup_symbol field.
5376 (target_lookup_symbol): Delete macro.
5377 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5378 (update_current_target, setup_target_debug): Remove handling
5379 of to_lookup_symbol target_ops field.
5380 * ada-tasks.c (get_known_tasks_addr): Remove use of
5381 target_lookup_symbol.
5382 * coffread.c (coff_symtab_read): Likewise.
5383 * dbxread.c (read_dbx_symtab): Ditto.
5385 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5388 * configure.ac: Add getthrds declaration check.
5389 * configure, config.in: Regenerate.
5390 * aix-thread.c (getthrds): Declare only if not already declared
5391 in procinfo.h. More declaration out of get_signaled_thread to
5394 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5396 * python/py-symtab.c: Populate symtab_object_methods,
5398 (stpy_is_valid): New function.
5399 (salpy_is_valid): Ditto.
5400 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5401 (sympy_is_valid): New function.
5402 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5403 (objfpy_is_valid): New function.
5404 * python/py-inferior.c: Populate inferior_object_methods.
5405 (infpy_is_valid): New function.
5406 * python/py-infthread.c: Populate thread_object_methods.
5407 (thpy_is_valid): New function.
5408 * python/py-block.c: Declare block_object_methods. Populate. Declare
5409 block_iterator_object_methods. Populate.
5410 (blpy_is_valid): New function.
5411 (blpy_iter_is_valid): Ditto.
5413 2011-03-16 Keith Seitz <keiths@redhat.com>
5415 * linespec.c (find_methods): Canonicalize NAME before looking
5417 (name_end): New function.
5418 (keep_name_info): New function.
5419 (decode_line_1): Use keep_name_info.
5420 (decode_compound): Likewise.
5421 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5422 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5425 * linespec.c (locate_first_half): Keep overload information, too.
5426 (decode_compound): Use a string to represent break characters
5428 If P points to a break character, do not increment it.
5429 For C++ and Java, keep overload information and relevant keywords.
5430 If we cannot find a symbol, search the minimal symbols.
5433 * linespec.c (decode_compound): Rename SAVED_ARG to
5435 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5437 Pass a valid block to lookup_symbol.
5438 (lookup_prefix_sym): Likewise.
5439 (find_method): Construct search name based on SYM_CLASS instead
5441 * psymtab.c (lookup_partial_symbol): Add language parameter.
5442 (lookup_symbol_aux_psymtabs): Likewise.
5443 Don't assume that the psymtab we found was the right one. Search
5444 for the desired symbol in the symtab to be certain.
5445 (psymtab_search_name): New function.
5446 (lookup_partial_symbol): Use psymtab_search_name.
5447 Add language parameter.
5448 (read_symtabs_for_function): Add language parameter and pass to
5449 lookup_partial_symbol.
5450 (find_symbol_file_from_partial): Likewise.
5452 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5455 * dwarf2read.c (noop_record_line): New function.
5456 (dwarf_decode_lines): Ignore line tables for GCd functions.
5458 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5460 Fix ARI warnings about new lines at the end of messages, which
5461 are unneeded as there is a new line added at the end of the message
5463 * darwin-nat.c (darwin_stop_inferior): Ditto.
5464 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5465 * dfp.c (decimal_to_number): Ditto.
5466 * exec.c (print_section_info): Ditto.
5467 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5468 * osdata.c (get_osdata): Ditto.
5469 * record.c (bfdcore_write): Ditto.
5470 * remote-mips.c (mips_readchar): Ditto.
5471 * remote.c (read_ptid): Ditto.
5472 * ser-mingw.c (ser_windows_raw): Ditto.
5473 * tracepoint.c (add_local_symbols): Ditto.
5474 * windows-nat.c (fake_create_process): Ditto.
5476 2011-03-16 Tom Tromey <tromey@redhat.com>
5478 * tracepoint.c (stop_tracing): Don't declare.
5479 * event-top.c (after_char_processing_hook): Add `(void)'.
5481 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5483 * NEWS: Add Parameter sub-classing description.
5485 2011-03-16 Kai Tietz <ktietz@redhat.com>
5487 * MAINTAINERS: Update my e-mail address.
5489 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5491 * MAINTAINERS: Add myself for write after approval privileges.
5493 2011-03-15 Michael Snyder <msnyder@vmware.com>
5495 * frame.c (find_frame_sal): Assert sym is not null.
5497 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5499 * objc-lang.c (selectors_info): Check strchr for null result.
5501 * stabsread.c (define_symbol): Guard against bad stabstring input.
5503 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5505 Remove trailing spaces and tabulations from pascal language
5510 p-valprint.c: Ditto.
5512 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5514 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5515 than LOW. Comment it.
5516 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5517 HIGHPC not strictly higher than LOWPC.
5519 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5521 Fix formatting of function declarations returning a pointer in
5523 * varobj.c (varobj_add_child): Ditto.
5524 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5525 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5527 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5529 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5530 for the "generic" vector ABI used with GCC 4.3 and later.
5531 (ppc64_sysv_abi_return_value): Likewise.
5533 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5535 * infcall.c (call_function_by_hand): Function return value is
5536 always a non_lval, even when using struct_return.
5538 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5540 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5541 (map_display_numbers): New.
5542 (do_delete_display): New.
5543 (undisplay_command): Use map_display_numbers.
5544 (do_enable_disable_display): New.
5545 (enable_disable_display_command): New function.
5546 (enable_display): Delete.
5547 (enable_display_command): New.
5548 (disable_display_command): Reimplement.
5549 (_initialize_printcmd): Adjust "enable display" command to use
5550 `enable_display_command' as callback.
5552 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5554 * NEWS: Add Python breakpoint 'stop' operation.
5556 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5558 * NEWS: Delete duplicate entry. Fix typo.
5560 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5562 Fix ARI warning about function names in first column.
5563 Put prototype declaration on same line as return type.
5564 * objc-exp.y: Ditto.
5566 * python/py-stopevent.h: Ditto.
5567 For long function names, split parameters to
5568 allow function name on same line as return type.
5569 * solib-pa64.c: Ditto.
5572 For long function declaration, use single line.
5573 * hppa-tdep.h: Ditto.
5574 * inferior.h: Ditto.
5576 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5578 * python/python.h: Declare gdbpy_should_stop and
5579 gdbpy_breakpoint_has_py_cond.
5580 * python/python.c: Add python.h to includes. Remove python.h from
5581 HAVE_PYTHON definition
5582 (gdbpy_should_stop): New dummy function.
5583 (gdbpy_breakpoint_has_py_cond): New dummy function.
5584 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5585 sub-classing capabilities.
5586 (gdbpy_should_stop): New function.
5587 (gdbpy_breakpoint_has_py_cond): New function.
5588 (local_setattro): New function.
5589 * breakpoint.c (condition_command): Add check for Python 'stop'
5591 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5592 operation function as part of stop/continue tests.
5594 2011-03-14 Tom Tromey <tromey@redhat.com>
5597 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5598 (needs_frame_dwarf_call): Likewise.
5600 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5602 Fix ARI warning about functions without parameters that do not
5604 * breakpoint.c (all_tracepoints): Replace () by (void).
5605 * f-exp.y (match_string_literal): Ditto.
5607 * m2-exp.y (yylex): Ditto.
5608 * mep-tdep.c (current_me_module): Ditto.
5609 (current_options): Ditto.
5610 (current_cop_data_bus_width): Ditto.
5611 (current_cr_names): Ditto.
5612 (current_cr_is_float): Ditto.
5613 (current_ccr_names): Ditto.
5614 * objc-exp.y (yylex): Ditto.
5615 * p-exp.y (yylex): Ditto.
5616 * remote.c (send_interrupt_sequence): Ditto.
5617 * tracepoint.c (current_trace_status): Ditto.
5618 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5619 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5621 2011-03-11 Michael Snyder <msnyder@vmware.com>
5623 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5624 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5625 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5626 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5627 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5629 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5630 (delete_async_event_handler): Ditto.
5632 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5634 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5636 * top.c (set_verbose): Assert showcmd was found.
5638 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5640 * xtensa-tdep.c (warning_once): Correct style issues.
5642 2011-03-11 Yao Qi <yao@codesourcery.com>
5644 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5646 2011-03-11 Andreas Schwab <schwab@redhat.com>
5648 * common/aclocal.m4: Remove.
5650 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5652 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5653 (xtensa_write_register, xtensa_read_register): Likewise.
5654 (xtensa_hextochar): Removed.
5655 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5657 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5659 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5660 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5661 (xtensa_alloc_frame_cache): Add initialization for new fields.
5662 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5663 (warning_once): New function.
5664 (xtensa_insn_kind): New item c0opc_and.
5665 (call0_classify_opcode): Add the case for AND instruction.
5666 (call0_track_op): Change arguments. New local variable litbase.
5667 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5668 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5670 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5671 (call0_analyze_prologue): Update the comments. Change arguments.
5672 Add the variety of updates to handle extended prologues, which now can
5673 conduct dynamic stack adjustments.
5674 (call0_frame_cache): Likewise.
5675 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5676 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5678 2011-03-10 Michael Snyder <msnyder@vmware.com>
5680 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5681 (cmd_qtframe): Ditto.
5682 (cmd_qtbuffer): Ditto.
5683 (cmd_bigqtbuffer): Ditto.
5685 2011-03-10 Tom Tromey <tromey@redhat.com>
5687 * tracepoint.c (trace_actions_command): Update.
5688 * thread.c (thread_apply_command): Update.
5689 * reverse.c (delete_bookmark_command): Update.
5690 (bookmarks_info): Update.
5691 * printcmd.c (undisplay_command): Update.
5692 * memattr.c (mem_enable_command): Update.
5693 (mem_disable_command): Update.
5694 (mem_delete_command): Update.
5695 * inferior.c (detach_inferior_command): Update.
5696 (kill_inferior_command): Update.
5697 (remove_inferior_command): Update.
5698 * cli/cli-utils.h (struct get_number_or_range_state): New.
5699 (init_number_or_range): Declare.
5700 (get_number_or_range): Update.
5701 * cli/cli-utils.c (init_number_or_range): New function.
5702 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5704 (number_is_in_list): Update.
5705 * breakpoint.h (get_tracepoint_by_number): Update.
5706 * breakpoint.c (map_breakpoint_numbers): Update for change to
5707 get_number_or_range.
5708 (find_location_by_number): Use get_number, not
5709 get_number_or_range.
5710 (trace_pass_set_count): New function.
5711 (trace_pass_command): Update for change to get_number_or_range.
5713 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5716 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5718 * python/py-param.c (add_setshow_generic): Add set/show callback
5719 parameters. Register Python object context.
5720 (get_show_value): New function.
5721 (get_set_value): New function.
5722 (call_doc_function): New function.
5723 (get_doc_string): Move behind get_show_value/get_set_value.
5725 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5727 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5729 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5731 * xtensa-tdep.c (xtensa_read_register): Add comment.
5732 (xtensa_write_register): Likewise.
5733 (xtensa_hextochar): Add comment and update to match coding conventions.
5734 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5735 (execute_l32e, execute_s32e, execute_code): Update comments.
5736 (xtensa_exception_handler_t): Update to match coding conventions.
5737 (xtensa_insn_kind): Likewise.
5739 2011-03-09 Michael Snyder <msnyder@vmware.com>
5741 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5743 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5745 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5747 2011-03-09 Tom Tromey <tromey@redhat.com>
5749 * thread.c (restore_selected_frame): Handle frame_level == -1.
5750 (make_cleanup_restore_current_thread): Use
5751 get_selected_frame_if_set.
5752 * frame.h (get_selected_frame_if_set): Declare.
5753 * frame.c (get_selected_frame_if_set): New function.
5755 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5757 * cli/cli-cmds.c (shell_escape): Use lbasename.
5758 * coffread.c (coff_start_symtab): Constify parameter.
5759 (complete_symtab): Constify `name' parameter.
5760 (coff_symtab_read): Constify `filestring' local.
5761 (coff_getfilename): Constify return and `result' local.
5763 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5764 * linux-fork.c (info_checkpoints_command): Use lbasename.
5765 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5766 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5767 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5768 * procfs.c (procfs_make_note_section): Use lbasename.
5769 * tui/tui-io.c (printable_part): Constity return and parameter.
5771 (print_filename): Constify parameters, and local `s'.
5772 (tui_rl_display_match_list): Constify local `temp'.
5774 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5777 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5778 Fix DWARF-3+ DW_AT_accessibility default assumption.
5779 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5780 cu->header.version >= 3.
5782 2011-03-09 Yao Qi <yao@codesourcery.com>
5784 * common/Makefile.in: Remove.
5785 * common/configure: Remove.
5786 * common/configure.ac: Remove.
5788 2011-03-09 Yao Qi <yao@codesourcery.com>
5791 2011-02-11 Yao Qi <yao@codesourcery.com>
5793 * common/Makefile.in: Add copyright header.
5795 2011-02-11 Yao Qi <yao@codesourcery.com>
5797 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5799 * configure.ac: Add common to sub dir.
5800 * configure: Regenerate.
5802 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5804 * xtensa-tdep.c (call0_ret): New function.
5805 (xtensa_skip_prologue): Speed up analysis.
5807 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5809 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5810 while executing MI command -data-list-changed-registers.
5812 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5814 * xtensa-tdep.c (xtensa_read_register): New function.
5815 (xtensa_write_register): New function.
5816 (xtensa_find_register_by_name): New function.
5817 (xtensa_windowed_frame_cache): Update comments in type description.
5818 (xtensa_frame_cache): Likewise.
5819 (xtensa_window_interrupt_insn): New function.
5820 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5821 (xtensa_insn_kind): Add new instructions.
5822 (rwx_special_register): New function.
5823 (call0_classify_opcode): Add new instructions to the analysis.
5824 (a0_saved, a7_saved, a11_saved): New variables.
5825 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5826 (execute_l32e): New function.
5827 (execute_s32e): New function.
5828 (xtensa_exception_handler_t): New type.
5829 (execute_code): New function.
5830 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5831 analysis for Xtensa Window Exception handlers.
5833 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5835 * xtensa-tdep.c (TX_PS): New.
5836 (windowing_enabled): Update to count for Call0 ABI.
5837 (xtensa_hextochar): New.
5838 (xtensa_init_reggroups): Make algorithm generic.
5839 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5841 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5843 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5845 2011-03-08 Michael Snyder <msnyder@vmware.com>
5847 * i386-tdep.c (i386_follow_jump): Check return value of
5849 (i386_analyze_struct_return): Ditto.
5850 (i386_skip_probe): Ditto.
5851 (i386_match_insn): Ditto.
5852 (i386_skip_noop): Ditto.
5853 (i386_analyze_frame_setup): Ditto.
5854 (i386_analyze_register_saves): Ditto.
5855 (i386_skip_prologue): Ditto.
5856 (i386_skip_main_prologue): Ditto.
5858 * target.c (read_whatever_is_readable): Fix memory leak.
5860 * i386-tdep.c (i386_process_record): Document fall through.
5862 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5864 Fix DWARF-3+ DW_AT_accessibility default assumption.
5865 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5866 cu->header.version >= 3.
5868 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5870 * remote.c (remote_check_symbols): Skip if the target has no
5873 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5875 * target.c (read_whatever_is_readable): Reformat comment,
5876 with a minor typo fix. Minor reformatting of the code.
5878 2011-03-08 Yao Qi <yao@codesourcery.com>
5880 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5881 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5882 Use cached result instead of calling displaced_in_arm_mode again.
5883 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5884 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5885 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5886 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5887 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5888 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5889 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5890 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5891 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5892 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5893 (arm_catch_kernel_helper_return): Likewise.
5894 * gdb/arm-tdep.h : Update function declarations.
5896 2011-03-07 Michael Snyder <msnyder@vmware.com>
5898 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5900 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5902 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5904 * elfread.c (elf_symtab_read): Stop memory leak.
5906 * main.c (captured_main): Fix memory leak.
5908 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5910 * ada-lang.c (compare_names): Call is_name_suffix with string1
5913 2011-03-07 Tom Tromey <tromey@redhat.com>
5915 * xcoffread.c (xcoff_sym_fns): Update.
5916 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5917 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5918 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5919 (symbol_file_add_with_addrs_or_offsets): Likewise.
5920 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5921 * somread.c (som_sym_fns): Update.
5922 * psymtab.h (require_partial_symbols): Declare.
5923 * psymtab.c (require_partial_symbols): New function.
5924 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5925 (ALL_OBJFILE_PSYMTABS): Undef.
5926 (ALL_PSYMTABS): Move from psympriv.h.
5927 (lookup_partial_symtab, find_pc_sect_psymtab)
5928 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5929 (find_last_source_symtab_from_partial)
5930 (forget_cached_source_info_partial)
5931 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5932 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5933 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5934 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5935 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5936 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5937 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5938 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5939 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5941 * mipsread.c (ecoff_sym_fns): Update.
5942 * machoread.c (macho_sym_fns): Update.
5943 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5944 (read_psyms): New function.
5945 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5946 (elf_sym_fns_lazy_psyms): New global.
5947 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5948 dwarf2_build_psymtabs.
5949 * dbxread.c (aout_sym_fns): Update.
5950 * coffread.c (coff_sym_fns): Update.
5952 2011-03-07 Tom Tromey <tromey@redhat.com>
5954 * infrun.c (print_exited_reason): Include inferior id and pid in
5957 2011-03-07 Tom Tromey <tromey@redhat.com>
5959 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5961 (target_has_execution_1): Update.
5962 (target_has_execution_current): Declare.
5963 (target_has_execution): Call target_has_execution_current.
5964 (default_child_has_execution): Update.
5965 * target.c (default_child_has_execution): Add 'the_ptid'
5967 (target_has_execution_1): Likewise.
5968 (target_has_execution_current): New function.
5969 (add_target): Update.
5970 (init_dummy_target): Update.
5971 * remote-m32r-sdi.c (m32r_has_execution): New function.
5972 (init_m32r_ops): Use it.
5973 * record.c (record_core_has_execution): Now static. Add
5974 'the_ptid' parameter.
5975 * inferior.c (have_live_inferiors): Don't save current thread.
5976 Use target_has_execution_1.
5978 2011-03-07 Yao Qi <yao@codesourcery.com>
5980 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5982 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5984 * elfread.c (elf_symtab_read): Minor reformatting.
5986 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5988 * objc-lang.c (selectors_info): Minor reformatting.
5990 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5992 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5994 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5995 Michael Snyder <msnyder@vmware.com>
5997 * ada-valprint.c (ada_val_print_array): Move the declaration of
5998 "byte_order" and "elttype" inside the block where these variables
5999 are actually used. Remove some special handling for the case
6000 where "elttype" and "eltlen" are null. Replace by a comment
6001 and a couple of assertion checks.
6003 2011-03-05 Michael Snyder <msnyder@vmware.com>
6005 * source.c (add_path): Replace semicolon at end of block.
6006 * dwarf2expr.c (execute_stack_op): Ditto.
6008 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6010 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6011 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6012 (bfin-*-*): Likewise.
6014 2011-03-05 Michael Snyder <msnyder@vmware.com>
6016 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6017 * mdebugread.c (parse_symbol): Ditto.
6018 * parse.c (parse_exp_in_context): Ditto.
6019 * source.c (add_path): Ditto.
6020 * utils.c (gnu_debuglink_crc32): Ditto.
6021 * varobj.c (variable_language): Ditto.
6023 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6025 2011-03-04 Michael Snyder <msnyder@vmware.com>
6027 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6029 * symfile.c (simple_overlay_update): Check for null return value
6030 from lookup_minimal_symbol.
6032 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6034 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6036 * eval.c (parse_and_eval_address_1): Remove function.
6037 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6038 instead of parse_and_eval_address_1.
6039 * value.h (parse_and_eval_address_1): Remove prototype.
6041 2011-03-04 Michael Snyder <msnyder@vmware.com>
6043 * remote.c (putpkt_binary): Document that case stmt falls through.
6045 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6047 * breakpointc (print_it_typical): Move NULL check from here...
6048 (print_bp_stop_message): ... to here.
6050 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6052 * breakpoint.c (enable_command): Use break instead of continue,
6053 and fill in a missing break.
6054 (disable_command): Ditto.
6056 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6058 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6059 (terminal_save_ours): Remove misleading comment.
6060 (inflow_inferior_data_cleanup): Free ttystate.
6061 (inflow_inferior_exit): Likewise.
6062 (copy_terminal_info): Copy ttystate.
6064 * serial.c (serial_copy_tty_state): New function.
6065 * serial.h (serial_copy_tty_state): Add prototype.
6066 (struct serial_ops): Add copy_tty_state callback.
6067 * ser-base.c (ser_base_copy_tty_state): New function.
6068 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6069 * ser-go32.c (dos_copy_tty_state): New function.
6070 (dos_ops): Install copy_tty_state callback.
6071 * ser-mingw.c (_initialize_ser_windows): Likewise.
6072 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6073 * ser-unix.c (hardwire_copy_tty_state): New function.
6074 (_initialize_ser_hardwire): Install it.
6076 2011-03-04 Michael Snyder <msnyder@vmware.com>
6078 * breakpoint.c (create_breakpoint): Add missing break statement.
6080 Reverting this patch:
6081 * infcall.c (call_function_by_hand): Add break statements for lint.
6083 Reverting this patch:
6084 * cli/cli-script.c (script_from_file): Add break for lint.
6086 2011-03-04 Michael Snyder <msnyder@vmware.com>
6088 * solib.c (reload_shared_libraries_1): Close memory leak.
6090 2011-03-03 Tom Tromey <tromey@redhat.com>
6093 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6096 2011-03-03 Michael Snyder <msnyder@vmware.com>
6098 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6099 fields of struct 'st' to zero.
6101 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6102 sal.pspace before calling set_current_source_symtab_and_line.
6104 2011-03-03 Yao Qi <yao@codesourcery.com>
6106 * Makefile.in (configure-common): Remove. Let Makefile
6107 in dir common to rebuild itself.
6108 (common/Makefile): Likewise.
6110 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6112 * utils.c (parse_escape): Add i18n markup in error message.
6114 2011-03-03 Yao Qi <yao@codesourcery.com>
6116 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6118 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6119 (displaced_write_reg, displaced_read_reg): Likewise.
6120 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6121 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6122 (cleanup_branch): Replace magic number 14 and 15 with
6123 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6125 2011-03-02 Michael Snyder <msnyder@vmware.com>
6127 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6129 * cli/cli-script.c (script_from_file): Add break for lint.
6131 * mdebugread.c (parse_partial_symbols): Fix indent.
6133 * target-descriptions.c (tdesc_gdb_type): No need to call
6134 xstrdup, callee saves a copy.
6136 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6138 * infcall.c (call_function_by_hand): Add break statements for lint.
6140 * utils.c (parse_escape): Escape the escape char.
6142 * python/py-inferior.c (build_inferior_list): Error out if
6143 PyList_Append fails.
6144 (gdbpy_inferiors): Error out if build_inferior_list fails.
6146 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6149 * record.c (record_restore): Move printf to before error return.
6151 2011-03-02 Yao Qi <yao@codesourcery.com>
6153 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6154 is_thumb and insn_size.
6155 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6156 on both ARM and Thumb mode.
6157 (arm_process_displaced_insn): Set is_thumb and insn_size.
6158 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6159 (arm_displaced_step_fixup): Likewise.
6161 2011-03-01 Michael Snyder <msnyder@vmware.com>
6163 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6165 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6167 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6169 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6171 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6174 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6175 which shadows function parameter.
6177 * tracepoint.c (create_tsv_from_upload): Superfluous call
6178 to xstrdup. Callee already calls xstrdup.
6180 * linespec.c (decode_line_1): Remove unnecessary null check.
6182 * tracepoint.c (scope_info): Fix mem leak, remove underused
6185 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6186 superfluous null check.
6188 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6189 (value_of_builtin_frame_fp_reg): Ditto.
6191 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6193 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6196 * linespec.c (decode_line_1): Check for null before dereference.
6198 * reverse.c (record_restore): Move null-check to before pointer
6201 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6203 * objc-lang.c (selectors_info): Add explanitory comment.
6204 (classes_info): Ditto.
6206 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6208 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6209 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6210 versions of the trampoline. Handle Thumb vs. ARM addresses.
6211 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6212 (arm_linux_init_abi): Install it.
6213 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6214 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6216 2011-02-28 Michael Snyder <msnyder@vmware.com>
6218 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6219 a little bigger, to avoid possibility of an overflow.
6221 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6222 buffers a little bigger, to avoid possibility of an overflow.
6224 * coffread.c (coff_getfilename): Add check to avoid overflow.
6226 * objc-lang.c (selectors_info): Add a small safety margin to
6228 (classes_info): Error out on too long REGEXP.
6230 * infrun.c (handle_inferior_event): Remove unused function call.
6232 * fork-child.c (fork_inferior): Remove ifdef'd code and
6235 * linux-thread-db.c (attach_thread): Discard unused value.
6237 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6239 * remote.c (remote_get_noisy_reply): Discard unused value.
6240 (remote_vcont_resume): Ditto.
6241 (remote_stop_ns): Ditto.
6243 * linespec.c (decode_objc): Delete unused variable.
6245 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6247 * dwarf2read.c (add_partial_symbol): Discard unused values.
6248 (read_base_type): Delete unused variable.
6250 * dbxread.c (read_dbx_symtab): Discard unused value.
6252 * eval.c (evaluate_subexp_standard): Delete unused variable,
6253 and discard unused values.
6255 * infcmd.c (_initialize_infcmd): Discard unused values.
6257 * stabsread.c (rs6000_builtin_type): Missing break statement.
6259 * dbxread.c (process_one_symbol): Discard unused value.
6261 * coffread.c (coff_end_symtab): Delete unused variable.
6263 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6264 (dwarf2_add_typedef): Delete unused variable.
6265 (read_namespace): Ditto.
6266 (dwarf_decode_macros): Ditto.
6268 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6270 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6272 * p-valprint.c (pascal_val_print): Discard unused value.
6274 * utils.c (nquery): Call va_end before return;
6278 * proc-service.c (ps_plog): Call va_end before return.
6280 2011-02-28 Tom Tromey <tromey@redhat.com>
6282 * python/python.c (gdbpy_value_cst): New global.
6283 (_initialize_python): Initialize it.
6284 * python/python-internal.h (gdbpy_value_cst): Declare.
6285 * python/py-value.c (convert_value_from_python): Use
6288 2011-02-28 Michael Snyder <msnyder@vmware.com>
6290 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6292 * breakpoint.c (catch_syscall_completer): Free malloced list.
6294 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6296 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6297 (lval_func_check_synthetic_pointer): Ditto.
6298 (lval_func_free_closure): Fix use-after-free.
6300 2011-02-28 Tom Tromey <tromey@redhat.com>
6302 * psymtab.c (expand_partial_symbol_tables): Use
6303 ALL_OBJFILE_PSYMTABS.
6305 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6307 * objc-lang.c (selectors_info): Error on too long REGEXP.
6309 2011-02-28 Michael Snyder <msnyder@vmware.com>
6311 * python/py-param.c (set_parameter_value): Add missing
6314 * linux-record.c (record_linux_system_call): Add missing
6317 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6319 * breakpoint.c (print_one_breakpoint_location): Remove unused
6320 argument PRINT_ADDRESS_BITS. Update callers.
6321 (print_one_breakpoint): Likewise.
6323 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6325 * breakpoint.c (wrap_indent_at_field): New function.
6326 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6327 Allocate ui_stream locally instead of using STB argument.
6328 (print_one_breakpoint_location): Update call.
6329 * ui-out.c (ui_out_query_field): New function.
6330 * ui-out.h (ui_out_query_field): Add prototype.
6332 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6334 From Michael Snyder <msnyder@vmware.com>
6335 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6337 2011-02-27 Michael Snyder <msnyder@vmware.com>
6339 * objc-lang.c (selectors_info): Prevent string overrun.
6341 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6344 * symtab.c (rbreak_command): Move variable 'file_name' to
6347 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6348 param with a local variable of the same name.
6350 2011-02-27 Michael Snyder <msnyder@vmware.com>
6352 * value.c (value_from_history_ref): New function.
6353 * value.h (value_from_history_ref): Export.
6354 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6355 to parse value history references.
6356 * cli/cli-utils.h (get_number_trailer): Update comment.
6358 2011-02-27 Michael Snyder <msnyder@vmware.com>
6360 * inferior.c (detach_inferior_command): Use get_number_or_range.
6361 (kill_inferior_command): Ditto.
6362 (remove_inferior_command): Ditto.
6363 (initialize_inferiors): Make command names plural.
6364 Update help strings.
6366 2011-02-27 Michael Snyder <msnyder@vmware.com>
6368 * darwin-nat-info.c: Fix comment typo.
6369 * dwarf2expr.h: Ditto.
6370 * fbsd-nat.c: Ditto.
6371 * fbsd-nat.h: Ditto.
6372 * frame-unwind.h: Ditto.
6374 * hppa-hpux-tdep.c: Ditto.
6375 * i386-linux-nat.c: Ditto.
6376 * linux-nat.c: Ditto.
6377 * nbsd-nat.c: Ditto.
6378 * nbsd-nat.h: Ditto.
6379 * ppc-linux-tdep.c: Ditto.
6382 * tui/tui-winsource.c: Ditto.
6384 2011-02-26 Michael Snyder <msnyder@vmware.com>
6386 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6388 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6390 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6391 with a local variable of the same name.
6393 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6394 param with a local variable of the same name.
6395 (i387_supply_xsave): Ditto.
6397 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6398 that it does not shadow a function parameter.
6400 * i386-nat.c (i386_length_and_rw_bits): Document that case
6401 statement is meant to fall through.
6403 * expprint.c (dump_subexp_body_standard): Document that case
6404 statement is meant to fall through.
6406 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6407 dead if statement. Condition can't be false.
6409 2011-02-25 Michael Snyder <msnyder@vmware.com>
6411 * arm-tdep.c: Fix typos in comments.
6412 * bsd-uthread.c: Ditto.
6413 * completer.c: Ditto.
6415 * cp-namespace.c: Ditto.
6416 * cp-support.c: Ditto.
6417 * cris-tdep.c: Ditto.
6419 * dwarf2read.c: Ditto.
6421 * gdbtypes.h: Ditto.
6422 * inferior.h: Ditto.
6423 * mdebugread.c: Ditto.
6424 * mips-tdep.c: Ditto.
6425 * ppc-linux-nat.c: Ditto.
6426 * ppc-linux-tdep.c: Ditto.
6427 * printcmd.c: Ditto.
6428 * sol-thread.c: Ditto.
6429 * solib-frv.c: Ditto.
6431 * sparc64-tdep.c: Ditto.
6432 * spu-tdep.c: Ditto.
6433 * stabsread.c: Ditto.
6438 * python/py-block.c: Ditto.
6439 * python/py-symbol.c: Ditto.
6440 * python/py-symtab.c: Ditto.
6441 * python/py-value.c: Ditto.
6442 * tui/tui-win.c: Ditto.
6444 2011-02-25 Michael Snyder <msnyder@vmware.com>
6446 * inferior.c (print_inferior): Accept a string instead of an int
6447 for requested_inferiors, and use get_number_or_range to parse it.
6448 (info_inferiors_command): Pass args string to print_inferior.
6449 (initialize_inferiors): Change help string for info inferiors.
6450 * inferior.h (print_inferior): Export prototype change.
6452 2011-02-25 Tom Tromey <tromey@redhat.com>
6454 * common/ax.def (invalid2): Set to 0x31.
6456 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6458 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6460 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6462 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6464 2011-02-24 Michael Snyder <msnyder@vmware.com>
6466 * Makefile.in (clean): Make clean should remove generated files
6467 observer.h and observer.inc.
6469 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6471 Revert the following patch (not approved yet):
6472 2011-02-21 Hui Zhu <teawater@gmail.com>
6473 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6474 * ax-gdb.c (gen_printf_expr_callback): New function.
6475 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6476 * ax-general.c (ax_memcpy): New function.
6477 (ax_print): Handle "printf".
6479 * ax.h (ax_memcpy): Forward declare.
6480 * common/ax.def (invalid2): Removed.
6481 (printf): New entry.
6482 * printcmd.c (printcmd.h): New include.
6483 (string_printf): New function.
6484 (ui_printf): Removed.
6485 (printf_command): Remove static. Call string_printf.
6486 (eval_command): Call string_printf.
6487 * printcmd.h: New file.
6488 * tracepoint.c (validate_actionline,
6489 encode_actions_1): handle printf_command.
6491 2011-02-23 Tom Tromey <tromey@redhat.com>
6493 * ax-general.c (ax_pick): Add missing newline.
6495 2011-02-23 Michael Snyder <msnyder@vmware.com>
6497 * breakpoint.c (breakpoint_1): Change first argument from an int
6498 to a char pointer, so that the function now accepts a list of
6499 breakpoints rather than just one. Use new function
6500 'number_is_in_list' to implement.
6501 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6502 (watchpoints_info): Ditto.
6503 (tracepoints_info): Ditto.
6504 (maintenance_info_breakpoints): Ditto.
6505 (_initialize_breakpoint): Update help strings to reflect the fact
6506 that these functions can now take more than one argument.
6507 * cli/cli-utils.c (number_is_in_list): New function.
6508 * cli/cli-utils.h (number_is_in_list): Export.
6510 2011-02-23 Michael Snyder <msnyder@vmware.com>
6512 * memattr.c (mem_enable_command): Use get_number_or_range.
6513 (mem_disable_command): Ditto.
6514 (mem_delete_command): Ditto.
6515 (_initialize_mem): Tweak usage message to reflect multiple
6518 2011-02-22 Doug Evans <dje@google.com>
6520 Add gdb.lookup_global_symbol python function.
6522 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6523 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6524 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6526 2011-02-22 Tom Tromey <tromey@redhat.com>
6528 * language.c (language_class_name_from_physname): Rename
6529 'curr_language' argument to 'lang'; use in body.
6531 2011-02-22 Michael Snyder <msnyder@vmware.com>
6533 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6535 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6537 * frame-unwind.h: Fix comment to mention the this frame, not the
6540 2011-02-22 Tom Tromey <tromey@redhat.com>
6542 * symfile.c (auto_solib_limit): Remove.
6543 * symfile.h (auto_solib_limit): Remove.
6545 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6547 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6549 2011-02-21 Michael Snyder <msnyder@vmware.com>
6551 * gdbthread.h (print_thread_info): Change prototype.
6552 * thread.c (print_thread_info): Accept char* instead of int for
6553 requested_threads argument. Use new function number_is_in_list
6554 to determine which threads to list.
6555 (info_threads_command): Pass char* to print_thread_info.
6556 * cli/cli-utils.c (number_is_in_list): New function.
6557 * cli/cli-utils.h (number_is_in_list): Export.
6558 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6560 (print_one_inferior): Ditto.
6561 (mi_cmd_list_thread_groups): Ditto.
6563 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6565 * common/Makefile.in (CFLAGS): New.
6566 (COMPILE): Add $(CFLAGS).
6568 2011-02-21 Tom Tromey <tromey@redhat.com>
6570 * breakpoint.c (catch_syscall_command_1): Fix typo.
6572 2011-02-21 Tom Tromey <tromey@redhat.com>
6574 * reverse.c: Include cli-utils.h.
6575 * printcmd.c: Include cli-utils.h.
6576 (string_printf): Use skip_spaces.
6577 * cli/cli-utils.h: New file.
6578 * cli/cli-utils.c: New file.
6579 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6580 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6581 * breakpoint.h (get_number, get_number_or_range): Move to
6583 * breakpoint.c: Include cli-utils.h.
6584 (get_number_trailer, get_number, get_number_or_range)
6585 (ep_skip_leading_whitespace): Move to cli-utils.c.
6586 (create_breakpoint_sal, find_condition_and_thread)
6587 (decode_static_tracepoint_spec, watch_command_1)
6588 (watch_maybe_just_location, ep_parse_optional_if_clause)
6589 (catch_fork_command_1, catch_exec_command_1)
6590 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6591 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6592 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6593 (HFILES_NO_SRCDIR): Add cli-utils.h.
6594 (cli-utils.o): New target.
6596 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6598 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6599 before calling discard_all_inferiors.
6601 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6603 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6604 (struct builtin_opencl_type): Remove.
6605 (builtin_opencl_type): Change return type to "struct type **".
6606 (lookup_opencl_vector_type): Update caller.
6607 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6608 (build_opencl_types): Install plain array of "struct type *"
6609 instead of "struct builtin_opencl_type".
6611 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6612 Ulrich Weigand <uweigand@de.ibm.com>
6614 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6615 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6616 (struct arm_linux_hwbp_cap): New type.
6617 (arm_linux_get_hwbp_cap): New function.
6618 (arm_linux_get_hw_breakpoint_count): Likewise.
6619 (arm_linux_get_hw_watchpoint_count): Likewise.
6620 (arm_linux_can_use_hw_breakpoint): Likewise.
6621 (arm_hwbp_type): New type.
6622 (arm_hwbp_control_t): Likewise.
6623 (struct arm_linux_hw_breakpoint): Likewise.
6624 (struct arm_linux_thread_points): Likewise.
6625 (arm_threads): New global variable.
6626 (arm_linux_find_breakpoints_by_tid): New function.
6627 (arm_hwbp_control_initialize): Likewise.
6628 (arm_hwbp_control_is_enabled): Likewise.
6629 (arm_hwbp_control_disable): Likewise.
6630 (arm_linux_hw_breakpoint_initialize): Likewise.
6631 (arm_linux_get_hwbp_type): Likewise.
6632 (arm_linux_hw_watchpoint_initialize): Likewise.
6633 (arm_linux_hw_breakpoint_equal): Likewise.
6634 (arm_linux_insert_hw_breakpoint1): Likewise.
6635 (arm_linux_remove_hw_breakpoint1): Likewise.
6636 (arm_linux_insert_hw_breakpoint): Likewise.
6637 (arm_linux_remove_hw_breakpoint): Likewise.
6638 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6639 (arm_linux_insert_watchpoint): Likewise.
6640 (arm_linux_remove_watchpoint): Likewise.
6641 (arm_linux_stopped_data_address): Likewise.
6642 (arm_linux_stopped_by_watchpoint): Likewise.
6643 (arm_linux_watchpoint_addr_within_range): Likewise.
6644 (arm_linux_new_thread): Likewise.
6645 (arm_linux_thread_exit): Likewise.
6646 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6647 related target callbacks. Register arm_linux_new_thread and
6648 arm_linux_thread_exit.
6649 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6650 * arm-tdep.c (arm_pc_is_thumb): Make global.
6651 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6653 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6655 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6656 per-frame locations while within a function epilogue.
6658 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6660 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6661 to GNU coding standards.
6663 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6665 Allow use of mingw native on Windows 95 OS.
6666 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6667 (ser_windows_close): Only call CancelIo if function exists.
6668 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6669 to check for existence of CancelIo function in kernel32 DLL.
6671 2011-02-21 Hui Zhu <teawater@gmail.com>
6673 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6674 * ax-gdb.c (gen_printf_expr_callback): New function.
6675 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6676 * ax-general.c (ax_memcpy): New function.
6677 (ax_print): Handle "printf".
6679 * ax.h (ax_memcpy): Forward declare.
6680 * common/ax.def (invalid2): Removed.
6681 (printf): New entry.
6682 * printcmd.c (printcmd.h): New include.
6683 (string_printf): New function.
6684 (ui_printf): Removed.
6685 (printf_command): Remove static. Call string_printf.
6686 (eval_command): Call string_printf.
6687 * printcmd.h: New file.
6688 * tracepoint.c (validate_actionline,
6689 encode_actions_1): handle printf_command.
6691 2011-02-19 Michael Snyder <msnyder@vmware.com>
6693 * reverse.c (delete_one_bookmark): Argument is now bookmark
6694 id rather than pointer to bookmark struct.
6695 (delete_bookmark_command): Use get_number_or_range.
6696 (goto_bookmark_command): Parse with get_number instead of strtoul.
6697 (bookmark_1): New function. Print info for one bookmark.
6698 (bookmarks_info): Use get_number_or_range and bookmark_1.
6700 2011-02-18 Michael Snyder <msnyder@vmware.com>
6702 * thread.c (info_threads_command): Re-implement using
6703 get_number_or_range.
6704 (thread_apply_command): Ditto.
6706 2011-02-18 Tom Tromey <tromey@redhat.com>
6708 * common/ax.def: New file.
6709 * ax.h (enum agent_op): Use ax.def.
6710 * ax-general.c (aop_map): Use ax.def.
6712 2011-02-18 Tom Tromey <tromey@redhat.com>
6714 * ax-general.c (aop_map): Add pick and rot.
6715 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6716 <DW_OP_rot>: Implement.
6717 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6719 * ax-general.c (ax_pick): New function.
6721 2011-02-18 Tom Tromey <tromey@redhat.com>
6723 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6725 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6726 Tom Tromey <tromey@redhat.com>
6728 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6729 make_symbol_overload_list_block with NULL BLOCK.
6730 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6732 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6734 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6735 * breakpoint.h (get_number_or_range): Declare.
6736 * printcmd.c (ALL_DISPLAYS): Declare.
6737 (delete_display): Reimplement taking a display pointer.
6738 (undisplay_command): Accept a range of displays to delete, using
6739 get_number_or_range.
6741 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6743 * c-valprint.c (c_val_print): Add embedded_offset to address
6744 for arrays of unspecified length.
6745 * p-valprint.c (pascal_val_print): Likewise.
6747 2011-02-18 Yao Qi <yao@codesourcery.com>
6749 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6750 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6751 (thumb_process_displaced_insn): New.
6752 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6753 call to arm_process_displaced_insn.
6754 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6756 2011-02-17 Tom Tromey <tromey@redhat.com>
6758 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6759 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6760 compile_dwarf_to_ax. No longer static. Call
6761 dwarf2_compile_cfa_to_ax.
6762 (locexpr_tracepoint_var_ref): Update.
6763 (loclist_tracepoint_var_ref): Update.
6764 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6765 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6766 argument; add 'gdbarch' and 'pc'.
6767 (dwarf2_compile_cfa_to_ax): New function.
6768 (dwarf2_frame_cache): Update.
6770 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6772 * ada-lang.c (ada_type_of_array): Fix the size of the array
6773 in the case of an unconstrained packed array.
6775 2011-02-17 Yao Qi <yao@codesourcery.com>
6777 * common/Makefile.in: Add more targets for make.
6779 2011-02-16 Tom Tromey <tromey@redhat.com>
6781 * dwarf2loc.c (unimplemented): Fix typo.
6783 2011-02-16 Tom Tromey <tromey@redhat.com>
6785 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6786 (compile_dwarf_to_ax) <default>: Use unimplemented.
6787 <DW_OP_deref>: Update.
6788 (disassemble_dwarf_expression): Update.
6789 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6790 (decode_locdesc): Update.
6791 * dwarf2expr.h (dwarf_stack_op_name): Update.
6793 2011-02-16 Tom Tromey <tromey@redhat.com>
6795 * ax.h (struct aop_map) <name>: Now const.
6797 2011-02-16 Tom Tromey <tromey@redhat.com>
6799 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6802 2011-02-16 Yao Qi <yao@codesourcery.com>
6804 * infrun.c (get_displaced_step_closure_by_addr): New.
6805 * inferior.h: Declare it.
6806 * arm-tdep.c: (arm_pc_is_thumb): Call
6807 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6810 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6811 Jan Kratochvil <jan.kratochvil@redhat.com>
6814 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6816 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6817 Jan Kratochvil <jan.kratochvil@redhat.com>
6819 * value.c (value_contents_copy_raw): Extend describing comment.
6820 Assert that the destination contents we're overwriting are wholly
6822 (value_contents_copy): Extend describing comment.
6824 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6825 Jan Kratochvil <jan.kratochvil@redhat.com>
6827 * value.c (value_available_contents_eq): Remove redundant local
6828 variables. Fix available contents comparision.
6829 * value.h (value_available_contents_eq): Extend describing
6832 2011-02-16 Yao Qi <yao@codesourcery.com>
6834 * thread.c (info_threads_command): Add missing i18n markup and remove
6837 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6839 * breakpoint.c (longjmp_names): New variable.
6840 (struct breakpoint_objfile_data): New type.
6841 (breakpoint_objfile_key): New variable.
6842 (msym_not_found): New variable.
6843 (msym_not_found_p): New predicate.
6844 (get_breakpoint_objfile_data): New function.
6845 (create_overlay_event_breakpoint): Check per-objfile cache for
6847 (create_longjmp_master_breakpoint): Likewise.
6848 (create_std_terminate_master_breakpoint): Likewise.
6849 (create_exception_master_breakpoint): Likewise.
6850 (_initialize_breakpoint): Register per-objfile data key.
6852 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6854 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6856 (create_longjmp_master_breakpoint): Loop over longjmp names.
6857 (create_std_terminate_master_breakpoint): Const-propagate parameter
6859 (update_breakpoints_after_exec): Adjust.
6860 (breakpoint_re_set): Adjust.
6862 2011-02-15 Michael Snyder <msnyder@vmware.com>
6864 * thread.c (info_threads_command): Process arg as thread id,
6865 or list of thread ids.
6866 (thread_find_command): New command.
6867 (_initialize_thread): Document argument for info threads.
6868 Document 'thread find' command.
6869 * NEWS: Document new command "thread find".
6871 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6873 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6874 * aclocal.m4: Regenerated with aclocal-1.11.1.
6875 * common/configure: Regenerate with autoconf-2.64.
6877 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6879 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6880 bool data type to a size of one byte.
6882 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6883 Jan Kratochvil <jan.kratochvil@redhat.com>
6885 * target.c (memory_xfer_live_readonly_partial): Document where to
6886 look for interface description.
6888 2011-02-15 Yao Qi <yao@codesourcery.com>
6891 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6892 order to store PC value on stack instead of text section.
6894 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6896 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6897 the EFP register set size.
6898 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6899 data from the VMX register.
6900 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6901 and write data from/to the VMX register.
6903 2011-02-14 Michael Snyder <msnyder@vmware.com>
6905 * command.h (enum command_class): New class 'no_set_class', for
6906 "show" commands without a corresponding "set" command.
6907 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6908 * copying.c (_initialize_copying): Ditto for "show copying" and
6910 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6912 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6913 which there is no corresponding "set" command (eg. "show copying").
6915 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6916 Jan Kratochvil <jan.kratochvil@redhat.com>
6918 * exec.c (section_table_available_memory): Change `len' parameter
6920 * exec.h (section_table_available_memory): Ditto.
6921 * value.h (read_value_memory): Rename the `offset' parameter to
6924 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6925 Jan Kratochvil <jan.kratochvil@redhat.com>
6927 * memrange.c (compare_mem_ranges): Mention sort order in
6929 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6930 * tracepoint.c (traceframe_available_memory): Extend comment to
6931 mention what happens to RESULT when the target does not support
6934 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6935 Jan Kratochvil <jan.kratochvil@redhat.com>
6937 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6940 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6942 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6943 No longer handle NULL values.
6945 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6947 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6948 * value.c: Include "exceptions.h".
6949 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6951 * cp-abi.c: Include gdb_assert.h.
6952 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6953 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6955 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6956 parameters. No longer returns -1 on error.
6957 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6959 * cp-valprint.c: Include exceptions.h.
6960 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6961 the baseclass_offset. Handle unavailable base classes. Use
6962 val_print_invalid_address.
6963 * p-valprint.c: Include exceptions.h.
6964 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6965 when fetching the baseclass_offset. No longer expect
6966 baseclass_offset returning -1. Handle unavailable base classes.
6967 Use val_print_invalid_address.
6968 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6969 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6970 `embedded_offset' and `val' parameters. Adjust.
6971 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6972 parameter, and change its type to gdb_byte pointer. Add
6973 `embedded_offset' and `val' parameters. Adjust. No longer expect
6974 baseclass_offset returning -1.
6975 (value_dynamic_cast): Use value_contents_for_printing rather than
6976 value_contents. Adjust.
6977 (search_struct_field): No longer expect baseclass_offset returning
6979 (search_struct_method): If reading memory from the target is
6980 necessary, wrap it in a new value to pass to baseclass_offset. No
6981 longer expect baseclass_offset returning -1.
6982 (find_method_list): No longer expect baseclass_offset returning
6983 -1. Use value_contents_for_printing rather than value_contents.
6984 * valprint.c (val_print_invalid_address): New function.
6985 * valprint.h (val_print_invalid_address): Declare.
6986 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6987 and `val' parameters. No longer expect baseclass_offset returning
6989 * gnu-v2-abi.c: Include "exceptions.h".
6990 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6991 parameters. Handle unavailable memory. Recurse through
6992 gnuv2_baseclass_offset directly, rather than through
6993 baseclass_offset. No longer returns -1 on not found, instead
6995 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6996 `val' parameters. Adjust.
6998 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7000 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7001 almost but not quite adjacent.
7003 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7005 * value.h (value_entirely_available): Declare.
7006 * value.c (value_entirely_available): New function.
7007 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7008 real type if the pointer is unavailable.
7010 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7012 * valops.c (value_repeat): Use read_value_memory instead of
7015 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7017 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7018 * value.c (value_contents_copy_raw, value_contents_copy): New
7020 (value_primitive_field): Use value_contents_copy_raw instead of
7022 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7024 (value_array, value_slice): Ditto.
7025 * valarith.c (value_subscripted_rvalue): Use
7026 value_contents_copy_raw instead of memcpy.
7028 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7030 <unavailable> references.
7032 * valops.c (get_value_at): Use value_from_contents_and_address,
7033 avoiding read_memory.
7035 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7037 * c-valprint.c (c_val_print): Print a string with unavailable
7038 contents as an array.
7040 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7042 * value.h (unpack_bits_as_long): Delete declaration.
7043 (unpack_value_bits_as_long): Declare.
7044 (unpack_value_field_as_long): Declare.
7045 (value_field_bitfield): Declare.
7046 * value.c (unpack_bits_as_long): Rename to...
7047 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7048 value parameters. Return the extracted result in a new output
7049 parameter. If the value contents are unavailable, return false,
7050 otherwise return true.
7051 (unpack_value_bits_as_long): New.
7052 (unpack_field_as_long): Rename to...
7053 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7054 Add embedded_offset and value parameters. Return the extracted
7055 result in a new output parameter. If the value contents are
7056 unavailable, return false, otherwise return true.
7057 (unpack_value_field_as_long): New.
7058 (unpack_field_as_long_1): New.
7059 (unpack_field_as_long): Reimplement as wrapper around
7060 unpack_value_field_as_long_1.
7061 (value_field_bitfield): New function.
7062 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7063 unpack_value_bits_as_long. Mark the value as unavailable, if it
7065 * jv-valprint.c (java_print_value_fields): Use
7066 value_field_bitfield.
7067 * p-valprint.c (pascal_object_print_value_fields): Use
7068 value_field_bitfield.
7069 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7071 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7073 * value.c (get_internalvar_integer): Also return the int value of
7074 TYPE_CODE_INT INTERNALVAR_VALUE values.
7075 (set_internalvar): Don't special case TYPE_CODE_INT.
7077 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7079 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7080 INTERNALVAR_POINTER.
7082 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7083 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7084 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7086 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7088 * value.h (value_available_contents_eq): Declare.
7089 * value.c (find_first_range_overlap): New function.
7090 (value_available_contents_eq): New function.
7091 * valprint.c (val_print_array_elements): Use
7092 value_available_contents_eq.
7093 * ada-valprint.c (val_print_packed_array_elements): Use
7094 value_available_contents_eq.
7095 * jv-valprint.c (java_value_print): Use
7096 value_available_contents_eq.
7098 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7100 * target.c (target_read_live_memory): New function.
7101 (memory_xfer_live_readonly_partial): New.
7102 (memory_xfer_partial): If reading from a traceframe, fallback to
7103 reading unavailable read-only memory from read-only regions of
7105 * tracepoint.c (disconnect_tracing): Adjust.
7106 (set_current_traceframe): New, factored out from
7107 set_traceframe_number.
7108 (set_traceframe_number): Reimplement to only change the traceframe
7109 number on the GDB side.
7110 (do_restore_current_traceframe_cleanup): Adjust.
7111 (make_cleanup_restore_traceframe_number): New.
7112 (cur_traceframe_number): New global.
7113 (tfile_open): Set cur_traceframe_number to no traceframe.
7114 (set_tfile_traceframe): New function.
7115 (tfile_trace_find): If looking up a traceframe using any method
7116 other than by number, make sure the current tfile traceframe
7117 matches gdb's current traceframe. Update the current tfile
7118 traceframe if the lookup succeeded.
7119 (tfile_fetch_registers, tfile_xfer_partial)
7120 (tfile_get_trace_state_variable_value): Make sure the remote
7121 traceframe matches gdb's current traceframe.
7122 * remote.c (remote_traceframe_number): New global.
7123 (remote_open_1): Set it to -1.
7124 (set_remote_traceframe): New function.
7125 (remote_fetch_registers, remote_store_registers)
7126 (remote_xfer_memory, remote_xfer_partial)
7127 (remote_get_trace_state_variable_value): Make sure the remote
7128 traceframe matches gdb's current traceframe.
7129 (remote_trace_find): If looking up a traceframe using any method
7130 other than by number, make sure the current remote traceframe
7131 matches gdb's current traceframe. Update the current remote
7132 traceframe if the lookup succeeded.
7133 * infrun.c (fetch_inferior_event): Adjust.
7134 * tracepoint.h (set_current_traceframe): Declare.
7135 (get_traceframe_number, set_traceframe_number): Add describing
7138 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7140 Mark pieces of values as unavailable if the corresponding memory
7143 * valops.c: Include tracepoint.h.
7144 (value_fetch_lazy): Use read_value_memory.
7145 (read_value_memory): New.
7146 * value.h (read_value_memory): Declare.
7147 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7148 * exec.c (section_table_available_memory): New function.
7149 * exec.h (section_table_available_memory): Declare.
7151 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7153 * Makefile.in (SFILES): Add memrange.c.
7154 (HFILES_NO_SRCDIR): Add memrange.h.
7155 (COMMON_OBS): Add memrange.o.
7156 * memrange.c: New file.
7157 * memrange.h: New file.
7158 * tracepoint.c: Include memrange.h.
7159 (struct mem_range): Delete.
7160 (mem_range_s): Delete.
7161 (traceframe_available_memory): New function.
7162 * tracepoint.h (traceframe_available_memory): Declare.
7164 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7166 * target.h (struct traceframe_info): Forward declare.
7167 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7168 (struct target_ops) <to_traceframe_info>: New field.
7169 (target_traceframe_info): New.
7170 * target.c (update_current_target): Inherit and default
7172 * remote.c (PACKET_qXfer_traceframe_info): New.
7173 (remote_protocol_features): Register qXfer:traceframe-info:read.
7174 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7175 (remote_traceframe_info): New.
7176 (init_remote_ops): Install it.
7177 (_initialize_remote): Install "set/show remote traceframe-info"
7179 * tracepoint.h (parse_traceframe_info): Declare.
7180 * tracepoint.c (struct mem_range): New.
7181 (mem_range_s): New typedef.
7182 (struct traceframe_info): New.
7183 (traceframe_info): New global.
7184 (free_traceframe_info): New function.
7185 (clear_traceframe_info): New function.
7186 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7188 (build_traceframe_info): New function.
7189 (tfile_traceframe_info): New function.
7190 (init_tfile_ops): Install tfile_traceframe_info.
7191 (traceframe_info_start_memory, free_result): New functions.
7192 (memory_attributes, traceframe_info_elements): New globals.
7193 (parse_traceframe_info, get_traceframe_info): New functions.
7194 * features/traceframe-info.dtd: New file.
7195 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7197 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7199 Base support for <unavailable> value contents.
7201 * value.h (value_bytes_available): Declare.
7202 (mark_value_bytes_unavailable): Declare.
7203 * value.c (struct range): New struct.
7204 (range_s): New typedef.
7205 (ranges_overlap): New function.
7206 (range_lessthan): New function.
7207 (ranges_contain_p): New function.
7208 (struct value) <unavailable>: New field.
7209 (value_bytes_available): New function.
7210 (mark_value_bytes_unavailable): New function.
7211 (require_not_optimized_out): Constify parameter.
7212 (require_available): New function.
7213 (value_contents_all, value_contents): Require all bytes be
7215 (value_free): Free `unavailable'.
7216 (value_copy): Copy `unavailable'.
7217 * valprint.h (val_print_unavailable): Declare.
7218 * valprint.c (valprint_check_validity): Rename `offset' parameter
7219 to `embedded_offset'. If printing a scalar, check whether the
7220 value chunk is available.
7221 (val_print_unavailable): New.
7222 (val_print_scalar_formatted): Check whether the value is
7224 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7225 pretty-printing unavailable values.
7227 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7229 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7230 * c-typeprint.c (c_type_print_args): Update the function comment. New
7231 variable param_type, initialize it. Remove const/volatile qualifiers
7232 for language_cplus and !show_artificial. Use param_type.
7234 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7236 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7237 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7238 * symtab.h (struct symtab) <next>: Comment extension.
7240 2011-02-12 Yao Qi <yao@codesourcery.com>
7242 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7244 2011-02-11 Yao Qi <yao@codesourcery.com>
7246 * common/Makefile.in: Add copyright header.
7248 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7250 * infrun.c (proceed): Move switching out and in of tfind mode from
7252 (fetch_inferior_event): ... to here.
7254 2011-02-11 Yao Qi <yao@codesourcery.com>
7256 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7258 * configure.ac: Add common to sub dir.
7259 * configure: Regenerate.
7261 2011-02-11 Yao Qi <yao@codesourcery.com>
7265 * common/Makefile.in: New.
7266 * common/configure.ac: New.
7267 * common/aclocal.m4: New.
7268 * common/configure: Generate.
7270 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7272 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7273 side of the parenthesis.
7276 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7277 * vec.h (VEC_block_remove): Fix comment.
7279 2011-02-08 Michael Snyder <msnyder@vmware.com>
7281 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7283 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7285 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7286 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7289 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7292 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7294 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7295 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7297 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7299 * dwarf2read.c (read_subroutine_type): Set special calling
7300 convention flag for functions compiled by IBM XL C for OpenCL.
7301 * ppc-sysv-tdep.c: Include "dwarf2.h"
7302 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7304 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7305 IBM OpenCL vector types calling convention.
7306 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7307 (ppc_sysv_abi_broken_return_value): Likewise.
7308 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7309 types calling convention.
7310 (ppc64_sysv_abi_return_value): Likewise.
7311 * spu-tdep.c: Include "dwarf2.h"
7312 (spu_return_value): Implement IBM OpenCL vector types calling
7315 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7317 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7318 correct ABI for AltiVec vector arguments.
7320 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7322 * valprint.c (val_print): Extend comment.
7323 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7324 interface explanation to val_print.
7325 (ada_val_print_array): Adjust comment to current interface.
7326 (print_field_values): Adjust comment to current interface.
7327 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7328 explanation to val_print.
7329 * f-valprint.c (f_val_print): Ditto.
7330 * jv-valprint.c (java_val_print): Ditto.
7331 * m2-valprint.c (m2_val_print): Ditto.
7332 * p-valprint.c (pascal_val_print): Ditto.
7334 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7336 * breakpoint.c (parse_breakpoint_sals): Fix description.
7338 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7339 Oguz Kayral <oguzkayral@gmail.com>
7341 * python/py-inferior.c (python_on_normal_stop): New function.
7342 (python_on_resume): New function.
7343 (python_inferior_exit): New function.
7344 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7345 inferior_exit observers.
7346 * python/py-evtregistry.c: New file.
7347 * python/py-threadevent.c : New file.
7348 * python/py-event.c: New file.
7349 * python/py-evts.c: New file.
7350 * python/py-continueevent.c: New file.
7351 * python/py-bpevent.c: New file.
7352 * python/py-signalevent.c: New file.
7353 * python/py-exetiedevent.c: New file.
7354 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7355 Move struct breakpoint_object from here...
7356 * python/python-internal.h: ... to here.
7357 * python/py-event.h: New file.
7358 * python/py-events.h: New file.
7359 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7360 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7361 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7362 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7363 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7364 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7365 Add build rules for all the above.
7367 2011-02-04 Tom Tromey <tromey@redhat.com>
7369 * dwarf2read.c (dwarf2_section_empty_p): New function.
7370 (dwarf2_read_section): Use dwarf2_section_empty_p.
7371 (dwarf2_section_size): New function.
7372 (dwarf2_get_section_info): Unconditionally read section.
7373 (dwarf2_read_index): Use dwarf2_section_empty_p.
7374 (partial_read_comp_unit_head): Use dwarf2_section_size.
7375 (dwarf2_symbol_mark_computed): Likewise.
7377 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7379 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7381 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7383 * mips-linux-tdep.c: Include xml-syscall.h.
7384 (mips_linux_get_syscall_number): New function.
7385 (mips_linux_init_abi): Add calls to
7386 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7387 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7388 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7389 * syscalls/mips-n32-linux.xml: New file.
7390 * syscalls/mips-n64-linux.xml: New file.
7391 * syscalls/mips-o32-linux.xml: New file.
7393 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7395 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7396 Complain about inverted range entries.
7397 (dwarf2_record_block_ranges): Likewise.
7399 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7402 * breakpoint.c (update_watchpoint): Fix name of the
7403 update_global_location_list function.
7404 (print_one_breakpoint): Fix typo.
7405 (_initialize_breakpoint): Remove extra space in hbreak help
7407 * breakpoint.h (struct bp_location) <length>: Fix field
7410 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7412 * regcache.c (registers_changed_ptid): Don't explictly always
7413 clear `current_regcache'. Only clear current_thread_ptid and
7414 current_thread_arch when PTID matches. Only reinit the frame
7415 cache if PTID matches the current inferior_ptid. Move alloca(0)
7417 (registers_changed): ... here.
7419 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7421 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7422 starts with __stack_chk_guard as stack guard symbol.
7424 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7426 * disasm.c (compare_lines): Handle the end of sequence markers
7427 within the line table to better support disassembling over
7428 compilation unit boundaries.
7430 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7432 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7433 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7434 implementation even if no symbols are available.
7435 (thumb_analyze_prologue): Update call to skip_prologue_function.
7436 (arm_analyze_prologue): Likewise.
7438 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7440 * arm-tdep.c: Include "observer.h".
7441 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7442 (arm_exidx_data_key): New static variable.
7443 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7444 (struct arm_exidx_data): Likewise.
7445 (arm_exidx_data_free): New function.
7446 (arm_compare_exidx_entries): Likewise.
7447 (arm_obj_section_from_vma): Likewise.
7448 (arm_exidx_new_objfile): Likewise.
7449 (arm_find_exidx_entry): Likewise.
7450 (arm_exidx_fill_cache): Likewise.
7451 (arm_exidx_unwind_sniffer): Likewise.
7452 (arm_exidx_unwind): New global variable.
7453 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7454 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7455 observer. Register arm_exidx_data_key as objfile data.
7457 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7459 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7460 due to accessing uninitialized variable. Fix indentation.
7462 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7464 * c-valprint.c (c_value_print): When doing virtual base pointer
7465 adjustment, create a new value with adjusted contents rather than
7466 changing the contents of the value being printed (and getting it
7469 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7471 * xml-support.c (xml_find_attribute): New.
7472 (xinclude_start_include): Use it.
7473 * xml-support.h (xml_find_attribute): Declare.
7474 * memory-map.c (memory_map_start_memory)
7475 (memory_map_start_property): Use xml_find_attribute.
7476 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7478 * remote.c (start_thread): Use xml_find_attribute.
7479 * solib-target.c (library_list_start_segment)
7480 (library_list_start_section, library_list_start_library)
7481 (library_list_start_list): Use xml_find_attribute.
7482 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7483 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7484 (tdesc_start_field): Use xml_find_attribute.
7486 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7488 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7489 (BUILD_OCL_VTYPES): Update.
7491 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7493 * configure.ac: Work around non-GNU sed limitation when computing
7494 python version number.
7495 * configure: Regenerate.
7497 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7499 Fix debug printing of TYPE_INSTANCE.
7500 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7501 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7503 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7505 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7506 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7507 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7508 * ada-operator.inc: Rename the file to ...
7509 * ada-operator.def: ... here, wrap all the entries by macro OP.
7510 * expprint.c (op_name_standard): Remove all the entries. Include
7511 "std-operator.def" instead.
7512 * expression.h (enum exp_opcode): Include "std-operator.def" and
7513 "ada-operator.def". Move all the entries ...
7514 * std-operator.def: ... here, wrap all the entries by macro OP.
7516 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7518 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7519 * breakpoint.c (remove_jit_event_breakpoints): New function.
7520 * jit.c (jit_descriptor_addr): Delete.
7521 (registering_code): Delete.
7522 (clear_int): Delete.
7523 (jit_inferior_data): New variable.
7524 (struct jit_inferior_data): New type.
7525 (get_jit_inferior_data): New function.
7526 (jit_inferior_data_cleanup): New function.
7527 (jit_read_descriptor): Adjust.
7528 (jit_register_code): Adjust.
7529 (jit_breakpoint_re_set_internal): New function; move code here ...
7530 (jit_inferior_init): ... from here.
7531 (jit_breakpoint_re_set): Adjust.
7532 (jit_reset_inferior_data_and_breakpoints): New function.
7533 (jit_inferior_created_observer): Adjust.
7534 (jit_inferior_exit_hook): Adjust.
7535 (jit_executable_changed_observer): New function.
7536 (jit_event_handler): Adjust.
7537 (_initialize_jit): Adjust.
7539 2011-01-31 Michael Snyder <msnyder@vmware.com>
7541 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7544 2011-01-31 Tom Tromey <tromey@redhat.com>
7547 * python/python.c (execute_gdb_command): Call
7548 prevent_dont_repeat.
7549 * top.c (suppress_dont_repeat): New global.
7550 (dont_repeat): Use it.
7551 (prevent_dont_repeat): New function.
7552 * command.h (prevent_dont_repeat): Declare.
7554 2011-01-31 Tom Tromey <tromey@redhat.com>
7556 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7557 * python/py-breakpoint.c (bppy_set_silent): Use
7558 breakpoint_set_silent.
7559 (bppy_set_thread): Use breakpoint_set_thread.
7560 (bppy_set_task): Use breakpoint_set_task.
7561 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7562 (breakpoint_set_task): Declare.
7563 (make_breakpoint_silent): Remove.
7564 * breakpoint.c (breakpoint_set_silent): New function.
7565 (breakpoint_set_thread): Likewise.
7566 (breakpoint_set_task): Likewise.
7567 (make_breakpoint_silent): Remove.
7569 2011-01-31 Tom Tromey <tromey@redhat.com>
7571 * breakpoint.h (user_breakpoint_p): Declare.
7572 * breakpoint.c (user_breakpoint_p): New function.
7573 (breakpoint_1): Use it.
7574 (save_breakpoints): Likewise.
7576 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7578 * configure.ac: Add handling of Python distribution on Windows.
7579 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7580 sysconfig variables are not defined, then do not use them.
7581 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7582 instead. On Windows, return all paths using forward-slashes
7583 rather than backslashes.
7585 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7587 * configure.ac: Remove fallback behavior for building
7588 against Python. Remove tweaking of Python include path.
7589 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7590 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7591 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7592 Always restore CPPFLAGS and LIBS after linking test.
7593 * configure: Regenerated.
7594 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7595 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7596 * python/python-internal.h: Adjust includes of Python .h files.
7598 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7600 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7603 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7605 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7608 2011-01-31 Yao Qi <yao@codesourcery.com>
7610 * arm-linux-nat.c: Update calls to regcache_register_status
7611 instead of regcache_valid_p.
7612 * aix-thread.c: Likewise.
7613 * i386gnu-nat.c: Likewise.
7615 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7618 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7619 touching TYPE_FIELD_ARTIFICIAL.
7621 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7623 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7626 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7628 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7629 selected, don't try iterating over the traceframe's blocks.
7630 (tfile_has_stack): If there's no traceframe selected, then there's
7632 (tfile_has_registers): If there's no traceframe selected, then
7633 there's no registers.
7635 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7637 * target.c (memory_xfer_partial): No need to restore shadows if we
7638 haven't read anything.
7640 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7642 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7643 and val_print_scalar_formatted.
7645 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7647 * tracepoint.c (tfile_read): New.
7648 (tfile_open): Use it.
7649 (tfile_get_traceframe_address): Use it.
7650 (tfile_trace_find): Use it.
7651 (walk_blocks_callback_func): New typedef.
7652 (match_blocktype): New function.
7653 (traceframe_walk_blocks): New function.
7654 (traceframe_find_block_type): New function.
7655 (tfile_fetch_registers, tfile_xfer_partial)
7656 (tfile_get_trace_state_variable_value): Use
7657 traceframe_find_block_type and tfile_read.
7659 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7661 * remote-mips.c: Add internationalization mark ups. Remove
7662 trailing \n from already marked up strings.
7664 2011-01-26 Tom Tromey <tromey@redhat.com>
7666 * python/py-prettyprint.c (print_string_repr): Clear
7667 'addressprint' option when calling val_print_string.
7668 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7669 option when calling val_print_string.
7671 2011-01-26 Tom Tromey <tromey@redhat.com>
7673 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7675 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7677 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7678 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7679 (gdb_py_long_as_ulongest): New defines.
7680 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7681 (gdb_py_int_as_long): Declare.
7682 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7683 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7684 (valpy_long): Add comment.
7685 * python/py-utils.c (get_addr_from_python): Use
7686 gdb_py_long_as_ulongest. Handle overflow properly.
7687 (gdb_py_object_from_longest): New function.
7688 (gdb_py_object_from_ulongest): Likewise.
7689 (gdb_py_int_as_long): Likewise.
7690 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7691 * python/py-symtab.c (salpy_get_pc): Use
7692 gdb_py_long_from_ulongest.
7693 (salpy_get_line): Use PyInt_FromLong.
7694 * python/py-param.c (set_parameter_value): Use
7696 * python/py-lazy-string.c (stpy_get_address): Use
7697 gdb_py_long_from_ulongest.
7698 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7699 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7700 * python/py-breakpoint.c (bppy_set_thread): Use
7702 (bppy_set_task): Likewise.
7703 (bppy_set_ignore_count): Likewise.
7704 (bppy_set_hit_count): Likewise.
7705 * python/py-block.c (blpy_get_start): Use
7706 gdb_py_object_from_ulongest.
7707 (blpy_get_end): Likewise.
7708 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7710 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7713 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7714 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7715 equality test for objfile, initialize addr_low if needed.
7717 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7719 * tui/tui-regs.c (tui_register_format): Remove dead code.
7721 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7723 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7724 instead of print_scalar_formatted.
7725 (print_scalar_formatted): Don't handle 's' format strings here,
7726 and add an assertion that we never see such format here.
7727 * valprint.h (val_print_scalar_formatted): Declare.
7728 * valprint.c (val_print_scalar_formatted): New.
7729 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7730 instead of print_scalar_formatted.
7731 * jv-valprint.c (java_val_print): Ditto.
7732 * p-valprint.c (pascal_val_print): Ditto.
7733 * ada-valprint.c (ada_val_print_1): Ditto.
7734 * f-valprint.c (f_val_print): Ditto.
7735 * infcmd.c (registers_info): Ditto.
7736 * m2-valprint.c (m2_val_print): Ditto.
7738 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7740 * m2-valprint.c (print_unbounded_array): Pass
7741 value_contents_for_printing rather than value_contents, to
7742 m2_print_array_contents. Also pass in the value.
7744 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7746 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7747 (save_gdb_index_command): Switch to .gdb_index version 4.
7749 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7751 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7752 than frame_register, and always pass a valid value to val_print.
7754 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7756 Centralize printing "<optimized out>".
7758 * valprint.h (val_print_optimized_out): Declare.
7759 * cp-valprint.c (cp_print_value_fields): Use
7760 val_print_optimized_out.
7761 * jv-valprint.c (java_print_value_fields): Ditto.
7762 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7763 * printcmd.c (print_formatted): Ditto.
7764 * valprint.c (valprint_check_validity): Ditto.
7765 (value_check_printable): Ditto.
7766 (val_print_optimized_out): New.
7768 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7770 * infcmd.c (default_print_registers_info): Allocate values so to
7771 never pass a NULL value to val_print.
7773 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7775 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7776 boolean. Make sure to always pass a value that matches the
7777 contents buffer to callees. Preserve `address' for following
7779 * value.c (value_contents_for_printing_const): New.
7780 (value_address): Constify value argument.
7781 * value.h (value_contents_for_printing_const): Declare.
7782 (value_address): Constify value argument.
7784 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7786 * regcache.c (struct regcache_descr): Rename
7787 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7788 and sizeof_cooked_register_valid_p to
7789 sizeof_cooked_register_status.
7790 (init_regcache_descr): Adjust.
7791 (struct regcache): Rename register_valid_p field to
7793 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7794 (do_cooked_read): Adjust.
7795 (regcache_valid_p): Rename to ...
7796 (regcache_register_status): ... this. Adjust.
7797 (regcache_invalidate): Adjust.
7798 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7800 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7801 as unavailable, not valid.
7802 (regcache_dump): Adjust.
7803 * regcache.h (enum register_status): New.
7804 (regcache_register_status): Declare.
7805 (regcache_invalidate): Delete declaration.
7806 * corelow.c (get_core_registers): Adjust.
7807 * tracepoint.c (tfile_fetch_registers): Adjust.
7808 * trad-frame.c (REG_VALUE): Rename to ...
7809 (TF_REG_VALUE): ... this.
7810 (REG_UNKNOWN): Rename to ...
7811 (TF_REG_UNKNOWN): ... this.
7812 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7813 * mi/mi-main.c (register_changed_p): Adjust.
7815 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7817 * regcache.c (struct regcache_descr): Remove outdated comment.
7818 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7820 (regcache_xmalloc): Rename to ...
7821 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7822 Allocate the regcache type accordingly.
7823 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7824 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7825 cooked registers, not raw.
7826 (regcache_dup_no_passthrough): Delete.
7827 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7828 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7829 mention obsolete write_register_bytes.
7830 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7832 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7834 Stop remote_read_bytes from handling partial reads itself.
7836 * remote-fileio.c: Include target.h.
7837 (remote_fileio_write_bytes): Delete.
7838 (remote_fileio_func_open, remote_fileio_func_write)
7839 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7841 (remote_fileio_func_stat): Use target_read_memory and
7842 target_write_memory.
7843 (remote_fileio_func_gettimeofday): Use target_write_memory.
7844 (remote_fileio_func_system): Use target_read_memory.
7845 * remote.c (remote_write_bytes): Make it static.
7846 (remote_read_bytes): Don't handle partial reads here.
7847 * remote.h (remote_read_bytes): Delete declaration.
7849 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7851 Simplify XML parsing a bit.
7853 * xml-support.h (gdb_xml_parse_quick): Declare.
7854 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7855 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7857 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7858 gdb_xml_create_parser_and_cleanup_1.
7859 (gdb_xml_parse_quick): New.
7860 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7861 * osdata.c (osdata_parse): Ditto.
7862 * remote.c (remote_threads_info): Ditto.
7863 * solib-target.c (solib_target_parse_libraries): Ditto.
7864 * xml-syscall.c (syscall_parse_xml): Ditto.
7865 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7867 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7869 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7870 with remote-mips.o added to gdb_target_obs.
7871 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7873 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7875 * ada-valprint.c (val_print_packed_array_elements): Pass the
7876 correct struct value to val_print.
7877 (ada_val_print_1): Ditto.
7879 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7881 Don't lose embedded_offset in printing routines throughout.
7883 * valprint.h (val_print_array_elements): Change prototype.
7884 * valprint.c (val_print_array_elements): Add `embedded_offset'
7885 parameter, and adjust to pass it down to val_print, while passing
7886 `valaddr' or `address' unmodified. Take embedded_offset into
7887 account when checking repetitions.
7888 * c-valprint.c (c_val_print): Pass embedded_offset to
7889 val_print_array_elements instead of adjusting `valaddr' and
7891 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7892 embedded_offset to val_print_array_elements instead of adjusting
7894 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7895 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7896 val_print_array_elements and pascal_object_print_value_fields
7897 instead of adjusting `valaddr'.
7898 (pascal_object_print_value_fields): Add `offset' parameter, and
7900 (pascal_object_print_value): Add `offset' parameter, and adjust to
7902 (pascal_object_print_static_field): Use
7903 value_contents_for_printing/value_embedded_offset, rather than
7905 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7906 parameter, and adjust to use it. Use
7907 value_contents_for_printing/value_embedded_offset, rather than
7909 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7910 (ada_val_print_array): Add `offset' parameter, and adjust to use
7912 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7913 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7914 Instead work with offsets. Use
7915 value_contents_for_printing/value_embedded_offset, rather than
7916 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7917 and use value_from_pointer to extract a target pointer, rather
7918 than value_from_longest.
7919 (print_variant_part): Add `offset' parameter. Replace
7920 `outer_valaddr' parameter by a new `outer_offset' parameter.
7921 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7922 (ada_value_print): Use
7923 value_contents_for_printing/value_embedded_offset, rather than
7925 (print_record): Add `offset' parameter, and adjust to pass it
7927 (print_field_values): Add `offset' parameter. Replace
7928 `outer_valaddr' parameter by a new `outer_offset' parameter.
7929 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7930 Use value_contents_for_printing/value_embedded_offset, rather than
7932 * d-valprint.c (dynamic_array_type): Use
7933 value_contents_for_printing/value_embedded_offset, rather than
7935 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7936 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7937 (java_print_value_fields): Take `offset' into account. Don't
7938 re-adjust `valaddr'. Instead pass down adjusted offsets.
7939 (java_val_print): Take `embedded_offset' into account. Pass it to
7940 java_print_value_fields.
7941 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7942 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7943 down adjusted offsets.
7944 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7945 (f_val_print): Take `embedded_offset' into account.
7947 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7949 * inflow.c: Include "gdbcmd.h".
7950 (interactive_mode): New static global, moved here from top.c.
7951 (show_interactive_mode): New function, moved here from top.c.
7952 use gdb_has_a_terminal instead of input_from_terminal_p to
7953 determine the current mode.
7954 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7956 (_initialize_inflow): Add the "set/show interactive-mode"
7957 commands. Moved here from top.c, after having adjusted slightly
7959 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7961 (input_from_terminal_p): Remove handling of "interactive-mode"
7962 setting, moved to infow.c.
7963 (init_main): Remove creation of the "set/show interactive-mode"
7964 commands, moved to inflow.c.
7966 2011-01-19 Joel Brobecker <brobecker@adacore.com>
7968 * NEWS: Add entry for native ia64-hpux support.
7970 2011-01-19 Tom Tromey <tromey@redhat.com>
7973 * thread.c (free_thread): Free 'name'.
7974 (print_thread_info): Emit thread name. Change CLI output.
7975 (thread_name_command): New function.
7976 (do_captured_thread_select): Emit newline.
7977 (_initialize_thread): Register 'thread name' command.
7978 * target.h (struct target_ops) <to_thread_name>: New field.
7979 (target_thread_name): New macro.
7980 * target.c (update_current_target): Handle to_thread_name.
7981 * python/py-infthread.c (thpy_get_name): New function.
7982 (thpy_set_name): Likewise.
7983 (thread_object_getset): Add "name".
7984 * linux-nat.c (linux_nat_thread_name): New function.
7985 (linux_nat_add_target): Set to_thread_name.
7986 * gdbthread.h (struct thread_info) <name>: New field.
7988 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7990 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7991 (ada_val_print_1): Likewise.
7993 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7995 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7996 upper limit address is not greater than the function end address
7997 when the upper limit could not be computed using the debugging
8000 2011-01-17 Tom Tromey <tromey@redhat.com>
8002 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8004 * utils.c: Include gdb_regex.h.
8005 (do_regfree_cleanup): New function.
8006 (make_regfree_cleanup): Likewise.
8007 (get_regcomp_error): Likewise.
8008 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8010 2011-01-17 Tom Tromey <tromey@redhat.com>
8012 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8015 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8017 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8018 for internal variables.
8019 (last_was_structop): New static variable.
8020 (COMPLETE): New token.
8021 (field_exp): New rule to group all '.' suffix handling.
8022 Add mark_struct_expression calls when approriate to be able
8023 to correctly find fields for completion.
8024 (yylex): Adapt to handle field completion and set INTVAR when
8027 2011-01-14 Yao Qi <yao@codesourcery.com>
8029 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8030 save_reggroup, restore_reggroup and all_reggroup.
8032 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8034 * ada-valprint. (ada_printchar): Use the correct type length
8035 in call to ada_emit_char.
8036 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8038 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8040 * solib-som.h (hpux_major_release): Declare variable here.
8041 * solib-som.c: Remove <sys/utsname.h> header.
8042 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8043 (hpux_major_release): Make global, change default value to
8044 DEFAULT_HPUX_MAJOR_RELEASE.
8045 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8046 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8047 Add "solib-som.h" header.
8048 (set_hpux_major_release): New function.
8049 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8051 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8053 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8055 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8057 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8058 new-line at end of warning message.
8059 (ia64_hpux_store_register): Remove trailing new-line at end of
8061 * ia64-hpux-tdep.c: Rephrase comment.
8062 * solib-ia64-hpux.c (struct dld_info): Change type of field
8063 dld_flags from "long long" to ULONGEST.
8065 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8067 * target.h (deprecated_child_ops): Delete declaration.
8068 * target.c (deprecated_child_ops): Delete definition.
8070 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8072 * Makefile.in (hpux-thread.o): Delete rule.
8073 * configure.ac: Don't check for HPUX DCE threads support.
8074 * configure, config.in: Regenerate.
8075 * hppa-hpux-nat.c (child_suppress_run): Delete.
8076 (hppa_hpux_child_can_run): Delete.
8077 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8078 * hpux-thread.c: Delete.
8080 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8082 * hpux-thread.c (hpux_pid_to_str): Delete.
8084 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8086 * ada-valprint.c (ada_emit_char): Remove strange code.
8087 Check that c is <= UCHAR_MAX before passing it to isascii.
8088 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8090 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8092 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8093 to the case where instream is stdin.
8095 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8097 * ia64-tdep.h (struct regcache): Forward declare.
8098 (struct ia64_infcall_ops): New struct type.
8099 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8101 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8102 Renames ia64_find_global_pointer.
8103 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8104 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8105 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8107 (ia64_infcall_ops): New static global constant.
8108 (ia64_gdbarch_init): Set tdep->infcall_ops.
8109 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8110 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8111 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8112 (ia64_hpux_dummy_code): New static global constant.
8113 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8114 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8115 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8117 (ia64_hpux_infcall_ops): New static global constant.
8118 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8119 for inferior function calls to work properly on ia64-hpux.
8121 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8123 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8124 * ia64-tdep.h (struct frame_info): forward declaration.
8125 (struct gdbarch_tdep): Add field size_of_register_frame.
8126 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8127 to determine the size of the register frame.
8128 (ia64_size_of_register_frame): New function.
8129 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8130 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8131 (IA64_HPUX_UREG_REASON): New macro.
8132 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8134 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8135 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8136 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8139 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8141 Add support for ia64-hpux.
8142 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8143 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8145 * configure.host: Add handling for ia64-hpux hosts. Add associated
8147 * configure.tgt: Add handling for ia64-hpux targets.
8148 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8149 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8150 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8152 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8154 [ttrace] Compute thread list immediately after attach.
8155 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8157 (inf_ttrace_attach): Use it.
8159 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8161 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8162 if we could not determine the frame's function address. Instead,
8163 use the frame's PC, and then continue.
8165 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8167 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8168 not already defined.
8170 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8172 * ia64-tdep.c (ia64_struct_type_p): New function.
8173 (ia64_extract_return_value): Handle integral values that are
8174 less than 8 bytes long.
8175 (ia64_push_dummy_call): Likewise.
8177 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8179 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8180 floatformat_ia64_ext.
8181 (floatformat_ia64_ext_big): New static const.
8182 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8184 2011-01-12 Tom Tromey <tromey@redhat.com>
8186 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8188 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8189 (mi_cmd_thread_list_ids): Likewise.
8190 (mi_cmd_data_list_changed_registers): Likewise.
8191 (mi_cmd_data_list_register_values): Likewise.
8192 (mi_cmd_data_write_register_values): Likewise.
8193 (mi_cmd_data_evaluate_expression): Likewise.
8194 (mi_cmd_data_read_memory): Likewise.
8195 (mi_cmd_data_read_memory_bytes): Likewise.
8196 (mi_cmd_data_write_memory): Likewise.
8197 (mi_cmd_enable_timings): Likewise.
8198 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8199 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8200 (mi_cmd_var_delete): Likewise.
8201 (mi_cmd_var_set_format): Likewise.
8202 (mi_cmd_var_show_format): Likewise.
8203 (mi_cmd_var_info_num_children): Likewise.
8204 (mi_cmd_var_list_children): Likewise.
8205 (mi_cmd_var_info_type): Likewise.
8206 (mi_cmd_var_info_expression): Likewise.
8207 (mi_cmd_var_show_attributes): Likewise.
8208 (mi_cmd_var_assign): Likewise.
8209 (mi_cmd_var_update): Likewise.
8210 (mi_cmd_enable_pretty_printing): Likewise.
8211 (mi_cmd_var_set_update_range): Likewise.
8212 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8214 (mi_cmd_target_file_put): Likewise.
8215 (mi_cmd_target_file_delete): Likewise.
8216 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8218 (mi_cmd_stack_info_depth): Likewise.
8219 (mi_cmd_stack_list_locals): Likewise.
8220 (mi_cmd_stack_list_args): Likewise.
8221 (mi_cmd_stack_select_frame): Likewise.
8222 (mi_cmd_stack_select_frame): Likewise.
8223 (mi_cmd_stack_info_frame): Likewise.
8224 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8226 (mi_cmd_file_list_exec_source_files): Likewise.
8227 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8228 (mi_cmd_env_cd): Likewise.
8229 (mi_cmd_env_path): Likewise.
8230 (mi_cmd_env_dir): Likewise.
8231 (mi_cmd_inferior_tty_show): Likewise.
8232 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8233 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8234 (mi_cmd_break_watch): Likewise.
8236 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8238 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8239 (ppc_linux_insert_hw_breakpoint): Likewise.
8240 (ppc_linux_remove_hw_breakpoint): Likewise.
8241 (ppc_linux_insert_watchpoint): Likewise.
8243 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8244 Jan Kratochvil <jan.kratochvil@redhat.com>
8246 PR fortran/11104 and DWARF unbound arrays detection.
8247 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8248 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8249 unspecified upper bound.
8250 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8251 variables array_size_array, tmp_type and offset_item. New variable
8252 array. Remove call to f77_get_upperbound. New variables array_type
8253 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8254 the final call to deprecated_set_value_type.
8256 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8258 Make value allocations more lazy.
8259 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8260 instead of allocate_value and set_value_lazy when possible.
8261 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8262 instead of allocate_value and set_value_lazy.
8263 * findvar.c (value_of_register_lazy): Likewise.
8264 (read_var_value): Remove V preallocation, call just check_typedef in
8265 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8266 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8267 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8268 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8269 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8270 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8271 the end, remove set_value_lazy there.
8272 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8273 instead of allocate_value and set_value_lazy when possible.
8274 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8275 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8276 of allocate_value and set_value_lazy.
8277 (value_from_contents_and_address): Use allocate_value_lazy instead of
8278 allocate_value and set_value_lazy when possible.
8280 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8282 * disasm.c (dump_insns): Support dumping opcodes for MI.
8283 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8284 dumping of instruction opcodes.
8286 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8288 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8291 2011-01-11 Tom Tromey <tromey@redhat.com>
8293 * thread.c (do_captured_thread_select): Emit newline before
8296 2011-01-11 Michael Snyder <msnyder@vmware.com>
8298 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8299 * score-tdep.c: Ditto.
8300 * score-tdep.h: Ditto.
8301 * ser-base.c: Ditto.
8302 * ser-go32.c: Ditto.
8305 * ser-mingw.c: Ditto.
8306 * ser-pipe.c: Ditto.
8308 * ser-unix.c: Ditto.
8309 * sh64-tdep.c: Ditto.
8310 * shnbsd-nat.c: Ditto.
8314 * solib-darwin.c: Ditto.
8315 * solib-frv.c: Ditto.
8317 * solib-irix.c: Ditto.
8318 * solib-osf.c: Ditto.
8319 * solib-pa64.c: Ditto.
8320 * solib-som.c: Ditto.
8321 * solib-spu.c: Ditto.
8322 * solib-sunos.c: Ditto.
8323 * solib-svr4.c: Ditto.
8325 * sol-thread.c: Ditto.
8329 * sparc64-linux-tdep.c: Ditto.
8330 * sparc64-tdep.c: Ditto.
8331 * sparc-linux-nat.c: Ditto.
8332 * sparc-linux-tdep.c: Ditto.
8333 * sparc-sol2-nat.c: Ditto.
8334 * sparc-sol2-tdep.c: Ditto.
8335 * sparc-tdep.c: Ditto.
8336 * sparc-tdep.h: Ditto.
8337 * spu-tdep.c: Ditto.
8338 * stabsread.c: Ditto.
8339 * stabsread.h: Ditto.
8347 * target-descriptions.c: Ditto.
8348 * target-descriptions.h: Ditto.
8350 * target-memory.c: Ditto.
8351 * terminal.h: Ditto.
8354 * tracepoint.c: Ditto.
8355 * tracepoint.h: Ditto.
8356 * trad-frame.h: Ditto.
8357 * typeprint.c: Ditto.
8359 2011-01-11 Michael Snyder <msnyder@vmware.com>
8361 * ui-file.c: Comment cleanup, mostly periods and spaces.
8366 * v850-tdep.c: Ditto.
8367 * valarith.c: Ditto.
8369 * valprint.c: Ditto.
8370 * valprint.h: Ditto.
8375 * vax-tdep.c: Ditto.
8379 * windows-nat.c: Ditto.
8380 * windows-tdep.c: Ditto.
8381 * xcoffread.c: Ditto.
8382 * xcoffsolib.c: Ditto.
8383 * xml-support.c: Ditto.
8384 * xstormy16-tdep.c: Ditto.
8385 * xtensa-tdep.c: Ditto.
8386 * xtensa-tdep.h: Ditto.
8388 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8390 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8391 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8393 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8394 Thiago Jung Bauermann <bauerman@br.ibm.com>
8396 Implement support for PowerPC BookE ranged watchpoints.
8398 (struct breakpoint_ops) <resources_needed>: New method.
8399 Initialize to NULL in all existing breakpoint_ops instances.
8400 (struct breakpoint) <exact>: New field.
8401 (target_exact_watchpoints): Declare external global.
8402 * breakpoint.c (target_exact_watchpoints): New global flag.
8403 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8404 b->enable_state to bp_enabled before calling
8405 hw_watchpoint_used_count.
8406 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8407 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8409 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8410 if the watchpoint is exact.
8411 (resources_needed_watchpoint): New function.
8412 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8413 (watch_command_1): Set b->exact if the user asked for an exact
8414 watchpoint and one can be set.
8415 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8416 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8417 the user asks for an exact watchpoint and one can be set. Return
8418 number of needed debug registers to watch the expression.
8419 * gdbtypes.c (is_scalar_type): New function, based on
8420 valprint.c:scalar_type_p.
8421 (is_scalar_type_recursive): New function.
8422 * gdbtypes.h (is_scalar_type_recursive): Declare.
8423 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8424 handle regions when ranged watchpoints are available.
8425 (create_watchpoint_request): New function.
8426 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8427 create_watchpoint_request.
8428 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8429 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8430 `set powerpc' and `show powerpc' commands.
8431 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8432 Mention documentation comment in the target macro.
8433 (target_region_ok_for_hw_watchpoint): Document return value.
8435 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8437 * breakpoint.c (update_watchpoint): Decide on using a software or
8438 hardware watchpoint after the bp_locations are created.
8440 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8442 Convert hardware watchpoints to use breakpoint_ops.
8443 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8444 <insert_location>: ... this. Return int instead of void.
8445 Accept pointer to struct bp_location instead of pointer to
8446 struct breakpoint. Adapt all implementations.
8447 (breakpoint_ops) <remove>: Rename to...
8448 <remove_location>: ... this. Accept pointer to struct bp_location
8449 instead of pointer to struct breakpoint. Adapt all implementations.
8450 * breakpoint.c (insert_catchpoint): Delete function.
8451 (insert_bp_location): Call the watchpoint or catchpoint's
8452 breakpoint_ops.insert method.
8453 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8454 breakpoint_ops.remove method.
8455 (insert_watchpoint, remove_watchpoint): New functions.
8456 (watchpoint_breakpoint_ops): New structure.
8457 (watch_command_1): Initialize the OPS field.
8458 * inf-child.c (inf_child_insert_fork_catchpoint)
8459 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8460 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8461 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8463 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8464 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8465 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8466 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8467 * target.c (update_current_target): Change default implementation of
8468 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8469 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8470 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8471 to_set_syscall_catchpoint to return_one.
8472 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8473 (debug_to_insert_exec_catchpoint): Report return value.
8474 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8475 (to_insert_exec_catchpoint): Change declaration to return int instead
8478 2011-01-11 Michael Snyder <msnyder@vmware.com>
8480 * arm-tdep.c: Internationalization.
8483 * fork-child.c: Ditto.
8484 * nto-procfs.c: Ditto.
8485 * ppc-sysv-tdep.c: Ditto.
8487 * remote-mips.c: Ditto.
8489 * rs6000-nat.c: Ditto.
8490 * rs6000-tdep.c: Ditto.
8494 * xml-support.c: Ditto.
8495 * mi/mi-cmd-break.c: Ditto.
8496 * mi/mi-cmd-var.c: Ditto.
8497 * mi/mi-interp.c: Ditto.
8498 * mi/mi-main.c: Ditto.
8500 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8502 * remote-sim.c (gdbsim_store_register): Update API to
8503 sim_store_register to check more error conditions.
8505 2011-01-10 Michael Snyder <msnyder@vmware.com>
8507 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8508 * nto-tdep.c: Ditto.
8509 * nto-tdep.h: Ditto.
8510 * objc-exp.y: Ditto.
8511 * objc-lang.c: Ditto.
8512 * objfiles.c: Ditto.
8513 * objfiles.h: Ditto.
8514 * observer.c: Ditto.
8515 * opencl-lang.c: Ditto.
8518 * parser-defs.h: Ditto.
8521 * posix-hdep.c: Ditto.
8522 * ppcbug-rom.c: Ditto.
8523 * ppc-linux-nat.c: Ditto.
8524 * ppc-linux-tdep.c: Ditto.
8525 * ppc-linux-tdep.h: Ditto.
8526 * ppcnbsd-tdep.c: Ditto.
8527 * ppcobsd-tdep.c: Ditto.
8528 * ppcobsd-tdep.h: Ditto.
8529 * ppc-sysv-tdep.c: Ditto.
8530 * ppc-tdep.h: Ditto.
8531 * printcmd.c: Ditto.
8532 * proc-abi.c: Ditto.
8533 * proc-flags.c: Ditto.
8535 * proc-utils.h: Ditto.
8536 * progspace.h: Ditto.
8537 * prologue-value.c: Ditto.
8538 * prologue-value.h: Ditto.
8539 * psympriv.h: Ditto.
8541 * p-typeprint.c: Ditto.
8542 * p-valprint.c: Ditto.
8543 * ravenscar-sparc-thread.c: Ditto.
8544 * ravenscar-thread.c: Ditto.
8545 * ravenscar-thread.h: Ditto.
8547 * regcache.c: Ditto.
8548 * regcache.h: Ditto.
8550 * remote-fileio.c: Ditto.
8551 * remote-fileio.h: Ditto.
8553 * remote-m32r-sdi.c: Ditto.
8554 * remote-mips.c: Ditto.
8555 * remote-sim.c: Ditto.
8556 * rs6000-aix-tdep.c: Ditto.
8557 * rs6000-nat.c: Ditto.
8558 * rs6000-tdep.c: Ditto.
8560 2011-01-10 Michael Snyder <msnyder@vmware.com>
8562 * charset.c (validate): Internationalization.
8563 * coffread.c (read_one_sym): Ditto.
8564 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8565 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8566 * inflow.c (new_tty): Ditto.
8567 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8568 * m32c-tdep.c (m32c_return_value): Ditto.
8569 * mep-tdep.c (mep_store_return_value): Ditto.
8570 * score-tdep.c (score7_fetch_insn): Ditto.
8571 * ser-mingw.c (pipe_windows_open): Ditto.
8572 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8573 * spu-tdep.c (spu_register_type): Ditto.
8574 * tracepoint.c (trace_find_command): Ditto.
8575 * valarith.c (value_pos): Ditto.
8577 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8579 * ada-valprint.c (printstr): Minor comment reformatting.
8581 2011-01-08 Michael Snyder <msnyder@vmware.com>
8583 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8586 2011-01-08 Michael Snyder <msnyder@vmware.com>
8588 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8589 * hppa-hpux-tdep.c: Ditto.
8590 * hppa-linux-nat.c: Ditto.
8591 * hppa-linux-tdep.c: Ditto.
8592 * hppanbsd-tdep.c: Ditto.
8593 * hppa-tdep.c: Ditto.
8594 * hppa-tdep.h: Ditto.
8595 * hpux-thread.c: Ditto.
8596 * i386-cygwin-tdep.c: Ditto.
8597 * i386-darwin-nat.c: Ditto.
8598 * i386gnu-nat.c: Ditto.
8599 * i386-linux-nat.c: Ditto.
8600 * i386-linux-tdep.c: Ditto.
8601 * i386-nat.c: Ditto.
8602 * i386-nat.h: Ditto.
8603 * i386nbsd-tdep.c: Ditto.
8604 * i386-sol2-nat.c: Ditto.
8605 * i386-stub.c: Ditto.
8606 * i386-tdep.c: Ditto.
8607 * i386-tdep.h: Ditto.
8608 * i387-tdep.c: Ditto.
8609 * ia64-linux-nat.c: Ditto.
8610 * ia64-linux-tdep.c: Ditto.
8611 * ia64-tdep.c: Ditto.
8615 * inferior.c: Ditto.
8616 * inferior.h: Ditto.
8622 * iq2000-tdep.c: Ditto.
8623 * irix5-nat.c: Ditto.
8629 * jv-typeprint.c: Ditto.
8630 * jv-valprint.c: Ditto.
8631 * language.c: Ditto.
8632 * language.h: Ditto.
8633 * linespec.c: Ditto.
8634 * linux-fork.c: Ditto.
8635 * linux-nat.c: Ditto.
8636 * linux-thread-db.c: Ditto.
8637 * lm32-tdep.c: Ditto.
8639 2011-01-08 Michael Snyder <msnyder@vmware.com>
8641 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8643 * m2-typeprint.c: Ditto.
8644 * m2-valprint.c: Ditto.
8645 * m32c-tdep.c: Ditto.
8646 * m32r-linux-nat.c: Ditto.
8647 * m32r-rom.c: Ditto.
8648 * m32r-tdep.c: Ditto.
8649 * m32r-tdep.h: Ditto.
8650 * m68hc11-tdep.c: Ditto.
8651 * m58klinux-nat.c: Ditto.
8652 * m68k-tdep.c: Ditto.
8653 * m88k-tdep.c: Ditto.
8654 * m88k-tdep.h: Ditto.
8655 * machoread.c: Ditto.
8656 * macrocmd.c: Ditto.
8657 * macroexp.c: Ditto.
8658 * macrotab.c: Ditto.
8661 * mdebugread.c: Ditto.
8662 * mdebugread.h: Ditto.
8665 * memory-map.h: Ditto.
8666 * mep-tdep.c: Ditto.
8667 * microblaze-rom.c: Ditto.
8668 * microblaze-tdep.c: Ditto.
8670 * mips-irix-tdep.c: Ditto.
8671 * mips-linux-nat.c: Ditto.
8672 * mips-linux-tdep.c: Ditto.
8673 * mips-linux-tdep.h: Ditto.
8674 * mipsnbsd-nat.c: Ditto.
8675 * mipsnbsd-tdep.c: Ditto.
8676 * mipsread.c: Ditto.
8677 * mips-tdep.c: Ditto.
8678 * mips-tdep.h: Ditto.
8679 * mn10300-linux-tdep.c: Ditto.
8680 * mn10300-tdep.c: Ditto.
8681 * mn10300-tdep.h: Ditto.
8684 * moxie-tdep.c: Ditto.
8685 * moxie-tdep.h: Ditto.
8688 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8690 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8692 2011-01-08 Robert Millan <rmh@gnu.org>
8694 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8696 2011-01-07 Michael Snyder <msnyder@vmware.com>
8698 * charset.c (_initialize_charset): Fix typo in string.
8700 2011-01-07 Michael Snyder <msnyder@vmware.com>
8702 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8704 * tui/tui-layout.c (tui_set_layout_for_display_command):
8705 Split line so that operator goes to beginning of line.
8706 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8707 assignment out of if statement.
8709 2011-01-07 Michael Snyder <msnyder@vmware.com>
8711 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8712 * ada-lang.h: Ditto.
8713 * ada-tasks.c: Ditto.
8714 * ada-valprint.c: Ditto.
8715 * aix-threads.c: Ditto.
8716 * alpha-linux-nat.c: Ditto.
8717 * alpha-linux-tdep.c: Ditto.
8718 * alpha-mdebug-tdep.c: Ditto.
8719 * alpha-nat.c: Ditto.
8720 * alpha-osf1-tdep.c: Ditto.
8721 * alpha-tdep.c: Ditto.
8722 * alphabsd-nat.c: Ditto.
8723 * alphabsd-tdep.c: Ditto.
8724 * amd64-darwin-tdep.c: Ditto.
8725 * amd64-linux-nat.c: Ditto.
8726 * amd64-linux-tdep.c: Ditto.
8727 * amd64-sol2-tdep.c: Ditto.
8728 * amd64-tdep.c: Ditto.
8729 * amd64-fbsd-tdep.c: Ditto.
8730 * amd64-nbsd-tdep.c: Ditto.
8731 * amd64-obsd-tdep.c: Ditto.
8732 * amd64-linux-nat.c: Ditto.
8733 * amd64-linux-tdep.c: Ditto.
8734 * arm-tdep.c: Ditto.
8735 * arm-tdep.h: Ditto.
8736 * armnbsd-nat.c: Ditto.
8737 * avr-tdep.c: Ditto.
8738 * bfin-tdep.c: Ditto.
8740 * c-typeprintc: Ditto.
8741 * c-valprint.c: Ditto.
8742 * coff-pe-read.h: Ditto.
8743 * coffreead.c: Ditto.
8744 * cris-tdep.c: Ditto.
8746 * darwin-nat-info.c: Ditto.
8747 * darwin-nat.c: Ditto.
8748 * dbug-rom.c: Ditto.
8752 * dec-thread.c: Ditto.
8754 * demangle.c: Ditto.
8755 * dicos-tdep.c: Ditto.
8756 * dictionary.c: Ditto.
8757 * dictionary.h: Ditto.
8758 * dink32-rom.c: Ditto.
8760 * doublest.c: Ditto.
8762 * dummy-frame.c: Ditto.
8763 * dwarf2-frame.c: Ditto.
8764 * dwarf2expr.c: Ditto.
8765 * dwarf2loc.c: Ditto.
8766 * dwarf2read.c: Ditto.
8770 * event-top.h: Ditto.
8771 * exceptions.c: Ditto.
8772 * exceptions.h: Ditto.
8774 * expprint.c: Ditto.
8775 * expression.h: Ditto.
8779 * f-typeprint.c: Ditto.
8780 * f-valprint.c: Ditto.
8781 * fbsd-nat.c: Ditto.
8783 * fork-child.c: Ditto.
8786 * frv-linux-tdep.c: Ditto.
8787 * frv-tdep.c: Ditto.
8789 * gdb-stabs.h: Ditto.
8790 * gdb_assert.h: Ditto.
8791 * gdb_string.h: Ditto.
8792 * gdb_thread_db.h: Ditto.
8793 * gdb_wait.h: Ditto.
8794 * gdbarch.sh: Ditto.
8796 * gdbthread.h: Ditto.
8797 * gdbtypes.c: Ditto.
8798 * gdbtypes.h: Ditto.
8801 * gnu-v2-abi.c: Ditto.
8802 * gnu-v3-abi.c: Ditto.
8803 * go32-nat.c: Ditto.
8804 * gdbarch.c: Regenerate.
8805 * gdbarch.h: Regenerate.
8807 2011-01-07 Michael Snyder <msnyder@vmware.com>
8809 * ax-gdb.c: Adjust some long output strings.
8810 * breakpoint.c: Ditto.
8815 * linux-nat.c: Ditto.
8816 * solib-pa64.c: Ditto.
8817 * solib-som.c: Ditto.
8819 2011-01-06 Tom Tromey <tromey@redhat.com>
8823 * python/python.c (GdbMethods): Add "newest_frame" method.
8824 * python/python-internal.h (gdbpy_newest_frame): Declare.
8825 * python/py-frame.c (gdbpy_newest_frame): New function.
8827 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8829 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8830 * jit.c (jit_debug): New variable.
8831 (show_jit_debug): New function.
8832 (struct target_buffer): Use ULONGEST.
8833 (bfd_open_from_target_memory): Likewise.
8834 (jit_register_code, jit_inferior_init): Add debug output.
8835 (_initialize_jit): Register "debug jit" command.
8837 2011-01-06 Tom Tromey <tromey@redhat.com>
8839 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8840 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8843 2011-01-06 Tom Tromey <tromey@redhat.com>
8845 * python/py-frame.c (frapy_block): Use get_frame_block.
8847 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8849 Do not stop on SIGPRIO signals by default
8850 * infrun.c (_initialize_infrun): Unset signal_stop and
8851 signal_print for TARGET_SIGNAL_PRIO.
8853 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8855 * ada-tasks.c: Fix style violation in comment.
8857 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8859 * linespec.c (decode_compound, find_method): Remove trailing \n
8860 at end of error string.
8861 * solib-irix.c (irix_current_sos): Likewise.
8862 * varobj.c (uninstall_variable): Likewise.
8864 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8866 * copyright.py: New script.
8867 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8868 Launch emacs without exec'ing. Call copyright.py afterwards.
8870 2011-01-05 Michael Snyder <msnyder@vmware.com>
8872 * addrmap.c: Shorten lines of >= 80 columns.
8873 * arch-utils.c: Ditto.
8874 * arch-utils.h: Ditto.
8876 * ax-general.c: Ditto.
8878 * blockframe.c: Ditto.
8879 * breakpoint.c: Ditto.
8880 * buildsym.c: Ditto.
8882 * c-typeprint.c: Ditto.
8884 * coffread.c: Ditto.
8888 * cp-namespace.c: Ditto.
8889 * cp-support.c: Ditto.
8890 * dbug-rom.c: Ditto.
8895 * dictionary.c: Ditto.
8897 * doublest.c: Ditto.
8898 * dwarf2-frame.c: Ditto.
8899 * dwarf2expr.c: Ditto.
8900 * dwarf2loc.c: Ditto.
8901 * dwarf2read.c: Ditto.
8904 * event-loop.c: Ditto.
8905 * event-loop.h: Ditto.
8906 * exceptions.h: Ditto.
8908 * expprint.c: Ditto.
8909 * expression.h: Ditto.
8911 * f-valprint.c: Ditto.
8913 * frame-base.c: Ditto.
8914 * frame-unwind.c: Ditto.
8915 * frame-unwind.h: Ditto.
8919 * gdb-stabs.h: Ditto.
8920 * gdb_assert.h: Ditto.
8921 * gdb_dirent.h: Ditto.
8922 * gdb_obstack.h: Ditto.
8924 * gdbtypes.c: Ditto.
8925 * gdbtypes.h: Ditto.
8926 * inf-ttrace.c: Ditto.
8931 * inline-frame.h: Ditto.
8932 * language.c: Ditto.
8933 * language.h: Ditto.
8934 * libunwind-frame.c: Ditto.
8935 * libunwind-frame.h: Ditto.
8936 * linespec.c: Ditto.
8937 * linux-nat.c: Ditto.
8938 * linux-nat.h: Ditto.
8939 * linux-thread-db.c: Ditto.
8940 * machoread.c: Ditto.
8941 * macroexp.c: Ditto.
8942 * macrotab.c: Ditto.
8945 * mdebugread.c: Ditto.
8950 * objfiles.c: Ditto.
8951 * objfiles.h: Ditto.
8953 * p-typeprint.c: Ditto.
8954 * p-valprint.c: Ditto.
8956 * printcmd.c: Ditto.
8957 * proc-events.c: Ditto.
8959 * progspace.c: Ditto.
8960 * progspace.h: Ditto.
8961 * psympriv.h: Ditto.
8964 * regcache.c: Ditto.
8965 * regcache.h: Ditto.
8966 * remote-fileio.c: Ditto.
8968 * ser-mingw.c: Ditto.
8970 * ser-unix.c: Ditto.
8973 * solib-frv.c: Ditto.
8974 * solib-irix.c: Ditto.
8975 * solib-osf.c: Ditto.
8976 * solib-pa64.c: Ditto.
8977 * solib-som.c: Ditto.
8978 * solib-sunos.c: Ditto.
8979 * solib-svr4.c: Ditto.
8980 * solib-target.c: Ditto.
8984 * stabsread.c: Ditto.
8985 * stabsread.c: Ditto.
8988 * symfile-mem.c: Ditto.
8994 * target-descriptions.c: Ditto.
8995 * target-memory.c: Ditto.
8998 * terminal.h: Ditto.
9001 * tracepoint.c: Ditto.
9002 * tracepoint.h: Ditto.
9006 * user-regs.c: Ditto.
9007 * user-regs.h: Ditto.
9009 * valarith.c: Ditto.
9011 * valprint.c: Ditto.
9012 * valprint.h: Ditto.
9017 * xcoffread.c: Ditto.
9018 * xcoffsolib.c: Ditto.
9019 * xcoffsolib.h: Ditto.
9020 * xml-syscall.c: Ditto.
9021 * xml-tdesc.c: Ditto.
9023 2011-01-05 Michael Snyder <msnyder@vmware.com>
9025 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9026 * cli/cli-decode.c: Ditto.
9027 * cli/cli-dump.c: Ditto.
9028 * cli/cli-logging.c: Ditto.
9029 * cli/cli-script.c: Ditto.
9030 * cli/cli-setshow.c: Ditto.
9031 * common/signals.c: Ditto.
9032 * mi/mi-cmd-break.c: Ditto.
9033 * mi/mi-cmd-disas.c: Ditto.
9034 * mi/mi-cmd-stack.c: Ditto.
9035 * mi/mi-cmd-var.c: Ditto.
9036 * mi/mi-cmds.c: Ditto.
9037 * mi/mi-common.h: Ditto.
9038 * mi/mi-console.c: Ditto.
9039 * mi/mi-interp.c: Ditto.
9040 * mi/mi-main.c: Ditto.
9041 * osf-share/cma_attr.c: Ditto.
9042 * osf-share/cma_deb_core.h: Ditto.
9043 * osf-share/cma_debug_client.h: Ditto.
9044 * osf-share/cma_handle.h: Ditto.
9045 * osf-share/cma_mutex.h: Ditto.
9046 * osf-share/cma_stack_int.h: Ditto.
9047 * osf-share/cma_tcb_defs.h: Ditto.
9048 * python/py-auto-load.c: Ditto.
9049 * python/py-breakpoint.c: Ditto.
9050 * python/py-cmd.c: Ditto.
9051 * python/py-frame.c: Ditto.
9052 * python/py-objfile.c: Ditto.
9053 * python/py-param.c: Ditto.
9054 * python/py-progspace.c: Ditto.
9055 * python/py-symbol.c: Ditto.
9056 * python/py-value.c: Ditto.
9057 * python/python-internal.h: Ditto.
9058 * python/python.c: Ditto.
9059 * tui/tui-data.c: Ditto.
9060 * tui/tui-disasm.c: Ditto.
9061 * tui/tui-hooks.c: Ditto.
9062 * tui/tui-io.c: Ditto.
9063 * tui/tui-layout.c: Ditto.
9064 * tui/tui-regs.c: Ditto.
9065 * tui/tui-source.c: Ditto.
9066 * tui/tui-stack.c: Ditto.
9067 * tui/tui-win.c: Ditto.
9068 * tui/tui-windata.c: Ditto.
9069 * tui/tui-winsource.c: Ditto.
9071 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9073 * configure.ac, gdb.1: Copyright year update.
9075 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9077 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9078 this_pc_in_block, morestack_msym and morestack_name. Check for
9079 "__morestack" minimal symbol there.
9081 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9083 * symfile.c (find_sym_fns): Add call to dont_repeat.
9085 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9087 Copyright year update in most files (performed by copyright.sh).
9089 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9091 * top.c (print_gdb_version): Update copyright year in version output.
9093 For older changes see ChangeLog-2010.
9099 version-control: never