1 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3 * solib.c (solib_used): New function.
4 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
5 by another so_list object before freeing it.
7 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
13 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
16 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
17 (amd64_skip_xmm_prologue): ... this new function. Describe its
18 parameters. No longer use amd64_prologue_line_bug.
19 * defs.h (producer_is_gcc_ge_4): New declaration.
20 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
21 (process_full_comp_unit): Update its caller. Remove
22 amd64_prologue_line_bug initialization.
23 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
24 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
26 2011-09-09 Pedro Alves <pedro@codesourcery.com>
28 * linux-nat.h (enum resume_kind): New.
29 (struct lwp_info) <last_resume_kind>: New field.
30 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
31 resume_stop on the new lwp.
32 (add_lwp): Set last_resume_kind as resume_continue by default.
33 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
34 (resume_lwp): New, factored out from resume_callback. Also check
35 for pending status in lp->waitstatus.
36 (resume_callback): Reimplement.
37 (resume_clear_callback): Set last_resume_kind as resume_stop.
38 (resume_set_callback): Set last_resume_kind as resume_continue.
39 (linux_nat_resume, linux_handle_extended_wait): Set
41 (running_callback): Also check lp->waitstatus for pending events.
42 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
44 (stop_and_resume_callback): Don't re-resume if the core wanted the
45 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
46 using an invalidated pointer.
47 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
48 SIGSTOPs if the core wanted the LWP to stop.
49 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
50 wanted the lwp to stop. If the core wanted the lwp to stop, and
51 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
52 of TARGET_SIGNAL_STOP.
53 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
54 here. Instead, signal the lwp, and set the last_resume_kind to
57 2011-09-09 Pedro Alves <pedro@codesourcery.com>
59 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
60 -1 (error), if the lwp exits right after attaching.
62 2011-09-08 Doug Evans <dje@google.com>
64 * py-cmd.c: Some minor formatting fixes.
65 (gdbpy_parse_command_name): Rename text arg to name, make const.
67 * python-internal.h (gdbpy_parse_command_name): Update.
69 * cli/cli-decode.c (add_cmd): Add comment.
71 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
74 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
75 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
76 * dwarf2read.c (process_full_comp_unit): Initialize
77 amd64_prologue_line_bug.
78 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
80 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
82 Fix TUI screen corruption.
83 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
86 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
88 * findvar.c (read_var_value): Never return NULL, throw an error
89 instead. Update the function comment. State symbol name in the error
91 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
93 * stack.c (print_frame_args): Likewise.
94 * valops.c (value_of_variable): Likewise.
96 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
98 * stack.c (print_frame_args): New variable except. Wrap
99 read_var_value and common_val_print into TRY_CATCH.
101 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
103 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
104 caller to value_of_this.
105 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
107 * valops.c (value_of_this): Remove parameter complain and variable ret.
108 Update function comment. Never return NULL by this code.
109 (value_of_this_silent): New function.
110 * value.h (value_of_this): Remove parameter complain.
111 (value_of_this_silent): New declaration.
113 2011-09-07 Yao Qi <yao@codesourcery.com>
115 * gdbthread.h (struct thread_info): Remove fields
116 `stepping_through_solib_after_catch' and
117 `stepping_through_solib_catchpoints'.
118 * infrun.c (init_thread_stepping_state): Update.
119 (process_event_stop_test, currently_stepping): Update.
120 (currently_stepping_or_nexting_callback): Update.
122 2011-09-07 Yao Qi <yao@codesourcery.com>
124 * gdbthread.h (struct thread_info): Comment on field
125 `step_after_step_resume_breakpoint'.
127 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
129 * remote.c (remote_console_output): Reindent.
131 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
133 * frame.c (has_stack_frames): Check for currently selected
136 2011-09-06 Pedro Alves <pedro@codesourcery.com>
138 * event-top.h (MAXPROMPTS, struct prompts): Delete.
139 (set_async_annotation_level, set_async_prompt, pop_prompt)
140 (push_prompt, new_async_prompt): Delete declarations.
141 * top.h (get_prompt, set_prompt): Change prototype.
142 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
144 * top.c (command_loop):
145 (top_prompt): New global.
146 (get_prefix, set_prefix, get_suffix, ): Delete.
147 (get_prompt, set_prompt): Rewrite.
148 (show_new_async_prompt): Rename to ...
149 (show_prompt): ... this.
150 (init_main): Adjust. Don't handle --annotate=2 here.
151 * event-top.c (new_async_prompt): Delete.
152 (the_prompts): Delete.
153 (more_to_come): Make static.
154 (display_gdb_prompt): Use top_level_prompt() to compute the top
155 level prompt, and don't notify the before_prompt observers
156 directly here. Always trick readline into not trying to display
157 the prompt if sync_execution and displaying the primary prompt.
158 If displaying a local/secondary prompt, always show it, even if
159 sync_execution is set.
160 (change_annotation_level): Delete.
161 (top_level_prompt): New, based on change_annotation_level.
162 (push_prompt, pop_prompt): Delete.
163 (async_disable_stdin): No longer pushes prompt.
164 (command_line_handler): No longer pushes or pops prompt. If more
165 input is expected, call display_gdb_prompt with an explicit empty
167 (async_stop_sig): Adjust.
168 (set_async_annotation_level, set_async_prompt): Delete.
169 * python/python.c (before_prompt_hook): Adjust.
171 2011-09-05 Pedro Alves <pedro@codesourcery.com>
175 * infrun.c (fetch_inferior_event): Check if there's a selected
176 thread before checking if the selected thread is executing.
178 2011-09-05 Pedro Alves <pedro@codesourcery.com>
180 * inf-loop.c (execute_command): Don't check if the current thread
181 if running before synchronously waiting for command completion.
182 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
184 (normal_stop): Call async_enable_stdin here.
185 * inf-loop.c (inferior_event_handler): Don't call
186 async_enable_stdin, nor handle "set exec-done-display" here.
188 2011-09-04 Joel Brobecker <brobecker@adacore.com>
192 2011-09-04 Joel Brobecker <brobecker@adacore.com>
194 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
196 2011-09-04 Joel Brobecker <brobecker@adacore.com>
198 * NEWS: Add entry for OpenBSD/NetBSD build failure.
200 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
202 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
204 2011-09-02 Matt Rice <ratmice@gmail.com>
207 * event-top.c (cli_command_loop): Replace readline setup with
208 direct call to display_gdb_prompt.
209 (display_gdb_prompt): Do not call observer mechanism during
210 synchronous execution.
212 2011-09-02 Pedro Alves <pedro@codesourcery.com>
214 * linux-nat.c (in_pid_list_p): New.
215 (linux_record_stopped_pid): Delete.
216 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
217 already attached to the LWP. Return an indication if so.
218 (linux_nat_filter_event): Adjust.
219 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
220 returning an indication to ignore this thread.
222 2011-09-02 Pedro Alves <pedro@codesourcery.com>
224 * top.c: Include interps.h.
225 (execute_command): If the target can async, but the interpreter is
226 in sync mode, synchronously wait for the command to finish before
228 (execute_command_to_string): Force the interpreter to sync mode.
229 * infrun.c: Include interps.h.
230 (fetch_inferior_event): Don't restore the prompt yet if the
231 interpreter is in sync mode.
232 * interps.c (interpreter_async): New global.
233 * interps.h (interpreter_async): Declare.
234 * inf-loop.c: Include interps.h.
235 (inferior_event_handler): Don't print the language change or run
236 breakpoint commands yet if the interpreter in is sync mode.
237 * main.c (captured_command_loop): Flip the interpreter to async
239 * cli/cli-script.c: Include interps.h.
240 (execute_user_command, while_command, if_command): Force the
241 interpreter to sync mode.
242 * python/python.c: Include interps.h.
243 (python_command, execute_gdb_command): Force the interpreter to
246 2011-09-02 Pedro Alves <pedro@codesourcery.com>
248 * value.c (show_convenience): Catch errors thrown while printing
249 each internal variable.
250 * infrun.c (validate_siginfo_access): New function.
251 (siginfo_value_read, siginfo_value_write): Call it.
253 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
256 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
257 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
260 2011-08-29 Yao Qi <yao@codesourcery.com>
262 * solib-dsbt.c (bfd_lookup_symbol): Removed.
264 (enable_break2): Update caller.
265 * solib-frv.c (bfd_lookup_symbol): Removed.
267 (enable_break2): Update caller.
268 * solib-pa64.c (bfd_lookup_symbol): Removed.
270 * solib-svr4.c (bfd_lookup_symbol): Removed.
271 (cmp_name_and_sec_flags): New.
272 (enable_break): Update caller.
273 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
274 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
275 (gdb_bfd_lookup_symbol): New.
276 * solib.h: Functions declarations.
278 2011-08-29 Yao Qi <yao@codesourcery.com>
280 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
283 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
285 Fix TUI stepi on code without symbols.
286 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
289 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
292 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
293 and the static keyword.
294 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
295 Make prefix an array.
296 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
297 * mi/mi-main.c (get_register): Remove stb initialization and the static
300 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
302 Code cleanup - make mi_opt const.
303 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
305 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
306 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
307 (mi_cmd_env_dir): Likewise.
308 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
309 (mi_cmd_target_file_put): Likewise.
310 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
311 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
312 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
313 (mi_valid_noargs): Make opts const.
314 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
315 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
316 (mi_cmd_data_read_memory): Likewise.
317 (mi_cmd_data_read_memory_bytes): Likewise.
318 (mi_cmd_data_write_memory): Likewise.
320 2011-08-26 Matt Rice <ratmice@gmail.com>
322 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
323 bcache_xmalloc, replace bcache_xmalloc with call to
324 psymbol_bcache_init for psymbol_cache.
325 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
327 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
329 * inf-loop.c (inferior_event_handler): Add exception_print in
332 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
334 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
335 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
336 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
337 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
338 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
339 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
340 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
341 * infrun.c (fetch_inferior_event): Call
342 make_bpstat_clear_actions_cleanup.
343 * top.c (execute_command): New variable cleanup_if_error, call
344 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
345 * utils.c (do_bpstat_clear_actions_cleanup)
346 (make_bpstat_clear_actions_cleanup): New functions.
348 2011-08-26 Pedro Alves <pedro@codesourcery.com>
350 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
351 either the parent or the child forks. Rename a couple locals.
353 2011-08-26 Pedro Alves <pedro@codesourcery.com>
355 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
356 library call. Avoid reading the `status' local if all waitpid
359 2011-08-26 Pedro Alves <pedro@codesourcery.com>
361 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
362 opening /proc/PID/task always succeeds.
364 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
366 * linespec.c (symtab_from_filename): Check for the end of string.
368 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
371 * varobj.c (cplus_describe_child): Add the keyword
372 'class' to the output of the method when dealing
373 with a cast to a base class.
375 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
377 No functionality change.
378 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
379 function comment a reference, new variables tp and bs, move here code
380 from throw_exception.
381 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
382 describe it in the comment.
383 * exceptions.c (throw_exception): Remove variable tp, move the code for
384 bpstat_clear_actions to bpstat_clear_actions.
386 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
388 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
389 * linux-nat.c: Include linux-procfs.h.
390 (linux_proc_get_tgid): Move to ...
391 * common/linux-procfs.c: ... here. New file.
392 * common/linux-procfs.h: New file.
393 * linux-thread-db.c: Include linux-procfs.h.
394 * Makefile.in: Update dependencies.
395 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
396 * config/arm/linux.mh: Likewise.
397 * config/i386/linux.mh: Likewise.
398 * config/i386/linux64.mh: Likewise.
399 * config/ia64/linux.mh: Likewise.
400 * config/m32r/linux.mh: Likewise.
401 * config/m68k/linux.mh: Likewise.
402 * config/mips/linux.mh: Likewise.
403 * config/pa/linux.mh: Likewise.
404 * config/pa/linux.mh: Likewise.
405 * config/powerpc/linux.mh: Likewise.
406 * config/powerpc/ppc64-linux.mh: Likewise.
407 * config/powerpc/spu-linux.mh: Likewise.
408 * config/sparc/linux.mh: Likewise.
409 * config/sparc/linux64.mh: Likewise.
410 * config/xtensa/linux.mh: Likewise.
412 2011-08-24 Hui Zhu <teawater@gmail.com>
414 * tracepoint.c (cond_string_is_same): New function.
415 (find_matching_tracepoint): Add condition check
416 by cond_string_is_same.
418 2011-08-23 Josh Matthews <josh@joshmatthews.net>
420 Fix build error in Darwin port.
421 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
423 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
426 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
427 (command_line_is_silent): New function.
428 (bpstat_do_actions_1): No longer use commands_left, use
429 command_line_is_silent for commands.
430 (bpstat_alloc): Remove clearing of commands_left.
431 (bpstat_stop_status): Remove initialization of commands_left, use
432 command_line_is_silent.
433 * breakpoint.h (struct bpstats): Remove commands_left.
435 2011-08-18 Keith Seitz <keiths@redhat.com>
438 * cp-name-parser.y (struct demangle_info): Remove unused
441 (allocate_info): Change return type to struct demangle_info *.
442 Always allocate a new demangle_info.
443 Remove unused PREV pointer.
444 (cp_new_demangle_parse_info): New function.
445 (cp_demangled_name_parse_free): New function.
446 (do_demangled_name_parse_free_cleanup): New function.
447 (make_cleanup_cp_demangled_name_parse_free): New function.
448 (cp_demangled_name_to_comp): Change return type to
449 struct demangle_parse_info *.
450 Allocate a new storage for each call.
451 (main): Update usage for cp_demangled_name_to_comp
453 * cp-support.h (struct demangle_parse_info): New structure.
454 (cp_demangled_name_to_comp): Update API change for
456 (cp_new_demangle_parse_info): Declare.
457 (make_cleanup_cp_demangled_name_parse_free): New declaration.
458 (cp_demangled_name_parse_free): Declare.
459 * cp-support.c (cp_canonicalize_string): Update API
460 change for cp_demangled_name_to_comp.
461 (mangled_name_to_comp): Likewise.
462 Return struct demangle_parse_info, too.
463 (cp_class_name_from_physname): Update mangled_name_to_comp
465 (method_name_from_physname): Likewise.
466 (cp_func_name): Update API change for cp_demangled_name_to_comp.
467 (cp_remove_params): Likewise.
468 * python/py-type.c (typy_legacy_template_argument): Likewise.
470 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
471 (cp_merge_demangle_parse_infos): Declare.
472 * cp-support.c (ignore_typedefs): New file global.
473 (copy_string_to_obstack): New function.
474 (inspect_type): New function.
475 (replace_typedefs): New function.
476 (replace_typedefs_qualified_name): New function.
477 (cp_canonicalize_string_no_typedefs): New function.
478 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
479 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
480 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
481 instead of cp_canonicalize_string.
482 (find_method): Likewise.
483 (decode_compound): Before looking up the name, call
484 cp_canonicalize_string_no_typedefs.
485 (decode_variable): Likewise.
487 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
488 Tom Tromey <tromey@redhat.com>
489 Matt Rice <ratmice@gmail.com>
491 * python/lib/gdb/prompt.py: New file.
492 * python/lib/gdb/command/prompt.py: New file.
493 * NEWS: Document set extended-prompt and gdb.prompt library
495 2011-08-16 Yao Qi <yao@codesourcery.com>
497 * tic6x-linux-tdep.c: Move const arrays definition from here...
498 * tic6x-tdep.c: to here ...
500 2011-08-14 Yao Qi <yao@codesourcery.com>
502 * NEWS: New port to Texas Instruments TMS320C6x.
504 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
505 Bernd Schmidt <bernds@codesourcery.com>
506 Yao Qi <yao@codesourcery.com>
508 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
509 * solib-dsbt.c: New file. Support DSBT shared object.
510 * tic6x-linux-tdep.c: New file.
511 * tic6x-tdep.c: New file.
512 * tic6x-tdep.h: New file.
514 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
515 Yao Qi <yao@codesourcery.com>
517 * remote.c (PACKET_qXfer_fdpic): New enum value.
518 (remote_protocol_features): Add qXfer:fdpic:read packet.
519 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
520 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
521 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
523 2011-08-14 Yao Qi <yao@codesourcery.com>
525 Target description for tic6x.
526 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
527 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
528 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
529 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
530 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
531 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
532 * features/tic6x-c64xp-linux.xml: New.
533 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
534 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
535 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
536 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
537 * regformats/tic6x-c64xp.dat,
538 regformats/tic6x-c62x-linux.dat: Generated.
539 * regformats/tic6x-c64x-linux.dat,
540 regformats/tic6x-c64xp-linux.dat: Generated.
541 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
542 features/tic6x-*.c files.
543 Add regformats/tic6x-*.dat files.
545 2011-08-12 Doug Evans <dje@google.com>
547 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
548 * python/py-symbol.c (sympy_get_type): New function.
549 (symbol_object_getset): Add "type".
551 2011-08-12 Pedro Alves <pedro@codesourcery.com>
555 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
557 (tui_show_register_group): Don't store a byte buffer in the data
559 (tui_register_format): Skip registers with an empty name.
560 (tui_get_register): Store a struct value in the data element's
561 value field instead of a byte buffer holding the raw register
562 contents. Account for optimized-out and unavailable registers
563 when comparing register contents.
565 2011-08-09 Pedro Alves <pedro@codesourcery.com>
567 * printcmd.c (current_display_number): Update comment.
568 (disable_current_display_cleanup): Delete.
569 (do_one_display): Use make_cleanup_restore_integer. Gracefully
570 catch errors thrown while evaluating and printing the display.
572 2011-08-09 Tom Tromey <tromey@redhat.com>
574 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
576 2011-08-09 Pedro Alves <pedro@codesourcery.com>
578 * elfread.c (elf_symtab_read): Rework comments.
579 * maint.c (maintenance_command): Ditto.
580 * somread.c (som_symtab_read): Ditto.
581 * solib.c (solib_find, solib_map_sections, update_solib_list)
582 (solib_add, info_sharedlibrary_command, solib_name_from_address)
583 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
584 (sharedlibrary_command, no_shared_libraries): Ditto.
585 * solib-irix.c (locate_base, disable_break, enable_break)
586 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
587 (irix_current_sos, irix_open_symbol_file_object)
588 (irix_special_symbol_handling): Ditto.
589 * solib-sunos.c (locate_base, first_link_map_member)
590 (sunos_current_sos, disable_break, enable_break)
591 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
593 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
594 (open_symbol_file_object, svr4_current_sos, enable_break)
595 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
597 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
598 (frv_current_sos, enable_break, frv_special_symbol_handling)
599 (frv_solib_create_inferior_hook): Ditto.
600 * solist.h (struct target_so_ops): Extend the comments of the
601 special_symbol_handling, current_sos and open_symbol_file_object
604 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
606 * python/lib/gdb/__init__.py: Auto-load files in command and
607 function directories.
608 * python/python.c (finish_python_initialization): Use
610 * python/lib/gdb/command/pretty_printers.py: Self register
612 * NEWS: Document auto-loading.
614 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
616 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
617 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
618 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
620 2011-08-08 Tom Tromey <tromey@redhat.com>
622 * breakpoint.c (clean_up_filters): Remove.
623 (catch_syscall_split_args): Use VEC_cleanup.
625 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
627 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
628 (main): Uncomment "Demangling error\n".
630 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
632 * solib-target.c (segment_attributes): Make them static.
633 (section_attributes, library_children, library_attributes): Likewise.
634 (library_list_children, library_list_attributes): Likesise.
635 (library_list_elements): Likewise.
637 2011-08-05 Pedro Alves <pedro@codesourcery.com>
639 * exceptions.c (throw_exception): Don't disable the current
641 * printcmd.c (disable_current_display_cleanup): New function.
642 (do_one_display): Install a cleanup to disable the current display
643 if doing the display throws.
645 2011-08-05 Eli Zaretskii <eliz@gnu.org>
647 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
648 initialization of the tp_new member to the corresponding
649 gdbpy_initialize_* function.
650 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
651 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
652 * python/py-function.c (gdbpy_initialize_functions): Likewise.
653 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
654 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
656 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
658 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
659 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
660 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
661 references to current_uiout.
663 2011-08-04 Pedro Alves <pedro@codesourcery.com>
665 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
666 (start_event_loop): Use TRY_CATCH instead of catch_errors.
667 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
668 * top.c (gdb_readline_wrapper): Adjust.
669 * tui/tui-interp.c (tui_command_loop):
670 (_initialize_tui_interp): Don't install it.
672 2011-08-04 Pedro Alves <pedro@codesourcery.com>
674 * ui-out.h (uiout): Rename to ...
675 (current_uiout): ... this.
676 * ui-out.c (uiout): Rename to ...
677 (current_uiout): ... this.
678 * ada-lang.c (print_it_exception, print_one_exception)
679 (print_mention_exception): Adjust.
680 * breakpoint.c (watchpoint_check): Adjust.
681 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
682 (default_collect_info, watchpoints_info, print_one_catch_fork)
683 (print_one_catch_vfork, print_one_catch_syscall)
684 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
685 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
686 (print_it_watchpoint, print_mention_watchpoint)
687 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
688 (print_it_exception_catchpoint, print_one_exception_catchpoint)
689 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
690 (bkpt_print_mention, momentary_bkpt_print_it)
691 (tracepoint_print_mention, update_static_tracepoint)
692 (tracepoints_info, save_breakpoints): Adjust.
693 * cli-out.c (field_separator): Adjust.
694 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
695 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
696 * frame.c (get_current_frame): Adjust.
697 * infcmd.c (run_command_1, print_return_value): Adjust.
698 * inferior.c (inferior_command, info_inferiors_command): Adjust.
699 * infrun.c (print_end_stepping_range_reason): Adjust.
700 (print_signal_exited_reason, print_exited_reason): Adjust.
701 (print_signal_received_reason, print_no_history_reason): Adjust.
702 * interps.c (interp_set): Adjust.
703 * osdata.c (info_osdata_command): Adjust.
704 * progspace.c (maintenance_info_program_spaces_command): Adjust.
705 * remote-fileio.c (remote_fileio_request): Adjust.
706 * remote.c (show_remote_cmd): Adjust.
707 * solib.c (info_sharedlibrary_command): Adjust.
708 * source.c (print_source_lines_base): Adjust.
709 * stack.c (print_stack_frame): Adjust.
710 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
711 * symfile-mem.c (add_vsyscall_page): Adjust.
712 * symfile.c (load_progress, generic_load)
713 (print_transfer_performance): Adjust.
714 * thread.c (info_threads_command, restore_selected_frame)
715 (thread_command): Adjust.
716 * top.c (make_cleanup_restore_ui_file): Adjust.
717 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
718 (print_one_static_tracepoint_marker): Adjust.
719 * cli/cli-cmds.c (print_disassembly): Adjust.
720 * cli/cli-decode.c (print_doc_line): Adjust.
721 * cli/cli-interp.c (safe_execute_command): Adjust.
722 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
723 (handle_redirections): Adjust.
724 * cli/cli-script.c (show_user_1): Adjust.
725 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
726 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
727 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
728 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
729 (mi_cmd_env_dir): Adjust.
730 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
731 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
732 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
733 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
734 (list_args_or_locals): Adjust.
735 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
736 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
737 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
738 (mi_cmd_var_list_children, mi_cmd_var_info_type)
739 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
740 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
741 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
742 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
743 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
744 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
745 (list_available_thread_groups, mi_cmd_list_thread_groups)
746 (mi_cmd_data_list_register_names)
747 (mi_cmd_data_list_changed_registers)
748 (mi_cmd_data_list_register_values, get_register)
749 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
750 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
751 (mi_cmd_list_target_features, mi_cmd_add_inferior)
752 (mi_execute_command, mi_load_progress): Adjust.
753 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
754 * python/py-auto-load.c (print_script, info_auto_load_scripts):
756 * python/py-breakpoint.c (bppy_get_commands): Adjust.
757 * tui/tui-interp.c (tui_command_loop): Adjust.
758 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
760 2011-08-04 Pedro Alves <pedro@codesourcery.com>
762 * exceptions.c (struct catcher): Remove saved_uiout field.
763 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
764 no longer save/resvore the global ui_out builder.
765 (catch_exceptions_with_msg): Save/override/restore the global
766 ui_out builder manually instead of relying on TRY_CATCH to do it.
767 (catch_errors): Save/restore the global ui_out builder manually
768 instead of relying on TRY_CATCH to do it.
769 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
772 * cli/cli-interp.c (safe_execute_command): Save/override/restore
773 the global ui_out builder manually instead of relying on TRY_CATCH
776 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
778 * breakpoint.c (update_global_location_list): Ensure
779 invariant 'first loc marked not duplicated and inserted,
780 following locs marked duplicated/not inserted' is respected
781 for multiple locations at the same address.
782 (unduplicated_should_be_inserted) New function.
783 (swap_insertion) New function.
785 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
787 * stack.c (print_frame_arguments_choices): Comment typo fix.
789 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
792 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
793 * breakpoint.c (insert_bp_location): Remove disabled_breaks
794 argument. Update callers.
796 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
799 * doublest.c (convert_doublest_to_floatformat): Pass correct
800 mantissa length to put_field.
802 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
804 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
805 exception_print code path.
806 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
807 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
808 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
810 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
813 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
814 Remove, merge them into ...
815 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
816 variable args and its initialization.
817 (struct print_args_args, print_args_stub): Remove, merge them into
819 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
821 (do_gdb_disassembly): ... here. Remove variable args and its
823 (print_frame): Remove variable args and its initialization, new
824 variable gdbarch and numargs (from print_args_stub), inline here
825 print_args_stub with a TRY_CATCH.
826 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
828 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
829 New variable e, remove variable btargs and its initialization.
831 2011-08-01 Tristan Gingold <gingold@adacore.com>
833 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
835 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
837 * breakpoint.c (insert_bp_location): Document return value.
838 (insert_breakpoint_locations): Fix documentation.
839 (remove_breakpoints): Add documentation.
841 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
843 * breakpoint.c (insert_bp_location): Remove disabled_breaks
844 argument. Update callers.
846 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
848 * stack.c (print_frame_info): Comment typo fix.
850 2011-07-29 Sterling Augustine <saugustine@google.com>
852 * MAINTAINERS (Write After Approval): Add myself to the list.
854 2011-07-29 Tom Tromey <tromey@redhat.com>
856 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
857 (library_list_start_segment): Update.
858 (library_list_start_section): Update.
860 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
862 * varobj.c (value_get_print_value): Move hint check later into the
863 function. Comment function. Free thevalue before reusing it.
865 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
866 Pedro Alves <pedro@codesourcery.com>
868 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
870 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
871 Assert the result kind.
872 * value.h (value_one): Remove parameter lv.
874 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
876 Fix crash on lval_computed values.
877 * valops.c (value_zero): Use not_lval for lval_computed.
879 2011-07-27 Tom Tromey <tromey@redhat.com>
881 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
882 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
884 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
886 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
887 "ptype" by their typedefs difference.
889 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
891 * dwarf2expr.c (ctx_no_read_reg): New function.
892 * dwarf2expr.h (ctx_no_read_reg): New declaration.
893 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
894 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
895 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
897 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
899 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
900 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
902 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
903 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
904 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
905 (ctx_no_get_base_type): Move the functions here.
906 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
907 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
908 (ctx_no_get_base_type): New declarations.
910 2011-07-27 Tom Tromey <tromey@redhat.com>
912 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
914 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
915 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
917 2011-07-26 Sterling Augustine <saugustine@google.com>
919 * cli/cli-dump.c (dump_binary_file): Change parameter type to
921 (dump_bfd_file): Likewise.
923 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
925 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
926 (remote_hw_watchpoint_length_limit): New variable.
927 (_initialize_remote) add set,show cmds for this new variable.
928 * gdb.texinfo: document these new commands.
929 * NEWS: Mention these new commands.
931 2011-07-26 Pedro Alves <pedro@codesourcery.com>
933 * breakpoint.c (works_in_software_mode_watchpoint): Also return
934 true for software watchpoints.
936 2011-07-26 Joel Brobecker <brobecker@adacore.com>
940 2011-07-26 Tom Tromey <tromey@redhat.com>
942 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
943 * dwarf2read.c (read_indirect_string_at_offset): New function.
944 (read_indirect_string): Use it.
945 (dwarf_decode_macro_bytes): New function, taken from
946 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
947 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
948 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
950 (struct dwarf2_per_objfile) <macro>: New field.
951 (dwarf2_elf_names): Add .debug_macro.
952 (dwarf2_macros_too_long_complaint): Add 'section' argument.
953 (dwarf2_locate_sections): Handle new section.
954 (read_file_scope): Handle DW_AT_GNU_macros.
955 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
957 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
959 * NEWS: Mention dcache configuration.
960 * dcache.c (dcache_set_list, dcache_show_list): New variables.
961 (dcache_size, dcache_line_size): New variables.
962 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
963 (struct dcache_block): Make it expandable.
964 (struct dcache_struct): New field.
965 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
966 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
967 (dcache_poke_byte, dcache_print_line): Adjust.
968 (set_dcache_size, set_dcache_line_size): New functions.
969 (set_dcache_command, show_dcache_command): New functions.
970 (_initialize_dcache): Add new commands.
972 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
974 * progspace.h (struct program_space): Add solib_add_generation.
975 * infcmd.c (post_create_inferior): Only call solib_add if not
977 * solib.c (solib_add): Increment solib_add_generation.
979 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
981 Fix implicit pointer offsets.
982 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
985 2011-07-25 Tom Tromey <tromey@redhat.com>
987 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
989 (ada_exception_sal): Make 'ops' const.
990 (ada_decode_exception_location): Likewise.
991 (ada_decode_assert_location): Likewise.
992 (catch_assert_command): Update.
993 (catch_ada_exception_command): Update.
994 (create_ada_exception_catchpoint): Make 'ops' const.
995 * breakpoint.c (set_raw_breakpoint_without_location)
996 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
998 (create_internal_breakpoint): Update.
999 (init_raw_breakpoint_without_location): Make 'ops' const.
1000 (init_raw_breakpoint, init_catchpoint)
1001 (create_fork_vfork_event_catchpoint)
1002 (create_syscall_event_catchpoint, init_breakpoint_sal)
1003 (create_breakpoint_sal, create_breakpoints_sal)
1004 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1005 * breakpoint.h (struct breakpoint) <ops>: Now const.
1006 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1009 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1011 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1013 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1015 * breakpoint.h (print_recreate_thread): Declare.
1016 (struct breakpoint): Move step_count, pass_count,
1017 number_on_target, static_trace_marker_id,
1018 static_trace_marker_id_idx ...
1019 (struct tracepoint): ... to this new struct.
1020 (get_tracepoint, get_tracepoint_by_number_on_target)
1021 (get_tracepoint_by_number): Change return type to struct
1023 * breakpoint.c (is_tracepoint_type): New, factored out from
1025 (is_tracepoint): Adjust.
1026 (print_one_breakpoint_location): Cast to struct tracepoint as
1027 necessary, and adjust.
1028 (print_recreate_catch_fork, print_recreate_catch_vfork)
1029 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1030 print_recreate_thread.
1031 (init_breakpoint_sal): New, factored out from
1032 create_breakpoint_sal.
1033 (create_breakpoint_sal): Reimplement.
1034 (create_breakpoint): Allocate a struct tracecepoint if the caller
1035 wanted a tracepoint. Use init_breakpoint_sal and
1037 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1038 (print_recreate_masked_watchpoint)
1039 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1040 (tracepoint_print_one_detail): Adjust.
1041 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1042 Dump the pass count here.
1043 (update_static_tracepoint): Adjust.
1044 (addr_string_to_sals): Adjust.
1045 (create_tracepoint_from_upload): Adjust. Change return type to
1046 struct tracepoint pointer.
1047 (trace_pass_set_count): Change parameter type to struct tracepoint
1048 pointer, and adjust.
1049 (trace_pass_command): Adjust.
1050 (get_tracepoint, get_tracepoint_by_number_on_target)
1051 (get_tracepoint_by_number): Change return type to struct
1052 tracepoint pointer, and adjust.
1053 (print_recreate_thread): New, factored out from save_breakpoints.
1054 (save_breakpoints): Don't print thread and task and passcount
1056 * remote.c (remote_download_tracepoint): Adjust.
1057 * tracepoint.c (trace_actions_command, validate_actionline)
1058 (start_tracing, tfind_1, trace_find_tracepoint_command)
1059 (trace_dump_command): Adjust.
1060 (find_matching_tracepoint): Change return type to struct
1061 tracepoint pointer, and adjust.
1062 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1063 (tfile_trace_find, tfile_fetch_registers): Adjust.
1064 * tracepoint.h (create_tracepoint_from_upload): Change return type
1065 to struct tracepoint pointer.
1066 * ada-lang.c (print_recreate_exception): Call
1067 print_recreate_thread.
1068 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1070 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1072 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1073 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1074 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1075 watchpoint_thread, watchpoint_triggered ...
1076 (struct watchpoint): ... to this new struct.
1077 (is_watchpoint): Declare.
1078 (install_breakpoint): Add new `internal' parameter.
1079 * breakpoint.c (is_watchpoint): Delete declaration.
1080 (set_breakpoint_condition): Handle watchpoints.
1081 (is_watchpoint): Make public.
1082 (watchpoint_in_thread_scope): Change parameter type to struct
1084 (watchpoint_del_at_next_stop): Change parameter type to struct
1085 watchpoint. Remove assertion. Adjust.
1086 (update_watchpoint): Ditto.
1087 (insert_breakpoints, breakpoint_init_inferior)
1088 (watchpoints_triggered, watchpoint_check)
1089 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1090 (bpstat_stop_status, print_one_breakpoint_location)
1091 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1092 to struct watchpoint as necessary, and adjust.
1093 (install_breakpoint): Add `internal' argument. If true, don't
1094 mention the new breakpoint. Use set_breakpoint_number.
1095 (create_fork_vfork_event_catchpoint)
1096 (create_syscall_event_catchpoint): Adjust.
1097 (dtor_watchpoint): New.
1098 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1099 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1100 (print_it_watchpoint, print_mention_watchpoint)
1101 (print_recreate_watchpoint, insert_masked_watchpoint)
1102 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1103 (print_one_detail_masked_watchpoint)
1104 (print_mention_masked_watchpoint)
1105 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1106 necessary, and adjust.
1107 (watch_command_1): Allocate and initialize a struct watchpoint
1108 instead of a struct breakpoint. Use install_breakpoint.
1109 (catch_exec_command_1): Adjust.
1110 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1112 (delete_breakpoint, enable_breakpoint_disp)
1113 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1114 as necessary, and adjust.
1115 (initialize_breakpoint_ops): Install dtor_watchpoint as
1116 watchpoints' dtor method.
1117 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1118 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1119 to struct watchpoint as necessary, and adjust.
1121 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1123 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1124 the the base class ops table.
1125 (catch_exception_breakpoint_ops)
1126 (catch_exception_unhandled_breakpoint_ops)
1127 (catch_assert_breakpoint_ops): Don't statically initialize.
1128 (initialize_ada_catchpoint_ops): New.
1129 (_initialize_ada_language): Call it.
1130 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1131 (bkpt_breakpoint_ops): Forward declare.
1132 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1133 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1134 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1135 (masked_watchpoint_breakpoint_ops)
1136 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1137 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1138 base class ops table.
1139 (null_re_set, null_check_status, null_works_in_software_mode)
1140 (null_resources_needed, null_print_one_detail): Delete.
1141 (bkpt_dtor): Rename to ...
1142 (base_breakpoint_dtor): ... this. Make static.
1143 (bkpt_allocate_location): Rename to ...
1144 (base_breakpoint_allocate_location): ... this. Make static.
1145 (base_breakpoint_re_set): New.
1146 (internal_error_pure_virtual_called): New.
1147 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1148 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1149 (base_breakpoint_works_in_software_mode)
1150 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1151 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1152 (base_breakpoint_print_recreate): New functions.
1153 (base_breakpoint_ops): New global.
1154 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1155 (bkpt_breakpoint_hit): Make static.
1156 (bkpt_check_status): Delete.
1157 (bkpt_resources_needed): Make static.
1158 (bkpt_works_in_software_mode): Delete.
1159 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1161 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1162 (momentary_breakpoint_ops): Don't statically initialize.
1163 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1165 (tracepoint_insert_location, tracepoint_remove_location)
1166 (tracepoint_check_status, tracepoint_works_in_software_mode)
1167 (tracepoint_print_it): Delete.
1168 (tracepoint_breakpoint_ops): Don't statically initialize.
1169 (initialize_breakpoint_ops): New.
1170 (_initialize_breakpoint): Call it.
1171 * breakpoint.h (null_re_set, null_works_in_software_mode)
1172 (null_resources_needed, null_check_status, null_print_one_detail):
1173 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1174 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1175 (bkpt_check_status, bkpt_resources_needed)
1176 (bkpt_works_in_software_mode, bkpt_print_it)
1177 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1178 Delete declarations.
1179 (initialize_breakpoint_ops): Declare.
1181 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1183 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1184 (momentary_bkpt_print_it): Simplify.
1186 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1188 Split internal, momentary and user breakpoints breakpoint_ops
1191 * breakpoint.c (internal_breakpoint_ops)
1192 (momentary_breakpoint_ops): Forward declare.
1193 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1194 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1195 (create_overlay_event_breakpoint)
1196 (create_std_terminate_master_breakpoint)
1197 (create_exception_master_breakpoint): Create breakpoints with
1198 internal_breakpoint_ops vtable.
1199 (set_longjmp_breakpoint): Create momentary breakpoints with
1200 momentary_breakpoint_ops vtable, using
1201 momentary_breakpoint_from_master.
1202 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1203 (create_solib_event_breakpoint): Create breakpoints with
1204 internal_breakpoint_ops vtable.
1205 (set_momentary_breakpoint): Create breakpoints with
1206 momentary_breakpoint_ops vtable.
1207 (momentary_breakpoint_from_master): New, factored out from
1208 clone_momentary_breakpoint.
1209 (clone_momentary_breakpoint): Adjust.
1210 (watch_command_1): Create scope breakpoints with
1211 momentary_breakpoint_ops vtable.
1212 (bkpt_re_set): Remove handling of internal and momentary
1214 (bkpt_print_mention, bkpt_print_recreate): New.
1215 (bkpt_breakpoint_ops): Adjust.
1216 (internal_bkpt_re_set, internal_bkpt_check_status)
1217 (internal_bkpt_print_it, internal_bkpt_print_mention)
1218 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1219 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1220 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1221 (momentary_bkpt_print_recreate): New.
1222 (momentary_breakpoint_ops): New.
1224 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1226 Implement most breakpoint_ops methods for all breakpoint types,
1227 and move the default handlings to the proper callbacks.
1229 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1230 works_in_software_mode method.
1231 (insert_bp_location): Go through breakpoint_ops->insert_location
1232 for software and hardware watchpoints.
1233 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1235 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1236 for software and hardware watchpoints.
1237 (print_it_typical): Delete.
1238 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1240 (watchpoint_check): Adjust comment.
1241 (bpstat_check_location): Simply always call the breakpoint's
1242 breakpoint_hit method.
1243 (bpstat_stop_status): Always call the breakpoint's check_status
1244 method. Remove special cases for watchpoints and internal event
1245 breakpoints from here (moved to the check_status implementations).
1246 (print_one_breakpoint_location): Assume b->ops is never NULL.
1247 Remove static tracepoint marker id printing from here (moved to
1248 the print_one_detail callback implementation of tracepoints).
1249 (init_bp_location): Assert OPS is never NULL.
1250 (allocate_bp_location): Always call the breakpoint's
1251 allocate_location method, and remove the default code from here.
1252 (free_bp_location): Always call the location's dtor method, and
1253 remove the default code from here.
1254 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1255 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1256 parameter. Pass it down.
1257 (set_raw_breakpoint): Ditto.
1258 (print_it_catch_fork): Adjust to take a bpstat as argument.
1259 (catch_fork_breakpoint_ops): Install methods.
1260 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1261 (catch_vfork_breakpoint_ops): Install methods.
1262 (dtor_catch_syscall): Call the base dtor.
1263 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1264 (catch_syscall_breakpoint_ops): Install methods.
1265 (dtor_catch_exec): Call the base dtor.
1266 (print_it_catch_exec): Adjust to take a bpstat as argument.
1267 (catch_exec_breakpoint_ops): Install methods.
1268 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1269 the breakpoint's resources_needed method, and remove the default
1271 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1273 (clone_momentary_breakpoint): Clone the original's ops.
1274 (mention): Always call the breakpoint's print_mention method, and
1275 remove the default code from here.
1276 (create_breakpoint_sal): Adjust to pass the ops to
1277 set_raw_breakpoint rather than setting it manually.
1278 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1279 ops to set_raw_breakpoint_without_location rather than setting it
1281 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1282 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1283 (ranged_breakpoint_ops): Install methods.
1284 (break_range_command): Adjust to pass the ops to
1285 set_raw_breakpoint rather than setting it manually.
1286 (re_set_watchpoint, breakpoint_hit_watchpoint)
1287 (check_status_watchpoint, resources_needed_watchpoint)
1288 (works_in_software_mode_watchpoint, print_it_watchpoint)
1289 (print_mention_watchpoint, print_recreate_watchpoint): New
1291 (watchpoint_breakpoint_ops): Install new methods.
1292 (print_it_masked_watchpoint): New function.
1293 (masked_watchpoint_breakpoint_ops): Install new methods.
1294 (watch_command_1): Adjust to pass the right breakpoint_ops to
1295 set_raw_breakpoint_without_location rather than setting it
1296 manually later. Record the current pspace.
1297 (print_it_exception_catchpoint): Adjust to take a bpstat as
1299 (gnu_v3_exception_catchpoint_ops): Install new methods.
1300 (say_where): New function.
1301 (null_re_set, null_check_status, null_works_in_software_mode)
1302 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1304 (bp_location_ops): New global.
1305 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1306 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1307 (bkpt_check_status, bkpt_resources_needed)
1308 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1309 (bkpt_print_recreate): New functions.
1310 (bkpt_breakpoint_ops): New global.
1311 (tracepoint_re_set, tracepoint_insert_location)
1312 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1313 (tracepoint_check_status, tracepoint_works_in_software_mode)
1314 (tracepoint_print_it, tracepoint_print_one_detail)
1315 (tracepoint_print_mention, tracepoint_print_recreate): New
1317 (tracepoint_breakpoint_ops): New global.
1318 (delete_breakpoint): Always call the breakpoint's dtor method, and
1319 remove the default handling from here.
1320 (breakpoint_re_set_default): Make static.
1321 (breakpoint_re_set_one): Always call the breakpoints re_set
1322 method, and remove the default handling from here.
1323 (trace_command, ftrace_command, strace_command)
1324 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1325 to create_breakpoint.
1326 (save_breakpoints): Always call the breakpoint's print_recreate
1327 method, and remove the default handling from here.
1329 * ada-lang.c (dtor_exception): Call the base dtor.
1330 (re_set_exception): Call the base method.
1331 (print_it_exception, print_it_catch_exception): Adjust to take a
1333 (catch_exception_breakpoint_ops): Install methods.
1334 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1336 (catch_exception_unhandled_breakpoint_ops): Install methods.
1337 (print_it_catch_assert): Adjust to take a bpstat as argument.
1338 (catch_assert_breakpoint_ops): Install methods.
1340 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1341 to take a bpstat as argument.
1342 (enum print_stop_action): Add describing comments to each enum
1344 (breakpoint_re_set_default): Delete declaration.
1345 (null_re_set, null_works_in_software_mode, null_resources_needed)
1346 (null_check_status, null_print_one_detail): Declare.
1347 (bkpt_breakpoint_ops): Declare.
1348 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1349 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1350 (bkpt_check_status, bkpt_resources_needed)
1351 (bkpt_works_in_software_mode, bkpt_print_it)
1352 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1355 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1356 bkpt_breakpoint_ops.
1357 * python/py-breakpoint.c (bppy_init): Ditto.
1359 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1361 * MAINTAINERS (Write After Approval): Add myself to the list.
1363 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1365 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1367 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1369 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1370 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1371 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1373 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1374 (struct i386_debug_reg_state): New.
1375 (i386_init_dregs): New.
1377 (i386_cleanup_dregs): Use i386_init_dregs.
1378 (i386_show_dr): Add state parameter and adjust.
1379 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1381 (i386_remove_aligned_watchpoint): Likewise.
1382 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1383 (i386_update_inferior_debug_regs): New.
1384 (i386_insert_watchpoint): Work on a local mirror of the debug
1385 registers, and only update the inferior on success.
1386 (i386_remove_watchpoint): Ditto.
1387 (i386_region_ok_for_watchpoint): Adjust.
1388 (i386_stopped_data_address): Adjust.
1389 (i386_insert_hw_breakpoint): Adjust.
1390 (i386_remove_hw_breakpoint): Adjust.
1392 2011-07-22 Tom Tromey <tromey@redhat.com>
1394 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1395 from amd64_pseudo_register_read. Change arguments. Call
1396 mark_value_bytes_unavailable when needed.
1397 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1398 set_gdbarch_pseudo_register_read.
1399 * sentinel-frame.c (sentinel_frame_prev_register): Use
1400 regcache_cooked_read_value.
1401 * regcache.h (regcache_cooked_read_value): Declare.
1402 * regcache.c (regcache_cooked_read_value): New function.
1403 (regcache_cooked_read): Call
1404 gdbarch_pseudo_register_read_value if available.
1405 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1406 (i386_pseudo_register_read): Remove.
1407 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1408 i386_pseudo_register_read. Change arguments. Call
1409 mark_value_bytes_unavailable when needed.
1410 (i386_pseudo_register_read_value): New function.
1411 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1412 not set_gdbarch_pseudo_register_read.
1413 * gdbarch.sh (pseudo_register_read_value): New method.
1414 * gdbarch.c, gdbarch.h: Rebuild.
1415 * findvar.c (value_from_register): Call get_frame_register_value.
1417 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1419 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1421 (display_gdb_prompt): Likewise.
1422 (change_annotation_level): Likewise.
1423 (push_prompt): Likewise.
1424 (pop_prompt): Likewise.
1425 (handle_stop_sig): Use get_prompt with a level.
1426 * top.c (command_loop): Use get_prompt with a level.
1427 (set_async_annotation_level): Use set_prompt with a level.
1428 (get_prefix): New function.
1429 (set_prefix): Ditto.
1430 (set_suffix): Ditto.
1431 (get_suffix): Ditto.
1432 (get_prompt): Accept a level argument.
1433 (set_prompt): Accept a level argument. Free old prompts. Set
1434 new_async_prompt if level is 0.
1435 (init_main): Use set_prompt with a level. Do not set
1437 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1438 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1439 Modify set_prompt, get_prompt to account for levels.
1440 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1442 * python/python.c (before_prompt_hook): Use set_prompt.
1444 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1446 * defs.h: Add guard against inclusion in gdbserver.
1447 (struct ptid, ptid_t): Move to common/ptid.h.
1448 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1449 xsnprintf, internal_error): Move to common/common-utils.h.
1451 * gdb_assert.h: Move into common/ sub-directory.
1452 * gdb_locale.h: Ditto.
1453 * gdb_dirent.h: Ditto.
1454 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1455 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1456 Move into common/ptid.h.
1457 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1458 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1459 Change nomem to malloc_failure.
1460 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1461 * utils.c (nomem): Rename to malloc_failure.
1462 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1463 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1464 (gdb_buildargv): Change nomem to malloc_failure.
1465 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1466 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1467 ptid_is_pid): Move into common/ptid.c.
1468 (initialize_infrun): Delete initialization of null_ptid and
1470 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1471 linux_common_xfer_osdata.
1472 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1473 common/ptid.c and common/buffer.c.
1474 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1475 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1476 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1477 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1479 * common/gdb_assert.h: New.
1480 * common/gdb_dirent.h: New.
1481 * common/gdb_locale.h: New.
1482 * common/buffer.c: New.
1483 * common/buffer.h: New.
1484 * common/ptid.c: New.
1485 * common/ptid.h: New.
1486 * common/xml-utils.c: New.
1487 * common/xml-utils.h: New.
1488 * common/common-utils.c: New.
1489 * common/common-utils.h: New.
1490 * common/linux-osdata.c: New.
1491 * common/linux-osdata.h: New.
1492 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1493 * config/arm/linux.mh (NATDEPFILES): Ditto.
1494 * config/i386/linux.mh (NATDEPFILES): Ditto.
1495 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1496 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1497 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1498 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1499 * config/mips/linux.mh (NATDEPFILES): Ditto.
1500 * config/pa/linux.mh (NATDEPFILES): Ditto.
1501 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1502 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1503 * config/s390/s390.mh (NATDEPFILES): Ditto.
1504 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1505 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1506 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1508 2011-07-21 Matt Rice <ratmice@gmail.com>
1510 * NEWS: Add info macros and info definitions commands.
1512 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1514 * NEWS: Document Python prompt substitution hook.
1516 2011-07-18 Matt Rice <ratmice@gmail.com>
1519 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1520 * macrotab.c (foreach_macro): Ditto.
1521 (foreach_macro_in_scope): Ditto.
1522 * macrocmd.c (print_macro_callback): New function.
1523 (info_macro_command): Move some code to print_macro_definition.
1524 (print_macro_definition): New function.
1525 (print_one_macro): Add new arguments to callback.
1526 (info_definitions_command): New function.
1527 (info_macros_command): Ditto.
1528 (_initialize_macrocmd): Add info macros and info definitions commands.
1529 * symtab.c (add_macro_name): Add new arguments to callback.
1531 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1532 Tom Tromey <tromey@redhat.com>
1534 * top.c (set_prompt): Rewrite to free previous prompt, free
1535 asynch_new_prompt and set both on new prompts.
1536 * event-top.c (display_gdb_prompt): Add prompt substitution
1538 * python/python.c (before_prompt_hook): New function.
1540 2011-07-20 Matt Rice <ratmice@gmail.com>
1542 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1543 arguments to store_unsigned_integer.
1545 2011-07-20 Tom Tromey <tromey@redhat.com>
1547 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1548 in some declaration-only cases.
1550 2011-07-18 Tom Tromey <tromey@redhat.com>
1553 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1554 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1555 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1556 <debug_type_section>: New field.
1557 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1558 (load_cu): Use appropriate section.
1559 (create_signatured_type_table_from_index): Add 'section'
1561 (dwarf2_read_index): Only allow a single .debug_types section.
1562 (dw2_get_file_names): Use appropriate section.
1563 (read_type_comp_unit_head): Add 'section' argument.
1564 (create_debug_types_hash_table): Loop over all .debug_types
1566 (init_cu_die_reader): Use appropriate section.
1567 (process_psymtab_comp_unit, load_partial_comp_unit)
1568 (load_full_comp_unit, read_die_and_children, find_partial_die)
1569 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1570 (lookup_signatured_type_at_offset): Add 'section' argument.
1571 (read_signatured_type_at_offset): Add 'sect' argument.
1572 (read_signatured_type): Use appropriate section.
1573 (set_die_type, get_die_type_at_offset): Update.
1574 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1576 (write_psymtabs_to_index): Don't allow index with more than one
1577 .debug_types section.
1579 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1581 Fix crash if referenced CU is aged out.
1582 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1583 xfree of block.data.
1584 (indirect_pieced_value): New variable back_to, use to for xfree of
1586 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1588 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1589 (load_cu): New function from ...
1590 (dw2_do_instantiate_symtab): ... the code here ...
1591 (process_full_comp_unit): ... and here.
1592 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1595 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1597 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1600 2011-07-19 Gary Benson <gbenson@redhat.com>
1602 * infrun.c (struct execution_control_state): New member
1603 stop_func_filled_in.
1604 (clear_stop_func, fill_in_stop_func): New functions.
1605 (handle_inferior_event): Call clear_stop_func rather than
1606 manipulating the execution control state directly.
1607 Call fill_in_stop_func lazily as required rather than
1608 directly calling find_pc_partial_function in all cases.
1610 2011-07-18 Tom Tromey <tromey@redhat.com>
1612 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1613 checking for variable-sized array.
1615 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1617 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1618 of supported languages.
1619 * varobj.c: Add top definitions and basic implementation of the
1620 following callbacks: ada_number_of_children, ada_name_of_variable,
1621 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1622 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1623 (languages): Register Ada-specific callbacks.
1624 (variable_language): Add the Ada case in the language setter switch.
1626 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1628 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1630 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1633 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1634 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1635 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1636 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1637 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1638 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1639 (struct dwarf_expr_context_funcs): New, move here methods from ...
1640 (struct dwarf_expr_context): ... here. New fields funcs.
1641 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1642 (dwarf_expr_ctx_funcs): New.
1643 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1644 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1645 (needs_frame_ctx_funcs): New.
1646 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1648 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1650 * MAINTAINERS (Write After Approval): Add myself to the list.
1652 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1654 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1655 that CIE pointer of an FDE really points to a CIE .
1657 2011-07-15 Hui Zhu <teawater@gmail.com>
1659 * remote.c (remote_get_trace_status): Add comments.
1661 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1663 Code cleanup - constify struct lval_funcs.
1664 * dwarf2loc.c (pieced_value_funcs): Make it const.
1665 * infrun.c (siginfo_value_funcs): Likewise.
1666 * opencl-lang.c (opencl_value_funcs): Likewise.
1667 * valops.c (value_assign, value_ind): Make the funcs variable const.
1668 * value.c (struct value): Make location.computed.funcs target const.
1669 Rearrange the comments.
1670 (allocate_computed_value): Make the funcs parameter target const.
1671 (value_computed_funcs): Return the funcs target const.
1672 (value_free, value_copy, set_value_component_location): Make the funcs
1674 * value.h (allocate_computed_value): Make the funcs parameter target
1676 (value_computed_funcs): Return the funcs target const.
1677 * windows-tdep.c (tlb_value_funcs): Make it const.
1679 2011-07-14 Hui Zhu <teawater@gmail.com>
1681 * remote.c (remote_get_trace_status): Initialize p.
1683 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1686 * remote.c (remote_get_trace_status): New variable ex. Put
1687 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1689 2011-07-13 Tom Tromey <tromey@redhat.com>
1691 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1692 value_from_contents for final conversion.
1694 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1697 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1698 Indent prototypes so they do not get into tags.
1700 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1702 Code cleanup making also optimized out values lazy.
1703 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1704 allocate_optimized_out_value. Twice.
1705 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1706 * findvar.c (read_var_value): Likewise.
1707 * value.c (allocate_optimized_out_value): New function.
1708 * value.h (allocate_optimized_out_value): New declaration.
1710 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1712 Fix occasional crash of CTRL-C during DWARF read in.
1713 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1715 2011-07-11 Tom Tromey <tromey@redhat.com>
1717 * regcache.c (struct regcache_descr): Fix typo.
1718 * i387-tdep.c (i387_supply_xsave): Fix typo.
1720 2011-07-11 Tom Tromey <tromey@redhat.com>
1722 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1723 (read_file_scope, read_type_unit_scope): Use it.
1725 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1727 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1730 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1733 * python/python.c: Set gdbpy_should_print_stack default to off.
1734 (set_python): Deprecate maint set python print-stack to
1736 (_initialize_python): Deprecate maint set/show python print-stack.
1737 Add new prefix command, python. Add new setting, print-backtrace.
1738 * NEWS: Document set python print-stack. Document default change.
1740 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1742 * python/py-inferior.c (infpy_dealloc): New function.
1743 (inferior_to_inferior_object): Return a new object, or a
1744 new reference to the existing object.
1745 (find_thread_object): Cleanup references to inferior.
1746 (delete_thread_object): Ditto.
1747 * python/py-infthread.c (create_thread_object): Do not increment
1748 inferior reference count.
1750 2011-07-08 Tom Tromey <tromey@redhat.com>
1752 * dwarf2loc.c (locexpr_regname): New function.
1753 (locexpr_describe_location_piece): Use it.
1754 (disassemble_dwarf_expression): Add per_cu argument. Use
1756 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1757 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1759 (locexpr_describe_location_1): Add per_cu argument.
1760 (locexpr_describe_location): Update.
1761 (loclist_describe_location): Update.
1763 2011-07-08 Tom Tromey <tromey@redhat.com>
1765 * dwarf2expr.c (execute_stack_op): Add QUIT.
1767 2011-07-07 Hui Zhu <teawater@gmail.com>
1770 2011-07-06 Hui Zhu <teawater@gmail.com>
1771 * remote.c (remote_start_remote): Add TRY_CATCH for
1772 remote_get_trace_status.
1773 * tracepoint.c (disconnect_tracing): Ditto.
1775 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1777 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1778 variables as signed, not unsigned.
1780 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1782 * jit.c (jit_inferior_init): Reformat forward declaration.
1784 2011-07-06 Matt Rice <ratmice@gmail.com>
1786 * MAINTAINERS (Write After Approval): Add myself to the list.
1788 2011-07-06 Hui Zhu <teawater@gmail.com>
1790 * remote.c (remote_start_remote): Add TRY_CATCH for
1791 remote_get_trace_status.
1792 * tracepoint.c (disconnect_tracing): Ditto.
1794 2011-07-05 Tom Tromey <tromey@redhat.com>
1796 * symtab.c (operator_chars): Now static.
1797 * linespec.c (operator_chars): Don't declare.
1799 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1801 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1803 2011-07-05 Tom Tromey <tromey@redhat.com>
1805 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1806 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1807 (TYPE_CPLUS_REALLY_JAVA): New macro.
1808 * dwarf2read.c (process_structure_scope): Set
1809 TYPE_CPLUS_REALLY_JAVA.
1811 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1813 * ada-lang.c: Fix typos.
1814 * amd64-tdep.c: Likewise.
1815 * breakpoint.c: Likewise.
1816 * cli/cli-decode.c: Likewise.
1817 * findcmd.c: Likewise.
1818 * inline-frame.c: Likewise.
1819 * mi/mi-main.c: Likewise.
1820 * minsyms.c: Likewise.
1821 * monitor.c: Likewise.
1822 * monitor.h: Likewise.
1823 * prologue-value.c: Likewise.
1824 * reverse.c: Likewise.
1825 * s390-tdep.c: Likewise.
1827 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1829 * jit.c (jit_inferior_init): Forward declare.
1830 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1832 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1834 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1836 2011-07-04 Tristan Gingold <gingold@adacore.com>
1838 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1839 (tcb_fieldno): Add activation_link field.
1840 (get_known_tasks_addr): Moved and rewritten.
1841 (get_tcb_types_info): Set activation_link field.
1842 (read_known_tasks_array): Add parameter. Rewritten.
1843 (read_known_tasks_list): New function.
1844 (read_known_tasks): New function.
1845 (ada_build_task_list): Call read_known_tasks instead of
1846 read_known_tasks_array.
1847 * ravenscar-thread.c: Add first_task_name constant.
1848 (has_ravenscar_runtime): Check for task list too.
1850 2011-07-04 Tristan Gingold <gingold@adacore.com>
1852 * ada-tasks.c: Renames fieldno to actb_fieldno.
1853 (ada_get_task_number): Indentation.
1854 (get_tcb_types_info): Remove all parameters. Write directly
1856 (ptid_from_atcb_common): Adjust.
1857 (read_atcb): Adjust.
1859 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1861 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1863 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1865 * ui-out.c (ui_out_field_core_addr): Mention that the function
1866 description is in the header file.
1867 * ui-out.h (ui_out_field_core_addr): Document function.
1869 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1871 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1872 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1874 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1876 * symtab.c (expand_line_sal): Remove empty line.
1878 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1880 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1881 same way as ELFOSABI_NONE.
1882 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1884 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1886 * breakpoint.c: Fix typos in comments.
1887 * linespec.c: Likewise.
1888 * symtab.c: Likewise.
1890 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1892 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1893 section in separate object files.
1895 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1897 Fix false GCC warning.
1898 * linespec.c (decode_line_1): Initialize values.
1900 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1902 * linespec.c (find_method): Accept the function type automatically only
1903 if it was specified with parameter types.
1905 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1907 Stop on first linespec terminator instead of eating what we can.
1908 * linespec.c (is_linespec_boundary): New function.
1909 (name_end): Remove function.
1910 (keep_name_info): New parameter on_boundary, replace the body.
1911 (decode_line_1): Provide the parameter to keep_name_info.
1912 (decode_compound): Likewise. Drop the trailing java return type
1915 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1917 Fall back linespec to minimal symbols.
1918 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1919 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1920 (find_method, symbol_found): Change error to cplusplus_error.
1922 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1924 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1926 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1927 Tom Tromey <tromey@redhat.com>
1929 * dwarf2read.c (check_physname): New variable.
1930 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1931 (show_check_physname): New function.
1932 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1934 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1936 * machoread.c (macho_symfile_read): Delete OBE comment.
1938 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1940 * machoread.c (struct macho_oso_data): Delete.
1941 (current_oso): Delete.
1942 (macho_relocate_common_syms): New function, mostly extracted
1944 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1945 Remove code that sets and unset current_oso.
1946 (macho_symfile_relocate): Delete handling of common symbols,
1947 now moved to macho_relocate_common_syms.
1949 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1951 * darwin-nat.c (darwin_ptrace): Add documentation.
1952 Set errno to zero before calling ptrace. If ptrace returns
1953 -1 and errno is zero, then change then return zero.
1954 (darwin_kill_inferior): Issue a warning instead of triggering
1955 a failed assertion when the PT_KILL ptrace operations returned
1958 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1960 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1961 only when inf->private->no_ptrace.
1963 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1965 * ada-lang.c (print_it_exception): Print temporary catchpoints
1966 as "Temporary catchpoint".
1967 (print_mention_exception): Likewise.
1969 2011-07-01 Tom Tromey <tromey@redhat.com>
1971 * jv-lang.c (java_language_defn): Use java_printchar,
1973 (java_get_encoding): New function.
1974 (java_emit_char): Use generic_emit_char.
1975 (java_printchar): New function.
1976 (java_printstr): Likewise.
1978 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1980 * ada-typeprint.c (print_record_type): If unable to decode
1981 the name of the parent type, use the encoded name.
1983 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1985 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1986 pointer to constrained packed array type output.
1987 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1988 packed array output.
1990 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1992 * ada-typeprint.c (print_array_type): removed if condition on show
1993 being negative for bounds printing.
1995 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1997 * ada-lang.c (ada_identical_enum_types_p): New function.
1998 (symbols_are_identical_enums): New function.
1999 (remove_extra_symbols): Do nothing if NSYMS < 2.
2000 Use symbols_are_identical_enums.
2002 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2004 * ada-valprint.c (ada_value_print): Handle typedefs.
2006 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2008 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2010 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2012 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2013 (decode_constrained_packed_array): Likewise.
2014 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2016 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2018 * ada-exp.y (convert_char_literal): Handle typedef types.
2020 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2022 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2024 2011-06-30 Tom Tromey <tromey@redhat.com>
2026 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2027 * valops.c (find_overload_match): Call do_cleanups on early exit
2029 * solib.c (solib_find): Call do_cleanups on early exit path.
2031 2011-06-30 Tom Tromey <tromey@redhat.com>
2033 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2034 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2035 return paths. Defer final do_cleanups until last return.
2036 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2039 2011-06-30 Tom Tromey <tromey@redhat.com>
2041 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2043 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
2045 * MAINTAINERS (Write After Approval): Add myself to the list.
2047 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2049 Disable epilogue unwinders on recent GCCs.
2050 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2051 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2052 * dwarf2read.c (process_full_comp_unit): Initialize
2053 EPILOGUE_UNWIND_VALID.
2054 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2055 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2056 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2058 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2060 Code cleanup - reformatting.
2061 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2062 (producer_is_gcc_ge_4): ... here, change the return value.
2063 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2066 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2068 Fix non-only rename list for Fortran modules import.
2069 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2070 cp_add_using_directive caller.
2071 (cp_add_using_directive): New parameter excludes, describe it. New
2072 variables ix and param. Compare if also excludes match. Allocate NEW
2073 with variable size, initialize EXCLUDES there.
2074 (cp_lookup_symbol_imports): New variable excludep, test
2075 current->EXCLUDES with it.
2076 * cp-support.h: Include vec.h.
2077 (struct using_direct): New field excludes, describe it.
2078 (DEF_VEC_P (const_char_ptr)): New.
2079 (cp_add_using_directive): New parameter excludes.
2080 * defs.h (const_char_ptr): New typedef.
2081 * dwarf2read.c (read_import_statement): New variables child_die,
2082 excludes and cleanups, read in excludes.
2083 (read_namespace): Adjust the cp_add_using_directive caller.
2085 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2088 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2089 negative comparisons.
2091 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
2093 * mi/mi-main.c (mi_cmd_list_features): Emit
2094 breakpoint-notifications.
2096 2011-06-29 Tom Tromey <tromey@redhat.com>
2099 * valprint.h (generic_emit_char, generic_printstr): Declare.
2100 * valprint.c (wchar_printable, append_string_as_wide)
2101 (print_wchar): Move from c-lang.c.
2102 (generic_emit_char): New function; mostly taken from c_emit_char.
2103 (generic_printstr): New function; mostly taken from c_printstr.
2104 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2105 represented as arrays.
2106 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2108 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2109 identically to TYPE_CODE_INT.
2110 * f-lang.c (f_get_encoding): New function.
2111 (f_emit_char): Use generic_emit_char.
2112 (f_printchar): Replace comment.
2113 (f_printstr): Use generic_printstr.
2114 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2115 "character" types specially.
2116 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2118 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2120 (c_emit_char): Call generic_emit_char.
2121 (c_printstr): Call generic_printstr.
2123 2011-06-29 Gary Benson <gbenson@redhat.com>
2125 * breakpoint.c (bpstat_what): Removed duplicated case.
2127 2011-06-28 Tom Tromey <tromey@redhat.com>
2129 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2131 2011-06-27 Tom Tromey <tromey@redhat.com>
2133 * valops.c (find_overload_match): Call do_cleanups before early
2135 * top.c (execute_command): Call do_cleanups before early return.
2136 (command_loop): Likewise.
2137 * stack.c (backtrace_command): Make a null cleanup early. Don't
2138 conditionally call do_cleanups.
2139 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2141 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2142 so cleanups are always run.
2143 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2144 * findcmd.c (parse_find_args): Call do_cleanups on early return
2146 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2147 Don't conditionally call do_cleanups.
2148 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2151 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2153 * MAINTAINERS (Write After Approval): Use default email address.
2155 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2157 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2159 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2161 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2162 saved_regs_mask and copied_regs_mask fields.
2163 (sparc_record_save_insn): New prototype.
2164 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2165 (sparc_record_save_insn): New function.
2166 (sparc_analyze_prologue): Add head comment. Recognize store insns
2167 of call-saved registers. Use OFFSET consistently. Recognize flat
2168 frames and cache their settings.
2169 (sparc32_skip_prologue): Handle flat frames.
2170 (sparc_frame_cache): Add frame_offset to the base address.
2171 (sparc32_frame_cache): Adjust to new frame description.
2172 (sparc32_frame_prev_register): Likewise.
2173 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2174 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2175 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2176 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2177 frame by calling sparc_record_save_insn.
2178 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2179 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2180 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2182 2011-06-27 Tristan Gingold <gingold@adacore.com>
2184 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2185 field by map_addr and map_len.
2186 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2187 (munmap_section_buffer): Likewise.
2189 2011-06-24 Tom Tromey <tromey@redhat.com>
2191 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2192 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2193 * python/python.c (gdbpy_parameter): Make 'arg' const.
2194 (execute_gdb_command): Likewise.
2195 (gdbpy_decode_line): Likewise. Copy it.
2196 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2197 (gdbpy_write): Make 'arg' const.
2198 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2200 (gdbpy_lookup_type): Likewise.
2201 * python/py-prettyprint.c (print_children): Make 'name' const.
2202 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2203 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2205 * python/py-function.c (fnpy_init): Make 'name' const.
2206 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2207 (gdbpy_string_to_argv): Make 'input' const.
2208 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2210 * gdbtypes.h (lookup_typename): Update.
2211 * gdbtypes.c (lookup_typename): Make 'name' const.
2212 (lookup_struct): Likewise.
2213 (lookup_union): Likewise.
2214 (lookup_enum): Likewise.
2216 2011-06-24 Tom Tromey <tromey@redhat.com>
2218 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2219 gdb_thread_db.h. Move all common/ entries to be together.
2220 (TAGS): Don't depend on DEPFILES.
2222 2011-06-23 Yao Qi <yao@codesourcery.com>
2224 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2225 * remote.c (remote_start_remote): ... here.
2226 * monitor.c (monitor_open): ... here.
2228 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2230 * gdbtypes.c (append_composite_type_field_aligned): Fix
2231 calculation of bit position based on alignment.
2233 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2235 * breakpoint.c (bpstat_stop_status): Call the check_status
2236 breakpoint_ops method.
2237 (print_one_breakpoint_location): Also print the condition for Ada
2238 exception catchpoints.
2239 (allocate_bp_location): New, factored out from
2240 allocate_bp_location.
2241 (allocate_bp_location): Adjust. Call the owner breakpoint's
2242 allocate_location method, if there is one.
2243 (free_bp_location): Call the locations's dtor method, if there is
2245 (init_raw_breakpoint_without_location): New breakpoint_ops
2247 (set_raw_breakpoint_without_location): Adjust.
2248 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2249 (set_raw_breakpoint): Adjust.
2250 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2251 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2252 re_set and check_status methods.
2253 (init_catchpoint): Don't memset, initialize thread, addr_string
2254 and enable_state. Pass the ops down to init_raw_breakpoint.
2255 (install_catchpoint): Rename to ...
2256 (install_breakpoint): ... this, and make extern.
2257 (create_fork_vfork_event_catchpoint): Adjust.
2258 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2259 re_set and check_status methods.
2260 (create_syscall_event_catchpoint): Adjust.
2261 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2262 (masked_watchpoint_breakpoint_ops): Install NULL
2263 allocate_location, re_set and check_status methods.
2264 (catch_exec_command_1): Adjust.
2265 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2266 re_set and check_status methods.
2267 (create_ada_exception_breakpoint): Rename to ...
2268 (init_ada_exception_breakpoint): ... this. Add a struct
2269 breakpoint parameter, and delete the exp_string, cond_string and
2270 cond parameters. Use init_raw_breakpoint, and don't install or
2271 mention the breakpoint yet. Don't clear breakpoint fields that
2272 init_raw_breakpoint already clears.
2273 (re_set_breakpoint): Delete, split into ...
2274 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2276 (breakpoint_re_set_one): Call the breakpoint's
2277 breakpoint_ops->re_set implementation, if there's one. Adjust.
2278 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2279 (struct bp_location_ops): New type.
2280 (struct bp_location): New field `ops'.
2281 (struct breakpoint_ops): New `allocate_location', `re_set' and
2282 `check_status' fields. Make `breakpoint_hit''s description match
2284 (init_bp_location): Declare.
2285 (breakpoint_re_set_default): Declare.
2286 (create_ada_exception_breakpoint): Rename to ...
2287 (init_ada_exception_breakpoint): ... this. Add a struct
2288 breakpoint parameter, and delete the exp_string, cond_string and
2290 (install_breakpoint): Declare.
2291 * ada-lang.c: Include exceptions.h.
2292 <Ada exceptions description>: Update.
2293 (struct ada_catchpoint_location): New type.
2294 (ada_catchpoint_location_dtor): New function.
2295 (ada_catchpoint_location_ops): New global.
2296 (ada_catchpoint): New type.
2297 (create_excep_cond_exprs): New function.
2298 (dtor_exception, allocate_location_exception, re_set_exception)
2299 (should_stop_exception, check_status_exception): New functions.
2300 (print_one_exception, print_mention_exception)
2301 (print_recreate_exception): Adjust.
2302 (dtor_catch_exception, allocate_location_catch_exception)
2303 (re_set_catch_exception, check_status_catch_exception): New
2305 (catch_exception_breakpoint_ops): Install them.
2306 (dtor_catch_exception_unhandled)
2307 (allocate_location_catch_exception_unhandled)
2308 (re_set_catch_exception_unhandled)
2309 (check_status_catch_exception_unhandled): New functions.
2310 (catch_exception_unhandled_breakpoint_ops): Install them.
2311 (dtor_catch_assert, allocate_location_catch_assert)
2312 (re_set_catch_assert, check_status_catch_assert): New functions.
2313 (catch_assert_breakpoint_ops): Install them.
2314 (ada_exception_catchpoint_p): Delete.
2315 (catch_ada_exception_command_split)
2316 (ada_exception_catchpoint_cond_string): Rename exp_string
2317 parameter to excep_string. Adjust.
2318 (ada_parse_catchpoint_condition): Delete.
2319 (ada_exception_sal): Rename the exp_string parameter to
2320 excep_string. Delete the cond_string and cond parameters.
2322 (ada_decode_exception_location): Rename the exp_string parameter
2323 to excep_string. Delete the cond_string and cond parameters.
2325 (create_ada_exception_catchpoint): New function.
2326 (catch_ada_exception_command, ada_decode_assert_location)
2327 (catch_assert_command): Adjust.
2328 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2330 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2332 * ada-lang.c: Include arch-utils.h.
2333 (ada_decode_exception_location): Make static.
2334 (catch_ada_exception_command): Moved here from breakpoint.c.
2335 (ada_decode_assert_location): Make static.
2336 (catch_assert_command): Moved here from breakpoint.c.
2337 (_initialize_ada_lang): Install the exception and assert
2338 catchpoint commands here.
2339 * ada-lang.h (ada_decode_exception_location)
2340 (ada_decode_assert_location): Delete declarations.
2341 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2343 (create_ada_exception_breakpoint): Make extern.
2344 (catch_ada_exception_command, catch_assert_command): Moved to
2346 (add_catch_command): Make extern.
2347 (_initilize_breakpoint): Don't install the exception and assert
2348 catchpoint commands here.
2349 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2351 (add_catch_command, create_ada_exception_breakpoint): Declare.
2353 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2355 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2356 the breakpoint to the breakpoint chain here.
2357 (set_raw_breakpoint_without_location): Add the breakpoint to the
2358 breakpoint chain here.
2359 (init_raw_breakpoint): Adjust comments.
2360 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2362 (init_catchpoint): Don't set the catchpoint's breakpoint number
2364 (install_catchpoint): New function.
2365 (create_fork_vfork_event_catchpoint)
2366 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2367 use install_catchpoint.
2369 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2371 * breakpoint.c (create_catchpoint_without_mention)
2372 (create_catchpoint): Delete.
2374 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2376 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2377 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2378 reference to exec_pathname.
2379 (struct exec_catchpoint): New type.
2380 (dtor_catch_exec): New function.
2381 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2382 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2383 (catch_exec_command_1): Adjust to use init_catchpoint.
2384 (delete_breakpoint): Remove reference to exec_pathname.
2386 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2388 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2389 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2390 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2391 reference to syscalls_to_be_caught.
2392 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2394 (struct syscall_catchpoint): New type.
2395 (dtor_catch_syscall): New function.
2396 (insert_catch_syscall, remove_catch_syscall)
2397 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2398 (print_recreate_catch_syscall): Adjust.
2399 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2400 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2401 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2402 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2403 (masked_watchpoint_breakpoint_ops)
2404 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2405 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2406 there is one. Remove references to syscalls_to_be_caught.
2407 (catching_syscall_number): Adjust.
2408 * ada-lang.c (catch_exception_breakpoint_ops)
2409 (catch_exception_unhandled_breakpoint_ops)
2410 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2412 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2414 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2416 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2417 reference to forked_inferior_pid.
2418 (struct fork_catchpoint): New type.
2419 (breakpoint_hit_catch_fork, print_it_catch_fork)
2420 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2421 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2422 (create_fork_vfork_event_catchpoint): Adjust to use
2425 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2427 * breakpoint.c (add_to_breakpoint_chain)
2428 (init_raw_breakpoint_without_location): New functions, factored
2430 (set_raw_breakpoint_without_location): ... this one.
2431 (init_raw_breakpoint): New function, factored out from
2432 set_raw_breakpoint and adjusted to use
2433 init_raw_breakpoint_without_location.
2434 (set_raw_breakpoint): Adjust.
2435 (init_catchpoint): New function, factored out from
2436 create_catchpoint_without_mention and adjusted to use
2437 init_raw_breakpoint.
2438 (create_catchpoint_without_mention): Adjust.
2440 2011-06-22 Tom Tromey <tromey@redhat.com>
2442 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2443 argument of 0 specially.
2445 2011-06-22 Yao Qi <yao@codesourcery.com>
2447 * infrun.c (handle_inferior_event): Remove write-only local variable
2448 `sw_single_step_trap_p'.
2450 2011-06-20 Tom Tromey <tromey@redhat.com>
2452 * symtab.c (lookup_language_this): End loop if block is NULL.
2454 2011-06-17 Tom Tromey <tromey@redhat.com>
2456 * valops.c (value_of_this): Use lookup_language_this.
2457 * symtab.h (lookup_language_this): Declare.
2458 * symtab.c (lookup_language_this): New function.
2459 (lookup_symbol_aux): Use lookup_language_this.
2460 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2462 2011-06-17 Tom Tromey <tromey@redhat.com>
2464 * value.h (value_of_this): Update.
2465 (value_of_local): Remove.
2466 * valops.c (value_of_this): Rename from value_of_local. Change
2468 * p-exp.y (exp): Update.
2469 (variable): Likewise.
2470 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2472 2011-06-17 Tom Tromey <tromey@redhat.com>
2474 * valops.c (value_of_local): Complain if NAME is NULL.
2475 * std-operator.def (OP_OBJC_SELF): Remove.
2476 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2477 * objc-exp.y (name_not_typename): Use OP_THIS.
2478 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2480 <OP_OBJC_SELF>: Remove.
2481 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2483 2011-06-16 Tristan Gingold <gingold@adacore.com>
2485 * python/py-events.h (gdb_py_events): Make it extern.
2486 * python/py-evtregistry.c (gdb_py_events): Declare.
2488 2011-06-16 Hui Zhu <teawater@gmail.com>
2490 * remote.c (remote_trace_set_readonly_regions): Add check for
2491 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2494 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2496 * arm-linux-tdep.c: Include "auxv.h".
2498 (ARM_LINUX_SIZEOF_VFP): Define.
2499 (arm_linux_supply_vfp): New function.
2500 (arm_linux_collect_vfp): Likewise.
2501 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2502 (arm_linux_fpa_regset_sections): New variable.
2503 (arm_linux_vfp_regset_sections): Likewise.
2504 (arm_linux_core_read_description): New function.
2505 (arm_linux_init_abi): Install arm_linux_core_read_description and
2506 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2507 appropriate for the architecture.
2508 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2509 (tdesc_arm_with_m): Declare.
2510 (tdesc_arm_with_iwmmxt): Likewise.
2511 (tdesc_arm_with_vfpv2): Likewise.
2512 (tdesc_arm_with_vfpv3): Likewise.
2513 (tdesc_arm_with_neon): Likewise.
2514 * arm-linux-nat.c: Move features/*.c includes ...
2515 * arm-tdep.c: ... here.
2516 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2517 target description data structures ...
2518 * arm-tdep.c (_initialize_arm_tdep): ... here.
2519 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2520 HWCAP_VFPv3D16): Move definitions ...
2521 * arm-linux-tdep.h: ... here.
2523 2011-06-15 Hui Zhu <teawater@gmail.com>
2525 * remote.c (remote_trace_set_readonly_regions): Add a check for
2528 2011-06-14 Tom Tromey <tromey@redhat.com>
2530 * coffread.c (coffread_objfile): Rename from current_objfile.
2531 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2532 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2534 2011-06-14 Tom Tromey <tromey@redhat.com>
2536 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2537 (class_symtab): Remove.
2538 (jv_dynamics_progspace_key): New global.
2539 (jv_per_objfile_free): Reset program space data. Update assert.
2540 Don't clear globals.
2541 (get_dynamics_objfile): Use and set program space data.
2542 (get_java_class_symtab): Use get_dynamics_objfile.
2543 (add_class_symbol): Likewise.
2544 (java_link_class_type): Likewise.
2545 (java_object_type, jv_clear_object_type, set_java_object_type):
2547 (get_java_object_type): Update. Don't cache result.
2548 (is_object_type): Don't call set_java_object_type.
2549 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2550 initialize jv_dynamics_progspace_key.
2552 2011-06-14 Tom Tromey <tromey@redhat.com>
2554 * symtab.h (current_objfile): Don't declare.
2555 * objfiles.h (current_objfile): Don't declare.
2556 * objfiles.c (current_objfile): Remove.
2557 * mdebugread.c (current_objfile): New file-scope global.
2558 * dbxread.c (current_objfile): New file-scope global.
2559 * coffread.c (current_objfile): New file-scope global.
2561 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2563 * top.h (line): Rename to ...
2564 (saved_command_line): ... this.
2565 (linesize): Rename to ...
2566 (saved_command_line_size): ... this.
2567 * top.c (line): Rename to ...
2568 (saved_command_line): ... this.
2569 (linesize): Rename to ...
2570 (saved_command_line_size): ... this.
2571 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2572 * event-top.c (command_line_handler): Adjust.
2573 * main.c (captured_main): Adjust.
2575 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2577 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2578 get_frame_func instead of get_frame_pc to determine the code
2579 address used to construct the frame ID.
2580 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2581 (i386_epilogue_frame_this_id): Likewise.
2582 (i386_epilogue_frame_prev_register): New function.
2583 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2584 (i386_stack_tramp_frame_sniffer): Fix coding style.
2585 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2586 (i386_gdbarch_init): Fix comments.
2588 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2590 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2591 instruction when walking back through the instruction stream.
2593 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2595 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2596 fullname parameters order.
2598 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2601 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2603 * psymtab.c (map_symbol_filenames_psymtab)
2604 (map_partial_symbol_filenames): Likewise.
2605 * psymtab.h: Include symfile.h.
2606 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2607 * symfile.h (symbol_filename_ftype): New.
2608 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2609 map_symbol_filenames, clarify more the naming in comment.
2611 2011-06-07 Doug Evans <dje@google.com>
2613 * cc-with-index.sh: Fix typos in comment.
2614 Look for ../../gdb, for fullname.exp.
2616 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2617 Pedro Alves <pedro@codesourcery.com>
2619 * cli/cli-cmds.c (shell_escape): Use waitpid.
2620 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2622 2011-06-07 Tristan Gingold <gingold@adacore.com>
2624 * xcoffread.c (dwarf2_xcoff_names): New variable.
2625 (aix_process_linenos): Add a guard.
2626 (xcoff_symfile_finish): Free dwarf2.
2627 (xcoff_initial_scan): Add dwarf2 support.
2629 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2631 * infcall.c (run_inferior_call): Don't mask async. Instead force
2632 a synchronous wait, if the target can async.
2634 * target.h (struct target_ops): Delete to_async_mask.
2635 (target_async_mask): Delete.
2636 * target.c (update_current_target): Delete references to to_async_mask.
2637 * linux-nat.c (linux_nat_async_mask_value): Delete.
2638 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2639 to linux_nat_async_mask_value.
2640 (linux_nat_async_mask): Delete.
2641 (linux_nat_async, linux_nat_close): Remove references to
2642 linux_nat_async_mask_value.
2643 * record.c (record_async_mask_value): Delete.
2644 (record_async): Remove references to record_async_mask_value.
2645 (record_async_mask): Delete.
2646 (record_can_async_p, record_is_async_p): Remove references to
2647 record_async_mask_value.
2648 (init_record_ops, init_record_core_ops): Remove references to
2650 * remote.c (remote_async_mask_value): Delete.
2651 (init_remote_ops): Remove reference to remote_async_mask.
2652 (remote_can_async_p, remote_is_async_p): Remove references to
2653 remote_async_mask_value.
2654 (remote_async): Remove references to remote_async_mask_value.
2655 (remote_async_mask): Delete.
2657 * infrun.c (fetch_inferior_event): Don't claim registers changed
2658 if the current thread is already not executing.
2660 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2662 From Stephen Kitt <steve@sk2.org>
2663 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2664 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2666 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2668 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2669 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2671 2011-06-03 Tom Tromey <tromey@redhat.com>
2673 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2675 * python/py-exitedevent.c (create_exited_event_object): Change
2676 type of 'exit_code'. Optionally add exit_code attribute.
2677 (emit_exited_event): Change type of 'exit_code'.
2678 * python/py-event.h (emit_exited_event): Update.
2679 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2680 * infrun.c (handle_inferior_event): Set exit code fields on
2682 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2684 * inferior.c (exit_inferior_1): Initialize new fields.
2686 2011-06-03 Tom Tromey <tromey@redhat.com>
2688 * dwarf2expr.c (get_signed_type): New function.
2689 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2691 2011-06-02 Keith Seitz <keiths@redhat.com>
2693 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2695 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2697 * top.h (simplified_command_loop): Delete declaration.
2699 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2701 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2702 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2704 2011-06-01 Yao Qi <yao@codesourcery.com>
2706 * objfiles.h (obj_section_addr): Update reference to objfile from
2708 (obj_section_endaddr): Likewise.
2710 2011-06-01 Daniel Jacobowitz <drow@false.org>
2712 * MAINTAINERS: Update my email address and affiliation. Also
2713 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2715 2010-05-31 Keith Seitz <keiths@redhat.com>
2718 * linespec.c (get_search_block): New function.
2719 (find_methods): Add FILE_SYMTATB parameter and use it and
2720 get_search_block to pass an appropriate block to
2721 lookup_symbol_in_namespace.
2722 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2723 Check if *ARGPTR starts with a filename first.
2724 If it does, call locate_first_half again to locate the next
2725 "first half" of the linespec.
2726 Pass FILE_SYMTATB to decode_objc and decode_compound.
2727 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2728 (locate_first_half): Stop on the first colon seen.
2729 (decode_compound): Add FILE_SYMTAB parameter.
2730 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2731 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2732 get_search_block with lookup_symbol.
2733 (find_method): Add FILE_SYMTAB parameter and pass it to
2735 (decode_objc): Use get_search_block.
2737 2010-05-31 Keith Seitz <keiths@redhat.com>
2740 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2741 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2742 and CP_ANONYMOUS_NAMESPACE_LEN.
2743 (cp_is_anonymous): Likewise.
2744 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2745 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2746 * dwarf2read.c (namespace_name): Likewise.
2747 (fixup_partial_die): Likewise.
2748 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2749 seen in the input, keep it.
2751 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2753 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2754 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2755 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2756 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2757 * remote.c (_initialize_remote): Register
2758 async_remote_interrupt_twice directly as
2759 sigint_remote_twice_token event.
2761 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2763 * target.h (enum inferior_event_type): Delete INF_ERROR.
2764 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2766 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2768 * interps.c (interp_set): Don't cancel continuations.
2770 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2772 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2774 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2776 * continuations.h (continuation_ftype): Add `err' parameter.
2777 Document parameters.
2778 (do_all_continuations, do_all_continuations_thread)
2779 (do_all_intermediate_continuations)
2780 (do_all_intermediate_continuations_thread)
2781 (do_all_inferior_continuations): Add `err' parameter.
2782 * continuations.c (do_my_continuations_1, do_my_continuations)
2783 (do_all_inferior_continuations, do_all_continuations_ptid)
2784 (do_all_continuations_thread_callback)
2785 (do_all_continuations_thread, do_all_continuations)
2786 (do_all_intermediate_continuations_thread_callback)
2787 (do_all_intermediate_continuations_thread)
2788 (do_all_intermediate_continuations): Add `err' parameter, and pass
2789 it down all the way to the continuations proper.
2790 * inf-loop.c (inferior_event_handler): If fetching an inferior
2791 event throws an error, don't pop the target, and still call the
2792 continuations, but with `err' set. Adjust all other continuation
2794 * breakpoint.c (until_break_command_continuation): Add `err'
2796 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2797 issue another step if `err' is set.
2798 (struct until_next_continuation_args): New.
2799 (until_next_continuation): Add `err' parameter. Adjust.
2800 (until_next_command): Adjust.
2801 (struct finish_command_continuation_args): Add `thread' field.
2802 (finish_command_continuation): Add `err' parameter. Handle it.
2803 (finish_forward): Adjust.
2804 (attach_command_continuation): Add `err' parameter. Handle it.
2805 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2806 cancel the continuations.
2807 * interps.c (interp_set): Adjust to cancel the continuations.
2808 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2809 continuations rather than discarding.
2810 (free_thread): Don't clear thread inferior resources here.
2811 (delete_thread_1): Do it here instead. And do it before removing
2812 the thread from the threads list. Tag the thread as exited before
2813 clearing thread inferior resources.
2815 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2817 * infcall.c (call_function_by_hand): Rephrase error message.
2819 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2821 * defs.h (struct thread_info, struct inferior): Delete forward
2823 * breakpoint.h (struct thread_info): New forward declaration.
2824 * observer.sh (struct inferior): New forward declaration.
2825 * python/python-internal.h (struct inferior): New forward
2828 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2830 * defs.h (struct continuation, continuation_ftype)
2831 (continuation_free_arg_ftype, add_continuation)
2832 (do_all_continuations, do_all_continuations_thread)
2833 (discard_all_continuations, discard_all_continuations_thread)
2834 (add_intermediate_continuation, do_all_intermediate_continuations)
2835 (do_all_intermediate_continuations_thread)
2836 (discard_all_intermediate_continuations)
2837 (discard_all_intermediate_continuations_thread)
2838 (add_inferior_continuation, do_all_inferior_continuations)
2839 (discard_all_inferior_continuations): Move to ...
2840 * continuations.h: ... this new file.
2841 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2842 infcmd.c, inferior.c, infrun.c, interps.c: Include
2845 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2846 Doug Evans <dje@google.com>
2848 Fix PR 10970, PR 12702.
2849 * linux-nat.c (linux_lwp_is_zombie): New function.
2850 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2851 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2853 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2855 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2857 (add_continuation, add_intermediate_continuation)
2858 (add_inferior_continuation): Use them.
2859 * continuations.c (struct continuation): Use them.
2860 (make_continuation_ftype): Delete.
2861 (make_continuation, add_inferior_continuation, add_continuation)
2862 (add_intermediate_continuation): Use continuation_ftype and
2863 continuation_free_arg_ftype. Rename parameters to shorter names.
2865 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2867 * continuations.c (make_continuation): Make it return void.
2868 (do_my_continuations): Rename to ...
2869 (do_my_continuations_1): ... this. Remove old_chain parameter and
2871 (do_my_continuations): New.
2872 (discard_my_continuations): Rename to ...
2873 (discard_my_continuations_1): ... this. Remove old_chain
2874 parameter and adjust.
2875 (discard_my_continuations): New.
2876 (add_inferior_continuation): Simplify.
2877 (do_all_inferior_continuations): Reimplement on top
2878 do_my_continuations.
2879 (discard_all_inferior_continuations): Simplify.
2880 (add_continuation): Simplify.
2881 (do_all_continuations_ptid): Simplify.
2882 (discard_all_continuations_thread_callback): Simplify.
2883 (add_intermediate_continuation): Simplify.
2884 (discard_all_intermediate_continuations_thread_callback):
2887 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2889 * utils.c (struct continuation, add_continuation)
2890 (add_inferior_continuation)
2891 (do_all_inferior_continuations, discard_all_inferior_continuations)
2892 (restore_thread_cleanup, do_all_continuations_ptid)
2893 (do_all_continuations_thread_callback)
2894 (do_all_continuations_thread, do_all_continuations)
2895 (discard_all_continuations_thread_callback)
2896 (discard_all_continuations_thread, discard_all_continuations)
2897 (add_intermediate_continuation)
2898 (do_all_intermediate_continuations_thread_callback)
2899 (do_all_intermediate_continuations_thread)
2900 (do_all_intermediate_continuations)
2901 (discard_all_intermediate_continuations_thread_callback)
2902 (discard_all_intermediate_continuations_thread)
2903 (discard_all_intermediate_continuations): Move to ...
2904 * continuations.c: ... this new file, and adjust to no longer
2905 implement continuations on top of cleanups.
2906 * Makefile.in (SFILES): Add continuations.c.
2907 (COMMON_OBS): Add continuations.o.
2909 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2911 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2912 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2913 Internal error on invalid values.
2914 * reverse.c: Don't handle EXEC_ERROR.
2915 * mi/mi-main.c: Don't handle EXEC_ERROR.
2917 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2919 * record.c: Include event-loop.h, inf-loop.h.
2920 (record_beneath_to_async): New global.
2921 (tmp_to_async): New global.
2922 (record_async_inferior_event_token): New global.
2923 (record_open_1): Don't error out if async is enabled.
2924 (record_open): Handle to_async. Create an async event source in
2926 (record_close): Delete the async event source.
2927 (record_resumed): New global.
2928 (record_execution_dir): New global.
2929 (record_resume, record_core_resume): Set them. Register the
2930 target on the event loop.
2931 (record_wait): Rename to ...
2932 (record_wait_1): ... this. Add more debug output. Handle
2933 TARGET_WNOHANG, and the target beneath returning
2934 TARGET_WAITKIND_IGNORE.
2935 (record_wait): Reimplement on top of record_wait_1.
2936 (record_async_mask_value): New global.
2937 (record_async, record_async_mask, record_can_async_p)
2938 (record_is_async_p, record_execution_direction): New functions.
2939 (init_record_ops, init_record_core_ops): Install new methods.
2940 * infrun.c (fetch_inferior_event): Temporarily switch the global
2941 execution direction to the direction the target was going.
2942 (execution_direction): Change type to int.
2943 * target.c (default_execution_direction): New function.
2944 (update_current_target): Inherit and de_fault
2945 to_execution_direction.
2946 * target.h (struct target_ops) <to_execution_direction>: New
2948 (target_execution_direction): New macro.
2949 * inferior.h (execution_direction): Change type to int.
2951 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2953 * infcall.c (call_function_by_hand): Don't allow calling functions
2954 in reverse execution mode.
2956 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2958 * infcmd.c (finish_command): Allow async finish in reverse.
2960 2011-05-26 Yao Qi <yao@codesourcery.com>
2962 * gdb_thread_db.h: Delete. Move to ...
2963 * common/gdb_thread_db.h: ... here.
2965 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2967 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2968 function's entry point instead of a manually managed momentary
2969 breakpoint, and only ever issue one proceed call.
2970 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2971 doing a reverse-finish, switch to stepi mode, to do another step.
2972 (insert_step_resume_breakpoint_at_sal): Make public.
2973 (normal_stop): No need to save function value return registers if
2975 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2977 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2979 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2980 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2981 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2983 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2984 step-resume breakpoints.
2985 (print_it_typical): Handle bp_hp_step_resume.
2986 (bpstat_what): Ditto.
2987 (bptype_string): Ditto.
2988 (print_one_breakpoint_location): Ditto.
2989 (allocate_bp_location): Ditto.
2991 (breakpoint_re_set_one): Ditto.
2992 * infrun.c (handle_inferior_event): Adjust. Split
2993 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2994 BPSTAT_WHAT_HP_STEP_RESUME.
2995 (insert_step_resume_breakpoint_at_sal): Rename to ...
2996 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2997 parameter. Handle it.
2998 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2999 insert_step_resume_breakpoint_at_sal_1.
3000 (insert_step_resume_breakpoint_at_frame): Rename to ...
3001 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3002 set a high-priority step-resume breakpoint.
3003 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3004 (insert_step_resume_breakpoint_at_caller): Ditto.
3006 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3008 * breakpoint.c (iterate_over_related_breakpoints): New.
3009 (do_map_delete_breakpoint): New.
3010 (delete_command): Pass do_map_delete_breakpoint to
3011 map_breakpoint_numbers.
3012 (do_disable_breakpoint): New.
3013 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3015 (do_enable_breakpoint): Rename to ...
3016 (enable_breakpoint_disp): ... this.
3017 (enable_breakpoint): Adjust.
3018 (do_enable_breakpoint): New.
3019 (enable_once_breakpoint): Delete.
3020 (do_map_enable_breakpoint): New.
3021 (do_map_enable_once_breakpoint): New.
3022 (enable_once_command, enable_delete_command)
3023 (delete_trace_command): Iterate over the breakpoint's related
3026 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3028 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3029 for ALPHA_ZERO_REGNUM.
3030 (alpha_supply_int_regs): Explicitly supply zero as the value for
3031 ALPHA_ZERO_REGNUM in the register cache.
3032 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3034 2011-05-26 Yao Qi <yao@codesourcery.com>
3036 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3038 2011-05-26 Tristan Gingold <gingold@adacore.com>
3040 * symfile.h (struct dwarf2_section_names): New type.
3041 (struct dwarf2_debug_sections): New type.
3042 (dwarf2_has_info): Add parameter.
3043 * dwarf2read.c (dwarf2_elf_names): New variable.
3044 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3045 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3046 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3047 (dwarf2_has_info): Add names parameter. Pass names
3048 to dwarf2_locate_sections.
3049 (section_is_p): Rewrite using the names parameter.
3050 (dwarf2_locate_sections): Use section names from the names parameter.
3051 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3052 * elfread.c (read_psyms): Ditto.
3053 * machoread.c (macho_symfile_read): Ditto.
3055 2011-05-25 Andreas Schwab <schwab@redhat.com>
3058 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3060 2011-05-24 Keith Seitz <keiths@redhat.com>
3063 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3064 (decode_compound): Unconditionally call keep_name_info.
3066 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3068 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3069 scope, clear its command list.
3070 (map_breakpoint_numbers): Don't walk the related breakpoints list
3073 2011-05-24 Tom Tromey <tromey@redhat.com>
3075 * MAINTAINERS: Move Jim Blandy to past maintainers.
3077 2011-05-24 Tristan Gingold <gingold@adacore.com>
3079 * symfile.h (enum dwarf2_section_enum): New type.
3080 (dwarf2_get_section_info): New prototype.
3081 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3082 section_name by sect. Use a switch to select the info.
3083 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3084 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3086 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3088 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3089 shared library event breakpoint if there's no execution.
3091 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3093 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3094 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3096 2011-05-23 Tom Tromey <tromey@redhat.com>
3098 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3101 2011-05-23 Doug Evans <dje@google.com>
3103 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3104 entry for RuntimeError to doc string.
3106 2011-05-23 Jerome Guitton <guitton@adacore.com>
3108 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3109 sequence for probing loops.
3111 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3113 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3116 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3118 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3119 zero as the value for %g0 in the register cache.
3120 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3121 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3123 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3125 * infrun.c (proceed): Set previous_inferior_ptid here.
3126 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3127 inferior_ptid, not null_ptid.
3128 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3129 (fetch_inferior_event): Nor here.
3131 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3133 * inf-loop.c (inferior_event_handler): Only output a message if
3136 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3138 * MAINTAINERS: Update my e-mail address.
3140 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3142 * infrun.c (proceed): Switch the inferior event loop to
3143 INF_EXEC_COMPLETE if the target refused to resume from a
3146 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3148 * infcmd.c: Include "inf-loop.h".
3149 (step_once): When stepping into an inline subroutine, pretend the
3150 target has run. If the target can async, switch the inferior
3151 event loop to INF_EXEC_COMPLETE.
3152 * inferior.h (user_visible_resume_ptid): Declare.
3153 * infrun.c (user_visible_resume_ptid): New function, factored out
3156 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3157 that the current thread is running. Merge async and sync
3160 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3162 * infcmd.c (step_1): Simplify synchronous case.
3164 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3166 * tracepoint.c: Include exceptions.h.
3167 (TFILE_PID): Move higher in file.
3168 (tfile_open): Delay pushing the tfile target until we're assured
3169 the tfile header is present in the file. Wrap reading the initial
3170 newline-terminated lines in TRY_CATCH. Pop the target if the
3171 initial setup failed. Add the tfile's thread immediately
3172 aftwards, before any non-essential setup. Don't skip
3173 post_create_inferior if there are no traceframes present in the
3175 (tfile_close): Remove redundant check for null before xfree call.
3176 (tfile_thread_alive): New function.
3177 (init_tfile_ops): Register it as to_thread_alive callback.
3179 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3181 * tracepoint.c (tfile_open): Delete #if 0'd code.
3183 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3185 Fix -readnow for -gdwarf-4 unused type units.
3186 * dwarf2read.c (struct signatured_type): Remove the field offset.
3187 (create_signatured_type_table_from_index): Remove its initialization.
3188 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3189 instead. Add a complaint call.
3190 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3191 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3192 (lookup_signatured_type_at_offset, read_signatured_type)
3193 (write_one_signatured_type): Update the field for per_cu.
3195 2011-05-19 Tom Tromey <tromey@redhat.com>
3197 * python/py-inferior.c (python_inferior_exit): Use
3199 (python_on_resume): Likewise.
3201 2011-05-19 Matt Rice <ratmice@gmail.com>
3203 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3205 2011-05-19 Hui Zhu <teawater@gmail.com>
3207 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3209 2011-05-19 Hui Zhu <teawater@gmail.com>
3211 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3213 2011-05-18 Tom Tromey <tromey@redhat.com>
3215 * dwarf2read.c (dwarf2_add_field): Constify.
3216 * value.c (value_static_field): Constify.
3217 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3219 * ax-gdb.c (gen_static_field): Constify
3221 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3223 * linux-nat.c (kill_callback): Use SIGKILL first.
3225 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3227 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3229 2011-05-18 Tom Tromey <tromey@redhat.com>
3231 * value.c (value_fn_field): Constify.
3232 * symtab.c (gdb_mangle_name): Constify.
3233 * stabsread.c (update_method_name_from_physname): Make 'physname'
3235 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3236 const. Use explicit fputc_filtered loop.
3237 (pascal_type_print_base): Constify.
3238 * p-lang.h (pascal_type_print_method_args): Update.
3239 * linespec.c (add_matching_methods): Constify.
3240 (add_constructors): Likewise.
3241 * jv-typeprint.c (java_type_print_base): Constify.
3242 * gdbtypes.h (struct cplus_struct_type)
3243 <fn_fieldlist.fn_field.physname>: Now const.
3244 * dwarf2read.c (compute_delayed_physnames): Constify.
3245 (dwarf2_add_member_fn): Likewise.
3246 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3248 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3250 * infrun.c (resume): Mention which is the current thread, and its
3251 current PC in debug output.
3252 (prepare_to_proceed): Mention the thread switching in debug
3255 2011-05-18 Tom Tromey <tromey@redhat.com>
3257 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3258 path check. Use xmalloc and cleanups.
3259 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3261 2011-05-17 Tom Tromey <tromey@redhat.com>
3263 * cp-valprint.c (cp_print_value_fields): Catch errors from
3266 2011-05-17 Tom Tromey <tromey@redhat.com>
3268 * dwarf2read.c (dwarf2_get_die_type): Call
3269 get_die_type_at_offset.
3270 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3271 get_base_type function.
3273 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3275 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3278 2011-05-16 Doug Evans <dje@google.com>
3280 * python/py-auto-load.c (source_section_scripts): Mention objfile
3283 2011-05-15 Doug Evans <dje@google.com>
3285 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3286 (try_thread_db_load_from_pdir): Call it. If unable to find
3287 libthread_db in directory of libpthread, see if we're looking at
3288 the separate-debug-info copy.
3290 * python/py-autoload.c (print_script): Print "Missing" instead of
3291 "No" for missing scripts.
3292 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3294 2011-05-13 Doug Evans <dje@google.com>
3296 * ui-file.c (stdio_file_write_async_safe): Add comment.
3298 2011-05-14 Hui Zhu <teawater@gmail.com>
3300 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3302 2011-05-13 Doug Evans <dje@google.com>
3304 Support $pdir and $sdir in libthread-db-search-path.
3305 * NEWS: Mention $sdir,$pdir.
3306 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3307 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3308 (try_thread_db_load_from_sdir): New function.
3309 (try_thread_db_load_from_dir): New function.
3310 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3311 system directories if search of libthread-db-search-path fails,
3312 that is now done via $sdir.
3313 (has_libpthread): New function.
3314 (thread_db_load): Remove search for libthread_db in directory of
3315 libpthread, that is now done via $pdir.
3317 * NEWS: Mention "info auto-load-scripts".
3318 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3319 script_not_found_warning_printed.
3320 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3321 all callers updated. Initialize script_not_found_warning_printed.
3322 (get_auto_load_pspace_data_for_loading): New function.
3323 (maybe_add_script): New function.
3324 (source_section_scripts): Simplify. Only print one warning regardless
3325 of the number of auto-load scripts not found.
3326 (clear_section_scripts): Clear script_not_found_warning_printed.
3327 (auto_load_objfile_script): Record script in hash table.
3328 (count_matching_scripts): New function.
3329 (maybe_print_script): Renamed from maybe_print_section_script, all
3330 callers updated. Rewrite to use ui_out_*.
3331 (info_auto_load_scripts): Renamed from
3332 maintenance_print_section_scripts, all callers updated.
3333 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3334 renamed as "info auto-load-scripts".
3336 2011-05-13 Tom Tromey <tromey@redhat.com>
3338 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3339 (read_sleb128): Likewise.
3341 2011-05-13 Tom Tromey <tromey@redhat.com>
3343 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3346 2011-05-13 Doug Evans <dje@google.com>
3348 * linux-nat.c (debug_linux_nat_async): Delete.
3349 Replace all references to use debug_linux_nat instead.
3350 (show_debug_linux_nat_async): Delete.
3351 (sigchld_handler): Call ui_file_write_async_safe instead of
3353 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3354 * ui-file.c (struct ui_file): New member to_write_async_safe.
3355 (null_file_write_async_safe): New function.
3356 (ui_file_write_async_safe): New function.
3357 (set_ui_file_write_async_safe): New function.
3358 (ui_file_new): Initialize to_write_async_safe.
3359 (stdio_file_write_async_safe): New function.
3360 (struct stdio_file): New member fd.
3361 (stdio_file_new): Initialize to_write_async_safe, fd.
3362 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3364 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3365 (set_ui_file_write_async_safe): Declare.
3366 (ui_file_write_async_safe): Declare.
3368 2011-05-13 Tom Tromey <tromey@redhat.com>
3370 * utils.c (do_value_free): New function.
3371 (make_cleanup_value_free): Likewise.
3372 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3374 (dwarf2_loc_desc_needs_frame): Call
3375 make_cleanup_value_free_to_mark.
3376 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3377 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3379 (new_dwarf_expr_context): Don't call value_mark.
3380 * dwarf2-frame.c (execute_stack_op): Call
3381 make_cleanup_value_free_to_mark.
3382 * defs.h (make_cleanup_value_free): Declare.
3384 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3386 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3387 prepare_execute_command.
3388 * top.c (prepare_execute_command): Return cleanup.
3389 (execute_command): Use cleanup from prepare_execute_command.
3390 * top.h (prepare_execute_command): Change prototype to return
3392 * defs.h (struct value): Add opaque declaration.
3393 (make_cleanup_value_free_to_mark): Add prototype.
3394 * utils.c (do_value_free_to_mark): New function.
3395 (make_cleanup_value_free_to_mark): Likewise.
3397 2011-05-12 Tom Tromey <tromey@redhat.com>
3399 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3400 cast left-hand-side to unsigned.
3402 2011-05-12 Tom Tromey <tromey@redhat.com>
3405 * value.h (value_from_contents): Declare.
3406 * value.c (value_from_contents): New function.
3407 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3408 (dwarf2_get_die_type): New function.
3409 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3410 (allocate_piece_closure): Acquire reference to values.
3411 (read_pieced_value): Update for value-based expressions.
3412 (write_pieced_value): Likewise.
3413 (free_pieced_value_closure): Call value_free as needed.
3414 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3415 Update for value-based expressions.
3416 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3417 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3418 <get_base_type>: New field.
3419 (struct dwarf_expr_piece) <v.value>: Change type.
3420 <v.regno>: New field.
3421 (struct dwarf_expr_context) <mark>: New field.
3422 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3423 (dwarf_expr_pop, dwarf_expr_push): Remove.
3424 (dwarf_expr_push_address): Declare.
3425 * dwarf2expr.c (dwarf_arch_cookie): New global.
3426 (struct dwarf_gdbarch_types): New.
3427 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3429 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3431 (dwarf_expr_push_address): New function.
3432 (dwarf_expr_pop): Now static.
3433 (dwarf_expr_fetch): Change return type.
3434 (dwarf_require_integral): New function.
3435 (dwarf_expr_fetch): Simplify.
3436 (add_piece): Update.
3437 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3439 (execute_stack_op) <sign_ext>: Remove.
3440 Use values for DWARF stack.
3441 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3442 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3444 (_initialize_dwarf2expr): New function.
3445 (add_piece): Update.
3446 (new_dwarf_expr_context): Set new field.
3447 (free_dwarf_expr_context): Call value_free_to_mark.
3448 * dwarf2-frame.c (no_base_type): New function.
3449 (execute_stack_op): Set get_base_type field. Update.
3451 2011-05-12 Tom Tromey <tromey@redhat.com>
3453 * dwarf2read.c (read_common_block): Fix formatting.
3455 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3457 * breakpoint.c (disable_breakpoint): Disable all locations
3458 associated with a tracepoint on target if a trace experiment is
3460 (disable_command): Disable a specific tracepoint location on target if
3461 a trace experiment is running.
3462 (do_enable_breakpoint): Enable all locations associated with a
3463 tracepoint on target if a trace experiment is running.
3464 (enable_command) Enable a specific tracepoint location on target if a
3465 trace experiment is running.
3466 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3467 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3468 to_disable_tracepoint.
3469 * target.h: Add declaration of struct bp_location.
3470 (struct target_ops): Add new functions
3471 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3472 to_disable_tracepoint to target operations.
3473 (target_supports_enable_disable_tracepoint): New macro.
3474 (target_enable_tracepoint): New macro.
3475 (target_disable_tracepoint): New macro.
3476 * remote.c (struct remote_state): Add new field.
3477 (remote_enable_disable_tracepoint_feature): New.
3478 (remote_protocol_features): Add new entry.
3479 (remote_supports_enable_disable_tracepoint): New.
3480 (remote_enable_tracepoint): New.
3481 (remote_disable_tracepoint): New.
3482 (init_remote_ops): Add remote_enable_tracepoint,
3483 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3484 to remote operations.
3485 * tracepoint.c (start_tracing): Allow tracing to start without any
3486 tracepoints enabled with just a warning if they can be re-enabled
3488 * NEWS: Add news item for the new behaviour of the enable and disable
3489 GDB commands when applied to tracepoints.
3490 Add news items for the new remote packets QTEnable and QTDisable.
3492 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3494 * config.in: Regenerate.
3495 * configure: Regenerate.
3496 * configure.ac <--with-system-readline> (for readline_echoing_p):
3498 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3499 (tui_old_rl_echoing_p): ... here.
3500 (tui_setup_io): Rename extern declaration readline_echoing_p to
3501 _rl_echoing_p. Adjust assignments for the both renames.
3503 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3505 * symtab.c (lookup_symtab): Run cleanup before returning.
3507 2011-05-11 Tom Tromey <tromey@redhat.com>
3509 * dwarf2read.c (handle_data_member_location): New function.
3510 (dwarf2_add_field): Use it.
3511 (read_common_block): Likewise.
3513 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3515 Make addrs->SECTINDEX always defined.
3516 * symfile.c (relative_addr_info_to_section_offsets): Check for
3517 SECTINDEX -1, not for zero ADDR.
3518 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3519 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3520 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3523 2011-05-10 Doug Evans <dje@google.com>
3525 * linux-thread-db.c: Whitespace cleanup.
3526 (try_thread_db_load_1): Fix comment.
3528 * linux-thread-db.c (set_libthread_db_search_path): New function.
3529 (_initialize_thread_db): Add setter for libthread-db-search-path.
3531 2011-05-09 Doug Evans <dje@google.com>
3533 * NEWS: Mention --with-iconv-bin.
3534 * configure.ac: New option --with-iconv-bin.
3535 * configure: Regenerate.
3536 * config.in: Regenerate.
3537 * defs.h (relocate_gdb_directory): Declare.
3538 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3539 removed progname parameter, and exported. All callers updated.
3540 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3542 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3543 adding missing call to restore_child_signals_mask.
3545 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3547 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3549 * infrun.c (proceed, start_remote): Adjust.
3550 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3551 and adjust to not handle it.
3552 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3553 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3554 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3555 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3556 * windows-nat.c (do_initial_windows_stuff): Adjust.
3557 * infcmd.c (attach_command): Adjust.
3558 (notice_new_inferior): Adjust.
3560 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3562 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3563 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3564 * spu-tdep.c (op_selb): Use correct value.
3566 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3568 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3569 "parent" parameter to symbol_file_add_from_bfd call.
3571 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3572 Thiago Jung Bauermann <bauerman@br.ibm.com>
3574 Implement support for PowerPC BookE masked watchpoints.
3575 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3577 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3578 method. Initialize to NULL in all existing breakpoint_ops instances.
3579 (struct breakpoint) <hw_wp_mask>: New field.
3580 * breakpoint.c (is_masked_watchpoint): Add prototype.
3581 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3582 breakpoint's breakpoint_ops.works_in_software_mode if available.
3583 (watchpoints_triggered): Handle the case of a hardware masked
3585 (watchpoint_check): Likewise.
3586 (works_in_software_mode_watchpoint): New function.
3587 (insert_masked_watchpoint, remove_masked_watchpoint)
3588 (resources_needed_masked_watchpoint)
3589 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3590 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3591 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3593 (masked_watchpoint_breakpoint_ops): New structure.
3594 (watch_command_1): Check for the existence of the `mask' parameter.
3595 Set b->ops according to the type of hardware watchpoint being created.
3596 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3597 (ppc_linux_remove_mask_watchpoint)
3598 (ppc_linux_masked_watch_num_registers): New functions.
3599 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3600 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3601 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3602 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3603 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3604 (target_masked_watch_num_registers): New functions.
3605 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3606 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3608 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3609 (target_masked_watch_num_registers): Add prototypes.
3611 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3614 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3615 (producer_is_gcc_ge_4_0): New function.
3616 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3617 symtab->language code.
3618 (var_decode_location): Set cu->has_loclist.
3619 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3620 skip. Intialize force_skip from locations_valid. Move the prologue
3621 skipping code into two passes.
3622 * symtab.h (struct symtab): Make the primary field a bitfield. New
3623 field locations_valid.
3625 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3627 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3628 (classify_inner_name): Call cp_lookup_nested_type with
3630 * cp-namespace.c (cp_lookup_nested_type): New variable
3631 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3632 type_name_no_tag_or_error with saved_parent_type.
3633 * dwarf2read.c (load_partial_dies): Read in any children of
3634 DW_TAG_typedef with complaint in such case.
3635 * gdbtypes.c (type_name_no_tag_or_error): New function.
3636 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3637 * valops.c (destructor_name_p): New comment for parameter type. Remove
3638 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3639 * value.h (destructor_name_p): Remove type const.
3641 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3643 * symtab.c (compare_symbol_name): New function.
3644 (completion_list_add_name, expand_partial_symbol_name): Call it,
3645 remove the variable ncmp.
3646 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3649 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3651 Demote to sw watchpoint only in update_watchpoint.
3652 * breakpoint.c (update_watchpoint): Change between software and
3653 hardware watchpoint for all kinds of watchpoints, not just
3654 read/write ones. Determine b->exact value here instead of
3655 in watch_command_1. Error out if there are not enough resources
3656 for a read or access hardware watchpoint.
3657 (watch_command_1): Remove logic of checking whether there are
3658 enough resources available, since update_watchpoint will do that
3659 work now. Don't set b->exact here. Catch exceptions thrown by
3660 update_watchpoint and delete the watchpoint.
3661 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3662 Use target_exact_watchpoints instead.
3663 (delete_breakpoint): Notify observers only if deleted watchpoint
3664 has a breakpoint number assigned to it.
3666 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3668 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3670 2011-05-05 Jerome Guitton <guitton@adacore.com>
3672 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3674 (i386_stack_tramp_frame_unwind): New static global.
3675 (i386_match_pattern): New function, extracted from i386_match_insn.
3676 (i386_match_insn): Use i386_match_pattern.
3677 (i386_match_insn_block): New function.
3678 (i386_tramp_chain_in_reg_insns)
3679 (i386_tramp_chain_on_stack_insns): New static variables.
3680 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3683 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3685 * configure.host (xscale*): Don't handle target.
3686 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3689 2011-05-04 Yao Qi <yao@codesourcery.com>
3691 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3693 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3696 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3697 | * elfread.c (elf_symtab_read): Stop memory leak.
3699 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3701 * nto-tdep.c (nto_target): Replace deprecated call to
3702 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3704 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3706 Fix false GCC warning.
3707 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3709 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3711 * breakpoint.c (update_watchpoint): Move code to change
3712 the enable state of breakpoint from here ...
3713 (do_enable_breakpoint): ... to here.
3715 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3717 * valprint.c (val_print_array_elements): Fixed poor performance
3718 of printing very large arrays with repeat_count_threshold set
3719 to unlimited. New comment.
3721 2011-04-29 Tom Tromey <tromey@redhat.com>
3723 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3724 (mi_parse): Likewise.
3725 * breakpoint.c (break_range_command): Use sizeof char*, not
3727 (create_breakpoint): Likewise.
3728 (parse_breakpoint_sals): Likewise.
3730 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3732 * linux-nat.c (linux_child_remove_fork_catchpoint)
3733 (linux_child_remove_vfork_catchpoint)
3734 (linux_child_remove_exec_catchpoint): New functions.
3735 (linux_target_install_ops): Install them.
3737 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3741 * varobj.c (install_default_visualizer): Do not install a
3742 visualizer if the varobj is CPLUS_FAKE_CHILD.
3743 (construct_visualizer): Likewise.
3745 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3747 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3748 case insensitive comparison.
3750 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3752 * infrun.c (proceed): Revert previous change.
3753 (resume): Instead, handle the case of signal delivery while stepping
3754 off a breakpoint location here, and only if software single-stepping
3755 is used. Handle nested signals.
3757 2011-04-28 Yao Qi <yao@codesourcery.com>
3759 * arm-tdep.c (copy_unmodified): Rename to ...
3760 (arm_copy_unmodified): .. this. New.
3761 (copy_preload): Move common part to ...
3762 (install_preload): .. this. New.
3763 (arm_copy_preload): New.
3764 (copy_preload_reg): Move common part to ...
3765 (install_preload_reg): ... this. New.
3766 (arm_copy_preload_reg): New.
3767 (copy_b_bl_blx): Move common part to ...
3768 (install_b_bl_blx): .. this. New.
3769 (arm_copy_b_bl_blx): New.
3770 (copy_bx_blx_reg): Move common part to ...
3771 (install_bx_blx_reg): ... this. New.
3772 (arm_copy_bx_blx_reg): New.
3773 (copy_alu_reg): Move common part to ...
3774 (install_alu_reg): ... this. New.
3775 (arm_copy_alu_reg): New.
3776 (copy_alu_shifted_reg): Move common part to ...
3777 (install_alu_shifted_reg): ... this. New.
3778 (copy_ldr_str_ldrb_strb): Move common part to ...
3779 (install_ldr_str_ldrb_strb): ... this. New.
3780 (arm_copy_ldr_str_ldrb_strb): New.
3781 (copy_copro_load_store): Move some common part to ...
3782 (install_copy_copro_load_store): ... this. New.
3783 (arm_copy_copro_load_store): New.
3785 (arm_copy_svc): Renamed from copy_svc.
3786 (copy_undef): Delete.
3787 (arm_copy_undef): Renamed from copy_undef.
3788 (decode_ext_reg_ld_st): Delete.
3789 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3790 (decode_svc_copro): Delete.
3791 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3792 (copy_copro_load_store, copy_alu_imm): update callers.
3793 (copy_extra_ld_st, copy_block_xfer): Likewise.
3794 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3795 (decode_miscellaneous, decode_dp_misc): Likewise.
3796 (decode_ld_st_word_ubyte, decode_media): Likewise.
3797 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3798 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3799 (decode_unconditional, decode_miscellaneous): Likewise.
3800 (decode_media, decode_b_bl_ldmstm): Likewise.
3801 (arm_process_displaced_insn): Likewise..
3802 (decode_misc_memhint_neon): Delete.
3803 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3804 (decode_miscellaneous): Delete.
3805 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3806 (decode_dp_misc): Delete.
3807 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3808 (decode_ld_st_word_ubyte): Delete.
3809 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3810 (decode_media): Delete.
3811 (arm_decode_media): Renamed from decode_media.
3812 (decode_b_bl_ldmstm): Delete.
3813 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3814 (decode_ext_reg_ld_st): Delete.
3815 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3816 (decode_unconditional): Delete.
3817 (arm_decode_unconditional): Renamed from decode_unconditional.
3819 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3821 Case insensitive lookups implementation.
3822 * dwarf2read.c: Include ctype.h.
3823 (struct mapped_index): New field version.
3824 (mapped_index_string_hash): New parameter index_version. New comment
3825 for it. Call tolower appropriately.
3826 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3827 Choose the right index version for mapped_index_string_hash.
3828 (dwarf2_read_index): Support also the index version 5. Initialize the
3829 new struct mapped_index field version.
3830 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3831 (find_slot): Explain the version needs. Pass INT_MAX for the new
3833 (write_psymtabs_to_index): Produce version 5.
3834 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3835 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3836 * psymtab.c (lookup_partial_symbol): Find the
3837 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3839 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3841 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3842 (completion_list_add_name): New variable ncmp, initialize it, use it.
3843 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3844 * utils.c (strcmp_iw): Support case_sensitive_off.
3845 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3846 New function comment part. New variables saved_string1,
3847 saved_string2 and case_pass. Add a proper second pass.
3849 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3851 Replace re_comp/re_exec by regcomp/regexec.
3852 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3853 (search_symbols_name_matches): Use them, use regexec.
3854 (search_symbols): New variable retval_chain, adjust the use of
3855 old_chain against it. Replace re_comp by regcomp. Use the new struct
3856 search_symbols_data fields, use regexec instead of re_exec.
3858 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3860 Format the code for the next patch.
3861 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3862 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3863 New variables c1 and c2.
3865 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3867 * infrun.c (proceed): Do not single-step into signal delivery
3868 when stepping off a breakpoint location.
3869 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3870 (insert_step_resume_breakpoint_at_caller): Likewise.
3871 (insert_step_resume_breakpoint_at_sal): Likewise.
3872 (insert_longjmp_resume_breakpoint): Likewise.
3874 2011-04-27 Yao Qi <yao@codesourcery.com>
3876 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3878 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3880 * procfs.c (procfs_pass_signals): Fix advance declaration.
3882 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3884 * target.h (struct target_ops): Remove to_notice_signals;
3885 add to_pass_signals.
3886 (target_notice_signals): Remove.
3887 (target_pass_signals): Add prototype.
3888 * target.c (update_current_target): Remove to_notice_signals;
3889 mention to_pass_signals.
3890 (target_pass_signals): New function.
3891 (debug_to_notice_signals): Remove.
3892 (setup_target_debug): Do not install debug_to_notice_signals.
3894 * infrun.c (signal_pass): New global.
3895 (resume): Call target_pass_signals.
3896 (handle_inferior_event): Report all signals while stepping over
3897 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3898 are re-inserted when stepping over a signal handler.
3899 (signal_cache_update): New function.
3900 (signal_stop_update): Call it.
3901 (signal_print_update): Likewise.
3902 (signal_pass_update): Likewise.
3903 (handle_command): Call signal_cache_update and target_pass_signals
3904 instead of target_notice_signals.
3905 (_initialize_infrun): Initialize signal_pass.
3907 * linux-nat.c (pass_mask): New global.
3908 (linux_nat_pass_signals): New function.
3909 (linux_nat_create_inferior): Report all signals initially.
3910 (linux_nat_attach): Likewise.
3911 (linux_nat_resume): Use pass_mask to decide whether to directly
3912 handle an inferior signal.
3913 (linux_nat_wait_1): Likewise.
3914 (linux_nat_add_target): Install to_pass_signals callback.
3916 * nto-procfs.c (notice_signals): Remove.
3917 (procfs_resume): Do not call notice_signals.
3918 (procfs_notice_signals): Remove.
3919 (procfs_pass_signals): New function.
3920 (init_procfs_ops): Install to_pass_signals callback instead of
3921 to_notice_signals callback.
3922 (_initialize_procfs): Report all signals initially.
3924 * procfs.c (procfs_notice_signals): Remove.
3925 (procfs_pass_signals): New function.
3926 (procfs_target): Install to_pass_signals callback instead of
3927 to_notice_signals callback.
3928 (register_gdb_signals): Remove.
3929 (procfs_debug_inferior): Report all signals initially.
3930 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3932 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3933 parameters; use them instead of calling signal_..._state routines.
3934 (remote_notice_signals): Remove.
3935 (remote_start_remote): Report all signals initially.
3936 (remote_resume): Do not call remote_pass_signals.
3937 (_initialize_remote): Install to_pass_signals callback instead of
3938 to_notice_signals callback.
3940 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3942 * breakpoint.c (user_settable_breakpoint): Delete.
3943 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3944 (delete_command): Check user_breakpoint_p instead of looking at
3945 the breakpoint's type.
3946 (disable_command): Ditto.
3947 (enable_command): Ditto.
3948 (delete_trace_command): Use user_breakpoint_p instead of looking
3949 at the breakpoint number directly. When checking if there are
3950 user visible tracepoints, in order to know whether to ask the user
3951 for confirmation, check whether the breakpoint is actually a
3954 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3956 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3959 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3961 MI breakpoint notifications.
3963 * annotate.c (breakpoint_changed): Adjust parameter type.
3964 * breakpoint.c (set_breakpoint_condition): Adjust to change
3965 in breakpoint_modified type.
3966 (breakpoint_set_commands): Likewise.
3967 (do_map_commands_command): Likewise.
3968 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3969 changed after bumping hit count.
3970 (bpstat_stop_status): Likewise.
3971 (print_one_breakpoint_location): Don't wrap in tuple here.
3972 (print_one_breakpoint): Always print individual locations.
3973 For locations, use unnamed tuple.
3974 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3976 (create_catchpoint, create_syscall_event_catchpoint): Call
3977 breakpoint_created obsever.
3978 (mention): Don't call breakpoint_created observer.
3979 (create_breakpoint_sal): Call breakpoint_created observer.
3980 (create_breakpoint, watch_command_1): Likewise.
3981 (create_ada_exception_breakpoint): Likewise.
3982 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3983 (locations_are_equal): New.
3984 (update_breakpoint_locations): If locations were changed, notify.
3985 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3986 Call breakpoint_modified observer.
3988 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3989 (mi_cmd_break_insert): Don't set observers for modify and delete.
3990 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3991 (mi_breakpoint_created, mi_breakpoint_deleted)
3992 (mi_breakpoint_modified): New.
3993 (mi_interpreter_init): Hook the above.
3994 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3995 while -break-* commands are executing.
3996 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3997 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3999 (mi_ui_out_impl): Hook in mi_redirect.
4000 (mi_field_skip): True to the name, skip the field, don't output
4001 a field with an empty value.
4003 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4004 (gdbpy_breakpoint_deleted): Adjust.
4005 * tui/tui-hooks.c (tui_event_create_breakpoint)
4006 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4008 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4010 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4011 (procfs_remove_hw_watchpoint): Likewise.
4013 2011-04-26 Michael Walle <michael@walle.cc>
4015 * remote.c (remote_start_remote): Ack packet after sending the
4018 2011-04-26 Yao Qi <yao@codesourcery.com>
4020 * linux-nat.c: Move common macros to ...
4021 Include linux-ptrace.h.
4022 * common/linux-ptrace.h: ... here. New.
4024 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4026 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4027 !objfile_has_partial_symbols. New comment.
4028 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4029 SYM_READ_PSYMBOLS is not present. Extend the comment.
4030 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4032 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4034 * defs.h (ENUM_BITFIELD): Remove.
4036 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4037 Eli Zaretskii <eliz@gnu.org>
4039 * NEWS: Document the new gdbserver --once option.
4041 2011-04-21 Jie Zhang <jzhang918@gmail.com>
4043 * MAINTAINERS: Update my email address.
4045 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4047 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4048 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4049 function call if __STDC_ISO_10646__ macro is defined.
4050 (intermediate_encoding): New prototype.
4051 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4052 to generate compile time error for unsupported gdb_wchar_t size.
4053 (ENDIAN_SUFFIX): New macro.
4054 (intermediate_encoding): New function.
4056 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4058 * ada-lang.c (struct add_partial_datum): Update the comment for
4059 expand_partial_symbol_name.
4060 (ada_add_partial_symbol_completions): Rename to ...
4061 (ada_expand_partial_symbol_name): ... here, change return type, update
4062 function comment, call symbol_completion_match instead of
4063 symbol_completion_add.
4064 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4065 and ada_expand_partial_symbol_name.
4066 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4068 (dw2_map_symbol_names): Remove.
4069 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4070 * psymtab.c (map_symbol_names_psymtab): Remove.
4071 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4072 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4074 (psym_functions): Unlist map_symbol_names_psymtab.
4075 (map_partial_symbol_names): Rename to ...
4076 (expand_partial_symbol_names): ... here, change the FUN type, call
4077 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4078 * psymtab.h (map_partial_symbol_names): Rename to ...
4079 (expand_partial_symbol_names): ... here, change the FUN type.
4080 * symfile.h (struct quick_symbol_functions): Update the description of
4081 expand_symtabs_matching. Remove map_symbol_names.
4082 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4083 (struct add_name_data): Update the comment for
4084 expand_partial_symbol_name.
4085 (add_partial_symbol_name): Rename to ...
4086 (expand_partial_symbol_name): ... here. Replace
4087 completion_list_add_name call by strncmp.
4088 (default_make_symbol_completion_list_break_on): Use now
4089 expand_partial_symbol_names and expand_partial_symbol_name.
4090 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4092 2011-04-20 Tom Tromey <tromey@redhat.com>
4094 * dwarf2read.c (save_gdb_index_command): Replace format
4095 documentation with a pointer to the manual.
4097 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4099 * regcache.c: Include remote.h.
4100 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4101 (regcache_dump): Handle regcache_dump_remote.
4102 (maintenance_print_remote_registers): New function.
4103 (_initialize_regcache): Install "maint print remote-registers"
4105 * remote.c (map_regcache_remote_table): New function, factored out
4107 (init_remote_state): ... here.
4108 (remote_register_number_and_offset): New.
4109 * remote.h (remote_register_number_and_offset): Declare.
4111 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4113 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4114 null_ptid, assume and allow a NULL address space, instead of
4115 asking the target for the ptid's address space.
4116 * infrun.c (ptid_is_pid): Remove assertion.
4118 2011-04-19 Tom Tromey <tromey@redhat.com>
4120 * windows-tdep.c (windows_xfer_shared_library):
4121 * windows-nat.c (get_module_name, windows_make_so):
4122 * v850-tdep.c (v850_handle_pushm):
4123 * utils.c (null_cleanup, gdb_realpath):
4124 * ui-out.c (get_next_header):
4125 * tracepoint.c (clear_traceframe_info):
4126 * symtab.c (lookup_symtab):
4127 * serial.h (struct serial_ops):
4128 * mipsread.c (read_alphacoff_dynamic_symtab):
4129 * infcmd.c (print_return_value):
4130 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4131 * f-exp.y (parse_number):
4132 * exceptions.c (catch_exceptions):
4133 * dummy-frame.c (dummy_frame_this_id):
4134 * defs.h (struct cleanup):
4135 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4136 * arm-tdep.c (arm_push_dummy_call):
4137 * amd64-tdep.h (amd64_collect_xsave):
4138 * amd64-tdep.c (amd64_collect_xsave):
4139 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4140 * README (typing): Remove duplicate words.
4141 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4142 * infrun.c (siginfo_value_read): Fix typo.
4143 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4144 * top.c (source_line_number): Add comma.
4146 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4148 * thread.c (any_live_thread_of_process): Prioritize threads
4149 that are not executing.
4150 * gdbthread.h (any_live_thread_of_process): Update comment
4151 as per above change.
4153 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4155 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4156 (scan_xcoff_symtab): Likewise.
4158 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4160 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4163 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4164 Pedro Alves <pedro@codesourcery.com>
4166 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4167 variables to simplify code and avoid == operator at end of
4168 line as this is against GNU coding standards.
4170 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4172 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4173 lm_name to name_lm to avoid conflict with lm_name function.
4175 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4177 ARI fixes: Use only lowercase function name for static functions.
4178 * nto-tdep.c (LM_ADDR): Rename to...
4179 (lm_addr): New function name.
4180 (nto_relocate_section_addresses): Adapt to change above.
4181 * solib-sunos.c (LM_ADDR): Rename to...
4182 (lm_addr): New function name.
4183 (LM_NEXT): Rename to...
4184 (lm_next): New function name.
4185 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4186 function name changes above.
4187 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4188 (lm_addr_from_link_map): New function name.
4189 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4190 (has_lm_dynamic_from_link_map): New function name.
4191 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4192 (lm_dynamic_from_link_map): New function name.
4193 (LM_ADDR_CHECK): Rename to...
4194 (lm_addr_check): New function name.
4195 (LM_NEXT): Rename to...
4196 (lm_next): New function name.
4197 (LM_PREV): Rename to...
4198 (lm_prev): New function name.
4199 (LM_NAME): Rename to...
4200 (lm_name): New function name.
4201 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4202 (ignore_first_link_map_entry): New function name.
4203 (svr4_keep_data_in_core): Adapt to function name changes above.
4204 (svr4_current_sos): Likewise.
4205 (enable_break): Likewise.
4206 (svr4_relocate_section_addresses): Likewise.
4208 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4211 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4212 sprintf. Simplify code and avoid loosing memory.
4213 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4214 (call0_frame_cache): Remove && operator from end of line.
4216 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4218 Fix libraries displacement if they change whether they were prelinked.
4219 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4220 does not match. Comment why.
4222 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4224 * corelow.c: Include wrapper.h.
4225 (core_open): Call now gdb_target_find_new_threads.
4226 * wrapper.c: Include target.h.
4227 (gdb_target_find_new_threads): New.
4228 * wrapper.h (gdb_target_find_new_threads): New declaration.
4230 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4232 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4233 even if !TARGET_HAS_EXECUTION.
4235 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4237 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4238 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4239 bfd_get_synthetic_symtab.
4240 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4241 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4242 parameter parent, remove the call to add_separate_debug_objfile.
4243 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4244 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4245 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4246 parent, new comment for it, call add_separate_debug_objfile for it.
4247 (symbol_file_add_separate): Pass objfile as the parameter parent,
4248 remove the call to add_separate_debug_objfile.
4249 (symbol_file_add_from_bfd): New parameter parent, pass it.
4250 (symbol_file_add): Pass NULL to the new parameter parent.
4251 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4253 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4255 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4258 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4260 Fix Python access to inlined frames.
4261 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4262 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4264 2011-04-15 Tom Tromey <tromey@redhat.com>
4266 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4268 2011-04-15 Gary Benson <gbenson@redhat.com>
4270 * MAINTAINERS: Add myself to write-after-approval section.
4272 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4274 * remote-sim.c (sim_command_completer): New function.
4275 (_initialize_remote_sim): Set completer to sim_command_completer.
4277 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4279 * breakpoint.c (print_exception_catchpoint): Rename to ...
4280 (print_it_exception_catchpoint): ... this.
4281 (gnu_v3_exception_catchpoint_ops): Update with new name
4282 for print_it_exception_catchpoint.
4284 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4286 * MAINTAINERS: Add myself for write after approval privileges.
4288 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4290 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4292 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4294 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4296 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4298 * breakpoint.c (save_breakpoints): Verify whether
4299 breakpoint_ops.print_recreate is defined before calling it.
4301 2011-04-11 Gary Benson <gbenson@redhat.com>
4303 Fix failure with --enable-maintainer-mode.
4304 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4306 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4309 * symtab.c (search_symbols): Reorder the KIND description in the
4310 function comment. Remove the unused 4th element of types, types2,
4311 types3 and types4. New gdb_assert on KIND.
4312 (symtab_symbol_info): Remove the unused 4th element of classnames.
4313 New gdb_assert on KIND.
4314 * symtab.h (enum search_domain): New warning in the enum comment.
4315 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4318 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4320 Fix crash of gdb save-index on a STABS file.
4321 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4324 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4326 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4327 * dwarf2read.c: Include ctype.h.
4328 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4330 (dwarf2_add_field): Fix new_field->accessibility by calling
4331 dwarf2_default_access_attribute. Restructure setting accessibility
4333 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4334 is_private and is_protected by calling
4335 dwarf2_default_access_attribute.
4337 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4339 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4340 to the initialization.
4342 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4344 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4347 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4349 Remove support for old Cygwin 1.5 versions.
4350 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4351 function on old Cygwin version.
4352 * windows-nat.c: Remove cygwin version check and always define
4353 __USEWIDE for Cygwin compilation.
4355 2011-04-07 Yao Qi <yao@codesourcery.com>
4357 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4359 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4360 (arm_copy_svc): Remove parameters INSN and TO.
4361 (decode_svc_copro): Update caller.
4362 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4363 from function pointer `copy_svc_os'.
4365 2011-04-07 Yao Qi <yao@codesourcery.com>
4367 * arm-tdep.c (cleanup_branch): Set a correct return address in
4368 LR for ARM and Thumb.
4370 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4373 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4374 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4375 in the function comment, a new note on values compatibility.
4376 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4377 * symtab.h (SYMBOL_HASH_NEXT): New.
4379 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4381 * ppc-linux-nat.c (check_condition): Add len output parameter.
4382 Set it based on the memory region referenced in the condition
4383 expression. Update all callers.
4385 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4387 Fix crash regression on systems featuring .gdb_index.
4388 * objfiles.c (free_objfile): Move the
4389 forget_cached_source_info_for_objfile call earlier. Comment it.
4390 Extend the comment for objfile_free_data.
4392 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4394 Fix regression of displaying the debug format.
4395 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4398 2011-04-04 Tom Tromey <tromey@redhat.com>
4400 * cli/cli-interp.c (struct captured_execute_command_args):
4402 (do_captured_execute_command): Remove.
4403 (safe_execute_command): Use TRY_CATCH.
4404 * cli/cli-script.c (struct wrapped_read_command_file_args):
4406 (wrapped_read_command_file): Remove.
4407 (script_from_file): Use TRY_CATCH.
4408 * exceptions.c (catch_exception): Remove.
4409 * exceptions.h (catch_exception): Remove.
4410 (deprecated_throw_reason): Update comment.
4411 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4412 argument to 'context'.
4413 (mi_execute_command): Use TRY_CATCH.
4414 * remote.c (struct start_remote_args): Remove.
4415 (remote_start_remote): Update; change arguments.
4416 (remote_open_1): Use TRY_CATCH.
4418 2011-04-04 Tom Tromey <tromey@redhat.com>
4420 * tracepoint.c (scope_info): Update.
4421 * symtab.c (decode_line_spec): Update.
4422 * python/python.c (gdbpy_decode_line): Update.
4423 * linespec.h (decode_line_1): Update.
4424 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4425 (decode_compound, find_method, symtab_from_filename)
4426 (decode_variable): Likewise.
4427 * cli/cli-cmds.c (edit_command): Update.
4428 (list_command): Update.
4429 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4431 (create_breakpoint): Update.
4432 (until_break_command): Update.
4433 (addr_string_to_sals): Update.
4434 (decode_line_spec_1): Update.
4436 2011-04-04 Tom Tromey <tromey@redhat.com>
4438 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4439 (do_captured_parse_breakpoint): Remove.
4440 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4441 Use TRY_CATCH directly.
4443 2011-04-04 Tom Tromey <tromey@redhat.com>
4445 * symtab.h (free_symtab): Remove.
4446 (forget_cached_source_info_for_objfile): Declare.
4447 * symmisc.c (free_symtab): Remove.
4448 * source.c (forget_cached_source_info_for_objfile): New function.
4449 (forget_cached_source_info): Use it.
4450 * objfiles.c (free_objfile): Simplify check before calling
4451 clear_current_source_symtab_and_line. Call
4452 forget_cached_source_info_for_objfile.
4454 2011-04-04 Tom Tromey <tromey@redhat.com>
4456 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4457 (new_symtab): Don't set `free_code' on symtab.
4458 (new_linetable): Properly handle size==0.
4459 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4460 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4462 * jv-lang.c (struct jv_per_objfile_data): New.
4463 (jv_per_objfile_free): Free the data.
4464 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4465 (get_java_class_symtab): Set the `dict' field on the
4466 jv_per_objfile_data.
4467 (free_class_block): Remove.
4468 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4471 2011-04-04 Tom Tromey <tromey@redhat.com>
4473 * symfile.c (reread_symbols): Update.
4474 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4476 * objfiles.c (allocate_objfile): Update.
4477 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4479 * cp-namespace.c (lookup_symbol_file): Don't call
4480 lookup_possible_namespace_symbol.
4481 (initialize_namespace_symtab, get_possible_namespace_block)
4482 (free_namespace_block, cp_check_possible_namespace_symbols)
4483 (check_possible_namespace_symbols_loop)
4484 (check_one_possible_namespace_symbol)
4485 (lookup_possible_namespace_symbol): Remove.
4486 (maintenance_cplus_namespace): Replace with notice.
4487 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4489 2011-04-04 Tom Tromey <tromey@redhat.com>
4491 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4492 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4493 * symmisc.c (free_symtab): Don't free debugformat.
4494 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4495 (record_debugformat, record_producer): Document.
4496 * buildsym.c (end_symtab): Don't save debugformat and producer
4498 (end_symtab): Don't free debugformat and producer fields.
4499 (record_debugformat): Don't call xstrdup.
4500 (record_producer): Likewise.
4502 2011-04-04 Tom Tromey <tromey@redhat.com>
4504 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4505 (source_line_charpos, source_charpos_line): Remove.
4507 2011-04-04 Tom Tromey <tromey@redhat.com>
4509 * symtab.h (domain_enum): Split in two...
4510 (enum search_domain): New.
4511 (search_symbols): Update.
4512 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4513 redundant declarations.
4514 (search_symbols): Change 'kind' argument to search_domain.
4516 (print_symbol_info): Likewise.
4517 (symtab_symbol_info): Likewise.
4518 * symfile.h (struct quick_symbol_functions)
4519 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4520 <expand_symtabs_matching>: Likewise.
4521 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4522 (expand_symtabs_matching_via_partial): Update.
4523 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4524 (dw2_expand_symtabs_for_function): Update.
4525 * block.h: Moved anonymous enum...
4526 * defs.h (enum block_enum): ... here. Now named.
4528 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4530 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4531 * version.in: Bump version to 7.3.50.20110403-cvs.
4533 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4535 * NEWS: Create a new section for the next release branch.
4536 Rename the section of the current branch, now that it has
4539 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4541 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4542 for "fpscr" in target description.
4544 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4546 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4547 initialize it. Delay HASH initialization. Strip the part after open
4548 parenthesis for languages with qualifiers. Call do_cleanups.
4550 2011-04-01 Tom Tromey <tromey@redhat.com>
4552 * utils.c (report_command_stats): Don't print `-' for negative
4555 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4557 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4558 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4561 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4563 * breakpoint.h (bpdisp_text): Add declaration.
4564 * breakpoint.c (bpdisp_text): Make non-static.
4565 * ada-lang.c: #include "mi/mi-common.h".
4566 (print_it_exception): Rewrite to improve GDB/MI output.
4568 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4570 * arm-tdep.h (struct address_space): Add forward declaration.
4572 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4574 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4575 * arm-tdep.c (arm_override_mode): New global.
4576 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4577 execution mode heuristics.
4578 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4579 second single-step breakpoint if needed, using
4580 arm_insert_single_step_breakpoint.
4581 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4582 ARM execution mode, do not call thumb_get_next_pc_raw.
4583 (arm_get_next_pc): Encode execution mode in return value. Call
4584 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4585 (arm_insert_single_step_breakpoint): New function.
4586 (arm_software_single_step): Call it.
4587 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4588 argument to return execution mode of sigreturn target.
4589 (arm_linux_syscall_next_pc): Use it.
4590 (arm_linux_copy_svc): Update call.
4591 (arm_linux_software_single_step): Call
4592 arm_insert_single_step_breakpoint.
4594 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4596 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4599 2011-03-31 Tom Tromey <tromey@redhat.com>
4601 * varobj.c (update_dynamic_varobj_children): Properly handle
4602 errors from iterator.
4604 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4606 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4607 struct linkage name twice.
4609 2011-03-31 Tom Tromey <tromey@redhat.com>
4611 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4612 missing ">" to message.
4614 2011-03-31 Tom Tromey <tromey@redhat.com>
4616 * varobj.c (instantiate_pretty_printer): Remove duplicate
4619 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4621 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4622 if neither saved value nor register available (e.g. signal frame).
4624 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4626 * macroexp.c (expand): Avoid uninitialized variable
4629 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4631 * breakpoint.c (break_range_command): Fix typo in comment.
4633 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4634 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4636 Implement support for PowerPC BookE ranged breakpoints.
4637 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4638 * breakpoint.h (struct bp_target_info) <length>: New member
4640 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4641 instead of struct breakpoint as argument, and also add ASPACE
4642 and BP_ADDR arguments. Update all callers.
4643 (struct breakpoint_ops) <print_one_detail>: New method.
4644 (struct breakpoint) <addr_string_range_end>: New member variable.
4645 * breakpoint.c (breakpoint_location_address_match): Add function
4647 (insert_bp_location): Set bl->target_info.length.
4648 (breakpoint_here_p): Call breakpoint_location_address_match.
4649 (moribund_breakpoint_here_p): Likewise.
4650 (regular_breakpoint_inserted_here_p): Likewise.
4651 (breakpoint_thread_match): Likewise.
4652 (bpstat_stop_status): Likewise.
4653 (bpstat_check_location): Move call to
4654 breakpoint_ops.breakpoint_hit to the top.
4655 (print_one_breakpoint_location): Call
4656 breakpoint_ops.print_one_detail if available.
4657 (breakpoint_address_match_range): New function.
4658 (breakpoint_location_address_match): Likewise.
4659 (breakpoint_locations_match): Compare the length field of the
4661 (hw_breakpoint_used_count): Count resources used by all locations
4662 in a breakpoint, and use breakpoint_ops.resources_needed if
4664 (breakpoint_hit_ranged_breakpoint): New function.
4665 (resources_needed_ranged_breakpoint): Likewise.
4666 (print_it_ranged_breakpoint): Likewise.
4667 (print_one_ranged_breakpoint): Likewise.
4668 (print_one_detail_ranged_breakpoint): Likewise.
4669 (print_mention_ranged_breakpoint): Likewise.
4670 (print_recreate_ranged_breakpoint): Likewise.
4671 (ranged_breakpoint_ops): New structure.
4672 (find_breakpoint_range_end): New function.
4673 (break_range_command): Likewise.
4674 (delete_breakpoint): Free addr_string_range_end.
4675 (update_breakpoint_locations): Add SALS_END argument. Update
4676 all callers. Calculate breakpoint length if a non-zero SALS_END
4677 is given. Call breakpoint_locations_match instead of
4678 breakpoint_address_match.
4679 (reset_breakpoint): Find SaL of the end of the range if B is a
4681 (_initialize_breakpoint): Register break-range command.
4682 * defs.h (print_core_address): Add function prototype.
4683 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4685 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4686 (ppc_linux_remove_hw_breakpoint): Likewise.
4687 (_initialize_ppc_linux_nat): Initialize
4688 to_ranged_break_num_registers.
4689 * target.c (update_current_target): Add comment about
4690 to_ranged_break_num_registers.
4691 (target_ranged_break_num_registers): New function.
4692 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4694 (target_ranged_break_num_registers): Add function prototype.
4695 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4696 * utils.c (print_core_address): ... here.
4698 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4700 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4701 variable compiler warning.
4703 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4705 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4707 (re_set_breakpoint): ... to here ...
4708 (addr_string_to_sals): ... and here.
4710 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4712 * Makefile.in (SFILES): Add missing C sources.
4713 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4714 Add missing headers.
4716 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4718 * .gitignore: New file.
4720 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4722 * NEWS: Mention new cfi device simulation.
4724 2011-03-29 Tom Tromey <tromey@redhat.com>
4726 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4727 otherwise anonymous types.
4728 (dwarf2_name): Likewise.
4729 * valops.c (value_struct_elt_for_reference): Refine artificial
4730 type logic. Call error if j==-1.
4732 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4734 Fix false GCC warning.
4735 * infcall.c (find_function_addr): Initialize funaddr.
4737 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4739 Fix mingw compilation with --enable-targets=all.
4740 * remote-mips.c (gdb_usleep.h): Include header.
4741 (mips_enter_debug): Use gdb_usleep instead of sleep.
4743 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4745 Support resolution of STT_GNU_IFUNC via breakpoints.
4746 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4747 bp_gnu_ifunc_resolver_return.
4748 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4749 the loop. Support bp_gnu_ifunc_resolver and
4750 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4751 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4753 (bptype_string, print_one_breakpoint_location): Support
4754 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4755 (user_settable_breakpoint): Return true also for
4756 bp_gnu_ifunc_resolver.
4757 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4758 bp_gnu_ifunc_resolver_return.
4759 (set_breakpoint_location_function): New parameter explicit_loc,
4760 describe it. Call find_pc_partial_function_gnu_ifunc with new
4761 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4762 EXPLICIT_LOC is not set.
4763 (set_raw_breakpoint): Set EXPLICIT_LOC for
4764 set_breakpoint_location_function.
4765 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4766 set_breakpoint_location_function.
4767 (mention): Support bp_gnu_ifunc_resolver and
4768 bp_gnu_ifunc_resolver_return.
4769 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4770 set_breakpoint_location_function.
4771 (update_breakpoint_locations): Remove static.
4772 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4773 bp_gnu_ifunc_resolver_return.
4774 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4775 bp_gnu_ifunc_resolver_return.
4776 (update_breakpoint_locations): New declaration.
4777 * elfread.c: Include gdbthread.h and regcache.h.
4778 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4780 (elf_gnu_ifunc_fns): Install them.
4781 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4782 (stub_gnu_ifunc_resolver_return_stop): New functions.
4783 (stub_gnu_ifunc_fns): Install them.
4784 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4785 and gnu_ifunc_resolver_return_stop.
4786 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4788 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4790 STT_GNU_IFUNC reader implementation.
4791 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4792 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4793 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4794 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4795 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4796 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4797 (elf_gnu_ifunc_resolve_addr): New.
4798 (elf_symfile_read): Call elf_rel_plt_read.
4799 (elf_gnu_ifunc_fns): New.
4800 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4801 Install elf_gnu_ifunc_fns.
4802 * infcall.c (find_function_return_type): New function.
4803 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4804 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4805 (stub_gnu_ifunc_resolve_name): New functions.
4806 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4807 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4808 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4810 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4812 Code cleanup for later STT_GNU_IFUNC support.
4813 * infcall.c (find_function_addr): Remove variable code, use explicit
4814 dereferences for it. Move VALUE_TYPE initialization later.
4816 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4818 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4819 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4820 (clear_pc_function_cache): Clear it.
4821 (find_pc_partial_function): Rename to ...
4822 (find_pc_partial_function_gnu_ifunc): ... this function. New
4823 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4824 (find_pc_partial_function): New wrapper for this function.
4825 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4827 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4829 GDB internal type support for STT_GNU_IFUNC.
4830 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4831 (elf_symtab_read): Set mst_text_gnu_ifunc for
4832 BSF_GNU_INDIRECT_FUNCTION.
4833 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4834 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4835 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4836 nodebug_got_plt_symbol.
4837 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4838 (TYPE_GNU_IFUNC): New.
4839 (struct main_type): New field flag_gnu_ifunc.
4840 (struct builtin_type): New field builtin_func_func.
4841 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4842 nodebug_got_plt_symbol.
4843 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4844 (in_gnu_ifunc_stub): New.
4845 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4847 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4848 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4849 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4851 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4852 * symtab.c (search_symbols): Likewise.
4853 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4854 and mst_slot_got_plt.
4855 (in_gnu_ifunc_stub): New declaration.
4857 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4859 Support a ring of related breakpoints.
4860 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4861 other functions, add gdb_assert.
4862 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4863 watchpoint_del_at_next_stop.
4864 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4865 (bpstat_stop_status): Handle ring in related_breakpoint.
4866 (set_raw_breakpoint_without_location): Initialize ring in
4868 (delete_breakpoint): Handle ring in related_breakpoint, use
4869 watchpoint_del_at_next_stop.
4870 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4872 2011-03-28 Tom Tromey <tromey@redhat.com>
4875 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4876 with `language_minimal'.
4878 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4880 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4881 instead of checking for STT_ARM_TFUNC symbol type.
4883 2011-03-25 Tom Tromey <tromey@redhat.com>
4885 * linespec.c (symbol_found): Restore line-based result for
4886 non-LOC_LABEL symbols.
4888 2011-03-25 Kai Tietz <ktietz@redhat.com>
4890 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4891 instead of strcmp for comparison.
4892 (tui_source_is_displayed): Likewise.
4893 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4895 2011-03-24 Mark Wielaard <mjw@redhat.com>
4897 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4899 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4900 (find_partial_die_in_comp_unit): Likewise in comment.
4901 (read_attribute_value): Likewise.
4902 (lookup_die_type): Likewise.
4903 (dwarf_form_name): Likewise.
4904 (dump_die_shallow): Likewise.
4905 (follow_die_ref_or_sig): Likewise.
4907 2011-03-24 Tom Tromey <tromey@redhat.com>
4909 PR breakpoints/11816:
4910 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4911 (decode_compound): Update.
4912 (find_function_symbol): New function.
4913 (decode_dollar): Update.
4914 (decode_label): Add 'function_symbol' parameter. Handle
4915 function-relative labels.
4916 (decode_variable): Update.
4917 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4918 not its line. Set `special_display' and canonical name for
4921 2011-03-24 Tom Tromey <tromey@redhat.com>
4923 * linespec.h (struct linespec_result) <special_display>: New
4925 * breakpoint.h (struct breakpoint) <display_canonical>: New
4927 * breakpoint.c (print_breakpoint_location): Respect
4929 (create_breakpoint_sal): Add 'display_canonical' parameter.
4930 (create_breakpoints_sal): Update.
4931 (create_breakpoint): Update.
4933 2011-03-24 Tom Tromey <tromey@redhat.com>
4935 * symtab.c (decode_line_spec): Update.
4936 * linespec.c (build_canonical_line_spec): Change type of
4938 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4939 (find_method, decode_all_digits, decode_dollar, decode_label)
4940 (symbol_found): Likewise.
4941 (init_linespec_result): New function.
4942 * breakpoint.c (struct captured_parse_breakpoint_args)
4943 <canonical_p>: New field, replaces addr_string_p.
4944 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4946 (parse_breakpoint_sals): Likewise.
4947 (do_captured_parse_breakpoint): Update.
4948 (create_breakpoint): Use struct linespec_result.
4949 (until_break_command): Update.
4950 (breakpoint_re_set_one): Update.
4951 (decode_line_spec_1): Update.
4952 * linespec.h (struct linespec_result): New.
4953 (init_linespec_result): Declare.
4955 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4957 * regcache.c (regcache_raw_read): If the target didn't supply a
4958 given raw register, mark it as unavailable.
4960 2011-03-23 Kai Tietz <ktietz@redhat.com>
4962 * breakpoint.c (clear_command): Use filename_cmp
4963 instead of strcmp for comparison.
4964 * buildsym.c (watch_main_source_file_lossage): Likewise.
4965 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4966 checking just for slash.
4967 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4968 strrchr and filename_cmp instead of strcmp for filenames.
4969 (add_old_header_file): Use filename_cmp
4970 instead of strcmp for comparison.
4971 * exec.c (exec_set_section_address): Likewise.
4972 * macrotab.c (macro_lookup_inclusion): Likewise.
4973 (macro_lookup_inclusion): Likewise.
4974 * elfread.c (_initialize_elfread): Likewise.
4975 (elfstab_offset_sections): Likewise.
4976 (elfstab_offset_sections): Use lbasename instead of
4978 * mdebugread.c (parse_partial_symbols): Likewise.
4979 (arse_partial_symbols): Use filename_(n)cmp instead of
4980 str(n)cmp for comparison.
4981 * minsyms.c (lookup_minimal_symbol): Likewise.
4982 * psymtab.c (read_psymtabs_with_filename): Likewise.
4983 * solib.c (solib_read_symbols): Likewise.
4984 (reload_shared_libraries_1): Likewise.
4985 * symmisc.c (maintenance_print_symbols): Likewise.
4986 * symfile.c (separate_debug_file_exists): Likewise.
4987 (reread_symbols): Likewise.
4988 (find_separate_debug_file_by_debuglink): Likewise.
4989 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4990 * source.c (add_path): Likewise.
4991 * symtab.c (filename_seen): Likewise.
4992 (file_matches): Likewise.
4993 (print_symbol_info): Likewise.
4994 (maybe_add_partial_symtab_filename): Likewise.
4995 (make_source_files_completion_list): Likewise.
4996 * xml-syscall.c (init_sysinfo): Likewise.
4997 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4998 IS_DIR_SEPARATOR for checking for trailing path separator.
5000 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5002 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5003 label abort_expression.
5004 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5005 DWARF_VALUE_OPTIMIZED_OUT.
5007 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5010 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5011 to linkage_name. Invert its value. Update the function comment.
5012 (c_type_print_varspec_suffix): Invert it at the caller.
5013 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5015 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5017 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5018 errors when reading the `stop_pc'.
5019 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5022 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5024 * NEWS: Document gdb.Write stream keyword.
5026 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5029 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5030 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5031 (dwarf2_add_field): Fix new_field->accessibility for
5032 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5034 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5038 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5039 other error classes. Do not print stack trace.
5041 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5043 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5044 (dwarf2_add_field): Fix new_field->accessibility for
5045 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5047 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5049 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5050 encountering a load via a non-SP register.
5052 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5054 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5055 field in returned unwinder.
5057 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5059 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5061 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5063 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5066 2012-03-18 Pedro Alves <pedro@codesourcery.com>
5068 * frame.c (frame_unwind_register): Throw an error if unwinding the
5070 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5071 an unwind stop reason.
5072 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5073 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5074 UNWIND_UNAVAILABLE>: New.
5075 * inline-frame.c (inline_frame_unwind): Install
5076 default_frame_unwind_stop_reason.
5077 * frame-unwind.c: Include "exceptions.h".
5078 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5079 (default_frame_unwind_stop_reason): New.
5080 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5081 (default_frame_unwind_stop_reason): Declare.
5082 (struct frame_unwind) <stop_reason>: New function pointer.
5084 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5085 * dwarf2-frame.c: Include exceptions.h.
5086 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5087 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5088 computing the CFA. If such an error was thrown, set
5089 unavailable_retaddr.
5090 (dwarf2_frame_unwind_stop_reason): New.
5091 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5093 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5094 (dwarf2_signal_frame_unwind): Ditto.
5096 * amd64-tdep.c: Include "exceptions.h".
5097 (struct amd64_frame_cache): New field "base_p".
5098 (amd64_init_frame_cache): Clear it.
5099 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5100 Avoid reading registers with functions that throw if the register
5101 is not necessary to compute the frame base.
5102 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5103 swallowing NOT_AVAILABLE_ERROR.
5104 (amd64_frame_unwind_stop_reason): New.
5105 (amd64_frame_this_id): Don't build a frame id if the frame base
5107 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5108 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5109 base_p if the frame base was computable.
5110 (amd64_sigtramp_frame_unwind_stop_reason): New.
5111 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5112 frame base was unavailable.
5113 (amd64_sigtramp_frame_unwind): Install
5114 amd64_sigtramp_frame_unwind_stop_reason.
5115 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5116 base_p if the frame base was computable.
5117 (amd64_epilogue_frame_unwind_stop_reason): New.
5118 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5119 frame base was unavailable.
5120 (amd64_epilogue_frame_unwind): Install
5121 amd64_epilogue_frame_unwind_stop_reason.
5122 * i386-tdep.c: Include "exceptions.h".
5123 (struct i386_frame_cache): New field "base_p".
5124 (i386_init_frame_cache): Clear it.
5125 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5126 Avoid reading registers with functions that throw if the register
5127 is not necessary to compute the frame base.
5128 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5129 swallowing NOT_AVAILABLE_ERROR.
5130 (i386_frame_unwind_stop_reason): New.
5131 (i386_frame_this_id): Don't build a frame id if the frame base was
5133 (i386_frame_prev_register): Handle unavailable SP.
5134 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5135 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5136 base_p if the frame base was computable.
5137 (i386_epilogue_frame_unwind_stop_reason): New.
5138 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5139 base was unavailable.
5140 (i386_epilogue_frame_unwind): Install
5141 i386_epilogue_frame_unwind_stop_reason.
5142 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5143 base_p if the frame base was computable.
5144 (i386_sigtramp_frame_unwind_stop_reason): New.
5145 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5146 base was unavailable.
5147 (i386_sigtramp_frame_unwind): Install
5148 i386_sigtramp_frame_unwind_stop_reason.
5149 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5150 type's size, not the register's.
5151 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5153 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5154 default_frame_unwind_stop_reason.
5155 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5156 (alpha_heuristic_frame_unwind): Ditto.
5157 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5158 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5159 * avr-tdep.c (avr_frame_unwind): Ditto.
5160 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5162 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5163 * frv-tdep.c (frv_frame_unwind): Ditto.
5164 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5165 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5166 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5167 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5168 (hppa_stub_frame_unwind): Ditto.
5169 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5170 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5171 (ia64_libunwind_frame_unwind)
5172 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5173 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5174 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5175 * m32c-tdep.c (m32c_unwind): Ditto.
5176 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5177 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5178 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5179 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5180 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5181 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5182 * mep-tdep.c (mep_frame_unwind): Ditto.
5183 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5184 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5185 (mips_stub_frame_unwind): Ditto.
5186 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5187 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5188 * mt-tdep.c (mt_frame_unwind): Ditto.
5189 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5190 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5191 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5192 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5193 (s390_sigtramp_frame_unwind): Ditto.
5194 * score-tdep.c (score_prologue_unwind): Ditto.
5195 * sh-tdep.c (sh_frame_unwind): Ditto.
5196 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5197 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5198 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5199 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5200 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5201 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5202 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5203 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5204 (sparc64obsd_trapframe_unwind): Ditto.
5205 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5206 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5207 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5208 * v850-tdep.c (v850_frame_unwind): Ditto.
5209 * vax-tdep.c (vax_frame_unwind): Ditto.
5210 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5211 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5212 * xtensa-tdep.c (xtensa_unwind): Ditto.
5214 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5216 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5217 there's always a frame. Use get_frame_pc_if_available instead of
5218 get_frame_pc, and if there's no PC available, don't look up a
5221 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5223 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5226 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5228 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5231 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5233 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5234 * frame.c (frame_unwind_caller_pc_if_available): New.
5235 * stack.c (frame_info): Handle unavailable PC.
5237 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5239 * frame.c (frame_unwind_pc): Rename to ...
5240 (frame_unwind_pc_if_available): ... this. New `pc' output
5241 parameter. Change return type to int. Gracefully handle
5242 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5243 happened, or 1 otherwise.
5244 (frame_unwind_pc): Reimplement on top of
5245 frame_unwind_pc_if_available.
5246 (get_frame_func): Rename to ...
5247 (get_frame_func_if_available): New `pc' output parameter. Change
5248 return type to int. Gracefully handle the PC not being available.
5249 (get_frame_func): Reimplement on top of
5250 get_frame_func_if_available.
5251 (select_frame): Handle the PC being unavailable.
5252 (get_prev_frame): Handle the PC being unavailable.
5253 (get_frame_pc_if_available): New.
5254 (get_frame_address_in_block_if_available): New.
5255 (find_frame_sal): Handle the frame PC not being available.
5256 * frame.h (get_frame_pc_if_available): Declare.
5257 (get_frame_address_in_block_if_available): Declare.
5258 (get_frame_func_if_available): Declare.
5259 * stack.c (print_frame_info): Handle the PC being unavailable.
5260 (find_frame_funname): Ditto.
5261 (print_frame): Handle the PC being unavailable.
5262 (get_frame_language): Ditto.
5263 * blockframe.c (get_frame_block): Ditto.
5264 * macroscope.c (default_macro_scope): Ditto.
5265 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5267 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5269 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5270 NOT_AVAILABLE_ERROR when evaluating the location expression.
5272 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5274 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5275 returning that the register piece is unavailable/optimized out.
5276 (write_pieced_value): Handle get_frame_register_bytes returning
5277 that the register piece is unavailable/optimized out when doing a
5278 read-modify write of a bitfield.
5279 * findvar.c (value_from_register): Handle get_frame_register_bytes
5280 returning that the register piece is unavailable/optimized out.
5281 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5282 and `unavailablep'. Throw error on bad debug info. Use
5283 frame_register instead of frame_register_read, to fill in the new
5285 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5287 * valops.c: (value_assign): Adjust, and handle
5288 get_frame_register_bytes failing.
5289 * spu-tdep.c: Include exceptions.h.
5290 (spu_software_single_step): Adjust, and handle
5291 get_frame_register_bytes failing.
5292 (spu_get_longjmp_target): Ditto.
5293 * gdbarch.sh (register_to_value): Change to return int. New
5294 parameters `optimizedp' and `unavailablep'.
5295 * gdbarch.h, gdbarch.c: Regenerate.
5296 * i386-tdep.c (i386_register_to_value): Adjust to new
5297 gdbarch_register_to_value interface.
5298 * i387-tdep.c (i387_register_to_value): Ditto.
5299 * i387-tdep.h (i387_register_to_value): Ditto.
5300 * alpha-tdep.c (alpha_register_to_value): Ditto.
5301 * ia64-tdep.c (ia64_register_to_value): Ditto.
5302 * m68k-tdep.c (m68k_register_to_value): Ditto.
5303 * mips-tdep.c (mips_register_to_value): Ditto.
5304 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5306 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5308 * findvar.c (value_of_register): Mark the value as unavailable, if
5309 the register is unavailable.
5310 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5311 (frame_register): New `unavailablep' parameter.
5312 (frame_register_read): Update comment.
5313 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5314 Set it if the register is unavailable. If the register is
5315 unavailable, clear the output buffer.
5316 (frame_register): New `unavailablep' parameter. Pass it down.
5317 (frame_unwind_register): Adjust.
5318 (put_frame_register): Adjust.
5319 (frame_register_read): Adjust. Also return false if the register
5321 (frame_register_unwind_location): Adjust.
5322 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5323 is unavailable, mark the value accordingly.
5324 * stack.c (frame_info): Handle unavailable registers.
5326 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5328 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5329 simplify, using regcache_cooked_read.
5331 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5333 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5334 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5335 (regcache_raw_read_unsigned, regcache_raw_read_part)
5336 (regcache_cooked_read, regcache_cooked_read_signed)
5337 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5338 (regcache_cooked_read_ftype): Change return to enum
5340 * regcache.c: Include exceptions.h
5341 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5342 (do_cooked_read): Change return to enum register_status. Always
5343 forward to regcache_cooked_read.
5344 (regcache_raw_read): Change return to enum register_status. If
5345 the register is not REG_VALID, memset the buffer. Return the
5347 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5348 return the register's status.
5349 (regcache_raw_read_unsigned): Ditto.
5350 (regcache_cooked_read): Change return to enum register_status.
5351 Assert that with read-only regcaches, the register's status must
5352 be known. If the regcache is read-only, and the register is not
5353 REG_VALID, memset the buffer. Return the register's status.
5354 (regcache_cooked_read_signed): Change return to enum
5355 register_status. Handle non-REG_VALID registers and return the
5357 (regcache_cooked_read_unsigned): Change return to enum
5358 register_status. Handle non-REG_VALID registers and return the
5360 (regcache_xfer_part, regcache_raw_read_part)
5361 (regcache_cooked_read_part): Change return to enum
5362 register_status. Return the register's status.
5363 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5365 (regcache_dump): Handle unavailable cooked registers.
5366 * frame.c (do_frame_register_read): Adjust interface to match
5367 regcache_cooked_read_ftype.
5368 * gdbarch.sh (pseudo_register_read): Change return to enum
5370 * gdbarch.h, gdbarch.c: Regenerate.
5372 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5374 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5375 register_status. If reading a raw register indicates the raw
5376 register is not valid, return the raw register's status,
5377 otherwise, return REG_VALID.
5378 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5379 register_status. Handle non-REG_VALID raw registers and return
5380 the register's status.
5381 * arm-tdep.c (arm_neon_quad_read)
5382 (arm_pseudo_read): Change return to enum register_status. Handle
5383 non-REG_VALID raw registers and return the register's status.
5384 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5385 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5386 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5387 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5388 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5390 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5391 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5392 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5393 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5394 (m32c_pseudo_register_read): Change return to enum
5395 register_status. Adjust.
5396 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5397 enum register_status. Return the register's status.
5398 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5399 register_status. Return the register's status.
5400 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5401 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5402 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5403 * rs6000-tdep.c (move_ev_register_func): New typedef.
5404 (e500_move_ev_register): Use it. Change return to enum
5405 register_status. Return the register's status.
5406 (do_regcache_raw_read): New function.
5407 (do_regcache_raw_write): New function.
5408 (e500_pseudo_register_read): Change return to enum
5409 register_status. Return the register's status. Use
5410 do_regcache_raw_read.
5411 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5412 (dfp_pseudo_register_read): Change return to enum register_status.
5413 Return the register's status.
5414 (vsx_pseudo_register_read): Ditto.
5415 (efpr_pseudo_register_read): Ditto.
5416 (rs6000_pseudo_register_read): Ditto.
5417 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5418 register_status. Return the register's status.
5419 * sh64-tdep.c (pseudo_register_read_portions): New function.
5420 (sh64_pseudo_register_read): Change return to enum
5421 register_status. Use pseudo_register_read_portions. Return the
5423 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5424 register_status. Return the register's status.
5425 * sh-tdep.c (pseudo_register_read_portions): New function.
5426 (sh_pseudo_register_read): Change return to enum register_status.
5427 Use pseudo_register_read_portions. Return the register's status.
5428 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5429 enum register_status. Return the register's status.
5430 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5431 * spu-tdep.c (spu_pseudo_register_read_spu)
5432 (spu_pseudo_register_read): Ditto.
5433 * xtensa-tdep.c (xtensa_register_read_masked)
5434 (xtensa_pseudo_register_read): Ditto.
5435 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5437 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5439 * python/py-value.c (valpy_getitem): Fix formatting of error function
5442 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5444 ARI fixes: Add missing internationalization markups throughout
5446 * darwin-nat-info.c: Ditto.
5449 * mi/mi-main.c: Ditto.
5451 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5453 ARI fixes: Add missing internationalization markups throughout
5456 * cp-name-parser.y: Ditto.
5459 * objc-exp.y: Ditto.
5462 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5464 ARI fixes: Messages should have no trailing new lines.
5465 * darwin-nat.c (mach_check_error): Remove trailing new line from
5466 warning function call message.
5467 * record.c (bfdcore_read): Idem for error call.
5469 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5471 * common/signals.c (target_signal_from_host): Add _ markup to error
5472 function call message.
5473 (target_signal_to_host): Add _ markup and remove trailing new line
5474 from warning call message.
5475 (target_signal_from_command): Add _ markup to error function call
5478 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5482 * python/python.c (gdbpy_write): Accept a stream argument and
5483 operate to the appropriate stream.
5484 (gdbpy_flush): Likewise.
5485 (_initialize_python): Add stream constants.
5486 (finish_python_initialization): Add GdbOutputErrorFile class.
5488 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5490 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5492 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5494 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5495 to store_signed_integer. Add debug message when relocating CALL
5496 instructions. Fix formatting of debug message.
5497 * i386-tdep.c (i386_relocate_instruction): Ditto.
5499 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5501 * target.h (struct target_ops): Remove to_lookup_symbol field.
5502 (target_lookup_symbol): Delete macro.
5503 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5504 (update_current_target, setup_target_debug): Remove handling
5505 of to_lookup_symbol target_ops field.
5506 * ada-tasks.c (get_known_tasks_addr): Remove use of
5507 target_lookup_symbol.
5508 * coffread.c (coff_symtab_read): Likewise.
5509 * dbxread.c (read_dbx_symtab): Ditto.
5511 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5514 * configure.ac: Add getthrds declaration check.
5515 * configure, config.in: Regenerate.
5516 * aix-thread.c (getthrds): Declare only if not already declared
5517 in procinfo.h. More declaration out of get_signaled_thread to
5520 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5522 * python/py-symtab.c: Populate symtab_object_methods,
5524 (stpy_is_valid): New function.
5525 (salpy_is_valid): Ditto.
5526 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5527 (sympy_is_valid): New function.
5528 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5529 (objfpy_is_valid): New function.
5530 * python/py-inferior.c: Populate inferior_object_methods.
5531 (infpy_is_valid): New function.
5532 * python/py-infthread.c: Populate thread_object_methods.
5533 (thpy_is_valid): New function.
5534 * python/py-block.c: Declare block_object_methods. Populate. Declare
5535 block_iterator_object_methods. Populate.
5536 (blpy_is_valid): New function.
5537 (blpy_iter_is_valid): Ditto.
5539 2011-03-16 Keith Seitz <keiths@redhat.com>
5541 * linespec.c (find_methods): Canonicalize NAME before looking
5543 (name_end): New function.
5544 (keep_name_info): New function.
5545 (decode_line_1): Use keep_name_info.
5546 (decode_compound): Likewise.
5547 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5548 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5551 * linespec.c (locate_first_half): Keep overload information, too.
5552 (decode_compound): Use a string to represent break characters
5554 If P points to a break character, do not increment it.
5555 For C++ and Java, keep overload information and relevant keywords.
5556 If we cannot find a symbol, search the minimal symbols.
5559 * linespec.c (decode_compound): Rename SAVED_ARG to
5561 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5563 Pass a valid block to lookup_symbol.
5564 (lookup_prefix_sym): Likewise.
5565 (find_method): Construct search name based on SYM_CLASS instead
5567 * psymtab.c (lookup_partial_symbol): Add language parameter.
5568 (lookup_symbol_aux_psymtabs): Likewise.
5569 Don't assume that the psymtab we found was the right one. Search
5570 for the desired symbol in the symtab to be certain.
5571 (psymtab_search_name): New function.
5572 (lookup_partial_symbol): Use psymtab_search_name.
5573 Add language parameter.
5574 (read_symtabs_for_function): Add language parameter and pass to
5575 lookup_partial_symbol.
5576 (find_symbol_file_from_partial): Likewise.
5578 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5581 * dwarf2read.c (noop_record_line): New function.
5582 (dwarf_decode_lines): Ignore line tables for GCd functions.
5584 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5586 Fix ARI warnings about new lines at the end of messages, which
5587 are unneeded as there is a new line added at the end of the message
5589 * darwin-nat.c (darwin_stop_inferior): Ditto.
5590 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5591 * dfp.c (decimal_to_number): Ditto.
5592 * exec.c (print_section_info): Ditto.
5593 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5594 * osdata.c (get_osdata): Ditto.
5595 * record.c (bfdcore_write): Ditto.
5596 * remote-mips.c (mips_readchar): Ditto.
5597 * remote.c (read_ptid): Ditto.
5598 * ser-mingw.c (ser_windows_raw): Ditto.
5599 * tracepoint.c (add_local_symbols): Ditto.
5600 * windows-nat.c (fake_create_process): Ditto.
5602 2011-03-16 Tom Tromey <tromey@redhat.com>
5604 * tracepoint.c (stop_tracing): Don't declare.
5605 * event-top.c (after_char_processing_hook): Add `(void)'.
5607 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5609 * NEWS: Add Parameter sub-classing description.
5611 2011-03-16 Kai Tietz <ktietz@redhat.com>
5613 * MAINTAINERS: Update my e-mail address.
5615 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5617 * MAINTAINERS: Add myself for write after approval privileges.
5619 2011-03-15 Michael Snyder <msnyder@vmware.com>
5621 * frame.c (find_frame_sal): Assert sym is not null.
5623 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5625 * objc-lang.c (selectors_info): Check strchr for null result.
5627 * stabsread.c (define_symbol): Guard against bad stabstring input.
5629 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5631 Remove trailing spaces and tabulations from pascal language
5636 p-valprint.c: Ditto.
5638 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5640 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5641 than LOW. Comment it.
5642 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5643 HIGHPC not strictly higher than LOWPC.
5645 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5647 Fix formatting of function declarations returning a pointer in
5649 * varobj.c (varobj_add_child): Ditto.
5650 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5651 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5653 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5655 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5656 for the "generic" vector ABI used with GCC 4.3 and later.
5657 (ppc64_sysv_abi_return_value): Likewise.
5659 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5661 * infcall.c (call_function_by_hand): Function return value is
5662 always a non_lval, even when using struct_return.
5664 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5666 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5667 (map_display_numbers): New.
5668 (do_delete_display): New.
5669 (undisplay_command): Use map_display_numbers.
5670 (do_enable_disable_display): New.
5671 (enable_disable_display_command): New function.
5672 (enable_display): Delete.
5673 (enable_display_command): New.
5674 (disable_display_command): Reimplement.
5675 (_initialize_printcmd): Adjust "enable display" command to use
5676 `enable_display_command' as callback.
5678 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5680 * NEWS: Add Python breakpoint 'stop' operation.
5682 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5684 * NEWS: Delete duplicate entry. Fix typo.
5686 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5688 Fix ARI warning about function names in first column.
5689 Put prototype declaration on same line as return type.
5690 * objc-exp.y: Ditto.
5692 * python/py-stopevent.h: Ditto.
5693 For long function names, split parameters to
5694 allow function name on same line as return type.
5695 * solib-pa64.c: Ditto.
5698 For long function declaration, use single line.
5699 * hppa-tdep.h: Ditto.
5700 * inferior.h: Ditto.
5702 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5704 * python/python.h: Declare gdbpy_should_stop and
5705 gdbpy_breakpoint_has_py_cond.
5706 * python/python.c: Add python.h to includes. Remove python.h from
5707 HAVE_PYTHON definition
5708 (gdbpy_should_stop): New dummy function.
5709 (gdbpy_breakpoint_has_py_cond): New dummy function.
5710 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5711 sub-classing capabilities.
5712 (gdbpy_should_stop): New function.
5713 (gdbpy_breakpoint_has_py_cond): New function.
5714 (local_setattro): New function.
5715 * breakpoint.c (condition_command): Add check for Python 'stop'
5717 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5718 operation function as part of stop/continue tests.
5720 2011-03-14 Tom Tromey <tromey@redhat.com>
5723 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5724 (needs_frame_dwarf_call): Likewise.
5726 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5728 Fix ARI warning about functions without parameters that do not
5730 * breakpoint.c (all_tracepoints): Replace () by (void).
5731 * f-exp.y (match_string_literal): Ditto.
5733 * m2-exp.y (yylex): Ditto.
5734 * mep-tdep.c (current_me_module): Ditto.
5735 (current_options): Ditto.
5736 (current_cop_data_bus_width): Ditto.
5737 (current_cr_names): Ditto.
5738 (current_cr_is_float): Ditto.
5739 (current_ccr_names): Ditto.
5740 * objc-exp.y (yylex): Ditto.
5741 * p-exp.y (yylex): Ditto.
5742 * remote.c (send_interrupt_sequence): Ditto.
5743 * tracepoint.c (current_trace_status): Ditto.
5744 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5745 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5747 2011-03-11 Michael Snyder <msnyder@vmware.com>
5749 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5750 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5751 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5752 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5753 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5755 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5756 (delete_async_event_handler): Ditto.
5758 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5760 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5762 * top.c (set_verbose): Assert showcmd was found.
5764 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5766 * xtensa-tdep.c (warning_once): Correct style issues.
5768 2011-03-11 Yao Qi <yao@codesourcery.com>
5770 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5772 2011-03-11 Andreas Schwab <schwab@redhat.com>
5774 * common/aclocal.m4: Remove.
5776 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5778 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5779 (xtensa_write_register, xtensa_read_register): Likewise.
5780 (xtensa_hextochar): Removed.
5781 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5783 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5785 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5786 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5787 (xtensa_alloc_frame_cache): Add initialization for new fields.
5788 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5789 (warning_once): New function.
5790 (xtensa_insn_kind): New item c0opc_and.
5791 (call0_classify_opcode): Add the case for AND instruction.
5792 (call0_track_op): Change arguments. New local variable litbase.
5793 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5794 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5796 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5797 (call0_analyze_prologue): Update the comments. Change arguments.
5798 Add the variety of updates to handle extended prologues, which now can
5799 conduct dynamic stack adjustments.
5800 (call0_frame_cache): Likewise.
5801 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5802 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5804 2011-03-10 Michael Snyder <msnyder@vmware.com>
5806 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5807 (cmd_qtframe): Ditto.
5808 (cmd_qtbuffer): Ditto.
5809 (cmd_bigqtbuffer): Ditto.
5811 2011-03-10 Tom Tromey <tromey@redhat.com>
5813 * tracepoint.c (trace_actions_command): Update.
5814 * thread.c (thread_apply_command): Update.
5815 * reverse.c (delete_bookmark_command): Update.
5816 (bookmarks_info): Update.
5817 * printcmd.c (undisplay_command): Update.
5818 * memattr.c (mem_enable_command): Update.
5819 (mem_disable_command): Update.
5820 (mem_delete_command): Update.
5821 * inferior.c (detach_inferior_command): Update.
5822 (kill_inferior_command): Update.
5823 (remove_inferior_command): Update.
5824 * cli/cli-utils.h (struct get_number_or_range_state): New.
5825 (init_number_or_range): Declare.
5826 (get_number_or_range): Update.
5827 * cli/cli-utils.c (init_number_or_range): New function.
5828 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5830 (number_is_in_list): Update.
5831 * breakpoint.h (get_tracepoint_by_number): Update.
5832 * breakpoint.c (map_breakpoint_numbers): Update for change to
5833 get_number_or_range.
5834 (find_location_by_number): Use get_number, not
5835 get_number_or_range.
5836 (trace_pass_set_count): New function.
5837 (trace_pass_command): Update for change to get_number_or_range.
5839 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5842 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5844 * python/py-param.c (add_setshow_generic): Add set/show callback
5845 parameters. Register Python object context.
5846 (get_show_value): New function.
5847 (get_set_value): New function.
5848 (call_doc_function): New function.
5849 (get_doc_string): Move behind get_show_value/get_set_value.
5851 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5853 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5855 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5857 * xtensa-tdep.c (xtensa_read_register): Add comment.
5858 (xtensa_write_register): Likewise.
5859 (xtensa_hextochar): Add comment and update to match coding conventions.
5860 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5861 (execute_l32e, execute_s32e, execute_code): Update comments.
5862 (xtensa_exception_handler_t): Update to match coding conventions.
5863 (xtensa_insn_kind): Likewise.
5865 2011-03-09 Michael Snyder <msnyder@vmware.com>
5867 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5869 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5871 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5873 2011-03-09 Tom Tromey <tromey@redhat.com>
5875 * thread.c (restore_selected_frame): Handle frame_level == -1.
5876 (make_cleanup_restore_current_thread): Use
5877 get_selected_frame_if_set.
5878 * frame.h (get_selected_frame_if_set): Declare.
5879 * frame.c (get_selected_frame_if_set): New function.
5881 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5883 * cli/cli-cmds.c (shell_escape): Use lbasename.
5884 * coffread.c (coff_start_symtab): Constify parameter.
5885 (complete_symtab): Constify `name' parameter.
5886 (coff_symtab_read): Constify `filestring' local.
5887 (coff_getfilename): Constify return and `result' local.
5889 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5890 * linux-fork.c (info_checkpoints_command): Use lbasename.
5891 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5892 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5893 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5894 * procfs.c (procfs_make_note_section): Use lbasename.
5895 * tui/tui-io.c (printable_part): Constity return and parameter.
5897 (print_filename): Constify parameters, and local `s'.
5898 (tui_rl_display_match_list): Constify local `temp'.
5900 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5903 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5904 Fix DWARF-3+ DW_AT_accessibility default assumption.
5905 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5906 cu->header.version >= 3.
5908 2011-03-09 Yao Qi <yao@codesourcery.com>
5910 * common/Makefile.in: Remove.
5911 * common/configure: Remove.
5912 * common/configure.ac: Remove.
5914 2011-03-09 Yao Qi <yao@codesourcery.com>
5917 2011-02-11 Yao Qi <yao@codesourcery.com>
5919 * common/Makefile.in: Add copyright header.
5921 2011-02-11 Yao Qi <yao@codesourcery.com>
5923 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5925 * configure.ac: Add common to sub dir.
5926 * configure: Regenerate.
5928 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5930 * xtensa-tdep.c (call0_ret): New function.
5931 (xtensa_skip_prologue): Speed up analysis.
5933 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5935 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5936 while executing MI command -data-list-changed-registers.
5938 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5940 * xtensa-tdep.c (xtensa_read_register): New function.
5941 (xtensa_write_register): New function.
5942 (xtensa_find_register_by_name): New function.
5943 (xtensa_windowed_frame_cache): Update comments in type description.
5944 (xtensa_frame_cache): Likewise.
5945 (xtensa_window_interrupt_insn): New function.
5946 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5947 (xtensa_insn_kind): Add new instructions.
5948 (rwx_special_register): New function.
5949 (call0_classify_opcode): Add new instructions to the analysis.
5950 (a0_saved, a7_saved, a11_saved): New variables.
5951 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5952 (execute_l32e): New function.
5953 (execute_s32e): New function.
5954 (xtensa_exception_handler_t): New type.
5955 (execute_code): New function.
5956 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5957 analysis for Xtensa Window Exception handlers.
5959 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5961 * xtensa-tdep.c (TX_PS): New.
5962 (windowing_enabled): Update to count for Call0 ABI.
5963 (xtensa_hextochar): New.
5964 (xtensa_init_reggroups): Make algorithm generic.
5965 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5967 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5969 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5971 2011-03-08 Michael Snyder <msnyder@vmware.com>
5973 * i386-tdep.c (i386_follow_jump): Check return value of
5975 (i386_analyze_struct_return): Ditto.
5976 (i386_skip_probe): Ditto.
5977 (i386_match_insn): Ditto.
5978 (i386_skip_noop): Ditto.
5979 (i386_analyze_frame_setup): Ditto.
5980 (i386_analyze_register_saves): Ditto.
5981 (i386_skip_prologue): Ditto.
5982 (i386_skip_main_prologue): Ditto.
5984 * target.c (read_whatever_is_readable): Fix memory leak.
5986 * i386-tdep.c (i386_process_record): Document fall through.
5988 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5990 Fix DWARF-3+ DW_AT_accessibility default assumption.
5991 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5992 cu->header.version >= 3.
5994 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5996 * remote.c (remote_check_symbols): Skip if the target has no
5999 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6001 * target.c (read_whatever_is_readable): Reformat comment,
6002 with a minor typo fix. Minor reformatting of the code.
6004 2011-03-08 Yao Qi <yao@codesourcery.com>
6006 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6007 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6008 Use cached result instead of calling displaced_in_arm_mode again.
6009 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6010 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6011 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6012 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6013 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6014 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6015 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6016 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6017 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6018 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6019 (arm_catch_kernel_helper_return): Likewise.
6020 * gdb/arm-tdep.h : Update function declarations.
6022 2011-03-07 Michael Snyder <msnyder@vmware.com>
6024 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6026 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6028 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6030 * elfread.c (elf_symtab_read): Stop memory leak.
6032 * main.c (captured_main): Fix memory leak.
6034 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6036 * ada-lang.c (compare_names): Call is_name_suffix with string1
6039 2011-03-07 Tom Tromey <tromey@redhat.com>
6041 * xcoffread.c (xcoff_sym_fns): Update.
6042 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6043 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6044 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6045 (symbol_file_add_with_addrs_or_offsets): Likewise.
6046 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6047 * somread.c (som_sym_fns): Update.
6048 * psymtab.h (require_partial_symbols): Declare.
6049 * psymtab.c (require_partial_symbols): New function.
6050 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6051 (ALL_OBJFILE_PSYMTABS): Undef.
6052 (ALL_PSYMTABS): Move from psympriv.h.
6053 (lookup_partial_symtab, find_pc_sect_psymtab)
6054 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6055 (find_last_source_symtab_from_partial)
6056 (forget_cached_source_info_partial)
6057 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6058 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6059 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6060 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6061 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6062 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6063 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6064 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6065 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6067 * mipsread.c (ecoff_sym_fns): Update.
6068 * machoread.c (macho_sym_fns): Update.
6069 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6070 (read_psyms): New function.
6071 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6072 (elf_sym_fns_lazy_psyms): New global.
6073 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6074 dwarf2_build_psymtabs.
6075 * dbxread.c (aout_sym_fns): Update.
6076 * coffread.c (coff_sym_fns): Update.
6078 2011-03-07 Tom Tromey <tromey@redhat.com>
6080 * infrun.c (print_exited_reason): Include inferior id and pid in
6083 2011-03-07 Tom Tromey <tromey@redhat.com>
6085 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6087 (target_has_execution_1): Update.
6088 (target_has_execution_current): Declare.
6089 (target_has_execution): Call target_has_execution_current.
6090 (default_child_has_execution): Update.
6091 * target.c (default_child_has_execution): Add 'the_ptid'
6093 (target_has_execution_1): Likewise.
6094 (target_has_execution_current): New function.
6095 (add_target): Update.
6096 (init_dummy_target): Update.
6097 * remote-m32r-sdi.c (m32r_has_execution): New function.
6098 (init_m32r_ops): Use it.
6099 * record.c (record_core_has_execution): Now static. Add
6100 'the_ptid' parameter.
6101 * inferior.c (have_live_inferiors): Don't save current thread.
6102 Use target_has_execution_1.
6104 2011-03-07 Yao Qi <yao@codesourcery.com>
6106 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6108 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6110 * elfread.c (elf_symtab_read): Minor reformatting.
6112 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6114 * objc-lang.c (selectors_info): Minor reformatting.
6116 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6118 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6120 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6121 Michael Snyder <msnyder@vmware.com>
6123 * ada-valprint.c (ada_val_print_array): Move the declaration of
6124 "byte_order" and "elttype" inside the block where these variables
6125 are actually used. Remove some special handling for the case
6126 where "elttype" and "eltlen" are null. Replace by a comment
6127 and a couple of assertion checks.
6129 2011-03-05 Michael Snyder <msnyder@vmware.com>
6131 * source.c (add_path): Replace semicolon at end of block.
6132 * dwarf2expr.c (execute_stack_op): Ditto.
6134 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6136 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6137 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6138 (bfin-*-*): Likewise.
6140 2011-03-05 Michael Snyder <msnyder@vmware.com>
6142 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6143 * mdebugread.c (parse_symbol): Ditto.
6144 * parse.c (parse_exp_in_context): Ditto.
6145 * source.c (add_path): Ditto.
6146 * utils.c (gnu_debuglink_crc32): Ditto.
6147 * varobj.c (variable_language): Ditto.
6149 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6151 2011-03-04 Michael Snyder <msnyder@vmware.com>
6153 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6155 * symfile.c (simple_overlay_update): Check for null return value
6156 from lookup_minimal_symbol.
6158 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6160 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6162 * eval.c (parse_and_eval_address_1): Remove function.
6163 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6164 instead of parse_and_eval_address_1.
6165 * value.h (parse_and_eval_address_1): Remove prototype.
6167 2011-03-04 Michael Snyder <msnyder@vmware.com>
6169 * remote.c (putpkt_binary): Document that case stmt falls through.
6171 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6173 * breakpointc (print_it_typical): Move NULL check from here...
6174 (print_bp_stop_message): ... to here.
6176 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6178 * breakpoint.c (enable_command): Use break instead of continue,
6179 and fill in a missing break.
6180 (disable_command): Ditto.
6182 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6184 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6185 (terminal_save_ours): Remove misleading comment.
6186 (inflow_inferior_data_cleanup): Free ttystate.
6187 (inflow_inferior_exit): Likewise.
6188 (copy_terminal_info): Copy ttystate.
6190 * serial.c (serial_copy_tty_state): New function.
6191 * serial.h (serial_copy_tty_state): Add prototype.
6192 (struct serial_ops): Add copy_tty_state callback.
6193 * ser-base.c (ser_base_copy_tty_state): New function.
6194 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6195 * ser-go32.c (dos_copy_tty_state): New function.
6196 (dos_ops): Install copy_tty_state callback.
6197 * ser-mingw.c (_initialize_ser_windows): Likewise.
6198 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6199 * ser-unix.c (hardwire_copy_tty_state): New function.
6200 (_initialize_ser_hardwire): Install it.
6202 2011-03-04 Michael Snyder <msnyder@vmware.com>
6204 * breakpoint.c (create_breakpoint): Add missing break statement.
6206 Reverting this patch:
6207 * infcall.c (call_function_by_hand): Add break statements for lint.
6209 Reverting this patch:
6210 * cli/cli-script.c (script_from_file): Add break for lint.
6212 2011-03-04 Michael Snyder <msnyder@vmware.com>
6214 * solib.c (reload_shared_libraries_1): Close memory leak.
6216 2011-03-03 Tom Tromey <tromey@redhat.com>
6219 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6222 2011-03-03 Michael Snyder <msnyder@vmware.com>
6224 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6225 fields of struct 'st' to zero.
6227 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6228 sal.pspace before calling set_current_source_symtab_and_line.
6230 2011-03-03 Yao Qi <yao@codesourcery.com>
6232 * Makefile.in (configure-common): Remove. Let Makefile
6233 in dir common to rebuild itself.
6234 (common/Makefile): Likewise.
6236 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6238 * utils.c (parse_escape): Add i18n markup in error message.
6240 2011-03-03 Yao Qi <yao@codesourcery.com>
6242 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6244 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6245 (displaced_write_reg, displaced_read_reg): Likewise.
6246 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6247 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6248 (cleanup_branch): Replace magic number 14 and 15 with
6249 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6251 2011-03-02 Michael Snyder <msnyder@vmware.com>
6253 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6255 * cli/cli-script.c (script_from_file): Add break for lint.
6257 * mdebugread.c (parse_partial_symbols): Fix indent.
6259 * target-descriptions.c (tdesc_gdb_type): No need to call
6260 xstrdup, callee saves a copy.
6262 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6264 * infcall.c (call_function_by_hand): Add break statements for lint.
6266 * utils.c (parse_escape): Escape the escape char.
6268 * python/py-inferior.c (build_inferior_list): Error out if
6269 PyList_Append fails.
6270 (gdbpy_inferiors): Error out if build_inferior_list fails.
6272 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6275 * record.c (record_restore): Move printf to before error return.
6277 2011-03-02 Yao Qi <yao@codesourcery.com>
6279 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6280 is_thumb and insn_size.
6281 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6282 on both ARM and Thumb mode.
6283 (arm_process_displaced_insn): Set is_thumb and insn_size.
6284 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6285 (arm_displaced_step_fixup): Likewise.
6287 2011-03-01 Michael Snyder <msnyder@vmware.com>
6289 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6291 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6293 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6295 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6297 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6300 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6301 which shadows function parameter.
6303 * tracepoint.c (create_tsv_from_upload): Superfluous call
6304 to xstrdup. Callee already calls xstrdup.
6306 * linespec.c (decode_line_1): Remove unnecessary null check.
6308 * tracepoint.c (scope_info): Fix mem leak, remove underused
6311 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6312 superfluous null check.
6314 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6315 (value_of_builtin_frame_fp_reg): Ditto.
6317 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6319 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6322 * linespec.c (decode_line_1): Check for null before dereference.
6324 * reverse.c (record_restore): Move null-check to before pointer
6327 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6329 * objc-lang.c (selectors_info): Add explanitory comment.
6330 (classes_info): Ditto.
6332 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6334 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6335 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6336 versions of the trampoline. Handle Thumb vs. ARM addresses.
6337 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6338 (arm_linux_init_abi): Install it.
6339 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6340 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6342 2011-02-28 Michael Snyder <msnyder@vmware.com>
6344 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6345 a little bigger, to avoid possibility of an overflow.
6347 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6348 buffers a little bigger, to avoid possibility of an overflow.
6350 * coffread.c (coff_getfilename): Add check to avoid overflow.
6352 * objc-lang.c (selectors_info): Add a small safety margin to
6354 (classes_info): Error out on too long REGEXP.
6356 * infrun.c (handle_inferior_event): Remove unused function call.
6358 * fork-child.c (fork_inferior): Remove ifdef'd code and
6361 * linux-thread-db.c (attach_thread): Discard unused value.
6363 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6365 * remote.c (remote_get_noisy_reply): Discard unused value.
6366 (remote_vcont_resume): Ditto.
6367 (remote_stop_ns): Ditto.
6369 * linespec.c (decode_objc): Delete unused variable.
6371 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6373 * dwarf2read.c (add_partial_symbol): Discard unused values.
6374 (read_base_type): Delete unused variable.
6376 * dbxread.c (read_dbx_symtab): Discard unused value.
6378 * eval.c (evaluate_subexp_standard): Delete unused variable,
6379 and discard unused values.
6381 * infcmd.c (_initialize_infcmd): Discard unused values.
6383 * stabsread.c (rs6000_builtin_type): Missing break statement.
6385 * dbxread.c (process_one_symbol): Discard unused value.
6387 * coffread.c (coff_end_symtab): Delete unused variable.
6389 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6390 (dwarf2_add_typedef): Delete unused variable.
6391 (read_namespace): Ditto.
6392 (dwarf_decode_macros): Ditto.
6394 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6396 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6398 * p-valprint.c (pascal_val_print): Discard unused value.
6400 * utils.c (nquery): Call va_end before return;
6404 * proc-service.c (ps_plog): Call va_end before return.
6406 2011-02-28 Tom Tromey <tromey@redhat.com>
6408 * python/python.c (gdbpy_value_cst): New global.
6409 (_initialize_python): Initialize it.
6410 * python/python-internal.h (gdbpy_value_cst): Declare.
6411 * python/py-value.c (convert_value_from_python): Use
6414 2011-02-28 Michael Snyder <msnyder@vmware.com>
6416 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6418 * breakpoint.c (catch_syscall_completer): Free malloced list.
6420 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6422 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6423 (lval_func_check_synthetic_pointer): Ditto.
6424 (lval_func_free_closure): Fix use-after-free.
6426 2011-02-28 Tom Tromey <tromey@redhat.com>
6428 * psymtab.c (expand_partial_symbol_tables): Use
6429 ALL_OBJFILE_PSYMTABS.
6431 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6433 * objc-lang.c (selectors_info): Error on too long REGEXP.
6435 2011-02-28 Michael Snyder <msnyder@vmware.com>
6437 * python/py-param.c (set_parameter_value): Add missing
6440 * linux-record.c (record_linux_system_call): Add missing
6443 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6445 * breakpoint.c (print_one_breakpoint_location): Remove unused
6446 argument PRINT_ADDRESS_BITS. Update callers.
6447 (print_one_breakpoint): Likewise.
6449 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6451 * breakpoint.c (wrap_indent_at_field): New function.
6452 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6453 Allocate ui_stream locally instead of using STB argument.
6454 (print_one_breakpoint_location): Update call.
6455 * ui-out.c (ui_out_query_field): New function.
6456 * ui-out.h (ui_out_query_field): Add prototype.
6458 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6460 From Michael Snyder <msnyder@vmware.com>
6461 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6463 2011-02-27 Michael Snyder <msnyder@vmware.com>
6465 * objc-lang.c (selectors_info): Prevent string overrun.
6467 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6470 * symtab.c (rbreak_command): Move variable 'file_name' to
6473 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6474 param with a local variable of the same name.
6476 2011-02-27 Michael Snyder <msnyder@vmware.com>
6478 * value.c (value_from_history_ref): New function.
6479 * value.h (value_from_history_ref): Export.
6480 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6481 to parse value history references.
6482 * cli/cli-utils.h (get_number_trailer): Update comment.
6484 2011-02-27 Michael Snyder <msnyder@vmware.com>
6486 * inferior.c (detach_inferior_command): Use get_number_or_range.
6487 (kill_inferior_command): Ditto.
6488 (remove_inferior_command): Ditto.
6489 (initialize_inferiors): Make command names plural.
6490 Update help strings.
6492 2011-02-27 Michael Snyder <msnyder@vmware.com>
6494 * darwin-nat-info.c: Fix comment typo.
6495 * dwarf2expr.h: Ditto.
6496 * fbsd-nat.c: Ditto.
6497 * fbsd-nat.h: Ditto.
6498 * frame-unwind.h: Ditto.
6500 * hppa-hpux-tdep.c: Ditto.
6501 * i386-linux-nat.c: Ditto.
6502 * linux-nat.c: Ditto.
6503 * nbsd-nat.c: Ditto.
6504 * nbsd-nat.h: Ditto.
6505 * ppc-linux-tdep.c: Ditto.
6508 * tui/tui-winsource.c: Ditto.
6510 2011-02-26 Michael Snyder <msnyder@vmware.com>
6512 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6514 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6516 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6517 with a local variable of the same name.
6519 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6520 param with a local variable of the same name.
6521 (i387_supply_xsave): Ditto.
6523 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6524 that it does not shadow a function parameter.
6526 * i386-nat.c (i386_length_and_rw_bits): Document that case
6527 statement is meant to fall through.
6529 * expprint.c (dump_subexp_body_standard): Document that case
6530 statement is meant to fall through.
6532 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6533 dead if statement. Condition can't be false.
6535 2011-02-25 Michael Snyder <msnyder@vmware.com>
6537 * arm-tdep.c: Fix typos in comments.
6538 * bsd-uthread.c: Ditto.
6539 * completer.c: Ditto.
6541 * cp-namespace.c: Ditto.
6542 * cp-support.c: Ditto.
6543 * cris-tdep.c: Ditto.
6545 * dwarf2read.c: Ditto.
6547 * gdbtypes.h: Ditto.
6548 * inferior.h: Ditto.
6549 * mdebugread.c: Ditto.
6550 * mips-tdep.c: Ditto.
6551 * ppc-linux-nat.c: Ditto.
6552 * ppc-linux-tdep.c: Ditto.
6553 * printcmd.c: Ditto.
6554 * sol-thread.c: Ditto.
6555 * solib-frv.c: Ditto.
6557 * sparc64-tdep.c: Ditto.
6558 * spu-tdep.c: Ditto.
6559 * stabsread.c: Ditto.
6564 * python/py-block.c: Ditto.
6565 * python/py-symbol.c: Ditto.
6566 * python/py-symtab.c: Ditto.
6567 * python/py-value.c: Ditto.
6568 * tui/tui-win.c: Ditto.
6570 2011-02-25 Michael Snyder <msnyder@vmware.com>
6572 * inferior.c (print_inferior): Accept a string instead of an int
6573 for requested_inferiors, and use get_number_or_range to parse it.
6574 (info_inferiors_command): Pass args string to print_inferior.
6575 (initialize_inferiors): Change help string for info inferiors.
6576 * inferior.h (print_inferior): Export prototype change.
6578 2011-02-25 Tom Tromey <tromey@redhat.com>
6580 * common/ax.def (invalid2): Set to 0x31.
6582 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6584 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6586 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6588 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6590 2011-02-24 Michael Snyder <msnyder@vmware.com>
6592 * Makefile.in (clean): Make clean should remove generated files
6593 observer.h and observer.inc.
6595 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6597 Revert the following patch (not approved yet):
6598 2011-02-21 Hui Zhu <teawater@gmail.com>
6599 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6600 * ax-gdb.c (gen_printf_expr_callback): New function.
6601 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6602 * ax-general.c (ax_memcpy): New function.
6603 (ax_print): Handle "printf".
6605 * ax.h (ax_memcpy): Forward declare.
6606 * common/ax.def (invalid2): Removed.
6607 (printf): New entry.
6608 * printcmd.c (printcmd.h): New include.
6609 (string_printf): New function.
6610 (ui_printf): Removed.
6611 (printf_command): Remove static. Call string_printf.
6612 (eval_command): Call string_printf.
6613 * printcmd.h: New file.
6614 * tracepoint.c (validate_actionline,
6615 encode_actions_1): handle printf_command.
6617 2011-02-23 Tom Tromey <tromey@redhat.com>
6619 * ax-general.c (ax_pick): Add missing newline.
6621 2011-02-23 Michael Snyder <msnyder@vmware.com>
6623 * breakpoint.c (breakpoint_1): Change first argument from an int
6624 to a char pointer, so that the function now accepts a list of
6625 breakpoints rather than just one. Use new function
6626 'number_is_in_list' to implement.
6627 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6628 (watchpoints_info): Ditto.
6629 (tracepoints_info): Ditto.
6630 (maintenance_info_breakpoints): Ditto.
6631 (_initialize_breakpoint): Update help strings to reflect the fact
6632 that these functions can now take more than one argument.
6633 * cli/cli-utils.c (number_is_in_list): New function.
6634 * cli/cli-utils.h (number_is_in_list): Export.
6636 2011-02-23 Michael Snyder <msnyder@vmware.com>
6638 * memattr.c (mem_enable_command): Use get_number_or_range.
6639 (mem_disable_command): Ditto.
6640 (mem_delete_command): Ditto.
6641 (_initialize_mem): Tweak usage message to reflect multiple
6644 2011-02-22 Doug Evans <dje@google.com>
6646 Add gdb.lookup_global_symbol python function.
6648 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6649 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6650 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6652 2011-02-22 Tom Tromey <tromey@redhat.com>
6654 * language.c (language_class_name_from_physname): Rename
6655 'curr_language' argument to 'lang'; use in body.
6657 2011-02-22 Michael Snyder <msnyder@vmware.com>
6659 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6661 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6663 * frame-unwind.h: Fix comment to mention the this frame, not the
6666 2011-02-22 Tom Tromey <tromey@redhat.com>
6668 * symfile.c (auto_solib_limit): Remove.
6669 * symfile.h (auto_solib_limit): Remove.
6671 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6673 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6675 2011-02-21 Michael Snyder <msnyder@vmware.com>
6677 * gdbthread.h (print_thread_info): Change prototype.
6678 * thread.c (print_thread_info): Accept char* instead of int for
6679 requested_threads argument. Use new function number_is_in_list
6680 to determine which threads to list.
6681 (info_threads_command): Pass char* to print_thread_info.
6682 * cli/cli-utils.c (number_is_in_list): New function.
6683 * cli/cli-utils.h (number_is_in_list): Export.
6684 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6686 (print_one_inferior): Ditto.
6687 (mi_cmd_list_thread_groups): Ditto.
6689 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6691 * common/Makefile.in (CFLAGS): New.
6692 (COMPILE): Add $(CFLAGS).
6694 2011-02-21 Tom Tromey <tromey@redhat.com>
6696 * breakpoint.c (catch_syscall_command_1): Fix typo.
6698 2011-02-21 Tom Tromey <tromey@redhat.com>
6700 * reverse.c: Include cli-utils.h.
6701 * printcmd.c: Include cli-utils.h.
6702 (string_printf): Use skip_spaces.
6703 * cli/cli-utils.h: New file.
6704 * cli/cli-utils.c: New file.
6705 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6706 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6707 * breakpoint.h (get_number, get_number_or_range): Move to
6709 * breakpoint.c: Include cli-utils.h.
6710 (get_number_trailer, get_number, get_number_or_range)
6711 (ep_skip_leading_whitespace): Move to cli-utils.c.
6712 (create_breakpoint_sal, find_condition_and_thread)
6713 (decode_static_tracepoint_spec, watch_command_1)
6714 (watch_maybe_just_location, ep_parse_optional_if_clause)
6715 (catch_fork_command_1, catch_exec_command_1)
6716 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6717 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6718 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6719 (HFILES_NO_SRCDIR): Add cli-utils.h.
6720 (cli-utils.o): New target.
6722 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6724 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6725 before calling discard_all_inferiors.
6727 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6729 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6730 (struct builtin_opencl_type): Remove.
6731 (builtin_opencl_type): Change return type to "struct type **".
6732 (lookup_opencl_vector_type): Update caller.
6733 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6734 (build_opencl_types): Install plain array of "struct type *"
6735 instead of "struct builtin_opencl_type".
6737 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6738 Ulrich Weigand <uweigand@de.ibm.com>
6740 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6741 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6742 (struct arm_linux_hwbp_cap): New type.
6743 (arm_linux_get_hwbp_cap): New function.
6744 (arm_linux_get_hw_breakpoint_count): Likewise.
6745 (arm_linux_get_hw_watchpoint_count): Likewise.
6746 (arm_linux_can_use_hw_breakpoint): Likewise.
6747 (arm_hwbp_type): New type.
6748 (arm_hwbp_control_t): Likewise.
6749 (struct arm_linux_hw_breakpoint): Likewise.
6750 (struct arm_linux_thread_points): Likewise.
6751 (arm_threads): New global variable.
6752 (arm_linux_find_breakpoints_by_tid): New function.
6753 (arm_hwbp_control_initialize): Likewise.
6754 (arm_hwbp_control_is_enabled): Likewise.
6755 (arm_hwbp_control_disable): Likewise.
6756 (arm_linux_hw_breakpoint_initialize): Likewise.
6757 (arm_linux_get_hwbp_type): Likewise.
6758 (arm_linux_hw_watchpoint_initialize): Likewise.
6759 (arm_linux_hw_breakpoint_equal): Likewise.
6760 (arm_linux_insert_hw_breakpoint1): Likewise.
6761 (arm_linux_remove_hw_breakpoint1): Likewise.
6762 (arm_linux_insert_hw_breakpoint): Likewise.
6763 (arm_linux_remove_hw_breakpoint): Likewise.
6764 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6765 (arm_linux_insert_watchpoint): Likewise.
6766 (arm_linux_remove_watchpoint): Likewise.
6767 (arm_linux_stopped_data_address): Likewise.
6768 (arm_linux_stopped_by_watchpoint): Likewise.
6769 (arm_linux_watchpoint_addr_within_range): Likewise.
6770 (arm_linux_new_thread): Likewise.
6771 (arm_linux_thread_exit): Likewise.
6772 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6773 related target callbacks. Register arm_linux_new_thread and
6774 arm_linux_thread_exit.
6775 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6776 * arm-tdep.c (arm_pc_is_thumb): Make global.
6777 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6779 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6781 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6782 per-frame locations while within a function epilogue.
6784 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6786 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6787 to GNU coding standards.
6789 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6791 Allow use of mingw native on Windows 95 OS.
6792 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6793 (ser_windows_close): Only call CancelIo if function exists.
6794 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6795 to check for existence of CancelIo function in kernel32 DLL.
6797 2011-02-21 Hui Zhu <teawater@gmail.com>
6799 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6800 * ax-gdb.c (gen_printf_expr_callback): New function.
6801 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6802 * ax-general.c (ax_memcpy): New function.
6803 (ax_print): Handle "printf".
6805 * ax.h (ax_memcpy): Forward declare.
6806 * common/ax.def (invalid2): Removed.
6807 (printf): New entry.
6808 * printcmd.c (printcmd.h): New include.
6809 (string_printf): New function.
6810 (ui_printf): Removed.
6811 (printf_command): Remove static. Call string_printf.
6812 (eval_command): Call string_printf.
6813 * printcmd.h: New file.
6814 * tracepoint.c (validate_actionline,
6815 encode_actions_1): handle printf_command.
6817 2011-02-19 Michael Snyder <msnyder@vmware.com>
6819 * reverse.c (delete_one_bookmark): Argument is now bookmark
6820 id rather than pointer to bookmark struct.
6821 (delete_bookmark_command): Use get_number_or_range.
6822 (goto_bookmark_command): Parse with get_number instead of strtoul.
6823 (bookmark_1): New function. Print info for one bookmark.
6824 (bookmarks_info): Use get_number_or_range and bookmark_1.
6826 2011-02-18 Michael Snyder <msnyder@vmware.com>
6828 * thread.c (info_threads_command): Re-implement using
6829 get_number_or_range.
6830 (thread_apply_command): Ditto.
6832 2011-02-18 Tom Tromey <tromey@redhat.com>
6834 * common/ax.def: New file.
6835 * ax.h (enum agent_op): Use ax.def.
6836 * ax-general.c (aop_map): Use ax.def.
6838 2011-02-18 Tom Tromey <tromey@redhat.com>
6840 * ax-general.c (aop_map): Add pick and rot.
6841 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6842 <DW_OP_rot>: Implement.
6843 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6845 * ax-general.c (ax_pick): New function.
6847 2011-02-18 Tom Tromey <tromey@redhat.com>
6849 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6851 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6852 Tom Tromey <tromey@redhat.com>
6854 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6855 make_symbol_overload_list_block with NULL BLOCK.
6856 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6858 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6860 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6861 * breakpoint.h (get_number_or_range): Declare.
6862 * printcmd.c (ALL_DISPLAYS): Declare.
6863 (delete_display): Reimplement taking a display pointer.
6864 (undisplay_command): Accept a range of displays to delete, using
6865 get_number_or_range.
6867 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6869 * c-valprint.c (c_val_print): Add embedded_offset to address
6870 for arrays of unspecified length.
6871 * p-valprint.c (pascal_val_print): Likewise.
6873 2011-02-18 Yao Qi <yao@codesourcery.com>
6875 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6876 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6877 (thumb_process_displaced_insn): New.
6878 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6879 call to arm_process_displaced_insn.
6880 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6882 2011-02-17 Tom Tromey <tromey@redhat.com>
6884 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6885 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6886 compile_dwarf_to_ax. No longer static. Call
6887 dwarf2_compile_cfa_to_ax.
6888 (locexpr_tracepoint_var_ref): Update.
6889 (loclist_tracepoint_var_ref): Update.
6890 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6891 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6892 argument; add 'gdbarch' and 'pc'.
6893 (dwarf2_compile_cfa_to_ax): New function.
6894 (dwarf2_frame_cache): Update.
6896 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6898 * ada-lang.c (ada_type_of_array): Fix the size of the array
6899 in the case of an unconstrained packed array.
6901 2011-02-17 Yao Qi <yao@codesourcery.com>
6903 * common/Makefile.in: Add more targets for make.
6905 2011-02-16 Tom Tromey <tromey@redhat.com>
6907 * dwarf2loc.c (unimplemented): Fix typo.
6909 2011-02-16 Tom Tromey <tromey@redhat.com>
6911 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6912 (compile_dwarf_to_ax) <default>: Use unimplemented.
6913 <DW_OP_deref>: Update.
6914 (disassemble_dwarf_expression): Update.
6915 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6916 (decode_locdesc): Update.
6917 * dwarf2expr.h (dwarf_stack_op_name): Update.
6919 2011-02-16 Tom Tromey <tromey@redhat.com>
6921 * ax.h (struct aop_map) <name>: Now const.
6923 2011-02-16 Tom Tromey <tromey@redhat.com>
6925 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6928 2011-02-16 Yao Qi <yao@codesourcery.com>
6930 * infrun.c (get_displaced_step_closure_by_addr): New.
6931 * inferior.h: Declare it.
6932 * arm-tdep.c: (arm_pc_is_thumb): Call
6933 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6936 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6937 Jan Kratochvil <jan.kratochvil@redhat.com>
6940 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6942 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6943 Jan Kratochvil <jan.kratochvil@redhat.com>
6945 * value.c (value_contents_copy_raw): Extend describing comment.
6946 Assert that the destination contents we're overwriting are wholly
6948 (value_contents_copy): Extend describing comment.
6950 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6951 Jan Kratochvil <jan.kratochvil@redhat.com>
6953 * value.c (value_available_contents_eq): Remove redundant local
6954 variables. Fix available contents comparision.
6955 * value.h (value_available_contents_eq): Extend describing
6958 2011-02-16 Yao Qi <yao@codesourcery.com>
6960 * thread.c (info_threads_command): Add missing i18n markup and remove
6963 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6965 * breakpoint.c (longjmp_names): New variable.
6966 (struct breakpoint_objfile_data): New type.
6967 (breakpoint_objfile_key): New variable.
6968 (msym_not_found): New variable.
6969 (msym_not_found_p): New predicate.
6970 (get_breakpoint_objfile_data): New function.
6971 (create_overlay_event_breakpoint): Check per-objfile cache for
6973 (create_longjmp_master_breakpoint): Likewise.
6974 (create_std_terminate_master_breakpoint): Likewise.
6975 (create_exception_master_breakpoint): Likewise.
6976 (_initialize_breakpoint): Register per-objfile data key.
6978 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6980 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6982 (create_longjmp_master_breakpoint): Loop over longjmp names.
6983 (create_std_terminate_master_breakpoint): Const-propagate parameter
6985 (update_breakpoints_after_exec): Adjust.
6986 (breakpoint_re_set): Adjust.
6988 2011-02-15 Michael Snyder <msnyder@vmware.com>
6990 * thread.c (info_threads_command): Process arg as thread id,
6991 or list of thread ids.
6992 (thread_find_command): New command.
6993 (_initialize_thread): Document argument for info threads.
6994 Document 'thread find' command.
6995 * NEWS: Document new command "thread find".
6997 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6999 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7000 * aclocal.m4: Regenerated with aclocal-1.11.1.
7001 * common/configure: Regenerate with autoconf-2.64.
7003 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7005 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7006 bool data type to a size of one byte.
7008 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7009 Jan Kratochvil <jan.kratochvil@redhat.com>
7011 * target.c (memory_xfer_live_readonly_partial): Document where to
7012 look for interface description.
7014 2011-02-15 Yao Qi <yao@codesourcery.com>
7017 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7018 order to store PC value on stack instead of text section.
7020 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7022 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7023 the EFP register set size.
7024 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7025 data from the VMX register.
7026 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7027 and write data from/to the VMX register.
7029 2011-02-14 Michael Snyder <msnyder@vmware.com>
7031 * command.h (enum command_class): New class 'no_set_class', for
7032 "show" commands without a corresponding "set" command.
7033 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7034 * copying.c (_initialize_copying): Ditto for "show copying" and
7036 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7038 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7039 which there is no corresponding "set" command (eg. "show copying").
7041 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7042 Jan Kratochvil <jan.kratochvil@redhat.com>
7044 * exec.c (section_table_available_memory): Change `len' parameter
7046 * exec.h (section_table_available_memory): Ditto.
7047 * value.h (read_value_memory): Rename the `offset' parameter to
7050 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7051 Jan Kratochvil <jan.kratochvil@redhat.com>
7053 * memrange.c (compare_mem_ranges): Mention sort order in
7055 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7056 * tracepoint.c (traceframe_available_memory): Extend comment to
7057 mention what happens to RESULT when the target does not support
7060 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7061 Jan Kratochvil <jan.kratochvil@redhat.com>
7063 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7066 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7068 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7069 No longer handle NULL values.
7071 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7073 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7074 * value.c: Include "exceptions.h".
7075 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7077 * cp-abi.c: Include gdb_assert.h.
7078 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7079 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7081 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7082 parameters. No longer returns -1 on error.
7083 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7085 * cp-valprint.c: Include exceptions.h.
7086 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7087 the baseclass_offset. Handle unavailable base classes. Use
7088 val_print_invalid_address.
7089 * p-valprint.c: Include exceptions.h.
7090 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7091 when fetching the baseclass_offset. No longer expect
7092 baseclass_offset returning -1. Handle unavailable base classes.
7093 Use val_print_invalid_address.
7094 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7095 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7096 `embedded_offset' and `val' parameters. Adjust.
7097 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7098 parameter, and change its type to gdb_byte pointer. Add
7099 `embedded_offset' and `val' parameters. Adjust. No longer expect
7100 baseclass_offset returning -1.
7101 (value_dynamic_cast): Use value_contents_for_printing rather than
7102 value_contents. Adjust.
7103 (search_struct_field): No longer expect baseclass_offset returning
7105 (search_struct_method): If reading memory from the target is
7106 necessary, wrap it in a new value to pass to baseclass_offset. No
7107 longer expect baseclass_offset returning -1.
7108 (find_method_list): No longer expect baseclass_offset returning
7109 -1. Use value_contents_for_printing rather than value_contents.
7110 * valprint.c (val_print_invalid_address): New function.
7111 * valprint.h (val_print_invalid_address): Declare.
7112 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7113 and `val' parameters. No longer expect baseclass_offset returning
7115 * gnu-v2-abi.c: Include "exceptions.h".
7116 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7117 parameters. Handle unavailable memory. Recurse through
7118 gnuv2_baseclass_offset directly, rather than through
7119 baseclass_offset. No longer returns -1 on not found, instead
7121 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7122 `val' parameters. Adjust.
7124 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7126 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7127 almost but not quite adjacent.
7129 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7131 * value.h (value_entirely_available): Declare.
7132 * value.c (value_entirely_available): New function.
7133 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7134 real type if the pointer is unavailable.
7136 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7138 * valops.c (value_repeat): Use read_value_memory instead of
7141 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7143 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7144 * value.c (value_contents_copy_raw, value_contents_copy): New
7146 (value_primitive_field): Use value_contents_copy_raw instead of
7148 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7150 (value_array, value_slice): Ditto.
7151 * valarith.c (value_subscripted_rvalue): Use
7152 value_contents_copy_raw instead of memcpy.
7154 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7156 <unavailable> references.
7158 * valops.c (get_value_at): Use value_from_contents_and_address,
7159 avoiding read_memory.
7161 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7163 * c-valprint.c (c_val_print): Print a string with unavailable
7164 contents as an array.
7166 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7168 * value.h (unpack_bits_as_long): Delete declaration.
7169 (unpack_value_bits_as_long): Declare.
7170 (unpack_value_field_as_long): Declare.
7171 (value_field_bitfield): Declare.
7172 * value.c (unpack_bits_as_long): Rename to...
7173 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7174 value parameters. Return the extracted result in a new output
7175 parameter. If the value contents are unavailable, return false,
7176 otherwise return true.
7177 (unpack_value_bits_as_long): New.
7178 (unpack_field_as_long): Rename to...
7179 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7180 Add embedded_offset and value parameters. Return the extracted
7181 result in a new output parameter. If the value contents are
7182 unavailable, return false, otherwise return true.
7183 (unpack_value_field_as_long): New.
7184 (unpack_field_as_long_1): New.
7185 (unpack_field_as_long): Reimplement as wrapper around
7186 unpack_value_field_as_long_1.
7187 (value_field_bitfield): New function.
7188 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7189 unpack_value_bits_as_long. Mark the value as unavailable, if it
7191 * jv-valprint.c (java_print_value_fields): Use
7192 value_field_bitfield.
7193 * p-valprint.c (pascal_object_print_value_fields): Use
7194 value_field_bitfield.
7195 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7197 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7199 * value.c (get_internalvar_integer): Also return the int value of
7200 TYPE_CODE_INT INTERNALVAR_VALUE values.
7201 (set_internalvar): Don't special case TYPE_CODE_INT.
7203 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7205 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7206 INTERNALVAR_POINTER.
7208 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7209 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7210 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7212 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7214 * value.h (value_available_contents_eq): Declare.
7215 * value.c (find_first_range_overlap): New function.
7216 (value_available_contents_eq): New function.
7217 * valprint.c (val_print_array_elements): Use
7218 value_available_contents_eq.
7219 * ada-valprint.c (val_print_packed_array_elements): Use
7220 value_available_contents_eq.
7221 * jv-valprint.c (java_value_print): Use
7222 value_available_contents_eq.
7224 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7226 * target.c (target_read_live_memory): New function.
7227 (memory_xfer_live_readonly_partial): New.
7228 (memory_xfer_partial): If reading from a traceframe, fallback to
7229 reading unavailable read-only memory from read-only regions of
7231 * tracepoint.c (disconnect_tracing): Adjust.
7232 (set_current_traceframe): New, factored out from
7233 set_traceframe_number.
7234 (set_traceframe_number): Reimplement to only change the traceframe
7235 number on the GDB side.
7236 (do_restore_current_traceframe_cleanup): Adjust.
7237 (make_cleanup_restore_traceframe_number): New.
7238 (cur_traceframe_number): New global.
7239 (tfile_open): Set cur_traceframe_number to no traceframe.
7240 (set_tfile_traceframe): New function.
7241 (tfile_trace_find): If looking up a traceframe using any method
7242 other than by number, make sure the current tfile traceframe
7243 matches gdb's current traceframe. Update the current tfile
7244 traceframe if the lookup succeeded.
7245 (tfile_fetch_registers, tfile_xfer_partial)
7246 (tfile_get_trace_state_variable_value): Make sure the remote
7247 traceframe matches gdb's current traceframe.
7248 * remote.c (remote_traceframe_number): New global.
7249 (remote_open_1): Set it to -1.
7250 (set_remote_traceframe): New function.
7251 (remote_fetch_registers, remote_store_registers)
7252 (remote_xfer_memory, remote_xfer_partial)
7253 (remote_get_trace_state_variable_value): Make sure the remote
7254 traceframe matches gdb's current traceframe.
7255 (remote_trace_find): If looking up a traceframe using any method
7256 other than by number, make sure the current remote traceframe
7257 matches gdb's current traceframe. Update the current remote
7258 traceframe if the lookup succeeded.
7259 * infrun.c (fetch_inferior_event): Adjust.
7260 * tracepoint.h (set_current_traceframe): Declare.
7261 (get_traceframe_number, set_traceframe_number): Add describing
7264 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7266 Mark pieces of values as unavailable if the corresponding memory
7269 * valops.c: Include tracepoint.h.
7270 (value_fetch_lazy): Use read_value_memory.
7271 (read_value_memory): New.
7272 * value.h (read_value_memory): Declare.
7273 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7274 * exec.c (section_table_available_memory): New function.
7275 * exec.h (section_table_available_memory): Declare.
7277 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7279 * Makefile.in (SFILES): Add memrange.c.
7280 (HFILES_NO_SRCDIR): Add memrange.h.
7281 (COMMON_OBS): Add memrange.o.
7282 * memrange.c: New file.
7283 * memrange.h: New file.
7284 * tracepoint.c: Include memrange.h.
7285 (struct mem_range): Delete.
7286 (mem_range_s): Delete.
7287 (traceframe_available_memory): New function.
7288 * tracepoint.h (traceframe_available_memory): Declare.
7290 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7292 * target.h (struct traceframe_info): Forward declare.
7293 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7294 (struct target_ops) <to_traceframe_info>: New field.
7295 (target_traceframe_info): New.
7296 * target.c (update_current_target): Inherit and default
7298 * remote.c (PACKET_qXfer_traceframe_info): New.
7299 (remote_protocol_features): Register qXfer:traceframe-info:read.
7300 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7301 (remote_traceframe_info): New.
7302 (init_remote_ops): Install it.
7303 (_initialize_remote): Install "set/show remote traceframe-info"
7305 * tracepoint.h (parse_traceframe_info): Declare.
7306 * tracepoint.c (struct mem_range): New.
7307 (mem_range_s): New typedef.
7308 (struct traceframe_info): New.
7309 (traceframe_info): New global.
7310 (free_traceframe_info): New function.
7311 (clear_traceframe_info): New function.
7312 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7314 (build_traceframe_info): New function.
7315 (tfile_traceframe_info): New function.
7316 (init_tfile_ops): Install tfile_traceframe_info.
7317 (traceframe_info_start_memory, free_result): New functions.
7318 (memory_attributes, traceframe_info_elements): New globals.
7319 (parse_traceframe_info, get_traceframe_info): New functions.
7320 * features/traceframe-info.dtd: New file.
7321 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7323 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7325 Base support for <unavailable> value contents.
7327 * value.h (value_bytes_available): Declare.
7328 (mark_value_bytes_unavailable): Declare.
7329 * value.c (struct range): New struct.
7330 (range_s): New typedef.
7331 (ranges_overlap): New function.
7332 (range_lessthan): New function.
7333 (ranges_contain_p): New function.
7334 (struct value) <unavailable>: New field.
7335 (value_bytes_available): New function.
7336 (mark_value_bytes_unavailable): New function.
7337 (require_not_optimized_out): Constify parameter.
7338 (require_available): New function.
7339 (value_contents_all, value_contents): Require all bytes be
7341 (value_free): Free `unavailable'.
7342 (value_copy): Copy `unavailable'.
7343 * valprint.h (val_print_unavailable): Declare.
7344 * valprint.c (valprint_check_validity): Rename `offset' parameter
7345 to `embedded_offset'. If printing a scalar, check whether the
7346 value chunk is available.
7347 (val_print_unavailable): New.
7348 (val_print_scalar_formatted): Check whether the value is
7350 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7351 pretty-printing unavailable values.
7353 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7355 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7356 * c-typeprint.c (c_type_print_args): Update the function comment. New
7357 variable param_type, initialize it. Remove const/volatile qualifiers
7358 for language_cplus and !show_artificial. Use param_type.
7360 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7362 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7363 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7364 * symtab.h (struct symtab) <next>: Comment extension.
7366 2011-02-12 Yao Qi <yao@codesourcery.com>
7368 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7370 2011-02-11 Yao Qi <yao@codesourcery.com>
7372 * common/Makefile.in: Add copyright header.
7374 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7376 * infrun.c (proceed): Move switching out and in of tfind mode from
7378 (fetch_inferior_event): ... to here.
7380 2011-02-11 Yao Qi <yao@codesourcery.com>
7382 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7384 * configure.ac: Add common to sub dir.
7385 * configure: Regenerate.
7387 2011-02-11 Yao Qi <yao@codesourcery.com>
7391 * common/Makefile.in: New.
7392 * common/configure.ac: New.
7393 * common/aclocal.m4: New.
7394 * common/configure: Generate.
7396 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7398 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7399 side of the parenthesis.
7402 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7403 * vec.h (VEC_block_remove): Fix comment.
7405 2011-02-08 Michael Snyder <msnyder@vmware.com>
7407 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7409 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7411 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7412 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7415 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7418 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7420 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7421 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7423 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7425 * dwarf2read.c (read_subroutine_type): Set special calling
7426 convention flag for functions compiled by IBM XL C for OpenCL.
7427 * ppc-sysv-tdep.c: Include "dwarf2.h"
7428 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7430 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7431 IBM OpenCL vector types calling convention.
7432 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7433 (ppc_sysv_abi_broken_return_value): Likewise.
7434 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7435 types calling convention.
7436 (ppc64_sysv_abi_return_value): Likewise.
7437 * spu-tdep.c: Include "dwarf2.h"
7438 (spu_return_value): Implement IBM OpenCL vector types calling
7441 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7443 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7444 correct ABI for AltiVec vector arguments.
7446 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7448 * valprint.c (val_print): Extend comment.
7449 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7450 interface explanation to val_print.
7451 (ada_val_print_array): Adjust comment to current interface.
7452 (print_field_values): Adjust comment to current interface.
7453 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7454 explanation to val_print.
7455 * f-valprint.c (f_val_print): Ditto.
7456 * jv-valprint.c (java_val_print): Ditto.
7457 * m2-valprint.c (m2_val_print): Ditto.
7458 * p-valprint.c (pascal_val_print): Ditto.
7460 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7462 * breakpoint.c (parse_breakpoint_sals): Fix description.
7464 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7465 Oguz Kayral <oguzkayral@gmail.com>
7467 * python/py-inferior.c (python_on_normal_stop): New function.
7468 (python_on_resume): New function.
7469 (python_inferior_exit): New function.
7470 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7471 inferior_exit observers.
7472 * python/py-evtregistry.c: New file.
7473 * python/py-threadevent.c : New file.
7474 * python/py-event.c: New file.
7475 * python/py-evts.c: New file.
7476 * python/py-continueevent.c: New file.
7477 * python/py-bpevent.c: New file.
7478 * python/py-signalevent.c: New file.
7479 * python/py-exetiedevent.c: New file.
7480 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7481 Move struct breakpoint_object from here...
7482 * python/python-internal.h: ... to here.
7483 * python/py-event.h: New file.
7484 * python/py-events.h: New file.
7485 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7486 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7487 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7488 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7489 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7490 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7491 Add build rules for all the above.
7493 2011-02-04 Tom Tromey <tromey@redhat.com>
7495 * dwarf2read.c (dwarf2_section_empty_p): New function.
7496 (dwarf2_read_section): Use dwarf2_section_empty_p.
7497 (dwarf2_section_size): New function.
7498 (dwarf2_get_section_info): Unconditionally read section.
7499 (dwarf2_read_index): Use dwarf2_section_empty_p.
7500 (partial_read_comp_unit_head): Use dwarf2_section_size.
7501 (dwarf2_symbol_mark_computed): Likewise.
7503 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7505 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7507 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7509 * mips-linux-tdep.c: Include xml-syscall.h.
7510 (mips_linux_get_syscall_number): New function.
7511 (mips_linux_init_abi): Add calls to
7512 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7513 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7514 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7515 * syscalls/mips-n32-linux.xml: New file.
7516 * syscalls/mips-n64-linux.xml: New file.
7517 * syscalls/mips-o32-linux.xml: New file.
7519 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7521 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7522 Complain about inverted range entries.
7523 (dwarf2_record_block_ranges): Likewise.
7525 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7528 * breakpoint.c (update_watchpoint): Fix name of the
7529 update_global_location_list function.
7530 (print_one_breakpoint): Fix typo.
7531 (_initialize_breakpoint): Remove extra space in hbreak help
7533 * breakpoint.h (struct bp_location) <length>: Fix field
7536 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7538 * regcache.c (registers_changed_ptid): Don't explictly always
7539 clear `current_regcache'. Only clear current_thread_ptid and
7540 current_thread_arch when PTID matches. Only reinit the frame
7541 cache if PTID matches the current inferior_ptid. Move alloca(0)
7543 (registers_changed): ... here.
7545 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7547 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7548 starts with __stack_chk_guard as stack guard symbol.
7550 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7552 * disasm.c (compare_lines): Handle the end of sequence markers
7553 within the line table to better support disassembling over
7554 compilation unit boundaries.
7556 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7558 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7559 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7560 implementation even if no symbols are available.
7561 (thumb_analyze_prologue): Update call to skip_prologue_function.
7562 (arm_analyze_prologue): Likewise.
7564 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7566 * arm-tdep.c: Include "observer.h".
7567 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7568 (arm_exidx_data_key): New static variable.
7569 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7570 (struct arm_exidx_data): Likewise.
7571 (arm_exidx_data_free): New function.
7572 (arm_compare_exidx_entries): Likewise.
7573 (arm_obj_section_from_vma): Likewise.
7574 (arm_exidx_new_objfile): Likewise.
7575 (arm_find_exidx_entry): Likewise.
7576 (arm_exidx_fill_cache): Likewise.
7577 (arm_exidx_unwind_sniffer): Likewise.
7578 (arm_exidx_unwind): New global variable.
7579 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7580 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7581 observer. Register arm_exidx_data_key as objfile data.
7583 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7585 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7586 due to accessing uninitialized variable. Fix indentation.
7588 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7590 * c-valprint.c (c_value_print): When doing virtual base pointer
7591 adjustment, create a new value with adjusted contents rather than
7592 changing the contents of the value being printed (and getting it
7595 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7597 * xml-support.c (xml_find_attribute): New.
7598 (xinclude_start_include): Use it.
7599 * xml-support.h (xml_find_attribute): Declare.
7600 * memory-map.c (memory_map_start_memory)
7601 (memory_map_start_property): Use xml_find_attribute.
7602 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7604 * remote.c (start_thread): Use xml_find_attribute.
7605 * solib-target.c (library_list_start_segment)
7606 (library_list_start_section, library_list_start_library)
7607 (library_list_start_list): Use xml_find_attribute.
7608 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7609 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7610 (tdesc_start_field): Use xml_find_attribute.
7612 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7614 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7615 (BUILD_OCL_VTYPES): Update.
7617 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7619 * configure.ac: Work around non-GNU sed limitation when computing
7620 python version number.
7621 * configure: Regenerate.
7623 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7625 Fix debug printing of TYPE_INSTANCE.
7626 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7627 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7629 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7631 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7632 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7633 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7634 * ada-operator.inc: Rename the file to ...
7635 * ada-operator.def: ... here, wrap all the entries by macro OP.
7636 * expprint.c (op_name_standard): Remove all the entries. Include
7637 "std-operator.def" instead.
7638 * expression.h (enum exp_opcode): Include "std-operator.def" and
7639 "ada-operator.def". Move all the entries ...
7640 * std-operator.def: ... here, wrap all the entries by macro OP.
7642 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7644 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7645 * breakpoint.c (remove_jit_event_breakpoints): New function.
7646 * jit.c (jit_descriptor_addr): Delete.
7647 (registering_code): Delete.
7648 (clear_int): Delete.
7649 (jit_inferior_data): New variable.
7650 (struct jit_inferior_data): New type.
7651 (get_jit_inferior_data): New function.
7652 (jit_inferior_data_cleanup): New function.
7653 (jit_read_descriptor): Adjust.
7654 (jit_register_code): Adjust.
7655 (jit_breakpoint_re_set_internal): New function; move code here ...
7656 (jit_inferior_init): ... from here.
7657 (jit_breakpoint_re_set): Adjust.
7658 (jit_reset_inferior_data_and_breakpoints): New function.
7659 (jit_inferior_created_observer): Adjust.
7660 (jit_inferior_exit_hook): Adjust.
7661 (jit_executable_changed_observer): New function.
7662 (jit_event_handler): Adjust.
7663 (_initialize_jit): Adjust.
7665 2011-01-31 Michael Snyder <msnyder@vmware.com>
7667 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7670 2011-01-31 Tom Tromey <tromey@redhat.com>
7673 * python/python.c (execute_gdb_command): Call
7674 prevent_dont_repeat.
7675 * top.c (suppress_dont_repeat): New global.
7676 (dont_repeat): Use it.
7677 (prevent_dont_repeat): New function.
7678 * command.h (prevent_dont_repeat): Declare.
7680 2011-01-31 Tom Tromey <tromey@redhat.com>
7682 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7683 * python/py-breakpoint.c (bppy_set_silent): Use
7684 breakpoint_set_silent.
7685 (bppy_set_thread): Use breakpoint_set_thread.
7686 (bppy_set_task): Use breakpoint_set_task.
7687 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7688 (breakpoint_set_task): Declare.
7689 (make_breakpoint_silent): Remove.
7690 * breakpoint.c (breakpoint_set_silent): New function.
7691 (breakpoint_set_thread): Likewise.
7692 (breakpoint_set_task): Likewise.
7693 (make_breakpoint_silent): Remove.
7695 2011-01-31 Tom Tromey <tromey@redhat.com>
7697 * breakpoint.h (user_breakpoint_p): Declare.
7698 * breakpoint.c (user_breakpoint_p): New function.
7699 (breakpoint_1): Use it.
7700 (save_breakpoints): Likewise.
7702 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7704 * configure.ac: Add handling of Python distribution on Windows.
7705 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7706 sysconfig variables are not defined, then do not use them.
7707 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7708 instead. On Windows, return all paths using forward-slashes
7709 rather than backslashes.
7711 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7713 * configure.ac: Remove fallback behavior for building
7714 against Python. Remove tweaking of Python include path.
7715 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7716 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7717 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7718 Always restore CPPFLAGS and LIBS after linking test.
7719 * configure: Regenerated.
7720 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7721 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7722 * python/python-internal.h: Adjust includes of Python .h files.
7724 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7726 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7729 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7731 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7734 2011-01-31 Yao Qi <yao@codesourcery.com>
7736 * arm-linux-nat.c: Update calls to regcache_register_status
7737 instead of regcache_valid_p.
7738 * aix-thread.c: Likewise.
7739 * i386gnu-nat.c: Likewise.
7741 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7744 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7745 touching TYPE_FIELD_ARTIFICIAL.
7747 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7749 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7752 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7754 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7755 selected, don't try iterating over the traceframe's blocks.
7756 (tfile_has_stack): If there's no traceframe selected, then there's
7758 (tfile_has_registers): If there's no traceframe selected, then
7759 there's no registers.
7761 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7763 * target.c (memory_xfer_partial): No need to restore shadows if we
7764 haven't read anything.
7766 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7768 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7769 and val_print_scalar_formatted.
7771 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7773 * tracepoint.c (tfile_read): New.
7774 (tfile_open): Use it.
7775 (tfile_get_traceframe_address): Use it.
7776 (tfile_trace_find): Use it.
7777 (walk_blocks_callback_func): New typedef.
7778 (match_blocktype): New function.
7779 (traceframe_walk_blocks): New function.
7780 (traceframe_find_block_type): New function.
7781 (tfile_fetch_registers, tfile_xfer_partial)
7782 (tfile_get_trace_state_variable_value): Use
7783 traceframe_find_block_type and tfile_read.
7785 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7787 * remote-mips.c: Add internationalization mark ups. Remove
7788 trailing \n from already marked up strings.
7790 2011-01-26 Tom Tromey <tromey@redhat.com>
7792 * python/py-prettyprint.c (print_string_repr): Clear
7793 'addressprint' option when calling val_print_string.
7794 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7795 option when calling val_print_string.
7797 2011-01-26 Tom Tromey <tromey@redhat.com>
7799 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7801 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7803 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7804 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7805 (gdb_py_long_as_ulongest): New defines.
7806 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7807 (gdb_py_int_as_long): Declare.
7808 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7809 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7810 (valpy_long): Add comment.
7811 * python/py-utils.c (get_addr_from_python): Use
7812 gdb_py_long_as_ulongest. Handle overflow properly.
7813 (gdb_py_object_from_longest): New function.
7814 (gdb_py_object_from_ulongest): Likewise.
7815 (gdb_py_int_as_long): Likewise.
7816 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7817 * python/py-symtab.c (salpy_get_pc): Use
7818 gdb_py_long_from_ulongest.
7819 (salpy_get_line): Use PyInt_FromLong.
7820 * python/py-param.c (set_parameter_value): Use
7822 * python/py-lazy-string.c (stpy_get_address): Use
7823 gdb_py_long_from_ulongest.
7824 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7825 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7826 * python/py-breakpoint.c (bppy_set_thread): Use
7828 (bppy_set_task): Likewise.
7829 (bppy_set_ignore_count): Likewise.
7830 (bppy_set_hit_count): Likewise.
7831 * python/py-block.c (blpy_get_start): Use
7832 gdb_py_object_from_ulongest.
7833 (blpy_get_end): Likewise.
7834 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7836 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7839 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7840 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7841 equality test for objfile, initialize addr_low if needed.
7843 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7845 * tui/tui-regs.c (tui_register_format): Remove dead code.
7847 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7849 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7850 instead of print_scalar_formatted.
7851 (print_scalar_formatted): Don't handle 's' format strings here,
7852 and add an assertion that we never see such format here.
7853 * valprint.h (val_print_scalar_formatted): Declare.
7854 * valprint.c (val_print_scalar_formatted): New.
7855 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7856 instead of print_scalar_formatted.
7857 * jv-valprint.c (java_val_print): Ditto.
7858 * p-valprint.c (pascal_val_print): Ditto.
7859 * ada-valprint.c (ada_val_print_1): Ditto.
7860 * f-valprint.c (f_val_print): Ditto.
7861 * infcmd.c (registers_info): Ditto.
7862 * m2-valprint.c (m2_val_print): Ditto.
7864 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7866 * m2-valprint.c (print_unbounded_array): Pass
7867 value_contents_for_printing rather than value_contents, to
7868 m2_print_array_contents. Also pass in the value.
7870 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7872 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7873 (save_gdb_index_command): Switch to .gdb_index version 4.
7875 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7877 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7878 than frame_register, and always pass a valid value to val_print.
7880 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7882 Centralize printing "<optimized out>".
7884 * valprint.h (val_print_optimized_out): Declare.
7885 * cp-valprint.c (cp_print_value_fields): Use
7886 val_print_optimized_out.
7887 * jv-valprint.c (java_print_value_fields): Ditto.
7888 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7889 * printcmd.c (print_formatted): Ditto.
7890 * valprint.c (valprint_check_validity): Ditto.
7891 (value_check_printable): Ditto.
7892 (val_print_optimized_out): New.
7894 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7896 * infcmd.c (default_print_registers_info): Allocate values so to
7897 never pass a NULL value to val_print.
7899 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7901 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7902 boolean. Make sure to always pass a value that matches the
7903 contents buffer to callees. Preserve `address' for following
7905 * value.c (value_contents_for_printing_const): New.
7906 (value_address): Constify value argument.
7907 * value.h (value_contents_for_printing_const): Declare.
7908 (value_address): Constify value argument.
7910 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7912 * regcache.c (struct regcache_descr): Rename
7913 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7914 and sizeof_cooked_register_valid_p to
7915 sizeof_cooked_register_status.
7916 (init_regcache_descr): Adjust.
7917 (struct regcache): Rename register_valid_p field to
7919 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7920 (do_cooked_read): Adjust.
7921 (regcache_valid_p): Rename to ...
7922 (regcache_register_status): ... this. Adjust.
7923 (regcache_invalidate): Adjust.
7924 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7926 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7927 as unavailable, not valid.
7928 (regcache_dump): Adjust.
7929 * regcache.h (enum register_status): New.
7930 (regcache_register_status): Declare.
7931 (regcache_invalidate): Delete declaration.
7932 * corelow.c (get_core_registers): Adjust.
7933 * tracepoint.c (tfile_fetch_registers): Adjust.
7934 * trad-frame.c (REG_VALUE): Rename to ...
7935 (TF_REG_VALUE): ... this.
7936 (REG_UNKNOWN): Rename to ...
7937 (TF_REG_UNKNOWN): ... this.
7938 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7939 * mi/mi-main.c (register_changed_p): Adjust.
7941 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7943 * regcache.c (struct regcache_descr): Remove outdated comment.
7944 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7946 (regcache_xmalloc): Rename to ...
7947 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7948 Allocate the regcache type accordingly.
7949 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7950 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7951 cooked registers, not raw.
7952 (regcache_dup_no_passthrough): Delete.
7953 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7954 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7955 mention obsolete write_register_bytes.
7956 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7958 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7960 Stop remote_read_bytes from handling partial reads itself.
7962 * remote-fileio.c: Include target.h.
7963 (remote_fileio_write_bytes): Delete.
7964 (remote_fileio_func_open, remote_fileio_func_write)
7965 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7967 (remote_fileio_func_stat): Use target_read_memory and
7968 target_write_memory.
7969 (remote_fileio_func_gettimeofday): Use target_write_memory.
7970 (remote_fileio_func_system): Use target_read_memory.
7971 * remote.c (remote_write_bytes): Make it static.
7972 (remote_read_bytes): Don't handle partial reads here.
7973 * remote.h (remote_read_bytes): Delete declaration.
7975 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7977 Simplify XML parsing a bit.
7979 * xml-support.h (gdb_xml_parse_quick): Declare.
7980 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7981 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7983 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7984 gdb_xml_create_parser_and_cleanup_1.
7985 (gdb_xml_parse_quick): New.
7986 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7987 * osdata.c (osdata_parse): Ditto.
7988 * remote.c (remote_threads_info): Ditto.
7989 * solib-target.c (solib_target_parse_libraries): Ditto.
7990 * xml-syscall.c (syscall_parse_xml): Ditto.
7991 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7993 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7995 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7996 with remote-mips.o added to gdb_target_obs.
7997 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7999 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8001 * ada-valprint.c (val_print_packed_array_elements): Pass the
8002 correct struct value to val_print.
8003 (ada_val_print_1): Ditto.
8005 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8007 Don't lose embedded_offset in printing routines throughout.
8009 * valprint.h (val_print_array_elements): Change prototype.
8010 * valprint.c (val_print_array_elements): Add `embedded_offset'
8011 parameter, and adjust to pass it down to val_print, while passing
8012 `valaddr' or `address' unmodified. Take embedded_offset into
8013 account when checking repetitions.
8014 * c-valprint.c (c_val_print): Pass embedded_offset to
8015 val_print_array_elements instead of adjusting `valaddr' and
8017 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8018 embedded_offset to val_print_array_elements instead of adjusting
8020 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8021 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8022 val_print_array_elements and pascal_object_print_value_fields
8023 instead of adjusting `valaddr'.
8024 (pascal_object_print_value_fields): Add `offset' parameter, and
8026 (pascal_object_print_value): Add `offset' parameter, and adjust to
8028 (pascal_object_print_static_field): Use
8029 value_contents_for_printing/value_embedded_offset, rather than
8031 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8032 parameter, and adjust to use it. Use
8033 value_contents_for_printing/value_embedded_offset, rather than
8035 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8036 (ada_val_print_array): Add `offset' parameter, and adjust to use
8038 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8039 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8040 Instead work with offsets. Use
8041 value_contents_for_printing/value_embedded_offset, rather than
8042 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8043 and use value_from_pointer to extract a target pointer, rather
8044 than value_from_longest.
8045 (print_variant_part): Add `offset' parameter. Replace
8046 `outer_valaddr' parameter by a new `outer_offset' parameter.
8047 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8048 (ada_value_print): Use
8049 value_contents_for_printing/value_embedded_offset, rather than
8051 (print_record): Add `offset' parameter, and adjust to pass it
8053 (print_field_values): Add `offset' parameter. Replace
8054 `outer_valaddr' parameter by a new `outer_offset' parameter.
8055 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8056 Use value_contents_for_printing/value_embedded_offset, rather than
8058 * d-valprint.c (dynamic_array_type): Use
8059 value_contents_for_printing/value_embedded_offset, rather than
8061 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8062 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8063 (java_print_value_fields): Take `offset' into account. Don't
8064 re-adjust `valaddr'. Instead pass down adjusted offsets.
8065 (java_val_print): Take `embedded_offset' into account. Pass it to
8066 java_print_value_fields.
8067 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8068 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8069 down adjusted offsets.
8070 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8071 (f_val_print): Take `embedded_offset' into account.
8073 2011-01-21 Joel Brobecker <brobecker@adacore.com>
8075 * inflow.c: Include "gdbcmd.h".
8076 (interactive_mode): New static global, moved here from top.c.
8077 (show_interactive_mode): New function, moved here from top.c.
8078 use gdb_has_a_terminal instead of input_from_terminal_p to
8079 determine the current mode.
8080 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8082 (_initialize_inflow): Add the "set/show interactive-mode"
8083 commands. Moved here from top.c, after having adjusted slightly
8085 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8087 (input_from_terminal_p): Remove handling of "interactive-mode"
8088 setting, moved to infow.c.
8089 (init_main): Remove creation of the "set/show interactive-mode"
8090 commands, moved to inflow.c.
8092 2011-01-19 Joel Brobecker <brobecker@adacore.com>
8094 * NEWS: Add entry for native ia64-hpux support.
8096 2011-01-19 Tom Tromey <tromey@redhat.com>
8099 * thread.c (free_thread): Free 'name'.
8100 (print_thread_info): Emit thread name. Change CLI output.
8101 (thread_name_command): New function.
8102 (do_captured_thread_select): Emit newline.
8103 (_initialize_thread): Register 'thread name' command.
8104 * target.h (struct target_ops) <to_thread_name>: New field.
8105 (target_thread_name): New macro.
8106 * target.c (update_current_target): Handle to_thread_name.
8107 * python/py-infthread.c (thpy_get_name): New function.
8108 (thpy_set_name): Likewise.
8109 (thread_object_getset): Add "name".
8110 * linux-nat.c (linux_nat_thread_name): New function.
8111 (linux_nat_add_target): Set to_thread_name.
8112 * gdbthread.h (struct thread_info) <name>: New field.
8114 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8116 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8117 (ada_val_print_1): Likewise.
8119 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8121 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8122 upper limit address is not greater than the function end address
8123 when the upper limit could not be computed using the debugging
8126 2011-01-17 Tom Tromey <tromey@redhat.com>
8128 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8130 * utils.c: Include gdb_regex.h.
8131 (do_regfree_cleanup): New function.
8132 (make_regfree_cleanup): Likewise.
8133 (get_regcomp_error): Likewise.
8134 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8136 2011-01-17 Tom Tromey <tromey@redhat.com>
8138 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8141 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8143 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8144 for internal variables.
8145 (last_was_structop): New static variable.
8146 (COMPLETE): New token.
8147 (field_exp): New rule to group all '.' suffix handling.
8148 Add mark_struct_expression calls when approriate to be able
8149 to correctly find fields for completion.
8150 (yylex): Adapt to handle field completion and set INTVAR when
8153 2011-01-14 Yao Qi <yao@codesourcery.com>
8155 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8156 save_reggroup, restore_reggroup and all_reggroup.
8158 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8160 * ada-valprint. (ada_printchar): Use the correct type length
8161 in call to ada_emit_char.
8162 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8164 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8166 * solib-som.h (hpux_major_release): Declare variable here.
8167 * solib-som.c: Remove <sys/utsname.h> header.
8168 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8169 (hpux_major_release): Make global, change default value to
8170 DEFAULT_HPUX_MAJOR_RELEASE.
8171 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8172 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8173 Add "solib-som.h" header.
8174 (set_hpux_major_release): New function.
8175 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8177 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8179 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8181 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8183 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8184 new-line at end of warning message.
8185 (ia64_hpux_store_register): Remove trailing new-line at end of
8187 * ia64-hpux-tdep.c: Rephrase comment.
8188 * solib-ia64-hpux.c (struct dld_info): Change type of field
8189 dld_flags from "long long" to ULONGEST.
8191 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8193 * target.h (deprecated_child_ops): Delete declaration.
8194 * target.c (deprecated_child_ops): Delete definition.
8196 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8198 * Makefile.in (hpux-thread.o): Delete rule.
8199 * configure.ac: Don't check for HPUX DCE threads support.
8200 * configure, config.in: Regenerate.
8201 * hppa-hpux-nat.c (child_suppress_run): Delete.
8202 (hppa_hpux_child_can_run): Delete.
8203 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8204 * hpux-thread.c: Delete.
8206 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8208 * hpux-thread.c (hpux_pid_to_str): Delete.
8210 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8212 * ada-valprint.c (ada_emit_char): Remove strange code.
8213 Check that c is <= UCHAR_MAX before passing it to isascii.
8214 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8216 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8218 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8219 to the case where instream is stdin.
8221 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8223 * ia64-tdep.h (struct regcache): Forward declare.
8224 (struct ia64_infcall_ops): New struct type.
8225 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8227 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8228 Renames ia64_find_global_pointer.
8229 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8230 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8231 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8233 (ia64_infcall_ops): New static global constant.
8234 (ia64_gdbarch_init): Set tdep->infcall_ops.
8235 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8236 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8237 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8238 (ia64_hpux_dummy_code): New static global constant.
8239 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8240 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8241 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8243 (ia64_hpux_infcall_ops): New static global constant.
8244 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8245 for inferior function calls to work properly on ia64-hpux.
8247 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8249 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8250 * ia64-tdep.h (struct frame_info): forward declaration.
8251 (struct gdbarch_tdep): Add field size_of_register_frame.
8252 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8253 to determine the size of the register frame.
8254 (ia64_size_of_register_frame): New function.
8255 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8256 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8257 (IA64_HPUX_UREG_REASON): New macro.
8258 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8260 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8261 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8262 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8265 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8267 Add support for ia64-hpux.
8268 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8269 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8271 * configure.host: Add handling for ia64-hpux hosts. Add associated
8273 * configure.tgt: Add handling for ia64-hpux targets.
8274 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8275 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8276 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8278 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8280 [ttrace] Compute thread list immediately after attach.
8281 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8283 (inf_ttrace_attach): Use it.
8285 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8287 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8288 if we could not determine the frame's function address. Instead,
8289 use the frame's PC, and then continue.
8291 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8293 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8294 not already defined.
8296 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8298 * ia64-tdep.c (ia64_struct_type_p): New function.
8299 (ia64_extract_return_value): Handle integral values that are
8300 less than 8 bytes long.
8301 (ia64_push_dummy_call): Likewise.
8303 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8305 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8306 floatformat_ia64_ext.
8307 (floatformat_ia64_ext_big): New static const.
8308 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8310 2011-01-12 Tom Tromey <tromey@redhat.com>
8312 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8314 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8315 (mi_cmd_thread_list_ids): Likewise.
8316 (mi_cmd_data_list_changed_registers): Likewise.
8317 (mi_cmd_data_list_register_values): Likewise.
8318 (mi_cmd_data_write_register_values): Likewise.
8319 (mi_cmd_data_evaluate_expression): Likewise.
8320 (mi_cmd_data_read_memory): Likewise.
8321 (mi_cmd_data_read_memory_bytes): Likewise.
8322 (mi_cmd_data_write_memory): Likewise.
8323 (mi_cmd_enable_timings): Likewise.
8324 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8325 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8326 (mi_cmd_var_delete): Likewise.
8327 (mi_cmd_var_set_format): Likewise.
8328 (mi_cmd_var_show_format): Likewise.
8329 (mi_cmd_var_info_num_children): Likewise.
8330 (mi_cmd_var_list_children): Likewise.
8331 (mi_cmd_var_info_type): Likewise.
8332 (mi_cmd_var_info_expression): Likewise.
8333 (mi_cmd_var_show_attributes): Likewise.
8334 (mi_cmd_var_assign): Likewise.
8335 (mi_cmd_var_update): Likewise.
8336 (mi_cmd_enable_pretty_printing): Likewise.
8337 (mi_cmd_var_set_update_range): Likewise.
8338 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8340 (mi_cmd_target_file_put): Likewise.
8341 (mi_cmd_target_file_delete): Likewise.
8342 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8344 (mi_cmd_stack_info_depth): Likewise.
8345 (mi_cmd_stack_list_locals): Likewise.
8346 (mi_cmd_stack_list_args): Likewise.
8347 (mi_cmd_stack_select_frame): Likewise.
8348 (mi_cmd_stack_select_frame): Likewise.
8349 (mi_cmd_stack_info_frame): Likewise.
8350 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8352 (mi_cmd_file_list_exec_source_files): Likewise.
8353 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8354 (mi_cmd_env_cd): Likewise.
8355 (mi_cmd_env_path): Likewise.
8356 (mi_cmd_env_dir): Likewise.
8357 (mi_cmd_inferior_tty_show): Likewise.
8358 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8359 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8360 (mi_cmd_break_watch): Likewise.
8362 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8364 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8365 (ppc_linux_insert_hw_breakpoint): Likewise.
8366 (ppc_linux_remove_hw_breakpoint): Likewise.
8367 (ppc_linux_insert_watchpoint): Likewise.
8369 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8370 Jan Kratochvil <jan.kratochvil@redhat.com>
8372 PR fortran/11104 and DWARF unbound arrays detection.
8373 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8374 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8375 unspecified upper bound.
8376 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8377 variables array_size_array, tmp_type and offset_item. New variable
8378 array. Remove call to f77_get_upperbound. New variables array_type
8379 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8380 the final call to deprecated_set_value_type.
8382 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8384 Make value allocations more lazy.
8385 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8386 instead of allocate_value and set_value_lazy when possible.
8387 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8388 instead of allocate_value and set_value_lazy.
8389 * findvar.c (value_of_register_lazy): Likewise.
8390 (read_var_value): Remove V preallocation, call just check_typedef in
8391 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8392 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8393 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8394 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8395 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8396 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8397 the end, remove set_value_lazy there.
8398 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8399 instead of allocate_value and set_value_lazy when possible.
8400 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8401 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8402 of allocate_value and set_value_lazy.
8403 (value_from_contents_and_address): Use allocate_value_lazy instead of
8404 allocate_value and set_value_lazy when possible.
8406 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8408 * disasm.c (dump_insns): Support dumping opcodes for MI.
8409 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8410 dumping of instruction opcodes.
8412 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8414 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8417 2011-01-11 Tom Tromey <tromey@redhat.com>
8419 * thread.c (do_captured_thread_select): Emit newline before
8422 2011-01-11 Michael Snyder <msnyder@vmware.com>
8424 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8425 * score-tdep.c: Ditto.
8426 * score-tdep.h: Ditto.
8427 * ser-base.c: Ditto.
8428 * ser-go32.c: Ditto.
8431 * ser-mingw.c: Ditto.
8432 * ser-pipe.c: Ditto.
8434 * ser-unix.c: Ditto.
8435 * sh64-tdep.c: Ditto.
8436 * shnbsd-nat.c: Ditto.
8440 * solib-darwin.c: Ditto.
8441 * solib-frv.c: Ditto.
8443 * solib-irix.c: Ditto.
8444 * solib-osf.c: Ditto.
8445 * solib-pa64.c: Ditto.
8446 * solib-som.c: Ditto.
8447 * solib-spu.c: Ditto.
8448 * solib-sunos.c: Ditto.
8449 * solib-svr4.c: Ditto.
8451 * sol-thread.c: Ditto.
8455 * sparc64-linux-tdep.c: Ditto.
8456 * sparc64-tdep.c: Ditto.
8457 * sparc-linux-nat.c: Ditto.
8458 * sparc-linux-tdep.c: Ditto.
8459 * sparc-sol2-nat.c: Ditto.
8460 * sparc-sol2-tdep.c: Ditto.
8461 * sparc-tdep.c: Ditto.
8462 * sparc-tdep.h: Ditto.
8463 * spu-tdep.c: Ditto.
8464 * stabsread.c: Ditto.
8465 * stabsread.h: Ditto.
8473 * target-descriptions.c: Ditto.
8474 * target-descriptions.h: Ditto.
8476 * target-memory.c: Ditto.
8477 * terminal.h: Ditto.
8480 * tracepoint.c: Ditto.
8481 * tracepoint.h: Ditto.
8482 * trad-frame.h: Ditto.
8483 * typeprint.c: Ditto.
8485 2011-01-11 Michael Snyder <msnyder@vmware.com>
8487 * ui-file.c: Comment cleanup, mostly periods and spaces.
8492 * v850-tdep.c: Ditto.
8493 * valarith.c: Ditto.
8495 * valprint.c: Ditto.
8496 * valprint.h: Ditto.
8501 * vax-tdep.c: Ditto.
8505 * windows-nat.c: Ditto.
8506 * windows-tdep.c: Ditto.
8507 * xcoffread.c: Ditto.
8508 * xcoffsolib.c: Ditto.
8509 * xml-support.c: Ditto.
8510 * xstormy16-tdep.c: Ditto.
8511 * xtensa-tdep.c: Ditto.
8512 * xtensa-tdep.h: Ditto.
8514 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8516 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8517 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8519 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8520 Thiago Jung Bauermann <bauerman@br.ibm.com>
8522 Implement support for PowerPC BookE ranged watchpoints.
8524 (struct breakpoint_ops) <resources_needed>: New method.
8525 Initialize to NULL in all existing breakpoint_ops instances.
8526 (struct breakpoint) <exact>: New field.
8527 (target_exact_watchpoints): Declare external global.
8528 * breakpoint.c (target_exact_watchpoints): New global flag.
8529 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8530 b->enable_state to bp_enabled before calling
8531 hw_watchpoint_used_count.
8532 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8533 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8535 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8536 if the watchpoint is exact.
8537 (resources_needed_watchpoint): New function.
8538 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8539 (watch_command_1): Set b->exact if the user asked for an exact
8540 watchpoint and one can be set.
8541 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8542 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8543 the user asks for an exact watchpoint and one can be set. Return
8544 number of needed debug registers to watch the expression.
8545 * gdbtypes.c (is_scalar_type): New function, based on
8546 valprint.c:scalar_type_p.
8547 (is_scalar_type_recursive): New function.
8548 * gdbtypes.h (is_scalar_type_recursive): Declare.
8549 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8550 handle regions when ranged watchpoints are available.
8551 (create_watchpoint_request): New function.
8552 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8553 create_watchpoint_request.
8554 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8555 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8556 `set powerpc' and `show powerpc' commands.
8557 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8558 Mention documentation comment in the target macro.
8559 (target_region_ok_for_hw_watchpoint): Document return value.
8561 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8563 * breakpoint.c (update_watchpoint): Decide on using a software or
8564 hardware watchpoint after the bp_locations are created.
8566 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8568 Convert hardware watchpoints to use breakpoint_ops.
8569 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8570 <insert_location>: ... this. Return int instead of void.
8571 Accept pointer to struct bp_location instead of pointer to
8572 struct breakpoint. Adapt all implementations.
8573 (breakpoint_ops) <remove>: Rename to...
8574 <remove_location>: ... this. Accept pointer to struct bp_location
8575 instead of pointer to struct breakpoint. Adapt all implementations.
8576 * breakpoint.c (insert_catchpoint): Delete function.
8577 (insert_bp_location): Call the watchpoint or catchpoint's
8578 breakpoint_ops.insert method.
8579 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8580 breakpoint_ops.remove method.
8581 (insert_watchpoint, remove_watchpoint): New functions.
8582 (watchpoint_breakpoint_ops): New structure.
8583 (watch_command_1): Initialize the OPS field.
8584 * inf-child.c (inf_child_insert_fork_catchpoint)
8585 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8586 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8587 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8589 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8590 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8591 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8592 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8593 * target.c (update_current_target): Change default implementation of
8594 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8595 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8596 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8597 to_set_syscall_catchpoint to return_one.
8598 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8599 (debug_to_insert_exec_catchpoint): Report return value.
8600 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8601 (to_insert_exec_catchpoint): Change declaration to return int instead
8604 2011-01-11 Michael Snyder <msnyder@vmware.com>
8606 * arm-tdep.c: Internationalization.
8609 * fork-child.c: Ditto.
8610 * nto-procfs.c: Ditto.
8611 * ppc-sysv-tdep.c: Ditto.
8613 * remote-mips.c: Ditto.
8615 * rs6000-nat.c: Ditto.
8616 * rs6000-tdep.c: Ditto.
8620 * xml-support.c: Ditto.
8621 * mi/mi-cmd-break.c: Ditto.
8622 * mi/mi-cmd-var.c: Ditto.
8623 * mi/mi-interp.c: Ditto.
8624 * mi/mi-main.c: Ditto.
8626 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8628 * remote-sim.c (gdbsim_store_register): Update API to
8629 sim_store_register to check more error conditions.
8631 2011-01-10 Michael Snyder <msnyder@vmware.com>
8633 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8634 * nto-tdep.c: Ditto.
8635 * nto-tdep.h: Ditto.
8636 * objc-exp.y: Ditto.
8637 * objc-lang.c: Ditto.
8638 * objfiles.c: Ditto.
8639 * objfiles.h: Ditto.
8640 * observer.c: Ditto.
8641 * opencl-lang.c: Ditto.
8644 * parser-defs.h: Ditto.
8647 * posix-hdep.c: Ditto.
8648 * ppcbug-rom.c: Ditto.
8649 * ppc-linux-nat.c: Ditto.
8650 * ppc-linux-tdep.c: Ditto.
8651 * ppc-linux-tdep.h: Ditto.
8652 * ppcnbsd-tdep.c: Ditto.
8653 * ppcobsd-tdep.c: Ditto.
8654 * ppcobsd-tdep.h: Ditto.
8655 * ppc-sysv-tdep.c: Ditto.
8656 * ppc-tdep.h: Ditto.
8657 * printcmd.c: Ditto.
8658 * proc-abi.c: Ditto.
8659 * proc-flags.c: Ditto.
8661 * proc-utils.h: Ditto.
8662 * progspace.h: Ditto.
8663 * prologue-value.c: Ditto.
8664 * prologue-value.h: Ditto.
8665 * psympriv.h: Ditto.
8667 * p-typeprint.c: Ditto.
8668 * p-valprint.c: Ditto.
8669 * ravenscar-sparc-thread.c: Ditto.
8670 * ravenscar-thread.c: Ditto.
8671 * ravenscar-thread.h: Ditto.
8673 * regcache.c: Ditto.
8674 * regcache.h: Ditto.
8676 * remote-fileio.c: Ditto.
8677 * remote-fileio.h: Ditto.
8679 * remote-m32r-sdi.c: Ditto.
8680 * remote-mips.c: Ditto.
8681 * remote-sim.c: Ditto.
8682 * rs6000-aix-tdep.c: Ditto.
8683 * rs6000-nat.c: Ditto.
8684 * rs6000-tdep.c: Ditto.
8686 2011-01-10 Michael Snyder <msnyder@vmware.com>
8688 * charset.c (validate): Internationalization.
8689 * coffread.c (read_one_sym): Ditto.
8690 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8691 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8692 * inflow.c (new_tty): Ditto.
8693 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8694 * m32c-tdep.c (m32c_return_value): Ditto.
8695 * mep-tdep.c (mep_store_return_value): Ditto.
8696 * score-tdep.c (score7_fetch_insn): Ditto.
8697 * ser-mingw.c (pipe_windows_open): Ditto.
8698 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8699 * spu-tdep.c (spu_register_type): Ditto.
8700 * tracepoint.c (trace_find_command): Ditto.
8701 * valarith.c (value_pos): Ditto.
8703 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8705 * ada-valprint.c (printstr): Minor comment reformatting.
8707 2011-01-08 Michael Snyder <msnyder@vmware.com>
8709 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8712 2011-01-08 Michael Snyder <msnyder@vmware.com>
8714 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8715 * hppa-hpux-tdep.c: Ditto.
8716 * hppa-linux-nat.c: Ditto.
8717 * hppa-linux-tdep.c: Ditto.
8718 * hppanbsd-tdep.c: Ditto.
8719 * hppa-tdep.c: Ditto.
8720 * hppa-tdep.h: Ditto.
8721 * hpux-thread.c: Ditto.
8722 * i386-cygwin-tdep.c: Ditto.
8723 * i386-darwin-nat.c: Ditto.
8724 * i386gnu-nat.c: Ditto.
8725 * i386-linux-nat.c: Ditto.
8726 * i386-linux-tdep.c: Ditto.
8727 * i386-nat.c: Ditto.
8728 * i386-nat.h: Ditto.
8729 * i386nbsd-tdep.c: Ditto.
8730 * i386-sol2-nat.c: Ditto.
8731 * i386-stub.c: Ditto.
8732 * i386-tdep.c: Ditto.
8733 * i386-tdep.h: Ditto.
8734 * i387-tdep.c: Ditto.
8735 * ia64-linux-nat.c: Ditto.
8736 * ia64-linux-tdep.c: Ditto.
8737 * ia64-tdep.c: Ditto.
8741 * inferior.c: Ditto.
8742 * inferior.h: Ditto.
8748 * iq2000-tdep.c: Ditto.
8749 * irix5-nat.c: Ditto.
8755 * jv-typeprint.c: Ditto.
8756 * jv-valprint.c: Ditto.
8757 * language.c: Ditto.
8758 * language.h: Ditto.
8759 * linespec.c: Ditto.
8760 * linux-fork.c: Ditto.
8761 * linux-nat.c: Ditto.
8762 * linux-thread-db.c: Ditto.
8763 * lm32-tdep.c: Ditto.
8765 2011-01-08 Michael Snyder <msnyder@vmware.com>
8767 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8769 * m2-typeprint.c: Ditto.
8770 * m2-valprint.c: Ditto.
8771 * m32c-tdep.c: Ditto.
8772 * m32r-linux-nat.c: Ditto.
8773 * m32r-rom.c: Ditto.
8774 * m32r-tdep.c: Ditto.
8775 * m32r-tdep.h: Ditto.
8776 * m68hc11-tdep.c: Ditto.
8777 * m58klinux-nat.c: Ditto.
8778 * m68k-tdep.c: Ditto.
8779 * m88k-tdep.c: Ditto.
8780 * m88k-tdep.h: Ditto.
8781 * machoread.c: Ditto.
8782 * macrocmd.c: Ditto.
8783 * macroexp.c: Ditto.
8784 * macrotab.c: Ditto.
8787 * mdebugread.c: Ditto.
8788 * mdebugread.h: Ditto.
8791 * memory-map.h: Ditto.
8792 * mep-tdep.c: Ditto.
8793 * microblaze-rom.c: Ditto.
8794 * microblaze-tdep.c: Ditto.
8796 * mips-irix-tdep.c: Ditto.
8797 * mips-linux-nat.c: Ditto.
8798 * mips-linux-tdep.c: Ditto.
8799 * mips-linux-tdep.h: Ditto.
8800 * mipsnbsd-nat.c: Ditto.
8801 * mipsnbsd-tdep.c: Ditto.
8802 * mipsread.c: Ditto.
8803 * mips-tdep.c: Ditto.
8804 * mips-tdep.h: Ditto.
8805 * mn10300-linux-tdep.c: Ditto.
8806 * mn10300-tdep.c: Ditto.
8807 * mn10300-tdep.h: Ditto.
8810 * moxie-tdep.c: Ditto.
8811 * moxie-tdep.h: Ditto.
8814 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8816 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8818 2011-01-08 Robert Millan <rmh@gnu.org>
8820 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8822 2011-01-07 Michael Snyder <msnyder@vmware.com>
8824 * charset.c (_initialize_charset): Fix typo in string.
8826 2011-01-07 Michael Snyder <msnyder@vmware.com>
8828 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8830 * tui/tui-layout.c (tui_set_layout_for_display_command):
8831 Split line so that operator goes to beginning of line.
8832 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8833 assignment out of if statement.
8835 2011-01-07 Michael Snyder <msnyder@vmware.com>
8837 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8838 * ada-lang.h: Ditto.
8839 * ada-tasks.c: Ditto.
8840 * ada-valprint.c: Ditto.
8841 * aix-threads.c: Ditto.
8842 * alpha-linux-nat.c: Ditto.
8843 * alpha-linux-tdep.c: Ditto.
8844 * alpha-mdebug-tdep.c: Ditto.
8845 * alpha-nat.c: Ditto.
8846 * alpha-osf1-tdep.c: Ditto.
8847 * alpha-tdep.c: Ditto.
8848 * alphabsd-nat.c: Ditto.
8849 * alphabsd-tdep.c: Ditto.
8850 * amd64-darwin-tdep.c: Ditto.
8851 * amd64-linux-nat.c: Ditto.
8852 * amd64-linux-tdep.c: Ditto.
8853 * amd64-sol2-tdep.c: Ditto.
8854 * amd64-tdep.c: Ditto.
8855 * amd64-fbsd-tdep.c: Ditto.
8856 * amd64-nbsd-tdep.c: Ditto.
8857 * amd64-obsd-tdep.c: Ditto.
8858 * amd64-linux-nat.c: Ditto.
8859 * amd64-linux-tdep.c: Ditto.
8860 * arm-tdep.c: Ditto.
8861 * arm-tdep.h: Ditto.
8862 * armnbsd-nat.c: Ditto.
8863 * avr-tdep.c: Ditto.
8864 * bfin-tdep.c: Ditto.
8866 * c-typeprintc: Ditto.
8867 * c-valprint.c: Ditto.
8868 * coff-pe-read.h: Ditto.
8869 * coffreead.c: Ditto.
8870 * cris-tdep.c: Ditto.
8872 * darwin-nat-info.c: Ditto.
8873 * darwin-nat.c: Ditto.
8874 * dbug-rom.c: Ditto.
8878 * dec-thread.c: Ditto.
8880 * demangle.c: Ditto.
8881 * dicos-tdep.c: Ditto.
8882 * dictionary.c: Ditto.
8883 * dictionary.h: Ditto.
8884 * dink32-rom.c: Ditto.
8886 * doublest.c: Ditto.
8888 * dummy-frame.c: Ditto.
8889 * dwarf2-frame.c: Ditto.
8890 * dwarf2expr.c: Ditto.
8891 * dwarf2loc.c: Ditto.
8892 * dwarf2read.c: Ditto.
8896 * event-top.h: Ditto.
8897 * exceptions.c: Ditto.
8898 * exceptions.h: Ditto.
8900 * expprint.c: Ditto.
8901 * expression.h: Ditto.
8905 * f-typeprint.c: Ditto.
8906 * f-valprint.c: Ditto.
8907 * fbsd-nat.c: Ditto.
8909 * fork-child.c: Ditto.
8912 * frv-linux-tdep.c: Ditto.
8913 * frv-tdep.c: Ditto.
8915 * gdb-stabs.h: Ditto.
8916 * gdb_assert.h: Ditto.
8917 * gdb_string.h: Ditto.
8918 * gdb_thread_db.h: Ditto.
8919 * gdb_wait.h: Ditto.
8920 * gdbarch.sh: Ditto.
8922 * gdbthread.h: Ditto.
8923 * gdbtypes.c: Ditto.
8924 * gdbtypes.h: Ditto.
8927 * gnu-v2-abi.c: Ditto.
8928 * gnu-v3-abi.c: Ditto.
8929 * go32-nat.c: Ditto.
8930 * gdbarch.c: Regenerate.
8931 * gdbarch.h: Regenerate.
8933 2011-01-07 Michael Snyder <msnyder@vmware.com>
8935 * ax-gdb.c: Adjust some long output strings.
8936 * breakpoint.c: Ditto.
8941 * linux-nat.c: Ditto.
8942 * solib-pa64.c: Ditto.
8943 * solib-som.c: Ditto.
8945 2011-01-06 Tom Tromey <tromey@redhat.com>
8949 * python/python.c (GdbMethods): Add "newest_frame" method.
8950 * python/python-internal.h (gdbpy_newest_frame): Declare.
8951 * python/py-frame.c (gdbpy_newest_frame): New function.
8953 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8955 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8956 * jit.c (jit_debug): New variable.
8957 (show_jit_debug): New function.
8958 (struct target_buffer): Use ULONGEST.
8959 (bfd_open_from_target_memory): Likewise.
8960 (jit_register_code, jit_inferior_init): Add debug output.
8961 (_initialize_jit): Register "debug jit" command.
8963 2011-01-06 Tom Tromey <tromey@redhat.com>
8965 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8966 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8969 2011-01-06 Tom Tromey <tromey@redhat.com>
8971 * python/py-frame.c (frapy_block): Use get_frame_block.
8973 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8975 Do not stop on SIGPRIO signals by default
8976 * infrun.c (_initialize_infrun): Unset signal_stop and
8977 signal_print for TARGET_SIGNAL_PRIO.
8979 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8981 * ada-tasks.c: Fix style violation in comment.
8983 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8985 * linespec.c (decode_compound, find_method): Remove trailing \n
8986 at end of error string.
8987 * solib-irix.c (irix_current_sos): Likewise.
8988 * varobj.c (uninstall_variable): Likewise.
8990 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8992 * copyright.py: New script.
8993 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8994 Launch emacs without exec'ing. Call copyright.py afterwards.
8996 2011-01-05 Michael Snyder <msnyder@vmware.com>
8998 * addrmap.c: Shorten lines of >= 80 columns.
8999 * arch-utils.c: Ditto.
9000 * arch-utils.h: Ditto.
9002 * ax-general.c: Ditto.
9004 * blockframe.c: Ditto.
9005 * breakpoint.c: Ditto.
9006 * buildsym.c: Ditto.
9008 * c-typeprint.c: Ditto.
9010 * coffread.c: Ditto.
9014 * cp-namespace.c: Ditto.
9015 * cp-support.c: Ditto.
9016 * dbug-rom.c: Ditto.
9021 * dictionary.c: Ditto.
9023 * doublest.c: Ditto.
9024 * dwarf2-frame.c: Ditto.
9025 * dwarf2expr.c: Ditto.
9026 * dwarf2loc.c: Ditto.
9027 * dwarf2read.c: Ditto.
9030 * event-loop.c: Ditto.
9031 * event-loop.h: Ditto.
9032 * exceptions.h: Ditto.
9034 * expprint.c: Ditto.
9035 * expression.h: Ditto.
9037 * f-valprint.c: Ditto.
9039 * frame-base.c: Ditto.
9040 * frame-unwind.c: Ditto.
9041 * frame-unwind.h: Ditto.
9045 * gdb-stabs.h: Ditto.
9046 * gdb_assert.h: Ditto.
9047 * gdb_dirent.h: Ditto.
9048 * gdb_obstack.h: Ditto.
9050 * gdbtypes.c: Ditto.
9051 * gdbtypes.h: Ditto.
9052 * inf-ttrace.c: Ditto.
9057 * inline-frame.h: Ditto.
9058 * language.c: Ditto.
9059 * language.h: Ditto.
9060 * libunwind-frame.c: Ditto.
9061 * libunwind-frame.h: Ditto.
9062 * linespec.c: Ditto.
9063 * linux-nat.c: Ditto.
9064 * linux-nat.h: Ditto.
9065 * linux-thread-db.c: Ditto.
9066 * machoread.c: Ditto.
9067 * macroexp.c: Ditto.
9068 * macrotab.c: Ditto.
9071 * mdebugread.c: Ditto.
9076 * objfiles.c: Ditto.
9077 * objfiles.h: Ditto.
9079 * p-typeprint.c: Ditto.
9080 * p-valprint.c: Ditto.
9082 * printcmd.c: Ditto.
9083 * proc-events.c: Ditto.
9085 * progspace.c: Ditto.
9086 * progspace.h: Ditto.
9087 * psympriv.h: Ditto.
9090 * regcache.c: Ditto.
9091 * regcache.h: Ditto.
9092 * remote-fileio.c: Ditto.
9094 * ser-mingw.c: Ditto.
9096 * ser-unix.c: Ditto.
9099 * solib-frv.c: Ditto.
9100 * solib-irix.c: Ditto.
9101 * solib-osf.c: Ditto.
9102 * solib-pa64.c: Ditto.
9103 * solib-som.c: Ditto.
9104 * solib-sunos.c: Ditto.
9105 * solib-svr4.c: Ditto.
9106 * solib-target.c: Ditto.
9110 * stabsread.c: Ditto.
9111 * stabsread.c: Ditto.
9114 * symfile-mem.c: Ditto.
9120 * target-descriptions.c: Ditto.
9121 * target-memory.c: Ditto.
9124 * terminal.h: Ditto.
9127 * tracepoint.c: Ditto.
9128 * tracepoint.h: Ditto.
9132 * user-regs.c: Ditto.
9133 * user-regs.h: Ditto.
9135 * valarith.c: Ditto.
9137 * valprint.c: Ditto.
9138 * valprint.h: Ditto.
9143 * xcoffread.c: Ditto.
9144 * xcoffsolib.c: Ditto.
9145 * xcoffsolib.h: Ditto.
9146 * xml-syscall.c: Ditto.
9147 * xml-tdesc.c: Ditto.
9149 2011-01-05 Michael Snyder <msnyder@vmware.com>
9151 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9152 * cli/cli-decode.c: Ditto.
9153 * cli/cli-dump.c: Ditto.
9154 * cli/cli-logging.c: Ditto.
9155 * cli/cli-script.c: Ditto.
9156 * cli/cli-setshow.c: Ditto.
9157 * common/signals.c: Ditto.
9158 * mi/mi-cmd-break.c: Ditto.
9159 * mi/mi-cmd-disas.c: Ditto.
9160 * mi/mi-cmd-stack.c: Ditto.
9161 * mi/mi-cmd-var.c: Ditto.
9162 * mi/mi-cmds.c: Ditto.
9163 * mi/mi-common.h: Ditto.
9164 * mi/mi-console.c: Ditto.
9165 * mi/mi-interp.c: Ditto.
9166 * mi/mi-main.c: Ditto.
9167 * osf-share/cma_attr.c: Ditto.
9168 * osf-share/cma_deb_core.h: Ditto.
9169 * osf-share/cma_debug_client.h: Ditto.
9170 * osf-share/cma_handle.h: Ditto.
9171 * osf-share/cma_mutex.h: Ditto.
9172 * osf-share/cma_stack_int.h: Ditto.
9173 * osf-share/cma_tcb_defs.h: Ditto.
9174 * python/py-auto-load.c: Ditto.
9175 * python/py-breakpoint.c: Ditto.
9176 * python/py-cmd.c: Ditto.
9177 * python/py-frame.c: Ditto.
9178 * python/py-objfile.c: Ditto.
9179 * python/py-param.c: Ditto.
9180 * python/py-progspace.c: Ditto.
9181 * python/py-symbol.c: Ditto.
9182 * python/py-value.c: Ditto.
9183 * python/python-internal.h: Ditto.
9184 * python/python.c: Ditto.
9185 * tui/tui-data.c: Ditto.
9186 * tui/tui-disasm.c: Ditto.
9187 * tui/tui-hooks.c: Ditto.
9188 * tui/tui-io.c: Ditto.
9189 * tui/tui-layout.c: Ditto.
9190 * tui/tui-regs.c: Ditto.
9191 * tui/tui-source.c: Ditto.
9192 * tui/tui-stack.c: Ditto.
9193 * tui/tui-win.c: Ditto.
9194 * tui/tui-windata.c: Ditto.
9195 * tui/tui-winsource.c: Ditto.
9197 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9199 * configure.ac, gdb.1: Copyright year update.
9201 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9203 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9204 this_pc_in_block, morestack_msym and morestack_name. Check for
9205 "__morestack" minimal symbol there.
9207 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9209 * symfile.c (find_sym_fns): Add call to dont_repeat.
9211 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9213 Copyright year update in most files (performed by copyright.sh).
9215 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9217 * top.c (print_gdb_version): Update copyright year in version output.
9219 For older changes see ChangeLog-2010.
9225 version-control: never