1 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3 Don't lose embedded_offset in printing routines throughout.
5 * valprint.h (val_print_array_elements): Change prototype.
6 * valprint.c (val_print_array_elements): Add `embedded_offset'
7 parameter, and adjust to pass it down to val_print, while passing
8 `valaddr' or `address' unmodified. Take embedded_offset into
9 account when checking repetitions.
10 * c-valprint.c (c_val_print): Pass embedded_offset to
11 val_print_array_elements instead of adjusting `valaddr' and
13 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
14 embedded_offset to val_print_array_elements instead of adjusting
16 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
17 * p-valprint.c (pascal_val_print): Pass embedded_offset to
18 val_print_array_elements and pascal_object_print_value_fields
19 instead of adjusting `valaddr'.
20 (pascal_object_print_value_fields): Add `offset' parameter, and
22 (pascal_object_print_value): Add `offset' parameter, and adjust to
24 (pascal_object_print_static_field): Use
25 value_contents_for_printing/value_embedded_offset, rather than
27 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
28 parameter, and adjust to use it. Use
29 value_contents_for_printing/value_embedded_offset, rather than
31 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
32 (ada_val_print_array): Add `offset' parameter, and adjust to use
34 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
35 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
36 Instead work with offsets. Use
37 value_contents_for_printing/value_embedded_offset, rather than
38 value_contents. Change `defer_val_int' local type to CORE_ADDR,
39 and use value_from_pointer to extract a target pointer, rather
40 than value_from_longest.
41 (print_variant_part): Add `offset' parameter. Replace
42 `outer_valaddr' parameter by a new `outer_offset' parameter.
43 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
44 (ada_value_print): Use
45 value_contents_for_printing/value_embedded_offset, rather than
47 (print_record): Add `offset' parameter, and adjust to pass it
49 (print_field_values): Add `offset' parameter. Replace
50 `outer_valaddr' parameter by a new `outer_offset' parameter.
51 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
52 Use value_contents_for_printing/value_embedded_offset, rather than
54 * d-valprint.c (dynamic_array_type): Use
55 value_contents_for_printing/value_embedded_offset, rather than
57 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
58 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
59 (java_print_value_fields): Take `offset' into account. Don't
60 re-adjust `valaddr'. Instead pass down adjusted offsets.
61 (java_val_print): Take `embedded_offset' into account. Pass it to
62 java_print_value_fields.
63 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
64 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
65 down adjusted offsets.
66 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
67 (f_val_print): Take `embedded_offset' into account.
69 2011-01-21 Joel Brobecker <brobecker@adacore.com>
71 * inflow.c: Include "gdbcmd.h".
72 (interactive_mode): New static global, moved here from top.c.
73 (show_interactive_mode): New function, moved here from top.c.
74 use gdb_has_a_terminal instead of input_from_terminal_p to
75 determine the current mode.
76 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
78 (_initialize_inflow): Add the "set/show interactive-mode"
79 commands. Moved here from top.c, after having adjusted slightly
81 * top.c (interactive_mode, show_interactive_mode): Delete, moved
83 (input_from_terminal_p): Remove handling of "interactive-mode"
84 setting, moved to infow.c.
85 (init_main): Remove creation of the "set/show interactive-mode"
86 commands, moved to inflow.c.
88 2011-01-19 Joel Brobecker <brobecker@adacore.com>
90 * NEWS: Add entry for native ia64-hpux support.
92 2011-01-19 Tom Tromey <tromey@redhat.com>
95 * thread.c (free_thread): Free 'name'.
96 (print_thread_info): Emit thread name. Change CLI output.
97 (thread_name_command): New function.
98 (do_captured_thread_select): Emit newline.
99 (_initialize_thread): Register 'thread name' command.
100 * target.h (struct target_ops) <to_thread_name>: New field.
101 (target_thread_name): New macro.
102 * target.c (update_current_target): Handle to_thread_name.
103 * python/py-infthread.c (thpy_get_name): New function.
104 (thpy_set_name): Likewise.
105 (thread_object_getset): Add "name".
106 * linux-nat.c (linux_nat_thread_name): New function.
107 (linux_nat_add_target): Set to_thread_name.
108 * gdbthread.h (struct thread_info) <name>: New field.
110 2011-01-18 Joel Brobecker <brobecker@adacore.com>
112 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
113 (ada_val_print_1): Likewise.
115 2011-01-18 Joel Brobecker <brobecker@adacore.com>
117 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
118 upper limit address is not greater than the function end address
119 when the upper limit could not be computed using the debugging
122 2011-01-17 Tom Tromey <tromey@redhat.com>
124 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
126 * utils.c: Include gdb_regex.h.
127 (do_regfree_cleanup): New function.
128 (make_regfree_cleanup): Likewise.
129 (get_regcomp_error): Likewise.
130 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
132 2011-01-17 Tom Tromey <tromey@redhat.com>
134 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
137 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
139 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
140 for internal variables.
141 (last_was_structop): New static variable.
142 (COMPLETE): New token.
143 (field_exp): New rule to group all '.' suffix handling.
144 Add mark_struct_expression calls when approriate to be able
145 to correctly find fields for completion.
146 (yylex): Adapt to handle field completion and set INTVAR when
149 2011-01-14 Yao Qi <yao@codesourcery.com>
151 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
152 save_reggroup, restore_reggroup and all_reggroup.
154 2011-01-14 Joel Brobecker <brobecker@adacore.com>
156 * ada-valprint. (ada_printchar): Use the correct type length
157 in call to ada_emit_char.
158 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
160 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
162 * solib-som.h (hpux_major_release): Declare variable here.
163 * solib-som.c: Remove <sys/utsname.h> header.
164 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
165 (hpux_major_release): Make global, change default value to
166 DEFAULT_HPUX_MAJOR_RELEASE.
167 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
168 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
169 Add "solib-som.h" header.
170 (set_hpux_major_release): New function.
171 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
173 2011-01-14 Mike Frysinger <vapier@gentoo.org>
175 * configure.tgt (*-*-uclinux*): Match more Linux os targets
177 2011-01-14 Joel Brobecker <brobecker@adacore.com>
179 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
180 new-line at end of warning message.
181 (ia64_hpux_store_register): Remove trailing new-line at end of
183 * ia64-hpux-tdep.c: Rephrase comment.
184 * solib-ia64-hpux.c (struct dld_info): Change type of field
185 dld_flags from "long long" to ULONGEST.
187 2011-01-14 Pedro Alves <pedro@codesourcery.com>
189 * target.h (deprecated_child_ops): Delete declaration.
190 * target.c (deprecated_child_ops): Delete definition.
192 2011-01-14 Pedro Alves <pedro@codesourcery.com>
194 * Makefile.in (hpux-thread.o): Delete rule.
195 * configure.ac: Don't check for HPUX DCE threads support.
196 * configure, config.in: Regenerate.
197 * hppa-hpux-nat.c (child_suppress_run): Delete.
198 (hppa_hpux_child_can_run): Delete.
199 (_initialize_hppa_hpux_nat): Don't override to_can_run.
200 * hpux-thread.c: Delete.
202 2011-01-13 Joel Brobecker <brobecker@adacore.com>
204 * hpux-thread.c (hpux_pid_to_str): Delete.
206 2011-01-13 Joel Brobecker <brobecker@adacore.com>
208 * ada-valprint.c (ada_emit_char): Remove strange code.
209 Check that c is <= UCHAR_MAX before passing it to isascii.
210 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
212 2011-01-13 Joel Brobecker <brobecker@adacore.com>
214 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
215 to the case where instream is stdin.
217 2011-01-13 Joel Brobecker <brobecker@adacore.com>
219 * ia64-tdep.h (struct regcache): Forward declare.
220 (struct ia64_infcall_ops): New struct type.
221 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
223 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
224 Renames ia64_find_global_pointer.
225 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
226 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
227 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
229 (ia64_infcall_ops): New static global constant.
230 (ia64_gdbarch_init): Set tdep->infcall_ops.
231 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
232 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
233 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
234 (ia64_hpux_dummy_code): New static global constant.
235 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
236 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
237 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
239 (ia64_hpux_infcall_ops): New static global constant.
240 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
241 for inferior function calls to work properly on ia64-hpux.
243 2011-01-13 Joel Brobecker <brobecker@adacore.com>
245 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
246 * ia64-tdep.h (struct frame_info): forward declaration.
247 (struct gdbarch_tdep): Add field size_of_register_frame.
248 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
249 to determine the size of the register frame.
250 (ia64_size_of_register_frame): New function.
251 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
252 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
253 (IA64_HPUX_UREG_REASON): New macro.
254 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
256 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
257 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
258 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
261 2011-01-13 Joel Brobecker <brobecker@adacore.com>
263 Add support for ia64-hpux.
264 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
265 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
267 * configure.host: Add handling for ia64-hpux hosts. Add associated
269 * configure.tgt: Add handling for ia64-hpux targets.
270 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
271 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
272 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
274 2011-01-13 Joel Brobecker <brobecker@adacore.com>
276 [ttrace] Compute thread list immediately after attach.
277 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
279 (inf_ttrace_attach): Use it.
281 2011-01-13 Joel Brobecker <brobecker@adacore.com>
283 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
284 if we could not determine the frame's function address. Instead,
285 use the frame's PC, and then continue.
287 2011-01-13 Joel Brobecker <brobecker@adacore.com>
289 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
292 2011-01-13 Joel Brobecker <brobecker@adacore.com>
294 * ia64-tdep.c (ia64_struct_type_p): New function.
295 (ia64_extract_return_value): Handle integral values that are
296 less than 8 bytes long.
297 (ia64_push_dummy_call): Likewise.
299 2011-01-13 Joel Brobecker <brobecker@adacore.com>
301 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
302 floatformat_ia64_ext.
303 (floatformat_ia64_ext_big): New static const.
304 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
306 2011-01-12 Tom Tromey <tromey@redhat.com>
308 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
310 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
311 (mi_cmd_thread_list_ids): Likewise.
312 (mi_cmd_data_list_changed_registers): Likewise.
313 (mi_cmd_data_list_register_values): Likewise.
314 (mi_cmd_data_write_register_values): Likewise.
315 (mi_cmd_data_evaluate_expression): Likewise.
316 (mi_cmd_data_read_memory): Likewise.
317 (mi_cmd_data_read_memory_bytes): Likewise.
318 (mi_cmd_data_write_memory): Likewise.
319 (mi_cmd_enable_timings): Likewise.
320 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
321 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
322 (mi_cmd_var_delete): Likewise.
323 (mi_cmd_var_set_format): Likewise.
324 (mi_cmd_var_show_format): Likewise.
325 (mi_cmd_var_info_num_children): Likewise.
326 (mi_cmd_var_list_children): Likewise.
327 (mi_cmd_var_info_type): Likewise.
328 (mi_cmd_var_info_expression): Likewise.
329 (mi_cmd_var_show_attributes): Likewise.
330 (mi_cmd_var_assign): Likewise.
331 (mi_cmd_var_update): Likewise.
332 (mi_cmd_enable_pretty_printing): Likewise.
333 (mi_cmd_var_set_update_range): Likewise.
334 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
336 (mi_cmd_target_file_put): Likewise.
337 (mi_cmd_target_file_delete): Likewise.
338 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
340 (mi_cmd_stack_info_depth): Likewise.
341 (mi_cmd_stack_list_locals): Likewise.
342 (mi_cmd_stack_list_args): Likewise.
343 (mi_cmd_stack_select_frame): Likewise.
344 (mi_cmd_stack_select_frame): Likewise.
345 (mi_cmd_stack_info_frame): Likewise.
346 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
348 (mi_cmd_file_list_exec_source_files): Likewise.
349 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
350 (mi_cmd_env_cd): Likewise.
351 (mi_cmd_env_path): Likewise.
352 (mi_cmd_env_dir): Likewise.
353 (mi_cmd_inferior_tty_show): Likewise.
354 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
355 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
356 (mi_cmd_break_watch): Likewise.
358 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
360 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
361 (ppc_linux_insert_hw_breakpoint): Likewise.
362 (ppc_linux_remove_hw_breakpoint): Likewise.
363 (ppc_linux_insert_watchpoint): Likewise.
365 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
366 Jan Kratochvil <jan.kratochvil@redhat.com>
368 PR fortran/11104 and DWARF unbound arrays detection.
369 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
370 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
371 unspecified upper bound.
372 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
373 variables array_size_array, tmp_type and offset_item. New variable
374 array. Remove call to f77_get_upperbound. New variables array_type
375 and index. Call value_subscripted_rvalue for each dimenasion. Remove
376 the final call to deprecated_set_value_type.
378 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
380 Make value allocations more lazy.
381 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
382 instead of allocate_value and set_value_lazy when possible.
383 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
384 instead of allocate_value and set_value_lazy.
385 * findvar.c (value_of_register_lazy): Likewise.
386 (read_var_value): Remove V preallocation, call just check_typedef in
387 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
388 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
389 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
390 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
391 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
392 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
393 the end, remove set_value_lazy there.
394 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
395 instead of allocate_value and set_value_lazy when possible.
396 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
397 * value.c (allocate_computed_value): Use allocate_value_lazy instead
398 of allocate_value and set_value_lazy.
399 (value_from_contents_and_address): Use allocate_value_lazy instead of
400 allocate_value and set_value_lazy when possible.
402 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
404 * disasm.c (dump_insns): Support dumping opcodes for MI.
405 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
406 dumping of instruction opcodes.
408 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
410 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
413 2011-01-11 Tom Tromey <tromey@redhat.com>
415 * thread.c (do_captured_thread_select): Emit newline before
418 2011-01-11 Michael Snyder <msnyder@vmware.com>
420 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
421 * score-tdep.c: Ditto.
422 * score-tdep.h: Ditto.
427 * ser-mingw.c: Ditto.
431 * sh64-tdep.c: Ditto.
432 * shnbsd-nat.c: Ditto.
436 * solib-darwin.c: Ditto.
437 * solib-frv.c: Ditto.
439 * solib-irix.c: Ditto.
440 * solib-osf.c: Ditto.
441 * solib-pa64.c: Ditto.
442 * solib-som.c: Ditto.
443 * solib-spu.c: Ditto.
444 * solib-sunos.c: Ditto.
445 * solib-svr4.c: Ditto.
447 * sol-thread.c: Ditto.
451 * sparc64-linux-tdep.c: Ditto.
452 * sparc64-tdep.c: Ditto.
453 * sparc-linux-nat.c: Ditto.
454 * sparc-linux-tdep.c: Ditto.
455 * sparc-sol2-nat.c: Ditto.
456 * sparc-sol2-tdep.c: Ditto.
457 * sparc-tdep.c: Ditto.
458 * sparc-tdep.h: Ditto.
460 * stabsread.c: Ditto.
461 * stabsread.h: Ditto.
469 * target-descriptions.c: Ditto.
470 * target-descriptions.h: Ditto.
472 * target-memory.c: Ditto.
476 * tracepoint.c: Ditto.
477 * tracepoint.h: Ditto.
478 * trad-frame.h: Ditto.
479 * typeprint.c: Ditto.
481 2011-01-11 Michael Snyder <msnyder@vmware.com>
483 * ui-file.c: Comment cleanup, mostly periods and spaces.
488 * v850-tdep.c: Ditto.
501 * windows-nat.c: Ditto.
502 * windows-tdep.c: Ditto.
503 * xcoffread.c: Ditto.
504 * xcoffsolib.c: Ditto.
505 * xml-support.c: Ditto.
506 * xstormy16-tdep.c: Ditto.
507 * xtensa-tdep.c: Ditto.
508 * xtensa-tdep.h: Ditto.
510 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
512 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
513 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
515 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
516 Thiago Jung Bauermann <bauerman@br.ibm.com>
518 Implement support for PowerPC BookE ranged watchpoints.
520 (struct breakpoint_ops) <resources_needed>: New method.
521 Initialize to NULL in all existing breakpoint_ops instances.
522 (struct breakpoint) <exact>: New field.
523 (target_exact_watchpoints): Declare external global.
524 * breakpoint.c (target_exact_watchpoints): New global flag.
525 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
526 b->enable_state to bp_enabled before calling
527 hw_watchpoint_used_count.
528 (hw_watchpoint_used_count): Iterate over all bp_locations in a
529 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
531 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
532 if the watchpoint is exact.
533 (resources_needed_watchpoint): New function.
534 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
535 (watch_command_1): Set b->exact if the user asked for an exact
536 watchpoint and one can be set.
537 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
538 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
539 the user asks for an exact watchpoint and one can be set. Return
540 number of needed debug registers to watch the expression.
541 * gdbtypes.c (is_scalar_type): New function, based on
542 valprint.c:scalar_type_p.
543 (is_scalar_type_recursive): New function.
544 * gdbtypes.h (is_scalar_type_recursive): Declare.
545 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
546 handle regions when ranged watchpoints are available.
547 (create_watchpoint_request): New function.
548 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
549 create_watchpoint_request.
550 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
551 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
552 `set powerpc' and `show powerpc' commands.
553 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
554 Mention documentation comment in the target macro.
555 (target_region_ok_for_hw_watchpoint): Document return value.
557 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
559 * breakpoint.c (update_watchpoint): Decide on using a software or
560 hardware watchpoint after the bp_locations are created.
562 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
564 Convert hardware watchpoints to use breakpoint_ops.
565 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
566 <insert_location>: ... this. Return int instead of void.
567 Accept pointer to struct bp_location instead of pointer to
568 struct breakpoint. Adapt all implementations.
569 (breakpoint_ops) <remove>: Rename to...
570 <remove_location>: ... this. Accept pointer to struct bp_location
571 instead of pointer to struct breakpoint. Adapt all implementations.
572 * breakpoint.c (insert_catchpoint): Delete function.
573 (insert_bp_location): Call the watchpoint or catchpoint's
574 breakpoint_ops.insert method.
575 (remove_breakpoint_1): Call the watchpoint or catchpoint's
576 breakpoint_ops.remove method.
577 (insert_watchpoint, remove_watchpoint): New functions.
578 (watchpoint_breakpoint_ops): New structure.
579 (watch_command_1): Initialize the OPS field.
580 * inf-child.c (inf_child_insert_fork_catchpoint)
581 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
582 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
583 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
585 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
586 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
587 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
588 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
589 * target.c (update_current_target): Change default implementation of
590 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
591 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
592 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
593 to_set_syscall_catchpoint to return_one.
594 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
595 (debug_to_insert_exec_catchpoint): Report return value.
596 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
597 (to_insert_exec_catchpoint): Change declaration to return int instead
600 2011-01-11 Michael Snyder <msnyder@vmware.com>
602 * arm-tdep.c: Internationalization.
605 * fork-child.c: Ditto.
606 * nto-procfs.c: Ditto.
607 * ppc-sysv-tdep.c: Ditto.
609 * remote-mips.c: Ditto.
611 * rs6000-nat.c: Ditto.
612 * rs6000-tdep.c: Ditto.
616 * xml-support.c: Ditto.
617 * mi/mi-cmd-break.c: Ditto.
618 * mi/mi-cmd-var.c: Ditto.
619 * mi/mi-interp.c: Ditto.
620 * mi/mi-main.c: Ditto.
622 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
624 * remote-sim.c (gdbsim_store_register): Update API to
625 sim_store_register to check more error conditions.
627 2011-01-10 Michael Snyder <msnyder@vmware.com>
629 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
633 * objc-lang.c: Ditto.
637 * opencl-lang.c: Ditto.
640 * parser-defs.h: Ditto.
643 * posix-hdep.c: Ditto.
644 * ppcbug-rom.c: Ditto.
645 * ppc-linux-nat.c: Ditto.
646 * ppc-linux-tdep.c: Ditto.
647 * ppc-linux-tdep.h: Ditto.
648 * ppcnbsd-tdep.c: Ditto.
649 * ppcobsd-tdep.c: Ditto.
650 * ppcobsd-tdep.h: Ditto.
651 * ppc-sysv-tdep.c: Ditto.
655 * proc-flags.c: Ditto.
657 * proc-utils.h: Ditto.
658 * progspace.h: Ditto.
659 * prologue-value.c: Ditto.
660 * prologue-value.h: Ditto.
663 * p-typeprint.c: Ditto.
664 * p-valprint.c: Ditto.
665 * ravenscar-sparc-thread.c: Ditto.
666 * ravenscar-thread.c: Ditto.
667 * ravenscar-thread.h: Ditto.
672 * remote-fileio.c: Ditto.
673 * remote-fileio.h: Ditto.
675 * remote-m32r-sdi.c: Ditto.
676 * remote-mips.c: Ditto.
677 * remote-sim.c: Ditto.
678 * rs6000-aix-tdep.c: Ditto.
679 * rs6000-nat.c: Ditto.
680 * rs6000-tdep.c: Ditto.
682 2011-01-10 Michael Snyder <msnyder@vmware.com>
684 * charset.c (validate): Internationalization.
685 * coffread.c (read_one_sym): Ditto.
686 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
687 * h8300-tdep.c (H8300_extract_return_value): Ditto.
688 * inflow.c (new_tty): Ditto.
689 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
690 * m32c-tdep.c (m32c_return_value): Ditto.
691 * mep-tdep.c (mep_store_return_value): Ditto.
692 * score-tdep.c (score7_fetch_insn): Ditto.
693 * ser-mingw.c (pipe_windows_open): Ditto.
694 * sh64-tdep.c (sh64_extract_return_value): Ditto.
695 * spu-tdep.c (spu_register_type): Ditto.
696 * tracepoint.c (trace_find_command): Ditto.
697 * valarith.c (value_pos): Ditto.
699 2011-01-10 Joel Brobecker <brobecker@adacore.com>
701 * ada-valprint.c (printstr): Minor comment reformatting.
703 2011-01-08 Michael Snyder <msnyder@vmware.com>
705 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
708 2011-01-08 Michael Snyder <msnyder@vmware.com>
710 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
711 * hppa-hpux-tdep.c: Ditto.
712 * hppa-linux-nat.c: Ditto.
713 * hppa-linux-tdep.c: Ditto.
714 * hppanbsd-tdep.c: Ditto.
715 * hppa-tdep.c: Ditto.
716 * hppa-tdep.h: Ditto.
717 * hpux-thread.c: Ditto.
718 * i386-cygwin-tdep.c: Ditto.
719 * i386-darwin-nat.c: Ditto.
720 * i386gnu-nat.c: Ditto.
721 * i386-linux-nat.c: Ditto.
722 * i386-linux-tdep.c: Ditto.
725 * i386nbsd-tdep.c: Ditto.
726 * i386-sol2-nat.c: Ditto.
727 * i386-stub.c: Ditto.
728 * i386-tdep.c: Ditto.
729 * i386-tdep.h: Ditto.
730 * i387-tdep.c: Ditto.
731 * ia64-linux-nat.c: Ditto.
732 * ia64-linux-tdep.c: Ditto.
733 * ia64-tdep.c: Ditto.
744 * iq2000-tdep.c: Ditto.
745 * irix5-nat.c: Ditto.
751 * jv-typeprint.c: Ditto.
752 * jv-valprint.c: Ditto.
756 * linux-fork.c: Ditto.
757 * linux-nat.c: Ditto.
758 * linux-thread-db.c: Ditto.
759 * lm32-tdep.c: Ditto.
761 2011-01-08 Michael Snyder <msnyder@vmware.com>
763 * m2-exp.y: Comment cleanup, mostly periods and spaces.
765 * m2-typeprint.c: Ditto.
766 * m2-valprint.c: Ditto.
767 * m32c-tdep.c: Ditto.
768 * m32r-linux-nat.c: Ditto.
770 * m32r-tdep.c: Ditto.
771 * m32r-tdep.h: Ditto.
772 * m68hc11-tdep.c: Ditto.
773 * m58klinux-nat.c: Ditto.
774 * m68k-tdep.c: Ditto.
775 * m88k-tdep.c: Ditto.
776 * m88k-tdep.h: Ditto.
777 * machoread.c: Ditto.
783 * mdebugread.c: Ditto.
784 * mdebugread.h: Ditto.
787 * memory-map.h: Ditto.
789 * microblaze-rom.c: Ditto.
790 * microblaze-tdep.c: Ditto.
792 * mips-irix-tdep.c: Ditto.
793 * mips-linux-nat.c: Ditto.
794 * mips-linux-tdep.c: Ditto.
795 * mips-linux-tdep.h: Ditto.
796 * mipsnbsd-nat.c: Ditto.
797 * mipsnbsd-tdep.c: Ditto.
799 * mips-tdep.c: Ditto.
800 * mips-tdep.h: Ditto.
801 * mn10300-linux-tdep.c: Ditto.
802 * mn10300-tdep.c: Ditto.
803 * mn10300-tdep.h: Ditto.
806 * moxie-tdep.c: Ditto.
807 * moxie-tdep.h: Ditto.
810 2011-01-08 Mike Frysinger <vapier@gentoo.org>
812 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
814 2011-01-08 Robert Millan <rmh@gnu.org>
816 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
818 2011-01-07 Michael Snyder <msnyder@vmware.com>
820 * charset.c (_initialize_charset): Fix typo in string.
822 2011-01-07 Michael Snyder <msnyder@vmware.com>
824 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
826 * tui/tui-layout.c (tui_set_layout_for_display_command):
827 Split line so that operator goes to beginning of line.
828 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
829 assignment out of if statement.
831 2011-01-07 Michael Snyder <msnyder@vmware.com>
833 * ada-lang.c: Comment cleanup, mostly periods and spaces.
835 * ada-tasks.c: Ditto.
836 * ada-valprint.c: Ditto.
837 * aix-threads.c: Ditto.
838 * alpha-linux-nat.c: Ditto.
839 * alpha-linux-tdep.c: Ditto.
840 * alpha-mdebug-tdep.c: Ditto.
841 * alpha-nat.c: Ditto.
842 * alpha-osf1-tdep.c: Ditto.
843 * alpha-tdep.c: Ditto.
844 * alphabsd-nat.c: Ditto.
845 * alphabsd-tdep.c: Ditto.
846 * amd64-darwin-tdep.c: Ditto.
847 * amd64-linux-nat.c: Ditto.
848 * amd64-linux-tdep.c: Ditto.
849 * amd64-sol2-tdep.c: Ditto.
850 * amd64-tdep.c: Ditto.
851 * amd64-fbsd-tdep.c: Ditto.
852 * amd64-nbsd-tdep.c: Ditto.
853 * amd64-obsd-tdep.c: Ditto.
854 * amd64-linux-nat.c: Ditto.
855 * amd64-linux-tdep.c: Ditto.
858 * armnbsd-nat.c: Ditto.
860 * bfin-tdep.c: Ditto.
862 * c-typeprintc: Ditto.
863 * c-valprint.c: Ditto.
864 * coff-pe-read.h: Ditto.
865 * coffreead.c: Ditto.
866 * cris-tdep.c: Ditto.
868 * darwin-nat-info.c: Ditto.
869 * darwin-nat.c: Ditto.
874 * dec-thread.c: Ditto.
877 * dicos-tdep.c: Ditto.
878 * dictionary.c: Ditto.
879 * dictionary.h: Ditto.
880 * dink32-rom.c: Ditto.
884 * dummy-frame.c: Ditto.
885 * dwarf2-frame.c: Ditto.
886 * dwarf2expr.c: Ditto.
887 * dwarf2loc.c: Ditto.
888 * dwarf2read.c: Ditto.
892 * event-top.h: Ditto.
893 * exceptions.c: Ditto.
894 * exceptions.h: Ditto.
897 * expression.h: Ditto.
901 * f-typeprint.c: Ditto.
902 * f-valprint.c: Ditto.
905 * fork-child.c: Ditto.
908 * frv-linux-tdep.c: Ditto.
911 * gdb-stabs.h: Ditto.
912 * gdb_assert.h: Ditto.
913 * gdb_string.h: Ditto.
914 * gdb_thread_db.h: Ditto.
918 * gdbthread.h: Ditto.
923 * gnu-v2-abi.c: Ditto.
924 * gnu-v3-abi.c: Ditto.
926 * gdbarch.c: Regenerate.
927 * gdbarch.h: Regenerate.
929 2011-01-07 Michael Snyder <msnyder@vmware.com>
931 * ax-gdb.c: Adjust some long output strings.
932 * breakpoint.c: Ditto.
937 * linux-nat.c: Ditto.
938 * solib-pa64.c: Ditto.
939 * solib-som.c: Ditto.
941 2011-01-06 Tom Tromey <tromey@redhat.com>
945 * python/python.c (GdbMethods): Add "newest_frame" method.
946 * python/python-internal.h (gdbpy_newest_frame): Declare.
947 * python/py-frame.c (gdbpy_newest_frame): New function.
949 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
951 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
952 * jit.c (jit_debug): New variable.
953 (show_jit_debug): New function.
954 (struct target_buffer): Use ULONGEST.
955 (bfd_open_from_target_memory): Likewise.
956 (jit_register_code, jit_inferior_init): Add debug output.
957 (_initialize_jit): Register "debug jit" command.
959 2011-01-06 Tom Tromey <tromey@redhat.com>
961 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
962 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
965 2011-01-06 Tom Tromey <tromey@redhat.com>
967 * python/py-frame.c (frapy_block): Use get_frame_block.
969 2011-01-06 Joel Brobecker <brobecker@adacore.com>
971 Do not stop on SIGPRIO signals by default
972 * infrun.c (_initialize_infrun): Unset signal_stop and
973 signal_print for TARGET_SIGNAL_PRIO.
975 2011-01-06 Joel Brobecker <brobecker@adacore.com>
977 * ada-tasks.c: Fix style violation in comment.
979 2011-01-06 Joel Brobecker <brobecker@adacore.com>
981 * linespec.c (decode_compound, find_method): Remove trailing \n
982 at end of error string.
983 * solib-irix.c (irix_current_sos): Likewise.
984 * varobj.c (uninstall_variable): Likewise.
986 2011-01-06 Joel Brobecker <brobecker@adacore.com>
988 * copyright.py: New script.
989 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
990 Launch emacs without exec'ing. Call copyright.py afterwards.
992 2011-01-05 Michael Snyder <msnyder@vmware.com>
994 * addrmap.c: Shorten lines of >= 80 columns.
995 * arch-utils.c: Ditto.
996 * arch-utils.h: Ditto.
998 * ax-general.c: Ditto.
1000 * blockframe.c: Ditto.
1001 * breakpoint.c: Ditto.
1002 * buildsym.c: Ditto.
1004 * c-typeprint.c: Ditto.
1006 * coffread.c: Ditto.
1010 * cp-namespace.c: Ditto.
1011 * cp-support.c: Ditto.
1012 * dbug-rom.c: Ditto.
1017 * dictionary.c: Ditto.
1019 * doublest.c: Ditto.
1020 * dwarf2-frame.c: Ditto.
1021 * dwarf2expr.c: Ditto.
1022 * dwarf2loc.c: Ditto.
1023 * dwarf2read.c: Ditto.
1026 * event-loop.c: Ditto.
1027 * event-loop.h: Ditto.
1028 * exceptions.h: Ditto.
1030 * expprint.c: Ditto.
1031 * expression.h: Ditto.
1033 * f-valprint.c: Ditto.
1035 * frame-base.c: Ditto.
1036 * frame-unwind.c: Ditto.
1037 * frame-unwind.h: Ditto.
1041 * gdb-stabs.h: Ditto.
1042 * gdb_assert.h: Ditto.
1043 * gdb_dirent.h: Ditto.
1044 * gdb_obstack.h: Ditto.
1046 * gdbtypes.c: Ditto.
1047 * gdbtypes.h: Ditto.
1048 * inf-ttrace.c: Ditto.
1053 * inline-frame.h: Ditto.
1054 * language.c: Ditto.
1055 * language.h: Ditto.
1056 * libunwind-frame.c: Ditto.
1057 * libunwind-frame.h: Ditto.
1058 * linespec.c: Ditto.
1059 * linux-nat.c: Ditto.
1060 * linux-nat.h: Ditto.
1061 * linux-thread-db.c: Ditto.
1062 * machoread.c: Ditto.
1063 * macroexp.c: Ditto.
1064 * macrotab.c: Ditto.
1067 * mdebugread.c: Ditto.
1072 * objfiles.c: Ditto.
1073 * objfiles.h: Ditto.
1075 * p-typeprint.c: Ditto.
1076 * p-valprint.c: Ditto.
1078 * printcmd.c: Ditto.
1079 * proc-events.c: Ditto.
1081 * progspace.c: Ditto.
1082 * progspace.h: Ditto.
1083 * psympriv.h: Ditto.
1086 * regcache.c: Ditto.
1087 * regcache.h: Ditto.
1088 * remote-fileio.c: Ditto.
1090 * ser-mingw.c: Ditto.
1092 * ser-unix.c: Ditto.
1095 * solib-frv.c: Ditto.
1096 * solib-irix.c: Ditto.
1097 * solib-osf.c: Ditto.
1098 * solib-pa64.c: Ditto.
1099 * solib-som.c: Ditto.
1100 * solib-sunos.c: Ditto.
1101 * solib-svr4.c: Ditto.
1102 * solib-target.c: Ditto.
1106 * stabsread.c: Ditto.
1107 * stabsread.c: Ditto.
1110 * symfile-mem.c: Ditto.
1116 * target-descriptions.c: Ditto.
1117 * target-memory.c: Ditto.
1120 * terminal.h: Ditto.
1123 * tracepoint.c: Ditto.
1124 * tracepoint.h: Ditto.
1128 * user-regs.c: Ditto.
1129 * user-regs.h: Ditto.
1131 * valarith.c: Ditto.
1133 * valprint.c: Ditto.
1134 * valprint.h: Ditto.
1139 * xcoffread.c: Ditto.
1140 * xcoffsolib.c: Ditto.
1141 * xcoffsolib.h: Ditto.
1142 * xml-syscall.c: Ditto.
1143 * xml-tdesc.c: Ditto.
1145 2011-01-05 Michael Snyder <msnyder@vmware.com>
1147 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
1148 * cli/cli-decode.c: Ditto.
1149 * cli/cli-dump.c: Ditto.
1150 * cli/cli-logging.c: Ditto.
1151 * cli/cli-script.c: Ditto.
1152 * cli/cli-setshow.c: Ditto.
1153 * common/signals.c: Ditto.
1154 * mi/mi-cmd-break.c: Ditto.
1155 * mi/mi-cmd-disas.c: Ditto.
1156 * mi/mi-cmd-stack.c: Ditto.
1157 * mi/mi-cmd-var.c: Ditto.
1158 * mi/mi-cmds.c: Ditto.
1159 * mi/mi-common.h: Ditto.
1160 * mi/mi-console.c: Ditto.
1161 * mi/mi-interp.c: Ditto.
1162 * mi/mi-main.c: Ditto.
1163 * osf-share/cma_attr.c: Ditto.
1164 * osf-share/cma_deb_core.h: Ditto.
1165 * osf-share/cma_debug_client.h: Ditto.
1166 * osf-share/cma_handle.h: Ditto.
1167 * osf-share/cma_mutex.h: Ditto.
1168 * osf-share/cma_stack_int.h: Ditto.
1169 * osf-share/cma_tcb_defs.h: Ditto.
1170 * python/py-auto-load.c: Ditto.
1171 * python/py-breakpoint.c: Ditto.
1172 * python/py-cmd.c: Ditto.
1173 * python/py-frame.c: Ditto.
1174 * python/py-objfile.c: Ditto.
1175 * python/py-param.c: Ditto.
1176 * python/py-progspace.c: Ditto.
1177 * python/py-symbol.c: Ditto.
1178 * python/py-value.c: Ditto.
1179 * python/python-internal.h: Ditto.
1180 * python/python.c: Ditto.
1181 * tui/tui-data.c: Ditto.
1182 * tui/tui-disasm.c: Ditto.
1183 * tui/tui-hooks.c: Ditto.
1184 * tui/tui-io.c: Ditto.
1185 * tui/tui-layout.c: Ditto.
1186 * tui/tui-regs.c: Ditto.
1187 * tui/tui-source.c: Ditto.
1188 * tui/tui-stack.c: Ditto.
1189 * tui/tui-win.c: Ditto.
1190 * tui/tui-windata.c: Ditto.
1191 * tui/tui-winsource.c: Ditto.
1193 2011-01-05 Joel Brobecker <brobecker@adacore.com>
1195 * configure.ac, gdb.1: Copyright year update.
1197 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1199 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
1200 this_pc_in_block, morestack_msym and morestack_name. Check for
1201 "__morestack" minimal symbol there.
1203 2011-01-03 Joel Brobecker <brobecker@adacore.com>
1205 * symfile.c (find_sym_fns): Add call to dont_repeat.
1207 2011-01-01 Joel Brobecker <brobecker@adacore.com>
1209 Copyright year update in most files (performed by copyright.sh).
1211 2011-01-01 Joel Brobecker <brobecker@adacore.com>
1213 * top.c (print_gdb_version): Update copyright year in version output.
1215 For older changes see ChangeLog-2010.
1221 version-control: never