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