2011-03-01 Michael Snyder <msnyder@vmware.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2011-03-01  Michael Snyder  <msnyder@vmware.com>
2
3         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4
5         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6         with xmalloc.
7
8         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9         which shadows function parameter.
10
11         * tracepoint.c (create_tsv_from_upload): Superfluous call
12         to xstrdup.  Callee already calls xstrdup.
13
14         * linespec.c (decode_line_1): Remove unnecessary null check.
15
16         * tracepoint.c (scope_info): Fix mem leak, remove underused
17         variable.
18
19         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
20         superfluous null check.
21
22         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23         (value_of_builtin_frame_fp_reg): Ditto.
24
25         * event-top.c (display_gdb_prompt): Remove superfluous null check.
26
27         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
28         be null.
29
30         * linespec.c (decode_line_1): Check for null before dereference.
31
32         * reverse.c (record_restore): Move null-check to before pointer
33         dereference.
34
35         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
36
37         * objc-lang.c (selectors_info): Add explanitory comment.
38         (classes_info): Ditto.
39
40 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
41
42         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
43         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
44         versions of the trampoline.  Handle Thumb vs. ARM addresses.
45         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
46         (arm_linux_init_abi): Install it.
47         * arm-tdep.c (arm_psr_thumb_bit): Make global.
48         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
49
50 2011-02-28  Michael Snyder  <msnyder@vmware.com>
51
52         * ui-out.c (ui_out_field_core_addr): Make local char buffer
53         a little bigger, to avoid possibility of an overflow.
54
55         * breakpoint.c (breakpoint_adjustment_warning): Make local char
56         buffers a little bigger, to avoid possibility of an overflow.
57
58         * coffread.c (coff_getfilename): Add check to avoid overflow.
59
60         * objc-lang.c (selectors_info): Add a small safety margin to 
61         avoid overflow.
62         (classes_info): Error out on too long REGEXP.
63
64         * infrun.c (handle_inferior_event): Remove unused function call.
65
66         * fork-child.c (fork_inferior): Remove ifdef'd code and
67         unused variable.
68
69         * linux-thread-db.c (attach_thread): Discard unused value.
70
71         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
72
73         * remote.c (remote_get_noisy_reply): Discard unused value.
74         (remote_vcont_resume): Ditto.
75         (remote_stop_ns): Ditto.
76
77         * linespec.c (decode_objc): Delete unused variable.
78
79         * tui/tui-regs.c (tui_register_format): Delete unused variable.
80
81         * dwarf2read.c (add_partial_symbol): Discard unused values.
82         (read_base_type): Delete unused variable.
83
84         * dbxread.c (read_dbx_symtab): Discard unused value.
85
86         * eval.c (evaluate_subexp_standard): Delete unused variable,
87         and discard unused values.
88
89         * infcmd.c (_initialize_infcmd): Discard unused values.
90
91         * stabsread.c (rs6000_builtin_type): Missing break statement.
92
93         * dbxread.c (process_one_symbol): Discard unused value.
94
95         * coffread.c (coff_end_symtab): Delete unused variable.
96
97         * dwarf2read.c (dw2_get_file_names): Discard unused value.
98         (dwarf2_add_typedef): Delete unused variable.
99         (read_namespace): Ditto.
100         (dwarf_decode_macros): Ditto.
101
102         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
103
104         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
105
106         * p-valprint.c (pascal_val_print): Discard unused value.
107
108         * utils.c (nquery): Call va_end before return;
109         (yquery): Ditto.
110         (query): Ditto.
111
112         * proc-service.c (ps_plog): Call va_end before return.
113
114 2011-02-28  Tom Tromey  <tromey@redhat.com>
115
116         * python/python.c (gdbpy_value_cst): New global.
117         (_initialize_python): Initialize it.
118         * python/python-internal.h (gdbpy_value_cst): Declare.
119         * python/py-value.c (convert_value_from_python): Use
120         gdbpy_value_cst.
121
122 2011-02-28  Michael Snyder  <msnyder@vmware.com>
123
124         * python/py-cmd.c (cmdpy_init): Fix memory leak.
125
126         * breakpoint.c (catch_syscall_completer): Free malloced list.
127
128         * jv-lang.c (java_primitive_type_from_name): Add missing break.
129
130         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
131         (lval_func_check_synthetic_pointer): Ditto.
132         (lval_func_free_closure): Fix use-after-free.
133
134 2011-02-28  Tom Tromey  <tromey@redhat.com>
135
136         * psymtab.c (expand_partial_symbol_tables): Use
137         ALL_OBJFILE_PSYMTABS.
138
139 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
140
141         * objc-lang.c (selectors_info): Error on too long REGEXP.
142
143 2011-02-28  Michael Snyder  <msnyder@vmware.com>
144
145         * python/py-param.c (set_parameter_value): Add missing
146         break statement.
147
148         * linux-record.c (record_linux_system_call): Add missing
149         break statement.
150
151 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
152
153         * breakpoint.c (print_one_breakpoint_location): Remove unused
154         argument PRINT_ADDRESS_BITS.  Update callers.
155         (print_one_breakpoint): Likewise.
156
157 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
158
159         * breakpoint.c (wrap_indent_at_field): New function.
160         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
161         Allocate ui_stream locally instead of using STB argument.
162         (print_one_breakpoint_location): Update call.
163         * ui-out.c (ui_out_query_field): New function.
164         * ui-out.h (ui_out_query_field): Add prototype.
165
166 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
167
168         From Michael Snyder  <msnyder@vmware.com>
169         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
170
171 2011-02-27  Michael Snyder  <msnyder@vmware.com>
172
173         * objc-lang.c (selectors_info): Prevent string overrun.
174
175         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
176         error in strncpy.
177
178         * symtab.c (rbreak_command): Move variable 'file_name' to 
179         outer scope.
180
181         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
182         param with a local variable of the same name.
183
184 2011-02-27  Michael Snyder  <msnyder@vmware.com>
185
186         * value.c (value_from_history_ref): New function.
187         * value.h (value_from_history_ref): Export.
188         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
189         to parse value history references.
190         * cli/cli-utils.h (get_number_trailer): Update comment.
191
192 2011-02-27  Michael Snyder  <msnyder@vmware.com>
193
194         * inferior.c (detach_inferior_command): Use get_number_or_range.
195         (kill_inferior_command): Ditto.
196         (remove_inferior_command): Ditto.
197         (initialize_inferiors): Make command names plural.
198         Update help strings.
199
200 2011-02-27  Michael Snyder  <msnyder@vmware.com>
201
202         * darwin-nat-info.c: Fix comment typo.
203         * dwarf2expr.h: Ditto.
204         * fbsd-nat.c: Ditto.
205         * fbsd-nat.h: Ditto.
206         * frame-unwind.h: Ditto.
207         * frame.h: Ditto.
208         * hppa-hpux-tdep.c: Ditto.
209         * i386-linux-nat.c: Ditto.
210         * linux-nat.c: Ditto.
211         * nbsd-nat.c: Ditto.
212         * nbsd-nat.h: Ditto.
213         * ppc-linux-tdep.c: Ditto.
214         * serial.c: Ditto.
215         * ui-file.h: Ditto.
216         * tui/tui-winsource.c: Ditto.
217
218 2011-02-26  Michael Snyder  <msnyder@vmware.com>
219
220         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
221
222         * maint.c (maintenance_do_deprecate): Plug a memory leak.
223
224         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
225         with a local variable of the same name.
226
227         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
228         param with a local variable of the same name.
229         (i387_supply_xsave): Ditto.
230
231         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
232         that it does not shadow a function parameter.
233
234         * i386-nat.c (i386_length_and_rw_bits): Document that case
235         statement is meant to fall through.
236
237         * expprint.c (dump_subexp_body_standard): Document that case
238         statement is meant to fall through.
239
240         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
241         dead if statement.  Condition can't be false.
242
243 2011-02-25  Michael Snyder  <msnyder@vmware.com>
244
245         * arm-tdep.c: Fix typos in comments.
246         * bsd-uthread.c: Ditto.
247         * completer.c: Ditto.
248         * corelow.c: Ditto.
249         * cp-namespace.c: Ditto.
250         * cp-support.c: Ditto.
251         * cris-tdep.c: Ditto.
252         * dbxread.c: Ditto.
253         * dwarf2read.c: Ditto.
254         * frame.h: Ditto.
255         * gdbtypes.h: Ditto.
256         * inferior.h: Ditto.
257         * mdebugread.c: Ditto.
258         * mips-tdep.c: Ditto.
259         * ppc-linux-nat.c: Ditto.
260         * ppc-linux-tdep.c: Ditto.
261         * printcmd.c: Ditto.
262         * sol-thread.c: Ditto.
263         * solib-frv.c: Ditto.
264         * solist.h: Ditto.
265         * sparc64-tdep.c: Ditto.
266         * spu-tdep.c: Ditto.
267         * stabsread.c: Ditto.
268         * symfile.c: Ditto.
269         * valops.c: Ditto.
270         * varobj.c: Ditto.
271         * vax-nat.c: Ditto.
272         * python/py-block.c: Ditto.
273         * python/py-symbol.c: Ditto.
274         * python/py-symtab.c: Ditto.
275         * python/py-value.c: Ditto.
276         * tui/tui-win.c: Ditto.
277
278 2011-02-25  Michael Snyder  <msnyder@vmware.com>
279
280         * inferior.c (print_inferior): Accept a string instead of an int
281         for requested_inferiors, and use get_number_or_range to parse it.
282         (info_inferiors_command): Pass args string to print_inferior.
283         (initialize_inferiors): Change help string for info inferiors.
284         * inferior.h (print_inferior): Export prototype change.
285
286 2011-02-25  Tom Tromey  <tromey@redhat.com>
287
288         * common/ax.def (invalid2): Set to 0x31.
289
290 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
291
292         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
293         L and plongest.
294         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
295         use L and plongest.
296         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
297
298 2011-02-24  Michael Snyder  <msnyder@vmware.com>
299
300         * Makefile.in (clean): Make clean should remove generated files
301         observer.h and observer.inc.
302
303 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
304
305         Revert the following patch (not approved yet):
306         2011-02-21  Hui Zhu  <teawater@gmail.com>
307         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
308         * ax-gdb.c (gen_printf_expr_callback): New function.
309         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
310         * ax-general.c (ax_memcpy): New function.
311         (ax_print): Handle "printf".
312         (ax_reqs): Ditto.
313         * ax.h (ax_memcpy): Forward declare.
314         * common/ax.def (invalid2): Removed.
315         (printf): New entry.
316         * printcmd.c (printcmd.h): New include.
317         (string_printf): New function.
318         (ui_printf): Removed.
319         (printf_command): Remove static.  Call string_printf.
320         (eval_command): Call string_printf.
321         * printcmd.h: New file.
322         * tracepoint.c (validate_actionline,
323         encode_actions_1): handle printf_command.
324
325 2011-02-23  Tom Tromey  <tromey@redhat.com>
326
327         * ax-general.c (ax_pick): Add missing newline.
328
329 2011-02-23  Michael Snyder  <msnyder@vmware.com>
330
331         * breakpoint.c (breakpoint_1): Change first argument from an int
332         to a char pointer, so that the function now accepts a list of
333         breakpoints rather than just one.  Use new function 
334         'number_is_in_list' to implement.
335         (breakpoints_info): Pass char * instead of int to breakpoint_1.
336         (watchpoints_info): Ditto.
337         (tracepoints_info): Ditto.
338         (maintenance_info_breakpoints): Ditto.
339         (_initialize_breakpoint): Update help strings to reflect the fact
340         that these functions can now take more than one argument.
341         * cli/cli-utils.c (number_is_in_list): New function.
342         * cli/cli-utils.h (number_is_in_list): Export.
343
344 2011-02-23  Michael Snyder  <msnyder@vmware.com>
345
346         * memattr.c (mem_enable_command): Use get_number_or_range.
347         (mem_disable_command): Ditto.
348         (mem_delete_command): Ditto.
349         (_initialize_mem): Tweak usage message to reflect multiple
350         arguments.
351
352 2011-02-22  Doug Evans  <dje@google.com>
353
354         Add gdb.lookup_global_symbol python function.
355         * NEWS: Add entry.
356         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
357         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
358         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
359
360 2011-02-22  Tom Tromey  <tromey@redhat.com>
361
362         * language.c (language_class_name_from_physname): Rename
363         'curr_language' argument to 'lang'; use in body.
364
365 2011-02-22  Michael Snyder  <msnyder@vmware.com>
366
367         * cli/cli-utils.c (number_is_in_list): Check for zero return.
368
369 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
370
371         * frame-unwind.h: Fix comment to mention the this frame, not the
372         next.
373
374 2011-02-22  Tom Tromey  <tromey@redhat.com>
375
376         * symfile.c (auto_solib_limit): Remove.
377         * symfile.h (auto_solib_limit): Remove.
378
379 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
380
381         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
382
383 2011-02-21  Michael Snyder  <msnyder@vmware.com>
384
385         * gdbthread.h (print_thread_info): Change prototype.
386         * thread.c (print_thread_info): Accept char* instead of int for
387         requested_threads argument.  Use new function number_is_in_list
388         to determine which threads to list.
389         (info_threads_command): Pass char* to print_thread_info.
390         * cli/cli-utils.c (number_is_in_list): New function.
391         * cli/cli-utils.h (number_is_in_list): Export.
392         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to 
393         print_thread_info.
394         (print_one_inferior): Ditto.
395         (mi_cmd_list_thread_groups): Ditto.
396
397 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
398
399         * common/Makefile.in (CFLAGS): New.
400         (COMPILE): Add $(CFLAGS).
401
402 2011-02-21  Tom Tromey  <tromey@redhat.com>
403
404         * breakpoint.c (catch_syscall_command_1): Fix typo.
405
406 2011-02-21  Tom Tromey  <tromey@redhat.com>
407
408         * reverse.c: Include cli-utils.h.
409         * printcmd.c: Include cli-utils.h.
410         (string_printf): Use skip_spaces.
411         * cli/cli-utils.h: New file.
412         * cli/cli-utils.c: New file.
413         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
414         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
415         * breakpoint.h (get_number, get_number_or_range): Move to
416         cli-utils.h.
417         * breakpoint.c: Include cli-utils.h.
418         (get_number_trailer, get_number, get_number_or_range)
419         (ep_skip_leading_whitespace): Move to cli-utils.c.
420         (create_breakpoint_sal, find_condition_and_thread)
421         (decode_static_tracepoint_spec, watch_command_1)
422         (watch_maybe_just_location, ep_parse_optional_if_clause)
423         (catch_fork_command_1, catch_exec_command_1)
424         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
425         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
426         (SUBDIR_CLI_SRCS): Add cli-utils.c.
427         (HFILES_NO_SRCDIR): Add cli-utils.h.
428         (cli-utils.o): New target.
429
430 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
431
432         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
433         before calling discard_all_inferiors.
434
435 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
436
437         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
438         (struct builtin_opencl_type): Remove.
439         (builtin_opencl_type): Change return type to "struct type **".
440         (lookup_opencl_vector_type): Update caller.
441         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
442         (build_opencl_types): Install plain array of "struct type *"
443         instead of "struct builtin_opencl_type".
444
445 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
446             Ulrich Weigand  <uweigand@de.ibm.com>
447
448         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
449         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
450         (struct arm_linux_hwbp_cap): New type.
451         (arm_linux_get_hwbp_cap): New function.
452         (arm_linux_get_hw_breakpoint_count): Likewise.
453         (arm_linux_get_hw_watchpoint_count): Likewise.
454         (arm_linux_can_use_hw_breakpoint): Likewise.
455         (arm_hwbp_type): New type.
456         (arm_hwbp_control_t): Likewise.
457         (struct arm_linux_hw_breakpoint): Likewise.
458         (struct arm_linux_thread_points): Likewise.
459         (arm_threads): New global variable.
460         (arm_linux_find_breakpoints_by_tid): New function.
461         (arm_hwbp_control_initialize): Likewise.
462         (arm_hwbp_control_is_enabled): Likewise.
463         (arm_hwbp_control_disable): Likewise.
464         (arm_linux_hw_breakpoint_initialize): Likewise.
465         (arm_linux_get_hwbp_type): Likewise.
466         (arm_linux_hw_watchpoint_initialize): Likewise.
467         (arm_linux_hw_breakpoint_equal): Likewise.
468         (arm_linux_insert_hw_breakpoint1): Likewise.
469         (arm_linux_remove_hw_breakpoint1): Likewise.
470         (arm_linux_insert_hw_breakpoint): Likewise.
471         (arm_linux_remove_hw_breakpoint): Likewise.
472         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
473         (arm_linux_insert_watchpoint): Likewise.
474         (arm_linux_remove_watchpoint): Likewise.
475         (arm_linux_stopped_data_address): Likewise.
476         (arm_linux_stopped_by_watchpoint): Likewise.
477         (arm_linux_watchpoint_addr_within_range): Likewise.
478         (arm_linux_new_thread): Likewise.
479         (arm_linux_thread_exit): Likewise.
480         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
481         related target callbacks.  Register arm_linux_new_thread and
482         arm_linux_thread_exit.
483         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
484         * arm-tdep.c (arm_pc_is_thumb): Make global.
485         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
486
487 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
488
489         * breakpoint.c (update_watchpoint): Do not attempt to recreate
490         per-frame locations while within a function epilogue.
491
492 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
493
494         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
495         to GNU coding standards.
496
497 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
498
499         Allow use of mingw native on Windows 95 OS.
500         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
501         (ser_windows_close): Only call CancelIo if function exists.
502         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
503         to check for existence of CancelIo function in kernel32 DLL.
504
505 2011-02-21  Hui Zhu  <teawater@gmail.com>
506
507         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
508         * ax-gdb.c (gen_printf_expr_callback): New function.
509         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
510         * ax-general.c (ax_memcpy): New function.
511         (ax_print): Handle "printf".
512         (ax_reqs): Ditto.
513         * ax.h (ax_memcpy): Forward declare.
514         * common/ax.def (invalid2): Removed.
515         (printf): New entry.
516         * printcmd.c (printcmd.h): New include.
517         (string_printf): New function.
518         (ui_printf): Removed.
519         (printf_command): Remove static.  Call string_printf.
520         (eval_command): Call string_printf.
521         * printcmd.h: New file.
522         * tracepoint.c (validate_actionline,
523         encode_actions_1): handle printf_command.
524
525 2011-02-19  Michael Snyder  <msnyder@vmware.com>
526
527         * reverse.c (delete_one_bookmark): Argument is now bookmark
528         id rather than pointer to bookmark struct.
529         (delete_bookmark_command): Use get_number_or_range.
530         (goto_bookmark_command): Parse with get_number instead of strtoul.
531         (bookmark_1): New function.  Print info for one bookmark.
532         (bookmarks_info): Use get_number_or_range and bookmark_1.
533
534 2011-02-18  Michael Snyder  <msnyder@vmware.com>
535
536         * thread.c (info_threads_command): Re-implement using 
537         get_number_or_range.
538         (thread_apply_command): Ditto.
539
540 2011-02-18  Tom Tromey  <tromey@redhat.com>
541
542         * common/ax.def: New file.
543         * ax.h (enum agent_op): Use ax.def.
544         * ax-general.c (aop_map): Use ax.def.
545
546 2011-02-18  Tom Tromey  <tromey@redhat.com>
547
548         * ax-general.c (aop_map): Add pick and rot.
549         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
550         <DW_OP_rot>: Implement.
551         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
552         (ax_pick): Declare.
553         * ax-general.c (ax_pick): New function.
554
555 2011-02-18  Tom Tromey  <tromey@redhat.com>
556
557         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
558
559 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
560             Tom Tromey  <tromey@redhat.com>
561
562         * cp-support.c (make_symbol_overload_list_namespace): Do not call
563         make_symbol_overload_list_block with NULL BLOCK.
564         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
565
566 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
567
568         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
569         * breakpoint.h (get_number_or_range): Declare.
570         * printcmd.c (ALL_DISPLAYS): Declare.
571         (delete_display): Reimplement taking a display pointer.
572         (undisplay_command): Accept a range of displays to delete, using
573         get_number_or_range.
574
575 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
576
577         * c-valprint.c (c_val_print): Add embedded_offset to address
578         for arrays of unspecified length.
579         * p-valprint.c (pascal_val_print): Likewise.
580
581 2011-02-18  Yao Qi  <yao@codesourcery.com>
582
583         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
584         (arm_process_displaced_insn): .. here. Remove parameter INSN.
585         (thumb_process_displaced_insn): New.
586         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
587         call to arm_process_displaced_insn.
588         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
589
590 2011-02-17  Tom Tromey  <tromey@redhat.com>
591
592         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
593         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
594         compile_dwarf_to_ax.  No longer static.  Call
595         dwarf2_compile_cfa_to_ax.
596         (locexpr_tracepoint_var_ref): Update.
597         (loclist_tracepoint_var_ref): Update.
598         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
599         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
600         argument; add 'gdbarch' and 'pc'.
601         (dwarf2_compile_cfa_to_ax): New function.
602         (dwarf2_frame_cache): Update.
603
604 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
605
606         * ada-lang.c (ada_type_of_array): Fix the size of the array
607         in the case of an unconstrained packed array.
608
609 2011-02-17  Yao Qi  <yao@codesourcery.com>
610
611         * common/Makefile.in: Add more targets for make.
612
613 2011-02-16  Tom Tromey  <tromey@redhat.com>
614
615         * dwarf2loc.c (unimplemented): Fix typo.
616
617 2011-02-16  Tom Tromey  <tromey@redhat.com>
618
619         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
620         (compile_dwarf_to_ax) <default>: Use unimplemented.
621         <DW_OP_deref>: Update.
622         (disassemble_dwarf_expression): Update.
623         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
624         (decode_locdesc): Update.
625         * dwarf2expr.h (dwarf_stack_op_name): Update.
626
627 2011-02-16  Tom Tromey  <tromey@redhat.com>
628
629         * ax.h (struct aop_map) <name>: Now const.
630
631 2011-02-16  Tom Tromey  <tromey@redhat.com>
632
633         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
634         than axs_rvalue.
635
636 2011-02-16  Yao Qi  <yao@codesourcery.com>
637
638         * infrun.c (get_displaced_step_closure_by_addr): New.
639         * inferior.h: Declare it.
640         * arm-tdep.c: (arm_pc_is_thumb): Call
641         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
642         returns non-NULL.
643
644 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
645             Jan Kratochvil  <jan.kratochvil@redhat.com>
646
647         gdb/
648         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
649
650 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
651             Jan Kratochvil  <jan.kratochvil@redhat.com>
652
653         * value.c (value_contents_copy_raw): Extend describing comment.
654         Assert that the destination contents we're overwriting are wholly
655         available.
656         (value_contents_copy): Extend describing comment.
657
658 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
659             Jan Kratochvil  <jan.kratochvil@redhat.com>
660
661         * value.c (value_available_contents_eq): Remove redundant local
662         variables.  Fix available contents comparision.
663         * value.h (value_available_contents_eq): Extend describing
664         comment.
665
666 2011-02-16  Yao Qi  <yao@codesourcery.com>
667
668         * thread.c (info_threads_command): Add missing i18n markup and remove
669         trailing newline.
670
671 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
672
673         * breakpoint.c (longjmp_names): New variable.
674         (struct breakpoint_objfile_data): New type.
675         (breakpoint_objfile_key): New variable.
676         (msym_not_found): New variable.
677         (msym_not_found_p): New predicate.
678         (get_breakpoint_objfile_data): New function.
679         (create_overlay_event_breakpoint): Check per-objfile cache for
680         symbols first.
681         (create_longjmp_master_breakpoint): Likewise.
682         (create_std_terminate_master_breakpoint): Likewise.
683         (create_exception_master_breakpoint): Likewise.
684         (_initialize_breakpoint): Register per-objfile data key.
685
686 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
687
688         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
689         parameter value.
690         (create_longjmp_master_breakpoint): Loop over longjmp names.
691         (create_std_terminate_master_breakpoint): Const-propagate parameter
692         value.
693         (update_breakpoints_after_exec): Adjust.
694         (breakpoint_re_set): Adjust.
695
696 2011-02-15  Michael Snyder  <msnyder@vmware.com>
697
698         * thread.c (info_threads_command): Process arg as thread id,
699         or list of thread ids.
700         (thread_find_command): New command.
701         (_initialize_thread): Document argument for info threads.
702         Document 'thread find' command.
703         * NEWS: Document new command "thread find".
704
705 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
706
707         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
708         * aclocal.m4: Regenerated with aclocal-1.11.1.
709         * common/configure: Regenerate with autoconf-2.64.
710
711 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
712
713         * opencl-lang.c (build_opencl_types): Set the size of the built-in
714         bool data type to a size of one byte.
715
716 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
717             Jan Kratochvil  <jan.kratochvil@redhat.com>
718
719         * target.c (memory_xfer_live_readonly_partial): Document where to
720         look for interface description.
721
722 2011-02-15  Yao Qi  <yao@codesourcery.com>
723
724         PR tdep/12352
725         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
726         order to store PC value on stack instead of text section.
727
728 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
729
730         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
731         the EFP register set size.
732         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
733         data from the VMX register.
734         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
735         and write data from/to the VMX register.
736
737 2011-02-14  Michael Snyder  <msnyder@vmware.com>
738
739         * command.h (enum command_class): New class 'no_set_class', for
740         "show" commands without a corresponding "set" command.
741         * value.c (_initialize_values): Use 'no_set_class' for "show values".
742         * copying.c (_initialize_copying): Ditto for "show copying" and
743         "show warranty".
744         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
745         "show version".
746         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
747         which there is no corresponding "set" command (eg. "show copying").
748
749 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
750             Jan Kratochvil  <jan.kratochvil@redhat.com>
751
752         * exec.c (section_table_available_memory): Change `len' parameter
753         type to ULONGEST.
754         * exec.h (section_table_available_memory): Ditto.
755         * value.h (read_value_memory): Rename the `offset' parameter to
756         `embedded_offset'.
757
758 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
759             Jan Kratochvil  <jan.kratochvil@redhat.com>
760
761         * memrange.c (compare_mem_ranges): Mention sort order in
762         describing comment.
763         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
764         * tracepoint.c (traceframe_available_memory): Extend comment to
765         mention what happens to RESULT when the target does not support
766         the query.
767
768 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
769             Jan Kratochvil  <jan.kratochvil@redhat.com>
770
771         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
772         range.
773
774 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
775
776         * value.c (value_bits_valid, value_bits_synthetic_pointer):
777         No longer handle NULL values.
778
779 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
780
781         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
782         * value.c: Include "exceptions.h".
783         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
784         generic error.
785         * cp-abi.c: Include gdb_assert.h.
786         (baseclass_offset): Add `embedded_offset' and `val' parameters.
787         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
788         errors.
789         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
790         parameters.  No longer returns -1 on error.
791         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
792         `val' parameters.
793         * cp-valprint.c: Include exceptions.h.
794         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
795         the baseclass_offset.  Handle unavailable base classes.  Use
796         val_print_invalid_address.
797         * p-valprint.c: Include exceptions.h.
798         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
799         when fetching the baseclass_offset.  No longer expect
800         baseclass_offset returning -1.  Handle unavailable base classes.
801         Use val_print_invalid_address.
802         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
803         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
804         `embedded_offset' and `val' parameters.  Adjust.
805         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
806         parameter, and change its type to gdb_byte pointer.  Add
807         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
808         baseclass_offset returning -1.
809         (value_dynamic_cast): Use value_contents_for_printing rather than
810         value_contents.  Adjust.
811         (search_struct_field): No longer expect baseclass_offset returning
812         -1.
813         (search_struct_method): If reading memory from the target is
814         necessary, wrap it in a new value to pass to baseclass_offset.  No
815         longer expect baseclass_offset returning -1.
816         (find_method_list): No longer expect baseclass_offset returning
817         -1.  Use value_contents_for_printing rather than value_contents.
818         * valprint.c (val_print_invalid_address): New function.
819         * valprint.h (val_print_invalid_address): Declare.
820         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
821         and `val' parameters.  No longer expect baseclass_offset returning
822         -1.  Adjust.
823         * gnu-v2-abi.c: Include "exceptions.h".
824         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
825         parameters.  Handle unavailable memory.  Recurse through
826         gnuv2_baseclass_offset directly, rather than through
827         baseclass_offset.  No longer returns -1 on not found, instead
828         throw an error.
829         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
830         `val' parameters.  Adjust.
831
832 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
833
834         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
835         almost but not quite adjacent.
836
837 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
838
839         * value.h (value_entirely_available): Declare.
840         * value.c (value_entirely_available): New function.
841         * c-valprint.c (c_value_print): Don't try fetching the pointer's
842         real type if the pointer is unavailable.
843
844 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
845
846         * valops.c (value_repeat): Use read_value_memory instead of
847         read_memory.
848
849 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
850
851         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
852         * value.c (value_contents_copy_raw, value_contents_copy): New
853         functions.
854         (value_primitive_field): Use value_contents_copy_raw instead of
855         memcpy.
856         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
857         memcpy.
858         (value_array, value_slice): Ditto.
859         * valarith.c (value_subscripted_rvalue): Use
860         value_contents_copy_raw instead of memcpy.
861
862 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
863
864         <unavailable> references.
865
866         * valops.c (get_value_at): Use value_from_contents_and_address,
867         avoiding read_memory.
868
869 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
870
871         * c-valprint.c (c_val_print): Print a string with unavailable
872         contents as an array.
873
874 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
875
876         * value.h (unpack_bits_as_long): Delete declaration.
877         (unpack_value_bits_as_long): Declare.
878         (unpack_value_field_as_long): Declare.
879         (value_field_bitfield): Declare.
880         * value.c (unpack_bits_as_long): Rename to...
881         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
882         value parameters.  Return the extracted result in a new output
883         parameter.  If the value contents are unavailable, return false,
884         otherwise return true.
885         (unpack_value_bits_as_long): New.
886         (unpack_field_as_long): Rename to...
887         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
888         Add embedded_offset and value parameters.  Return the extracted
889         result in a new output parameter. If the value contents are
890         unavailable, return false, otherwise return true.
891         (unpack_value_field_as_long): New.
892         (unpack_field_as_long_1): New.
893         (unpack_field_as_long): Reimplement as wrapper around
894         unpack_value_field_as_long_1.
895         (value_field_bitfield): New function.
896         * valops.c (value_fetch_lazy): When fetching a bitfield, use
897         unpack_value_bits_as_long.  Mark the value as unavailable, if it
898         is unavailable.
899         * jv-valprint.c (java_print_value_fields): Use
900         value_field_bitfield.
901         * p-valprint.c (pascal_object_print_value_fields): Use
902         value_field_bitfield.
903         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
904
905 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
906
907         * value.c (get_internalvar_integer): Also return the int value of
908         TYPE_CODE_INT INTERNALVAR_VALUE values.
909         (set_internalvar): Don't special case TYPE_CODE_INT.
910
911 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
912
913         * value.c (struct internalvar) <enum internalvar_kind>: Remove
914         INTERNALVAR_POINTER.
915         <pointer>: Delete.
916         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
917         (set_internalvar): Remove special TYPE_CODE_PTR handling.
918         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
919
920 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
921
922         * value.h (value_available_contents_eq): Declare.
923         * value.c (find_first_range_overlap): New function.
924         (value_available_contents_eq): New function.
925         * valprint.c (val_print_array_elements): Use
926         value_available_contents_eq.
927         * ada-valprint.c (val_print_packed_array_elements): Use
928         value_available_contents_eq.
929         * jv-valprint.c (java_value_print): Use
930         value_available_contents_eq.
931
932 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
933
934         * target.c (target_read_live_memory): New function.
935         (memory_xfer_live_readonly_partial): New.
936         (memory_xfer_partial): If reading from a traceframe, fallback to
937         reading unavailable read-only memory from read-only regions of
938         live target memory.
939         * tracepoint.c (disconnect_tracing): Adjust.
940         (set_current_traceframe): New, factored out from
941         set_traceframe_number.
942         (set_traceframe_number): Reimplement to only change the traceframe
943         number on the GDB side.
944         (do_restore_current_traceframe_cleanup): Adjust.
945         (make_cleanup_restore_traceframe_number): New.
946         (cur_traceframe_number): New global.
947         (tfile_open): Set cur_traceframe_number to no traceframe.
948         (set_tfile_traceframe): New function.
949         (tfile_trace_find): If looking up a traceframe using any method
950         other than by number, make sure the current tfile traceframe
951         matches gdb's current traceframe.  Update the current tfile
952         traceframe if the lookup succeeded.
953         (tfile_fetch_registers, tfile_xfer_partial)
954         (tfile_get_trace_state_variable_value): Make sure the remote
955         traceframe matches gdb's current traceframe.
956         * remote.c (remote_traceframe_number): New global.
957         (remote_open_1): Set it to -1.
958         (set_remote_traceframe): New function.
959         (remote_fetch_registers, remote_store_registers)
960         (remote_xfer_memory, remote_xfer_partial)
961         (remote_get_trace_state_variable_value): Make sure the remote
962         traceframe matches gdb's current traceframe.
963         (remote_trace_find): If looking up a traceframe using any method
964         other than by number, make sure the current remote traceframe
965         matches gdb's current traceframe.  Update the current remote
966         traceframe if the lookup succeeded.
967         * infrun.c (fetch_inferior_event): Adjust.
968         * tracepoint.h (set_current_traceframe): Declare.
969         (get_traceframe_number, set_traceframe_number): Add describing
970         comments.
971
972 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
973
974         Mark pieces of values as unavailable if the corresponding memory
975         is unavailable.
976
977         * valops.c: Include tracepoint.h.
978         (value_fetch_lazy): Use read_value_memory.
979         (read_value_memory): New.
980         * value.h (read_value_memory): Declare.
981         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
982         * exec.c (section_table_available_memory): New function.
983         * exec.h (section_table_available_memory): Declare.
984
985 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
986
987         * Makefile.in (SFILES): Add memrange.c.
988         (HFILES_NO_SRCDIR): Add memrange.h.
989         (COMMON_OBS): Add memrange.o.
990         * memrange.c: New file.
991         * memrange.h: New file.
992         * tracepoint.c: Include memrange.h.
993         (struct mem_range): Delete.
994         (mem_range_s): Delete.
995         (traceframe_available_memory): New function.
996         * tracepoint.h (traceframe_available_memory): Declare.
997
998 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
999
1000         * target.h (struct traceframe_info): Forward declare.
1001         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
1002         (struct target_ops) <to_traceframe_info>: New field.
1003         (target_traceframe_info): New.
1004         * target.c (update_current_target): Inherit and default
1005         to_traceframe_info.
1006         * remote.c (PACKET_qXfer_traceframe_info): New.
1007         (remote_protocol_features): Register qXfer:traceframe-info:read.
1008         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
1009         (remote_traceframe_info): New.
1010         (init_remote_ops): Install it.
1011         (_initialize_remote): Install "set/show remote traceframe-info"
1012         commands.
1013         * tracepoint.h (parse_traceframe_info): Declare.
1014         * tracepoint.c (struct mem_range): New.
1015         (mem_range_s): New typedef.
1016         (struct traceframe_info): New.
1017         (traceframe_info): New global.
1018         (free_traceframe_info): New function.
1019         (clear_traceframe_info): New function.
1020         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
1021         info.
1022         (build_traceframe_info): New function.
1023         (tfile_traceframe_info): New function.
1024         (init_tfile_ops): Install tfile_traceframe_info.
1025         (traceframe_info_start_memory, free_result): New functions.
1026         (memory_attributes, traceframe_info_elements): New globals.
1027         (parse_traceframe_info, get_traceframe_info): New functions.
1028         * features/traceframe-info.dtd: New file.
1029         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
1030
1031 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
1032
1033         Base support for <unavailable> value contents.
1034
1035         * value.h (value_bytes_available): Declare.
1036         (mark_value_bytes_unavailable): Declare.
1037         * value.c (struct range): New struct.
1038         (range_s): New typedef.
1039         (ranges_overlap): New function.
1040         (range_lessthan): New function.
1041         (ranges_contain_p): New function.
1042         (struct value) <unavailable>: New field.
1043         (value_bytes_available): New function.
1044         (mark_value_bytes_unavailable): New function.
1045         (require_not_optimized_out): Constify parameter.
1046         (require_available): New function.
1047         (value_contents_all, value_contents): Require all bytes be
1048         available.
1049         (value_free): Free `unavailable'.
1050         (value_copy): Copy `unavailable'.
1051         * valprint.h (val_print_unavailable): Declare.
1052         * valprint.c (valprint_check_validity): Rename `offset' parameter
1053         to `embedded_offset'.  If printing a scalar, check whether the
1054         value chunk is available.
1055         (val_print_unavailable): New.
1056         (val_print_scalar_formatted): Check whether the value is
1057         available.
1058         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
1059         pretty-printing unavailable values.
1060
1061 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1062
1063         Fix const/volatile qualifiers of C++ types, PR c++/12328.
1064         * c-typeprint.c (c_type_print_args): Update the function comment.  New
1065         variable param_type, initialize it.  Remove const/volatile qualifiers
1066         for language_cplus and !show_artificial.  Use param_type.
1067
1068 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1069
1070         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
1071         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
1072         * symtab.h (struct symtab) <next>: Comment extension.
1073
1074 2011-02-12  Yao Qi  <yao@codesourcery.com>
1075
1076         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
1077
1078 2011-02-11  Yao Qi  <yao@codesourcery.com>
1079
1080         * common/Makefile.in: Add copyright header.
1081
1082 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
1083
1084         * infrun.c (proceed): Move switching out and in of tfind mode from
1085         here ...
1086         (fetch_inferior_event): ... to here.
1087
1088 2011-02-11  Yao Qi  <yao@codesourcery.com>
1089
1090         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
1091         libcommon.a.
1092         * configure.ac: Add common to sub dir.
1093         * configure: Regenerate.
1094
1095 2011-02-11  Yao Qi  <yao@codesourcery.com>
1096
1097         Build libcommon.a.
1098
1099         * common/Makefile.in: New.
1100         * common/configure.ac: New.
1101         * common/aclocal.m4: New.
1102         * common/configure: Generate.
1103
1104 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
1105
1106         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
1107         side of the parenthesis.
1108
1109         Merge from GCC:
1110         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
1111         * vec.h (VEC_block_remove): Fix comment.
1112
1113 2011-02-08  Michael Snyder  <msnyder@vmware.com>
1114
1115         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
1116
1117 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1118
1119         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
1120         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
1121         psubd and paddd.
1122
1123 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1124
1125         PR 12361.
1126         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
1127         phsubsw.
1128         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
1129         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
1130
1131 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
1132
1133         * dwarf2read.c (read_subroutine_type): Set special calling
1134         convention flag for functions compiled by IBM XL C for OpenCL.
1135         * ppc-sysv-tdep.c: Include "dwarf2.h"
1136         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
1137         calling convention.
1138         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
1139         IBM OpenCL vector types calling convention.
1140         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
1141         (ppc_sysv_abi_broken_return_value): Likewise.
1142         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
1143         types calling convention.
1144         (ppc64_sysv_abi_return_value): Likewise.
1145         * spu-tdep.c: Include "dwarf2.h"
1146         (spu_return_value): Implement IBM OpenCL vector types calling
1147         convention.
1148
1149 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
1150
1151         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
1152         correct ABI for AltiVec vector arguments.
1153
1154 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
1155
1156         * valprint.c (val_print): Extend comment.
1157         * ada-valprint.c (ada_valprint): Rewrite comment deferring
1158         interface explanation to val_print.
1159         (ada_val_print_array): Adjust comment to current interface.
1160         (print_field_values): Adjust comment to current interface.
1161         * c-valprint.c (c_val_print): Rewrite comment deferring interface
1162         explanation to val_print.
1163         * f-valprint.c (f_val_print): Ditto.
1164         * jv-valprint.c (java_val_print): Ditto.
1165         * m2-valprint.c (m2_val_print): Ditto.
1166         * p-valprint.c (pascal_val_print): Ditto.
1167
1168 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1169
1170         * breakpoint.c (parse_breakpoint_sals): Fix description.
1171
1172 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
1173             Oguz Kayral <oguzkayral@gmail.com>
1174
1175         * python/py-inferior.c (python_on_normal_stop): New function.
1176         (python_on_resume): New function.
1177         (python_inferior_exit): New function.
1178         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
1179         inferior_exit observers.
1180         * python/py-evtregistry.c: New file.
1181         * python/py-threadevent.c : New file.
1182         * python/py-event.c: New file.
1183         * python/py-evts.c: New file.
1184         * python/py-continueevent.c: New file.
1185         * python/py-bpevent.c: New file.
1186         * python/py-signalevent.c: New file.
1187         * python/py-exetiedevent.c: New file.
1188         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
1189         Move struct breakpoint_object from here...
1190         * python/python-internal.h: ... to here.
1191         * python/py-event.h: New file.
1192         * python/py-events.h: New file.
1193         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
1194         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
1195         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
1196         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
1197         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
1198         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
1199         Add build rules for all the above.
1200
1201 2011-02-04  Tom Tromey  <tromey@redhat.com>
1202
1203         * dwarf2read.c (dwarf2_section_empty_p): New function.
1204         (dwarf2_read_section): Use dwarf2_section_empty_p.
1205         (dwarf2_section_size): New function.
1206         (dwarf2_get_section_info): Unconditionally read section.
1207         (dwarf2_read_index): Use dwarf2_section_empty_p.
1208         (partial_read_comp_unit_head): Use dwarf2_section_size.
1209         (dwarf2_symbol_mark_computed): Likewise.
1210
1211 2011-02-04 David Daney <ddaney@caviumnetworks.com>
1212
1213         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
1214
1215 2011-02-04 David Daney <ddaney@caviumnetworks.com>
1216
1217         * mips-linux-tdep.c: Include xml-syscall.h.
1218         (mips_linux_get_syscall_number): New function.
1219         (mips_linux_init_abi): Add calls to
1220         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
1221         * data-directory/Makefile.in (SYSCALLS_FILES): Add
1222         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
1223         * syscalls/mips-n32-linux.xml: New file.
1224         * syscalls/mips-n64-linux.xml: New file.
1225         * syscalls/mips-o32-linux.xml: New file.
1226
1227 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
1228
1229         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
1230         Complain about inverted range entries.
1231         (dwarf2_record_block_ranges): Likewise.
1232
1233 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1234
1235         Fix some typos.
1236         * breakpoint.c (update_watchpoint): Fix name of the
1237         update_global_location_list function.
1238         (print_one_breakpoint): Fix typo.
1239         (_initialize_breakpoint): Remove extra space in hbreak help
1240         string.
1241         * breakpoint.h (struct bp_location) <length>: Fix field
1242         description.
1243
1244 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
1245
1246         * regcache.c (registers_changed_ptid): Don't explictly always
1247         clear `current_regcache'.  Only clear current_thread_ptid and
1248         current_thread_arch when PTID matches.  Only reinit the frame
1249         cache if PTID matches the current inferior_ptid.  Move alloca(0)
1250         call to ...
1251         (registers_changed): ... here.
1252
1253 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
1254
1255         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
1256         starts with __stack_chk_guard as stack guard symbol.
1257
1258 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
1259
1260         * disasm.c (compare_lines): Handle the end of sequence markers
1261         within the line table to better support disassembling over
1262         compilation unit boundaries.
1263
1264 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1265
1266         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
1267         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
1268         implementation even if no symbols are available.
1269         (thumb_analyze_prologue): Update call to skip_prologue_function.
1270         (arm_analyze_prologue): Likewise.
1271
1272 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1273
1274         * arm-tdep.c: Include "observer.h".
1275         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
1276         (arm_exidx_data_key): New static variable.
1277         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
1278         (struct arm_exidx_data): Likewise.
1279         (arm_exidx_data_free): New function.
1280         (arm_compare_exidx_entries): Likewise.
1281         (arm_obj_section_from_vma): Likewise.
1282         (arm_exidx_new_objfile): Likewise.
1283         (arm_find_exidx_entry): Likewise.
1284         (arm_exidx_fill_cache): Likewise.
1285         (arm_exidx_unwind_sniffer): Likewise.
1286         (arm_exidx_unwind): New global variable.
1287         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
1288         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
1289         observer.  Register arm_exidx_data_key as objfile data.
1290
1291 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1292
1293         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
1294         due to accessing uninitialized variable.  Fix indentation.
1295
1296 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
1297
1298         * c-valprint.c (c_value_print): When doing virtual base pointer
1299         adjustment, create a new value with adjusted contents rather than
1300         changing the contents of the value being printed (and getting it
1301         wrong).
1302
1303 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
1304
1305         * xml-support.c (xml_find_attribute): New.
1306         (xinclude_start_include): Use it.
1307         * xml-support.h (xml_find_attribute): Declare.
1308         * memory-map.c (memory_map_start_memory)
1309         (memory_map_start_property): Use xml_find_attribute.
1310         * osdata.c (osdata_start_osdata, osdata_start_column): Use
1311         xml_find_attribute.
1312         * remote.c (start_thread): Use xml_find_attribute.
1313         * solib-target.c (library_list_start_segment)
1314         (library_list_start_section, library_list_start_library)
1315         (library_list_start_list): Use xml_find_attribute.
1316         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
1317         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
1318         (tdesc_start_field): Use xml_find_attribute.
1319
1320 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
1321
1322         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
1323         (BUILD_OCL_VTYPES): Update.
1324
1325 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
1326
1327         * configure.ac: Work around non-GNU sed limitation when computing
1328         python version number.
1329         * configure: Regenerate.
1330
1331 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1332
1333         Fix debug printing of TYPE_INSTANCE.
1334         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
1335         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
1336
1337 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1338
1339         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
1340         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
1341         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
1342         * ada-operator.inc: Rename the file to ...
1343         * ada-operator.def: ... here, wrap all the entries by macro OP.
1344         * expprint.c (op_name_standard): Remove all the entries.  Include
1345         "std-operator.def" instead.
1346         * expression.h (enum exp_opcode): Include "std-operator.def" and
1347         "ada-operator.def".  Move all the entries ...
1348         * std-operator.def: ... here, wrap all the entries by macro OP.
1349
1350 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
1351
1352         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
1353         * breakpoint.c (remove_jit_event_breakpoints): New function.
1354         * jit.c (jit_descriptor_addr): Delete.
1355         (registering_code): Delete.
1356         (clear_int): Delete.
1357         (jit_inferior_data): New variable.
1358         (struct jit_inferior_data): New type.
1359         (get_jit_inferior_data): New function.
1360         (jit_inferior_data_cleanup): New function.
1361         (jit_read_descriptor): Adjust.
1362         (jit_register_code): Adjust.
1363         (jit_breakpoint_re_set_internal): New function; move code here ...
1364         (jit_inferior_init): ... from here.
1365         (jit_breakpoint_re_set): Adjust.
1366         (jit_reset_inferior_data_and_breakpoints): New function.
1367         (jit_inferior_created_observer): Adjust.
1368         (jit_inferior_exit_hook): Adjust.
1369         (jit_executable_changed_observer): New function.
1370         (jit_event_handler): Adjust.
1371         (_initialize_jit): Adjust.
1372
1373 2011-01-31  Michael Snyder  <msnyder@vmware.com>
1374
1375         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
1376         line.
1377
1378 2011-01-31  Tom Tromey  <tromey@redhat.com>
1379
1380         PR python/12216:
1381         * python/python.c (execute_gdb_command): Call
1382         prevent_dont_repeat.
1383         * top.c (suppress_dont_repeat): New global.
1384         (dont_repeat): Use it.
1385         (prevent_dont_repeat): New function.
1386         * command.h (prevent_dont_repeat): Declare.
1387
1388 2011-01-31  Tom Tromey  <tromey@redhat.com>
1389
1390         * infcmd.c (finish_backward): Use breakpoint_set_silent.
1391         * python/py-breakpoint.c (bppy_set_silent): Use
1392         breakpoint_set_silent.
1393         (bppy_set_thread): Use breakpoint_set_thread.
1394         (bppy_set_task): Use breakpoint_set_task.
1395         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
1396         (breakpoint_set_task): Declare.
1397         (make_breakpoint_silent): Remove.
1398         * breakpoint.c (breakpoint_set_silent): New function.
1399         (breakpoint_set_thread): Likewise.
1400         (breakpoint_set_task): Likewise.
1401         (make_breakpoint_silent): Remove.
1402
1403 2011-01-31  Tom Tromey  <tromey@redhat.com>
1404
1405         * breakpoint.h (user_breakpoint_p): Declare.
1406         * breakpoint.c (user_breakpoint_p): New function.
1407         (breakpoint_1): Use it.
1408         (save_breakpoints): Likewise.
1409
1410 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
1411
1412         * configure.ac: Add handling of Python distribution on Windows.
1413         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
1414         sysconfig variables are not defined, then do not use them.
1415         On Windows, if LIBPL is not defined, then use prefix + '/libs'
1416         instead.  On Windows, return all paths using forward-slashes
1417         rather than backslashes.
1418
1419 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
1420
1421         * configure.ac: Remove fallback behavior for building
1422         against Python.  Remove tweaking of Python include path.
1423         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
1424         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
1425         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
1426         Always restore CPPFLAGS and LIBS after linking test.
1427         * configure: Regenerated.
1428         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
1429         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
1430         * python/python-internal.h: Adjust includes of Python .h files.
1431
1432 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
1433
1434         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
1435         in error message.
1436
1437 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
1438
1439         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
1440         value test.
1441
1442 2011-01-31  Yao Qi  <yao@codesourcery.com>
1443
1444         * arm-linux-nat.c: Update calls to regcache_register_status
1445         instead of regcache_valid_p.
1446         * aix-thread.c: Likewise.
1447         * i386gnu-nat.c: Likewise.
1448
1449 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1450
1451         Fix crash.
1452         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
1453         touching TYPE_FIELD_ARTIFICIAL.
1454
1455 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
1456
1457         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
1458         Committers.
1459
1460 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
1461
1462         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
1463         selected, don't try iterating over the traceframe's blocks.
1464         (tfile_has_stack): If there's no traceframe selected, then there's
1465         no stack.
1466         (tfile_has_registers): If there's no traceframe selected, then
1467         there's no registers.
1468
1469 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
1470
1471         * target.c (memory_xfer_partial): No need to restore shadows if we
1472         haven't read anything.
1473
1474 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
1475
1476         * mips-tdep.c (mips_print_register): Use get_frame_register_value
1477         and val_print_scalar_formatted.
1478
1479 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
1480
1481         * tracepoint.c (tfile_read): New.
1482         (tfile_open): Use it.
1483         (tfile_get_traceframe_address): Use it.
1484         (tfile_trace_find): Use it.
1485         (walk_blocks_callback_func): New typedef.
1486         (match_blocktype): New function.
1487         (traceframe_walk_blocks): New function.
1488         (traceframe_find_block_type): New function.
1489         (tfile_fetch_registers, tfile_xfer_partial)
1490         (tfile_get_trace_state_variable_value): Use
1491         traceframe_find_block_type and tfile_read.
1492
1493 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
1494
1495         * remote-mips.c: Add internationalization mark ups.  Remove
1496         trailing \n from already marked up strings.
1497
1498 2011-01-26  Tom Tromey  <tromey@redhat.com>
1499
1500         * python/py-prettyprint.c (print_string_repr): Clear
1501         'addressprint' option when calling val_print_string.
1502         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
1503         option when calling val_print_string.
1504
1505 2011-01-26  Tom Tromey  <tromey@redhat.com>
1506
1507         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
1508         GDB_PY_LL_ARG.
1509         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
1510         macros.
1511         (gdb_py_longest, gdb_py_ulongest): New typedefs.
1512         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
1513         (gdb_py_long_as_ulongest): New defines.
1514         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
1515         (gdb_py_int_as_long): Declare.
1516         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
1517         GDB_PY_LL_ARG, gdb_py_object_from_longest.
1518         (valpy_long): Add comment.
1519         * python/py-utils.c (get_addr_from_python): Use
1520         gdb_py_long_as_ulongest.  Handle overflow properly.
1521         (gdb_py_object_from_longest): New function.
1522         (gdb_py_object_from_ulongest): Likewise.
1523         (gdb_py_int_as_long): Likewise.
1524         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
1525         * python/py-symtab.c (salpy_get_pc): Use
1526         gdb_py_long_from_ulongest.
1527         (salpy_get_line): Use PyInt_FromLong.
1528         * python/py-param.c (set_parameter_value): Use
1529         gdb_py_int_as_long.
1530         * python/py-lazy-string.c (stpy_get_address): Use
1531         gdb_py_long_from_ulongest.
1532         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
1533         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
1534         * python/py-breakpoint.c (bppy_set_thread): Use
1535         gdb_py_int_as_long.
1536         (bppy_set_task): Likewise.
1537         (bppy_set_ignore_count): Likewise.
1538         (bppy_set_hit_count): Likewise.
1539         * python/py-block.c (blpy_get_start): Use
1540         gdb_py_object_from_ulongest.
1541         (blpy_get_end): Likewise.
1542         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
1543
1544 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
1545
1546         PR/symtab 11766:
1547         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
1548         * gdb/solib.c (solib_read_symbols): Check for addr_low in
1549         equality test for objfile, initialize addr_low if needed.
1550
1551 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
1552
1553         * tui/tui-regs.c (tui_register_format): Remove dead code.
1554
1555 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
1556
1557         * printcmd.c (print_formatted): Use val_print_scalar_formatted
1558         instead of print_scalar_formatted.
1559         (print_scalar_formatted): Don't handle 's' format strings here,
1560         and add an assertion that we never see such format here.
1561         * valprint.h (val_print_scalar_formatted): Declare.
1562         * valprint.c (val_print_scalar_formatted): New.
1563         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
1564         instead of print_scalar_formatted.
1565         * jv-valprint.c (java_val_print): Ditto.
1566         * p-valprint.c (pascal_val_print): Ditto.
1567         * ada-valprint.c (ada_val_print_1): Ditto.
1568         * f-valprint.c (f_val_print): Ditto.
1569         * infcmd.c (registers_info): Ditto.
1570         * m2-valprint.c (m2_val_print): Ditto.
1571
1572 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
1573
1574         * m2-valprint.c (print_unbounded_array): Pass
1575         value_contents_for_printing rather than value_contents, to
1576         m2_print_array_contents.  Also pass in the value.
1577
1578 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1579
1580         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
1581         (save_gdb_index_command): Switch to .gdb_index version 4.
1582
1583 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
1584
1585         * mi/mi-main.c (get_register): Use get_frame_register_value rather
1586         than frame_register, and always pass a valid value to val_print.
1587
1588 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
1589
1590         Centralize printing "<optimized out>".
1591
1592         * valprint.h (val_print_optimized_out): Declare.
1593         * cp-valprint.c (cp_print_value_fields): Use
1594         val_print_optimized_out.
1595         * jv-valprint.c (java_print_value_fields): Ditto.
1596         * p-valprint.c (pascal_object_print_value_fields): Ditto.
1597         * printcmd.c (print_formatted): Ditto.
1598         * valprint.c (valprint_check_validity): Ditto.
1599         (value_check_printable): Ditto.
1600         (val_print_optimized_out): New.
1601
1602 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
1603
1604         * infcmd.c (default_print_registers_info): Allocate values so to
1605         never pass a NULL value to val_print.
1606
1607 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
1608
1609         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
1610         boolean.  Make sure to always pass a value that matches the
1611         contents buffer to callees.  Preserve `address' for following
1612         iterations.
1613         * value.c (value_contents_for_printing_const): New.
1614         (value_address): Constify value argument.
1615         * value.h (value_contents_for_printing_const): Declare.
1616         (value_address): Constify value argument.
1617
1618 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
1619
1620         * regcache.c (struct regcache_descr): Rename
1621         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
1622         and sizeof_cooked_register_valid_p to
1623         sizeof_cooked_register_status.
1624         (init_regcache_descr): Adjust.
1625         (struct regcache): Rename register_valid_p field to
1626         register_status.
1627         (regcache_xmalloc_1, regcache_xfree, regcache_save)
1628         (do_cooked_read): Adjust.
1629         (regcache_valid_p): Rename to ...
1630         (regcache_register_status): ... this.  Adjust.
1631         (regcache_invalidate): Adjust.
1632         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
1633         Adjust.
1634         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
1635         as unavailable, not valid.
1636         (regcache_dump): Adjust.
1637         * regcache.h (enum register_status): New.
1638         (regcache_register_status): Declare.
1639         (regcache_invalidate): Delete declaration.
1640         * corelow.c (get_core_registers): Adjust.
1641         * tracepoint.c (tfile_fetch_registers): Adjust.
1642         * trad-frame.c (REG_VALUE): Rename to ...
1643         (TF_REG_VALUE): ... this.
1644         (REG_UNKNOWN): Rename to ...
1645         (TF_REG_UNKNOWN): ... this.
1646         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
1647         * mi/mi-main.c (register_changed_p): Adjust.
1648
1649 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
1650
1651         * regcache.c (struct regcache_descr): Remove outdated comment.
1652         (init_regcache_descr): Remove sizeof_raw_register_valid_p
1653         overallocate hack.
1654         (regcache_xmalloc): Rename to ...
1655         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
1656         Allocate the regcache type accordingly.
1657         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
1658         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
1659         cooked registers, not raw.
1660         (regcache_dup_no_passthrough): Delete.
1661         (get_thread_arch_regcache): Use regcache_xmalloc_1.
1662         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
1663         mention obsolete write_register_bytes.
1664         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
1665
1666 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
1667
1668         Stop remote_read_bytes from handling partial reads itself.
1669
1670         * remote-fileio.c: Include target.h.
1671         (remote_fileio_write_bytes): Delete.
1672         (remote_fileio_func_open, remote_fileio_func_write)
1673         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
1674         target_read_memory.
1675         (remote_fileio_func_stat): Use target_read_memory and
1676         target_write_memory.
1677         (remote_fileio_func_gettimeofday): Use target_write_memory.
1678         (remote_fileio_func_system): Use target_read_memory.
1679         * remote.c (remote_write_bytes): Make it static.
1680         (remote_read_bytes): Don't handle partial reads here.
1681         * remote.h (remote_read_bytes): Delete declaration.
1682
1683 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
1684
1685         Simplify XML parsing a bit.
1686
1687         * xml-support.h (gdb_xml_parse_quick): Declare.
1688         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
1689         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
1690         parameter.
1691         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
1692         gdb_xml_create_parser_and_cleanup_1.
1693         (gdb_xml_parse_quick): New.
1694         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
1695         * osdata.c (osdata_parse): Ditto.
1696         * remote.c (remote_threads_info): Ditto.
1697         * solib-target.c (solib_target_parse_libraries): Ditto.
1698         * xml-syscall.c (syscall_parse_xml): Ditto.
1699         * xml-tdesc.c (tdesc_parse_xml): Ditto.
1700
1701 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
1702
1703         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
1704         with remote-mips.o added to gdb_target_obs.
1705         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
1706
1707 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
1708
1709         * ada-valprint.c (val_print_packed_array_elements): Pass the
1710         correct struct value to val_print.
1711         (ada_val_print_1): Ditto.
1712
1713 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
1714
1715         Don't lose embedded_offset in printing routines throughout.
1716
1717         * valprint.h (val_print_array_elements): Change prototype.
1718         * valprint.c (val_print_array_elements): Add `embedded_offset'
1719         parameter, and adjust to pass it down to val_print, while passing
1720         `valaddr' or `address' unmodified.  Take embedded_offset into
1721         account when checking repetitions.
1722         * c-valprint.c (c_val_print): Pass embedded_offset to
1723         val_print_array_elements instead of adjusting `valaddr' and
1724         `address'.
1725         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
1726         embedded_offset to val_print_array_elements instead of adjusting
1727         `valaddr'.
1728         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
1729         * p-valprint.c (pascal_val_print): Pass embedded_offset to
1730         val_print_array_elements and pascal_object_print_value_fields
1731         instead of adjusting `valaddr'.
1732         (pascal_object_print_value_fields): Add `offset' parameter, and
1733         adjust to use it.
1734         (pascal_object_print_value): Add `offset' parameter, and adjust to
1735         use it.
1736         (pascal_object_print_static_field): Use
1737         value_contents_for_printing/value_embedded_offset, rather than
1738         value_contents.
1739         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
1740         parameter, and adjust to use it.  Use
1741         value_contents_for_printing/value_embedded_offset, rather than
1742         value_contents.
1743         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
1744         (ada_val_print_array): Add `offset' parameter, and adjust to use
1745         it.
1746         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
1747         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
1748         Instead work with offsets.  Use
1749         value_contents_for_printing/value_embedded_offset, rather than
1750         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
1751         and use value_from_pointer to extract a target pointer, rather
1752         than value_from_longest.
1753         (print_variant_part): Add `offset' parameter.  Replace
1754         `outer_valaddr' parameter by a new `outer_offset' parameter.
1755         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
1756         (ada_value_print): Use
1757         value_contents_for_printing/value_embedded_offset, rather than
1758         value_contents.
1759         (print_record): Add `offset' parameter, and adjust to pass it
1760         down.
1761         (print_field_values): Add `offset' parameter.  Replace
1762         `outer_valaddr' parameter by a new `outer_offset' parameter.
1763         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
1764         Use value_contents_for_printing/value_embedded_offset, rather than
1765         value_contents.
1766         * d-valprint.c (dynamic_array_type): Use
1767         value_contents_for_printing/value_embedded_offset, rather than
1768         value_contents.
1769         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
1770         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
1771         (java_print_value_fields): Take `offset' into account.  Don't
1772         re-adjust `valaddr'.  Instead pass down adjusted offsets.
1773         (java_val_print): Take `embedded_offset' into account.  Pass it to
1774         java_print_value_fields.
1775         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
1776         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
1777         down adjusted offsets.
1778         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
1779         (f_val_print): Take `embedded_offset' into account.
1780
1781 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
1782
1783         * inflow.c: Include "gdbcmd.h".
1784         (interactive_mode): New static global, moved here from top.c.
1785         (show_interactive_mode): New function, moved here from top.c.
1786         use gdb_has_a_terminal instead of input_from_terminal_p to
1787         determine the current mode.
1788         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
1789         setting.
1790         (_initialize_inflow): Add the "set/show interactive-mode"
1791         commands.  Moved here from top.c, after having adjusted slightly
1792         the help text.
1793         * top.c (interactive_mode, show_interactive_mode): Delete, moved
1794         to inflow.c.
1795         (input_from_terminal_p): Remove handling of "interactive-mode"
1796         setting, moved to infow.c.
1797         (init_main): Remove creation of the "set/show interactive-mode"
1798         commands, moved to inflow.c.
1799
1800 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
1801
1802         * NEWS: Add entry for native ia64-hpux support.
1803
1804 2011-01-19  Tom Tromey  <tromey@redhat.com>
1805
1806         PR mi/8618:
1807         * thread.c (free_thread): Free 'name'.
1808         (print_thread_info): Emit thread name.  Change CLI output.
1809         (thread_name_command): New function.
1810         (do_captured_thread_select): Emit newline.
1811         (_initialize_thread): Register 'thread name' command.
1812         * target.h (struct target_ops) <to_thread_name>: New field.
1813         (target_thread_name): New macro.
1814         * target.c (update_current_target): Handle to_thread_name.
1815         * python/py-infthread.c (thpy_get_name): New function.
1816         (thpy_set_name): Likewise.
1817         (thread_object_getset): Add "name".
1818         * linux-nat.c (linux_nat_thread_name): New function.
1819         (linux_nat_add_target): Set to_thread_name.
1820         * gdbthread.h (struct thread_info) <name>: New field.
1821
1822 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
1823
1824         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
1825         (ada_val_print_1): Likewise.
1826
1827 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
1828
1829         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
1830         upper limit address is not greater than the function end address
1831         when the upper limit could not be computed using the debugging
1832         info.
1833
1834 2011-01-17  Tom Tromey  <tromey@redhat.com>
1835
1836         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
1837         get_regcomp_error.
1838         * utils.c: Include gdb_regex.h.
1839         (do_regfree_cleanup): New function.
1840         (make_regfree_cleanup): Likewise.
1841         (get_regcomp_error): Likewise.
1842         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
1843
1844 2011-01-17  Tom Tromey  <tromey@redhat.com>
1845
1846         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
1847         re_compile_fastmap.
1848
1849 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
1850
1851         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
1852         for internal variables.
1853         (last_was_structop): New static variable.
1854         (COMPLETE): New token.
1855         (field_exp): New rule to group all '.' suffix handling.
1856         Add mark_struct_expression calls when approriate to be able
1857         to correctly find fields for completion.
1858         (yylex): Adapt to handle field completion and set INTVAR when
1859         required.
1860
1861 2011-01-14  Yao Qi  <yao@codesourcery.com>
1862
1863         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
1864         save_reggroup, restore_reggroup and all_reggroup.
1865
1866 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
1867
1868         * ada-valprint. (ada_printchar): Use the correct type length
1869         in call to ada_emit_char.
1870         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
1871
1872 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
1873
1874         * solib-som.h (hpux_major_release): Declare variable here.
1875         * solib-som.c:  Remove <sys/utsname.h> header.
1876         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
1877         (hpux_major_release): Make global, change default value to
1878         DEFAULT_HPUX_MAJOR_RELEASE.
1879         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE. 
1880         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
1881         Add "solib-som.h" header.
1882         (set_hpux_major_release): New function.
1883         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
1884
1885 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
1886
1887         * configure.tgt (*-*-uclinux*): Match more Linux os targets
1888
1889 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
1890
1891         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
1892         new-line at end of warning message.
1893         (ia64_hpux_store_register): Remove trailing new-line at end of
1894         error message.
1895         * ia64-hpux-tdep.c: Rephrase comment.
1896         * solib-ia64-hpux.c (struct dld_info): Change type of field
1897         dld_flags from "long long" to ULONGEST.
1898
1899 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
1900
1901         * target.h (deprecated_child_ops): Delete declaration.
1902         * target.c (deprecated_child_ops): Delete definition.
1903
1904 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
1905
1906         * Makefile.in (hpux-thread.o): Delete rule.
1907         * configure.ac: Don't check for HPUX DCE threads support.
1908         * configure, config.in: Regenerate.
1909         * hppa-hpux-nat.c (child_suppress_run): Delete.
1910         (hppa_hpux_child_can_run): Delete.
1911         (_initialize_hppa_hpux_nat): Don't override to_can_run.
1912         * hpux-thread.c: Delete.
1913
1914 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
1915
1916         * hpux-thread.c (hpux_pid_to_str): Delete.
1917
1918 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
1919
1920         * ada-valprint.c (ada_emit_char): Remove strange code.
1921         Check that c is <= UCHAR_MAX before passing it to isascii.
1922         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
1923
1924 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
1925
1926         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
1927         to the case where instream is stdin.
1928
1929 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
1930
1931         * ia64-tdep.h (struct regcache): Forward declare.
1932         (struct ia64_infcall_ops): New struct type.
1933         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
1934         and "infcall_ops".
1935         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
1936         Renames ia64_find_global_pointer.
1937         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
1938         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
1939         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
1940         methods.
1941         (ia64_infcall_ops): New static global constant.
1942         (ia64_gdbarch_init): Set tdep->infcall_ops.
1943         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
1944         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
1945         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
1946         (ia64_hpux_dummy_code): New static global constant.
1947         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
1948         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
1949         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
1950         New function.
1951         (ia64_hpux_infcall_ops): New static global constant.
1952         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
1953         for inferior function calls to work properly on ia64-hpux.
1954
1955 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
1956
1957         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
1958         * ia64-tdep.h (struct frame_info): forward declaration.
1959         (struct gdbarch_tdep): Add field size_of_register_frame.
1960         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
1961         to determine the size of the register frame.
1962         (ia64_size_of_register_frame): New function.
1963         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
1964         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
1965         (IA64_HPUX_UREG_REASON): New macro.
1966         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
1967         New functions.
1968         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
1969         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
1970         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
1971         objects.
1972
1973 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
1974
1975         Add support for ia64-hpux.
1976         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
1977         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
1978
1979         * configure.host: Add handling for ia64-hpux hosts.  Add associated
1980         floatformats.
1981         * configure.tgt: Add handling for ia64-hpux targets.
1982         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
1983         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
1984         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
1985
1986 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
1987
1988         [ttrace] Compute thread list immediately after attach.
1989         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
1990         New subprogram.
1991         (inf_ttrace_attach): Use it.
1992
1993 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
1994
1995         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
1996         if we could not determine the frame's function address.  Instead,
1997         use the frame's PC, and then continue.
1998
1999 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
2000
2001         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
2002         not already defined.
2003
2004 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
2005
2006         * ia64-tdep.c (ia64_struct_type_p): New function.
2007         (ia64_extract_return_value): Handle integral values that are
2008         less than 8 bytes long.
2009         (ia64_push_dummy_call): Likewise.
2010
2011 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
2012
2013         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
2014         floatformat_ia64_ext.
2015         (floatformat_ia64_ext_big): New static const.
2016         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
2017
2018 2011-01-12  Tom Tromey  <tromey@redhat.com>
2019
2020         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
2021         messages.
2022         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
2023         (mi_cmd_thread_list_ids): Likewise.
2024         (mi_cmd_data_list_changed_registers): Likewise.
2025         (mi_cmd_data_list_register_values): Likewise.
2026         (mi_cmd_data_write_register_values): Likewise.
2027         (mi_cmd_data_evaluate_expression): Likewise.
2028         (mi_cmd_data_read_memory): Likewise.
2029         (mi_cmd_data_read_memory_bytes): Likewise.
2030         (mi_cmd_data_write_memory): Likewise.
2031         (mi_cmd_enable_timings): Likewise.
2032         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
2033         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
2034         (mi_cmd_var_delete): Likewise.
2035         (mi_cmd_var_set_format): Likewise.
2036         (mi_cmd_var_show_format): Likewise.
2037         (mi_cmd_var_info_num_children): Likewise.
2038         (mi_cmd_var_list_children): Likewise.
2039         (mi_cmd_var_info_type): Likewise.
2040         (mi_cmd_var_info_expression): Likewise.
2041         (mi_cmd_var_show_attributes): Likewise.
2042         (mi_cmd_var_assign): Likewise.
2043         (mi_cmd_var_update): Likewise.
2044         (mi_cmd_enable_pretty_printing): Likewise.
2045         (mi_cmd_var_set_update_range): Likewise.
2046         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
2047         messages.
2048         (mi_cmd_target_file_put): Likewise.
2049         (mi_cmd_target_file_delete): Likewise.
2050         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
2051         messages.
2052         (mi_cmd_stack_info_depth): Likewise.
2053         (mi_cmd_stack_list_locals): Likewise.
2054         (mi_cmd_stack_list_args): Likewise.
2055         (mi_cmd_stack_select_frame): Likewise.
2056         (mi_cmd_stack_select_frame): Likewise.
2057         (mi_cmd_stack_info_frame): Likewise.
2058         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
2059         messages.
2060         (mi_cmd_file_list_exec_source_files): Likewise.
2061         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
2062         (mi_cmd_env_cd): Likewise.
2063         (mi_cmd_env_path): Likewise.
2064         (mi_cmd_env_dir): Likewise.
2065         (mi_cmd_inferior_tty_show): Likewise.
2066         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
2067         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
2068         (mi_cmd_break_watch): Likewise.
2069
2070 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2071
2072         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
2073         (ppc_linux_insert_hw_breakpoint): Likewise.
2074         (ppc_linux_remove_hw_breakpoint): Likewise.
2075         (ppc_linux_insert_watchpoint): Likewise.
2076
2077 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
2078             Jan Kratochvil  <jan.kratochvil@redhat.com>
2079
2080         PR fortran/11104 and DWARF unbound arrays detection.
2081         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
2082         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
2083         unspecified upper bound.
2084         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
2085         variables array_size_array, tmp_type and offset_item.  New variable
2086         array.  Remove call to f77_get_upperbound.  New variables array_type
2087         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
2088         the final call to deprecated_set_value_type.
2089
2090 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2091
2092         Make value allocations more lazy.
2093         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
2094         instead of allocate_value and set_value_lazy when possible.
2095         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy 
2096         instead of allocate_value and set_value_lazy.
2097         * findvar.c (value_of_register_lazy): Likewise.
2098         (read_var_value): Remove V preallocation, call just check_typedef in
2099         advance.  Move allocate_value to LOC_CONST, LOC_LABEL, 
2100         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
2101         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
2102         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
2103         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
2104         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
2105         the end, remove set_value_lazy there.
2106         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
2107         instead of allocate_value and set_value_lazy when possible.
2108         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
2109         * value.c (allocate_computed_value): Use allocate_value_lazy instead
2110         of allocate_value and set_value_lazy.
2111         (value_from_contents_and_address): Use allocate_value_lazy instead of
2112         allocate_value and set_value_lazy when possible.
2113
2114 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
2115
2116         * disasm.c (dump_insns): Support dumping opcodes for MI.
2117         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
2118         dumping of instruction opcodes.
2119
2120 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
2121
2122         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
2123         appropiately.
2124
2125 2011-01-11  Tom Tromey  <tromey@redhat.com>
2126
2127         * thread.c (do_captured_thread_select): Emit newline before
2128         printing frame.
2129
2130 2011-01-11  Michael Snyder  <msnyder@vmware.com>
2131
2132         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
2133         * score-tdep.c: Ditto.
2134         * score-tdep.h: Ditto.
2135         * ser-base.c: Ditto.
2136         * ser-go32.c: Ditto.
2137         * serial.c: Ditto.
2138         * serial.h: Ditto.
2139         * ser-mingw.c: Ditto.
2140         * ser-pipe.c: Ditto.
2141         * ser-tcp.c: Ditto.
2142         * ser-unix.c: Ditto.
2143         * sh64-tdep.c: Ditto.
2144         * shnbsd-nat.c: Ditto.
2145         * sh-tdep.c: Ditto.
2146         * sh-tdep.h: Ditto.
2147         * solib.c: Ditto.
2148         * solib-darwin.c: Ditto.
2149         * solib-frv.c: Ditto.
2150         * solib.h: Ditto.
2151         * solib-irix.c: Ditto.
2152         * solib-osf.c: Ditto.
2153         * solib-pa64.c: Ditto.
2154         * solib-som.c: Ditto.
2155         * solib-spu.c: Ditto.
2156         * solib-sunos.c: Ditto.
2157         * solib-svr4.c: Ditto.
2158         * solist.h: Ditto.
2159         * sol-thread.c: Ditto.
2160         * somread.c: Ditto.
2161         * source.c: Ditto.
2162         * source.h: Ditto.
2163         * sparc64-linux-tdep.c: Ditto.
2164         * sparc64-tdep.c: Ditto.
2165         * sparc-linux-nat.c: Ditto.
2166         * sparc-linux-tdep.c: Ditto.
2167         * sparc-sol2-nat.c: Ditto.
2168         * sparc-sol2-tdep.c: Ditto.
2169         * sparc-tdep.c: Ditto.
2170         * sparc-tdep.h: Ditto.
2171         * spu-tdep.c: Ditto.
2172         * stabsread.c: Ditto.
2173         * stabsread.h: Ditto.
2174         * stack.c: Ditto.
2175         * symfile.c: Ditto.
2176         * symfile.h: Ditto.
2177         * symmisc.c: Ditto.
2178         * symtab.c: Ditto.
2179         * symtab.h: Ditto.
2180         * target.c: Ditto.
2181         * target-descriptions.c: Ditto.
2182         * target-descriptions.h: Ditto.
2183         * target.h: Ditto.
2184         * target-memory.c: Ditto.
2185         * terminal.h: Ditto.
2186         * thread.c: Ditto.
2187         * top.c: Ditto.
2188         * tracepoint.c: Ditto.
2189         * tracepoint.h: Ditto.
2190         * trad-frame.h: Ditto.
2191         * typeprint.c: Ditto.
2192
2193 2011-01-11  Michael Snyder  <msnyder@vmware.com>
2194
2195         * ui-file.c: Comment cleanup, mostly periods and spaces.
2196         * ui-file.h: Ditto.
2197         * ui-out.c: Ditto.
2198         * ui-out.h: Ditto.
2199         * utils.c: Ditto.
2200         * v850-tdep.c: Ditto.
2201         * valarith.c: Ditto.
2202         * valops.c: Ditto.
2203         * valprint.c: Ditto.
2204         * valprint.h: Ditto.
2205         * value.c: Ditto.
2206         * value.h: Ditto.
2207         * varobj.c: Ditto.
2208         * varobj.h: Ditto.
2209         * vax-tdep.c: Ditto.
2210         * vec.c: Ditto.
2211         * vec.h: Ditto.
2212         * version.h: Ditto.
2213         * windows-nat.c: Ditto.
2214         * windows-tdep.c: Ditto.
2215         * xcoffread.c: Ditto.
2216         * xcoffsolib.c: Ditto.
2217         * xml-support.c: Ditto.
2218         * xstormy16-tdep.c: Ditto.
2219         * xtensa-tdep.c: Ditto.
2220         * xtensa-tdep.h: Ditto.
2221
2222 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2223
2224         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
2225         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
2226
2227 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
2228             Thiago Jung Bauermann  <bauerman@br.ibm.com>
2229
2230         Implement support for PowerPC BookE ranged watchpoints.
2231         * breakpoint.h 
2232         (struct breakpoint_ops) <resources_needed>: New method.
2233         Initialize to NULL in all existing breakpoint_ops instances.
2234         (struct breakpoint) <exact>: New field.
2235         (target_exact_watchpoints): Declare external global.
2236         * breakpoint.c (target_exact_watchpoints): New global flag.
2237         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
2238         b->enable_state to bp_enabled before calling
2239         hw_watchpoint_used_count.
2240         (hw_watchpoint_used_count): Iterate over all bp_locations in a
2241         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
2242         if available.
2243         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
2244         if the watchpoint is exact.
2245         (resources_needed_watchpoint): New function.
2246         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
2247         (watch_command_1): Set b->exact if the user asked for an exact
2248         watchpoint and one can be set.
2249         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
2250         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
2251         the user asks for an exact watchpoint and one can be set.  Return
2252         number of needed debug registers to watch the expression.
2253         * gdbtypes.c (is_scalar_type): New function, based on
2254         valprint.c:scalar_type_p.
2255         (is_scalar_type_recursive): New function.
2256         * gdbtypes.h (is_scalar_type_recursive): Declare.
2257         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
2258         handle regions when ranged watchpoints are available.
2259         (create_watchpoint_request): New function.
2260         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2261         create_watchpoint_request.
2262         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
2263         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
2264         `set powerpc' and `show powerpc' commands.
2265         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
2266         Mention documentation comment in the target macro.
2267         (target_region_ok_for_hw_watchpoint): Document return value.
2268
2269 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2270
2271         * breakpoint.c (update_watchpoint): Decide on using a software or
2272         hardware watchpoint after the bp_locations are created.
2273
2274 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2275
2276         Convert hardware watchpoints to use breakpoint_ops.
2277         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
2278         <insert_location>: ... this.  Return int instead of void.
2279         Accept pointer to struct bp_location instead of pointer to
2280         struct breakpoint.  Adapt all implementations.
2281         (breakpoint_ops) <remove>: Rename to... 
2282         <remove_location>: ... this.  Accept pointer to struct bp_location
2283         instead of pointer to struct breakpoint.  Adapt all implementations.
2284         * breakpoint.c (insert_catchpoint): Delete function.
2285         (insert_bp_location): Call the watchpoint or catchpoint's
2286         breakpoint_ops.insert method.
2287         (remove_breakpoint_1): Call the watchpoint or catchpoint's
2288         breakpoint_ops.remove method.
2289         (insert_watchpoint, remove_watchpoint): New functions.
2290         (watchpoint_breakpoint_ops): New structure.
2291         (watch_command_1): Initialize the OPS field.
2292         * inf-child.c (inf_child_insert_fork_catchpoint)
2293         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
2294         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
2295         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
2296         Delete functions.
2297         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
2298         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
2299         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
2300         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
2301         * target.c (update_current_target): Change default implementation of
2302         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
2303         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
2304         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
2305         to_set_syscall_catchpoint to return_one.
2306         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
2307         (debug_to_insert_exec_catchpoint): Report return value.
2308         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
2309         (to_insert_exec_catchpoint): Change declaration to return int instead
2310         of void.
2311
2312 2011-01-11  Michael Snyder  <msnyder@vmware.com>
2313
2314         * arm-tdep.c: Internationalization.
2315         * c-lang.c: Ditto.
2316         * charset.c: Ditto.
2317         * fork-child.c: Ditto.
2318         * nto-procfs.c: Ditto.
2319         * ppc-sysv-tdep.c: Ditto.
2320         * procfs.c: Ditto.
2321         * remote-mips.c: Ditto.
2322         * remote.c: Ditto.
2323         * rs6000-nat.c: Ditto.
2324         * rs6000-tdep.c: Ditto.
2325         * target.c: Ditto.
2326         * valops.c: Ditto.
2327         * value.c: Ditto.
2328         * xml-support.c: Ditto.
2329         * mi/mi-cmd-break.c: Ditto.
2330         * mi/mi-cmd-var.c: Ditto.
2331         * mi/mi-interp.c: Ditto.
2332         * mi/mi-main.c: Ditto.
2333
2334 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
2335
2336         * remote-sim.c (gdbsim_store_register): Update API to
2337         sim_store_register to check more error conditions.
2338
2339 2011-01-10  Michael Snyder  <msnyder@vmware.com>
2340
2341         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
2342         * nto-tdep.c: Ditto.
2343         * nto-tdep.h: Ditto.
2344         * objc-exp.y: Ditto.
2345         * objc-lang.c: Ditto.
2346         * objfiles.c: Ditto.
2347         * objfiles.h: Ditto.
2348         * observer.c: Ditto.
2349         * opencl-lang.c: Ditto.
2350         * osabi.c: Ditto.
2351         * parse.c: Ditto.
2352         * parser-defs.h: Ditto.
2353         * p-exp.y: Ditto.
2354         * p-lang.c: Ditto.
2355         * posix-hdep.c: Ditto.
2356         * ppcbug-rom.c: Ditto.
2357         * ppc-linux-nat.c: Ditto.
2358         * ppc-linux-tdep.c: Ditto.
2359         * ppc-linux-tdep.h: Ditto.
2360         * ppcnbsd-tdep.c: Ditto.
2361         * ppcobsd-tdep.c: Ditto.
2362         * ppcobsd-tdep.h: Ditto.
2363         * ppc-sysv-tdep.c: Ditto.
2364         * ppc-tdep.h: Ditto.
2365         * printcmd.c: Ditto.
2366         * proc-abi.c: Ditto.
2367         * proc-flags.c: Ditto.
2368         * procfs.c: Ditto.
2369         * proc-utils.h: Ditto.
2370         * progspace.h: Ditto.
2371         * prologue-value.c: Ditto.
2372         * prologue-value.h: Ditto.
2373         * psympriv.h: Ditto.
2374         * psymtab.c: Ditto.
2375         * p-typeprint.c: Ditto.
2376         * p-valprint.c: Ditto.
2377         * ravenscar-sparc-thread.c: Ditto.
2378         * ravenscar-thread.c: Ditto.
2379         * ravenscar-thread.h: Ditto.
2380         * record.c: Ditto.
2381         * regcache.c: Ditto.
2382         * regcache.h: Ditto.
2383         * remote.c: Ditto.
2384         * remote-fileio.c: Ditto.
2385         * remote-fileio.h: Ditto.
2386         * remote.h: Ditto.
2387         * remote-m32r-sdi.c: Ditto.
2388         * remote-mips.c: Ditto.
2389         * remote-sim.c: Ditto.
2390         * rs6000-aix-tdep.c: Ditto.
2391         * rs6000-nat.c: Ditto.
2392         * rs6000-tdep.c: Ditto.
2393
2394 2011-01-10  Michael Snyder  <msnyder@vmware.com>
2395
2396         * charset.c (validate): Internationalization.
2397         * coffread.c (read_one_sym): Ditto.
2398         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
2399         * h8300-tdep.c (H8300_extract_return_value): Ditto.
2400         * inflow.c (new_tty): Ditto.
2401         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
2402         * m32c-tdep.c (m32c_return_value): Ditto.
2403         * mep-tdep.c (mep_store_return_value): Ditto.
2404         * score-tdep.c (score7_fetch_insn): Ditto.
2405         * ser-mingw.c (pipe_windows_open): Ditto.
2406         * sh64-tdep.c (sh64_extract_return_value): Ditto.
2407         * spu-tdep.c (spu_register_type): Ditto.
2408         * tracepoint.c (trace_find_command): Ditto.
2409         * valarith.c (value_pos): Ditto.
2410
2411 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
2412
2413         * ada-valprint.c (printstr): Minor comment reformatting.
2414
2415 2011-01-08  Michael Snyder  <msnyder@vmware.com>
2416
2417         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
2418         markup.
2419
2420 2011-01-08  Michael Snyder  <msnyder@vmware.com>
2421
2422         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
2423         * hppa-hpux-tdep.c: Ditto.
2424         * hppa-linux-nat.c: Ditto.
2425         * hppa-linux-tdep.c: Ditto.
2426         * hppanbsd-tdep.c: Ditto.
2427         * hppa-tdep.c: Ditto.
2428         * hppa-tdep.h: Ditto.
2429         * hpux-thread.c: Ditto.
2430         * i386-cygwin-tdep.c: Ditto.
2431         * i386-darwin-nat.c: Ditto.
2432         * i386gnu-nat.c: Ditto.
2433         * i386-linux-nat.c: Ditto.
2434         * i386-linux-tdep.c: Ditto.
2435         * i386-nat.c: Ditto.
2436         * i386-nat.h: Ditto.
2437         * i386nbsd-tdep.c: Ditto.
2438         * i386-sol2-nat.c: Ditto.
2439         * i386-stub.c: Ditto.
2440         * i386-tdep.c: Ditto.
2441         * i386-tdep.h: Ditto.
2442         * i387-tdep.c: Ditto.
2443         * ia64-linux-nat.c: Ditto.
2444         * ia64-linux-tdep.c: Ditto.
2445         * ia64-tdep.c: Ditto.
2446         * infcall.c: Ditto.
2447         * infcall.h: Ditto.
2448         * infcmd.c: Ditto.
2449         * inferior.c: Ditto.
2450         * inferior.h: Ditto.
2451         * infloop.c: Ditto.
2452         * inflow.c: Ditto.
2453         * infrun.c: Ditto.
2454         * interps.c: Ditto.
2455         * interps.h: Ditto.
2456         * iq2000-tdep.c: Ditto.
2457         * irix5-nat.c: Ditto.
2458         * jit.c: Ditto.
2459         * jit.h: Ditto.
2460         * jv-exp.y: Ditto.
2461         * jv-lang.c: Ditto.
2462         * jv-lang.h: Ditto.
2463         * jv-typeprint.c: Ditto.
2464         * jv-valprint.c: Ditto.
2465         * language.c: Ditto.
2466         * language.h: Ditto.
2467         * linespec.c: Ditto.
2468         * linux-fork.c: Ditto.
2469         * linux-nat.c: Ditto.
2470         * linux-thread-db.c: Ditto.
2471         * lm32-tdep.c: Ditto.
2472
2473 2011-01-08  Michael Snyder  <msnyder@vmware.com>
2474
2475         * m2-exp.y: Comment cleanup, mostly periods and spaces.
2476         * m2-lang.c: Ditto.
2477         * m2-typeprint.c: Ditto.
2478         * m2-valprint.c: Ditto.
2479         * m32c-tdep.c: Ditto.
2480         * m32r-linux-nat.c: Ditto.
2481         * m32r-rom.c: Ditto.
2482         * m32r-tdep.c: Ditto.
2483         * m32r-tdep.h: Ditto.
2484         * m68hc11-tdep.c: Ditto.
2485         * m58klinux-nat.c: Ditto.
2486         * m68k-tdep.c: Ditto.
2487         * m88k-tdep.c: Ditto.
2488         * m88k-tdep.h: Ditto.
2489         * machoread.c: Ditto.
2490         * macrocmd.c: Ditto.
2491         * macroexp.c: Ditto.
2492         * macrotab.c: Ditto.
2493         * main.c: Ditto.
2494         * maint.c: Ditto.
2495         * mdebugread.c: Ditto.
2496         * mdebugread.h: Ditto.
2497         * memattr.c: Ditto.
2498         * memattr.h: Ditto.
2499         * memory-map.h: Ditto.
2500         * mep-tdep.c: Ditto.
2501         * microblaze-rom.c: Ditto.
2502         * microblaze-tdep.c: Ditto.
2503         * minsyms.c: Ditto.
2504         * mips-irix-tdep.c: Ditto.
2505         * mips-linux-nat.c: Ditto.
2506         * mips-linux-tdep.c: Ditto.
2507         * mips-linux-tdep.h: Ditto.
2508         * mipsnbsd-nat.c: Ditto.
2509         * mipsnbsd-tdep.c: Ditto.
2510         * mipsread.c: Ditto.
2511         * mips-tdep.c: Ditto.
2512         * mips-tdep.h: Ditto.
2513         * mn10300-linux-tdep.c: Ditto.
2514         * mn10300-tdep.c: Ditto.
2515         * mn10300-tdep.h: Ditto.
2516         * monitor.c: Ditto.
2517         * monitor.h: Ditto.
2518         * moxie-tdep.c: Ditto.
2519         * moxie-tdep.h: Ditto.
2520         * mt-tdep.c: Ditto.
2521
2522 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
2523
2524         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
2525
2526 2011-01-08  Robert Millan  <rmh@gnu.org>
2527
2528         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
2529
2530 2011-01-07  Michael Snyder  <msnyder@vmware.com>
2531
2532         * charset.c (_initialize_charset): Fix typo in string.
2533
2534 2011-01-07  Michael Snyder  <msnyder@vmware.com>
2535
2536         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
2537         for i18n.
2538         * tui/tui-layout.c (tui_set_layout_for_display_command): 
2539         Split line so that operator goes to beginning of line.
2540         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
2541         assignment out of if statement.
2542
2543 2011-01-07  Michael Snyder  <msnyder@vmware.com>
2544
2545         * ada-lang.c: Comment cleanup, mostly periods and spaces.
2546         * ada-lang.h: Ditto.
2547         * ada-tasks.c: Ditto.
2548         * ada-valprint.c: Ditto.
2549         * aix-threads.c: Ditto.
2550         * alpha-linux-nat.c: Ditto.
2551         * alpha-linux-tdep.c: Ditto.
2552         * alpha-mdebug-tdep.c: Ditto.
2553         * alpha-nat.c: Ditto.
2554         * alpha-osf1-tdep.c: Ditto.
2555         * alpha-tdep.c: Ditto.
2556         * alphabsd-nat.c: Ditto.
2557         * alphabsd-tdep.c: Ditto.
2558         * amd64-darwin-tdep.c: Ditto.
2559         * amd64-linux-nat.c: Ditto.
2560         * amd64-linux-tdep.c: Ditto.
2561         * amd64-sol2-tdep.c: Ditto.
2562         * amd64-tdep.c: Ditto.
2563         * amd64-fbsd-tdep.c: Ditto.
2564         * amd64-nbsd-tdep.c: Ditto.
2565         * amd64-obsd-tdep.c: Ditto.
2566         * amd64-linux-nat.c: Ditto.
2567         * amd64-linux-tdep.c: Ditto.
2568         * arm-tdep.c: Ditto.
2569         * arm-tdep.h: Ditto.
2570         * armnbsd-nat.c: Ditto.
2571         * avr-tdep.c: Ditto.
2572         * bfin-tdep.c: Ditto.
2573         * bsd-kvm.c: Ditto.
2574         * c-typeprintc: Ditto.
2575         * c-valprint.c: Ditto.
2576         * coff-pe-read.h: Ditto.
2577         * coffreead.c: Ditto.
2578         * cris-tdep.c: Ditto.
2579         * d-lang.c: Ditto.
2580         * darwin-nat-info.c: Ditto.
2581         * darwin-nat.c: Ditto.
2582         * dbug-rom.c: Ditto.
2583         * dbxread.c: Ditto.
2584         * dcache.c: Ditto.
2585         * dcache.h: Ditto.
2586         * dec-thread.c: Ditto.
2587         * defs.h: Ditto.
2588         * demangle.c: Ditto.
2589         * dicos-tdep.c: Ditto.
2590         * dictionary.c: Ditto.
2591         * dictionary.h: Ditto.
2592         * dink32-rom.c: Ditto.
2593         * disasm.c: Ditto.
2594         * doublest.c: Ditto.
2595         * dsrec.c: Ditto.
2596         * dummy-frame.c: Ditto.
2597         * dwarf2-frame.c: Ditto.
2598         * dwarf2expr.c: Ditto.
2599         * dwarf2loc.c: Ditto.
2600         * dwarf2read.c: Ditto.
2601         * elfread.c: Ditto.
2602         * environ.c: Ditto.
2603         * eval.c: Ditto.
2604         * event-top.h: Ditto.
2605         * exceptions.c: Ditto.
2606         * exceptions.h: Ditto.
2607         * exec.c: Ditto.
2608         * expprint.c: Ditto.
2609         * expression.h: Ditto.
2610         * f-exp.y: Ditto.
2611         * f-lang.c: Ditto.
2612         * f-lang.h: Ditto.
2613         * f-typeprint.c: Ditto.
2614         * f-valprint.c: Ditto.
2615         * fbsd-nat.c: Ditto.
2616         * findvar.c: Ditto.
2617         * fork-child.c: Ditto.
2618         * frame.c: Ditto.
2619         * frame.h: Ditto.
2620         * frv-linux-tdep.c: Ditto.
2621         * frv-tdep.c: Ditto.
2622         * gcore.c: Ditto.
2623         * gdb-stabs.h: Ditto.
2624         * gdb_assert.h: Ditto.
2625         * gdb_string.h: Ditto.
2626         * gdb_thread_db.h: Ditto.
2627         * gdb_wait.h: Ditto.
2628         * gdbarch.sh: Ditto.
2629         * gdbcore.h: Ditto.
2630         * gdbthread.h: Ditto.
2631         * gdbtypes.c: Ditto.
2632         * gdbtypes.h: Ditto.
2633         * gnu-nat.c: Ditto.
2634         * gnu-nat.h: Ditto.
2635         * gnu-v2-abi.c: Ditto.
2636         * gnu-v3-abi.c: Ditto.
2637         * go32-nat.c: Ditto.
2638         * gdbarch.c: Regenerate.
2639         * gdbarch.h: Regenerate.
2640
2641 2011-01-07  Michael Snyder  <msnyder@vmware.com>
2642
2643         * ax-gdb.c: Adjust some long output strings.
2644         * breakpoint.c: Ditto.
2645         * charset.c: Ditto.
2646         * cp-abi.c: Ditto.
2647         * infcall.c: Ditto.
2648         * infrun.c: Ditto.
2649         * linux-nat.c: Ditto.
2650         * solib-pa64.c: Ditto.
2651         * solib-som.c: Ditto.
2652
2653 2011-01-06  Tom Tromey  <tromey@redhat.com>
2654
2655         PR python/12367:
2656         * NEWS: Add item.
2657         * python/python.c (GdbMethods): Add "newest_frame" method.
2658         * python/python-internal.h (gdbpy_newest_frame): Declare.
2659         * python/py-frame.c (gdbpy_newest_frame): New function.
2660
2661 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
2662
2663         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
2664         * jit.c (jit_debug): New variable.
2665         (show_jit_debug): New function.
2666         (struct target_buffer): Use ULONGEST.
2667         (bfd_open_from_target_memory): Likewise.
2668         (jit_register_code, jit_inferior_init): Add debug output.
2669         (_initialize_jit): Register "debug jit" command.
2670
2671 2011-01-06  Tom Tromey  <tromey@redhat.com>
2672
2673         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
2674         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
2675         and ARCH_FRAME.
2676
2677 2011-01-06  Tom Tromey  <tromey@redhat.com>
2678
2679         * python/py-frame.c (frapy_block): Use get_frame_block.
2680
2681 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
2682
2683         Do not stop on SIGPRIO signals by default
2684         * infrun.c (_initialize_infrun): Unset signal_stop and
2685         signal_print for TARGET_SIGNAL_PRIO.
2686
2687 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
2688
2689         * ada-tasks.c: Fix style violation in comment.
2690
2691 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
2692
2693         * linespec.c (decode_compound, find_method): Remove trailing \n
2694         at end of error string.
2695         * solib-irix.c (irix_current_sos): Likewise.
2696         * varobj.c (uninstall_variable): Likewise.
2697
2698 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
2699
2700         * copyright.py: New script.
2701         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
2702         Launch emacs without exec'ing. Call copyright.py afterwards.
2703
2704 2011-01-05  Michael Snyder  <msnyder@vmware.com>
2705
2706         * addrmap.c: Shorten lines of >= 80 columns.
2707         * arch-utils.c: Ditto.
2708         * arch-utils.h: Ditto.
2709         * ax-gdb.c: Ditto.
2710         * ax-general.c: Ditto.
2711         * bcache.c: Ditto.
2712         * blockframe.c: Ditto.
2713         * breakpoint.c: Ditto.
2714         * buildsym.c: Ditto.
2715         * c-lang.c: Ditto.
2716         * c-typeprint.c: Ditto.
2717         * charset.c: Ditto.
2718         * coffread.c: Ditto.
2719         * command.h: Ditto.
2720         * corelow.c: Ditto.
2721         * cp-abi.c: Ditto.
2722         * cp-namespace.c: Ditto.
2723         * cp-support.c: Ditto.
2724         * dbug-rom.c: Ditto.
2725         * dbxread.c: Ditto.
2726         * defs.h: Ditto.
2727         * dfp.c: Ditto.
2728         * dfp.h: Ditto.
2729         * dictionary.c: Ditto.
2730         * disasm.c: Ditto.
2731         * doublest.c: Ditto.
2732         * dwarf2-frame.c: Ditto.
2733         * dwarf2expr.c: Ditto.
2734         * dwarf2loc.c: Ditto.
2735         * dwarf2read.c: Ditto.
2736         * elfread.c: Ditto.
2737         * eval.c: Ditto.
2738         * event-loop.c: Ditto.
2739         * event-loop.h: Ditto.
2740         * exceptions.h: Ditto.
2741         * exec.c: Ditto.
2742         * expprint.c: Ditto.
2743         * expression.h: Ditto.
2744         * f-lang.c: Ditto.
2745         * f-valprint.c: Ditto.
2746         * findcmd.c: Ditto.
2747         * frame-base.c: Ditto.
2748         * frame-unwind.c: Ditto.
2749         * frame-unwind.h: Ditto.
2750         * frame.c: Ditto.
2751         * frame.h: Ditto.
2752         * gcore.c: Ditto.
2753         * gdb-stabs.h: Ditto.
2754         * gdb_assert.h: Ditto.
2755         * gdb_dirent.h: Ditto.
2756         * gdb_obstack.h: Ditto.
2757         * gdbcore.h: Ditto.
2758         * gdbtypes.c: Ditto.
2759         * gdbtypes.h: Ditto.
2760         * inf-ttrace.c: Ditto.
2761         * infcall.c: Ditto.
2762         * infcmd.c: Ditto.
2763         * inflow.c: Ditto.
2764         * infrun.c: Ditto.
2765         * inline-frame.h: Ditto.
2766         * language.c: Ditto.
2767         * language.h: Ditto.
2768         * libunwind-frame.c: Ditto.
2769         * libunwind-frame.h: Ditto.
2770         * linespec.c: Ditto.
2771         * linux-nat.c: Ditto.
2772         * linux-nat.h: Ditto.
2773         * linux-thread-db.c: Ditto.
2774         * machoread.c: Ditto.
2775         * macroexp.c: Ditto.
2776         * macrotab.c: Ditto.
2777         * main.c: Ditto.
2778         * maint.c: Ditto.
2779         * mdebugread.c: Ditto.
2780         * memattr.c: Ditto.
2781         * minsyms.c: Ditto.
2782         * monitor.c: Ditto.
2783         * monitor.h: Ditto.
2784         * objfiles.c: Ditto.
2785         * objfiles.h: Ditto.
2786         * osabi.c: Ditto.
2787         * p-typeprint.c: Ditto.
2788         * p-valprint.c: Ditto.
2789         * parse.c: Ditto.
2790         * printcmd.c: Ditto.
2791         * proc-events.c: Ditto.
2792         * procfs.c: Ditto.
2793         * progspace.c: Ditto.
2794         * progspace.h: Ditto.
2795         * psympriv.h: Ditto.
2796         * psymtab.c: Ditto.
2797         * record.c: Ditto.
2798         * regcache.c: Ditto.
2799         * regcache.h: Ditto.
2800         * remote-fileio.c: Ditto.
2801         * remote.c: Ditto.
2802         * ser-mingw.c: Ditto.
2803         * ser-tcp.c: Ditto.
2804         * ser-unix.c: Ditto.
2805         * serial.c: Ditto.
2806         * serial.h: Ditto.
2807         * solib-frv.c: Ditto.
2808         * solib-irix.c: Ditto.
2809         * solib-osf.c: Ditto.
2810         * solib-pa64.c: Ditto.
2811         * solib-som.c: Ditto.
2812         * solib-sunos.c: Ditto.
2813         * solib-svr4.c: Ditto.
2814         * solib-target.c: Ditto.
2815         * solib.c: Ditto.
2816         * somread.c: Ditto.
2817         * source.c: Ditto.
2818         * stabsread.c: Ditto.
2819         * stabsread.c: Ditto.
2820         * stack.c: Ditto.
2821         * stack.h: Ditto.
2822         * symfile-mem.c: Ditto.
2823         * symfile.c: Ditto.
2824         * symfile.h: Ditto.
2825         * symmisc.c: Ditto.
2826         * symtab.c: Ditto.
2827         * symtab.h: Ditto.
2828         * target-descriptions.c: Ditto.
2829         * target-memory.c: Ditto.
2830         * target.c: Ditto.
2831         * target.h: Ditto.
2832         * terminal.h: Ditto.
2833         * thread.c: Ditto.
2834         * top.c: Ditto.
2835         * tracepoint.c: Ditto.
2836         * tracepoint.h: Ditto.
2837         * ui-file.c: Ditto.
2838         * ui-file.h: Ditto.
2839         * ui-out.h: Ditto.
2840         * user-regs.c: Ditto.
2841         * user-regs.h: Ditto.
2842         * utils.c: Ditto.
2843         * valarith.c: Ditto.
2844         * valops.c: Ditto.
2845         * valprint.c: Ditto.
2846         * valprint.h: Ditto.
2847         * value.c: Ditto.
2848         * varobj.c: Ditto.
2849         * varobj.h: Ditto.
2850         * vec.h: Ditto.
2851         * xcoffread.c: Ditto.
2852         * xcoffsolib.c: Ditto.
2853         * xcoffsolib.h: Ditto.
2854         * xml-syscall.c: Ditto.
2855         * xml-tdesc.c: Ditto.
2856
2857 2011-01-05  Michael Snyder  <msnyder@vmware.com>
2858
2859         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
2860         * cli/cli-decode.c: Ditto.
2861         * cli/cli-dump.c: Ditto.
2862         * cli/cli-logging.c: Ditto.
2863         * cli/cli-script.c: Ditto.
2864         * cli/cli-setshow.c: Ditto.
2865         * common/signals.c: Ditto.
2866         * mi/mi-cmd-break.c: Ditto.
2867         * mi/mi-cmd-disas.c: Ditto.
2868         * mi/mi-cmd-stack.c: Ditto.
2869         * mi/mi-cmd-var.c: Ditto.
2870         * mi/mi-cmds.c: Ditto.
2871         * mi/mi-common.h: Ditto.
2872         * mi/mi-console.c: Ditto.
2873         * mi/mi-interp.c: Ditto.
2874         * mi/mi-main.c: Ditto.
2875         * osf-share/cma_attr.c: Ditto.
2876         * osf-share/cma_deb_core.h: Ditto.
2877         * osf-share/cma_debug_client.h: Ditto.
2878         * osf-share/cma_handle.h: Ditto.
2879         * osf-share/cma_mutex.h: Ditto.
2880         * osf-share/cma_stack_int.h: Ditto.
2881         * osf-share/cma_tcb_defs.h: Ditto.
2882         * python/py-auto-load.c: Ditto.
2883         * python/py-breakpoint.c: Ditto.
2884         * python/py-cmd.c: Ditto.
2885         * python/py-frame.c: Ditto.
2886         * python/py-objfile.c: Ditto.
2887         * python/py-param.c: Ditto.
2888         * python/py-progspace.c: Ditto.
2889         * python/py-symbol.c: Ditto.
2890         * python/py-value.c: Ditto.
2891         * python/python-internal.h: Ditto.
2892         * python/python.c: Ditto.
2893         * tui/tui-data.c: Ditto.
2894         * tui/tui-disasm.c: Ditto.
2895         * tui/tui-hooks.c: Ditto.
2896         * tui/tui-io.c: Ditto.
2897         * tui/tui-layout.c: Ditto.
2898         * tui/tui-regs.c: Ditto.
2899         * tui/tui-source.c: Ditto.
2900         * tui/tui-stack.c: Ditto.
2901         * tui/tui-win.c: Ditto.
2902         * tui/tui-windata.c: Ditto.
2903         * tui/tui-winsource.c: Ditto.
2904
2905 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
2906
2907         * configure.ac, gdb.1: Copyright year update.
2908
2909 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2910
2911         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
2912         this_pc_in_block, morestack_msym and morestack_name.  Check for
2913         "__morestack" minimal symbol there.
2914
2915 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
2916
2917         * symfile.c (find_sym_fns): Add call to dont_repeat.
2918
2919 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
2920
2921         Copyright year update in most files (performed by copyright.sh).
2922
2923 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
2924
2925         * top.c (print_gdb_version): Update copyright year in version output.
2926
2927 For older changes see ChangeLog-2010.
2928 \f
2929 Local Variables:
2930 mode: change-log
2931 left-margin: 8
2932 fill-column: 74
2933 version-control: never
2934 coding: utf-8
2935 End: