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