1 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7 * mips-linux-tdep.c: Include xml-syscall.h.
8 (mips_linux_get_syscall_number): New function.
9 (mips_linux_init_abi): Add calls to
10 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
11 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
13 * syscalls/mips-n32-linux.xml: New file.
14 * syscalls/mips-n64-linux.xml: New file.
15 * syscalls/mips-o32-linux.xml: New file.
17 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
19 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
20 Complain about inverted range entries.
21 (dwarf2_record_block_ranges): Likewise.
23 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
26 * breakpoint.c (update_watchpoint): Fix name of the
27 update_global_location_list function.
28 (print_one_breakpoint): Fix typo.
29 (_initialize_breakpoint): Remove extra space in hbreak help
31 * breakpoint.h (struct bp_location) <length>: Fix field
34 2011-02-04 Pedro Alves <pedro@codesourcery.com>
36 * regcache.c (registers_changed_ptid): Don't explictly always
37 clear `current_regcache'. Only clear current_thread_ptid and
38 current_thread_arch when PTID matches. Only reinit the frame
39 cache if PTID matches the current inferior_ptid. Move alloca(0)
41 (registers_changed): ... here.
43 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
45 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
46 starts with __stack_chk_guard as stack guard symbol.
48 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
50 * disasm.c (compare_lines): Handle the end of sequence markers
51 within the line table to better support disassembling over
52 compilation unit boundaries.
54 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
56 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
57 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
58 implementation even if no symbols are available.
59 (thumb_analyze_prologue): Update call to skip_prologue_function.
60 (arm_analyze_prologue): Likewise.
62 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
64 * arm-tdep.c: Include "observer.h".
65 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
66 (arm_exidx_data_key): New static variable.
67 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
68 (struct arm_exidx_data): Likewise.
69 (arm_exidx_data_free): New function.
70 (arm_compare_exidx_entries): Likewise.
71 (arm_obj_section_from_vma): Likewise.
72 (arm_exidx_new_objfile): Likewise.
73 (arm_find_exidx_entry): Likewise.
74 (arm_exidx_fill_cache): Likewise.
75 (arm_exidx_unwind_sniffer): Likewise.
76 (arm_exidx_unwind): New global variable.
77 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
78 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
79 observer. Register arm_exidx_data_key as objfile data.
81 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
83 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
84 due to accessing uninitialized variable. Fix indentation.
86 2011-02-02 Pedro Alves <pedro@codesourcery.com>
88 * c-valprint.c (c_value_print): When doing virtual base pointer
89 adjustment, create a new value with adjusted contents rather than
90 changing the contents of the value being printed (and getting it
93 2011-02-02 Pedro Alves <pedro@codesourcery.com>
95 * xml-support.c (xml_find_attribute): New.
96 (xinclude_start_include): Use it.
97 * xml-support.h (xml_find_attribute): Declare.
98 * memory-map.c (memory_map_start_memory)
99 (memory_map_start_property): Use xml_find_attribute.
100 * osdata.c (osdata_start_osdata, osdata_start_column): Use
102 * remote.c (start_thread): Use xml_find_attribute.
103 * solib-target.c (library_list_start_segment)
104 (library_list_start_section, library_list_start_library)
105 (library_list_start_list): Use xml_find_attribute.
106 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
107 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
108 (tdesc_start_field): Use xml_find_attribute.
110 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
112 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
113 (BUILD_OCL_VTYPES): Update.
115 2011-02-02 Joel Brobecker <brobecker@adacore.com>
117 * configure.ac: Work around non-GNU sed limitation when computing
118 python version number.
119 * configure: Regenerate.
121 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
123 Fix debug printing of TYPE_INSTANCE.
124 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
125 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
127 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
129 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
130 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
131 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
132 * ada-operator.inc: Rename the file to ...
133 * ada-operator.def: ... here, wrap all the entries by macro OP.
134 * expprint.c (op_name_standard): Remove all the entries. Include
135 "std-operator.def" instead.
136 * expression.h (enum exp_opcode): Include "std-operator.def" and
137 "ada-operator.def". Move all the entries ...
138 * std-operator.def: ... here, wrap all the entries by macro OP.
140 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
142 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
143 * breakpoint.c (remove_jit_event_breakpoints): New function.
144 * jit.c (jit_descriptor_addr): Delete.
145 (registering_code): Delete.
147 (jit_inferior_data): New variable.
148 (struct jit_inferior_data): New type.
149 (get_jit_inferior_data): New function.
150 (jit_inferior_data_cleanup): New function.
151 (jit_read_descriptor): Adjust.
152 (jit_register_code): Adjust.
153 (jit_breakpoint_re_set_internal): New function; move code here ...
154 (jit_inferior_init): ... from here.
155 (jit_breakpoint_re_set): Adjust.
156 (jit_reset_inferior_data_and_breakpoints): New function.
157 (jit_inferior_created_observer): Adjust.
158 (jit_inferior_exit_hook): Adjust.
159 (jit_executable_changed_observer): New function.
160 (jit_event_handler): Adjust.
161 (_initialize_jit): Adjust.
163 2011-01-31 Michael Snyder <msnyder@vmware.com>
165 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
168 2011-01-31 Tom Tromey <tromey@redhat.com>
171 * python/python.c (execute_gdb_command): Call
173 * top.c (suppress_dont_repeat): New global.
174 (dont_repeat): Use it.
175 (prevent_dont_repeat): New function.
176 * command.h (prevent_dont_repeat): Declare.
178 2011-01-31 Tom Tromey <tromey@redhat.com>
180 * infcmd.c (finish_backward): Use breakpoint_set_silent.
181 * python/py-breakpoint.c (bppy_set_silent): Use
182 breakpoint_set_silent.
183 (bppy_set_thread): Use breakpoint_set_thread.
184 (bppy_set_task): Use breakpoint_set_task.
185 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
186 (breakpoint_set_task): Declare.
187 (make_breakpoint_silent): Remove.
188 * breakpoint.c (breakpoint_set_silent): New function.
189 (breakpoint_set_thread): Likewise.
190 (breakpoint_set_task): Likewise.
191 (make_breakpoint_silent): Remove.
193 2011-01-31 Tom Tromey <tromey@redhat.com>
195 * breakpoint.h (user_breakpoint_p): Declare.
196 * breakpoint.c (user_breakpoint_p): New function.
197 (breakpoint_1): Use it.
198 (save_breakpoints): Likewise.
200 2011-01-31 Joel Brobecker <brobecker@adacore.com>
202 * configure.ac: Add handling of Python distribution on Windows.
203 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
204 sysconfig variables are not defined, then do not use them.
205 On Windows, if LIBPL is not defined, then use prefix + '/libs'
206 instead. On Windows, return all paths using forward-slashes
207 rather than backslashes.
209 2011-01-31 Joel Brobecker <brobecker@adacore.com>
211 * configure.ac: Remove fallback behavior for building
212 against Python. Remove tweaking of Python include path.
213 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
214 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
215 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
216 Always restore CPPFLAGS and LIBS after linking test.
217 * configure: Regenerated.
218 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
219 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
220 * python/python-internal.h: Adjust includes of Python .h files.
222 2011-01-31 Joel Brobecker <brobecker@adacore.com>
224 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
227 2011-01-31 Joel Brobecker <brobecker@adacore.com>
229 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
232 2011-01-31 Yao Qi <yao@codesourcery.com>
234 * arm-linux-nat.c: Update calls to regcache_register_status
235 instead of regcache_valid_p.
236 * aix-thread.c: Likewise.
237 * i386gnu-nat.c: Likewise.
239 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
242 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
243 touching TYPE_FIELD_ARTIFICIAL.
245 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
247 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
250 2011-01-28 Pedro Alves <pedro@codesourcery.com>
252 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
253 selected, don't try iterating over the traceframe's blocks.
254 (tfile_has_stack): If there's no traceframe selected, then there's
256 (tfile_has_registers): If there's no traceframe selected, then
257 there's no registers.
259 2011-01-28 Pedro Alves <pedro@codesourcery.com>
261 * target.c (memory_xfer_partial): No need to restore shadows if we
262 haven't read anything.
264 2011-01-28 Pedro Alves <pedro@codesourcery.com>
266 * mips-tdep.c (mips_print_register): Use get_frame_register_value
267 and val_print_scalar_formatted.
269 2011-01-27 Pedro Alves <pedro@codesourcery.com>
271 * tracepoint.c (tfile_read): New.
272 (tfile_open): Use it.
273 (tfile_get_traceframe_address): Use it.
274 (tfile_trace_find): Use it.
275 (walk_blocks_callback_func): New typedef.
276 (match_blocktype): New function.
277 (traceframe_walk_blocks): New function.
278 (traceframe_find_block_type): New function.
279 (tfile_fetch_registers, tfile_xfer_partial)
280 (tfile_get_trace_state_variable_value): Use
281 traceframe_find_block_type and tfile_read.
283 2011-01-26 Kevin Buettner <kevinb@redhat.com>
285 * remote-mips.c: Add internationalization mark ups. Remove
286 trailing \n from already marked up strings.
288 2011-01-26 Tom Tromey <tromey@redhat.com>
290 * python/py-prettyprint.c (print_string_repr): Clear
291 'addressprint' option when calling val_print_string.
292 (print_children): Handle Val_pretty_default. Clear 'addressprint'
293 option when calling val_print_string.
295 2011-01-26 Tom Tromey <tromey@redhat.com>
297 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
299 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
301 (gdb_py_longest, gdb_py_ulongest): New typedefs.
302 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
303 (gdb_py_long_as_ulongest): New defines.
304 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
305 (gdb_py_int_as_long): Declare.
306 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
307 GDB_PY_LL_ARG, gdb_py_object_from_longest.
308 (valpy_long): Add comment.
309 * python/py-utils.c (get_addr_from_python): Use
310 gdb_py_long_as_ulongest. Handle overflow properly.
311 (gdb_py_object_from_longest): New function.
312 (gdb_py_object_from_ulongest): Likewise.
313 (gdb_py_int_as_long): Likewise.
314 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
315 * python/py-symtab.c (salpy_get_pc): Use
316 gdb_py_long_from_ulongest.
317 (salpy_get_line): Use PyInt_FromLong.
318 * python/py-param.c (set_parameter_value): Use
320 * python/py-lazy-string.c (stpy_get_address): Use
321 gdb_py_long_from_ulongest.
322 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
323 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
324 * python/py-breakpoint.c (bppy_set_thread): Use
326 (bppy_set_task): Likewise.
327 (bppy_set_ignore_count): Likewise.
328 (bppy_set_hit_count): Likewise.
329 * python/py-block.c (blpy_get_start): Use
330 gdb_py_object_from_ulongest.
331 (blpy_get_end): Likewise.
332 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
334 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
337 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
338 * gdb/solib.c (solib_read_symbols): Check for addr_low in
339 equality test for objfile, initialize addr_low if needed.
341 2011-01-25 Pedro Alves <pedro@codesourcery.com>
343 * tui/tui-regs.c (tui_register_format): Remove dead code.
345 2011-01-25 Pedro Alves <pedro@codesourcery.com>
347 * printcmd.c (print_formatted): Use val_print_scalar_formatted
348 instead of print_scalar_formatted.
349 (print_scalar_formatted): Don't handle 's' format strings here,
350 and add an assertion that we never see such format here.
351 * valprint.h (val_print_scalar_formatted): Declare.
352 * valprint.c (val_print_scalar_formatted): New.
353 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
354 instead of print_scalar_formatted.
355 * jv-valprint.c (java_val_print): Ditto.
356 * p-valprint.c (pascal_val_print): Ditto.
357 * ada-valprint.c (ada_val_print_1): Ditto.
358 * f-valprint.c (f_val_print): Ditto.
359 * infcmd.c (registers_info): Ditto.
360 * m2-valprint.c (m2_val_print): Ditto.
362 2011-01-25 Pedro Alves <pedro@codesourcery.com>
364 * m2-valprint.c (print_unbounded_array): Pass
365 value_contents_for_printing rather than value_contents, to
366 m2_print_array_contents. Also pass in the value.
368 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
370 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
371 (save_gdb_index_command): Switch to .gdb_index version 4.
373 2011-01-25 Pedro Alves <pedro@codesourcery.com>
375 * mi/mi-main.c (get_register): Use get_frame_register_value rather
376 than frame_register, and always pass a valid value to val_print.
378 2011-01-25 Pedro Alves <pedro@codesourcery.com>
380 Centralize printing "<optimized out>".
382 * valprint.h (val_print_optimized_out): Declare.
383 * cp-valprint.c (cp_print_value_fields): Use
384 val_print_optimized_out.
385 * jv-valprint.c (java_print_value_fields): Ditto.
386 * p-valprint.c (pascal_object_print_value_fields): Ditto.
387 * printcmd.c (print_formatted): Ditto.
388 * valprint.c (valprint_check_validity): Ditto.
389 (value_check_printable): Ditto.
390 (val_print_optimized_out): New.
392 2011-01-25 Pedro Alves <pedro@codesourcery.com>
394 * infcmd.c (default_print_registers_info): Allocate values so to
395 never pass a NULL value to val_print.
397 2011-01-25 Pedro Alves <pedro@codesourcery.com>
399 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
400 boolean. Make sure to always pass a value that matches the
401 contents buffer to callees. Preserve `address' for following
403 * value.c (value_contents_for_printing_const): New.
404 (value_address): Constify value argument.
405 * value.h (value_contents_for_printing_const): Declare.
406 (value_address): Constify value argument.
408 2011-01-25 Pedro Alves <pedro@codesourcery.com>
410 * regcache.c (struct regcache_descr): Rename
411 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
412 and sizeof_cooked_register_valid_p to
413 sizeof_cooked_register_status.
414 (init_regcache_descr): Adjust.
415 (struct regcache): Rename register_valid_p field to
417 (regcache_xmalloc_1, regcache_xfree, regcache_save)
418 (do_cooked_read): Adjust.
419 (regcache_valid_p): Rename to ...
420 (regcache_register_status): ... this. Adjust.
421 (regcache_invalidate): Adjust.
422 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
424 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
425 as unavailable, not valid.
426 (regcache_dump): Adjust.
427 * regcache.h (enum register_status): New.
428 (regcache_register_status): Declare.
429 (regcache_invalidate): Delete declaration.
430 * corelow.c (get_core_registers): Adjust.
431 * tracepoint.c (tfile_fetch_registers): Adjust.
432 * trad-frame.c (REG_VALUE): Rename to ...
433 (TF_REG_VALUE): ... this.
434 (REG_UNKNOWN): Rename to ...
435 (TF_REG_UNKNOWN): ... this.
436 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
437 * mi/mi-main.c (register_changed_p): Adjust.
439 2011-01-25 Pedro Alves <pedro@codesourcery.com>
441 * regcache.c (struct regcache_descr): Remove outdated comment.
442 (init_regcache_descr): Remove sizeof_raw_register_valid_p
444 (regcache_xmalloc): Rename to ...
445 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
446 Allocate the regcache type accordingly.
447 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
448 (regcache_xfree): Asser the source is also readonly. Copy sizeof
449 cooked registers, not raw.
450 (regcache_dup_no_passthrough): Delete.
451 (get_thread_arch_regcache): Use regcache_xmalloc_1.
452 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
453 mention obsolete write_register_bytes.
454 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
456 2011-01-25 Pedro Alves <pedro@codesourcery.com>
458 Stop remote_read_bytes from handling partial reads itself.
460 * remote-fileio.c: Include target.h.
461 (remote_fileio_write_bytes): Delete.
462 (remote_fileio_func_open, remote_fileio_func_write)
463 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
465 (remote_fileio_func_stat): Use target_read_memory and
467 (remote_fileio_func_gettimeofday): Use target_write_memory.
468 (remote_fileio_func_system): Use target_read_memory.
469 * remote.c (remote_write_bytes): Make it static.
470 (remote_read_bytes): Don't handle partial reads here.
471 * remote.h (remote_read_bytes): Delete declaration.
473 2011-01-25 Pedro Alves <pedro@codesourcery.com>
475 Simplify XML parsing a bit.
477 * xml-support.h (gdb_xml_parse_quick): Declare.
478 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
479 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
481 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
482 gdb_xml_create_parser_and_cleanup_1.
483 (gdb_xml_parse_quick): New.
484 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
485 * osdata.c (osdata_parse): Ditto.
486 * remote.c (remote_threads_info): Ditto.
487 * solib-target.c (solib_target_parse_libraries): Ditto.
488 * xml-syscall.c (syscall_parse_xml): Ditto.
489 * xml-tdesc.c (tdesc_parse_xml): Ditto.
491 2011-01-24 Kevin Buettner <kevinb@redhat.com>
493 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
494 with remote-mips.o added to gdb_target_obs.
495 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
497 2011-01-24 Pedro Alves <pedro@codesourcery.com>
499 * ada-valprint.c (val_print_packed_array_elements): Pass the
500 correct struct value to val_print.
501 (ada_val_print_1): Ditto.
503 2011-01-24 Pedro Alves <pedro@codesourcery.com>
505 Don't lose embedded_offset in printing routines throughout.
507 * valprint.h (val_print_array_elements): Change prototype.
508 * valprint.c (val_print_array_elements): Add `embedded_offset'
509 parameter, and adjust to pass it down to val_print, while passing
510 `valaddr' or `address' unmodified. Take embedded_offset into
511 account when checking repetitions.
512 * c-valprint.c (c_val_print): Pass embedded_offset to
513 val_print_array_elements instead of adjusting `valaddr' and
515 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
516 embedded_offset to val_print_array_elements instead of adjusting
518 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
519 * p-valprint.c (pascal_val_print): Pass embedded_offset to
520 val_print_array_elements and pascal_object_print_value_fields
521 instead of adjusting `valaddr'.
522 (pascal_object_print_value_fields): Add `offset' parameter, and
524 (pascal_object_print_value): Add `offset' parameter, and adjust to
526 (pascal_object_print_static_field): Use
527 value_contents_for_printing/value_embedded_offset, rather than
529 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
530 parameter, and adjust to use it. Use
531 value_contents_for_printing/value_embedded_offset, rather than
533 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
534 (ada_val_print_array): Add `offset' parameter, and adjust to use
536 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
537 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
538 Instead work with offsets. Use
539 value_contents_for_printing/value_embedded_offset, rather than
540 value_contents. Change `defer_val_int' local type to CORE_ADDR,
541 and use value_from_pointer to extract a target pointer, rather
542 than value_from_longest.
543 (print_variant_part): Add `offset' parameter. Replace
544 `outer_valaddr' parameter by a new `outer_offset' parameter.
545 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
546 (ada_value_print): Use
547 value_contents_for_printing/value_embedded_offset, rather than
549 (print_record): Add `offset' parameter, and adjust to pass it
551 (print_field_values): Add `offset' parameter. Replace
552 `outer_valaddr' parameter by a new `outer_offset' parameter.
553 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
554 Use value_contents_for_printing/value_embedded_offset, rather than
556 * d-valprint.c (dynamic_array_type): Use
557 value_contents_for_printing/value_embedded_offset, rather than
559 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
560 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
561 (java_print_value_fields): Take `offset' into account. Don't
562 re-adjust `valaddr'. Instead pass down adjusted offsets.
563 (java_val_print): Take `embedded_offset' into account. Pass it to
564 java_print_value_fields.
565 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
566 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
567 down adjusted offsets.
568 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
569 (f_val_print): Take `embedded_offset' into account.
571 2011-01-21 Joel Brobecker <brobecker@adacore.com>
573 * inflow.c: Include "gdbcmd.h".
574 (interactive_mode): New static global, moved here from top.c.
575 (show_interactive_mode): New function, moved here from top.c.
576 use gdb_has_a_terminal instead of input_from_terminal_p to
577 determine the current mode.
578 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
580 (_initialize_inflow): Add the "set/show interactive-mode"
581 commands. Moved here from top.c, after having adjusted slightly
583 * top.c (interactive_mode, show_interactive_mode): Delete, moved
585 (input_from_terminal_p): Remove handling of "interactive-mode"
586 setting, moved to infow.c.
587 (init_main): Remove creation of the "set/show interactive-mode"
588 commands, moved to inflow.c.
590 2011-01-19 Joel Brobecker <brobecker@adacore.com>
592 * NEWS: Add entry for native ia64-hpux support.
594 2011-01-19 Tom Tromey <tromey@redhat.com>
597 * thread.c (free_thread): Free 'name'.
598 (print_thread_info): Emit thread name. Change CLI output.
599 (thread_name_command): New function.
600 (do_captured_thread_select): Emit newline.
601 (_initialize_thread): Register 'thread name' command.
602 * target.h (struct target_ops) <to_thread_name>: New field.
603 (target_thread_name): New macro.
604 * target.c (update_current_target): Handle to_thread_name.
605 * python/py-infthread.c (thpy_get_name): New function.
606 (thpy_set_name): Likewise.
607 (thread_object_getset): Add "name".
608 * linux-nat.c (linux_nat_thread_name): New function.
609 (linux_nat_add_target): Set to_thread_name.
610 * gdbthread.h (struct thread_info) <name>: New field.
612 2011-01-18 Joel Brobecker <brobecker@adacore.com>
614 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
615 (ada_val_print_1): Likewise.
617 2011-01-18 Joel Brobecker <brobecker@adacore.com>
619 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
620 upper limit address is not greater than the function end address
621 when the upper limit could not be computed using the debugging
624 2011-01-17 Tom Tromey <tromey@redhat.com>
626 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
628 * utils.c: Include gdb_regex.h.
629 (do_regfree_cleanup): New function.
630 (make_regfree_cleanup): Likewise.
631 (get_regcomp_error): Likewise.
632 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
634 2011-01-17 Tom Tromey <tromey@redhat.com>
636 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
639 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
641 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
642 for internal variables.
643 (last_was_structop): New static variable.
644 (COMPLETE): New token.
645 (field_exp): New rule to group all '.' suffix handling.
646 Add mark_struct_expression calls when approriate to be able
647 to correctly find fields for completion.
648 (yylex): Adapt to handle field completion and set INTVAR when
651 2011-01-14 Yao Qi <yao@codesourcery.com>
653 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
654 save_reggroup, restore_reggroup and all_reggroup.
656 2011-01-14 Joel Brobecker <brobecker@adacore.com>
658 * ada-valprint. (ada_printchar): Use the correct type length
659 in call to ada_emit_char.
660 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
662 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
664 * solib-som.h (hpux_major_release): Declare variable here.
665 * solib-som.c: Remove <sys/utsname.h> header.
666 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
667 (hpux_major_release): Make global, change default value to
668 DEFAULT_HPUX_MAJOR_RELEASE.
669 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
670 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
671 Add "solib-som.h" header.
672 (set_hpux_major_release): New function.
673 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
675 2011-01-14 Mike Frysinger <vapier@gentoo.org>
677 * configure.tgt (*-*-uclinux*): Match more Linux os targets
679 2011-01-14 Joel Brobecker <brobecker@adacore.com>
681 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
682 new-line at end of warning message.
683 (ia64_hpux_store_register): Remove trailing new-line at end of
685 * ia64-hpux-tdep.c: Rephrase comment.
686 * solib-ia64-hpux.c (struct dld_info): Change type of field
687 dld_flags from "long long" to ULONGEST.
689 2011-01-14 Pedro Alves <pedro@codesourcery.com>
691 * target.h (deprecated_child_ops): Delete declaration.
692 * target.c (deprecated_child_ops): Delete definition.
694 2011-01-14 Pedro Alves <pedro@codesourcery.com>
696 * Makefile.in (hpux-thread.o): Delete rule.
697 * configure.ac: Don't check for HPUX DCE threads support.
698 * configure, config.in: Regenerate.
699 * hppa-hpux-nat.c (child_suppress_run): Delete.
700 (hppa_hpux_child_can_run): Delete.
701 (_initialize_hppa_hpux_nat): Don't override to_can_run.
702 * hpux-thread.c: Delete.
704 2011-01-13 Joel Brobecker <brobecker@adacore.com>
706 * hpux-thread.c (hpux_pid_to_str): Delete.
708 2011-01-13 Joel Brobecker <brobecker@adacore.com>
710 * ada-valprint.c (ada_emit_char): Remove strange code.
711 Check that c is <= UCHAR_MAX before passing it to isascii.
712 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
714 2011-01-13 Joel Brobecker <brobecker@adacore.com>
716 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
717 to the case where instream is stdin.
719 2011-01-13 Joel Brobecker <brobecker@adacore.com>
721 * ia64-tdep.h (struct regcache): Forward declare.
722 (struct ia64_infcall_ops): New struct type.
723 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
725 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
726 Renames ia64_find_global_pointer.
727 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
728 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
729 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
731 (ia64_infcall_ops): New static global constant.
732 (ia64_gdbarch_init): Set tdep->infcall_ops.
733 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
734 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
735 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
736 (ia64_hpux_dummy_code): New static global constant.
737 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
738 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
739 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
741 (ia64_hpux_infcall_ops): New static global constant.
742 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
743 for inferior function calls to work properly on ia64-hpux.
745 2011-01-13 Joel Brobecker <brobecker@adacore.com>
747 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
748 * ia64-tdep.h (struct frame_info): forward declaration.
749 (struct gdbarch_tdep): Add field size_of_register_frame.
750 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
751 to determine the size of the register frame.
752 (ia64_size_of_register_frame): New function.
753 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
754 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
755 (IA64_HPUX_UREG_REASON): New macro.
756 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
758 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
759 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
760 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
763 2011-01-13 Joel Brobecker <brobecker@adacore.com>
765 Add support for ia64-hpux.
766 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
767 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
769 * configure.host: Add handling for ia64-hpux hosts. Add associated
771 * configure.tgt: Add handling for ia64-hpux targets.
772 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
773 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
774 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
776 2011-01-13 Joel Brobecker <brobecker@adacore.com>
778 [ttrace] Compute thread list immediately after attach.
779 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
781 (inf_ttrace_attach): Use it.
783 2011-01-13 Joel Brobecker <brobecker@adacore.com>
785 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
786 if we could not determine the frame's function address. Instead,
787 use the frame's PC, and then continue.
789 2011-01-13 Joel Brobecker <brobecker@adacore.com>
791 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
794 2011-01-13 Joel Brobecker <brobecker@adacore.com>
796 * ia64-tdep.c (ia64_struct_type_p): New function.
797 (ia64_extract_return_value): Handle integral values that are
798 less than 8 bytes long.
799 (ia64_push_dummy_call): Likewise.
801 2011-01-13 Joel Brobecker <brobecker@adacore.com>
803 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
804 floatformat_ia64_ext.
805 (floatformat_ia64_ext_big): New static const.
806 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
808 2011-01-12 Tom Tromey <tromey@redhat.com>
810 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
812 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
813 (mi_cmd_thread_list_ids): Likewise.
814 (mi_cmd_data_list_changed_registers): Likewise.
815 (mi_cmd_data_list_register_values): Likewise.
816 (mi_cmd_data_write_register_values): Likewise.
817 (mi_cmd_data_evaluate_expression): Likewise.
818 (mi_cmd_data_read_memory): Likewise.
819 (mi_cmd_data_read_memory_bytes): Likewise.
820 (mi_cmd_data_write_memory): Likewise.
821 (mi_cmd_enable_timings): Likewise.
822 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
823 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
824 (mi_cmd_var_delete): Likewise.
825 (mi_cmd_var_set_format): Likewise.
826 (mi_cmd_var_show_format): Likewise.
827 (mi_cmd_var_info_num_children): Likewise.
828 (mi_cmd_var_list_children): Likewise.
829 (mi_cmd_var_info_type): Likewise.
830 (mi_cmd_var_info_expression): Likewise.
831 (mi_cmd_var_show_attributes): Likewise.
832 (mi_cmd_var_assign): Likewise.
833 (mi_cmd_var_update): Likewise.
834 (mi_cmd_enable_pretty_printing): Likewise.
835 (mi_cmd_var_set_update_range): Likewise.
836 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
838 (mi_cmd_target_file_put): Likewise.
839 (mi_cmd_target_file_delete): Likewise.
840 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
842 (mi_cmd_stack_info_depth): Likewise.
843 (mi_cmd_stack_list_locals): Likewise.
844 (mi_cmd_stack_list_args): Likewise.
845 (mi_cmd_stack_select_frame): Likewise.
846 (mi_cmd_stack_select_frame): Likewise.
847 (mi_cmd_stack_info_frame): Likewise.
848 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
850 (mi_cmd_file_list_exec_source_files): Likewise.
851 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
852 (mi_cmd_env_cd): Likewise.
853 (mi_cmd_env_path): Likewise.
854 (mi_cmd_env_dir): Likewise.
855 (mi_cmd_inferior_tty_show): Likewise.
856 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
857 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
858 (mi_cmd_break_watch): Likewise.
860 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
862 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
863 (ppc_linux_insert_hw_breakpoint): Likewise.
864 (ppc_linux_remove_hw_breakpoint): Likewise.
865 (ppc_linux_insert_watchpoint): Likewise.
867 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
868 Jan Kratochvil <jan.kratochvil@redhat.com>
870 PR fortran/11104 and DWARF unbound arrays detection.
871 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
872 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
873 unspecified upper bound.
874 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
875 variables array_size_array, tmp_type and offset_item. New variable
876 array. Remove call to f77_get_upperbound. New variables array_type
877 and index. Call value_subscripted_rvalue for each dimenasion. Remove
878 the final call to deprecated_set_value_type.
880 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
882 Make value allocations more lazy.
883 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
884 instead of allocate_value and set_value_lazy when possible.
885 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
886 instead of allocate_value and set_value_lazy.
887 * findvar.c (value_of_register_lazy): Likewise.
888 (read_var_value): Remove V preallocation, call just check_typedef in
889 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
890 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
891 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
892 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
893 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
894 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
895 the end, remove set_value_lazy there.
896 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
897 instead of allocate_value and set_value_lazy when possible.
898 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
899 * value.c (allocate_computed_value): Use allocate_value_lazy instead
900 of allocate_value and set_value_lazy.
901 (value_from_contents_and_address): Use allocate_value_lazy instead of
902 allocate_value and set_value_lazy when possible.
904 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
906 * disasm.c (dump_insns): Support dumping opcodes for MI.
907 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
908 dumping of instruction opcodes.
910 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
912 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
915 2011-01-11 Tom Tromey <tromey@redhat.com>
917 * thread.c (do_captured_thread_select): Emit newline before
920 2011-01-11 Michael Snyder <msnyder@vmware.com>
922 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
923 * score-tdep.c: Ditto.
924 * score-tdep.h: Ditto.
929 * ser-mingw.c: Ditto.
933 * sh64-tdep.c: Ditto.
934 * shnbsd-nat.c: Ditto.
938 * solib-darwin.c: Ditto.
939 * solib-frv.c: Ditto.
941 * solib-irix.c: Ditto.
942 * solib-osf.c: Ditto.
943 * solib-pa64.c: Ditto.
944 * solib-som.c: Ditto.
945 * solib-spu.c: Ditto.
946 * solib-sunos.c: Ditto.
947 * solib-svr4.c: Ditto.
949 * sol-thread.c: Ditto.
953 * sparc64-linux-tdep.c: Ditto.
954 * sparc64-tdep.c: Ditto.
955 * sparc-linux-nat.c: Ditto.
956 * sparc-linux-tdep.c: Ditto.
957 * sparc-sol2-nat.c: Ditto.
958 * sparc-sol2-tdep.c: Ditto.
959 * sparc-tdep.c: Ditto.
960 * sparc-tdep.h: Ditto.
962 * stabsread.c: Ditto.
963 * stabsread.h: Ditto.
971 * target-descriptions.c: Ditto.
972 * target-descriptions.h: Ditto.
974 * target-memory.c: Ditto.
978 * tracepoint.c: Ditto.
979 * tracepoint.h: Ditto.
980 * trad-frame.h: Ditto.
981 * typeprint.c: Ditto.
983 2011-01-11 Michael Snyder <msnyder@vmware.com>
985 * ui-file.c: Comment cleanup, mostly periods and spaces.
990 * v850-tdep.c: Ditto.
1003 * windows-nat.c: Ditto.
1004 * windows-tdep.c: Ditto.
1005 * xcoffread.c: Ditto.
1006 * xcoffsolib.c: Ditto.
1007 * xml-support.c: Ditto.
1008 * xstormy16-tdep.c: Ditto.
1009 * xtensa-tdep.c: Ditto.
1010 * xtensa-tdep.h: Ditto.
1012 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1014 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
1015 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
1017 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1018 Thiago Jung Bauermann <bauerman@br.ibm.com>
1020 Implement support for PowerPC BookE ranged watchpoints.
1022 (struct breakpoint_ops) <resources_needed>: New method.
1023 Initialize to NULL in all existing breakpoint_ops instances.
1024 (struct breakpoint) <exact>: New field.
1025 (target_exact_watchpoints): Declare external global.
1026 * breakpoint.c (target_exact_watchpoints): New global flag.
1027 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
1028 b->enable_state to bp_enabled before calling
1029 hw_watchpoint_used_count.
1030 (hw_watchpoint_used_count): Iterate over all bp_locations in a
1031 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
1033 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
1034 if the watchpoint is exact.
1035 (resources_needed_watchpoint): New function.
1036 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
1037 (watch_command_1): Set b->exact if the user asked for an exact
1038 watchpoint and one can be set.
1039 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
1040 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
1041 the user asks for an exact watchpoint and one can be set. Return
1042 number of needed debug registers to watch the expression.
1043 * gdbtypes.c (is_scalar_type): New function, based on
1044 valprint.c:scalar_type_p.
1045 (is_scalar_type_recursive): New function.
1046 * gdbtypes.h (is_scalar_type_recursive): Declare.
1047 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
1048 handle regions when ranged watchpoints are available.
1049 (create_watchpoint_request): New function.
1050 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1051 create_watchpoint_request.
1052 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
1053 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
1054 `set powerpc' and `show powerpc' commands.
1055 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1056 Mention documentation comment in the target macro.
1057 (target_region_ok_for_hw_watchpoint): Document return value.
1059 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1061 * breakpoint.c (update_watchpoint): Decide on using a software or
1062 hardware watchpoint after the bp_locations are created.
1064 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1066 Convert hardware watchpoints to use breakpoint_ops.
1067 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
1068 <insert_location>: ... this. Return int instead of void.
1069 Accept pointer to struct bp_location instead of pointer to
1070 struct breakpoint. Adapt all implementations.
1071 (breakpoint_ops) <remove>: Rename to...
1072 <remove_location>: ... this. Accept pointer to struct bp_location
1073 instead of pointer to struct breakpoint. Adapt all implementations.
1074 * breakpoint.c (insert_catchpoint): Delete function.
1075 (insert_bp_location): Call the watchpoint or catchpoint's
1076 breakpoint_ops.insert method.
1077 (remove_breakpoint_1): Call the watchpoint or catchpoint's
1078 breakpoint_ops.remove method.
1079 (insert_watchpoint, remove_watchpoint): New functions.
1080 (watchpoint_breakpoint_ops): New structure.
1081 (watch_command_1): Initialize the OPS field.
1082 * inf-child.c (inf_child_insert_fork_catchpoint)
1083 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
1084 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
1085 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
1087 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
1088 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
1089 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
1090 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
1091 * target.c (update_current_target): Change default implementation of
1092 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
1093 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
1094 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
1095 to_set_syscall_catchpoint to return_one.
1096 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
1097 (debug_to_insert_exec_catchpoint): Report return value.
1098 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
1099 (to_insert_exec_catchpoint): Change declaration to return int instead
1102 2011-01-11 Michael Snyder <msnyder@vmware.com>
1104 * arm-tdep.c: Internationalization.
1107 * fork-child.c: Ditto.
1108 * nto-procfs.c: Ditto.
1109 * ppc-sysv-tdep.c: Ditto.
1111 * remote-mips.c: Ditto.
1113 * rs6000-nat.c: Ditto.
1114 * rs6000-tdep.c: Ditto.
1118 * xml-support.c: Ditto.
1119 * mi/mi-cmd-break.c: Ditto.
1120 * mi/mi-cmd-var.c: Ditto.
1121 * mi/mi-interp.c: Ditto.
1122 * mi/mi-main.c: Ditto.
1124 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
1126 * remote-sim.c (gdbsim_store_register): Update API to
1127 sim_store_register to check more error conditions.
1129 2011-01-10 Michael Snyder <msnyder@vmware.com>
1131 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
1132 * nto-tdep.c: Ditto.
1133 * nto-tdep.h: Ditto.
1134 * objc-exp.y: Ditto.
1135 * objc-lang.c: Ditto.
1136 * objfiles.c: Ditto.
1137 * objfiles.h: Ditto.
1138 * observer.c: Ditto.
1139 * opencl-lang.c: Ditto.
1142 * parser-defs.h: Ditto.
1145 * posix-hdep.c: Ditto.
1146 * ppcbug-rom.c: Ditto.
1147 * ppc-linux-nat.c: Ditto.
1148 * ppc-linux-tdep.c: Ditto.
1149 * ppc-linux-tdep.h: Ditto.
1150 * ppcnbsd-tdep.c: Ditto.
1151 * ppcobsd-tdep.c: Ditto.
1152 * ppcobsd-tdep.h: Ditto.
1153 * ppc-sysv-tdep.c: Ditto.
1154 * ppc-tdep.h: Ditto.
1155 * printcmd.c: Ditto.
1156 * proc-abi.c: Ditto.
1157 * proc-flags.c: Ditto.
1159 * proc-utils.h: Ditto.
1160 * progspace.h: Ditto.
1161 * prologue-value.c: Ditto.
1162 * prologue-value.h: Ditto.
1163 * psympriv.h: Ditto.
1165 * p-typeprint.c: Ditto.
1166 * p-valprint.c: Ditto.
1167 * ravenscar-sparc-thread.c: Ditto.
1168 * ravenscar-thread.c: Ditto.
1169 * ravenscar-thread.h: Ditto.
1171 * regcache.c: Ditto.
1172 * regcache.h: Ditto.
1174 * remote-fileio.c: Ditto.
1175 * remote-fileio.h: Ditto.
1177 * remote-m32r-sdi.c: Ditto.
1178 * remote-mips.c: Ditto.
1179 * remote-sim.c: Ditto.
1180 * rs6000-aix-tdep.c: Ditto.
1181 * rs6000-nat.c: Ditto.
1182 * rs6000-tdep.c: Ditto.
1184 2011-01-10 Michael Snyder <msnyder@vmware.com>
1186 * charset.c (validate): Internationalization.
1187 * coffread.c (read_one_sym): Ditto.
1188 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
1189 * h8300-tdep.c (H8300_extract_return_value): Ditto.
1190 * inflow.c (new_tty): Ditto.
1191 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
1192 * m32c-tdep.c (m32c_return_value): Ditto.
1193 * mep-tdep.c (mep_store_return_value): Ditto.
1194 * score-tdep.c (score7_fetch_insn): Ditto.
1195 * ser-mingw.c (pipe_windows_open): Ditto.
1196 * sh64-tdep.c (sh64_extract_return_value): Ditto.
1197 * spu-tdep.c (spu_register_type): Ditto.
1198 * tracepoint.c (trace_find_command): Ditto.
1199 * valarith.c (value_pos): Ditto.
1201 2011-01-10 Joel Brobecker <brobecker@adacore.com>
1203 * ada-valprint.c (printstr): Minor comment reformatting.
1205 2011-01-08 Michael Snyder <msnyder@vmware.com>
1207 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
1210 2011-01-08 Michael Snyder <msnyder@vmware.com>
1212 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
1213 * hppa-hpux-tdep.c: Ditto.
1214 * hppa-linux-nat.c: Ditto.
1215 * hppa-linux-tdep.c: Ditto.
1216 * hppanbsd-tdep.c: Ditto.
1217 * hppa-tdep.c: Ditto.
1218 * hppa-tdep.h: Ditto.
1219 * hpux-thread.c: Ditto.
1220 * i386-cygwin-tdep.c: Ditto.
1221 * i386-darwin-nat.c: Ditto.
1222 * i386gnu-nat.c: Ditto.
1223 * i386-linux-nat.c: Ditto.
1224 * i386-linux-tdep.c: Ditto.
1225 * i386-nat.c: Ditto.
1226 * i386-nat.h: Ditto.
1227 * i386nbsd-tdep.c: Ditto.
1228 * i386-sol2-nat.c: Ditto.
1229 * i386-stub.c: Ditto.
1230 * i386-tdep.c: Ditto.
1231 * i386-tdep.h: Ditto.
1232 * i387-tdep.c: Ditto.
1233 * ia64-linux-nat.c: Ditto.
1234 * ia64-linux-tdep.c: Ditto.
1235 * ia64-tdep.c: Ditto.
1239 * inferior.c: Ditto.
1240 * inferior.h: Ditto.
1246 * iq2000-tdep.c: Ditto.
1247 * irix5-nat.c: Ditto.
1253 * jv-typeprint.c: Ditto.
1254 * jv-valprint.c: Ditto.
1255 * language.c: Ditto.
1256 * language.h: Ditto.
1257 * linespec.c: Ditto.
1258 * linux-fork.c: Ditto.
1259 * linux-nat.c: Ditto.
1260 * linux-thread-db.c: Ditto.
1261 * lm32-tdep.c: Ditto.
1263 2011-01-08 Michael Snyder <msnyder@vmware.com>
1265 * m2-exp.y: Comment cleanup, mostly periods and spaces.
1267 * m2-typeprint.c: Ditto.
1268 * m2-valprint.c: Ditto.
1269 * m32c-tdep.c: Ditto.
1270 * m32r-linux-nat.c: Ditto.
1271 * m32r-rom.c: Ditto.
1272 * m32r-tdep.c: Ditto.
1273 * m32r-tdep.h: Ditto.
1274 * m68hc11-tdep.c: Ditto.
1275 * m58klinux-nat.c: Ditto.
1276 * m68k-tdep.c: Ditto.
1277 * m88k-tdep.c: Ditto.
1278 * m88k-tdep.h: Ditto.
1279 * machoread.c: Ditto.
1280 * macrocmd.c: Ditto.
1281 * macroexp.c: Ditto.
1282 * macrotab.c: Ditto.
1285 * mdebugread.c: Ditto.
1286 * mdebugread.h: Ditto.
1289 * memory-map.h: Ditto.
1290 * mep-tdep.c: Ditto.
1291 * microblaze-rom.c: Ditto.
1292 * microblaze-tdep.c: Ditto.
1294 * mips-irix-tdep.c: Ditto.
1295 * mips-linux-nat.c: Ditto.
1296 * mips-linux-tdep.c: Ditto.
1297 * mips-linux-tdep.h: Ditto.
1298 * mipsnbsd-nat.c: Ditto.
1299 * mipsnbsd-tdep.c: Ditto.
1300 * mipsread.c: Ditto.
1301 * mips-tdep.c: Ditto.
1302 * mips-tdep.h: Ditto.
1303 * mn10300-linux-tdep.c: Ditto.
1304 * mn10300-tdep.c: Ditto.
1305 * mn10300-tdep.h: Ditto.
1308 * moxie-tdep.c: Ditto.
1309 * moxie-tdep.h: Ditto.
1312 2011-01-08 Mike Frysinger <vapier@gentoo.org>
1314 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
1316 2011-01-08 Robert Millan <rmh@gnu.org>
1318 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
1320 2011-01-07 Michael Snyder <msnyder@vmware.com>
1322 * charset.c (_initialize_charset): Fix typo in string.
1324 2011-01-07 Michael Snyder <msnyder@vmware.com>
1326 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
1328 * tui/tui-layout.c (tui_set_layout_for_display_command):
1329 Split line so that operator goes to beginning of line.
1330 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
1331 assignment out of if statement.
1333 2011-01-07 Michael Snyder <msnyder@vmware.com>
1335 * ada-lang.c: Comment cleanup, mostly periods and spaces.
1336 * ada-lang.h: Ditto.
1337 * ada-tasks.c: Ditto.
1338 * ada-valprint.c: Ditto.
1339 * aix-threads.c: Ditto.
1340 * alpha-linux-nat.c: Ditto.
1341 * alpha-linux-tdep.c: Ditto.
1342 * alpha-mdebug-tdep.c: Ditto.
1343 * alpha-nat.c: Ditto.
1344 * alpha-osf1-tdep.c: Ditto.
1345 * alpha-tdep.c: Ditto.
1346 * alphabsd-nat.c: Ditto.
1347 * alphabsd-tdep.c: Ditto.
1348 * amd64-darwin-tdep.c: Ditto.
1349 * amd64-linux-nat.c: Ditto.
1350 * amd64-linux-tdep.c: Ditto.
1351 * amd64-sol2-tdep.c: Ditto.
1352 * amd64-tdep.c: Ditto.
1353 * amd64-fbsd-tdep.c: Ditto.
1354 * amd64-nbsd-tdep.c: Ditto.
1355 * amd64-obsd-tdep.c: Ditto.
1356 * amd64-linux-nat.c: Ditto.
1357 * amd64-linux-tdep.c: Ditto.
1358 * arm-tdep.c: Ditto.
1359 * arm-tdep.h: Ditto.
1360 * armnbsd-nat.c: Ditto.
1361 * avr-tdep.c: Ditto.
1362 * bfin-tdep.c: Ditto.
1364 * c-typeprintc: Ditto.
1365 * c-valprint.c: Ditto.
1366 * coff-pe-read.h: Ditto.
1367 * coffreead.c: Ditto.
1368 * cris-tdep.c: Ditto.
1370 * darwin-nat-info.c: Ditto.
1371 * darwin-nat.c: Ditto.
1372 * dbug-rom.c: Ditto.
1376 * dec-thread.c: Ditto.
1378 * demangle.c: Ditto.
1379 * dicos-tdep.c: Ditto.
1380 * dictionary.c: Ditto.
1381 * dictionary.h: Ditto.
1382 * dink32-rom.c: Ditto.
1384 * doublest.c: Ditto.
1386 * dummy-frame.c: Ditto.
1387 * dwarf2-frame.c: Ditto.
1388 * dwarf2expr.c: Ditto.
1389 * dwarf2loc.c: Ditto.
1390 * dwarf2read.c: Ditto.
1394 * event-top.h: Ditto.
1395 * exceptions.c: Ditto.
1396 * exceptions.h: Ditto.
1398 * expprint.c: Ditto.
1399 * expression.h: Ditto.
1403 * f-typeprint.c: Ditto.
1404 * f-valprint.c: Ditto.
1405 * fbsd-nat.c: Ditto.
1407 * fork-child.c: Ditto.
1410 * frv-linux-tdep.c: Ditto.
1411 * frv-tdep.c: Ditto.
1413 * gdb-stabs.h: Ditto.
1414 * gdb_assert.h: Ditto.
1415 * gdb_string.h: Ditto.
1416 * gdb_thread_db.h: Ditto.
1417 * gdb_wait.h: Ditto.
1418 * gdbarch.sh: Ditto.
1420 * gdbthread.h: Ditto.
1421 * gdbtypes.c: Ditto.
1422 * gdbtypes.h: Ditto.
1425 * gnu-v2-abi.c: Ditto.
1426 * gnu-v3-abi.c: Ditto.
1427 * go32-nat.c: Ditto.
1428 * gdbarch.c: Regenerate.
1429 * gdbarch.h: Regenerate.
1431 2011-01-07 Michael Snyder <msnyder@vmware.com>
1433 * ax-gdb.c: Adjust some long output strings.
1434 * breakpoint.c: Ditto.
1439 * linux-nat.c: Ditto.
1440 * solib-pa64.c: Ditto.
1441 * solib-som.c: Ditto.
1443 2011-01-06 Tom Tromey <tromey@redhat.com>
1447 * python/python.c (GdbMethods): Add "newest_frame" method.
1448 * python/python-internal.h (gdbpy_newest_frame): Declare.
1449 * python/py-frame.c (gdbpy_newest_frame): New function.
1451 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1453 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
1454 * jit.c (jit_debug): New variable.
1455 (show_jit_debug): New function.
1456 (struct target_buffer): Use ULONGEST.
1457 (bfd_open_from_target_memory): Likewise.
1458 (jit_register_code, jit_inferior_init): Add debug output.
1459 (_initialize_jit): Register "debug jit" command.
1461 2011-01-06 Tom Tromey <tromey@redhat.com>
1463 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
1464 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
1467 2011-01-06 Tom Tromey <tromey@redhat.com>
1469 * python/py-frame.c (frapy_block): Use get_frame_block.
1471 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1473 Do not stop on SIGPRIO signals by default
1474 * infrun.c (_initialize_infrun): Unset signal_stop and
1475 signal_print for TARGET_SIGNAL_PRIO.
1477 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1479 * ada-tasks.c: Fix style violation in comment.
1481 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1483 * linespec.c (decode_compound, find_method): Remove trailing \n
1484 at end of error string.
1485 * solib-irix.c (irix_current_sos): Likewise.
1486 * varobj.c (uninstall_variable): Likewise.
1488 2011-01-06 Joel Brobecker <brobecker@adacore.com>
1490 * copyright.py: New script.
1491 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
1492 Launch emacs without exec'ing. Call copyright.py afterwards.
1494 2011-01-05 Michael Snyder <msnyder@vmware.com>
1496 * addrmap.c: Shorten lines of >= 80 columns.
1497 * arch-utils.c: Ditto.
1498 * arch-utils.h: Ditto.
1500 * ax-general.c: Ditto.
1502 * blockframe.c: Ditto.
1503 * breakpoint.c: Ditto.
1504 * buildsym.c: Ditto.
1506 * c-typeprint.c: Ditto.
1508 * coffread.c: Ditto.
1512 * cp-namespace.c: Ditto.
1513 * cp-support.c: Ditto.
1514 * dbug-rom.c: Ditto.
1519 * dictionary.c: Ditto.
1521 * doublest.c: Ditto.
1522 * dwarf2-frame.c: Ditto.
1523 * dwarf2expr.c: Ditto.
1524 * dwarf2loc.c: Ditto.
1525 * dwarf2read.c: Ditto.
1528 * event-loop.c: Ditto.
1529 * event-loop.h: Ditto.
1530 * exceptions.h: Ditto.
1532 * expprint.c: Ditto.
1533 * expression.h: Ditto.
1535 * f-valprint.c: Ditto.
1537 * frame-base.c: Ditto.
1538 * frame-unwind.c: Ditto.
1539 * frame-unwind.h: Ditto.
1543 * gdb-stabs.h: Ditto.
1544 * gdb_assert.h: Ditto.
1545 * gdb_dirent.h: Ditto.
1546 * gdb_obstack.h: Ditto.
1548 * gdbtypes.c: Ditto.
1549 * gdbtypes.h: Ditto.
1550 * inf-ttrace.c: Ditto.
1555 * inline-frame.h: Ditto.
1556 * language.c: Ditto.
1557 * language.h: Ditto.
1558 * libunwind-frame.c: Ditto.
1559 * libunwind-frame.h: Ditto.
1560 * linespec.c: Ditto.
1561 * linux-nat.c: Ditto.
1562 * linux-nat.h: Ditto.
1563 * linux-thread-db.c: Ditto.
1564 * machoread.c: Ditto.
1565 * macroexp.c: Ditto.
1566 * macrotab.c: Ditto.
1569 * mdebugread.c: Ditto.
1574 * objfiles.c: Ditto.
1575 * objfiles.h: Ditto.
1577 * p-typeprint.c: Ditto.
1578 * p-valprint.c: Ditto.
1580 * printcmd.c: Ditto.
1581 * proc-events.c: Ditto.
1583 * progspace.c: Ditto.
1584 * progspace.h: Ditto.
1585 * psympriv.h: Ditto.
1588 * regcache.c: Ditto.
1589 * regcache.h: Ditto.
1590 * remote-fileio.c: Ditto.
1592 * ser-mingw.c: Ditto.
1594 * ser-unix.c: Ditto.
1597 * solib-frv.c: Ditto.
1598 * solib-irix.c: Ditto.
1599 * solib-osf.c: Ditto.
1600 * solib-pa64.c: Ditto.
1601 * solib-som.c: Ditto.
1602 * solib-sunos.c: Ditto.
1603 * solib-svr4.c: Ditto.
1604 * solib-target.c: Ditto.
1608 * stabsread.c: Ditto.
1609 * stabsread.c: Ditto.
1612 * symfile-mem.c: Ditto.
1618 * target-descriptions.c: Ditto.
1619 * target-memory.c: Ditto.
1622 * terminal.h: Ditto.
1625 * tracepoint.c: Ditto.
1626 * tracepoint.h: Ditto.
1630 * user-regs.c: Ditto.
1631 * user-regs.h: Ditto.
1633 * valarith.c: Ditto.
1635 * valprint.c: Ditto.
1636 * valprint.h: Ditto.
1641 * xcoffread.c: Ditto.
1642 * xcoffsolib.c: Ditto.
1643 * xcoffsolib.h: Ditto.
1644 * xml-syscall.c: Ditto.
1645 * xml-tdesc.c: Ditto.
1647 2011-01-05 Michael Snyder <msnyder@vmware.com>
1649 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
1650 * cli/cli-decode.c: Ditto.
1651 * cli/cli-dump.c: Ditto.
1652 * cli/cli-logging.c: Ditto.
1653 * cli/cli-script.c: Ditto.
1654 * cli/cli-setshow.c: Ditto.
1655 * common/signals.c: Ditto.
1656 * mi/mi-cmd-break.c: Ditto.
1657 * mi/mi-cmd-disas.c: Ditto.
1658 * mi/mi-cmd-stack.c: Ditto.
1659 * mi/mi-cmd-var.c: Ditto.
1660 * mi/mi-cmds.c: Ditto.
1661 * mi/mi-common.h: Ditto.
1662 * mi/mi-console.c: Ditto.
1663 * mi/mi-interp.c: Ditto.
1664 * mi/mi-main.c: Ditto.
1665 * osf-share/cma_attr.c: Ditto.
1666 * osf-share/cma_deb_core.h: Ditto.
1667 * osf-share/cma_debug_client.h: Ditto.
1668 * osf-share/cma_handle.h: Ditto.
1669 * osf-share/cma_mutex.h: Ditto.
1670 * osf-share/cma_stack_int.h: Ditto.
1671 * osf-share/cma_tcb_defs.h: Ditto.
1672 * python/py-auto-load.c: Ditto.
1673 * python/py-breakpoint.c: Ditto.
1674 * python/py-cmd.c: Ditto.
1675 * python/py-frame.c: Ditto.
1676 * python/py-objfile.c: Ditto.
1677 * python/py-param.c: Ditto.
1678 * python/py-progspace.c: Ditto.
1679 * python/py-symbol.c: Ditto.
1680 * python/py-value.c: Ditto.
1681 * python/python-internal.h: Ditto.
1682 * python/python.c: Ditto.
1683 * tui/tui-data.c: Ditto.
1684 * tui/tui-disasm.c: Ditto.
1685 * tui/tui-hooks.c: Ditto.
1686 * tui/tui-io.c: Ditto.
1687 * tui/tui-layout.c: Ditto.
1688 * tui/tui-regs.c: Ditto.
1689 * tui/tui-source.c: Ditto.
1690 * tui/tui-stack.c: Ditto.
1691 * tui/tui-win.c: Ditto.
1692 * tui/tui-windata.c: Ditto.
1693 * tui/tui-winsource.c: Ditto.
1695 2011-01-05 Joel Brobecker <brobecker@adacore.com>
1697 * configure.ac, gdb.1: Copyright year update.
1699 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1701 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
1702 this_pc_in_block, morestack_msym and morestack_name. Check for
1703 "__morestack" minimal symbol there.
1705 2011-01-03 Joel Brobecker <brobecker@adacore.com>
1707 * symfile.c (find_sym_fns): Add call to dont_repeat.
1709 2011-01-01 Joel Brobecker <brobecker@adacore.com>
1711 Copyright year update in most files (performed by copyright.sh).
1713 2011-01-01 Joel Brobecker <brobecker@adacore.com>
1715 * top.c (print_gdb_version): Update copyright year in version output.
1717 For older changes see ChangeLog-2010.
1723 version-control: never