OSDN Git Service

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