OSDN Git Service

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