1 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
4 unnecessary space in string.
5 * filesystem.c (_initialize_filesystem): Ditto.
6 * frame.c (_initialize_frame): Ditto.
7 * infcmd.c (step_once): Ditto.
8 * infrun.c (_initialize_infrun): Ditto.
9 * linux-nat.c (linux_child_follow_fork): Ditto.
10 * maint.c (maintenance_deprecate): Ditto.
11 * memattr.c (_initialize_mem): Ditto.
12 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13 * monitor.c (monitor_open): Ditto.
14 * procfs.c (procfs_xfer_memory): Ditto.
15 * reverse.c (bookmarks_info): Ditto.
16 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
17 * stack.c (_initialize_stack): Ditto.
18 * tracepoint.c (_initialize_tracepoint): Ditto.
19 * xtensa-tdep.c (xtensa_supply_gregset,
20 xtensa_regset_from_core_section): Ditto.
22 2010-07-01 Tom Tromey <tromey@redhat.com>
24 * value.h (struct lval_funcs) <check_any_valid>: Rename from
26 * value.c (value_entirely_optimized_out): Invert result. Update
27 for new function name.
29 2010-07-01 Pedro Alves <pedro@codesourcery.com>
31 Static tracepoints support.
33 * NEWS: Mention new support for static tracepoints.
34 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
35 qXfer:statictrace:read.
36 (New features in the GDB remote stub, GDBserver): Mention static
37 tracepoints support using an UST based backend.
38 (New commands): Mention "info static-tracepoint-markers" and
40 * breakpoint.c (is_marker_spec): New.
41 (is_tracepoint): Handle static tracepoints.
42 (validate_commands_for_breakpoint): Static tracepoints can't do
44 (static_tracepoints_here): New.
45 (bpstat_what): Handle static tracepoints.
46 (print_one_breakpoint_location, allocate_bp_location, mention):
48 (create_breakpoint_sal): Ditto.
49 (decode_static_tracepoint_spec): New.
50 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
51 `type_wanted'. Adjust. Handle static tracepoint marker
53 (break_command_1): Adjust.
54 (update_static_tracepoint): New.
55 (update_breakpoint_locations): Handle static tracepoints.
56 (breakpoint_re_set_one): Handle static tracepoint marker
58 (disable_command, enable_command): Handle static tracepoints.
59 (trace_command, ftrace_command): Adjust.
60 (strace_command): New.
61 (create_tracepoint_from_upload): Adjust.
62 (save_breakpoints): Handle static tracepoints.
63 (_initialize_breakpoint): Install the "strace" command.
64 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
65 (struct breakpoint): New fields static_trace_marker_id and
66 static_trace_marker_id_idx.
67 (breakpoints_here_p): Declare.
68 (create_breakpoint): Adjust.
69 (static_tracepoints_here): Declare.
70 * remote.c (struct remote_state) <static_tracepoints>: New field.
71 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
72 (remote_static_tracepoint_marker_at): New.
73 (remote_static_tracepoint_markers_by_strid): New.
74 (remote_static_tracepoint_feature): New.
75 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
76 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
77 (remote_supports_static_tracepoints): New.
78 (remote_download_tracepoint): Download static tracepoints.
79 (init_remote_ops): Install remote_static_tracepoint_marker_at and
80 remote_static_tracepoint_markers_by_strid.
81 (_initialize_remote): Install set|show remote static-tracepoints,
82 and set|show remote read-sdata-object commands.
83 * target.c (update_current_target): Inherit and default
84 to_static_tracepoint_marker_at, and
85 to_static_tracepoint_markers_by_strid.
86 * target.h (static_tracepoint_marker): Forward declare.
87 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
88 (static_tracepoint_marker_p): New typedef.
89 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
90 (struct target_ops): New fields to_static_tracepoint_marker_at and
91 to_static_tracepoint_markers_by_strid.
92 (target_static_tracepoint_marker_at)
93 (target_static_tracepoint_markers_by_strid): New.
94 * tracepoint.c: Include source.h.
95 (validate_actionline): Handle $_sdata.
96 (struct collection_list): New field strace_data.
97 (add_static_trace_data): New.
98 (clear_collection_list): Clear strace_data.
99 (stringify_collection_list): Account for a possible static trace
101 (encode_actions_1): Encode an $_sdata collection.
102 (parse_tracepoint_definition): Handle static tracepoints.
103 (parse_static_tracepoint_marker_definition): New.
104 (release_static_tracepoint_marker): New.
105 (print_one_static_tracepoint_marker): New.
106 (info_static_tracepoint_markers_command): New.
107 (sdata_make_value): New.
108 (_initialize_tracepoint): Create the $_sdata convenience variable.
109 Add the "info static-tracepoint-markers" command.
110 Mention $_sdata in the "collect" command's help output.
111 * tracepoint.h (struct static_tracepoint_marker): New.
112 (parse_static_tracepoint_marker_definition)
113 (release_static_tracepoint_marker): Declare.
114 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
115 * python/py-breakpoint.c (bppy_new): Adjust.
117 2010-06-30 Joel Brobecker <brobecker@adacore.com>
119 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
122 2010-06-29 Doug Evans <dje@google.com>
125 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
126 DW_AT_external is present.
130 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
131 create a symbol for the field and record the value.
132 (new_symbol): Handle DW_TAG_member.
133 * gdbtypes.c (field_is_static): Remove FIXME.
134 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
135 only ignore LOC_CONST symbols that are enums.
137 * dwarf2read.c: Remove trailing whitespace.
139 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
140 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
141 (struct main_type, field loc): Delete dwarf_block.
142 (FIELD_DWARF_BLOCK): Delete.
143 (SET_FIELD_DWARF_BLOCK): Delete.
144 (TYPE_FIELD_DWARF_BLOCK): Delete.
145 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
148 2010-06-29 Hui Zhu <teawater@gmail.com>
150 * record.c (set_record_pic_cmdlist,
151 show_record_pic_cmdlist): New variables.
152 (set_record_pic_command,
153 show_record_pic_command): New functions.
154 (record_pic_function, record_pic_line, record_pic_enum,
155 set_record_pic_type, record_pic_hide_nofunction,
156 record_pic_hide_nosource, record_pic_hide_same): New variables.
157 (record_pic_fputs): New function.
158 (function_list, node_list, edge_list): New struct.
159 (function_list, node_list, edge_list): New variables.
160 (record_pic_cleanups, record_pic_node,
161 record_pic_edge, cmd_record_pic): New functions.
162 (_initialize_record): Add new commands for record pic.
164 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
166 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
167 ALLOCATE_CPLUS_STRUCT_TYPE.
169 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
170 Tom Tromey <tromey@redhat.com>
171 Thiago Jung Bauermann <bauerman@br.ibm.com>
173 * value.c (pack_unsigned_long): New function.
174 (value_from_ulongest): New function.
175 * value.h (value_from_ulongest): Declare.
176 * python/python.c (_initialize_python): Call
177 gdbpy_initialize_thread and gdbpy_initialize_inferior.
178 * python/python-internal.h: Define thread_object.
179 (gdbpy_inferiors, gdbpy_selected_thread)
180 (frame_info_to_frame_object, create_thread_object)
181 (find_thread_object, find_inferior_object)
182 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
183 (gdbpy_is_value_object, get_addr_from_python): Declare.
184 * python/py-value.c (builtin_type_upylong): Define.
185 (convert_value_from_python): Add logic for ulongest.
186 (gdbpy_is_value_object): New function.
187 * python/py-utils.c (get_addr_from_python): New function.
188 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
189 (gdbpy_selected_frame): Use PyObject over frame_info.
190 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
192 (SUBDIR_PYTHON_SRCS): Likewise.
193 (py-inferior.o): New Rule.
194 (py-infthread.o): New Rule.
195 * python/py-inferior.c: New File.
196 * python/py-infthread.c: New File.
198 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
200 * c-typeprint.c (c_type_print_base): For no fields check include also
201 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
202 * dwarf2read.c (struct typedef_field_list)
203 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
204 (dwarf2_add_typedef): New.
205 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
206 Copy also FI.TYPEDEF_FIELD_LIST.
207 * gdbtypes.h (struct typedef_field)
208 (struct cplus_struct_type) <typedef_field, typedef_field_count>
209 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
210 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
212 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
214 * cp-namespace.c (cp_lookup_nested_type): New variable
215 concatenated_name. Turn the current return condition into a reverse
216 one. Call also lookup_static_symbol_aux on the constructed qualified
218 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
219 other files into a called ...
220 (lookup_static_symbol_aux): ... new function here.
221 * symtab.h (lookup_static_symbol_aux): New prototype.
222 * valops.c (value_maybe_namespace_elt): Call also
223 lookup_static_symbol_aux if we failed otherwise.
225 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
227 Fix PR c++/11703 and PR gdb/1448.
228 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
231 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
233 Fix modification of cplus_struct_default.
234 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
235 Call ALLOCATE_CPLUS_STRUCT_TYPE.
236 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
238 2010-06-28 Joel Brobecker <brobecker@adacore.com>
240 * NEWS: Add entry announcing the python directory.
242 2010-06-28 Tom Tromey <tromey@redhat.com>
244 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
246 2010-06-28 Doug Evans <dje@google.com>
248 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
251 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
253 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
254 obstack_begin after each obstack_free.
256 2010-06-27 Doug Evans <dje@google.com>
258 * value.c (value_static_field): Use `switch' instead of `if'.
259 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
261 * valops.c (search_struct_field): Fix typo in error message.
263 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
265 * dwarf2expr.c (execute_stack_op): Place preprocessor
266 directives at the start of the source line.
268 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
270 * defs.h (make_command_stats_cleanup): Declare.
271 (set_display_time): Declare.
272 (set_display_space): Declare.
273 * event-top.c (command_handler): Use make_command_stats_cleanup.
274 * main.c (display_time, display_space): Move definitions to utils.c.
275 (captured_main): Use make_command_stats_cleanup to get start-up
277 Use set_display_time and set_display_space for processing OPT_STATISTICS
279 * maint.c (maintenance_time_display): Use set_display_time.
280 (maintenance_space_display): Use set_display_space.
281 * top.c (execute_command): Remove obsolete 'maint time' code.
282 (command_loop): Use make_command_stats_cleanup.
283 * utils.c (struct cmd_stats): Structure for storing initial time
285 (display_time, display_space): Move definitions here from utils.c.
286 (set_display_time): New function.
287 (set_display_space): New function.
288 (make_command_stats_cleanup): New function.
289 (report_command_stats): New auxiliary function for
290 make_command_stats_cleanup.
292 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
294 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
295 hosts where CORE_ADDR is long long.
297 2010-06-25 Tom Tromey <tromey@redhat.com>
300 * python/python.c (execute_gdb_command): Add keywords. Accept
301 "to_string" argument.
302 (struct restore_ui_file_closure): New.
303 (restore_ui_file): New function.
304 (make_cleanup_restore_ui_file): Likewise.
305 (GdbMethods) <execute>: Update.
307 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
309 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
310 during inferior call stack frame setup.
312 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
314 * solib-spu.c: Include "exception.h".
315 (ocl_program_data_key): New variable.
316 (append_ocl_sos): New function.
317 (ocl_enable_break): Likewise.
318 (spu_current_sos): Call append_ocl_sos.
319 (spu_solib_loaded): Call ocl_enable_break.
320 (_initialize_spu_solib): Register ocl_program_data_key.
322 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
324 * cp-support.c (reset_directive_searched): New function.
325 (make_symbol_overload_list_using): Prevent recursive calls.
327 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
329 * printcmd.c (print_variable_and_value): Print error message on
332 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
334 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
336 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
338 (dwarf_expr_push): Change input type to ULONGEST.
339 (dwarf_expr_fetch): Change return type to ULONGEST.
340 (dwarf_expr_fetch_address): Add prototype.
341 (dwarf2_read_address): Remove prototype.
342 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
343 Truncate stack values to ctx->addr_size bytes.
344 (dwarf_expr_fetch): Change return value to ULONGEST.
345 (dwarf_expr_fetch_address): New function.
346 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
347 when appropriate. Update for struct dwarf_expr_piece changes.
348 (dwarf2_read_address): Remove.
349 (unsigned_address_type): Remove.
350 (signed_address_type): Remove.
351 (execute_stack_op): Use dwarf_expr_fetch_address instead of
352 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
353 values. Perform operations on ULONGEST instead of on GDB values,
354 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
355 values and DW_OP_deref results as unsigned integers.
356 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
358 (write_pieced_value): Likewise.
359 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
360 dwarf_expr_fetch when appropriate.
361 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
362 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
363 instead of dwarf_expr_fetch when appropriate.
365 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
367 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
369 2010-06-24 Joel Brobecker <brobecker@adacore.com>
371 * python/python.c (_initialize_python): Add new "constant"
372 PYTHONDIR in gdb module. Insert this path at the head of
373 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
374 exec its __init__.py script if it exists in that directory.
376 2010-06-24 Kevin Buettner <kevinb@redhat.com>
378 * rx-tdep.c (RX_ACC_REGNUM): Define.
379 (RX_NUM_REGS): Redefine to 26.
380 (rx_register_name): Add register "acc". Change order of several
381 registers. Change name of "vct" register to "fintv" to match RX
383 (rx_register_type): Add case for RX_ACC_REGNUM.
385 2010-06-24 Tom Tromey <tromey@redhat.com>
387 * psymtab.c (lookup_partial_symbol): Mark definition as static.
389 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
390 Tom Tromey <tromey@redhat.com>
392 Fix GDB startup on readonly filesystem.
393 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
395 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
396 Pedro Alves <pedro@codesourcery.com>
399 * breakpoint.c (handle_jit_event): New function.
400 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
401 jit, err, table and bs_class. New variables shlib_event, jit_event,
402 this_action and bptype. Change bs_class assignments to this_action
403 assignments. new unhandled bptype internal error. Move here
404 shlib_event and jit_event handling from handle_inferior_event.
405 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
406 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
407 BPSTAT_WHAT_CHECK_JIT.
408 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
409 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
410 (handle_inferior_event): Reinitialize frame and gdbarch after
411 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
412 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
413 gdbarch when frame gets reinitialized.
415 2010-06-24 Hui Zhu <teawater@gmail.com>
417 * printcmd.c (ui_printf): New function.
418 (printf_command): Call ui_printf.
419 (_initialize_printcmd): New command "eval".
421 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
423 * infrun.c (handle_inferior_event): Handle presence of single-step
424 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
425 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
426 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
427 * breakpoint.c (detach_single_step_breakpoints): New function.
428 (detach_breakpoints): Call it.
429 (cancel_single_step_breakpoints): New function.
430 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
432 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
433 (spu_gdbarch_init): Install it.
435 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
437 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
438 * configure: Regenerate.
440 2010-06-22 Hui Zhu <teawater@gmail.com>
442 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
443 (i386_process_record): Ditto.
444 * record.c (record_memory_query): New variable.
445 (_initialize_record): New command "set record memory-query".
446 * record.h (record_memory_query): New extern.
448 2010-06-21 Doug Evans <dje@google.com>
450 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
451 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
452 (i386_syscall_p): Change type of lengthp to int.
453 (i386_displaced_step_fixup): Handle kernels that run one past a
455 * i386-linux-tdep.c (i386_linux_init_abi): Use
456 i386_displaced_step_copy_insn instead of
457 simple_displaced_step_copy_insn.
459 2010-06-21 Tom Tromey <tromey@redhat.com>
461 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
462 (dwarf_type_encoding_name): Likewise.
464 2010-06-21 Tom Tromey <tromey@redhat.com>
466 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
467 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
468 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
469 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
470 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
471 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
472 * dwarf2read.c (tag_type_to_type): Create a new error type on
474 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
475 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
477 2010-06-21 Michael Snyder <msnyder@vmware.com>
479 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
480 not add_abbrev_prefix_cmd, for "enable breakpoints".
482 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
484 * dwarf2loc.c (find_location_expression): Add relocation offset
485 to base-address-selection entry base addresses. Read addresses
486 (and offsets) as signed/unsigned integers, depending on the
487 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
488 (loclist_describe_location): Likewise.
489 (disassemble_dwarf_expression): Read DW_OP_addr operand as
490 unsigned integer. Do not call dwarf2_read_address.
491 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
493 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
495 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
496 value instead of hard-coded SPU_LS_SIZE.
497 (spu_software_single_step): Likewise.
498 * spu-tdep.h (SPU_LS_SIZE): Remove.
500 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
502 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
503 limit on local store memory accesses.
504 * spu-linux-nat.c (spu_xfer_partial): Likewise.
505 * spu-tdep.c (spu_lslr): Remove.
506 (spu_pointer_to_address): Do not truncate addresses.
507 (spu_integer_to_address): Likewise.
508 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
509 * spu-tdep.h: Add comments.
510 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
511 (SPU_OVERLAY_LMA): Define.
513 2010-06-18 Stan Shebs <stan@codesourcery.com>
515 * osdata.c (get_osdata): Warn separately if target does not report
517 (info_osdata_command): Allow empty type, report error if target
518 does not return available types of OS data.
519 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
520 types if no annex supplied.
522 * thread.c (thread_id_make_value): Make a value representing the
524 (_initialize_thread): Create $_thread.
526 2010-06-17 Joel Brobecker <brobecker@adacore.com>
528 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
529 last local variable declaration. No real code change.
531 2010-06-17 Tom Tromey <tromey@redhat.com>
533 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
534 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
537 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
538 Jan Kratochvil <jan.kratochvil@redhat.com>
540 * breakpoint.c: Include parser-defs.h.
541 (watchpoint_exp_is_const): New function.
542 (watch_command_1): Call watchpoint_exp_is_const to check
543 if the expression is constant.
545 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
547 * configure.ac: Check for RDYNAMIC also for cross builds.
548 * configure: Regenerate.
550 2010-06-15 Pedro Alves <pedro@codesourcery.com>
552 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
553 (SFILES): Remove solib-null.c, add solib-target.c.
554 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
555 (ALLDEPFILES): Remove solib-target.c.
556 * solib-target.c (_initialize_solib_target): Set
557 current_target_so_ops to solib_target_so_ops if not already set.
558 * solib-null.c: Delete.
560 2010-06-14 Pedro Alves <pedro@codesourcery.com>
562 * NEWS: Mention GDBserver's JIT compilation of tracepoint
565 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
567 * cp-valprint.c (cp_print_static_field): Members of
568 dont_print_stat_array_obstack are of type "struct type *".
569 (_initialize_cp_valprint): Likewise.
571 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
573 * frame.c (frame_register_unwind): Do not access contents
574 of "optimized out" unwound register value.
576 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
578 * ada-lang.h (ada_print_type): Make varstring const.
579 * ada-typeprint.c (print_func_type): Make name const.
580 (ada_print_type): Make varstring const.
581 * c-lang.h (c_print_type): Make varstring const.
582 * c-typeprint.c (c_print_type): Likewise.
583 * f-lang.h (f_print_type): Likewise.
584 * f-typeprint.c (f_print_type): Likewise.
585 * jv-lang.h (java_print_type): Likewise.
586 * jv-typeprint.c (java_print_type): Likewise.
587 * language.c (unk_lang_print_type): Likewise.
588 * language.h (struct language_defn) <la_print_type>: Likewise.
589 * m2-lang.h (m2_print_type): Likewise.
590 * m2-typeprint.c (m2_print_type): Likewise.
591 * p-lang.h (pascal_print_type): Likewise.
592 * p-typeprint.c (pascal_print_type): Likewise.
594 2010-06-11 Stan Shebs <stan@codesourcery.com>
596 Add per-operation permission flags.
598 * target.h (struct target_ops): New method to_set_permissions.
599 (target_set_permissions): New macro.
600 (target_insert_breakpoint): Change macro to function.
601 (target_remove_breakpoint): Ditto.
602 (target_stop): Ditto.
603 (may_write_registers): Declare.
604 (may_write_memory): Declare.
605 (may_insert_breakpoints): Declare.
606 (may_insert_tracepoints): Declare.
607 (may_insert_fast_tracepoints): Declare.
609 * target.c (may_write_registers, may_write_registers_1): New globals.
610 (may_write_memory, may_write_memory_1): New globals.
611 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
612 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
613 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
615 (may_stop, may_stop_1): New global.
616 (target_xfer_partial): Test for write permission.
617 (target_store_registers): Ditto.
618 (target_insert_breakpoint): New function.
619 (target_remove_breakpoint): New function.
620 (target_stop): New function.
621 (_initialize_targets): Add new set/show variables.
622 (set_write_memory_permission): New function.
623 (update_target_permissions): New function.
624 (set_target_permissions): New function.
625 (update_current_target): Default to_set_permissions.
626 (_initialize_targets): Use new globals and setter function.
627 * tracepoint.c (start_tracing): Test for permission.
628 * inferior.h (update_observer_mode): Declare.
629 * infrun.c (non_stop_1): Define earlier.
630 (observer_mode, observer_mode_1): New globals.
631 (set_observer_mode, show_observer_mode): New functions.
632 (update_observer_mode): New function.
633 (_initialize_infrun): Define "set observer" command.
634 * remote.c (PACKET_QAllow): New optional packet.
635 (remote_protocol_features): Add QAllow.
636 (remote_set_permissions): New function.
637 (remote_start_remote): Call it.
638 (init_remote_ops): Add it to target vector.
639 (_initialize_remote): Add config command for QAllow.
641 2010-06-11 Tom Tromey <tromey@redhat.com>
643 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
644 DW_AT_vtable_elem_location even when GCC extension is seen.
646 2010-06-11 Tom Tromey <tromey@redhat.com>
648 PR gdb/9977, PR exp/11636:
649 * value.h (value_offset): Update.
650 (struct lval_funcs) <check_validity>: New field.
651 <copy_closure>: Make argument const.
652 (value_computed_closure): Update.
653 (value_contents_for_printing): Declare.
654 (value_bits_valid): Likewise.
655 (val_print): Likewise.
656 (set_value_component_location): Update.
657 (value_entirely_optimized_out): Declare.
658 * value.c (value_offset): Argument now const.
659 (require_not_optimized_out): New function.
660 (value_contents_for_printing): New function.
661 (value_contents_all): Call require_not_optimized_out.
662 (value_contents): Likewise.
663 (value_bits_valid): New function.
664 (value_computed_closure): Argument now const.
665 (set_value_component_location): Make 'whole' argument const.
666 (value_entirely_optimized_out): New function.
667 (value_bitsize): Argument now 'const'.
668 (value_bitpos): Likewise.
669 (value_type): Likewise.
670 * valprint.h (val_print_array_elements): Update.
671 * valprint.c (val_print): Add 'val' argument. Use
672 valprint_check_validity.
673 (valprint_check_validity): New function.
674 (value_check_printable): Use value_entirely_optimized_out.
675 (common_val_print): Update.
676 (value_print): Likewise.
677 (val_print_array_elements): Add 'val' argument.
678 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
679 value_bits_valid. Reinit frame cache for lval_computed.
680 * sh64-tdep.c (sh64_do_register): Update.
681 * scm-valprint.c (scm_val_print): Add 'val' argument.
682 * scm-lang.h (scm_val_print): Update.
683 * python/python.h (apply_val_pretty_printer): Update.
684 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
685 argument. Call set_value_component_location.
686 * printcmd.c (print_scalar_formatted): Update.
687 * p-valprint.c (pascal_val_print): Add 'val' argument.
688 (pascal_object_print_value_fields): Likewise.
689 (pascal_object_print_value): Likewise.
690 (pascal_object_print_static_field): Update.
691 * p-lang.h (pascal_val_print): Update.
692 (pascal_object_print_value_fields): Update.
693 * mt-tdep.c (mt_registers_info): Update.
694 * mi/mi-main.c (get_register): Update.
695 (mi_cmd_data_evaluate_expression): Use common_val_print.
696 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
697 (m2_print_unbounded_array): Likewise.
698 (m2_val_print): Likewise.
699 * m2-lang.h (m2_val_print): Update.
700 * language.h (struct language_defn) <la_val_print>: Add 'val'
702 (LA_VAL_PRINT): Likewise.
703 * language.c (unk_lang_val_print): Add 'val' argument.
704 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
705 (java_val_print): Likewise.
706 * jv-lang.h (java_val_print): Add 'val' argument.
707 * infcmd.c (default_print_registers_info): Update.
708 * f-valprint.c (f77_print_array_1): Add 'val' argument.
709 (f77_print_array): Likewise.
710 (f_val_print): Likewise.
711 * f-lang.h (f_val_print): Add 'val' argument.
712 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
714 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
715 set_value_optimized_out.
716 (write_pieced_value): Use value_bitsize and value_bitpos.
717 <default>: Don't exit loop.
718 (check_pieced_value_validity): New function.
719 (pieced_value_funcs): Reference check_pieced_value_validity,
720 check_pieced_value_invalid.
721 (copy_pieced_value_closure): Update.
722 (check_pieced_value_bits): New function.
723 (check_pieced_value_invalid): New function.
724 * d-valprint.c (dynamic_array_type): Add 'val' argument.
725 (d_val_print): Likewise.
726 * d-lang.h (d_val_print): Update.
727 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
728 (cp_print_value_fields_rtti): Likewise.
729 (cp_print_value): Likewise.
730 (cp_print_static_field): Update.
731 * c-valprint.c (c_val_print): Add 'val' argument.
732 (c_value_print): Update.
733 * c-lang.h (c_val_print): Update.
734 (cp_print_value_fields): Likewise.
735 (cp_print_value_fields_rtti): Likewise.
736 * ada-valprint.c (struct ada_val_print_args): Remove.
737 (val_print_packed_array_elements): Add 'val' argument.
738 (ada_val_print): Likewise. Rewrite.
739 (ada_val_print_stub): Remove.
740 (ada_val_print_array): Add 'val' argument.
741 (ada_val_print_1): Likewise.
742 (print_variant_part): Likewise.
743 (ada_value_print): Update.
744 (print_record): Add 'val' argument.
745 (print_field_values): Likewise.
746 * ada-lang.h (ada_val_print): Update.
748 2010-06-11 Tom Tromey <tromey@redhat.com>
750 * vec.h (VEC_cleanup): New macro.
751 (DEF_VEC_ALLOC_FUNC_I): Update.
752 (DEF_VEC_ALLOC_FUNC_P): Likewise.
753 (DEF_VEC_ALLOC_FUNC_O): Likewise.
754 * dwarf2loc.c (struct axs_var_loc): Remove.
755 (unimplemented): New function.
756 (translate_register): Likewise.
757 (access_memory): Likewise.
758 (compile_dwarf_to_ax): Likewise.
759 (dwarf2_tracepoint_var_loc): Remove.
760 (dwarf2_tracepoint_var_access): Likewise.
761 (dwarf2_tracepoint_var_ref): Likewise.
762 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
763 (loclist_tracepoint_var_ref): Likewise.
764 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
765 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
766 require_composition. No longer static.
767 (execute_stack_op): Update.
768 * ax-gdb.h (trace_kludge): Declare.
770 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
772 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
773 (should_be_inserted): Return zero also on NULL OWNER.
774 (breakpoint_program_space_exit): New OWNER comment.
775 (insert_breakpoint_locations): Extend comment for OWNER.
776 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
777 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
779 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
780 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
781 (bpstat_check_location): New assert on OWNER.
782 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
783 and B initializations to the code block. New assert on them.
784 (print_one_breakpoint_location): New OWNER comment.
785 (watchpoint_locations_match): Assert on OWNER.
786 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
787 initializations to the code block. New assert on OWNER.
788 (set_breakpoint_location_function): New assert on OWNER.
789 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
790 (bp_location_compare, update_global_location_list)
791 (update_global_location_list): New OWNER comment.
793 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
795 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
797 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
799 * config/nm-linux.h (struct target_ops): Remove forward declaration.
800 (lin_thread_get_thread_signals): Remove prototype.
801 (GET_THREAD_SIGNALS): Remove.
802 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
803 * linux-thread-db.c (check_thread_signals): Directly call
804 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
806 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
808 * gregset.h (GDB_FPXREGSET_T): Remove.
809 (gdb_fpxregset_t): Likewise.
810 (supply_fpxregset): Remove prototype.
811 (fill_fpxregset): Likewise.
812 * i386-linux-nat.c (supply_fpxregset): Remove.
813 (fill_fpxregset): Likewise.
814 (fetch_fpxregs): Inline supply_fpxregset call.
815 (store_fpxregs): Inline fill_fpxregset call.
817 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
818 * config/i386/nm-linux.h: Remove file.
820 2010-06-09 Michael Snyder <msnyder@vmware.com>
822 * target.c (update_current_target): Fix spelling error in comment.
823 (target_mourn_inferior): Fix spelling error in error message.
825 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
827 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
828 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
830 2010-06-08 Michael Snyder <msnyder@vmware.com>
832 * remote.c (remote_close): Set inferior_ptid to null_ptid.
834 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
836 * configure.ac <"${have_libpython}" != no>: New workaround of
838 * configure: Regenerate.
840 2010-06-08 Hui Zhu <teawater@gmail.com>
842 * record.c (record_wait): Move signal out of replay code.
844 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
847 * dwarf2-frame.c (no_dwarf_call): New function.
848 (execute_stack_op): Set CTX->DWARF_CALL.
849 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
850 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
851 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
852 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
853 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
854 (needs_frame_dwarf_call): New function.
855 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
856 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
857 Update the comment. Move variables die, offset and error call to ...
858 (follow_die_ref): ... a new function.
859 (dwarf2_fetch_die_location_block): New function.
860 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
862 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
864 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
865 (dwarf_expr_tls_address): Use per_cu instead of objfile.
866 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
867 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
869 (struct needs_frame_baton): New field per_cu.
870 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
871 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
873 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
875 * cp-support.c (make_symbol_overload_list_namespace): Only search
876 static and global blocks.
877 (make_symbol_overload_list_block): New function.
878 (make_symbol_overload_list): Separate namespace search from block
880 (make_symbol_overload_list_qualified): Use
881 make_symbol_overload_list_block.
883 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
885 * value.h: Created oload_search_type enum.
886 (find_overload_match): Use oload_search_type enum.
887 * valops.c (find_overload_match): Support combined member and
889 * eval.c (evaluate_subexp_standard): Calls to
890 find_overload_match now use oload_search_type enum.
891 (oload_method_static): Verify index is a proper value.
892 * valarith.c (value_user_defined_cpp_op): Search for and handle
893 both member and non-member operators.
894 (value_user_defined_cpp_op): New function.
895 (value_user_defined_op): New function.
896 (value_x_unop): Use value_user_defined_op.
897 (value_x_binop): Ditto.
898 * cp-support.c (make_symbol_overload_list_using): Added block
900 Add check for namespace aliases and imported declarations.
902 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
904 * breakpoint.h (owner): Extend the comment.
906 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
908 Clear stale specific bp_location from former whole breakpoint.
909 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
911 (free_bp_location): ... here. Rename there the called function to
912 bpstat_remove_bp_location_callback.
913 (bpstat_remove_breakpoint_callback): Rename to ...
914 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
915 to struct bp_location. Change the called function to
916 bpstat_remove_bp_location. Create new declaration for the function.
917 (bpstat_remove_breakpoint): Rename to ...
918 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
919 code for the new parameter type.
921 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
923 * README: Make version-agnostic.
925 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
927 Fix duplicate types for single DIE.
928 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
930 (read_array_type): Remove type initialization. Recheck get_die_type
931 after initial die_type. Move set_die_type before set_descriptive_type.
932 (read_set_type): New variable domain_type. Recheck get_die_type after
933 initial die_type. Move attr initialization later.
934 (read_tag_pointer_type, read_tag_reference_type): New variable
935 target_type. Recheck get_die_type after initial die_type.
936 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
937 die_type and die_containing_type.
938 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
939 Recheck get_die_type after initial die_type.
940 (read_subrange_type): Recheck get_die_type after initial die_type.
941 Move set_die_type before set_descriptive_type.
942 (set_die_type): Extend the function comment. Call complaint if DIE has
943 some type already set.
945 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
947 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
948 for current naming of thread groups (iN, not N).
950 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
952 * ada-lang.c (ada_operator_length): Constify `struct expression'.
953 * parse.c (operator_length): Likewise.
954 (operator_length_standard): Likewise.
955 * parser-defs.h (operator_length): Likewise.
956 (operator_length_standard): Likewise.
957 (struct exp_descriptor <operator_length>): Likewise.
959 2010-06-04 Doug Evans <dje@google.com>
961 Add support for enabling/disabling individual pretty-printers.
962 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
963 * python/python-internal.h (gdbpy_enabled_cst): Declare.
964 * python/python.c (gdbpy_enabled_cst): Define.
965 (_initialize_python): Initialize gdbpy_enabled_cst.
968 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
970 * breakpoint.c (update_global_location_list): Fix comment typo.
972 2010-06-04 Hui Zhu <teawater@gmail.com>
974 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
976 2010-06-03 Doug Evans <dje@google.com>
978 * configure.ac: Don't fail if python is unusable when
979 configured with --with-python=auto.
980 * configure: Regenerate.
982 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
984 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
986 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
988 * valprint.h (get_array_bounds): Change low and high parameter types
990 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
992 (val_print_array_elements): Adapt to change above.
993 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
994 * p-valprint.c (pascal_val_print): Likewise.
996 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
998 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
999 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
1002 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1004 Support DW_TAG_module as separate namespaces.
1005 * dwarf2read.c (typename_concat): New parameter physname.
1006 (read_module_type): New function and declaration.
1007 (scan_partial_symbols): Scan also DW_TAG_module children.
1008 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
1009 to typename_concat backward compatible physname value 0.
1010 (partial_die_full_name, read_namespace_type): Pass to typename_concat
1011 backward compatible physname value 0.
1012 (add_partial_module, read_module): Remove FIXME comment.
1013 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
1014 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
1015 DIEs under DW_TAG_module.
1016 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
1017 DW_AT_MIPS_linkage_name first, extend it for language_fortran
1018 && physname and return there instead of just setting NAME. Extend
1019 the main block for language_fortran. Pass physname parameter to the
1020 typename_concat call.
1021 (read_import_statement, read_func_scope, get_scope_pc_bounds)
1022 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
1023 (new_symbol): Fill in cplus_specific.demangled_name if it is still
1024 missing from SYMBOL_SET_NAMES in the language_fortran case.
1025 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
1027 (read_type_die) <DW_TAG_module>: New.
1028 (MAX_SEP_LEN): Increase to 7.
1029 (typename_concat): New parameter physname. New variable lead. Support
1030 also language_fortran.
1031 * f-exp.y (yylex): Consider : also as a symbol name character class.
1032 * f-lang.c: Include cp-support.h.
1033 (f_word_break_characters, f_make_symbol_completion_list): New functions.
1034 (f_language_defn): Use cp_lookup_symbol_nonlocal,
1035 f_word_break_characters and f_make_symbol_completion_list.
1036 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
1037 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
1038 * symtab.c (symbol_init_language_specific): Support language_fortran.
1039 (symbol_find_demangled_name): New comment on language_fortran.
1040 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
1041 for language_fortran.
1042 (lookup_symbol_aux_local): Check imports also for language_fortran.
1043 (default_make_symbol_completion_list): Rename to ...
1044 (default_make_symbol_completion_list_break_on): ... this name. New
1045 parameter break_on, use it.
1046 (default_make_symbol_completion_list): New stub.
1047 * symtab.h (default_make_symbol_completion_list_break_on): New
1050 2010-06-02 Joel Brobecker <brobecker@adacore.com>
1052 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
1055 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1057 * dwarf2read.c (typename_concat): Add const to the variable sep.
1059 2010-06-02 Tom Tromey <tromey@redhat.com>
1061 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
1062 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
1063 type is const. Add 'def' argument. Add missing operators, remove
1065 (decode_locdesc): Update.
1066 (dwarf2_always_disassemble): New global.
1067 (show_dwarf2_always_disassemble): New function.
1068 (_initialize_dwarf2_read): Add always-disassemble.
1069 (dwarf2_per_cu_offset_size): New function.
1070 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
1071 (piece_end_p): New function.
1072 (locexpr_describe_location_piece): Replace 'size' argument with
1073 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
1074 some constants. Remove errors.
1075 (disassemble_dwarf_expression): New function.
1076 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
1077 Add 'offset_size' argument.
1078 (loclist_describe_location): Change output formatting.
1079 * dwarf2expr.h (dwarf_stack_op_name): Declare.
1081 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
1083 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
1084 anonymous type case.
1086 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
1088 * dwarf2read.c (read_subrange_type): Handle missing base type
1089 according to Dwarf-2 specifications.
1091 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
1093 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
1095 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
1096 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
1097 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
1098 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
1099 UNOP_CHMAX, UNOP_CHMIN.
1100 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
1101 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
1102 UNOP_CHMIN>: Remove opcodes.
1104 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
1106 * dwarf2read.c (read_func_scope): Do not complain for
1107 external function if bounds are not found.
1109 2010-06-01 Pedro Alves <pedro@codesourcery.com>
1111 * NEWS: Mention gdbserver fast tracepoints support.
1113 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
1115 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
1117 (windows_set_console_info): New function.
1118 (windows_create_inferior): Call windows_set_console_info
1119 if NEW_CONSOLE is true.
1120 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
1121 (_initialize_loadable): Initialize GetConsoleFontSize and
1122 GetCurrentConsoleFont.
1124 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1126 * Makefile.in (RDYNAMIC): New.
1127 (SFILES): Add proc-service.list.
1128 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
1129 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
1130 * config/arm/linux.mh: Likewise.
1131 * config/i386/linux.mh: Likewise.
1132 * config/i386/linux64.mh: Likewise.
1133 * config/ia64/linux.mh: Likewise.
1134 * config/m32r/linux.mh: Likewise.
1135 * config/m68k/linux.mh: Likewise.
1136 * config/mips/linux.mh: Likewise.
1137 * config/pa/linux.mh: Likewise.
1138 * config/powerpc/linux.mh: Likewise.
1139 * config/powerpc/ppc64-linux.mh: Likewise.
1140 * config/s390/s390.mh: Likewise.
1141 * config/sparc/linux.mh: Likewise.
1142 * config/sparc/linux64.mh: Likewise.
1143 * config/xtensa/linux.mh: Likewise.
1144 * configure.ac: New RDYNAMIC on native host and GCC.
1145 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
1146 * configure: Regenerate.
1147 * proc-service.list: New.
1149 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1151 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
1154 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1156 * linux-nat.c (linux_nat_wait_1): Do not call
1157 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
1158 TARGET_WAITKIND_SIGNALLED.
1160 2010-05-27 Joel Brobecker <brobecker@adacore.com>
1162 * ada-lang.c (ada_inferior_data): New struct.
1163 (ada_inferior_data): New static global.
1164 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
1165 (ada_get_tsd_type): New functions.
1166 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
1167 to look the tsd type up.
1168 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
1169 event. Set ada_inferior_data.
1171 2010-05-27 Pedro Alves <pedro@codesourcery.com>
1173 * remote.c (unpack_varlen_hex): Remove forward declaration.
1174 (remote_console_output): Make static, and add forward declaration.
1175 * remote.h: Drop FIXME comment.
1176 (unpack_varlen_hex): Declare.
1177 (remote_console_output, remote_cisco_objfile_relocate)
1178 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
1179 Delete declarations.
1180 * tracepoint.c: Include "remote.h".
1181 (unpack_varlen_hex): Delete declaration.
1183 2010-05-27 Tom Tromey <tromey@redhat.com>
1185 * dwarf2loc.c (struct piece_closure) <refc>: New field.
1186 (allocate_piece_closure): Initialize refc.
1187 (copy_pieced_value_closure): Use refc.
1188 (free_pieced_value_closure): Likewise.
1190 2010-05-27 Tom Tromey <tromey@redhat.com>
1192 * arm-tdep.c (push_stack_item): 'contents' now const.
1193 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
1194 value_contents_writeable. Introduce new temporary.
1196 2010-05-27 Tom Tromey <tromey@redhat.com>
1198 * findcmd.c (parse_find_args): Use value_contents, not
1201 2010-05-27 Tom Tromey <tromey@redhat.com>
1203 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
1204 const. Use value_contents, not value_contents_writeable.
1206 2010-05-27 Joel Brobecker <brobecker@adacore.com>
1208 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
1209 by call to value_contents.
1211 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
1213 * MAINTAINERS: Add myself for write after approval privileges.
1215 2010-05-26 Doug Evans <dje@google.com>
1217 Allow python to find its files if moved from original location.
1218 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
1219 (GDB_AC_WITH_DIR): Call it.
1220 * configure.ac: Define WITH_PYTHON_PATH if we can find the
1221 python installation directory.
1222 * config.in: Regenerate.
1223 * configure: Regenerate.
1224 * defs.h (python_libdir): Declare.
1225 * main.c (python_libdir): Define.
1226 (captured_main): Initialize python_libdir.
1227 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
1228 call Py_SetProgramName to make sure python can find its libraries
1231 * configure.ac: Try to use python's distutils to fetch compilation
1233 * configure: Regenerate.
1234 * python/python-config.py: New file.
1236 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
1238 * ser-tcp.c (net_open): Check error return from socket() call by its
1239 equality to -1 not by it being negative.
1240 (net_close): Likewise.
1242 2010-05-26 Pedro Alves <pedro@codesourcery.com>
1244 * NEWS: Mention the `qRelocInsn' feature.
1245 * gdbarch.sh (relocate_instruction): New.
1246 * amd64-tdep.c (rip_relative_offset): New.
1247 (append_insns): New.
1248 (amd64_relocate_instruction): New.
1249 (amd64_init_abi): Install it.
1250 * i386-tdep.c (append_insns): New.
1251 (i386_relocate_instruction): New.
1252 (i386_gdbarch_init): Install it.
1253 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
1254 * gdbarch.h, gdbarch.c: Regenerate.
1256 2010-05-26 Tom Tromey <tromey@redhat.com>
1258 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
1259 (struct dwarf2_loclist_baton) <data>: Likewise.
1260 * dwarf2loc.c (find_location_expression): Constify return type.
1261 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
1262 (dwarf2_loc_desc_needs_frame): Likewise.
1263 (loclist_read_variable): Constify.
1264 (loclist_describe_location): Likewise.
1265 (loclist_tracepoint_var_ref): Likewise.
1267 2010-05-25 Tom Tromey <tromey@redhat.com>
1269 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
1270 (dwarf_expr_frame_base_1): Likewise.
1271 (read_pieced_value): Update.
1272 (needs_frame_frame_base): Constify.
1273 (dwarf2_tracepoint_var_loc): Likewise.
1274 (dwarf2_tracepoint_var_access): Likewise.
1275 (locexpr_describe_location_piece): Likewise.
1276 (locexpr_describe_location_1): Likewise.
1277 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
1280 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
1281 (dwarf_expr_eval, read_uleb128, read_sleb128)
1282 (dwarf2_read_address): Update.
1283 * dwarf2expr.c (dwarf_expr_eval): Constify.
1284 (read_uleb128): Likewise.
1285 (read_sleb128): Likewise.
1286 (dwarf2_read_address): Likewise.
1287 (require_composition): Likewise.
1288 (execute_stack_op): Likewise.
1289 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
1291 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
1293 (no_get_frame_base): Constify.
1294 (execute_stack_op): Likewise.
1295 (execute_cfa_program): Likewise.
1296 (read_encoded_value): Likewise.
1298 2010-05-25 Doug Evans <dje@google.com>
1300 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
1302 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
1303 * event-loop.c: ... here.
1304 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
1305 `error' for clarity.
1306 (tui_getc): Pass correct value for `error' parameter to
1307 tui_readline_output.
1309 Add python gdb.GdbError and gdb.string_to_argv.
1310 * NEWS: Document them.
1311 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
1312 the exception is gdb.GdbError. Print a second traceback if there's
1313 an error computing the error message.
1314 (gdbpy_string_to_argv): New function.
1315 * python/py-utils.c (gdbpy_obj_to_string): New function.
1316 (gdbpy_exception_to_string): New function.
1317 * python/python-internal.h (gdbpy_string_to_argv): Declare.
1318 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
1319 (gdbpy_gdberror_exc): Declare.
1320 * python/python.c (gdbpy_gdberror_exc): New global.
1321 (_initialize_python): Initialize gdbpy_gdberror_exc and create
1323 (GdbMethods): Add string_to_argv.
1325 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1327 * windows-nat.c (display_selector): Call GetLastError to give better
1328 failure explanation.
1330 2010-05-24 Pedro Alves <pedro@codesourcery.com>
1332 * config.in: Regenerate.
1334 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1337 * target.c (push_target): Return only void. Remove the return value
1339 * target.h (push_target): Return only void.
1341 2010-05-23 Pedro Alves <pedro@codesourcery.com>
1343 Update gnulib from latest git.
1344 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1346 * gnulib/memcmp.c: Removed.
1347 * gnulib/memchr.valgrind: New.
1348 * gnulib/stddef.in.h: New.
1349 * gnulib/Makefile.am: Updated.
1350 * gnulib/memchr.c: Updated.
1351 * gnulib/memmem.c: Updated.
1352 * gnulib/stdint.in.h: Updated.
1353 * gnulib/str-two-way.h: Updated.
1354 * gnulib/string.in.h: Updated.
1355 * gnulib/wchar.in.h: Updated.
1357 * gnulib/extra/link-warning.h: Removed.
1358 * gnulib/extra/c++defs.h: New.
1359 * gnulib/extra/warn-on-use.h: New.
1360 * gnulib/extra/arg-nonnull.h: Updated.
1362 * gnulib/m4/extensions.m4: Updated.
1363 * gnulib/m4/gnulib-cache.m4: Updated.
1364 * gnulib/m4/gnulib-common.m4: Updated.
1365 * gnulib/m4/gnulib-comp.m4: Updated.
1366 * gnulib/m4/gnulib-tool.m4: Updated.
1367 * gnulib/m4/include_next.m4: Updated.
1368 * gnulib/m4/longlong.m4: Updated.
1369 * gnulib/m4/memchr.m4: Updated.
1370 * gnulib/m4/memmem.m4: Updated.
1371 * gnulib/m4/stdint.m4: Updated.
1372 * gnulib/m4/string_h.m4: Updated.
1373 * gnulib/m4/memcmp.m4: Removed.
1374 * gnulib/m4/onceonly_2_57.m4: Removed.
1375 * gnulib/m4/00gnulib.m4: New.
1376 * gnulib/m4/mmap-anon.m4: New.
1377 * gnulib/m4/multiarch.m4: New.
1378 * gnulib/m4/onceonly.m4: New.
1379 * gnulib/m4/stddef_h.m4: New.
1380 * gnulib/m4/warn-on-use.m4: New.
1381 * gnulib/m4/wchar.m4: Removed.
1382 * gnulib/m4/wchar_h.m4: New.
1383 * gnulib/m4/wchar_t.m4: New.
1384 * gnulib/m4/wint_t.m4: New.
1386 * aclocal.m4: Regenerate.
1387 * config.in: Likewise.
1388 * configure: Likewise.
1389 * gnulib/Makefile.in: Likewise.
1391 2010-05-21 Tom Tromey <tromey@redhat.com>
1393 * dwarf2loc.c (extract_bits_primitive): New function.
1394 (extract_bits): Likewise.
1395 (insert_bits): Likewise.
1396 (copy_bitwise): Likewise.
1397 (read_pieced_value): Do all operations in bits.
1398 (write_pieced_value): Likewise.
1399 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
1400 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
1401 Always use xrealloc to resize piece array.
1402 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
1403 <DW_OP_piece>: Update.
1404 <DW_OP_bit_piece>: New case.
1406 2010-05-21 Tom Tromey <tromey@redhat.com>
1408 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
1409 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
1410 * dwarf2expr.h (enum dwarf_value_location)
1411 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
1412 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
1413 (add_piece): Handle empty piece.
1414 (execute_stack_op) <DW_OP_piece>: Handle
1415 DWARF_VALUE_OPTIMIZED_OUT.
1417 2010-05-21 Tom Tromey <tromey@redhat.com>
1419 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
1420 evaluate_subexp, not evaluate_subexp_with_coercion.
1422 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1424 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1427 2010-05-21 Tom Tromey <tromey@redhat.com>
1429 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
1431 (write_pieced_value): Likewise.
1433 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1435 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1436 and DW_TAG_volatile_type.
1437 (new_symbol): Likewise.
1439 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
1441 * p-valprint.c (pascal_val_print): Call get_array_bounds
1442 to obtain the number of elements in an array.
1444 2010-05-19 Doug Evans <dje@google.com>
1446 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
1448 * python.c (source_python_script): Add comment.
1449 (source_python_script_for_objfile): Remove unnecessary call to
1452 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1453 Sergio Durigan Junior <sergiodj@redhat.com>
1456 * parse.c (exp_iterate): Use operator_length wrapper function.
1458 2010-05-18 Michael Snyder <msnyder@vmware.com>
1460 * ada-lang.c: White space.
1461 * ada-typeprint.c: White space.
1462 * ada-valprint.c: White space.
1463 * addrmap.c: White space.
1464 * auxv.c: White space.
1465 * ax-gdb.c: White space.
1467 2010-05-18 Hui Zhu <teawater@gmail.com>
1469 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
1471 (inferior_call_waitpid): Move make_cleanup out of check.
1472 Check the return of waitpid.
1473 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
1475 2010-05-17 Michael Snyder <msnyder@vmware.com>
1477 * tui/tui.c: White space.
1478 * tui/tui-data.c: White space.
1479 * tui/tui-disasm.c: White space.
1480 * tui/tui-file.c: White space.
1481 * tui/tui-interp.c: White space.
1482 * tui/tui-main.c: White space.
1483 * tui/tui-out.c: White space.
1484 * tui/tui-regs.c: White space.
1485 * tui/tui-source.c: White space.
1486 * tui/tui-stack.c: White space.
1487 * tui/tui-win.c: White space.
1488 * tui/tui-winsource.c: White space.
1490 * procfs.c: White space.
1492 * python/py-auto-load.c: White space.
1493 * python/py-block.c: White space.
1494 * python/py-breakpoint.c: White space.
1495 * python/py-cmd.c: White space.
1496 * python/py-function.c: White space.
1497 * python/py-lazy-string.c: White space.
1498 * python/py-objfile.c: White space.
1499 * python/py-param.c: White space.
1500 * python/py-prettyprint.c: White space.
1501 * python/py-progspace.c: White space.
1502 * python/py-symtab.c: White space.
1503 * python/python.c: White space.
1504 * python/py-type.c: White space.
1505 * python/py-utils.c: White space.
1506 * python/py-value.c: White space.
1508 * mi/mi-cmd-break.c: White space.
1509 * mi/mi-cmd-env.c: White space.
1510 * mi/mi-cmds.c: White space.
1511 * mi/mi-cmd-stack.c: White space.
1512 * mi/mi-cmd-var.c: White space.
1513 * mi/mi-console.c: White space.
1514 * mi/mi-getopt.c: White space.
1515 * mi/mi-interp.c: White space.
1516 * mi/mi-main.c: White space.
1517 * mi/mi-out.c: White space.
1518 * mi/mi-parse.c: White space.
1520 * cli/cli-cmds.c: White space.
1521 * cli/cli-decode.c: White space.
1522 * cli/cli-dump.c: White space.
1523 * cli/cli-interp.c: White space.
1524 * cli/cli-logging.c: White space.
1525 * cli/cli-script.c: White space.
1526 * cli/cli-setshow.c: White space.
1528 * valarith.c: White space.
1529 * valops.c: White space.
1530 * valprint.c: White space.
1531 * value.c: White space.
1532 * varobj.c: White space.
1533 * xcoffread.c: White space.
1534 * xml-support.c: White space.
1535 * xml-tdesc.c: White space.
1537 2010-05-17 Andreas Schwab <schwab@redhat.com>
1540 * c-lang.c (c_printstr): Compute real length of NUL terminated
1543 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1545 * parse.c (parse_exp_in_context): When block is not NULL, use
1546 its associated language to parse the expression instead of
1547 the current_language.
1549 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1551 * jv-lang.c (java_lookup_class): Remove commented out code.
1552 (type_from_class): Likewise.
1553 (java_op_print_tab): Remove commented-out elements.
1555 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1557 * ada-lang.c (to_fixed_range_type): The the raw index type as
1558 argument instead of the raw type name. Remove orig_type parameter.
1559 Update calls throughout.
1560 (ada_fixup_array_indexes_type): New function.
1561 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
1562 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
1563 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
1564 Remove name parameter.
1565 (print_array_type): Add call to ada_fixup_array_indexes_type.
1566 Update calls to print_range_type.
1567 (ada_print_type): Update calls to print_range_type.
1569 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1571 * dwarf2read.c (read_set_type): Set type length if
1572 DW_AT_byte_size attribute is present.
1574 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1576 * p-valprint.c (pascal_val_print): Handle set type if range limits
1577 are undefined but size is known.
1579 2010-05-17 Pedro Alves <pedro@codesourcery.com>
1581 * procfs.c: Reformat.
1583 2010-05-16 Michael Snyder <msnyder@vmware.com>
1585 * target.c: White space.
1586 * target-descriptions.c: White space.
1587 * target-memory.c: White space.
1588 * thread.c: White space.
1589 * top.c: White space.
1590 * tracepoint.c: White space.
1591 * trad-frame.c: White space.
1592 * tramp-frame.c: White space.
1593 * ui-file.c: White space.
1594 * ui-out.c: White space.
1595 * user-regs.c: White space.
1596 * utils.c: White space.
1598 * scm-exp.c: White space.
1599 * scm-lang.c: White space.
1600 * scm-valprint.c: White space.
1601 * sentinel-frame.c: White space.
1602 * ser-base.c: White space.
1603 * ser-go32.c: White space.
1604 * serial.c: White space.
1605 * ser-mingw.c: White space.
1606 * ser-pipe.c: White space.
1607 * ser-tcp.c: White space.
1608 * ser-unix.c: White space.
1609 * solib.c: White space.
1610 * solib-darwin.c: White space.
1611 * solib-frv.c: White space.
1612 * solib-irix.c: White space.
1613 * solib-osf.c: White space.
1614 * solib-pa64.c: White space.
1615 * solib-som.c: White space.
1616 * solib-spu.c: White space.
1617 * solib-svr4.c: White space.
1618 * solib-target.c: White space.
1619 * source.c: White space.
1620 * stabsread.c: White space.
1621 * stack.c: White space.
1622 * std-regs.c: White space.
1623 * symfile.c: White space.
1624 * symmisc.c: White space.
1625 * symtab.c: White space.
1627 2010-05-16 Michael Snyder <msnyder@vmware.com>
1629 * source.c (_initialize_source): Add "rev" as an abbreviation
1630 for the "reverse-search" command.
1632 2010-05-16 Michael Snyder <msnyder@vmware.com>
1634 * record.c: White space.
1635 * regcache.c: White space.
1636 * reggroups.c: White space.
1637 * remote-fileio.c: White space.
1638 * remote-m32r-sdi.c: White space.
1639 * remote-mips.c: White space.
1640 * remote-sim.c: White space.
1641 * remote.c: White space.
1642 (process_g_packet): Remove orphan braces.
1644 2010-05-15 Michael Snyder <msnyder@vmware.com>
1646 * parse.c: White space.
1647 * p-lang.c: White space.
1648 * posix-hdep.c: White space.
1649 * printcmd.c: White space.
1650 * progspace.c: White space.
1651 * prologue-value.c: White space.
1652 * psymtab.c: White space.
1653 * p-typeprint.c: White space.
1654 * p-valprint.c: White space.
1656 * objc-lang.c: White space.
1657 * objfiles.c: White space.
1658 * observer.c: White space.
1659 * osabi.c: White space.
1660 * osdata.c: White space.
1662 * m2-lang.c: White space.
1663 * m2-valprint.c: White space.
1664 * macrocmd.c: White space.
1665 * macroexp.c: White space.
1666 * macroscope.c: White space.
1667 * macrotab.c: White space.
1668 * main.c: White space.
1669 * maint.c: White space.
1670 * mdebugread.c: White space.
1671 * memattr.c: White space.
1672 * minsyms.c: White space.
1673 * monitor.c: White space.
1675 2010-05-14 Michael Snyder <msnyder@vmware.com>
1677 * jv-lang.c: White space.
1678 * jv-typeprint.c: White space.
1679 * jv-valprint.c: White space.
1680 * language.c: White space.
1681 * libunwind-frame.c: White space.
1682 * linespec.c: White space.
1683 * linux-nat.c: White space.
1684 * linux-record.c: White space.
1685 * linux-thread-db.c: White space.
1687 * infcall.c: White space.
1688 * inf-child.c: White space.
1689 * infcmd.c: White space.
1690 * inferior.c: White space.
1691 * inf-loop.c: White space.
1692 * inflow.c: White space.
1693 * inline-frame.c: White space.
1694 * interps.c: White space.
1696 * gcore.c: White space.
1697 * gdb.c: White space.
1698 * gdbtypes.c: White space.
1699 * gnu-nat.c: White space.
1700 * gnu-v2-abi.c: White space.
1701 * gnu-v3-abi.c: White space.
1703 * findcmd.c: White space.
1704 * findvar.c: White space.
1705 * fork-child.c: White space.
1706 * frame-base.c: White space.
1707 * frame.c: White space.
1708 * frame-unwind.c: White space.
1709 * f-valprint.c: White space.
1711 * elfread.c: White space.
1712 * environ.c: White space.
1713 * eval.c: White space.
1714 * event-loop.c: White space.
1715 * event-top.c: White space.
1716 * exceptions.c: White space.
1717 * exec.c: White space.
1718 * expprint.c: White space.
1720 * dbxread.c: White space.
1721 * dcache.c: White space.
1722 * disasm.c: White space.
1723 * doublest.c: White space.
1724 * dsrec.c: White space.
1725 * dummy-frame.c: White space.
1726 * dwarf2expr.c: White space.
1727 * dwarf2-frame.c: White space.
1728 * dwarf2loc.c: White space.
1729 * dwarf2read.c: White space.
1731 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
1735 * python/py-value.c (valpy_hash): New function.
1736 (value_object_type): Register valpy_hash.
1738 2010-05-14 Hui Zhu <teawater@gmail.com>
1739 Michael Snyder <msnyder@vmware.com>
1741 * linux-fork.c (gdbthread.h): New include.
1742 (fork_info): Add parent_ptid.
1743 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
1745 (delete_checkpoint_command): Call inferior_call_waitpid.
1746 (checkpoint_command): Set parent_ptid.
1748 2010-05-13 Michael Snyder <msnyder@vmware.com>
1750 * dictionary.c: Re-indent to GNU coding standard.
1752 * charset.c: White space.
1753 * c-lang.c: White space.
1754 * cli-out.c: White space.
1755 * coffread.c: White space.
1756 * complaints.c: White space.
1757 * completer.c: White space.
1758 * corefile.c: White space.
1759 * corelow.c: White space.
1760 * cp-abi.c: White space.
1761 * cp-namespace.c: White space.
1762 * cp-support.c: White space.
1763 * cp-valprint.c: White space.
1764 * c-typeprint.c: White space.
1765 * c-valprint.c: White space.
1766 * blockframe.c: White space.
1767 * breakpoint.c: White space.
1768 * buildsym.c: White space.
1769 * blockframe.c: White space.
1770 * bcache.c: White space.
1771 * gdbarch.sh: White space, add blank lines.
1772 * arch-utils.c: Ditto.
1773 * gdbarch.c: Regenerate.
1774 * frame.c: White space, add blank lines.
1775 * stack.c: White space, add blank lines.
1776 (initialize_stack): Remove long-dead code.
1778 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1781 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
1782 (locexpr_read_variable, loclist_read_variable): Update the callers.
1784 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1787 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
1788 Remove check of NULL returned by tag_type_to_type.
1789 (die_containing_type): Remove variable type. Remove type_die variable
1790 initialization. Remove check of NULL returned by tag_type_to_type.
1792 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1795 * gdbtypes.c (lookup_struct_elt_type): Also lookup
1796 names of unnamed structures or unions.
1798 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1800 * procfs.c (proc_watchpoint_address): New function.
1801 (procfs_stopped_by_watchpoint): Remove useless check after
1802 find_procinfo_or_die call.
1803 (procfs_stopped_data_address): New function.
1804 (procfs_use_watchpoints): Register new watchpoint related function.
1806 2010-05-11 Tom Tromey <tromey@redhat.com>
1808 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
1810 2010-05-10 Michael Snyder <msnyder@vmware.com>
1812 * utils.c: White space cleanup.
1814 2010-05-10 Tom Tromey <tromey@redhat.com>
1816 * eval.c (ptrmath_type_p): Add 'lang' argument.
1817 (evaluate_subexp_standard): Update.
1818 (evaluate_subexp_with_coercion): Update.
1819 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
1821 2010-05-10 Michael Snyder <msnyder@vmware.com>
1823 * utils.c (do_fclose_cleanup) Restore local variable.
1825 2010-05-09 Doug Evans <dje@google.com>
1827 * record.c (init_record_core_ops): Rename record_core to record-core.
1829 2010-05-08 Joel Brobecker <brobecker@adacore.com>
1831 Implement task switching on pa-hpux.
1832 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
1833 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
1835 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1837 * valops.c (find_overload_match): Add missing i18n markup.
1839 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1841 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
1843 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1845 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
1846 list for the obconcat call.
1847 * mdebugread.c (parse_symbol): Likewise.
1848 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
1850 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
1851 New variable ap. Remove variables len and val.
1852 * symfile.h (obconcat): Likewise for the prototype.
1854 2010-05-07 Michael Snyder <msnyder@vmware.com>
1856 * python/python.c (execute_gdb_command): Remove unused variables.
1857 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
1858 * python/py-breakpoint.c (gdbpy_breakpoint_created):
1859 Remove unused variable.
1860 * python/py-cmd.c (cmdpy_function): Remove unused variable.
1861 (cmdpy_completer): Remove unused variable.
1862 * python/py-frame.c (frapy_find_sal): Remove unused variable.
1863 * python/py-function.c (fnpy_call): Remove unused variable.
1864 * python/py-objfile.c (objfile_to_objfile_object):
1865 Remove unused variable.
1866 * python/py-param.c (parmpy_init): Remove unused variable.
1867 * python/py-prettyprint.c (apply_varobj_pretty_printer):
1868 Remove unused variable.
1869 (gdbpy_default_visualizer): Remove unused variable.
1870 * python/py-progspace.c (pspace_to_pspace_object):
1871 Remove unused variable.
1872 * python/py-symtab.c (symtab_and_line_to_sal_object):
1873 Remove unused variable.
1874 * python/py-type.c (typy_template_argument):
1875 Remove unused variable.
1876 * python/py-value.c (valpy_string): Remove unused variable.
1877 (convert_value_from_python): Remove unused variables.
1879 2010-05-07 Michael Snyder <msnyder@vmware.com>
1881 * valops.c (value_cast_pointers): Restore unused variable 'type1',
1882 and use it to compute variable 't1'.
1884 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1886 * ada-lang.c (assign_aggregate): Remove unused variable.
1888 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
1891 * valops.c (find_overload_match): Handle fsym == NULL case.
1892 Add int no_adl argument.
1893 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
1895 Add int no_adl argument.
1896 (find_oload_champ_namespace): Add int no_adl argument.
1897 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
1899 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
1900 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
1901 Evaluate arguments and use them to perform ADL lookup.
1902 Pass no_adl argument to find_overload_match.
1903 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
1904 * cp-support.h: Added prototype for
1905 make_symbol_overload_list_namespace.
1906 * cp-support.c (make_symbol_overload_list_namespace): New function.
1907 (make_symbol_overload_list_adl_namespace): New function.
1908 (make_symbol_overload_list_adl): New function.
1909 (make_symbol_overload_list_using): Moved code to add function to
1910 overload set to make_symbol_overload_list_namespace.
1911 * c-exp.y: create UNKNOWN_CPP_NAME token.
1912 Add parse rule for ADL functions.
1913 (classify_name): Recognize an UNKNOWN_CPP_NAME.
1915 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1917 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
1920 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1922 Implement task switching on solaris targets.
1923 * sol-thread.c (thread_db_find_thread_from_tid)
1924 (sol_get_ada_task_ptid): New functions.
1925 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
1927 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1929 * remote.c (remote_query_supported_append): Use reconcat.
1930 (remote_query_supported): Install a cleanup. Use reconcat.
1932 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1934 * gdbarch.sh (qsupported): Delete.
1935 * gdbarch.h, gdbarch.c: Regenerate.
1936 * remote.c (remote_query_supported): Remove use of
1939 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1941 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
1944 2010-05-06 Michael Snyder <msnyder@vmware.com>
1946 * xml-support.c (xinclude_start_include): Delete unused variable.
1947 (xml_process_xincludes): Delete unused variable.
1948 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
1949 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
1950 (tdesc_find_arch_register): Delete unused variable.
1951 (tdesc_use_registers): Delete unused variable.
1952 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
1953 * inferior.c (print_inferior): Delete unused variable.
1954 * record.c (record_open_1): Delete unused variable.
1955 (record_restore): Delete unused variable.
1956 (cmd_record_save): Delete unused variable.
1957 * gcore.c (derive_heap_segment): Delete unused variable.
1958 (objfile_find_memory_regions): Use unused variable.
1959 * jit.c (jit_inferior_init): Delete unused variable.
1960 * progspace.c (clone_program_space): Delete unused variable.
1961 (pspace_empty_p): Delete unused variable.
1963 * frame-unwind.c (frame_unwind_find_by_frame):
1964 Delete unused variable.
1965 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
1966 * cp-support.c (mangled_name_to_comp): Delete unused variable.
1967 (method_name_from_physname): Delete unused variable.
1968 (cp_func_name): Delete unused variable.
1969 (cp_validate_operator): Delete unused variable.
1970 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1971 Delete unused variable.
1972 * trad-frame.c (trad_frame_get_prev_register):
1973 Delete unused variable.
1974 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
1976 * serial.c (serial_for_fd): Delete unused variable.
1977 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
1978 * top.c (execute_command): Delete unused variable.
1979 (init_main): Delete unused variable.
1980 * utils.c (do_fclose_cleanup): Delete unused variable.
1981 (do_all_inferior_continuations): Delete unused variable.
1982 (initialize_utils): Delete unused variable.
1983 (internal_problem_mode): Delete unused global.
1984 * frame.c (get_prev_frame): Delete unused global.
1985 (get_frame_locals_address): Delete unused global.
1986 (get_frame_args_address): Delete unused global.
1988 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
1989 (pascal_type_print_varspec_prefix): Delete unused variable.
1990 * f-typeprint.c (f_type_print_base): Delete unused variable.
1991 (f_type_print_varspec_suffix): Delete unused variable.
1992 * m2-typeprint.c (m2_print_type): Delete unused variable.
1993 (m2_long_set): Delete unused variable.
1994 * ada-valprint.c (ada_val_print_1): Delete unused variable.
1995 * d-valprint.c (dynamic_array_type): Delete unused variable.
1996 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
1997 Delete unused variable.
1998 (f77_create_arrayprint_offset_tbl): Delete unused variable.
1999 * m2-valprint.c (m2_val_print): Delete unused variable.
2001 * ui-out.c (ui_out_field_int): Delete unused variable.
2002 (ui_out_field_fmt_int): Delete unused variable.
2003 * varobj.c (varobj_list_children): Delete unused variable.
2004 (varobj_set_value): Delete unused variable.
2005 (install_new_value_visualizer): Delete unused variable.
2006 (varobj_set_visualizer): Delete unused variable.
2007 (varobj_update): Delete unused variable.
2008 (varobj_editable_p): Delete unused variable.
2009 (c_value_of_root): Delete unused variable.
2010 (cplus_describe_child): Delete unused variable.
2012 * ada-lang.c (add_defn_to_vec): Delete unused variable.
2013 (decode_constrained_packed_array_type): Delete unused variable.
2014 (add_defn_to_vec): Delete unused variable.
2015 (symbol_completion_match): Delete unused variable.
2016 (value_tag_from_contents_and_address): Delete unused variable.
2017 (ada_evaluate_subexp): Delete unused variable.
2018 * c-lang.c (classify_type): Delete unused variable.
2019 * f-lang.c (f_printstr): Delete unused variable.
2020 * objc-lang.c (objc_printstr): Delete unused variable.
2021 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
2022 * jv-lang.c (type_from_class): ifdef unused variable.
2023 (java_class_name_from_physname): Delete unused variable.
2024 * m2-lang.c (m2_printstr): Delete unused variable.
2026 * objfiles.c (objfile_relocate): Delete unused variable.
2027 * maint.c (_initialize_maint_cmds): Delete unused variable.
2028 * demangle.c (_initialize_demangler): Delete unused variable.
2029 * corefile.c (reopen_exec_file): Delete unused variable.
2030 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
2031 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
2033 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
2034 * memattr.c (mem_delete): Delete unused variable.
2035 (invalidate_target_mem_regions): Delete unused variable.
2036 * mem-break.c (default_memory_insert_breakpoint):
2037 Delete unused variable.
2038 * target.c (target_get_osdata): Delete unused variable.
2039 * parse.c (length_of_subexp): Delete unused variable.
2040 (prefixify_subexp): Delete unused variable.
2041 (exp_iterate): Delete unused variable.
2042 * reverse.c (delete_bookmark_command): Delete unused variable.
2044 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
2045 * macroexp.c (gather_arguments): Delete unused variable.
2046 (substitute_args): Delete unused variable.
2047 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
2048 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
2049 (_initialize_gdbarch): Delete unused variable.
2050 * gdbarch.c, gdbarch.h: Regenerate.
2051 * arch-utils.c (initialize_current_architecture):
2052 Delete unused variable.
2053 (_initialize_gdbarch_utils): Delete unused variable.
2054 * gdbtypes.c (make_cv_type): Delete unused variable.
2055 (make_type_with_address_space): Delete unused variable.
2057 * linespec.c (decode_compound): Delete unused variable.
2058 * dictionary.c (iterator_next_hashed): Delete unused variable.
2059 * infcall.c (call_function_by_hand): Delete unused variable.
2060 * infcmd.c (step_1): Delete unused variable.
2061 (registers_info): Delete unused variable.
2062 (attach_command): Delete unused variable.
2063 * infrun.c (follow_exec): Delete unused variable.
2064 (handle_step_into_function_backwards): Delete unused variable.
2065 (_initialize_infrun): Delete unused variable.
2066 * stack.c (parse_frame_specification_1): Delete unused variable.
2067 (frame_info): Delete unused variable.
2068 (backtrace_command_1): Delete unused variable.
2069 (catch_info): Delete unused variable.
2071 * eval.c (evaluate_subexp_standard): Delete unused variable.
2072 * valops.c (value_cast_pointers): Delete unused variable.
2073 (value_dynamic_cast): Delete unused variable.
2074 (value_array): Delete unused variable.
2075 (find_overload_match): Delete unused variable.
2076 * valarith.c (value_subscript): Delete unused variable.
2077 (value_binop): Delete unused variable.
2078 * valprint.c (_initialize_valprint): Delete unused variable.
2079 * printcmd.c (print_command_1): Delete unused variable.
2080 (address_info): Delete unused variable.
2081 (printf_command): Delete unused variable.
2083 * auxv.c (target_auxv_search): Delete unused variable.
2084 * blockframe.c (get_frame_block): Delete unused variable.
2085 * regcache.c (regcache_cpy): Delete unused variable.
2086 (regcache_cpy_no_passthrough): Delete unused variable.
2087 * charset.c (wchar_iterate): Delete unused variable.
2088 (find_charset_names): Delete unused variable.
2089 (_initialize_charset): Delete unused variable.
2090 * disasm.c (do_mixed_source_and_assembly):
2091 Delete unused variable.
2092 * source.c (set_default_source_symtab_and_line):
2093 Delete unused variable.
2094 (set_substitute_path_command): Delete unused variable.
2095 * value.c (preserve_values): Delete unused variable.
2096 (value_from_double): Delete unused variable.
2098 2010-05-05 Michael Snyder <msnyder@vmware.com>
2100 * psymtab.c (lookup_partial_symbol): Delete unused variable.
2101 (find_last_source_symtab_from_partial): Delete unused variable.
2102 * symfile.c (place_section): Delete unused variable.
2103 (default_symfile_offsets): Delete unused variable.
2104 (get_debug_link_info): Delete unused variable.
2105 (find_separate_debug_file_by_debuglink): Delete unused variable.
2106 (add_symbol_file_command): Delete unused variable.
2107 (symfile_find_segment_sections): Delete unused variable.
2108 * symmisc.c (free_symtab): Delete unused variable.
2109 (dump_symtab_1): Delete unused variable.
2110 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
2111 (find_pc_sect_symtab): Delete unused variable.
2112 (skip_prologue_using_lineinfo): Delete unused variable.
2113 (sources_info): Delete unused variable.
2114 (completion_list_add_name): Delete unused variable.
2115 (expand_line_sal): Delete unused variable.
2117 * breakpoint.c (validate_commands_for_breakpoint):
2118 Delete unused variables.
2119 (insert_catchpoint): Delete unused variable.
2120 (update_watchpoint): Delete unused variable.
2121 (insert_bp_location): Delete unused variable.
2122 (insert_breakpoint_locations): Delete unused variable.
2123 (remove_breakpoint_1): Delete unused variable.
2124 (software_breakpoint_inserted_here_p): Delete unused variable.
2125 (watchpoints_triggered): Delete unused variable.
2126 (bpstat_check_watchpoint): Delete unused variable.
2127 (bpstat_stop_status): Delete unused variable.
2128 (print_one_breakpoint_location): Delete unused variable.
2129 (allocate_bp_location): Delete unused variable.
2130 (create_breakpoint): Delete unused variable.
2131 (watch_command_1): Delete unused variable.
2132 (catch_exception_command_1): Delete unused variable.
2133 (catch_ada_exception_command): Delete unused variable.
2134 (delete_breakpoint): Delete unused variable.
2135 (breakpoint_re_set_one): Delete unused variable.
2136 (do_enable_breakpoint): Delete unused variable.
2138 2010-05-06 Pedro Alves <pedro@codesourcery.com>
2140 * amd64-tdep.c: Include disasm.h.
2141 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
2142 (amd64_insn_length): Moved to disasm.c and renamed.
2143 (fixup_riprel): Adjust.
2144 * disasm.c (do_ui_file_delete): New.
2145 (gdb_insn_length): New.
2146 (gdb_buffered_insn_length_fprintf)
2147 (gdb_buffered_insn_length_init_dis)
2148 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
2150 * disasm.h (gdb_insn_length): Declare.
2151 (gdb_buffered_insn_length): Declare.
2153 2010-05-06 Pedro Alves <pedro@codesourcery.com>
2155 * remote.c (clear_threads_parsing_context): New.
2156 (remote_threads_info): Delete unused null_cleanup. Install a
2157 cleanup to clear the threads_parsing_context in case parsing
2160 2010-05-05 Michael Snyder <msnyder@vmware.com>
2162 * c-exp.y (parse_string_or_char): Delete unused variable.
2163 (c_lex): Delete unused variable.
2164 * cp-name-parser.y (cpname_lex): Delete unused variable.
2165 * ada-exp.y (find_primitive_type): Delete unused variable.
2166 (write_var_or_type): Delete unused variable.
2167 * jv-exp.y (java_parse): Delete unused variable.
2168 (push_expression_name): Delete unused variable.
2169 * p-exp.y (pascal_lex): Delete unused variable.
2171 2010-05-05 Pedro Alves <pedro@codesourcery.com>
2173 * remote.c (remote_threads_info): Really revert previous previous
2176 2010-05-05 Michael Snyder <msnyder@vmware.com>
2178 * elfread.c (elf_symtab_read): Delete unused variable.
2179 (find_separate_debug_file_by_buildid): Delete unused variables.
2180 (elf_symfile_read): Delete unused variable.
2182 * coffread.c (coff_symfile_read): Delete unused variables.
2184 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
2185 (read_pe_exported_syms): Delete unused variable.
2187 * stabsread.c (define_symbol): Delete unused variable.
2189 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
2190 (process_psymtab_comp_unit): Delete unused variable.
2191 (dwarf2_build_psymtabs_hard): Delete unused variable.
2192 (load_partial_comp_unit): Delete unused variable.
2193 (create_all_comp_units): Delete unused variable.
2194 (scan_partial_symbols): Delete unused variable.
2195 (add_partial_symbol): Delete unused variable.
2196 (add_partial_namespace): Delete unused variable.
2197 (add_partial_enumeration): Delete unused variable.
2198 (load_full_comp_unit): Delete unused variable.
2199 (process_full_comp_unit): Delete unused variable.
2200 (read_file_scope): Delete unused variable.
2201 (read_type_unit_scope): Delete unused variable.
2202 (process_structure_scope): Delete unused variable.
2203 (process_enumeration_scope): Delete unused variable.
2204 (read_tag_ptr_to_member_type): Delete unused variable.
2205 (read_typedef): Delete unused variable.
2206 (read_partial_die): Delete unused variable.
2207 (decode_locdesc): Delete unused variable.
2208 (zeroed_partial_die): Delete unused global variable.
2210 * tui/tui-interp.c (_initialize_tui_interp):
2211 Delete unused variable.
2212 * tui/tui-regs.c tui_display_registers_from):
2213 Delete unused variable.
2214 (tui_check_register_values): Delete unused variable.
2215 (tui_register_format): Delete unused variable.
2216 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
2217 * tui/tui-windata.c (tui_display_data_from_line):
2218 Delete unused variables.
2219 (tui_vertical_data_scroll): Delete unused variables.
2221 2010-05-05 Michael Snyder <msnyder@vmware.com>
2223 * remote.c (remote_threads_info): Revert questionable part of
2224 the previous change.
2226 2010-05-05 Michael Snyder <msnyder@vmware.com>
2228 * mi/mi-out.c (mi_table_begin): Delete unused variable.
2229 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
2230 (mi_cmd_var_list_children): Delete unused variable.
2231 (varobj_update_one): Delete unused variable.
2232 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
2233 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
2234 Delete unused variable.
2235 (mi_cmd_stack_list_variables): Delete unused variable.
2236 (list_args_or_locals): Delete unused variable.
2237 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
2238 Delete unused variables.
2239 (mi_cmd_file_list_exec_source_files): Delete unused variable.
2240 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
2241 Delete unused variable.
2242 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
2243 (mi_cmd_interpreter_exec): Delete unused variable.
2244 (mi_on_normal_stop): Delete unused variable.
2245 * mi/mi-main.c (run_one_inferior): Delete unused variable.
2246 (print_one_inferior): Delete unused variables.
2247 (mi_execute_command): Delete unused variable.
2248 (mi_cmd_execute): Delete unused variable.
2249 (timestamp): Delete unused variable.
2251 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
2252 (restore_binary_file): Delete unused variable.
2253 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
2254 * cli/cli-script.c (define_command): Delete unused variables.
2255 (recurse_read_control_structure): Delete unused variable.
2256 (script_from_file): Delete unused variable.
2257 * cli/cli-cmds.c (complete_command): Delete unused variable.
2258 (disassemble_command): Delete unused variable.
2260 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
2261 * tracepoint.c (delete_trace_variable_command):
2262 Delete unused variables.
2263 (encode_actions_1): Delete unused variables.
2264 (start_tracing): Delete unused variable.
2265 (trace_status_mi): Delete unused variable.
2266 (tfind_1): Delete unused variable.
2267 (trace_find_pc_command): Delete unused variable.
2268 (trace_find_line_command): Delete unused variables.
2269 (trace_find_range_command): Delete unused variables.
2270 (trace_find_outside_command): Delete unused variables.
2271 (parse_tracepoint_definition): Delete unused variables.
2272 (tfile_fetch_registers): Delete unused variable.
2274 * dcache.c (dcache_init): Delete unused variable.
2275 (dcache_info): Delete unused variable.
2277 * remote.c (remote_threads_info): Delete unused variable.
2278 (process_stop_reply) :Delete unused variable.
2279 (remote_get_trace_status): Delete unused variables.
2281 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
2282 (thread_from_lwp): Delete unused variable.
2283 (enable_thread_event_reporting): Delete unused variable.
2284 (check_for_thread_db): Delete unused variables.
2285 (thread_db_find_new_threads_2): Delete unused variable.
2287 * linux-fork.c (info_checkpoints_command): Delete unused variables.
2288 (checkpoint_command): Delete unused variable.
2289 (linux_fork_context): Delete unused variables.
2291 * linux-nat.c (linux_parent_pid): Delete unused global variable.
2292 (linux_tracefork_child): Delete unused variable.
2293 (linux_child_follow_fork): Delete unused variable.
2294 (linux_nat_detach): Delete unused variable.
2295 (linux_handle_extended_wait): Delete unused variable.
2296 (linux_nat_has_pending_sigint): Delete unused variable.
2297 (linux_nat_find_memory_regions): Delete unused variable.
2298 (linux_nat_make_corefile_notes): Delete unused variables.
2299 (linux_nat_info_proc_cmd): Delete unused variable.
2300 (linux_proc_pending_signals): Delete unused variable.
2301 (linux_nat_stop_lwp): Delete unused variables.
2302 (_initialize_linux_nat): Delete unused variable.
2304 * ser-pipe.c (pipe_ops): Delete unused global variable.
2306 * linux-record.c (record_linux_system_call):
2307 Delete unused variables.
2309 * corelow.c (core_xfer_partial): Delete unused variables.
2311 * solib-svr4.c (find_program_interpreter): Delete unused variable.
2312 (svr4_solib_create_inferior_hook): Add ifdef around
2313 conditionally-used variable declarations.
2315 * solib.c (solib_find): Delete unused variable.
2316 (free_so_symbols): Delete unused variable.
2317 (info_sharedlibrary_command): Delete unused variable.
2318 (reload_shared_libraries_1): Delete unused variable.
2319 (_initialize_solib): Delete unused variable.
2321 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
2322 (i386_collect_xstateregset): Delete unused variable.
2323 * i387-tdep.c (i387_print_float_info): Delete unused variable.
2325 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
2326 Delete unused variable 'type'.
2328 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2330 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
2331 ada-lang.c: Remove comment mentioning these macros.
2332 * m2-exp.y: Delete commented out code.
2334 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2336 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
2338 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
2340 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2342 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
2343 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
2345 (cleanup_kernel_helper_return): Likewise.
2346 * arm-tdep.c (copy_unmodified): Likewise.
2347 (copy_preload): Likewise.
2348 (copy_copro_load_store): Likewise.
2349 (cleanup_branch): Likewise.
2350 (copy_b_bl_blx): Likewise.
2351 (copy_bx_blx_reg): Likewise.
2352 (copy_alu_imm): Likewise.
2353 (copy_alu_reg): Likewise.
2354 (copy_alu_shifted_reg): Likewise.
2355 (cleanup_load): Likewise.
2356 (cleanup_store): Likewise.
2357 (cleanup_block_load_pc): Likewise.
2358 (cleanup_svc): Likewise.
2359 (copy_undef): Likewise.
2360 (copy_unpred): Likewise.
2361 * remote.c (register_remote_support_xml): Likewise.
2363 2010-05-05 Hui Zhu <teawater@gmail.com>
2365 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
2367 2010-05-04 Mark Kettenis <kettenis@gnu.org>
2369 * remote.c (register_remote_support_xml)
2370 (remote_query_supported_append, remote_query_supported): Add cast
2371 to NULL used as sentinel.
2372 * tracepoint.c (tvariables_info_1): Likewise.
2373 * utils.c (add_internal_problem_command): Likewise.
2375 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2377 * dwarf2loc.c (read_pieced_value, write_pieced_value,
2378 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
2379 registers gracefully.
2381 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2383 * exec.c (print_section_info): Display entry point without arch
2386 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2389 * printcmd.c (x_command): Only dereference once implicitly for
2392 2010-05-03 Doug Evans <dje@google.com>
2394 * event-loop.c (gdb_timer): Delete unused global.
2395 (create_timer): Update.
2397 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2399 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
2400 CURRENT->DECLARATION case.
2401 * cp-support.h (struct using_direct): Provide extended comment.
2403 2010-05-03 Mark Kettenis <kettenis@gnu.org>
2405 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
2406 HPPABSD_SIZEOF_GREGS.
2407 (HPPAOBSD_SIZEOF_FPREGS): New define.
2408 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
2409 (hppaobsd_supply_fpregset): New function.
2410 (hppaobsd_gregset): Renamed from hppabsd_gregset.
2411 (hppaobsd_fpregset): New variable.
2412 (hppaobsd_regset_from_core_section): Handle floating-point registers.
2413 (_initialize_hppabsd_tdep): Remove spurious blank line.
2415 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2418 * p-valprint.c (pascal_value_print): Always dereference a value with
2419 type code TYPE_CODE_REF.
2421 2010-05-03 Pedro Alves <pedro@codesourcery.com>
2423 * remote.c (remote_notice_signals): New.
2424 (remote_start_remote): In non-stop mode, update the remote end on
2425 which signals it can silently pass.
2426 (init_remote_ops): Install remote_notice_signals.
2428 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2430 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
2431 * command.h (error_no_arg): ... here. Remove NORETURN, change
2432 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2433 * defs.h (NORETURN, ATTR_NORETURN): Remove.
2434 (perror_with_name, verror, error, error_stream, vfatal, fatal)
2435 (internal_verror, internal_error, nomem): Remove NORETURN, change
2436 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2437 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
2438 (throw_vfatal, throw_error): Remove NORETURN.
2439 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
2440 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
2441 (throw_error, deprecated_throw_reason): Remove NORETURN, change
2442 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2443 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
2444 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
2446 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
2447 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
2449 * target.c (tcomplain): Likewise.
2450 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
2452 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
2453 (internal_error, perror_with_name, nomem): Remove NORETURN.
2454 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
2457 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2459 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2460 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
2461 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
2462 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2463 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
2464 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2465 * complaints.h (complaint, internal_complaint): Likewise.
2466 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
2467 (ATTR_FORMAT): Remove.
2468 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
2469 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
2470 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
2471 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
2472 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
2473 (internal_error, internal_vwarning, internal_warning, warning)
2474 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2475 * disasm.c (fprintf_disasm): Likewise.
2476 * exceptions.c (throw_it): Likewise.
2477 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
2478 (throw_error): Likewise.
2479 * language.h (type_error, range_error): Likewise.
2480 * linespec.c (cplusplus_error): Likewise.
2481 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
2482 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
2483 * monitor.c (monitor_debug): Likewise.
2484 * parser-defs.h (parser_fprintf): Likewise.
2485 * serial.h (serial_printf): Likewise.
2486 * tui/tui-hooks.c (tui_query_hook): Likewise.
2487 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
2488 (uo_message): Likewise.
2489 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
2490 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
2492 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
2494 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2496 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
2497 (cli_table_header, cli_begin, cli_end, cli_field_int)
2498 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
2499 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
2500 Delete forward declarations.
2501 (cli_ui_out_impl): Move below the callbacks.
2502 (_initialize_cli_out): Delete.
2504 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2506 * README: Use consistent `GDB' and `GDBserver' spellings.
2508 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2510 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2512 2010-05-01 Pedro Alves <pedro@codesourcery.com>
2514 * infrun.c (prepare_for_detach): In non-stop, context switch to
2515 the thread that got the event before handling the event.
2517 2010-04-30 Tom Tromey <tromey@redhat.com>
2519 * symtab.c (symbol_set_names): Fix typo.
2521 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2523 * python/py-param.c (parm_constants): Avoid ARI warning
2524 by adding ARI comment.
2525 (parmpy_init): Likewise.
2527 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2529 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
2530 and created type for re-use.
2532 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2534 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
2536 2010-04-29 Doug Evans <dje@google.com>
2538 * ser-base.h (reschedule): Delete prototype.
2539 * ser-base.c (reschedule): Make static.
2541 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2543 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
2544 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
2545 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
2547 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
2550 2010-04-29 Pedro Alves <pedro@codesourcery.com>
2554 * regcache.c (registers_changed): Rename to ...
2555 (registers_changed_ptid): ... this, and only delete register cache
2556 entries matching the ptid filter argument.
2557 (registers_changed): Reimplement on top of registers_changed_ptid.
2558 * regcache.h (registers_changed_ptid): Declare.
2559 * target.c (target_resume): Flush register caches.
2561 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
2562 Tom Tromey <tromey@redhat.com>
2563 Thiago Jung Bauermann <bauerman@br.ibm.com>
2565 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
2566 (SUBDIR_PYTHON_SRCS): Likewise.
2567 (py-parameter.o): New rule.
2568 * python/py-parameter.c: New file.
2569 * python/python-internal.h (gdbpy_initialize_parameter)
2570 (gdbpy_parameter, gdbpy_parameter_value)
2571 (gdbpy_parse_command_name): Declare.
2572 * python/py-cmd.c (parse_command_name): Rename to
2573 gdbpy_parse_command_name.
2574 (gdbpy_parse_command_name): Accept a starting list parameter and
2576 (cmdpy_init): Use gdbpy_parse_command_name.
2577 * python/python.c (parameter_to_python): Rename to
2578 gdbpy_parameter_to_python. Accept enum var_types and value.
2579 (gdbpy_parameter): Use gdbpy_parameter_value.
2580 (_initialize_python): Call gdbpy_initialize_parameters.
2582 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2584 * MAINTAINERS: Add myself for write after approval privileges.
2586 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
2589 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
2590 (COMMON_OBS): Add d-lang.o d-valprint.o.
2591 (HFILES_NO_SRCDIR): Add d-lang.h.
2592 * NEWS: Mention D language support.
2593 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
2594 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
2595 * d-lang.c: New file.
2596 * d-lang.h: New file.
2597 * d-valprint.c: New file.
2598 * defs.h (enum language): Add language_d.
2599 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
2600 * language.c (binop_result_type, integral_type, character_type)
2601 (string_type, boolean_type, structured_type): Add language_d.
2602 * symfile.c (init_filename_language_table): Add language_d.
2603 * symtab.c: Include d-lang.h.
2604 (symbol_init_language_specific, symbol_find_demangled_name)
2605 (symbol_natural_name, lookup_symbol_in_language)
2606 (symbol_demangled_name, symbol_matches_domain): Add language_d.
2608 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2610 * solib-svr4.c (solib_svr4_r_map): Expand function description.
2612 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2614 * symfile.c (init_filename_language_table): Register .dg files
2617 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2619 * gdbtypes.h (struct main_type): Expand comment about target_type
2622 2010-04-27 Pedro Alves <pedro@codesourcery.com>
2623 Tristan Gingold <gingold@adacore.com>
2625 * symfile.c (reread_symbols): Also search for file in libraries.
2628 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2630 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
2631 in terms of configuration.
2633 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2635 * objfiles.c: Include solist.h.
2636 (free_all_objfiles): New variable so. Check stale solist objfiles.
2637 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
2638 and no_shared_libraries.
2640 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2643 * python/py-auto-load.c (source_section_scripts): Remove trailing
2644 new-line in i18n string.
2646 2010-04-26 Doug Evans <dje@google.com>
2648 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
2650 2010-04-26 Tom Tromey <tromey@redhat.com>
2652 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
2655 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2657 Removal of config/i386/nm-i386sol2.h native configuration file.
2658 * config/i386/nm-i386sol2.h: Remove file.
2659 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
2660 * config/i386/sol2-64.mh: Idem.
2661 * config/djgpp/fnchange.lst: Remove reference to that file.
2662 * Makefile.in (HFILES_NO_SRCDIR): Idem.
2664 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2666 PR breakpoints/11531.
2667 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
2668 macro definition and related comment.
2669 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
2670 (resume): Remove code and comment related to this macro.
2672 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2674 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
2677 2010-04-24 Pedro Alves <pedro@codesourcery.com>
2679 * defs.h: Adjust comment.
2680 * filesystem.h, filesystem.c: New files.
2681 * Makefile.in (SFILES): Add filesystem.c.
2682 (COMMON_OBS): Add filesystem.o.
2683 * solib.c (solib_find): Handle DOS-based filesystems. Handle
2684 different target and host path flavours.
2685 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2686 has_dos_based_file_system on the gdbarch.
2687 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
2688 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
2689 * i386-tdep.c (i386_go32_init_abi): Ditto.
2690 * gdbarch.sh (has_dos_based_file_system): New.
2691 * gdbarch.h, gdbarch.c: Regenerate.
2692 * NEWS: Mention improved support for remote targets with DOS-based
2693 filesystems. Mention new `set/show target-file-system-kind'
2696 2010-04-23 Stan Shebs <stan@codesourcery.com>
2698 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
2700 (struct agent_reqs): Remove.
2701 (ax_reg_mask): Declare.
2702 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
2703 (free_agent_expr): Free reg_mask.
2704 (ax_print): Add scope and register mask info.
2705 (ax_reqs): Remove agent_reqs argument, use agent expression
2706 fields, and move part of register mask computation to...
2707 (ax_reg_mask): New function.
2708 * ax-gdb.c (gen_trace_static_fields): Call it.
2709 (gen_traced_pop): Ditto.
2710 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
2711 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
2712 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
2713 (gen_eval_for_expr): Ditto, and require an rvalue.
2714 (agent_command): Call ax_reqs.
2715 (agent_eval_command): Ditto.
2716 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
2717 (validate_action_line): Ditto.
2718 (collect_symbol): Ditto.
2719 (encode_actions_1): Ditto.
2721 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
2722 Paul Pluzhnikov <ppluzhnikov@google.com>
2723 Jan Kratochvil <jan.kratochvil@redhat.com>
2725 Fix deadlock on looped list of loaded shared objects.
2726 * solib-svr4.c (LM_PREV): New function.
2727 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
2728 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
2729 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
2730 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
2732 2010-04-23 Doug Evans <dje@google.com>
2734 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
2736 * configure: Regenerate.
2737 * main.c: #include "python/python.h".
2738 (captured_main): Defer loading auto-loaded scripts until after
2739 local_gdbinit has been sourced.
2740 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
2741 (load_auto_scripts_for_objfile): New function.
2742 (auto_load_new_objfile): Call it.
2743 * python/python.h (gdbpy_global_auto_load): Declare.
2744 (load_auto_scripts_for_objfile): Declare.
2746 Add support for auto-loading scripts from .debug_gdb_scripts section.
2747 * NEWS: Add entry for .debug_gdb_scripts.
2748 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
2749 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
2750 (py-auto-load.o): New rule.
2751 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
2752 * cli/cli-cmds.h (find_and_open_script): Update prototype.
2753 * python/py-auto-load.c: New file.
2754 * python/python-internal.h: #include <stdio.h>.
2755 (set_python_list, show_python_list): Declare.
2756 (gdbpy_initialize_auto_load): Declare.
2757 (source_python_script_for_objfile): Declare.
2758 * python/python.c: Remove #include of observer.h.
2759 (gdbpy_auto_load): Moved to py-auto-load.c.
2760 (GDBPY_AUTO_FILENAME): Ditto.
2761 (gdbpy_new_objfile): Delete.
2762 (source_python_script_for_objfile): New function.
2763 (set_python_list, show_python_list): Make externally visible.
2764 (_initialize_python): Move "auto-load" command to py-auto-load.c
2765 and observer_attach_new_objfile to py-auto-load.c.
2767 2010-04-23 Jerome Guitton <guitton@adacore.com>
2769 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
2770 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
2771 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
2773 (alpha_heuristic_analyze_probing_loop): New function.
2774 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
2775 and handle cases when a stack probe loop is generated.
2776 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
2777 (alpha_mdebug_max_frame_size_exceeded): New function.
2778 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
2779 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
2780 Return 0 when the maximum debuggable frame size has been exceeded.
2782 2010-04-23 Joel Brobecker <brobecker@adacore.com>
2785 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
2787 2010-04-20 Chris Moller <cmoller@redhat.com>
2791 * symtab.c (rbreak_command): Added code to include a filename
2792 specification in the rbreak argument.
2793 * NEWS: Added a brief description of filename-qualified rbreak.
2795 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2797 Fix crashes on dangling display expressions.
2798 * ada-lang.c (ada_operator_check): New function.
2799 (ada_exp_descriptor): Fill-in the field operator_check.
2800 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
2801 * jv-lang.c (exp_descriptor_java): Likewise.
2802 * m2-lang.c (exp_descriptor_modula2): Likewise.
2803 * scm-lang.c (exp_descriptor_scm): Likewise.
2804 * parse.c (exp_descriptor_standard): Likewise.
2805 (operator_check_standard): New function.
2806 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
2807 * parser-defs.h (struct exp_descriptor): New field operator_check.
2808 (operator_check_standard, exp_uses_objfile): New declarations.
2809 * printcmd.c: Remove the inclusion of solib.h.
2810 (display_uses_solib_p): Remove the function.
2811 (clear_dangling_display_expressions): Call lookup_objfile_from_block
2812 and exp_uses_objfile instead of display_uses_solib_p.
2813 * solist.h (struct so_list) <objfile>: New comment.
2814 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
2815 * symtab.h (lookup_objfile_from_block): New declaration.
2816 (struct general_symbol_info) <obj_section>: Extend the comment.
2818 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2819 Thiago Jung Bauermann <bauerman@br.ibm.com>
2821 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
2822 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
2823 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
2824 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
2825 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
2826 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
2827 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
2828 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
2829 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
2830 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
2831 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
2832 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
2833 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
2834 Define, in case <ptrace.h> doesn't provide it.
2835 (booke_debug_info): New variable.
2836 (max_slots_number): Ditto.
2837 (hw_break_tuple): New struct.
2838 (thread_points): Ditto.
2839 (ppc_threads): New variable.
2840 (PPC_DEBUG_CURRENT_VERSION): New define.
2841 (have_ptrace_new_debug_booke): New function.
2842 (ppc_linux_check_watch_resources): Renamed to ...
2843 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
2844 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
2845 (booke_cmp_hw_point): New function.
2846 (booke_find_thread_points_by_tid): Ditto.
2847 (booke_insert_point): Ditto.
2848 (booke_remove_point): Ditto.
2849 (ppc_linux_insert_hw_breakpoint): Ditto.
2850 (ppc_linux_remove_hw_breakpoint): Ditto.
2851 (get_trigger_type): Ditto.
2852 (ppc_linux_insert_watchpoint): Handle BookE processors.
2853 (ppc_linux_remove_watchpoint): Ditto.
2854 (ppc_linux_new_thread): Ditto.
2855 (ppc_linux_thread_exit): New function..
2856 (ppc_linux_stopped_data_address): Handle BookE processors.
2857 (ppc_linux_watchpoint_addr_within_range): Ditto.
2858 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
2859 to_remove_hw_breakpoint fields of the target operations struct.
2860 Add observe for the thread_exit event.
2862 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2864 * i386-linux-nat.c (regmap): Removed.
2865 (fetch_register): Replace regmap with
2866 i386_linux_gregset_reg_offset.
2867 (store_register): Likewise.
2868 (supply_gregset): Likewise.
2869 (fill_gregset): Likewise.
2871 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
2874 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
2876 2010-04-22 Chris Moller <cmoller@redhat.com>
2878 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2879 method of popping recursion-detection stack with a method based on
2880 obstack_object_size(). (Similar to the PR9167 patch below, but for
2881 the static array obstack rather than the static member obstack.)
2883 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2885 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
2886 (_initialize_amd64_linux_nat): Replace
2887 amd64_linux_gregset64_reg_offset with
2888 amd64_linux_gregset_reg_offset.
2890 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
2893 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
2895 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2898 * stabsread.c (set_length_in_type_chain): New function.
2899 (read_struct_type): Call set_length_in_type_chain function.
2900 (read_enum_type): Idem.
2902 2010-04-21 Stan Shebs <stan@codesourcery.com>
2903 Nathan Sidwell <nathan@codesourcery.com>
2905 * tracepoint.c (trace_save): Open in binary mode.
2907 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2909 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
2911 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
2912 builtin_char32 fields.
2913 * printcmd.c (decode_format): Set char size to '\0'
2914 for strings unless explicit size is given.
2915 (print_formatted): Correct calculation of NEXT_ADDRESS
2916 for 16 or 32 bit strings.
2917 (do_examine): Do not force byte size for strings.
2918 Use builtin_char16 and builtin_char32 types to display
2919 16 or 32 bit-wide strings.
2920 (x_command): Set LAST_SIZE to 'b' for string type.
2922 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
2925 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2928 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
2929 there is no .reg-xstate section.
2930 (i386_linux_core_read_description): Check XCR0 first.
2932 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2934 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
2937 2010-04-21 Chris Moller <cmoller@redhat.com>
2940 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2941 method of popping recursion-detection stack with a method based on
2942 obstack_object_size().
2944 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2947 * p-valprint.c (pascal_val_print): Fix default printing of integer
2950 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2952 Fix compilation warning on gcc-4.1.2.
2953 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
2954 local variable`pc' to zero.
2956 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2958 Implement thread support with core files on alpha-tru64.
2959 * dec-thread.c (dec_thread_find_new_threads): New function,
2960 extracted from resync_thread_list.
2961 (resync_thread_list): Add OPS parameter. Replace extracted-out
2962 code by call to dec_thread_find_new_threads.
2963 (dec_thread_wait): Update call to resync_thread_list.
2964 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
2966 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2968 * ada-lang.c (value_pointer): New function.
2969 (make_array_descriptor): Call value_pointer to convert addresses to
2972 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2974 * rs6000-aix-tdep.c: #include exceptions.h.
2975 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
2976 while reading the memory at ADDR, then ADDR cannot be a function
2979 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2981 * ada-typeprint.c (ada_print_typedef): New function.
2982 * ada-lang.h (ada_print_typedef): Add declaration.
2983 * ada-lang.c (ada_language_defn): set la_print_typdef field
2984 to ada_print_typedef.
2986 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2988 * procfs.c (procfs_address_to_host_pointer): Only define when used.
2990 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2992 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
2993 (iterate_over_mappings): Adjust function profile. Add declaration.
2994 (insert_dbx_link_bpt_in_region, info_mappings_callback):
2997 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2999 * procfs.c (solib_mappings_callback): Move function up to avoid
3002 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3004 * procfs.c (find_signalled_thread, find_stop_signal): Move
3005 these functions down to define them only when used.
3007 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3009 * valprint.c (common_val_print): Fix the value before extracting
3011 * ada-lang.c (ada_to_fixed_value): Make this function extern.
3012 * ada-lang.h (ada_to_fixed_value): New function declaration.
3013 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
3014 to avoid code duplication and fix a bug in the handling of
3015 fixed types contents.
3017 2010-04-20 Tom Tromey <tromey@redhat.com>
3019 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
3020 (read_partial_die): Likewise.
3021 (dwarf_attr_name): Likewise.
3023 2010-04-20 Chris Moller <cmoller@redhat.com>
3027 * cp-valprint.c (global): Adding new static array recursion
3029 (cp_print_value_fields, cp_print_static_field): Added new static
3030 array recursion detection code.
3032 2010-04-20 Mark Kettenis <kettenis@gnu.org>
3034 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
3035 general-purpose register set should be 68 instead of 144.
3036 (i386_linux_sse_regset_sections): Likewise.
3037 (i386_linux_avx_regset_sections): Likewise.
3039 2010-04-20 Stan Shebs <stan@codesourcery.com>
3040 Nathan Sidwell <nathan@codesourcery.com>
3042 * dwarf2loc.c (struct axs_var_loc): New struct.
3043 (dwarf2_tracepoint_var_loc): New function.
3044 (dwarf2_tracepoint_var_access): New function.
3045 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
3047 (locexpr_describe_location_piece): New function.
3048 (locexpr_describe_location_1): New function.
3049 (locexpr_describe_location): Call it, update signature.
3050 (loclist_describe_location): Rewrite to loop over locations,
3052 * symtab.h (struct symbol_computed_ops): Add address to
3053 describe_location arguments, return void.
3054 * printcmd.c (address_info): Get context PC, pass to computed
3055 location description.
3056 * tracepoint.c (scope_info): Ditto.
3057 * ax-gdb.c (trace_kludge): Export.
3059 2010-04-20 Tom Tromey <tromey@redhat.com>
3061 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
3062 (struct dwarf2_cie) <segment_size>: New field.
3063 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
3064 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
3066 (read_attribute_value): Handle DW_FORM_flag_present,
3067 DW_FORM_sec_offset, DW_FORM_exprloc.
3068 (dump_die_shallow): Likewise.
3069 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
3070 (dwarf2_const_value): Handle DW_FORM_exprloc.
3071 (attr_form_is_block): Likewise.
3072 (struct line_header) <maximum_ops_per_instruction>: New field.
3073 (dwarf_decode_line_header): Set new field.
3074 (dwarf_decode_lines): Handle new field.
3076 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3078 * f-exp.y: Add new production to recognize the `logical*8' type.
3079 (LOGICAL_S8_KEYWORD): New token.
3080 * f-lang.c (enum f_primitive_types)
3081 <f_primitive_type_logical_s8>: New field.
3082 (f_language_arch_info): Handling `logical*8' type.
3083 (build_fortran_types): Building `logical*8' type.
3084 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
3086 2010-04-19 Doug Evans <dje@google.com>
3088 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
3089 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
3090 (pipe_close): Ditto.
3092 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3094 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
3096 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3098 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
3099 type to void function.
3101 2010-04-19 Stan Shebs <stan@codesourcery.com>
3102 Vladimir Prus <vladimir@codesourcery.com>
3104 * tracepoint.c (tfind_1): Add missing newline, report exit from
3106 * target.c (update_current_target): Make default
3107 to_trace_find return -1.
3109 2010-04-19 Mike Frysinger <vapier@gentoo.org>
3111 * objc-lang.c (find_methods): Move symname check up.
3113 2010-04-19 Pedro Alves <pedro@codesourcery.com>
3115 * ada-lang.c (print_recreate_exception)
3116 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
3117 not "catch unhandled".
3119 2010-04-19 Pedro Alves <pedro@codesourcery.com>
3121 PR breakpoints/8554.
3123 Implement `save-breakpoints'.
3125 * breakpoint.c (save_cmdlist): New.
3126 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
3128 (print_recreate_catch_fork): New.
3129 (catch_fork_breakpoint_ops): Install it.
3130 (print_recreate_catch_vfork): New.
3131 (catch_vfork_breakpoint_ops): Install it.
3132 (print_recreate_catch_syscall): New.
3133 (catch_syscall_breakpoint_ops): Install it.
3134 (print_recreate_catch_exec): New.
3135 (catch_exec_breakpoint_ops): Install it.
3136 (print_recreate_exception_catchpoint): New.
3137 (gnu_v3_exception_catchpoint_ops): Install it.
3138 (save_breakpoints): New, based on tracepoint_save_command, but
3139 handle all breakpoint types.
3140 (save_breakpoints_command): New.
3141 (tracepoint_save_command): Rename to...
3142 (save_tracepoints_command): ... this, and reimplement using
3144 (save_command): New.
3145 (_initialize_breakpoints): Install the "save" command prefix.
3146 Install the "save breakpoints" command. Make "save-tracepoints" a
3147 deprecated alias for "save tracepoints".
3148 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
3149 * ada-lang.c (print_recreate_exception): New.
3150 (print_recreate_catch_exception): New.
3151 (catch_exception_breakpoint_ops): Install it.
3152 (print_recreate_catch_exception_unhandled): New.
3153 (catch_exception_unhandled_breakpoint_ops): Install it.
3154 (print_recreate_catch_assert): New.
3155 (catch_assert_breakpoint_ops): Install it.
3157 * NEWS: Mention the new `save breakpoints' command. Mention the
3158 new `save tracepoints' alias and that `save-tracepoints' is now
3161 2010-04-18 Pedro Alves <pedro@codesourcery.com>
3165 * tui/tui-out.c: Include cli-out.h.
3166 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3167 (tui_begin, tui_end, tui_field_int, tui_field_skip)
3168 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
3169 (tui_message, tui_wrap_hint, tui_flush): Delete forward
3171 (struct ui_out_data): Rename to...
3172 (struct tui_ui_out_data): ... this. Remove `stream' and
3173 `suppress_output' fields, and inherit cli_ui_out_data.
3174 (tui_out_data): New typedef.
3175 (tui_ui_out_impl): Don't initialize fields staticaly.
3176 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3177 (tui_begin, tui_end): Delete.
3178 (tui_field_int): Adjust to delegate most work to the base type.
3179 (tui_field_skip): Delete.
3180 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
3181 delegate most work to the base type.
3182 (tui_spaces): Delete.
3183 (tui_text): Adjust to delegate most work to the base type.
3184 (tui_message): Delete.
3185 (tui_wrap_hint): Delete.
3186 (tui_flush): Delete.
3187 (out_field_fmt): Delete.
3188 (field_separator): Delete.
3189 (tui_out_new): Adjust to initialize the base type.
3190 (_initialize_tui_out): Initialize tui_ui_out_impl.
3191 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
3193 (cli_out_data): Adjust.
3194 (cli_ui_out_impl): Make extern.
3195 (cli_table_header, cli_field_int, cli_field_skip): Use
3196 uo_field_string instead of cli_field_string.
3197 (cli_redirect): Adjust to use cli_out_data.
3198 (cli_out_data_ctor): New.
3199 (cli_out_new): Use it.
3200 * cli-out.h (struct ui_file): Remove forward declaration.
3201 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
3202 (cli_ui_out_impl): Declare.
3203 (cli_out_data_ctor): Declare.
3204 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
3205 (uo_field_string): No longer static.
3206 (ui_out_data): Change return type to void pointer.
3207 (ui_out_new): Change `data' parameter type to void pointer.
3208 * ui-out.h (struct ui_out_data): Don't forward declare.
3209 (ui_out_data): Change return type to void pointer.
3210 (ui_out_new): Change `data' parameter type to void pointer.
3211 (uo_field_string): Declare.
3213 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3215 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
3216 instead of always false.
3218 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
3221 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
3224 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3226 * breakpoint.c (watchpoints_triggered): Use
3227 is_hardware_watchpoint.
3228 (watchpoints_triggered): Ditto.
3229 (bpstat_check_location): Use is_watchpoint and
3230 is_hardware_watchpoint.
3231 (bpstat_check_watchpoint): Use is_watchpoint and
3232 is_hardware_watchpoint.
3233 (bpstat_stop_status): Fix comment.
3234 (user_settable_breakpoint): Use is_watchpoint.
3235 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
3236 (disable_watchpoints_before_interactive_call_start): Use
3238 (enable_watchpoints_after_interactive_call_stop): Use
3240 (clear_command): Use is_watchpoint.
3241 (do_enable_breakpoint): Use is_watchpoint.
3243 2010-04-16 Mike Frysinger <vapier@gentoo.org>
3245 * solib-frv.c (enable_break1_done): Delete.
3246 (enable_break2): Do not check enable_break1_done. Move the
3247 enable_break2_done setting and call to
3248 remove_solib_event_breakpoints() to the end. Return without
3249 warning when the contents of _dl_debug_addr are 0.
3250 (enable_break): Do not set enable_break1_done.
3251 (frv_clear_solib): Likewise.
3253 2010-04-16 Kevin Buettner <kevinb@redhat.com>
3255 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
3256 instead of an error if no PLT entry is found. Return a
3257 potentially useful result.
3258 (m32c_m16c_pointer_to_address): Add code to search for function
3259 address when no .plt entry is found.
3261 2010-04-16 Stan Shebs <stan@codesourcery.com>
3263 * tracepoint.c (trace_variable_command): Run a cleanup.
3265 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3267 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
3269 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3271 Support for Windows OS Thread Information Block.
3272 * NEWS: Document new feature.
3273 * remote.c (PACKET_qGetTIBAddr): New enum element.
3274 (remote_get_tib_address): New function.
3275 (init_remote_ops): Set to_get_tib_address field
3276 to remote_get_tib_address.
3277 (_initialize_remote): Add add_packet_config_cmd
3278 for PACKET_qGetTIBAddr.
3279 * target.c (update_current_target): Set default value for
3280 new to_get_tib_address field.
3281 * target.h (target_ops): New field to_get_tib_address.
3282 (target_get_tib_address): New macro.
3283 * windows-nat.c (thread_info): Add thread_local_base field.
3284 (windows_add_thread): Add tlb argument of type 'void *'.
3285 (fake_create_process): Adapt windows_add_thread call.
3286 (get_windows_debug_event): Idem.
3287 (windows_get_tib_address): New function.
3288 (init_windows_ops): Set to_get_tib_address field
3289 to remote_get_tib_address.
3290 (_initialize_windows_nat): Replace info_w32_cmdlist
3291 initialization by a call to init_w32_command_list.
3292 (info_w32_command, info_w32_cmdlist): Removed from here...
3293 to windows-tdep.c file.
3294 * windows-tdep.h (info_w32_cmdlist): Declare.
3295 (init_w32_command_list): New external function
3297 * windows-tdep.c: Add several headers.
3298 (info_w32_cmdlist): to here, made global.
3299 (thread_information_32): New struct.
3300 (thread_information_64): New struct.
3301 (TIB_NAME): New char array.
3302 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
3303 (maint_display_all_tib): New static variable.
3304 (windows_get_tlb_type): New function.
3305 (tlb_value_read, tlb_value_write): New functions.
3306 (tlb_value_funcs): New static struct.
3307 (tlb_make_value): New function.
3308 (display_one_tib): New function.
3309 (display_tib): New function.
3310 (show_maint_show_all_tib):New function.
3311 (info_w32_command): Moved from windows-nat.c.
3312 (init_w32_command_list): New function.
3313 (_initialize_windows_tdep): New function.
3314 New "maint set/show show-all-tib" command
3315 New "$_tlb" internal variable.
3317 2010-04-16 Joel Brobecker <brobecker@adacore.com>
3319 * tui/tui-regs.c (tui_display_register): Add comment about
3321 * tui/tui-stack.c (tui_show_locator_content): Ditto.
3323 2010-04-15 Stan Shebs <stan@codesourcery.com>
3325 * frame.c: Include tracepoint.h.
3326 (get_current_frame): Allow a trace frame to be an alternate source
3327 of stack frame data.
3328 * tracepoint.c (tfind_1): Don't try to get current stack frame if
3331 2010-04-15 Pedro Alves <pedro@codesourcery.com>
3333 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
3335 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
3337 2010-04-15 Doug Evans <dje@google.com>
3339 * NEWS: Add entry for python program space support.
3340 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
3341 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
3342 (py-progspace.o): New rule.
3343 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
3345 (find_pretty_printer_from_progspace): New function.
3346 (find_pretty_printer_from_gdb): New function.
3347 (find_pretty_printer): Rewrite.
3348 * python/py-progspace.c: New file.
3349 * python/python-internal.h (program_space): Add forward decl.
3350 (pspace_to_pspace_object, pspy_get_printers): Declare.
3351 (gdbpy_initialize_pspace): Declare.
3352 * python/python.c: #include "progspace.h".
3353 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
3354 (_initialize_python): Call gdbpy_initialize_pspace.
3355 (GdbMethods): Add current_progspace, progspaces.
3357 Add -s option to source command.
3358 * NEWS: Document new option.
3359 * cli/cli-cmds.c (find_and_open_script): Add function comment.
3360 Delete from_tty and cleanupp args. Split filep arg into file and
3361 full_pathp. New arg search_path.
3362 (source_script_from_stream): New function.
3363 (source_script_with_search): New function.
3364 (source_script): Rewrite.
3365 (source_command): Parse "-s" option.
3366 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
3367 * python/python.c (source_python_script): Make file arg a const char *.
3368 Don't call fclose, leave for caller.
3369 * python/python.h (source_python_script): Update.
3371 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3372 Pedro Alves <pedro@codesourcery.com>
3374 Avoid rereading shared libraries that haven't changed.
3376 * solib.c (free_so_symbols): New function, from ...
3377 (free_so): ... here. Call it.
3378 (solib_read_symbols): Don't warn here if symbols have already been
3380 (solib_add): Warn here instead, if a pattern was specified.
3381 (reload_shared_libraries_1): New.
3382 (reload_shared_libraries): Rewrite to not fetch the library list.
3384 2010-04-14 Doug Evans <dje@google.com>
3386 * source.c (openp): Strip DOS drive letter if present before
3387 concatenating string to search path.
3389 2010-04-14 Pedro Alves <pedro@codesourcery.com>
3391 * objfiles.h (gdb_bfd_close_or_warn): Declare.
3392 * objfiles.c (gdb_bfd_close_or_warn): New.
3393 * corelow.c: Include objfiles.h
3394 (core_close): Use gdb_bfd_close_or_warn.
3395 * elfread.c (build_id_verify): Ditto.
3396 * exec.c (exec_close, exec_close_1): Ditto.
3398 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3399 Pedro Alves <pedro@codesourcery.com>
3401 Group errors for many missing shared libraries.
3403 * solist.h (struct so_list): Remove from_tty.
3404 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
3405 (solib_map_sections): Take so_list argument. Return 0 if we
3406 failed to open a BFD. Add target sections here.
3407 (symbol_add_stub): Delete.
3408 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
3409 not from_tty copied from the so_list. Don't warn a second time
3410 for a missing library.
3411 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
3412 add to the section table here. Print out a single warning for all
3414 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
3417 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3419 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
3420 error/warning messages. Capitalize and use complete sentences.
3421 (blpy_block_syms_iternext): Likewise.
3422 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
3423 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
3424 (frame_info_to_frame_object, frapy_read_var)
3425 (gdbpy_frame_stop_reason_string): Likewise.
3426 * python/py-lazy-string.c (stpy_convert_to_value)
3427 (gdbpy_create_lazy_string_object): Likewise.
3428 * python/py-objfile.c (objfpy_set_printers): Likewise.
3429 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
3430 * python/python.c (parameter_to_python): Likewise.
3431 * python/py-type.c (typy_range, typy_target): Likewise.
3432 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
3433 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
3436 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3440 * python/py-prettyprint.c (pretty_print_one_value): Test for
3442 (print_string_repr): Test for Py_None. Set flags accordingly.
3443 Return value depending on return type.
3444 (print_children): Take a value indicating whether data was printed
3445 before this function was called. Alter output accordingly.
3446 (apply_val_pretty_printer): Capture return value from
3447 print_string_repr and pass to print_children.
3449 2010-04-13 Mark Kettenis <kettenis@gnu.org>
3452 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
3453 register note sections.
3454 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3456 (i386_linux_init_abi): Install list of supported register note
3457 sections that matches the target description.
3459 2010-04-13 Pedro Alves <pedro@codesourcery.com>
3461 * remote.c (remote_get_noisy_reply): Don't error out on empty
3463 (remote_start_remote): Update and merge tracepoints and trace
3464 state variables as long as the target supports tracepoints.
3465 (remote_trace_init): Fix prototype.
3466 (remote_download_trace_state_variable): Validate reply.
3467 (remote_trace_set_readonly_regions): Fix prototype.
3468 (remote_trace_start): Fix prototype. Check for empty reply.
3469 (remote_get_trace_status): Small cleanup.
3470 (remote_trace_stop): Fix prototype. Check for empty reply.
3471 (remote_trace_find): Check for empty reply.
3472 (remote_save_trace_data): Validate reply.
3473 (remote_set_disconnected_tracing): Check for empty reply, and
3475 (remote_set_circular_trace_buffer): Ditto.
3477 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
3479 Suppress unused value warning during compilation.
3480 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
3482 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3484 2010-04-12 Stan Shebs <stan@codesourcery.com>
3486 * tracepoint.c (tfile_xfer_partial): Check read result.
3488 2010-04-12 Mike Frysinger <vapier@gentoo.org>
3490 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
3491 * remote-sim.c (gdbsim_files_info): Likewise.
3493 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3495 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
3496 * arm-linux-nat.c (arm_linux_vfp_register_count): New
3498 (fetch_vfp_registers): New function to fetch VFP registers.
3499 (store_vfp_registers): New function to store VFP registers.
3500 (arm_linux_fetch_inferior_registers): Add support for VFP
3502 (arm_linux_store_inferior_registers): Likewise.
3503 (arm_linux_read_description): Likewise.
3504 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
3507 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
3509 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
3511 (amd64_collect_xstateregset): Likewise.
3513 2010-04-09 Stan Shebs <stan@codesourcery.com>
3515 * tracepoint.c (trace_status_mi): Report frames created.
3517 * tracepoint.c (trace_dump_command): Include default-collect
3520 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
3522 * symtab.c (find_function_start_sal): Never return SAL pointing
3523 before function start address, even if line info is missing.
3525 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3527 * NEWS: Mention tracepoints support.
3529 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3531 * tracepoint.c (trace_status_mi): Report disconnected tracing and
3532 circular trace buffer statuses.
3534 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3536 * config/djgpp/fnchange.lst: Fix typo in translations for
3537 symbol-without-target_section.exp and symbol-without-target_section.c.
3539 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3541 * breakpoint.c (condition_command): Pass condition expression to
3542 set_breakpoint_condition stripped from breakpoint number.
3544 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
3545 Thiago Jung Bauermann <bauerman@br.ibm.com>
3546 Tom Tromey <tromey@redhat.com>
3548 * breakpoint.c (condition_command): Simplify. Move condition
3550 (set_breakpoint_condition): ... here. New function.
3551 * breakpoint.h (set_breakpoint_condition): Declare.
3552 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
3553 (SUBDIR_PYTHON_SRCS): Likewise.
3554 (py-breakpoint.o): New rule.
3555 * python/py-breakpoint.c: New file.
3556 * python/python-internal.h (gdbpy_breakpoints)
3557 (gdbpy_initialize_breakpoints): Declare.
3558 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
3560 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3562 * regformats/regdat.sh: Include server.h. Don't include
3565 2010-04-08 Stan Shebs <stan@codesourcery.com>
3566 Pedro Alves <pedro@codesourcery.com>
3568 * tracepoint.h (struct trace_status): New fields disconnected_tracing
3569 and circular_buffer.
3570 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
3571 * tracepoint.c (trace_status_command): Display target's status for
3572 disconnected tracing and circular buffer.
3573 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
3574 query for non-disconnected-tracing case, remove the stop_tracing
3576 (tfile_open): Clear disconnected and circular buffer status.
3577 (trace_save): Save disconnected and circular buffer status.
3578 (parse_trace_status): Parse disconnected and circular buffer status,
3579 also recognize disconnected as a stop reason.
3580 * remote.c (remote_set_disconnected_tracing): Only set
3581 QTDisconnected if the remote end supports disconnected tracing.
3582 Warn otherwise, if trying to enable disconnected tracing.
3583 * infcmd.c (detach_command): Update disconnect_tracing call.
3584 * cli/cli-cmds.c (quit_command): Ditto.
3586 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3588 * i387-tdep.c (i387_collect_xsave): Replace abort with
3591 2010-04-08 Stan Shebs <stan@codesourcery.com>
3593 * breakpoint.c (default_collect_info): New function.
3594 (breakpoints_info): Call it.
3595 (maintenance_info_breakpoints): Ditto.
3596 (tracepoints_info): Ditto.
3598 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3600 * i387-tdep.c (i387_collect_xsave): Re-indent.
3602 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3604 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
3605 if HAVE_PTRACE_GETFPXREGS is defined.
3606 (i386_linux_read_description): Set have_ptrace_getfpxregs and
3607 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
3609 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
3610 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
3611 if .reg-xfp section doesn't exist.
3612 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
3614 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
3616 * i386-tdep.c: Include "features/i386/i386-mmx.c".
3617 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
3618 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
3619 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
3620 (i386_gdbarch_init): Update comments.
3621 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
3623 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
3625 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
3627 * features/Makefile (i386/i386-mmx-expedite): New.
3628 (i386/i386-mmx-linux-expedite): Likewise.
3629 ($(outdir)/i386/i386-mmx.dat): Likewise.
3630 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
3632 * features/i386/i386-mmx-linux.c: New.
3633 * features/i386/i386-mmx-linux.xml: Likewise.
3634 * features/i386/i386-mmx.c: Likewise.
3635 * features/i386/i386-mmx.xml: Likewise.
3636 * regformats/i386/i386-mmx-linux.dat: Likewise.
3637 * regformats/i386/i386-mmx.dat: Likewise.
3639 * features/Makefile (WHICH): Add i386/i386-mmx and
3640 i386/i386-mmx-linux.
3642 2010-04-08 Doug Evans <dje@google.com>
3644 * source.c (openp): Skip $cdir in PATH.
3646 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
3649 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3651 (gdbpy_create_lazy_string_object): Allow strings with a NULL
3652 address and a zero length.
3654 2010-04-08 Hui Zhu <teawater@gmail.com>
3656 * i386-tdep.c (i386_process_record): Add support for insn
3659 2010-04-07 Doug Evans <dje@google.com>
3661 * python/python.c (source_python_script): Use ensure_python_env
3662 to prepare environment for script.
3664 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3666 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
3667 <sys/uio.h> and "i386-xstate.h".
3668 (PTRACE_GETREGSET): New.
3669 (PTRACE_SETREGSET): Likewise.
3670 (have_ptrace_getregset): Likewise.
3671 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
3673 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
3675 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
3676 (amd64_linux_store_inferior_registers): Likewise.
3677 (amd64_linux_read_description): Check and enable AVX target
3680 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
3681 and "features/i386/amd64-avx-linux.c".
3682 (amd64_linux_regset_sections): New.
3683 (amd64_linux_core_read_description): Check and enable AVX
3685 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
3686 set_gdbarch_core_regset_sections.
3687 (_initialize_amd64_linux_tdep): Call
3688 initialize_tdesc_amd64_avx_linux.
3690 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
3691 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
3692 (tdesc_amd64_avx_linux): New.
3693 (amd64_linux_update_xstateregset): Likewise.
3695 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
3696 (amd64_ymm_names): New.
3697 (amd64_ymmh_names): Likewise.
3698 (amd64_register_name): Likewise.
3699 (amd64_supply_xstateregset): Likewise.
3700 (amd64_collect_xstateregset): Likewise.
3701 (amd64_supply_xsave): Likewise.
3702 (amd64_collect_xsave): Likewise.
3703 (AMD64_NUM_REGS): Removed.
3704 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
3705 %xmmN if AVX is available.
3706 (amd64_pseudo_register_name): Support pseudo YMM registers.
3707 (amd64_regset_from_core_section): Support .reg-xstate section.
3708 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
3709 and ymm0h_regnum. Call set_gdbarch_register_name.
3710 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
3712 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
3713 AMD64_YMM15H_REGNUM.
3714 (AMD64_NUM_REGS): New.
3715 (amd64_supply_xsave): Likewise.
3716 (amd64_collect_xsave): Likewise.
3717 (amd64_register_name): Removed.
3718 (amd64_register_type): Likewise.
3720 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3722 * i387-tdep.c: Include "i386-xstate.h".
3723 (XSAVE_XSTATE_BV_ADDR): New.
3724 (xsave_avxh_offset): Likewise.
3725 (XSAVE_AVXH_ADDR): Likewise.
3726 (i387_supply_xsave): Likewise.
3727 (i387_collect_xsave): Likewise.
3729 * i387-tdep.h (I387_NUM_YMM_REGS): New.
3730 (I387_YMM0H_REGNUM): Likewise.
3731 (I387_YMMENDH_REGNUM): Likewise.
3732 (i387_supply_xsave): Likewise.
3733 (i387_collect_xsave): Likewise.
3735 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3737 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
3738 <sys/uio.h> and "i386-xstate.h".
3739 (PTRACE_GETREGSET): New.
3740 (PTRACE_SETREGSET): Likewise.
3741 (fetch_xstateregs): Likewise.
3742 (store_xstateregs): Likewise.
3743 (GETXSTATEREGS_SUPPLIES): Likewise.
3744 (regmap): Include 8 upper YMM registers.
3745 (i386_linux_fetch_inferior_registers): Support XSAVE extended
3747 (i386_linux_store_inferior_registers): Likewise.
3748 (i386_linux_read_description): Check and enable AVX target
3751 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
3752 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
3753 (i386_linux_regset_sections): Add ".reg-xstate".
3754 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
3755 (i386_linux_core_read_xcr0): New.
3756 (i386_linux_core_read_description): Check and enable AVX target
3758 (i386_linux_init_abi): Set xsave_xcr0_offset.
3759 (_initialize_i386_linux_tdep): Call
3760 initialize_tdesc_i386_avx_linux.
3762 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
3763 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
3764 (i386_linux_core_read_xcr0): New.
3765 (tdesc_i386_avx_linux): Likewise.
3766 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
3768 * i386-tdep.c: Include "i386-xstate.h" and
3769 "features/i386/i386-avx.c".
3770 (i386_ymm_names): New.
3771 (i386_ymmh_names): Likewise.
3772 (i386_ymmh_regnum_p): Likewise.
3773 (i386_ymm_regnum_p): Likewise.
3774 (i386_xmm_regnum_p): Likewise.
3775 (i386_register_name): Likewise.
3776 (i386_ymm_type): Likewise.
3777 (i386_supply_xstateregset): Likewise.
3778 (i386_collect_xstateregset): Likewise.
3779 (i386_sse_regnum_p): Removed.
3780 (i386_pseudo_register_name): Support pseudo YMM registers.
3781 (i386_pseudo_register_type): Likewise.
3782 (i386_pseudo_register_read): Likewise.
3783 (i386_pseudo_register_write): Likewise.
3784 (i386_dbx_reg_to_regnum): Return %ymmN register number for
3785 %xmmN if AVX is available.
3786 (i386_regset_from_core_section): Support .reg-xstate section.
3787 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
3788 (i386_process_record): Replace i386_sse_regnum_p with
3790 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
3791 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
3792 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
3793 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
3794 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
3795 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
3797 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
3799 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
3800 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
3802 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
3803 (I386_AVX_NUM_REGS): New.
3804 (i386_xmm_regnum_p): Likewise.
3805 (i386_ymm_regnum_p): Likewise.
3806 (i386_ymmh_regnum_p): Likewise.
3808 * common/i386-xstate.h: New.
3810 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3812 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
3814 * features/Makefile (WHICH): Add i386/i386-avx,
3815 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
3816 (i386/i386-avx-expedite): New.
3817 (i386/i386-avx-linux-expedite): Likewise.
3818 (i386/x86-64-avx-expedite):Likewise.
3819 (i386/x86-64-avx-linux-expedite): Likewise.
3820 ($(outdir)/i386/i386-avx.dat): New dependency.
3821 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
3822 ($(outdir)/i386/x86-avx-64.dat): Likewise.
3823 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
3825 * features/i386/32bit-avx.xml: New.
3826 * features/i386/64bit-avx.xml: Likewise.
3827 * features/i386/i386-avx-linux.c: Likewise.
3828 * features/i386/i386-avx-linux.xml: Likewise.
3829 * features/i386/i386-avx.c: Likewise.
3830 * features/i386/i386-avx.xml: Likewise.
3831 * features/i386/x86-64-avx-linux.c: Likewise.
3832 * features/i386/x86-64-avx-linux.xml: Likewise.
3833 * features/i386/x86-64-avx.c: Likewise.
3834 * features/i386/x86-64-avx.xml: Likewise.
3835 * regformats/i386/i386-avx-linux.dat: Likewise.
3836 * regformats/i386/i386-avx.dat: Likewise.
3837 * regformats/i386/x86-64-avx-linux.dat: Likewise.
3838 * regformats/i386/x86-64-avx.dat: Likewise.
3840 2010-04-07 Doug Evans <dje@google.com>
3842 * top.c (source_file_name): Make const char *.
3843 * top.h (source_file_name): Update.
3844 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
3846 (script_from_file): Change `file' arg to const char *.
3847 * cli/cli-script.h (script_from_file): Update.
3849 2010-04-06 Doug Evans <dje@google.com>
3851 * cli/cli-cmds.c (source_command): Run cleanups.
3853 2010-04-06 Stan Shebs <stan@codesourcery.com>
3855 * defs.h (char_ptr): Move typedef here from...
3856 * ada-lang.c (char_ptr): Remove.
3857 * charset.c (char_ptr): Remove.
3858 * tracepoint.h (struct uploaded_string): Remove.
3859 (struct uploaded_tp): Use vectors for string arrays.
3860 * tracepoint.c (trace_save): Use vectors of actions.
3861 (parse_tracepoint_definition): Ditto.
3862 (get_uploaded_tp): Clear vectors.
3863 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
3864 (next_cmd): Change to an int.
3865 (read_next_cmd): Use vector of command strings.
3867 2010-04-06 Doug Evans <dje@google.com>
3869 * top.h (source_script, cd_command): Delete.
3870 * main.c: #include "cli/cli-cmds.h"
3872 2010-04-06 Kevin Buettner <kevinb@redhat.com>
3874 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
3875 type in bytes, not bits.
3877 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3879 * stabsread.c (define_symbol): Add support for char
3880 and string constants.
3882 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3884 Remove remaining "%ll" uses.
3885 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
3887 * rs6000-nat.c (rs6000_ptrace64): Idem.
3888 * solib-pa64.c (pa64_current_sos): Idem.
3889 * solib-spu.c (spu_current_sos): Idem.
3890 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
3892 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
3894 * sh64-tdep.c (sh64_show_media_regs): Idem.
3896 2010-04-05 Stan Shebs <stan@codesourcery.com>
3898 * tracepoint.c: Include gdbcore.h.
3899 (tfile_xfer_partial): Return partial results, also try reading
3901 (tfile_has_all_memory): New function.
3902 (init_tfile_ops): Use it.
3904 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
3907 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
3908 the changes in data-directory.
3909 (init_sysinfo): Reload the syscall XML file if the data-directory
3912 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3915 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
3917 2010-04-04 Stan Shebs <stan@codesourcery.com>
3918 Nathan Sidwell <nathan@codesourcery.com>
3920 * breakpoint.c (breakpoint_1): Add filter argument, return number of
3921 breakpoints printed.
3922 (is_hardware_watchpoint): Make argument const.
3923 (is_watchpoint): Ditto.
3924 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
3926 (breakpoints_info): Pass NULL to breakpoint_1.
3927 (maintenance_info_breakpoints): Ditto.
3928 (watchpoints_info): New function.
3929 (tracepoints_info): Use breakpoint_1 filter.
3930 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
3931 (_initialize_breakpoint): Make "info watchpoints" its own command.
3932 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
3933 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
3935 2010-04-04 Stan Shebs <stan@codesourcery.com>
3937 * tracepoint.c (tfile_fetch_registers): Add fallback case.
3939 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3941 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
3942 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
3944 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3946 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
3947 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
3949 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3951 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
3954 2010-04-02 Hui Zhu <teawater@gmail.com>
3956 * i386-tdep.c (OT_DQUAD): New enum.
3957 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
3958 SSE3, SSSE3 and SSE4.
3960 2010-04-02 Hui Zhu <teawater@gmail.com>
3962 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
3965 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3967 * tracepoint.c (trace_dump_actions): New, factored out from
3968 trace_dump_command, and adjusted to recurse into while-stepping's
3970 (trace_dump_command): Use it.
3972 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3974 * breakpoint.h (struct counted_command_line): Moved definition to
3975 breakpoint.c, and forward declare.
3976 (breakpoint_commands): Declare.
3977 * breakpoint.c (struct counted_command_line): Moved here.
3978 (breakpoint_commands): New.
3979 * tracepoint.c (encode_actions): Use breakpoint_commands.
3980 * remote.c (remote_download_tracepoint): Ditto.
3982 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3984 * remote.c (remote_parse_stop_reply): Use hex_string instead
3985 of phex_nz for error.
3987 2010-04-01 Stan Shebs <stan@codesourcery.com>
3988 Nathan Sidwell <nathan@codesourcery.com>
3990 * tracepoint.h (enum actionline_type): Remove.
3991 (validate_actionline): Change return to void.
3992 * tracepoint.c (report_agent_reqs_errors): New function.
3993 (validate_actionline): Call it, change return to void, report errors
3995 (collect_symbol): Call report_agent_reqs_errors.
3996 (encode_actions_1): Ditto.
3997 (encode_actions): Don't expect a result from validate_actionline.
3999 2010-04-01 Stan Shebs <stan@codesourcery.com>
4001 * tracepoint.c (trace_start_command): Confirm if trace is running.
4002 (trace_stop_command): Error if trace not running.
4004 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
4006 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
4007 (AMD64_NUM_LOWER_BYTE_REGS): New.
4008 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
4009 (amd64_pseudo_register_write): Likewise.
4010 (amd64_init_abi): Set num_byte_regs to 20.
4012 2010-04-01 Pedro Alves <pedro@codesourcery.com>
4014 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
4015 (prev_breakpoint_count): New.
4016 (set_breakpoint_count): Adjust.
4017 (rbreak_start_breakpoint_count): New.
4018 (start_rbreak_breakpoints): Adjust.
4019 (end_rbreak_breakpoints): Adjust.
4020 (struct commands_info) <arg>: New field.
4021 (do_map_commands_command): Tweak output to include breakpoint spec
4023 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
4024 ARG was empty on entry. Set INFO's arg.
4025 (create_breakpoint): Adjust.
4027 * NEWS: Clarify `commands' changes.
4029 2010-04-01 Pedro Alves <pedro@codesourcery.com>
4031 * tracepoint.c: Include stack.h.
4032 (struct add_local_symbols_data): New.
4033 (do_collect_symbol): New.
4034 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
4035 iterate_over_block_local_vars.
4036 * stack.c (print_block_frame_locals): Rewrite as ...
4037 (iterate_over_block_locals): ... this. Take a callback function
4038 pointer and generic data pointer, and call that instead of
4039 print_variable_and_value.
4040 (struct print_variable_and_value_data): New.
4041 (do_print_variable_and_value): New.
4042 (iterate_over_block_local_vars): New, abstracted out from
4043 print_frame_local_vars.
4044 (print_frame_local_vars): Rewrite using
4045 iterate_over_block_local_vars.
4046 (iterate_over_block_arg_vars): New, abstracted out from
4047 print_frame_arg_vars.
4048 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
4049 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
4050 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
4052 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
4054 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
4055 instructions. Use the PC+4 if the base of the TBB or TBH is the
4058 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4060 Fix crash on reading wrong function declaration DWARF.
4061 * dwarf2read.c (read_subroutine_type): New variable void_type.
4062 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
4063 more close to their use.
4065 2010-03-31 Stan Shebs <stan@codesourcery.com>
4067 * breakpoint.c (tracepoint_save_command): Include variables,
4068 conditionals, tracepoint types, and default-collect.
4069 * tracepoint.c (save_trace_state_variables): New function.
4070 * tracepoint.h (save_trace_state_variables): Declare it.
4072 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
4074 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
4076 2010-03-30 Keith Seitz <keiths@redhat.com>
4078 * c-typeprint.c (c_type_print_args): Don't print "void"
4079 for java, regardless of whether it is TYPE_PROTOTYPED.
4080 Use the passed-in language instead of current_language.
4081 (c_type_print_varspec_suffix): Use current_language instead
4082 of assuming language_c.
4083 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
4084 any return type specifier from the physname.
4086 2010-03-30 Pedro Alves <pedro@codesourcery.com>
4088 * tui/tui-interp.c (tui_is_toplevel): New.
4090 (tui_allowed_p): New.
4091 * tui/tui.c (tui_enable): Check if the TUI is allowed before
4093 * tui/tui.h (tui_allowed_p): Declare.
4095 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
4097 * serial.h: Include winsock2.h before windows.h.
4099 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
4101 * NEWS: Mention xmlRegisters= in qSupported packet.
4103 * i386-tdep.c: Include "remote.h".
4104 (_initialize_i386_tdep): Call register_remote_support_xml.
4106 * remote.c (remote_support_xml): New.
4107 (register_remote_support_xml): Likewise.
4108 (remote_query_supported_append): Likewise.
4109 (remote_query_supported): Support remote_support_xml.
4111 * remote.h (register_remote_support_xml): New.
4113 2010-03-29 Stan Shebs <stan@codesourcery.com>
4115 * tracepoint.c (trace_find_line_command): Remove dead code.
4117 * tracepoint.h (struct uploaded_string): New struct.
4118 (struct uploaded_tp): New fields for source strings.
4119 * breakpoint.c (this_utp, next_cmd): New globals.
4120 (read_uploaded_action): New function.
4121 (create_tracepoint_from_upload): Fill in more parts
4123 * tracepoint.c (encode_source_string): New function.
4124 (trace_save): Write out source strings, fix error checks.
4125 (parse_tracepoint_definition): Add source string parsing.
4126 * remote.c (PACKET_TracepointSource): New packet type.
4127 (remote_download_command_source): New function.
4128 (remote_download_tracepoint): Download source pieces also.
4129 (_initialize_remote): Add packet config command.
4131 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
4134 * tracepoint.c (start_tracing): Check tracepoints before sending
4135 commands to target, don't start if all tracepoints disabled.
4137 2010-03-28 Pedro Alves <pedro@codesourcery.com>
4139 * cli/cli-script.c (process_next_line): Handle 'stepping'.
4141 2010-03-26 Stan Shebs <stan@codesourcery.com>
4143 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
4145 2010-03-26 Tom Tromey <tromey@redhat.com>
4147 * breakpoint.c (commands_command_1): Duplicate 'arg'.
4149 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4151 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
4152 (skip_prologue_sal): Remove local definition.
4153 (resolve_sal_pc): Remove now unnecessary code.
4154 * linespec.c (minsym_found): Call skip_prologue_sal.
4155 * symtab.c (find_function_start_pc): Remove.
4156 (find_function_start_sal): Extract prologue skipping into ...
4157 (skip_prologue_sal): ... this new function. Handle code both
4158 with and without debug info. Respect SAL's explicit_pc and
4159 explicit_line flags. Inline old find_function_start_pc.
4160 * symtab.h (find_function_start_pc): Remove.
4161 (skip_prologue_sal): Add prototype.
4163 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4165 * dwarf2read.c (read_func_scope): Also scan specification DIEs
4166 for DW_TAG_imported_module children.
4168 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4170 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
4171 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
4172 * completer.c (add_struct_fields): Fix inverted logic.
4174 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4176 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
4178 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4180 * tracepoint.c (current_trace_status): Don't make sure error_desc
4182 (parse_trace_status): Release a previous error_desc string, and
4183 set it to NULL by default. If stop reason is tracepoint_error,
4184 make sure error_desc is not left NULL.
4186 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4188 * tracepoint.c (trace_save): Remove X from tracepoint error
4191 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4193 * tracepoint.c (parse_trace_status): Don't allow plain strings in
4194 the terror description. Don't expect an X prefix.
4196 2010-03-25 Stan Shebs <stan@codesourcery.com>
4198 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
4199 (struct trace_status): New field error_desc.
4200 * tracepoint.c (stop_reason_names): Add terror.
4201 (current_trace_status): Ensure non-NULL error description.
4202 (trace_status_command): Add error report.
4203 (trace_status_mi): Ditto.
4204 (trace_save): Add special case for error description.
4205 (parse_trace_status): Add case for errors.
4207 2010-03-25 Keith Seitz <keiths@redhat.com>
4209 * dwarf2read.c (read_subroutine_type): If the compilation unit
4210 language is Java, mark any formal parameter named "this" as
4211 artificial (GCC/43521).
4212 (dwarf2_name): Add special handling for Java constructors.
4214 2010-03-25 Tom Tromey <tromey@redhat.com>
4216 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
4217 * infrun.c (handle_inferior_event): Change initialization of
4219 (handle_inferior_event): Change assignment to stop_stack_dummy.
4220 (normal_stop): Update use of stop_stack_dummy.
4221 (struct inferior_status) <stop_stack_dummy>: Change type.
4222 * inferior.h (stop_stack_dummy): Update.
4223 * infcmd.c (stop_stack_dummy): Change type.
4224 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
4226 (call_function_by_hand): Call set_std_terminate_breakpoint.
4227 Rewrite std::terminate handling.
4228 * breakpoint.h (enum bptype) <bp_std_terminate,
4229 bp_std_terminate_master>: New.
4230 (enum stop_stack_kind): New.
4231 (struct bpstat_what) <call_dummy>: Change type.
4232 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
4234 * breakpoint.c (create_std_terminate_master_breakpoint): New
4236 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
4237 Call create_std_terminate_master_breakpoint.
4238 (print_it_typical): Handle new breakpoint kinds.
4239 (bpstat_stop_status): Handle bp_std_terminate_master.
4240 (bpstat_what): Correctly set call_dummy field. Handle
4241 bp_std_terminate_master and bp_std_terminate.
4242 (print_one_breakpoint_location): Update.
4243 (allocate_bp_location): Update.
4244 (set_std_terminate_breakpoint): New function.
4245 (delete_std_terminate_breakpoint): Likewise.
4246 (create_thread_event_breakpoint): Update.
4247 (delete_command): Update.
4248 (breakpoint_re_set_one): Update.
4249 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
4251 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4253 * symfile.c (build_section_addr_info_from_bfd): New.
4254 (build_section_addr_info_from_objfile): Base it on
4255 build_section_addr_info_from_bfd.
4256 (addrs_section_compar, addrs_section_sort): New.
4257 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
4258 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
4259 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
4261 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
4263 * elfread.c (find_separate_debug_file_by_buildid):
4264 Remove unused local variable.
4266 2010-03-24 Tom Tromey <tromey@redhat.com>
4268 PR breakpoints/9352:
4269 * NEWS: Mention changes to `commands' and `rbreak'.
4270 * symtab.c (do_end_rbreak_breakpoints): New function.
4271 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
4272 end_rbreak_breakpoints.
4273 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
4274 (set_breakpoint_count): Likewise. Clear last_was_multi.
4275 (multi_start, multi_end, last_was_multi): New globals.
4276 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
4278 (struct commands_info): New
4279 (do_map_commands_command): New function.
4280 (commands_command_1): New function.
4281 (commands_command): Use it.
4282 (commands_from_control_command): Likewise.
4283 (do_delete_breakpoint): New function.
4284 (delete_command): Use it.
4285 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
4286 (do_map_disable_breakpoint): New function.
4287 (disable_command): Use it.
4288 (do_map_enable_breakpoint): New function.
4289 (enable_command): Use it.
4290 (enable_once_breakpoint): Add argument.
4291 (enable_once_command): Update.
4292 (enable_delete_breakpoint): Add argument.
4293 (enable_delete_command): Update.
4294 (break_command_really): Set last_was_multi when needed.
4295 (check_tracepoint_command): Fix formatting.
4296 (validate_commands_for_breakpoint): New function.
4297 (breakpoint_set_commands): Use it.
4298 (tracepoint_save_command): Update.
4299 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
4302 2010-03-24 Tom Tromey <tromey@redhat.com>
4304 * breakpoint.h (struct counted_command_line): New struct.
4305 (struct breakpoint) <commands>: Change type.
4306 (struct bpstats) <commands>: Change type.
4307 <commands_left>: New field.
4308 * breakpoint.c (alloc_counted_command_line): New function.
4309 (incref_counted_command_line): Likewise.
4310 (decref_counted_command_line): Likewise.
4311 (do_cleanup_counted_command_line): Likewise.
4312 (make_cleanup_decref_counted_command_line): Likewise.
4313 (breakpoint_set_commands): Use decref_counted_command_line and
4314 alloc_counted_command_line.
4315 (commands_command): Don't error if breakpoint commands are
4317 (commands_from_control_command): Likewise.
4318 (bpstat_free): Update.
4319 (bpstat_copy): Likewise.
4320 (bpstat_clear_actions): Likewise.
4321 (bpstat_do_actions_1): Likewise.
4322 (bpstat_stop_status): Likewise.
4323 (print_one_breakpoint_location): Likewise.
4324 (delete_breakpoint): Likewise.
4325 (bpstat_alloc): Initialize new field.
4326 (tracepoint_save_command): Update.
4327 * tracepoint.c (encode_actions): Update.
4328 (trace_dump_command): Update.
4330 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4332 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
4333 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
4334 (read_structure_type): For RealView, set TYPE_STUB on structures with
4335 no byte size and no children.
4336 (read_subroutine_type): Mark functions as prototyped by default.
4337 * symtab.c (producer_is_realview): New function.
4338 * symtab.h (expand_line_sal): Fix declaration formatting.
4339 (producer_is_realview): Declare.
4341 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4343 * arm-tdep.c (skip_prologue_function): New function.
4344 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
4345 (thumb_analyze_prologue): Document return value. Recognize more
4346 Thumb instructions, skippable calls, and some Thumb-2 instructions.
4348 (arm_skip_prologue): Remove call dummy check. Check the prologue
4349 for non-GNU compilers.
4350 (arm_instruction_changes_pc): New function.
4351 (arm_analyze_prologue): New function, broken out from
4352 arm_scan_prologue. Recognize more ARM instructions and skippable
4353 calls. Update comments. Handle NULL cache. Return the address
4354 of the first unrecognized instruction. Do not skip past other
4355 instructions which change control flow. Add debug output.
4356 (arm_scan_prologue): Use arm_analyze_prologue.
4357 (ARM_PC_32): Delete.
4358 (shifted_reg_val): Simplify ARM_PC_32 check.
4360 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4362 * tracepoint.c (tvariables_info_1): Actually compute
4363 the number of rows in the result.
4365 2010-03-24 Pedro Alves <pedro@codesourcery.com>
4367 * remote.c (crc32): Constify `buf' parameter.
4368 (remote_verify_memory): New, abstracted out from...
4369 (compare_sections_command): ... this. Remove hardcoded target
4371 (init_remote_ops): Install remote_verify_memory.
4372 * target.c (target_verify_memory): New.
4373 * target.h (struct target_ops) <to_verify_memory>: New field.
4374 (target_verify_memory): Declare.
4376 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4378 Implement -trace-save.
4380 * mi-cmds.h (mi_cmds_trace_save): Declare.
4381 * mi-cmds.c (mi_cmds): Register -trace-save.
4382 * mi/mi-main.c (mi_cmd_trace_save): New.
4383 * remote.c (remote_save_trace_data): Take const parameter.
4384 * target.h (struct target_ops::to_save_trace_data): Take
4386 * target.c (update_current_target): Adjust to the above.
4387 * tracepoint.c (trave_save): New, extracted from
4388 (trace_save_command): ...this.
4389 (tfile_trace_find): Remove message that is unnecessary now
4390 that 'tfind' reports found frame.
4391 * tracepoint.h (trace_save): Declare.
4393 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4395 Implement -trace-find.
4397 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
4398 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
4399 * mi/mi-main.c (mi_cmd_trace_find): New.
4400 * target.h (struct target_ops): Document to_trace_find.
4401 * tracepoint.h (tfind_1): Declare.
4402 * tracepoint.c (finish_tfind_command): Rename to...
4404 * remote.c (remote_trace_find): Return -1 if target say
4405 there's no frame. Improve error diagnostics.
4407 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4409 -trace-define-variable and -trace-list-variables.
4411 * tracepoint.c (create_trace_state_variable): Make
4412 private copy of name, as opposed to assuming the
4413 pointer lives forever.
4414 (tvariables_info_1): New.
4415 (tvariables_info): Use the above.
4416 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
4418 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
4419 and -trace-list-variables.
4420 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
4421 (mi_cmd_trace_list_variables): New.
4422 * mi/mi-main.c (mi_cmd_trace_define_variable)
4423 (mi_cmd_trace_list_variables): New.
4425 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4427 Implement -break-passcount.
4429 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
4430 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
4431 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
4433 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4435 -trace-start/-trace-end/-trace-status.
4437 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
4439 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
4440 (mi_cmd_trace_stop): Declare.
4441 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
4442 (mi_cmd_trace_stop): New.
4443 * tracepoint.c (start_tracing): New, extracted from...
4444 (trace_start_command): ...this.
4445 (trace_status_mi): New.
4446 * tracepoint.h (struct trace_status): Document
4447 stopping_tracepoint.
4448 (start_tracing, stop_tracing, trace_status_mi): Declare.
4450 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4452 Implement creating tracepoints with -break-insert.
4454 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
4455 to mean that tracepoint should be created.
4457 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4459 * breakpoint.c (check_no_tracepoint_commands): Use
4460 current spelling of 'teval'.
4462 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4464 Unify actions and commands
4466 * defs.h (read_command_lines, read_command_lines_1): New
4467 parameters validator and closure.
4468 * tracepoint.h (struct action_line): Remove.
4469 * breakpoint.h (struct breakpoint): Remove the 'actions'
4471 * defs.h (enum command_control_type): New value
4472 while_stepping_control.
4473 (struct command_line): Add comments.
4474 * breakpoint.c (breakoint_is_tracepoint): New.
4475 (breakpoint_set_commands): For tracepoints,
4476 verify the commands are permissible.
4477 (check_tracepoint_commands): New.
4478 (commands_command): Require that each new line is validated using
4479 check_tracepoint_command, if we set commands for a tracepoint.
4480 (create_tracepoint_from_upload): Likewise.
4481 (print_one_breakpoint_location): Remove the code to print
4482 actions specifically.
4483 (tracepoint_save_command): Relay to print_command_lines.
4484 * cli/cli-script.c (process_next_line): New parameters validator
4485 and closure. Handle 'while-stepping'. Call validator if not null.
4486 (read_command_lines, read_command_lines1): Likewise.
4487 (recurse_read_control_structure): New parameters validator and
4488 closure. Handle while_stepping_control.
4489 (print_command_lines): Handle while-stepping.
4490 (get_command_line, define_command, document_command): Adjust.
4491 * remote.c (remote_download_tracepoint): Adjust.
4492 * tracepoint.c (make_cleanup_free_actions, read_actions)
4493 (free_actions, do_free_actions_cleanup): Remove.
4494 (trace_actions_command): Use read_command_lines.
4495 (validate_actionline): Use error in one place.
4496 (encode_actions_1): New, extracted from...
4497 (encode_actions): ...this. Also use cleanups for exception
4499 (trace_dump_command): Adjust.
4500 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
4503 2010-03-23 Mike Frysinger <vapier@gentoo.org>
4505 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
4507 2010-03-22 Stan Shebs <stan@codesourcery.com>
4509 * value.c (value_static_field): Be lazy about the field's value.
4511 2010-03-22 Reid Kleckner <reid@kleckner.net>
4514 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
4516 (disable_breakpoints_in_shlibs): Likewise.
4518 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
4520 * dwarf2read.c (partial_die_parent_scope): Work around buggy
4521 GCC 4.1 debug info generation (GCC PR c++/28460).
4522 (determine_prefix): Likewise.
4524 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
4526 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
4528 * tui/tui-layout.c (extract_display_start_addr): Likewise.
4530 2010-03-19 Stan Shebs <stan@codesourcery.com>
4532 * ax-gdb.c (gen_fetch): Handle bool.
4533 (gen_usual_unary): Ditto.
4535 (gen_equal): New function.
4536 (gen_less): New function.
4537 (gen_expr_binop_rest): Call them, also return integer type from
4541 2010-03-19 Tom Tromey <tromey@redhat.com>
4543 * jv-lang.c (jv_dynamics_objfile_data_key)
4544 (jv_type_objfile_data_key): New globals.
4545 (class_symtab): Move earlier.
4546 (jv_per_objfile_free): New function.
4547 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
4549 Remove ancient #if 1.
4550 (add_class_symbol): Remove redundant declaration.
4551 (java_lookup_class): Use alloc_type, not alloc_type_arch.
4552 (java_link_class_type): Mark as static. Update.
4553 (jv_clear_object_type): New function.
4554 (set_java_object_type): Likewise.
4555 (get_java_object_type): Use set_java_object_type.
4556 (is_object_type): Likewise.
4557 (_initialize_java_language): Register new objfile keys.
4558 (get_java_class_symtab): Add 'gdbarch' parameter.
4559 (add_class_symtab_symbol): Update.
4560 (type_from_class): Update.
4562 2010-03-19 Stan Shebs <stan@codesourcery.com>
4564 * ax-general.c (ax_const_l): Fix a sizing bug.
4566 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4570 2010-03-18 Stan Shebs <stan@codesourcery.com>
4571 Pedro Alves <pedro@codesourcery.com>
4573 * target.h (struct target_ops): New method
4574 to_set_circular_trace_buffer.
4575 (target_set_circular_trace_buffer): New macro.
4576 * target.c (update_current_target): Add
4577 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
4579 * remote.c (remote_set_circular_trace_buffer): New function.
4580 (init_remote_ops): Add it to vector.
4581 * tracepoint.h (struct trace_status): New field traceframes_created,
4582 change buffer_size and buffer_free to int.
4583 * tracepoint.c (circular_trace_buffer): New global.
4584 (start_tracing): Send values of disconnected tracing and circular
4585 trace buffer settings.
4586 (set_circular_trace_buffer): New function.
4587 (parse_trace_state): Handle total space and frames created.
4588 (trace_status_command): Display total space and total frames
4590 (trace_save): Write out new status values.
4591 (parse_trace_status): Set traceframe_count, traceframes_created,
4592 buffer_free and buffer_size to -1 by default.
4593 (_initialize_tracepoint): New setshow for circular-trace-buffer.
4594 * NEWS: Mention the circular trace buffer option.
4596 2010-03-18 Tom Tromey <tromey@redhat.com>
4598 * infcmd.c (finish_command_continuation): Wrap print_return_value
4601 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4603 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
4604 DIE has a name before creating the associated partial symbol.
4605 (read_func_scope): Emit a complaint if the subprogram does not
4606 have a name or when we can't extract the subprogram PC bounds.
4608 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4610 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
4611 instead of selected frame architecture.
4613 2010-03-18 Pedro Alves <pedro@codesourcery.com>
4615 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
4616 a valid selected thread, and that it is not running.
4617 (advance_command): Ditto.
4618 (finish_command): Ditto.
4620 2010-03-17 Stan Shebs <stan@codesourcery.com>
4622 * ax-gdb.c (require_rvalue): Disallow non-scalars.
4624 * infcall.c: Include tracepoint.h.
4625 (call_function_by_hand): Disallow calls in tfind mode.
4626 * infcmd.c: Include tracepoint.h.
4627 (ensure_not_tfind_mode): New function.
4628 (continue_1): Call it.
4630 (jump_command): Ditto.
4631 (signal_command): Ditto.
4632 (advance_command): Ditto.
4633 (until_command): Ditto.
4634 (finish_command): Ditto.
4635 * tracepoint.h (disconnect_or_stop_tracing): Declare.
4637 * ax-gdb.h (struct axs_value): New field optimized_out.
4638 (gen_trace_for_var): Add gdbarch argument.
4639 * ax-gdb.c (gen_trace_static_fields): New function.
4640 (gen_traced_pop): Call it, add gdbarch argument.
4641 (gen_trace_for_expr): Update call to it.
4642 (gen_trace_for_var): Ditto, and report optimized-out variables.
4643 (gen_struct_ref_recursive): Check for optimized-out value.
4644 (gen_struct_elt_for_reference): Ditto.
4645 (gen_static_field): Pass gdbarch instead of expression, assume
4646 optimization if field not found.
4647 (gen_var_ref): Set the optimized_out flag.
4648 (gen_expr): Error on optimized-out variable.
4649 * tracepoint.c (collect_symbol): Handle struct-valued vars as
4650 expressions, skip optimized-out variables with computed locations.
4651 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
4652 erroring out if location expression missing.
4653 (loclist_tracepoint_var_ref): Don't error out here.
4655 2010-03-17 Tom Tromey <tromey@redhat.com>
4657 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
4658 DWARF data is available.
4660 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4662 * symfile.c (generic_load): Reset breakpoints after loading.
4664 2010-03-17 Tom Tromey <tromey@redhat.com>
4666 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
4668 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4670 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
4671 create_breakpoint call, adjust the parameters.
4673 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4674 Chandru <chandru@in.ibm.com>
4676 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
4677 * valarith.c (value_subscripted_rvalue): Suppress error if
4678 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
4680 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
4682 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
4684 2010-03-16 Joel Brobecker <brobecker@adacore.com>
4686 * ada-tasks.c (task_command_1): Check that the task ptid is valid
4687 before doing the associated thread switch.
4689 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
4691 * MAINTAINERS: Update my email address.
4693 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
4695 Simplify MI breakpoint setting.
4697 * breakpoint.c (break_command_really): Make nonstatic and
4699 (create_breakpoint): ...this. Rename prior function by this name
4701 (create_breakpoint_sal): ...this.
4702 (create_breakpoints): Rename to...
4703 (create_breakpoints_sal): ...this.
4704 (set_breakpoint): Remove.
4705 * breakpoint.h: Adjust to above changes.
4706 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
4708 2010-03-15 Stan Shebs <stan@codesourcery.com>
4710 * ax-gdb.c: Include cp-support.h.
4711 (find_field): Remove.
4712 (gen_primitive_field): New function.
4713 (gen_struct_ref_recursive): New function.
4714 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
4716 (gen_static_field): New function.
4717 (gen_struct_elt_for_reference): New.
4718 (gen_namespace_elt): New.
4719 (gen_maybe_namespace_elt): New.
4720 (gen_aggregate_elt_ref): New.
4721 (gen_expr): Add OP_SCOPE, display opcode name in error message.
4723 2010-03-15 Tom Tromey <tromey@redhat.com>
4725 * dwarf2read.c (die_needs_namespace): Also return 0 for
4728 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
4731 * cp-support.h: Added char *declaration element to using_direct
4733 (cp_add_using): Added char *declaration argument.
4734 (cp_add_using_directive): Ditto.
4735 (cp_lookup_symbol_imports): made extern.
4736 * cp-namespace.c: Updated with the above changes.
4737 * dwarf2read.c (read_import_statement): Ditto.
4738 (read_namespace): Ditto.
4739 (read_import_statement): Support import declarations.
4740 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
4742 Added support for 'declaration_only' search.
4743 (cp_lookup_symbol_namespace): Attempt to search for the name as
4744 is before consideration of imports.
4745 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
4746 search at every block level search.
4747 Now takes language argument.
4748 (lookup_symbol_aux): Updated.
4750 2010-03-15 Tom Tromey <tromey@redhat.com>
4752 * c-exp.y (name_not_typename): Add 'operator' clause.
4754 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
4756 * configure.ac: Exit if ${gdb_target_obs}" is not set.
4757 * configure: Regenerate.
4759 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4761 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
4762 and ".sdynbss". Update the comment.
4764 2010-03-15 Jie Zhang <jie@codesourcery.com>
4766 * MAINTAINERS: Update my email address.
4768 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4770 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
4772 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4774 * charset.c [USE_WIN32API]: Include <windows.h>.
4775 (_initialize_charset): Correct type of w32_host_default_charset.
4777 2010-03-14 Pedro Alves <pedro@codesourcery.com>
4779 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
4781 2010-03-12 Tom Tromey <tromey@redhat.com>
4784 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
4785 in a lexical block does not need a namespace.
4786 (new_symbol) <DW_TAG_variable>: Put extern variables on
4787 list_in_scope in all cases.
4789 2010-03-12 Stan Shebs <stan@codesourcery.com>
4791 * ax-gdb.c (gen_expr): Add shift expressions.
4792 (gen_expr_binop_rest): Ditto.
4794 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
4796 * buildsym.c (finish_block): Reset using_directives pointer
4797 after block initialization.
4799 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
4801 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
4802 * i386-tdep.c (i386_word_names): Likewise.
4804 2010-03-12 Pedro Alves <pedro@codesourcery.com>
4806 * target.c (memory_xfer_partial): Don't use the stack cache if
4807 inspecting trace frames.
4808 * tracepoint.c (finish_tfind_command): Invalidate the target
4811 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4813 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
4814 for the PIC displacement, print also the displacement value.
4815 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
4817 2010-03-10 Kevin Buettner <kevinb@redhat.com>
4819 * remote-mips.c (close_ports, mips_initialize_cleanups)
4820 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
4821 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
4822 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
4823 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
4824 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
4825 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
4826 comments describing each of these functions.
4827 (mips_enter_debug, mips_exit_debug, common_open)
4828 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
4829 blank line after the comment describing the function.
4831 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4833 * solib-svr4.c (svr4_exec_displacement): Return now success, new
4834 parameter displacementp. Update comment.
4835 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
4836 element exists. Return if svr4_exec_displacement was not successful.
4839 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4840 Daniel Jacobowitz <dan@codesourcery.com>
4842 * solib-svr4.c (read_program_header): Support type == -1 to read
4843 all program headers.
4844 (read_program_headers_from_bfd): New function.
4845 (svr4_static_exec_displacement): Remove and move the comment ...
4846 (svr4_exec_displacement): ... here. Remove variable found. New
4847 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
4848 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
4849 targets using read_program_headers_from_bfd. Remove the call of
4850 svr4_static_exec_displacement.
4852 2010-03-10 Tom Tromey <tromey@redhat.com>
4854 * dwarf2read.c (struct pubnames_header): Remove.
4855 (_PUBNAMES_HEADER): Remove.
4856 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
4857 (struct aranges_header): Remove.
4858 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
4859 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
4860 (PUBNAMES_SECTION): Remove.
4861 (ARANGES_SECTION): Remove.
4862 (dwarf2_locate_sections): Don't handle pubnames or aranges.
4863 (dwarf2_build_psymtabs): Remove dead code.
4864 (dwarf2_build_psymtabs_easy): Remove.
4866 2010-03-10 Tom Tromey <tromey@redhat.com>
4868 * elfread.c (elf_symfile_read): Don't call
4869 dwarf2_build_frame_info.
4870 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
4871 (struct dwarf2_per_objfile) <objfile>: New field.
4872 (dwarf2_has_info): Now idempotent. Set objfile field.
4873 (dwarf2_read_section): Check and set readin field. Call
4875 (dwarf2_build_psymtabs): Don't read all sections.
4876 (read_type_comp_unit_head): Read types section.
4877 (create_debug_types_hash_table): Likewise.
4878 (init_cu_die_reader): Add asserts.
4879 (process_type_comp_unit): Add assert.
4880 (dwarf2_build_psymtabs_hard): Read info section.
4881 (load_partial_comp_unit): Add assert.
4882 (create_all_comp_units): Read info section.
4883 (load_full_comp_unit): Likewise.
4884 (dwarf2_ranges_read): Read ranges section.
4885 (dwarf2_record_block_ranges): Add assert.
4886 (dwarf2_read_abbrevs): Read abbrev section.
4887 (read_indirect_string): Read str section.
4888 (dwarf_decode_line_header): Read line section.
4889 (read_signatured_type_at_offset): Read types section.
4890 (dwarf_decode_macros): Read macinfo section.
4891 (dwarf2_symbol_mark_computed): Read loc section.
4892 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
4893 dwarf2_build_frame_info.
4894 (dwarf2_build_frame_info): Unconditionally set
4895 dwarf2_frame_objfile_data on the objfile.
4896 * configure.ac: Check for posix_madvise.
4897 * config.in, configure: Rebuild.
4899 2010-03-10 Tom Tromey <tromey@redhat.com>
4901 * xcoffread.c (xcoff_start_psymtab): Update.
4902 (xcoff_end_psymtab): Update.
4903 * psymtab.c (allocate_psymtab): Remove dead code.
4904 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
4906 * mdebugread.c (parse_partial_symbols): Update.
4907 (new_psymtab): Likewise.
4908 * dwarf2read.c (process_psymtab_comp_unit): Update.
4909 (psymtab_to_symtab_1): Update.
4910 * dbxread.c (start_psymtab): Update.
4911 (end_psymtab): Likewise.
4913 2010-03-10 Tom Tromey <tromey@redhat.com>
4915 * xcoffread.c: Include psymtab.h.
4916 (xcoff_sym_fns): Update.
4917 * symtab.h (struct partial_symbol): Remove.
4918 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
4919 (struct partial_symtab): Remove.
4920 (PSYMTAB_TO_SYMTAB): Remove.
4921 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
4922 (find_pc_sect_psymtab): Remove.
4923 (find_pc_sect_symtab_via_partial): Declare.
4924 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
4925 (find_main_psymtab): Remove.
4926 (find_main_filename): Declare.
4927 (fixup_psymbol_section): Remove.
4928 (fixup_section): Declare.
4929 * symtab.c: Include psymtab.h.
4930 (lookup_symtab): Use lookup_symtab method.
4931 (lookup_partial_symtab): Remove.
4932 (find_pc_sect_psymtab_closer): Remove.
4933 (find_pc_sect_psymtab): Remove.
4934 (find_pc_sect_symtab_via_partial): New function.
4935 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
4936 (fixup_section): No longer static.
4937 (fixup_psymbol_section): Remove.
4938 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
4939 (lookup_global_symbol_from_objfile): Likewise.
4940 (lookup_symbol_aux_psymtabs): Remove.
4941 (lookup_symbol_aux_quick): New function.
4942 (lookup_symbol_global): Use lookup_symbol_aux_quick.
4943 (lookup_partial_symbol): Remove.
4944 (basic_lookup_transparent_type_quick): New function.
4945 (basic_lookup_transparent_type): Use it.
4946 (find_main_psymtab): Remove.
4947 (find_main_filename): New function.
4948 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
4949 (find_line_symtab): Use expand_symtabs_with_filename method.
4950 (output_partial_symbol_filename): New function.
4951 (sources_info): Use map_partial_symbol_filenames.
4952 (struct search_symbols_data): New type.
4953 (search_symbols_file_matches): New function.
4954 (search_symbols_name_matches): Likewise.
4955 (search_symbols): Use expand_symtabs_matching method.
4956 (struct add_name_data): Rename from add_macro_name_data.
4957 (add_macro_name): Update.
4958 (add_partial_symbol_name): New function.
4959 (default_make_symbol_completion_list): Use
4960 map_partial_symbol_names.
4961 (struct add_partial_symbol_name): New type.
4962 (maybe_add_partial_symtab_filename): New function.
4963 (make_source_files_completion_list): Use
4964 map_partial_symbol_filenames.
4965 (expand_line_sal): Use expand_symtabs_with_filename method.
4966 * symmisc.c: Include psymtab.h.
4967 (print_objfile_statistics): Use print_stats method.
4968 (dump_objfile): Use dump method.
4969 (dump_psymtab, maintenance_print_psymbols)
4970 (maintenance_info_psymtabs, maintenance_check_symtabs)
4971 (extend_psymbol_list): Remove.
4972 * symfile.h (struct quick_symbol_functions): New struct.
4973 (struct sym_fns) <qf>: New field.
4974 (sort_pst_symbols): Remove.
4975 (increment_reading_symtab): Declare.
4976 * symfile.c: Include psymtab.h.
4977 (compare_psymbols, sort_pst_symbols): Remove.
4978 (psymtab_to_symtab): Remove.
4979 (increment_reading_symtab): New function.
4980 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
4982 (set_initial_language): Use find_main_filename.
4983 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
4984 (free_named_symtabs): Remove unused code.
4985 (start_psymtab_common, add_psymbol_to_bcache)
4986 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
4988 * stack.c: Include psymtab.h, symfile.h.
4989 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
4990 * source.h (psymtab_to_fullname): Don't declare.
4991 * source.c: Include psymtab.h.
4992 (select_source_symtab): Use find_last_source_symtab method.
4993 (forget_cached_source_info): Use forget_cached_source_info
4995 (find_and_open_source): No longer static.
4996 (psymtab_to_fullname): Remove.
4997 * somread.c: Include psymtab.h.
4998 (som_sym_fns): Update.
4999 * psympriv.h: New file.
5000 * psymtab.h: New file.
5001 * psymtab.c: New file.
5002 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
5003 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
5004 * objfiles.c: Include psymtab.h.
5005 (objfile_relocate1): Use relocate method.
5006 (objfile_has_partial_symbols): Use has_symbols method.
5007 * mipsread.c: Include psymtab.h.
5008 (ecoff_sym_fns): Update.
5009 * mi/mi-cmd-file.c: Include psymtab.h.
5010 (print_partial_file_name): New function.
5011 (mi_cmd_file_list_exec_source_files): Use
5012 map_partial_symbol_filenames.
5013 * mdebugread.c: Include psympriv.h.
5014 * machoread.c: Include psympriv.h.
5015 (macho_sym_fns): Update.
5016 * m2-exp.y (yylex): Use lookup_symtab.
5017 * elfread.c: Include psympriv.h.
5018 (elf_sym_fns): Update.
5019 * dwarf2read.c: Include psympriv.h.
5020 * dbxread.c: Include psympriv.h.
5021 (aout_sym_fns): Update.
5022 * cp-support.c: Include psymtab.h.
5023 (read_in_psymtabs): Remove.
5024 (make_symbol_overload_list_qualified): Use
5025 expand_symtabs_for_function method.
5026 * coffread.c: Include psympriv.h.
5027 (coff_sym_fns): Update.
5028 * blockframe.c: Include psymtab.h.
5029 (find_pc_partial_function): Use find_pc_sect_symtab method.
5030 * ada-lang.h (ada_update_initial_language): Update.
5031 * ada-lang.c: Include psymtab.h.
5032 (ada_update_initial_language): Remove 'main_pst' argument.
5033 (ada_lookup_partial_symbol): Remove.
5034 (struct ada_psym_data): New type.
5035 (ada_add_psyms): New function.
5036 (ada_add_non_local_symbols): Use map_ada_symtabs method.
5037 (struct add_partial_datum): New type.
5038 (ada_add_partial_symbol_completions): New function.
5039 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
5040 (ada_exception_support_info_sniffer): Update.
5041 * Makefile.in (SFILES): Add psymtab.c.
5042 (COMMON_OBS): Add psymtab.o.
5043 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
5045 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5047 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
5049 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
5052 * cp-namespace.c (cp_add_using): Deleted.
5053 (cp_add_using_directive): Use obstack allocations.
5054 Merged the function cp_add_using into this one.
5055 Added 'struct obstack *' argument.
5056 (cp_scan_for_anonymous_namespaces): Updated.
5057 * cp-support.h: Updated.
5058 * dwarf2read.c (read_import_statement): Updated.
5059 (read_namespace): Updated.
5061 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5063 * windows-nat.c (cygwin_conv_path): Remove old macro.
5065 2010-03-10 Pedro Alves <pedro@codesourcery.com>
5067 * breakpoint.c (condition_command): Handle watchpoint conditions.
5068 (is_hardware_watchpoint): Add comment.
5069 (is_watchpoint): New.
5070 (update_watchpoint): Don't reparse the watchpoint's condition
5073 (watchpoint_check): Use it.
5074 (bpstat_check_watchpoint): Handle it.
5075 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
5076 conditions in a frame where it makes sense.
5077 (watch_command_1): Store the innermost block of the condition
5079 (delete_breakpoint): Delete the watchpoint condition expression.
5080 * breakpoint.h (struct bp_location) <cond>: Update comment.
5081 (struct breakpoint): New field `cond_exp_valid_block'.
5083 2010-03-09 Joel Brobecker <brobecker@adacore.com>
5085 Adjust handling of Ada DIEs after dwarf2_physname patch.
5086 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
5088 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
5089 Pierre Muller <muller@ics.u-strasbg.fr>
5091 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
5092 from/to posix/win32.
5093 (windows_make_so): Use non-Cygwin 1.7 specific function.
5094 (windows_create_inferior): Make sure that cygallargs points to
5095 original args in non Cygwin 1.7. case.
5097 2010-03-09 Michael Snyder <msnyder@vmware.com>
5099 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
5100 after target_read_memory to get host byte order.
5101 (i386_process_record): Ditto.
5103 2010-03-09 Keith Seitz <keiths@redhat.com>
5105 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
5106 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
5107 print out const or volatile qualifiers, too.
5108 (c_type_print_args): Add parameters show_artificial and language.
5109 Skip artificial parameters when requested.
5110 Use the appropriate language printer.
5111 (c_type_print_varspec): Tell c_type_print_args to skip artificial
5112 parameters and pass language_c.
5113 * dwarf2read.c (die_list): New file global.
5114 (struct partial_die_info): Update comments for name field.
5115 (pdi_needs_namespace): Renamed to ...
5116 (die_needs_namespace): ... this. Rewrite.
5117 (dwarf2_linkage_name): Remove.
5118 (add_partial_symbol): Do not predicate the call to
5119 partial_die_full_name based on pdi_needs_namespace.
5120 Remove call to cp_check_possible_namespace_symbols and associated
5122 (guess_structure_name): Do not inspect child subprogram DIEs.
5123 (dwarf2_fullname): Update comments.
5124 Use die_needs_namespace to assist in computing the name.
5125 (read_func_scope): Use dwarf2_name to get the DIE's name.
5126 Use dwarf2_physname to get the "linkage name" of the DIE.
5127 (dwarf2_add_member_field): Use dwarf2_physname instead of
5128 dwarf2_linkage_name.
5129 (read_structure_type): For structs and classes, set TYPE_NAME, too.
5130 (determine_class): Remove.
5131 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
5133 (new_symbol): Unconditionally call dwarf2_name.
5134 Compute the "linkage name" using dwarf2_physname.
5135 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
5136 When determining to scan for anonymous C++ namespaces, ignore
5138 (dwarf2_physname): New function.
5139 (dwarf2_full_name): Move content to new function and call
5141 (dwarf2_compute_name): "New" function.
5142 (_initialize_dwarf2_read): Initialize die_list.
5143 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
5145 (gnu_v3_print_method_ptr): Use the physname for virtual methods
5146 without a demangled name.
5147 Print out type information for non-virtual methods.
5148 * linespec.c (decode_line_1): Force ANY string using "::" (or
5149 "." for java) to use decode_compound, and clean up any stray quoting.
5150 If we found a file symtab, re-evaluate whether the remainder is_quoted.
5151 (decode_compound): Stop consuming at an open parenthesis.
5152 Keep template parameters.
5153 Keep any overload information.
5154 Keep keywords like "const".
5155 Remove paren_pointer.
5156 Move is_quoted check from set_flags to here.
5157 Remove #if 0 code from 2000. Ten years is long enough.
5158 (find_method): Before comparing symbol names, canonicalize the string
5160 If a specific overload is requested, find it. Otherwise throw an error.
5161 (find_method_overload_end): New function.
5162 (set_flags): Remove.
5163 (decode_compound): Assume that parentheses are matched.
5165 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
5167 * linespec.c (decode_line_1): Keep important keywords like
5168 "const" and "volatile".
5169 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
5170 * typeprint.h (c_type_print_args): Add declaration.
5171 * ui-file.c (do_ui_file_obsavestring): New function.
5172 (ui_file_obsavestring): New function.
5173 * ui-file.h (ui_file_obsavestring): Add declaration.
5174 * valops.c (find_overload_match): Resolve the object to
5176 If the object is a data member, search the object for the member
5177 and return with staticp set.
5178 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
5179 Do not attempt to extract a function name from non-function types.
5180 If the extracted function name and the original name are the same,
5181 we don't have a C++ method.
5183 From Jan Kratochvil <jan.kratochvil@redhat.com>:
5184 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
5186 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
5187 and arguments from symbol lookups.
5188 * ax-gdb.c (gen_expr): Likewise.
5189 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
5190 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
5191 lookup_possible_namespace_symbol): Likewise.
5192 * cp-support.c (read_in_psymtabs): Likewise.
5193 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
5194 * language.h (la_lookup_symbol_nonlocal): Likewise.
5195 * scm-valprint.c (scm_inferior_print): Likewise.
5196 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
5197 * solib-svr.c (elf_lookup_lib): Likewise.
5198 * solib.c (show_auto_solib_add): Likewise.
5199 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
5200 * symmisc.c (maintenance_check_symtabs): Likewise.
5201 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
5202 lookup_symbol_aux_local, lookup_symbol_aux_block,
5203 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
5204 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
5205 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
5206 basic_lookup_transparent_type, find_main_psymtab,
5207 lookup_block_symbol): Likewise.
5208 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
5209 lookup_symbol_global, lookup_symbol_aux_block,
5210 lookup_symbol_partial_symbol, lookup_block_symbol,
5211 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
5213 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
5215 * python/python-internal.h: Include symtab.h.
5217 2010-03-09 Joel Brobecker <brobecker@adacore.com>
5218 Pierre Muller <muller@ics.u-strasbg.fr>
5220 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
5221 * p-valprint.c (pascal_val_print): Remove undeed block and fix
5224 2010-03-08 Tom Tromey <tromey@redhat.com>
5226 * breakpoint.c (breakpoint_1): Add "QUIT".
5228 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
5229 Pedro Alves <pedro@codesourcery.com>
5231 * solib.c (solib_find): Replace extension if
5232 solib_symbols_extension is set in the target gdbarch.
5233 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5234 solib_symbols_extension to "sym".
5235 * gdbarch.sh (solib_symbols_extension): New variable.
5236 (pstring): New function.
5237 * gdbarch.h, gdbarch.c: Regenerate.
5239 2010-03-08 Tom Tromey <tromey@redhat.com>
5243 * utils.c: Include main.h.
5244 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
5245 (defaulted_query): Use default answer if `batch_flag'.
5246 * main.h (batch_flag): Declare.
5247 * main.c (batch_flag): New global.
5248 (captured_main): Remove 'batch'. Update.
5250 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5252 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
5255 * remote-mips.c (rockhopper_ops): New target_ops struct.
5256 (MON_ROCKHOPPER): New mips_monitor_type.
5257 (read_hex_value): New function.
5258 (mips_request): Send 8-byte values with a 'T' packet. Read the
5259 packet argument as a string and use read_hex_value to parse it.
5260 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
5261 (rockhopper_open): New function.
5262 (mips_wait): Read the PC, FP and SP fields as strings. Use
5263 read_hex_value to parse them and mips_set_register to commit them.
5264 (mips_set_register): New function.
5265 (mips_fetch_registers): Do not cast register value to "unsigned"
5266 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
5267 (mips_store_registers): Use a 'T' packet to set registers when
5268 using MON_ROCKHOPPER.
5269 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
5270 and expect the total to be printed before the entry address.
5271 (_initialize_remote_mips): Initialize and add rockhopper_ops.
5273 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5275 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
5276 Change return value to int. Store value fetched in location
5277 addressed by `val'. Use function's return value as success
5278 or failure indicator. Adjust all callers.
5280 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
5282 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
5284 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5285 Hui Zhu <teawater@gmail.com>
5287 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
5288 tmp_to_stopped_data_address.
5289 (record_open): Reset tmp_to_stopped_by_watchpoint and
5290 tmp_to_stopped_data_address.
5291 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
5292 to_stopped_data_address.
5294 2010-03-08 Hui Zhu <teawater@gmail.com>
5296 * i386-tdep.c (i386_process_record): Initialize regnum.
5298 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5300 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
5301 Do not warn on ".gnu.liblist" and ".gnu.conflict".
5303 2010-03-08 Joel Brobecker <brobecker@adacore.com>
5305 Memory error when reading wrong core file.
5306 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
5307 errors while reading the inferior memory, and return zero if
5308 an exception was raised.
5310 2010-03-07 Michael Snyder <msnyder@vmware.com>
5312 * record.c (record_restore): Rename tmpu8 to rectype.
5314 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
5315 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
5317 (i386_record_push): Rename local tmpulongest to addr.
5319 (i386_process_record): Rename local tmpulongest to addr.
5321 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
5324 Rename local variable tmpu8 to opcode8 and regnum.
5326 2010-03-07 Joel Brobecker <brobecker@adacore.com>
5328 * remote.c (remote_get_ada_task_ptid): New function.
5329 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
5331 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
5333 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
5334 block. Define helper macros to reduce ifdefs in code.
5335 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
5336 size. Call unadorned GetModuleFileNameEx rather than
5337 GetModuleFileNameEx*.
5338 (windows_make_so): Use __PMAX to denote maximum buffer size and
5339 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
5341 (get_image_name): Use __PMAX to denote maximum buffer size.
5342 (handle_load_dll): Likewise.
5343 (windows_pid_to_exec_file): Likewise.
5344 (windows_create_inferior): Add many accommodations for older Cygwin and
5346 (bad_GetModuleFileNameExW): Control inclusion of this function based on
5347 __USEWIDE conditional.
5348 (bad_GetModuleFileNameExA): Likewise.
5349 (_initialize_loadable): Just use real function names without the dyn_
5350 part since they are defined earlier.
5352 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
5353 Tom Tromey <tromey@redhat.com>
5355 * utils.c (host_char_to_target): Add 'gdbarch' argument.
5356 (parse_escape): Likewise.
5357 * python/py-utils.c (unicode_to_target_string): Update.
5358 (unicode_to_target_python_string): Update.
5359 (target_string_to_unicode): Update.
5360 * printcmd.c (printf_command): Update.
5361 * p-exp.y (yylex): Update.
5362 * objc-exp.y (yylex): Update.
5363 * mi/mi-parse.c: Include charset.h.
5364 (mi_parse_escape): New function.
5365 (mi_parse_argv): Use it.
5366 * jv-exp.y (yylex): Update.
5367 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
5369 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
5370 * gdbarch.sh (auto_charset, auto_wide_charset): New.
5371 * gdbarch.c: Rebuild.
5372 * gdbarch.h: Rebuild.
5373 * defs.h (parse_escape): Update.
5374 * cli/cli-setshow.c: Include arch-utils.h.
5375 (do_setshow_command): Update.
5376 * cli/cli-cmds.c (echo_command): Update.
5377 * charset.h (target_charset, target_wide_charset): Update.
5378 * charset.c: Include arch-utils.h.
5379 (target_charset_name): Default to "auto".
5380 (target_wide_charset_name): Likewise.
5381 (show_target_charset_name): Handle "auto".
5382 (show_target_wide_charset_name): Likewise.
5383 (be_le_arch): New global.
5384 (set_be_le_names): Add 'gdbarch' argument.
5385 (validate): Likewise. Don't call set_be_le_names.
5386 (set_charset_sfunc, set_host_charset_sfunc)
5387 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
5389 (target_charset): Add 'gdbarch' argument.
5390 (target_wide_charset): Likewise. Remove 'byte_order' argument.
5391 (auto_target_charset_name): New global.
5392 (default_auto_charset, default_auto_wide_charset): New functions.
5393 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
5394 for target charsets. Copy result of nl_langinfo. Use GetACP if
5396 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
5397 remove 'byte_order' argument. Update.
5398 (classify_type): Likewise.
5399 (c_emit_char): Update.
5400 (c_printchar): Update.
5401 (c_printstr): Update.
5402 (c_get_string): Update.
5403 (evaluate_subexp_c): Update.
5404 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
5406 * python/python.c (gdbpy_target_charset): New function.
5407 (gdbpy_target_wide_charset): Likewise.
5408 (GdbMethods): Update.
5411 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5413 * symfile.c (build_section_addr_info_from_objfile): Do not mask
5414 off high address bits.
5416 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5418 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
5419 address as UnsignedLongLong, not LongLong.
5421 2010-03-05 Kevin Buettner <kevinb@redhat.com>
5422 Pedro Alves <pedro@codesourcery.com>
5424 * remote-mips.c (gdbthread.h): Include.
5425 (remote_mips_ptid): Declare.
5426 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
5427 (common_open): Set inferior_ptid, add it as an inferior, and
5428 as a thread too. Delete FIXME comment regarding start_remote().
5429 (mips_close): Invoke generic_mourn_inferior().
5430 (mips_kill): Make sure that target_mourn_inferior is invoked.
5431 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
5432 it's now invoked from mips_close().
5433 (mips_load): Don't null out inferior_ptid. Don't call
5434 clear_symtab_users().
5435 (mips_thread_alive, mips_pid_to_str): New functions.
5436 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
5437 to_thread_alive and to_pid_to_str operations.
5439 2010-03-04 Tom Tromey <tromey@redhat.com>
5441 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
5442 in DWARF 3 and later.
5443 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
5445 2010-03-04 Keith Seitz <keiths@redhat.com>
5447 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
5448 If the filename portion of the linespec was quoted, recheck the
5449 remainder for additional quoting.
5450 (locate_first_half): Skip over completer chars, too.
5452 2010-03-04 Tom Tromey <tromey@redhat.com>
5454 * printcmd.c (printf_command): Pass dummy argument to
5457 2010-03-04 Doug Evans <dje@google.com>
5459 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
5462 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
5464 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5466 * breakpoint.c (update_watchpoint): Create a sentinel location if
5467 the software watchpoint isn't watching any memory.
5468 (breakpoint_address_bits): Skip dummy software watchpoint locations.
5470 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5472 * utils.c (fputs_maybe_filtered): Check if there's already a top
5473 level interpreter before dereferencing it. If there isn't one,
5474 don't paginate either.
5476 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5478 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
5479 the state right when single stepping.
5480 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
5481 Get the next PC along with the instruction state.
5482 (thumb_get_next_pc): Remove.
5483 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
5485 2010-03-04 Hui Zhu <teawater@gmail.com>
5487 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
5489 2010-03-03 Pedro Alves <pedro@codesourcery.com>
5491 * utils.c (fputs_maybe_filtered): Always disable pagination if the
5492 top level interpreter is MI.
5494 2010-03-03 Stan Shebs <stan@codesourcery.com>
5496 * remote.c (remote_download_tracepoint): Iterate over locations.
5497 * tracepoint.c (validate_actionline): Ditto.
5498 (encode_actions): Add location argument.
5499 (trace_dump_command): Check all locations to see if stepping
5502 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
5503 Eli Zaretskii <eliz@gnu.org>
5505 * NEWS: Add X86 general purpose registers section.
5507 2010-03-03 Tom Tromey <tromey@redhat.com>
5510 * varobj.c (install_new_value): Handle case where new print_value
5513 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
5516 * printcmd.c (printf_command): Print end of format string using
5519 2010-03-02 Tom Tromey <tromey@redhat.com>
5521 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
5522 * defs.h (read_command_lines_1): Add missing 'void'.
5523 * cli/cli-script.c (recurse_read_control_structure): Add missing
5525 (read_next_line): Likewise.
5526 (read_command_lines_1): Likewise.
5528 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5530 * spu-tdep.c (spu_analyze_prologue): Track instruction to
5531 store backchain as part of prologue.
5533 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
5535 * progspace.c (update_address_spaces): Update inferior address spaces
5538 2010-03-02 Doug Evans <dje@google.com>
5540 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
5541 lowpc,highpc args to addrmap_set_empty.
5543 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
5545 * amd64-tdep.c (amd64_byte_names): New.
5546 (amd64_word_names): Likewise.
5547 (amd64_dword_names): Likewise.
5548 (amd64_pseudo_register_name): Likewise.
5549 (amd64_pseudo_register_read): Likewise.
5550 (amd64_pseudo_register_write): Likewise.
5551 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
5552 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
5553 set_gdbarch_pseudo_register_write and
5554 set_tdesc_pseudo_register_name. Don't call
5555 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
5557 * i386-tdep.c (i386_num_mmx_regs): Removed.
5558 (i386_num_pseudo_regs): Likewise.
5559 (i386_byte_names): New.
5560 (i386_word_names): Likewise.
5561 (i386_byte_regnum_p): Likewise.
5562 (i386_word_regnum_p): Likewise.
5563 (i386_mmx_regnum_p): Updated.
5564 (i386_pseudo_register_name): Make it global. Handle byte and
5565 word pseudo-registers.
5566 (i386_pseudo_register_read): Likewise.
5567 (i386_pseudo_register_write): Likewise.
5568 (i386_pseudo_register_type): Handle byte, word and dword
5570 (i386_register_reggroup_p): Don't include pseudo
5571 registers, except for MXX, in any register groups. Don't
5572 include pseudo byte, word, dword registers in general_reggroup.
5573 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
5574 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
5575 pseudo-registers after word pseudo-registers. Call
5576 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
5578 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
5579 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
5581 (i386_byte_regnum_p): New.
5582 (i386_word_regnum_p): Likewise.
5583 (i386_dword_regnum_p): Likewise.
5584 (i386_pseudo_register_name): Likewise.
5585 (i386_pseudo_register_read): Likewise.
5586 (i386_pseudo_register_write): Likewise.
5588 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5590 * target-descriptions.c (tdesc_type): Remove
5591 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5592 (tdesc_predefined_types): Likewise.
5593 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
5594 if flag name is empty.
5595 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
5597 * features/i386/32bit-core.xml: Define i386_eflags.
5598 * features/i386/64bit-core.xml: Likewise.
5600 * features/i386/32bit-sse.xml: Define i386_mxcsr.
5601 * features/i386/64bit-sse.xml: Likewise.
5603 * features/i386/amd64-linux.c: Regenerated.
5604 * features/i386/amd64.c: Likewise.
5605 * features/i386/i386-linux.c: Likewise.
5606 * features/i386/i386.c: Likewise.
5608 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
5610 * gdbtypes.c (append_composite_type_field_raw): New.
5611 (append_composite_type_field_aligned): Use the new function.
5612 * gdbtypes.h (append_composite_type_field_raw): Declare.
5613 * target-descriptions.c (struct tdesc_type_field): Add start and end.
5614 (struct tdesc_type_flag): New type.
5615 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
5616 kind. Add size to u.u. Add u.f for flags.
5617 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
5618 (tdesc_free_type): Likewise.
5619 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
5620 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
5621 (tdesc_add_bitfield, tdesc_add_flag): New.
5622 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
5623 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
5624 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
5625 current_type. Add current_type_size and current_type_is_flags.
5626 (tdesc_start_union): Clear the new fields.
5627 (tdesc_start_struct, tdesc_start_flags): New.
5628 (tdesc_start_field): Handle struct fields, including bitfields.
5629 (field_attributes): Make type optional. Add start and end.
5630 (union_children): Rename to struct_union_children.
5631 (union_attributes): Rename to struct_union_attributes. Add optional
5633 (flags_attributes): New.
5634 (feature_children): Add struct and flags.
5635 * features/gdb-target.dtd: Add flags and struct to features.
5636 Make field type optional. Add field start and end.
5638 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5640 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
5641 (amd64_linux_read_description): Likewise.
5642 (_initialize_amd64_linux_nat): Set to_read_description to
5643 amd64_linux_read_description.
5645 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
5646 (amd64_linux_register_name): Removed.
5647 (amd64_linux_register_type): Likewise.
5648 (amd64_linux_core_read_description): New.
5649 (amd64_linux_init_abi): Set target description to
5650 tdesc_amd64_linux if needed. Support orig_rax in target
5651 description. Don't call set_gdbarch_register_name nor
5652 set_gdbarch_register_type. Call
5653 set_gdbarch_core_read_description.
5654 (_initialize_amd64_linux_tdep): Call
5655 initialize_tdesc_amd64_linux.
5657 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
5659 * amd64-tdep.c: Include "features/i386/amd64.c".
5660 (amd64_register_names): Removed.
5661 (amd64_register_name): Likewise.
5662 (amd64_register_type): Likewise.
5663 (amd64_init_abi): Set num_core_regs and register_names. Set
5664 target description to tdesc_amd64 if needed. Don't call
5665 set_gdbarch_register_name nor set_gdbarch_register_type.
5666 (_initialize_amd64_tdep): New.
5668 * i386-linux-nat.c (i386_linux_read_description): New.
5669 (_initialize_i386_linux_nat): Set to_read_description to
5670 i386_linux_read_description.
5672 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
5673 (i386_linux_register_name): Removed.
5674 (i386_linux_core_read_description): New.
5675 (i386_linux_read_description): Likewise.
5676 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
5677 Set target description to tdesc_i386_linux if needed. Support
5678 orig_eax. Set register_reggroup_p. Call
5679 set_gdbarch_core_read_description.
5680 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
5682 * i386-linux-tdep.h (tdesc_i386_linux): New.
5684 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
5687 * i386-tdep.c: Include "features/i386/i386.c".
5688 (i386_register_names): Make it const.
5689 (i386_mmx_names): Likewise.
5690 (i386_num_register_names): Removed.
5691 (i386_register_name): Likewise.
5692 (i386_eflags_type): Likewise.
5693 (i386_mxcsr_type): Likewise.
5694 (i386_sse_type): Likewise.
5695 (i386_register_type): Likewise.
5696 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
5697 (i386_pseudo_register_name): New.
5698 (i386_pseudo_register_type): Likewise.
5699 (i386_mmx_type): Make it static.
5700 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
5701 I387_NUM_REGS. Set num_core_regs and register_names. Don't
5702 call set_gdbarch_register_name nor set_gdbarch_register_type.
5703 Set register_reggroup_p. Set target description to tdesc_i386
5704 if needed. Call set_tdesc_pseudo_register_type,
5705 set_tdesc_pseudo_register_name and tdesc_use_registers.
5706 (_initialize_i386_tdep): Call initialize_tdesc_i386.
5707 initialize_tdesc_x86_64.
5709 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
5710 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
5711 register_names, tdesc and register_reggroup_p.
5712 (I386_NUM_FREGS): Removed.
5713 (i386_eflags_type): Likewise.
5714 (i386_mxcsr_type): Likewise.
5715 (i386_mmx_type): Likewise.
5716 (i386_sse_type): Likewise.
5717 (i386_register_name): Likewise.
5718 (i386_regnum): Add I386_MXCSR_REGNUM.
5719 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
5721 * i387-tdep.h (I387_NUM_REGS): New.
5723 * regformats/i386/i386-linux.dat: Generated.
5724 * regformats/i386/i386.dat: Likewise.
5725 * regformats/i386/amd64-linux.dat: Likewise.
5726 * regformats/i386/amd64.dat: Likewise.
5728 * regformats/reg-i386-linux.dat: Removed.
5729 * regformats/reg-i386.dat: Likewise.
5730 * regformats/reg-x86-64-linux.dat: Likewise.
5731 * regformats/reg-x86-64.dat: Likewise.
5733 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
5735 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
5736 cygwin_conv_path API rather than the deprecated
5737 cygwin_conv_to_full_posix_path.
5739 (GetModuleFileNameExA): Undefine for Cygwin.
5740 (GetModuleFileNameExW): Define for Cygwin.
5741 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
5742 Call GetModuleFileNameExW and convert path to POSIX using
5744 (windows_make_so): Always define p. Drop unused variable m.
5745 Don't use Win32 functions to check file existance, rather use
5746 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
5747 Use canonicalize_file_name to get full path.
5748 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
5749 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
5750 use correct target buffer size in call to WideCharToMultiByte.
5751 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
5752 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
5753 (windows_create_inferior): Convert all paths and arguments to wchar_t
5754 and use CreateProcessW on Cygwin.
5755 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
5756 (bad_GetModuleFileNameExA): Undefine for Cygwin.
5757 (bad_GetModuleFileNameExW): Define for Cygwin.
5758 (_initialize_loadable): Load GetModuleFileNameExW into
5759 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
5761 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
5764 * python/py-frame.c (frapy_read_var): Add block argument and logic
5765 to cope with user provided blocks.
5767 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5769 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
5772 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
5774 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
5775 (COMMON_OBS): ... to here since it's used unconditionally.
5776 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
5779 2010-02-26 David Daney <ddaney@caviumnetworks.com>
5781 * mips-linux-tdep.c: Update struct sigframe comments.
5782 (SIGFRAME_CODE_OFFSET): Delete macro.
5783 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
5785 (mips_linux_n32n64_sigframe_init): Same.
5787 2010-02-26 Kevin Buettner <kevinb@redhat.com>
5789 * remote-mips.c (mips_load): Don't use pseudo-register when
5790 invalidating regcache.
5792 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5794 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
5796 2010-02-26 Pedro Alves <pedro@codesourcery.com>
5798 * NEWS: Add "New targets" section, and mention ARM Symbian
5801 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
5803 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
5804 add ADDR_SIZE member.
5805 (allocate_piece_closure): Update.
5806 (copy_pieced_value_closure): Likewise.
5807 (dwarf2_evaluate_loc_desc): Likewise.
5808 (read_pieced_value): Use DWARF address size instead of
5809 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
5811 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
5812 Tom Tromey <tromey@redhat.com>
5814 * python/py-type.c (typy_lookup_typename): Add in block argument.
5815 If provided restrict lookup to specified blocks.
5816 (gdbpy_lookup_type): Likewise.
5817 (typy_lookup_type): Likewise.
5819 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5824 * arm-symbian-tdep.c: New.
5825 * configure.tgt (arm*-*-symbianelf*): New target.
5826 (*-*-symbianelf*): New OS.
5827 * osabi.c (gdb_osabi_names): Add Symbian.
5828 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
5829 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
5830 (ALLDEPFILES): Add arm-symbian-tdep.c.
5832 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5834 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
5836 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5838 * mi/mi-main.c (mi_cmd_execute): Fix typo.
5840 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
5841 Tom Tromey <tromey@redhat.com>
5842 Thiago Jung Bauermann <bauerman@br.ibm.com>
5844 * python/python.c (_initialize_python): Call
5845 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
5846 gdbpy_initialize_blocks.
5847 * python/python-internal.h: Declare struct symbol, block and
5848 symtab_and_line. Declare block_object_type and
5850 (gdbpy_lookup_symbol gdbpy_block_for_pc)
5851 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
5852 (symbol_to_symbol_object, block_to_block_object)
5853 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
5854 (gdbpy_initialize_blocks ): Declare.
5855 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
5856 (frapy_select): Add methods.
5857 (frapy_read_var): Add symbol branch.
5858 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
5860 (SUBDIR_PYTHON_SRCS): Likewise.
5861 (py-symbol.o): New rule.
5862 (py-symtab.o): Likewise.
5863 (py-block.o): Likewise.
5864 * python/py-symbol.c: New file.
5865 * python/py-symtab.c: Likewise.
5866 * python/py-block.c: Likewise.
5868 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5872 * inferior.h (prepare_for_detach): Declare.
5873 (struct inferior) <detaching>: New field.
5874 * infrun.c (prepare_for_detach): New.
5875 (handle_inferior_event) <random signal>: Don't stop if detaching.
5876 * target.c (target_detach): Call prepare_for_detach.
5878 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5880 Per-process displaced stepping queue.
5882 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
5883 (displaced_step_gdbarch, displaced_step_closure,
5884 (displaced_step_original, displaced_step_copy): Move globals to
5886 (struct displaced_step_inferior_state): ... new structure.
5887 (displaced_step_inferior_states): New global.
5888 (get_displaced_stepping_state, add_displaced_stepping_state)
5889 (remove_displaced_stepping_state, infrun_inferior_exit): New
5891 (displaced_step_clear): Add displaced_step_inferior_state
5892 parameter, and adjust to handle it.
5893 (displaced_step_clear_cleanup): Parameter is now a
5894 displaced_step_inferior_state. Adjust.
5895 (displaced_step_prepare): Adjust.
5896 (displaced_step_fixup, displaced_step_fixup)
5897 (infrun_thread_ptid_changed, resume): Adjust.
5898 (init_wait_for_inferior): Don't call displaced_step_clear.
5899 (infrun_thread_stop_requested): Rewrite.
5900 (_initialize_infrun): Install infrun_inferior_exit as
5901 inferior_exit observer.
5903 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5905 * inferior.h (ptid_match): Declare.
5906 * infrun.c (ptid_match): New.
5907 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
5908 (handle_notification): Add debug output.
5909 * linux-nat.c (ptid_match): Delete.
5911 2010-02-24 David S. Miller <davem@davemloft.net>
5913 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
5914 * syscalls/sparc-linux.xml: New.
5915 * syscalls/sparc64-linux.xml: New.
5916 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
5917 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
5918 (sparc32_linux_get_syscall_number): New function.
5919 (sparc32_linux_init_abi): Set syscall XML file name and hook up
5920 syscall number fetcher.
5921 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
5922 (sparc64_linux_get_syscall_number): New function.
5923 (sparc64_linux_init_abi): Set syscall XML file name and hook up
5924 syscall number fetcher.
5926 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5930 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
5931 * inferior.c (add_inferior_silent): Notify inferior_added
5933 (delete_inferior_1): Notify inferior_removed observer.
5934 (exit_inferior_1): Pass inferior, not pid, to observer.
5935 (inferior_appeared): Likewise.
5936 (add_inferior_with_spaces): New.
5937 (add_inferior_command): Use the above.
5938 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
5941 * inflow.c (inflow_inferior_exit): Likewise.
5942 * jit.c (jit_inferior_exit_hook): Likewise.
5944 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
5946 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5947 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
5948 (report_initial_inferior): New.
5949 (mi_inferior_removed): Register the above. Make sure
5950 inferior_added observer is called on the first inferior.
5951 (mi_new_thread, mi_thread_exit): Thread group is now identified by
5952 inferior number, not pid.
5953 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
5955 * mi/mi-main.c (current_context): New.
5956 (proceed_thread_callback): Use typed closure.
5957 Proceed everything if pid is 0. Most implementation split into
5958 (proceed_thread): ... this.
5959 (run_one_inferior): New.
5960 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
5961 Adjust for multiexec behaviour.
5962 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5963 (mi_cmd_execute): Handle the 'thread-group' option here.
5964 Do some extra checks.
5965 * mi-parse.c (mi_parse): Handle the --all and --thread-group
5967 * mi-parse.h (struct mi_parse): New fields all and thread_group.
5969 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5971 Make -exec-run a proper MI commands.
5973 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
5974 * mi/mi-cmds.c (mi_cmds): Adjust.
5975 * mi/mi-main.c (mi_cmd_exec_run): New.
5977 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5978 Stan Shebs <stan@codesourcery.com>
5980 * tracepoint.h (set_traceframe_number)
5981 (cleanup_restore_current_traceframe): Declare.
5982 * tracepoint.c (set_traceframe_number): New.
5983 (struct current_traceframe_cleanup): New.
5984 (do_restore_current_traceframe_cleanup)
5985 (restore_current_traceframe_cleanup_dtor)
5986 (make_cleanup_restore_current_traceframe): New.
5987 * infrun.c: Include tracepoint.h.
5988 (fetch_inferior_event): Switch out and in of tfind mode.
5990 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5992 * breakpoint.c (breakpoint_init_inferior): Also delete
5993 bp_shlib_event breakpoints.
5994 * solib-frv.c (enable_break): Remove call to
5995 remove_solib_event_breakpoints.
5996 * solib-svr4.c (enable_break): Ditto.
5997 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
5998 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
5999 * solib-som.c (som_solib_create_inferior_hook): Ditto.
6000 * solib-spu.c (spu_enable_break): Ditto.
6002 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6004 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
6006 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6008 * varobj.c (varobj_update): Avoid non-constants in initializers.
6010 2010-02-23 Tom Tromey <tromey@redhat.com>
6012 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
6013 handle big-endian values.
6014 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
6016 2010-02-22 Pedro Alves <pedro@codesourcery.com>
6021 * breakpoint.c (insert_bp_location): If inserting the read
6022 watchpoint failed, fallback to an access watchpoint.
6023 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
6024 if the value changed, if not watching the same memory for writes.
6025 (watchpoint_locations_match): Add comment.
6026 (update_global_location_list): Copy the location's watchpoint type.
6027 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
6028 handle read watchpoints here.
6029 (i386_insert_watchpoint): Read watchpoints aren't supported.
6030 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
6032 * target.h (target_insert_watchpoint): Update description.
6034 2010-02-19 Tom Tromey <tromey@redhat.com>
6036 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
6037 * m2-typeprint.c (m2_print_type): Update.
6038 * gdbtypes.c (recursive_dump_type): Update.
6039 (copy_type_recursive): Update.
6040 * c-typeprint.c (c_type_print_varspec_prefix): Update.
6041 (c_type_print_base): Update.
6042 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
6044 (struct cplus_struct_type) <ntemplate_args>: Remove.
6045 <struct template_arg>: Remove.
6046 <is_dynamic>: Move earlier.
6047 (TYPE_TEMPLATE_ARGS): Remove.
6048 (TYPE_NTEMPLATE_ARGS): Remove.
6049 (TYPE_TEMPLATE_ARG): Remove.
6051 2010-02-19 Tom Tromey <tromey@redhat.com>
6053 PR c++/8693, PR c++/9496:
6054 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
6055 * c-exp.y (lex_one_token): Rename from yylex. Don't call
6056 write_dollar_variable. Don't try to classify NAME tokens.
6057 (token_and_value): New type.
6058 (token_fifo, popping, name_obstack): New globals.
6059 (classify_name): New function.
6060 (classify_inner_name): Likewise.
6062 (VARIABLE): Now has type sval.
6063 (exp : VARIABLE): Call write_dollar_variable.
6064 (qualified_name): Use TYPENAME, not typebase. Add production for
6065 multiple "::" instances.
6066 (variable): Use name_not_typename.
6067 (qualified_type): Remove.
6070 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6072 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
6073 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
6074 found by bfd_get_section_by_name.
6075 * symfile.h (struct section_addr_info) <sectindex>: New comment.
6077 2010-02-19 Joel Brobecker <brobecker@adacore.com>
6079 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
6080 7.0 section" into "Changes in 7.1".
6082 2010-02-19 Joel Brobecker <brobecker@adacore.com>
6084 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
6085 * version.in: Bump version to 7.1.50.20100219-cvs.
6087 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
6089 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
6090 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
6092 2010-02-17 Tom Tromey <tromey@redhat.com>
6094 * NEWS: Add Python API Improvements section.
6096 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
6098 * NEWS: Correct typo.
6100 2010-02-17 Tom Tromey <tromey@redhat.com>
6102 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
6104 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6106 * symfile.c (build_section_addr_info_from_objfile): Include sections
6107 only if they are SEC_ALLOC or SEC_LOAD.
6109 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
6112 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
6113 of ULONGEST for address size.
6115 2010-02-17 Tom Tromey <tromey@redhat.com>
6117 * NEWS: Add C++ improvements section.
6119 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
6121 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
6122 PyThreadState_Swap): Avoid "statement with no effect" warning.
6124 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6126 * solib-svr4.c (enable_break <target_auxv_search>): New variable
6127 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
6129 2010-02-17 Tristan Gingold <gingold@adacore.com>
6130 Petr Hluzin <petr.hluzin@gmail.com>
6132 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
6133 gdb_assert. Fix info->size for SIG prologue.
6135 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6137 * infcmd.c (show_inferior_tty_command): Check for NULL.
6138 Correct output message.
6140 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6142 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
6143 FUNCTION contains parentheses. Improve removal of a trailing
6146 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6148 * gcore.c (do_bfd_delete_cleanup): New function.
6149 (gcore_command): Use it. Discard the cleanup after success.
6150 (gcore_copy_callback): Delete dead code.
6152 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6154 * symfile.c (addr_info_make_relative): Always use
6155 find_lowest_section.
6157 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
6159 * NEWS: Added entry for namespace fixes.
6161 2010-02-15 Tom Tromey <tromey@redhat.com>
6163 * dwarf2read.c (guess_structure_name): Allocate name on the
6166 2010-02-15 Tom Tromey <tromey@redhat.com>
6168 * c-typeprint.c (c_type_print_base): Reverse order of test.
6170 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6172 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
6173 initialize it from ELF BFD. Extend the prelink condition by it.
6175 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6177 * defs.h (parse_pid_to_attach): New.
6178 * utils.c (parse_pid_to_attach): New.
6179 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
6180 * gnu-nat.c (gnu_attach): Likewise.
6181 * nto-procfs.c (procfs_attach): Likewise.
6182 * procfs.c (procfs_attach): Likewise.
6183 * windows-nat.c (windows_attach): Likewise.
6184 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
6185 * inf-ttrace.c (inf_ttrace_attach): Likewise.
6186 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
6189 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
6191 * MAINTAINERS: Add myself for write after approval privileges.
6193 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6195 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
6198 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6200 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
6201 only if INFO_VERBOSE.
6203 2010-02-12 Tomas Holmberg <th@virtutech.com>
6205 * mi/mi-main.c: Added the --reverse flag to the following MI
6206 commands: exec-continue, exec-finish, exec-next, exec-step,
6207 exec-next-instruction, exec-step-instruction. This is to
6208 support reverse execution over the MI interface to gdb.
6210 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6212 * tracepoint.c (_initialize_tracepoint): Specify that the address
6213 range of `tfind outsize' is exclusive, and that the address range
6214 of `tfind range' is inclusive, in the commands' help strings.
6216 2010-02-12 Joel Brobecker <brobecker@adacore.com>
6218 Spurious "dll not found" error messages on x64-windows.
6219 * windows-nat.c: Add include of complaints.h.
6220 (handle_unload_dll): Change dll-not-found error into a complaint.
6222 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6224 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
6225 bp_tracepoint and bp_fast_tracepoint, not
6226 bp_loc_software_breakpoint.
6227 (update_global_location_list): Tracepoints are never duplicates of
6230 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6232 * breakpoint.c (break_command_really): Change return type to int.
6233 Return false if no breakpoint was created, true otherwise.
6234 (trace_command): Don't set the tracepoint count if no tracepoint
6236 (ftrace_command): Ditto.
6237 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
6238 created in the breakpoints table.
6240 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6241 Ulrich Weigand <uweigand@de.ibm.com>
6243 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
6245 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6247 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
6248 the offset value isn't of integral type.
6250 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6252 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
6255 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6257 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
6258 non-subscriptable types.
6259 * valarith.c (binop_types_user_defined_p): New, abstracted out
6261 (binop_user_defined_p): ... this.
6262 * value.h (binop_types_user_defined_p): Declare.
6264 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6266 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
6267 Merge uploaded TSVs before merging uploaded tracepoints.
6269 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6271 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
6273 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
6275 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
6276 whitespace character after a dot in comment.
6277 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
6279 (list_args_or_locals): For the 'all' (that is
6280 -stack-list-variables) case, always output list of tuples.
6281 Output 'arg' field if variable is argument.
6283 2010-02-10 Tom Tromey <tromey@redhat.com>
6285 * parser-defs.h (parser_debug): Declare.
6286 * parse.c (_initialize_parse): Install "debug parser" set/show
6288 (parser_debug): New global.
6289 (show_parserdebug): New function.
6290 * c-exp.y (c_parse): Set yydebug.
6292 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
6294 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
6295 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6296 (tdesc_predefined_types): Add i387_ext, i386_eflags and
6298 (tdesc_find_type): New.
6299 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
6300 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6302 * target-descriptions.h (tdesc_find_type): New.
6304 2010-02-10 Michael Snyder <msnyder@vmware.com>
6306 * gdb-gdb.py: Comment fix.
6308 2010-02-09 Tristan Gingold <gingold@adacore.com>
6310 * machoread.c (macho_symfile_relocate): New function.
6311 (macho_sym_fns): Use macho_symfile_relocate instead of
6312 default_symfile_relocate.
6313 (macho_oso_data): New type.
6314 (current_oso): New variable.
6315 (macho_add_oso_symfile): Do not compute section_addr_info, but
6316 instead set vma of sections.
6317 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
6318 Set and clear current_oso.
6320 2010-02-09 Joel Brobecker <brobecker@adacore.com>
6322 Wrong type description for tagged type parameter.
6323 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
6324 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
6325 reference to a tagged type.
6327 2010-02-09 Tristan Gingold <gingold@adacore.com>
6329 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
6330 brothers of the parent.
6332 2010-02-08 Tom Tromey <tromey@redhat.com>
6336 * valops.c (search_struct_field): Make 'name' const.
6337 (search_struct_method): Likewise.
6338 (find_method_list): Make 'method' const.
6339 (value_struct_elt): Make 'name' and 'err' const.
6340 (value_find_oload_method_list): Make 'method' const.
6341 (find_overload_match): Make 'name' const.
6342 * eval.c (evaluate_subexp_standard): New locals function,
6344 <OP_FUNCALL>: Handle OP_SCOPE specially.
6346 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6348 * infrun.c (handle_inferior_event): Do not look up regcache
6349 for exited processes.
6351 2010-02-08 Chris Moller <moller@mollerware.com>
6354 * valarith.c (value_ptrdiff): Added a test for a zero type length,
6355 warn if found, and assume length = 1.
6357 2010-02-08 Chris Moller <cmoller@redhat.com>
6360 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6361 (cp_print_static_field) Fix use of obstacks.
6363 2010-02-08 Pedro Alves <pedro@codesourcery.com>
6365 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
6366 resumed LWPs as resumed.
6367 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
6368 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
6369 of throwing an internal error. If an LWP of a process we're not
6370 waiting for reports a signal, don't force collecting a SIGSTOP,
6371 and if it was breakpoint hit in non-stop mode, cancel it. Don't
6372 go through all LWPs cancelling breakpoints in non-stop mode.
6373 (resume_stopped_resumed_lwps): New.
6374 (linux_nat_wait): Use it.
6376 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
6378 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
6379 i386/amd64 and i386/amd64-linux.
6380 (i386/i386-expedite): New.
6381 (i386/i386-linux-expedite): Likewise.
6382 (i386/amd64-expedite):Likewise.
6383 (i386/amd64-linux-expedite): Likewise.
6384 ($(outdir)/i386/i386-linux.dat): Likewise.
6385 ($(outdir)/i386/amd64.dat): Likewise.
6386 ($(outdir)/i386/amd64-linux.dat): Likewise.
6388 * features/i386/32bit-core.xml: New.
6389 * features/i386/32bit-linux.xml: Likewise.
6390 * features/i386/32bit-sse.xml: Likewise.
6391 * features/i386/64bit-core.xml: Likewise.
6392 * features/i386/64bit-linux.xml: Likewise.
6393 * features/i386/64bit-sse.xml: Likewise.
6394 * features/i386/i386-linux.xml: Likewise.
6395 * features/i386/i386.xml: Likewise.
6396 * features/i386/amd64-linux.xml: Likewise.
6397 * features/i386/amd64.xml: Likewise.
6398 * features/i386/i386-linux.c: Likewise.
6399 * features/i386/i386.c: Likewise.
6400 * features/i386/amd64-linux.c: Likewise.
6401 * features/i386/amd64.c: Likewise.
6403 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
6406 * cp-support.h: Added char* alias element to using_direct data
6408 (cp_add_using): Added char* alias argument.
6409 (cp_add_using_directive): Ditto.
6410 * cp-namespace.c: Updated with the above changes.
6411 (cp_lookup_symbol_imports): Check for aliases.
6412 * dwarf2read.c (read_import_statement): Figure out local alias
6413 for the import and pass it on to cp_add_using.
6414 (read_namespace): Pass alias argument to cp_add_using.
6416 2010-02-05 Hui Zhu <teawater@gmail.com>
6418 * defs.h (gdb_bfd_errmsg): New extern.
6419 * exec.c (exec_file_attach): Change bfd_errmsg to
6421 * utils.c (AMBIGUOUS_MESS1): New macro.
6422 (AMBIGUOUS_MESS2): New macro.
6423 (gdb_bfd_errmsg): New function.
6425 2010-02-04 Doug Evans <dje@google.com>
6427 * solib-svr4.c (enable_break): Add comment.
6429 2010-02-04 Anthony Green <green@moxielogic.com>
6431 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
6434 2010-02-04 Tom Tromey <tromey@redhat.com>
6436 * valops.c (search_struct_field): Account for
6437 value_embedded_offset. Fix check for virtual base past the end of
6438 the object. Use value_copy when making a slice of the value.
6440 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6443 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
6444 only if gdb_stdout is a tty.
6446 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6448 * target-descriptions.c: Include "osabi.h".
6449 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
6452 2010-02-04 Tristan Gingold <gingold@adacore.com>
6454 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
6455 (macho_symtab_read): Adjust calls to macho_add_oso.
6456 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
6457 (macho_symfile_read): Adjust call to macho_oso_symfile.
6458 (macho_new_init): Move this function after declarations.
6459 (macho_symfile_init): Ditto.
6460 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
6461 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
6463 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
6465 Include MI command in remotelog.
6467 * mi/mi-main.c (mi_execute_command): Call target_log_command.
6469 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6471 * remote.c (remote_state): Remove gdbarch.
6472 (init_remote_state): Don't set gdbarch.
6473 (remote_query_supported): Pass target_gdbarch instead of
6474 rs->gdbarch to gdbarch_qsupported.
6476 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6478 * gdbarch.sh: Add qsupported.
6480 * gdbarch.c: Regenerated.
6481 * gdbarch.h: Likewise.
6483 * remote.c (remote_state): Add gdbarch.
6484 (init_remote_state): Set gdbarch.
6485 (remote_query_supported): Support gdbarch_qsupported.
6487 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
6489 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
6490 __FreeBSD_kernel_version.
6492 2010-02-03 Tristan Gingold <gingold@adacore.com>
6494 * symfile.h (struct sym_fns): Add sym_relocate field.
6495 (default_symfile_relocate): New prototype.
6496 (symfile_relocate_debug_section): First argument is now an objfile.
6497 * symfile.c (default_symfile_relocate): Rename from
6498 symfile_relocate_debug_section, first argument is now an objfile.
6499 (symfile_relocate_debug_section): New function.
6500 * coffread.c (coff_sym_fns): Set sym_relocate field.
6501 * somread.c (som_sym_fns): Ditto.
6502 * mipsread.c (ecoff_sym_fns): Ditto.
6503 * machoread.c (macho_sym_fns): Ditto.
6504 * elfread.c (elf_sym_fns): Ditto.
6505 * dwarf2read.c (dwarf2_read_section): Ditto.
6506 * xcoffread.c (xcoff_sym_fns): Ditto.
6507 * dbxread.c (aout_sym_fns): Ditto.
6508 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
6509 (elfstab_build_psymtabs): Ditto.
6511 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6513 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
6515 2010-02-02 Tom Tromey <tromey@redhat.com>
6517 * valops.c (value_cast_structs): Try downcasting using the RTTI
6520 2010-02-02 Tom Tromey <tromey@redhat.com>
6522 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
6523 (gnuv2_baseclass_offset): Now static.
6524 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
6525 * gnu-v2-abi.h: Remove.
6527 2010-02-02 Tom Tromey <tromey@redhat.com>
6529 * m2-typeprint.c (m2_record_fields): Don't use
6531 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
6532 (struct main_type) <flag_declared_class>: New field.
6533 (struct cplus_struct_type) <declared_type>: Remove.
6534 <ntemplate_args>: Move earlier.
6535 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
6536 (DECLARED_TYPE_TEMPLATE): Remove.
6537 (TYPE_DECLARED_TYPE): Remove.
6538 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
6539 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
6540 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
6543 2010-02-02 Tom Tromey <tromey@redhat.com>
6545 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
6546 * valops.c (search_struct_field): Compute nbases after calling
6548 (check_field): Call CHECK_TYPEDEF.
6549 * cp-valprint.c (cp_print_value): Pass correct address to
6550 baseclass_offset. Fix check for virtual base past the end of the
6551 object. Don't offset address passed to cp_print_value_fields or
6552 apply_val_pretty_printer.
6553 (cp_print_value_fields): Fix call to val_print.
6554 (cp_print_value_fields_rtti): New function.
6555 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
6556 * p-valprint.c (pascal_object_print_value_fields): Fix call to
6558 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
6560 * language.h (struct language_defn) <la_val_print>: Document.
6561 * c-lang.h (cp_print_value_fields_rtti): Declare.
6563 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6566 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6567 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
6568 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6570 2010-02-01 Michael Matz <matz@suse.de>
6571 Daniel Jacobowitz <dan@codesourcery.com>
6573 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
6574 functions use a frame pointer.
6576 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6578 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
6579 by a conditional setting DYN_ADDR. Use DYN_ADDR.
6580 * config/djgpp/fnchange.lst: Add translations for
6581 symbol-without-target_section.exp and symbol-without-target_section.c.
6583 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6585 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
6586 (remote_breakpoint_for_pc): Correct invalid_p check.
6587 * gdbarch.c: Regenerated.
6589 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6591 * arm-tdep.c (arm_find_mapping_symbol): New function, from
6593 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
6594 (extend_buffer_earlier): New function.
6595 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
6596 (arm_adjust_breakpoint_address): New function.
6597 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
6599 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6601 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
6602 (arm_linux_thumb2_le_breakpoint): New constants.
6603 (arm_linux_init_abi): Set thumb2_breakpoint and
6604 thumb2_breakpoint_size.
6605 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
6606 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
6607 Implement support for single stepping through IT blocks if
6608 a 32-bit Thumb breakpoint instruction is available.
6609 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
6610 is available, use it when needed.
6611 (arm_remote_breakpoint_from_pc): New function.
6612 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
6613 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
6614 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
6616 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6618 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
6619 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
6620 * gdbarch.c, gdbarch.h: Regenerated.
6621 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
6622 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
6623 gdbarch_remote_breakpoint_from_pc.
6625 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6627 * infrun.c (prepare_to_proceed): Handle other signals which might
6629 (handle_inferior_event): Move the check for unusual breakpoint
6632 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
6634 amd64 - function returning record with field straddling 2 registers.
6635 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
6636 a record of length <= 16 in which a field straddles the two
6639 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6641 Implement return values on amd64-windows.
6642 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
6643 (amd64_windows_return_value): New function.
6644 (amd64_windows_init_abi): Call set_gdbarch_return_value with
6645 amd64_windows_return_value.
6647 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6649 amd64-windows: 32 bytes allocated on stack by caller for integer
6650 parameter registers.
6651 * i386-tdep.h (struct gdbarch_tdep): Add new field
6652 integer_param_regs_saved_in_caller_frame.
6653 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6654 tdep->integer_param_regs_saved_in_caller_frame to 1.
6655 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
6656 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
6658 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6660 amd64-windows: memory args passed by pointer during function calls.
6661 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
6662 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
6663 where tdep->memory_args_by_pointer is non-zero.
6664 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6665 tdep->memory_args_by_pointer to 1.
6667 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6669 amd64-windows: Integer parameters in function calls.
6670 * i386-tdep.h (enum amd64_reg_class): New, moved here from
6672 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
6673 call_dummy_integer_regs, and classify.
6674 * amd64-tdep.h (amd64_classify): Add declaration.
6675 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
6676 (amd64_reg_class): Delete, moved to i386-tdep.h.
6677 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
6678 Replace call to amd64_classify by call to tdep->classify.
6679 (amd64_push_arguments): Get the list of registers to use for
6680 passing integer parameters from the gdbarch tdep structure,
6681 rather than using a hardcoded one. Replace calls to amd64_classify
6682 by calls to tdep->classify.
6683 (amd64_push_dummy_call): Get the register number used for
6684 the "hidden" argument from tdep->call_dummy_integer_regs.
6685 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
6686 and tdep->call_dummy_integer_regs. Set tdep->classify.
6687 * amd64-windows-tdep.c: Add include of gdbtypes.h.
6688 (amd64_windows_dummy_call_integer_regs): New static global.
6689 (amd64_windows_classify): New function.
6690 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
6691 tdep->call_dummy_integer_regs and tdep->classify.
6693 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6695 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
6696 for the new regcache. All callers updated.
6697 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
6698 (get_thread_arch_regcache): Do not set aspace here.
6699 * regcache.h (regcache_xmalloc): Update declaration.
6701 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
6702 regcache_xmalloc updated.
6704 2010-01-28 Joel Brobecker <brobecker@adacore.com>
6706 Another -Wunused-function error in procfs.c (sparc-solaris)
6707 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
6708 Only define if SYS_syssgi is defined.
6709 (remove_dbx_link_breakpoint): Delete declaration. Move up.
6710 (dbx_link_addr, insert_dbx_link_bpt_in_file)
6711 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
6714 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
6716 * windows-nat.c (windows_initialization_done): New variable.
6717 (get_windows_debug_event): Issue error when process dies before
6718 completely initializing.
6719 (do_initial_windows_stuff): Set flag to indicate when we are done with
6720 the initial steps of attaching to the child.
6722 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6724 * symtab.h (struct symbol <symtab>): New comment on NULL values.
6726 2010-01-27 Doug Evans <dje@google.com>
6728 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
6730 * breakpoint.c (bpstat_stop_status): Delete useless code.
6732 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6734 * printcmd.c (display_uses_solib_p): Remove variable section. Access
6735 objfile via SYMBOL_SYMTAB.
6737 2010-01-26 Tom Tromey <tromey@redhat.com>
6740 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
6741 coerce_array on result.
6743 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6745 * cp-namespace.c (cp_lookup_symbol_namespace): Added
6746 search_parent argument.
6747 (cp_add_using): Initialize 'searched' field.
6748 (reset_directive_searched): New function.
6749 * cp-support.h: Add 'searched' field to using_direct struct.
6750 (cp_lookup_symbol_imports): Ditto.
6751 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
6752 Perform recursive search.
6753 Implement non parent search.
6754 * valops.c (value_maybe_namespace_elt): Updated.
6756 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6759 * dwarf2read.c (read_lexical_block_scope): Create blocks for
6760 scopes which contain using directives even if they contain no
6762 * symtab.c (lookup_symbol_aux): Pass lowest level block to
6763 la_lookup_symbol_nonlocal.
6764 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
6765 cp_lookup_symbol_namespace.
6766 (cp_lookup_symbol_namespace): Perform an import lookup at every
6768 (cp_lookup_symbol_imports): New function.
6769 (cp_lookup_symbol_in_namespace): New function.
6771 2010-01-25 Tom Tromey <tromey@redhat.com>
6774 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
6777 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6779 * configure.ac: Only use host_os part when disabling TUI on osf.
6780 Use test to check variables, prefix strings with x.
6781 * configure: Regenerate.
6783 * solib-osf.c (osf_current_sos): Initialize tail.
6785 2010-01-25 gingold <gingold@adacore.com>
6787 * windows-nat.c (windows_continue): Use %x to print thread id.
6788 (get_windows_debug_event): Ditto.
6790 2010-01-22 Tom Tromey <tromey@redhat.com>
6793 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
6794 type and arguments. Use smash_to_methodptr_type.
6795 (read_structure_type): Call quirk_gcc_member_function_pointer
6797 * gdbtypes.h (smash_to_methodptr_type): Declare.
6798 * gdbtypes.c (smash_to_methodptr_type): New function.
6799 (lookup_methodptr_type): Use it.
6801 2010-01-21 Tom Tromey <tromey@redhat.com>
6804 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
6805 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
6806 * glibc-tdep.c (find_minsym_and_objfile): Remove.
6807 (glibc_skip_solib_resolver): Use
6808 lookup_minimal_symbol_and_objfile.
6810 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
6812 * inflow.c (check_syscall): Guard by #if clause for GO32 and
6815 2010-01-20 Tom Tromey <tromey@redhat.com>
6818 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
6819 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
6820 * dwarf2expr.c (new_dwarf_expr_context): Allocate
6821 dwarf_stack_values, not CORE_ADDRs.
6822 (execute_stack_op): Change DW_OP_div and comparison operators to
6823 use signed operands.
6825 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
6827 Per-inferior args and tty and environment.
6829 * infcmd.c (inferior_args): Rename to ...
6830 (inferior_args_scratch): ... this.
6831 (inferior_io_terminal): Rename to ...
6832 (inferior_io_terminal_scratch): ... this.
6833 (inferior_argc, inferior_argv): Remove.
6834 (set_inferior_io_terminal, get_inferior_io_terminal): Store
6835 inside current_inferior().
6836 (set_inferior_tty_command, show_inferior_tty_command): New.
6837 (get_inferior_args, set_inferior_args): Store inside
6839 (notice_args_set): Likewise and rename to...
6840 (set_args_command): ... this.
6841 (set_inferior_args_vector): Likewise.
6842 (notice_args_read): Rename to...
6843 (show_args_command): ...new.
6844 (tty_command): Remove.
6845 (run_command_1): Don't free old args, as they are freed by
6846 set_inferior_arg now.
6847 (run_no_args_command): Likewise.
6848 (inferior_environ): Remove.
6849 (run_command_1): Use environment of the current inferior.
6850 (environment_info, set_environment_command)
6851 (unset_environment_command, path_info, path_command): Likewise.
6852 (_initialize_infcmd): Adjust for function and variable renames.
6853 Do not init inferior_environ.
6854 * inferior.h (set_inferior_arg): Adjust prototype.
6855 (struct inferior): New fields args, argc, argv, terminal, environment.
6856 (inferior_environ): Remove declaration.
6857 * inferior.c (free_inferior): Free new fields.
6858 (add_inferior_silent): Initialize 'environment' field.
6859 * main.c (captured_main): Set arguments only after the initial
6860 inferior has been created. Set set_inferior_io_terminal,
6862 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
6864 (_initialize_mi_cmd_env): Adjust for disappearance of global
6866 * solib.c (solib_find): Use environment of the current inferior.
6868 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6870 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
6872 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
6874 2010-01-20 Joel Brobecker <brobecker@adacore.com>
6876 Get rid of ada-lang.c:function_name_from_pc.
6877 * ada-lang.c: Add "stack.h" #include.
6878 (function_name_from_pc): Delete.
6879 (is_known_support_routine): Replace call to function_name_from_pc
6880 by call to find_frame_funname.
6881 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6883 2010-01-19 Tom Tromey <tromey@redhat.com>
6886 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
6889 2010-01-19 Tom Tromey <tromey@redhat.com>
6891 * top.c (stop_sig, float_handler, do_nothing): Remove.
6893 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6895 * breakpoint.c (watchpoint_check): Check the call
6896 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
6898 * config/djgpp/fnchange.lst: Add translations for
6899 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
6900 watchpoint-cond-gone-stripped.c.
6902 2010-01-19 Tom Tromey <tromey@redhat.com>
6905 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
6906 into parent scope, and enumerator into grandparent scope.
6908 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6910 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
6912 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6914 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
6915 i[34567]86-*-solaris2.1[0-9]*.
6916 * configure.tgt: Likewise.
6918 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6920 * NEWS: Document the source command enhancement allowing it
6921 to load Python scripts. Document the "set/show script-extension"
6924 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6926 Add -Wunused-function to compile flags.
6927 * configure.ac: Add -Wunused-function to build_warnings.
6928 * configure: Regenerate.
6930 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6932 "delete" ada-lex.c:input function, not used.
6933 * ada-lex.l: #define YY_NO_INPUT.
6935 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6937 Delete free_named_symtabs and associated cleanup.
6938 * symfile.h (free_named_symtabs): Delete declaration.
6939 * symfile.c: Remove some commented out code (clear_symtab_users_once).
6940 (cashier_psymtab): Comment function out.
6942 (free_named_symtabs): Delete.
6943 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
6944 * dbxread.c (end_psymtab): Likewise.
6945 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
6946 * exec.c (exec_close_1): Ditto.
6947 * xcoffread.c (xcoff_end_psymtab): Likewise.
6949 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6951 * stack.c (print_block_frame_labels): Comment function out.
6953 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6955 Delete unused or undefined functions.
6956 * breakpoint.c (ep_parse_optional_filename): Delete.
6957 * dcache.c (dcache_write_line): Remove declaration.
6958 * infrun.c (build_infrun): Remove declaration.
6959 * tracepoint.c (tracepoint_save_command): Remove declaration.
6960 * linux-nat.c (init_lwp_list): Delete. No longer used.
6961 * event-loop.c (check_async_signal_handlers): Delete declaration.
6962 * infrun.c (init_execution_control_state): Delete.
6963 (proceed): Update comment to avoid mentioning
6964 init_execution_control_state.
6965 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
6966 * ada-lang.c (ada_to_static_fixed_value): Delete.
6967 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
6968 * cp-namespace.c (cp_copy_usings): Delete.
6969 * xml-syscall.c (xml_number_of_syscalls): Delete.
6970 * progspace.c (find_program_space_by_num): Delete.
6971 * inflow.c (handle_sigio): Delete declaration.
6972 * hppa-tdep.c (hppa_alignof): Delete.
6973 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
6974 (mipsnbsd_core_osabi_sniffer): Delete.
6976 2010-01-18 Tom Tromey <tromey@redhat.com>
6979 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
6980 (CONST_CAST): New tokens.
6981 (exp): Add new productions.
6982 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
6984 (is_cast_operator): New function.
6985 (yylex): Handle cast operators specially.
6986 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
6987 UNOP_REINTERPRET_CAST>: New cases.
6988 * expprint.c (print_subexp_standard): Likewise.
6989 (op_name_standard): Likewise.
6990 (dump_subexp_body_standard): Likewise.
6991 * parse.c (operator_length_standard): Likewise.
6992 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
6993 UNOP_REINTERPRET_CAST.
6994 * gdbtypes.c (class_types_same_p): New function.
6995 (is_ancestor): Use it.
6996 (is_public_ancestor): New function.
6997 (is_unique_ancestor_worker): Likewise.
6998 (is_unique_ancestor): Likewise.
6999 * gdbtypes.h (class_types_same_p, is_public_ancestor)
7000 (is_unique_ancestor): Declare.
7001 * valops.c (value_reinterpret_cast): New function.
7002 (dynamic_cast_check_1): Likewise.
7003 (dynamic_cast_check_2): Likewise.
7004 (value_dynamic_cast): Likewise.
7005 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
7007 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7009 Fix build failure when building without Python support.
7010 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
7013 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7015 Use XVS field type instead of doing a parallel lookup.
7016 * ada-lang.c (ada_get_base_type): Follow the XVS field type
7017 if it is a reference type instead of doing a type lookup using
7020 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7022 Trust PAD types instead of using PAD___XVS.
7023 * ada-lang.c (trust_pad_over_xvs): New static variable.
7024 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
7025 parallel XVS type, follow the XVS type instead of the PAD type.
7026 (unwrap_value): Make sure that there is no parallel XVE type
7027 before returning the value as is.
7028 (set_ada_list, show_ada_list): New static variables.
7029 (set_ada_command, show_ada_command): New functions.
7030 (_initialize_ada_language): Add new "set/show ada" prefix commands.
7031 Add new "set/show ada trust-PAD-over-XVS" setting.
7033 2010-01-18 Tom Tromey <tromey@redhat.com>
7034 Thiago Jung Bauermann <bauerman@br.ibm.com>
7036 Allow "source" to load python scripts.
7037 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
7038 * python/python.c (source_python_script): New function.
7039 * python/python.h (source_python_script): Add declaration.
7040 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
7041 (script_ext_off, script_ext_soft, script_ext_strict)
7042 (script_ext_enums, script_ext_mode): New static constants.
7043 (show_script_ext_mode, find_and_open_script): New functions.
7044 (source_script): Enhance to handle Python scripts.
7045 (init_cli_cmds): Add set/show script-extension commands.
7047 2010-01-16 Stan Shebs <stan@codesourcery.com>
7049 * tracepoint.h (struct trace_status): Use unsigned long long
7051 * tracepoint.c (trace_status_command): Fix printf directive.
7052 (trace_save_command): Check fwrite returns, fix printf directive.
7053 (trace_filename): New global.
7054 (tfile_open): Set it, check read returns.
7055 (tfile_close): Free trace_filename.
7056 (tfile_get_traceframe_address): Check read returns.
7057 (tfile_trace_find): Ditto.
7058 (tfile_fetch_registers): Ditto.
7059 (tfile_xfer_partial): Ditto.
7060 (tfile_get_trace_state_variable_value): Ditto.
7062 2010-01-15 Stan Shebs <stan@codesourcery.com>
7064 Add trace file support.
7065 * tracepoint.h (enum trace_stop_reason): New enum.
7066 (struct trace_status): New struct.
7067 (parse_trace_status): Declare.
7068 (struct uploaded_tp): Move here from remote.c,
7069 add fields for actions.
7070 (struct uploaded_tsv): New struct.
7071 * tracepoint.c (tfile_ops): New target vector.
7072 (trace_fd): New global.
7073 (tfile_open): New function.
7074 (tfile_close): New function.
7075 (tfile_files_info): New function.
7076 (tfile_get_trace_status): New function.
7077 (tfile_get_traceframe_address): New function.
7078 (tfile_trace_find): New function.
7079 (tfile_fetch_registers): New function.
7080 (tfile_xfer_partial): New function.
7081 (tfile_get_trace_state_variable_value): New function.
7082 (init_tfile_ops): New function.
7083 (_initialize_tracepoint): Call it, add tfile target.
7084 (trace_status): New global.
7085 (current_trace_status): New function.
7086 (trace_running_p): Remove, change all users to get from
7087 current_trace_status()->running.
7088 (get_trace_status): Remove.
7089 (trace_status_command): Call target_get_trace_status directly,
7090 report more detail including tracing stop reasons.
7091 (trace_find_command): Always allow tfind on a file.
7092 (trace_find_pc_command): Ditto.
7093 (trace_find_tracepoint_command): Ditto.
7094 (trace_find_line_command): Ditto.
7095 (trace_find_range_command): Ditto.
7096 (trace_find_outside_command): Ditto.
7097 (trace_frames_offset, cur_offset): Declare as off_t.
7098 (trace_regblock_size): Rename from reg_size, update users.
7099 (parse_trace_status): New function.
7100 (tfile_interp_line): New function.
7101 (disconnect_or_stop_tracing): Ensure current trace
7102 status before asking what to do.
7103 (stop_reason_names): New global.
7104 (trace_save_command): New command.
7105 (get_uploaded_tp): Move here from remote.c.
7106 (find_matching_tracepoint): Ditto.
7107 (merge_uploaded_tracepoints): New function.
7108 (parse_trace_status): Use stop_reason_names.
7109 (_initialize_tracepoint): Define tsave command.
7110 * target.h (target_ops): New fields to_save_trace_data,
7111 to_upload_tracepoints, to_upload_trace_state_variables,
7112 to_get_raw_trace_data, change to_get_trace_status
7113 to take a pointer to a status struct.
7114 (target_save_trace_data): New macro.
7115 (target_upload_tracepoints): New macro.
7116 (target_upload_trace_state_variables): New macro.
7117 (target_get_raw_trace_data): New macro.
7118 * target.c (update_current_target): Add new methods, change
7119 signature of to_get_trace_status.
7120 * remote.c (hex2bin): Make globally visible.
7122 (remote_download_trace_state_variable): Download name also.
7123 (remote_get_trace_status): Update parameter, use
7125 (remote_save_trace_data): New function.
7126 (remote_upload_tracepoints): New function.
7127 (remote_upload_trace_state_variables): New function.
7128 (remote_get_raw_trace_data): New function.
7129 (remote_start_remote): Use them.
7130 (_initialize_remote_ops): Add operations.
7131 * ax-gdb.c: Include breakpoint.h.
7132 * breakpoint.c (create_tracepoint_from_upload): Use
7133 break_command_really, return tracepoint, warn about unimplemented
7135 * NEWS: Mention trace file addition.
7137 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7139 Fix compilation warning on gcc-3.4.
7140 * exec.c (print_section_info): Move the `displacement' variable
7141 initialization to its declaration.
7143 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7145 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
7148 2010-01-15 Eric Botcazou <botcazou@adacore.com>
7150 "info tasks" broken by typedefs in ATCB type definitions.
7151 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
7152 ada_check_typedef before retrieving the length of the type for
7155 2010-01-15 Joel Brobecker <brobecker@adacore.com>
7157 Do not use name-based lookup for unconstrained packed arrays.
7158 * ada-lang.c (find_parallel_type_by_descriptive_type):
7159 Limit the fallback to name-based lookups to the case where
7160 the type is a constrained packed array.
7162 2010-01-15 Joel Brobecker <brobecker@adacore.com>
7164 Enhance gdb-gdb.py to handle main_type.type_specific.
7165 * gdb-gdb.py: Print the type-specific part of struct main_type.
7167 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7169 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
7170 * configure: Regenerate.
7171 * config.in: Regenerate.
7172 * utils.c: Include sys/resource.h.
7173 (dump_core, can_dump_core): New.
7174 (internal_vproblem): Update the comment. Check can_dump_core while
7175 setting dump_core_p. Replace two abort calls by dump_core calls.
7177 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7178 Eli Zaretskii <eliz@gnu.org>
7180 * NEWS: Document the PIE support.
7182 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7184 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
7185 (check_is_pie_binary, _initialize_linux_tdep): Remove.
7187 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7189 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
7190 Replace exec_entry_point call by bfd_get_start_address.
7192 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7194 Support Valgrind attachments broken by the PIE support.
7195 * auxv.c: Include gdbcore.h.
7196 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
7197 parameters ops, object and annex. Remove their assertions.
7198 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
7199 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
7200 (memory_xfer_auxv): ... here.
7201 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
7203 * procfs.c (procfs_xfer_partial): Likewise.
7204 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
7205 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
7206 (svr4_solib_create_inferior_hook): Conditionalize the
7207 svr4_relocate_main_executable call.
7209 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7211 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
7212 target_section. Find SECT in current_target_sections, gdb_assert it.
7213 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
7215 * symtab.c (lookup_objfile_from_block): Return the binary file instead
7216 of separate debug info file.
7218 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7220 Support PIEs with no symfile_objfile.
7221 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
7222 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
7224 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7226 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
7228 (svr4_static_exec_displacement): ... a new function.
7229 (svr4_exec_displacement): New function.
7230 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
7231 new_offsets using alloca now. Remove variable old_chain and changed.
7232 Call objfile_relocate unconditionally now.
7234 2010-01-14 Doug Evans <dje@google.com>
7236 * gdbtypes.c (arch_flags_type): Fix comment.
7237 * gdbtypes.h (arch_composite_type): Fix comment.
7239 2009-01-14 Tristan Gingold <gingold@adacore.com>
7241 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
7242 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
7243 to symbol_file_add_from_bfd. Add OSO as separate objfile.
7244 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
7245 macho_add_oso_symfile.
7246 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
7248 2010-01-14 Joel Brobecker <brobecker@adacore.com>
7250 Tru64: Dead threads are never deleted.
7251 * dec-thread.c (dec_thread_ptid_is_alive): New function.
7252 (dec_thread_count_gdb_threads): Fix counter increment.
7253 (dec_thread_add_gdb_thread): Fix *listp increment.
7254 (resync_thread_list): Fix bug in deletion of dead threads that
7255 caused all threads to be deleted, instead of just the dead ones.
7257 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
7261 * python/python-internal.h: Add lazy_string_object_type
7263 (create_lazy_string_object, gdbpy_initialize_lazy_string)
7264 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
7265 * python/py-value.c (valpy_lazy_string): New function.
7266 (convert_value_from_python): Add lazy string conversion.
7267 * python/py-prettyprint.c (pretty_print_one_value): Check if
7268 return is also a lazy string.
7269 (print_string_repr): Add lazy string printing branch.
7270 (print_children): Likewise.
7271 * python/py-lazy-string.c: New file. Implement lazy strings.
7272 * python/python.c (_initialize_python): Call
7273 gdbpy_initialize_lazy_string.
7274 * varobj.c (value_get_print_value): Add lazy string printing
7275 branch. Account for encoding.
7276 * c-lang.c (c_printstr): Account for new encoding argument. If
7277 encoding is NULL, find encoding suited for type, otherwise use
7279 * language.h (language_defn): Add encoding argument.
7280 (LA_PRINT_STRING): Likewise.
7281 * language.c (unk_lang_printstr): Update to reflect new encoding
7282 argument to language_defn.
7283 * ada-lang.h (ada_printstr): Likewise.
7284 * c-lang.h (c_printstr): Likewise.
7285 * p-lang.h (pascal_printstr);
7286 * f-lang.c (f_printstr): Likewise.
7287 * m2-lang.c (m2_printstr): Likewise.
7288 * objc-lang.c (objc_printstr): Likewise.
7289 * p-lang.c (pascal_printstr): Likewise.
7290 * scm-lang.c (scm_printstr): Likewise.
7291 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
7293 * ada-valprint.c (ada_printstr): Likewise.
7294 * f-valprint.c (f_val_print): Likewise
7295 * m2-valprint.c (m2_val_print): Likewise.
7296 * p-valprint.c (pascal_val_print): Likewise.
7297 * expprint.c (print_subexp_standard): Likewise.
7298 * valprint.c (val_print_string): Likewise.
7299 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
7300 (SUBDIR_PYTHON_SRCS): Likewise.
7301 (py-lazy-string.o): New rule.
7303 2010-01-13 Doug Evans <dje@google.com>
7305 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
7306 uninitialized" warning from gcc on local `tree'.
7308 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
7310 Implement core awareness.
7312 * bcache.c (compare_ints): Remove
7313 (print_percentage): Use compare_positive_ints.
7314 * defs.h (compare_positive_ints): Declare.
7315 * linux-nat.h (struct lin_lwp): New field core.
7316 (linux_nat_core_of_thread_1): Declare.
7317 * linux-nat.c (add_lwp): Init the 'core' field.
7318 (linux_nat_wait_1): Record the core.
7319 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
7320 (linux_nat_add_target): Register the above.
7321 * linux-thread-db.c (update_thread_core): New.
7322 (thread_db_find_new_threads): Update core information for
7324 * remote.c (struct private_thread_info): New.
7325 (free_private_thread_info, demand_private_info): New.
7326 (PACKET_qXfer_threads, use_osdata_threads): New.
7327 (struct thread_item, threads_parsing_context
7328 (start_thread, end_thread, thread_attributes)
7329 (thread_children, threads_children, threads_elements): New.
7330 (remote_threads_info): Try qXfer:threads before anything
7332 (remote_protocol_packets): Register qXfer:threads.
7333 (remote_open_1): Init use_osdata_threads.
7334 (struct stop_reply): New field 'core'.
7335 (remote_parse_stop_reply): Parse core number.
7336 (process_stop_reply): Record core number.
7337 (remote_xfer_partial): Handle qXfer:threads.
7338 (remote_core_of_thread): New.
7339 (init_remote_ops): Register remote_core_of_thread.
7340 (_initialize_remote): Register qXfer:read.
7341 * target.c (target_core_of_thread): New
7342 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
7343 (struct target_ops): New field to_core_of_threads.
7344 (target_core_of_thread): Declare.
7345 * gdbthread.h (struct thread_info): New field private_dtor.
7346 * thread.c (print_thread_info): Report the core.
7347 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
7348 * utils.c (compare_positive_ints): New.
7349 * features/threads.dtd: New.
7350 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
7351 * mi/mi-main.c (struct collect_cores_data, collect_cores)
7352 (do_nothing, free_vector_of_osdata_items)
7353 (splay_tree_int_comparator, free_splay_tree): New.
7354 (print_one_inferior_data): Implemented printing of selected
7355 inferiors. Collect and print cores.
7356 (output_cores): New.
7357 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
7358 thread groups together with --available.
7360 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7362 * configure: Regenerate (for _STRUCTURED_PROC).
7364 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7366 Delete dead function.
7367 * ada-lang.c (extract_string): Delete. No longer used.
7369 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7371 Fix -Wunused warning in dec-thread.c.
7372 * dec-thread.c (dec_thread_count_gdb_threads)
7373 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
7375 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7377 * ada-valprint.c (ada_print_floating): Remove trailing space.
7379 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7381 Add support for DW_AT_GNAT_descriptive_type.
7382 * gdbtypes.h (enum type_specific_kind): New enum.
7383 (struct main_type) [type_specific_field]: New component.
7384 [type_specific]: Add new component "gnat_stuff".
7385 (struct gnat_aux_type): New type.
7386 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
7387 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
7388 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
7389 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
7390 (TYPE_SPECIFIC_FIELD): New macros.
7391 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
7392 type does not hold any cplus-specific data.
7393 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
7394 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
7395 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
7396 cplus-specific data.
7397 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
7398 Set new component TYPE_SPECIFIC_FIELD (type).
7399 (gnat_aux_default): New constant.
7400 (allocate_gnat_aux_type): New function.
7401 (init_type): Add initialization the type-specific stuff for
7402 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
7403 (print_gnat_stuff): New function.
7404 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
7405 specific data. Adjust code that prints the contents of the
7406 type-specific union using the TYPE_SPECIFIC_FIELD value.
7407 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
7408 the type cplus stuff for Ada types.
7409 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
7410 Error out if these routines are called with an Ada type.
7411 (read_structure_type, read_array_type, read_subrange_type):
7412 Add call to set_descriptive_type.
7413 (set_die_type): Initialize the gnat-specific data if necessary.
7414 (need_gnat_info, die_descriptive_type, set_descriptive_type):
7416 * ada-lang.c (decode_constrained_packed_array_type): Use
7417 decode_constrained_packed_array_type instead of doing a standard
7418 lookup to locate a parallel type.
7419 (find_parallel_type_by_descriptive_type): New function.
7420 (ada_find_parallel_type_with_name): New function.
7421 (ada_find_parallel_type): Reimplement using
7422 ada_find_parallel_type_with_name.
7423 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
7424 to check if type has a cplus stuff.
7425 * linespec.c (total_number_of_methods): Likewise.
7426 * mdebugread.c (new_type): Likewise.
7428 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7430 * NEWS: Document the 0b binary number prefix parsing.
7432 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7434 * objfiles.c (objfile_relocate1): Change the return type to int.
7435 Describe the new return value. Return non-zero if data changed.
7436 (objfile_relocate): New variable changed. Set it. Call
7437 breakpoint_re_set depending on CHANGED.
7439 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7441 Implement binary numbers parsing.
7442 * c-exp.y (parse_number): New case 'b' and 'B'.
7444 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7445 Tristan Gingold <gingold@adacore.com>
7447 * solib.c (info_sharedlibrary_command): Replace
7448 objfile_has_partial_symbols and objfile_has_full_symbols calls by
7449 objfile_has_symbols.
7451 2010-01-10 Joel Brobecker <brobecker@adacore.com>
7453 * NEWS: Document the improvements made to the mips-irix port.
7455 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7457 Fix the documentation of valprint.c:value_print.
7458 * valprint.c (value_print): Update the function description to
7459 mention that the syntax of the output follows the current_language,
7462 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7464 Fix displacement of separate debug info files.
7465 * objfiles.c (objfile_relocate): Rename to ...
7466 (objfile_relocate1): ... here and make it static. Extend the comment.
7467 (objfile_relocate): New function.
7468 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
7469 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
7470 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
7471 allocated using alloca.
7472 * symfile.c (copy_section_addr_info): Remove.
7473 (build_section_addr_info_from_objfile): Make it global. New variables
7474 addr_bit and mask, use them.
7475 * symfile.h (build_section_addr_info_from_objfile): New prototype.
7476 (copy_section_addr_info): Remove.
7478 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7480 Signal unwinder for mips-irix N32.
7481 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
7483 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
7484 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
7485 (SIGCONTEXT_LO_OFF): New macros.
7486 (mips_irix_n32_tramp_frame_init): New function.
7487 (mips_irix_n32_tramp_frame): New static constant.
7488 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
7490 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7492 Breakpoint in shared library does not work on mips-irix.
7493 * procfs.c: #include "observer.h".
7494 (procfs_inferior_created): New function, moving here the code
7495 which unsets the syssgi syscall-exit notifications.
7496 (procfs_create_inferior): Remove the code which unsets the syssgi
7497 syscall-exit notifications. It is too early to do this here.
7498 (_initialize_procfs): Attach the procfs_inferior_created observer.
7500 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7502 Wrong return convention for arrays (mips-irix).
7503 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
7504 128 bits or smaller are returned the same way as structs
7505 and unions of the the same size.
7507 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7509 Cannot set the PC on mips-irix.
7510 * irix5-nat.c (fill_gregset): Check regno against the raw PC
7511 register number, no the cooked one.
7513 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7515 Error while loading core file on mips-irix.
7516 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
7517 if debugging from a core file.
7519 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7521 GDB hangs when attaching to process on mips-irix.
7522 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
7523 attaching to a process.
7525 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7527 Use the correct breakpoint instruction on mips-irix.
7528 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
7529 containing the correct breakpoint instruction to use on mips-irix.
7530 Use it when the osabi is GDB_OSABI_IRIX.
7532 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7534 -Wunused warning in procfs.c (mips-irix only).
7535 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
7536 throughout instead of using praddset and prdelset respectively.
7538 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7540 GDB crash while stepping into function.
7541 * infrun.c (handle_inferior_event): Refetch the current frame
7542 after handling what.main_action, in case that pointer became
7545 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7547 Fix build failure of solaris-hosted cross debuggers.
7548 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
7550 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
7552 Fix build failure on sparc-solaris.
7553 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
7555 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7557 Move some symfile code into subroutines.
7558 * symfile.h (relative_addr_info_to_section_offsets)
7559 (addr_info_make_relative): New prototypes.
7560 * symfile.c (default_symfile_offsets): Move a part to ...
7561 (relative_addr_info_to_section_offsets): ... this new function.
7562 (default_symfile_offsets): Call it.
7563 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
7565 (addr_info_make_relative): ... this new function.
7567 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7569 Add from_tty to solib_create_inferior_hook.
7570 * infcmd.c (post_create_inferior): Move solib_add after
7571 solib_create_inferior_hook. Pass from_tty to
7572 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
7573 0 from_tty and comment why.
7574 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
7575 * linux-nat.c (linux_child_follow_fork): Likewise.
7576 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
7577 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
7579 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
7580 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
7581 * solib-null.c (null_solib_create_inferior_hook): Likewise.
7582 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
7583 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
7584 * solib-som.c (som_solib_create_inferior_hook): Likewise.
7585 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
7586 Pass it to svr4_so_ops.solib_create_inferior_hook.
7587 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
7589 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
7591 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
7593 * solib-target.c (solib_target_solib_create_inferior_hook): New
7595 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
7596 it to ops->solib_create_inferior_hook.
7597 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
7598 Move solib_add after solib_create_inferior_hook, call it now with
7599 from_tty as 0. New comment there.
7600 * solib.h (solib_create_inferior_hook): New parameter from_tty.
7601 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
7604 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
7607 * infrun.c (handle_inferior_event): Use get_thread_regcache
7608 with events ptid, not get_current_regcache.
7610 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7612 GDB crash with empty executable name (MinGW).
7613 * source.c (openp): Add assert that parameter string is not NULL.
7614 if parameter string is an empty string, then return with a failure
7617 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7619 Get rid of support for VAX Floats.
7620 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7621 (ada_vax_float_print_function): Delete.
7622 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7623 (ada_vax_float_print_function): Delete.
7624 * ada-typeprint.c (print_vax_floating_point_type): Delete.
7625 (ada_print_type): Remove support for VAX floats.
7626 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
7628 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7630 * stabsread.c (read_args): Handle zero arguments.
7632 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7634 Cannot find in-tree libiconv.a after reconfigure.
7635 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
7636 that we can use, then cache the path to this archive.
7637 * configure: Regenerate.
7639 2010-01-07 Stan Shebs <stan@codesourcery.com>
7641 Make tracepoint operations go through target vector.
7642 * target.h (enum trace_find_type): New enum.
7643 (struct target_ops): New fields to_trace_init,
7644 to_download_tracepoint, to_download_trace_state_variable,
7645 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
7646 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
7647 to_set_disconnected_tracing.
7648 (target_trace_init): New macro.
7649 (target_download_tracepoint): New macro.
7650 (target_download_trace_state_variable): New macro.
7651 (target_trace_start): New macro.
7652 (target_trace_set_readonly_regions): New macro.
7653 (target_get_trace_status): New macro.
7654 (target_trace_stop): New macro.
7655 (target_trace_find): New macro.
7656 (target_get_trace_state_variable_value): New macro.
7657 (target_set_disconnected_tracing): New macro.
7658 * target.c (update_current_target): Inherit and set defaults for
7659 tracepoint operations.
7660 * tracepoint.c (default_collect): Make globally visible.
7661 (target_is_remote): Remove, along with all calls.
7662 (tvariables_info): Call target_get_trace_state_variable_value.
7663 (remote_set_transparent_ranges): Remove.
7664 (trace_start_command): Call target_trace_init,
7665 target_download_tracepoint, etc.
7666 (download_tracepoint): Remove.
7667 (trace_stop_command): Simplify.
7668 (stop_tracing): Call target_trace_stop.
7669 (get_trace_status): Call target_get_trace_status.
7670 (trace_status_command): Add case for targets that cannot trace.
7671 (finish_tfind_command): Change to take numerical arguments, call
7673 (trace_find_command): Update call to finish_tfind_command.
7674 (trace_find_pc_command): Ditto.
7675 (trace_find_tracepoint_command): Ditto.
7676 (trace_find_line_command): Ditto.
7677 (trace_find_range_command): Ditto.
7678 (trace_find_outside_command): Ditto.
7679 (set_disconnected_tracing_value): Call
7680 target_set_disconnected_tracing.
7681 * remote.c: Add protocol encoding bits from tracepoint.c.
7682 (trace_error): Move from tracepoint.c.
7683 (remote_get_noisy_reply): Ditto.
7684 (free_actions_list_cleanup_wrapper): Ditto.
7685 (free_actions_list): Ditto.
7686 (remote_trace_init): New function.
7687 (remote_download_tracepoint): New function.
7688 (remote_download_trace_state_variable): New function.
7689 (remote_trace_set_readonly_regions): New function.
7690 (remote_trace_start): New function.
7691 (remote_get_trace_status): New function.
7692 (remote_trace_stop): New function.
7693 (remote_trace_find): New function.
7694 (remote_download_trace_state_variable): New function.
7695 (remote_set_disconnected_tracing): New function.
7696 (init_remote_ops): Add tracepoint operations.
7698 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
7700 2010-01-07 Tristan Gingold <gingold@adacore.com>
7702 * symfile.c (build_section_addr_info_from_objfile): New function.
7703 (symbol_file_add_separate): Don't use offsets from objfile but
7706 2010-01-06 Stan Shebs <stan@codesourcery.com>
7708 Support disconnected tracing.
7709 * infcmd.c (detach_command): Ask whether to stop tracing.
7710 * cli/cli-cmds.c (quit_command): Ditto.
7711 * breakpoint.h (struct breakpoint): New field number_on_target.
7712 * breakpoint.c (create_tracepoint_from_upload): New function.
7713 (get_tracepoint_by_number_on_target): New function.
7714 * remote.c (struct remote): New field disconnected_tracing.
7715 (remote_disconnected_tracing_feature): New function.
7716 (remote_protocol_features): Add DisconnectedTracing.
7717 (struct uploaded_tp): New struct.
7718 (uploaded_tps): New global.
7719 (get_uploaded_tp): New function.
7720 (find_matching_tracepoint): New function.
7721 (remote_get_tracing_state): New function.
7722 (remote_start_remote): Call it.
7723 * tracepoint.c (disconnected_tracing): New global.
7724 (trace_start_command): Initialize number_on_target.
7725 (stop_tracing): New function, split out from...
7726 (trace_stop_command): Call stop_tracing.
7727 (get_trace_status): New function, split out from...
7728 (trace_status_command): Call get_trace_status, add info on
7729 disconnection behavior.
7730 (disconnect_or_stop_tracing): New function.
7731 (finish_tfind_command): Translate from number on target.
7732 (trace_find_tracepoint_command): Translate to number on target.
7733 (send_disconnected_tracing_value): New function.
7734 (set_disconnected_tracing): New function.
7735 (_initialize_tracepoint): Add disconnected-tracing variable.
7736 * NEWS: Mention disconnected tracing.
7738 2010-01-06 Tristan Gingold <gingold@adacore.com>
7740 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
7741 parameter to main_objfile. Iterate on all separate debug objfiles.
7742 * symfile.h (symbol_file_add_separate)
7743 (find_separate_debug_file_by_debuglink): Remove parameter names.
7744 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
7745 (reread_symbols): Use free_objfile_separate_debug.
7746 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
7748 (objfile_separate_debug_iterate, add_separate_debug_objfile)
7749 (free_objfile_separate_debug): New prototypes.
7750 * objfiles.c (objfile_separate_debug_iterate): New function.
7751 (add_separate_debug_objfile, free_objfile_separate_debug): New
7753 (free_objfile): Use free_objfile_separate_debug. Adjust for
7754 multiple separate debug objfile.
7755 (objfile_has_symbols): Adjust comment. Iterate on all separate
7757 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
7759 (lookup_minimal_symbol_text): Ditto.
7760 (lookup_minimal_symbol_by_pc_name): Ditto.
7761 (lookup_minimal_symbol_solib_trampoline): Ditto.
7762 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
7765 2010-01-05 Stan Shebs <stan@codesourcery.com>
7767 Add fast tracepoints.
7768 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
7769 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
7770 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
7771 * breakpoint.c (tracepoint_type): New function.
7772 (ALL_TRACEPOINTS): Use it.
7773 (should_be_inserted): Ditto.
7774 (bpstat_check_location): Ditto.
7775 (print_one_breakpoint_location): Ditto.
7776 (user_settable_breakpoint): Ditto.
7777 (set_breakpoint_location_function): Ditto.
7778 (disable_breakpoints_in_shlibs): Ditto.
7779 (delete_trace_command): Ditto.
7780 (print_it_typical): Add bp_fast_tracepoint case.
7781 (bpstat_what): Ditto.
7782 (print_one_breakpoint_location): Ditto.
7783 (allocate_bp_location): Ditto.
7785 (breakpoint_re_set_one): Ditto.
7786 (disable_command): Ditto.
7787 (enable_command): Ditto.
7788 (check_fast_tracepoint_sals): New function.
7789 (break_command_really): Call it.
7790 (ftrace_command): New function.
7791 (_initialize_breakpoint): Add ftrace command.
7792 * gdbarch.sh (fast_tracepoint_valid_at): New.
7793 * gdbarch.h, gdbarch.c: Regenerate.
7794 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
7795 (i386_gdbarch_init): Use it.
7796 * remote.c (struct remote_state): New field fast_tracepoints.
7797 (PACKET_FastTracepoints): New packet config type.
7798 (remote_fast_tracepoint_feature): New function.
7799 (remote_protocol_features): Add FastTracepoints.
7800 (remote_supports_fast_tracepoints): New function.
7801 (_initialize_remote): Add FastTracepoints.
7802 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
7803 * NEWS: Mention fast tracepoints.
7805 2010-01-06 Joel Brobecker <brobecker@adacore.com>
7807 * gdb-gdb.py: New file.
7809 2010-01-05 Michael Snyder <msnyder@vmware.com>
7811 * infrun.c (handle_inferior_event): Fix typo in comment.
7813 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7815 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
7817 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7819 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7821 (s390-linux32-expedite): Define.
7822 (s390-linux64-expedite): Define.
7823 (s390x-linux64-expedite): Define.
7824 * features/s390-acr.xml: New file.
7825 * features/s390-fpr.xml: New file.
7826 * features/s390-core32.xml: New file.
7827 * features/s390-core64.xml: New file.
7828 * features/s390x-core64.xml: New file.
7829 * features/s390-linux32.xml: New file.
7830 * features/s390-linux64.xml: New file.
7831 * features/s390x-linux64.xml: New file.
7832 * features/s390-linux32.c: New generated file.
7833 * features/s390-linux64.c: New generated file.
7834 * features/s390x-linux64.c: New generated file.
7836 * regformats/s390-linux32.dat: New generated file.
7837 * regformats/s390-linux64.dat: New generated file.
7838 * regformats/s390x-linux64.dat: New generated file.
7839 * regformats/reg-s390.dat: Remove.
7840 * regformats/reg-s390x.dat: Remove.
7842 * s390-nat.c: Include "auxv.h" and <elf.h>.
7843 (HWCAP_S390_HIGH_GPRS): Define if undefined.
7844 (s390_target_wordsize): New function.
7845 (s390_auxv_parse): Likewise.
7846 (s390_get_hwcap): Likewise.
7847 (s390_read_description): Likewise.
7848 (_initialize_s390_nat): Install s390_auxv_parse and
7849 s390_read_description.
7851 * s390-tdep.c: Include "features/s390-linux32.c",
7852 "features/s390-linux64.c", and "features/s390x-linux64.c".
7853 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
7854 (s390_register_call_saved): New function.
7855 (s390_register_name): Remove.
7856 (s390_register_type): Remove.
7857 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
7858 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
7859 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
7860 (s390_pseudo_register_name): New function.
7861 (s390_pseudo_register_type): New function.
7862 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
7863 Handle full GPR pesudos and varying pseudo register numbers.
7864 (s390_pseudo_register_write): Likewise
7865 (s390x_pseudo_register_read): Remove.
7866 (s390x_pseudo_register_write): Likewise.
7867 (s390_register_group): Remove.
7868 (s390_pseudo_register_group): New function.
7869 (s390_regmap_gregset): Add GPR upper halves.
7870 (s390x_regmap_gregset): Likewise.
7871 (s390_regmap_fpregset): Likewise.
7872 (s390_regmap_upper): New global variable.
7873 (s390_upper_regset): New global variable.
7874 (s390_upper_regset_sections): New global variable.
7875 (s390_regset_from_core_section): Handle GPR upper halves.
7876 (s390_core_read_description): New function.
7877 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
7878 register information. Handle varying pseudo register numbers.
7879 (s390_backchain_frame_unwind_cache): Likewise.
7880 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
7881 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
7882 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
7883 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
7884 Handle varying pseudo register numbers.
7885 (s390_unwind_pc): Handle varying pseudo register numbers.
7886 (s390_dwarf2_prev_register): New function.
7887 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
7888 register information. Handle varying pseudo register numbers.
7889 Install s390_dwarf2_prev_register to unwind full GPRs.
7890 (s390_gdbarch_init): Handle target descriptions. Assign varying
7891 pseudo register numbers. Install s390_adjust_frame_regnum.
7892 (_initialize_s390_tdep): Initialize target descriptions.
7894 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
7895 (S390_NUM_REGS): Redefine to include upper half registers.
7896 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
7897 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
7898 (tdesc_s390_linux32): Add declaration.
7899 (tdesc_s390_linux64): Likewise.
7900 (tdesc_s390x_linux64): Likewise.
7902 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7904 * regset.h (struct core_regset_section): Add HUMAN_NAME.
7905 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
7906 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
7907 (ppc_linux_vmx_regset_sections): Likewise.
7908 (ppc_linux_fp_regset_sections): Likewise.
7910 * corelow.c (get_core_register_section): Constify arguments.
7911 (get_core_registers): Use gdbarch_core_regset_sections instead
7912 of hard-coded platform-specific register section names.
7914 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7916 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
7917 a register, assume the least-significant part is used.
7918 (write_pieced_value): Likewise.
7920 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7922 * printcmd.c: Include "arch-utils.h".
7923 (do_one_display): Re-parse expression if current architecture changed.
7925 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7926 Joel Brobecker <brobecker@adacore.com>
7928 * gdbtypes.c (check_typedef): New comment on type length.
7929 * value.c (allocate_value_lazy): Remove the unused atype variable. New
7930 comment on type length.
7931 (value_primitive_field): Keep the original TYPE value, new comment.
7933 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7935 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
7936 p_start. Change != comparisons to > and < comparisons.
7938 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7940 * cli/cli-script.c (process_next_line): Check P2 overrun.
7942 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7944 Update the copyright hearder to add year 2010 for most GDB files.
7946 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7948 Fix build failure in inf-ptrace.c.
7949 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
7951 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7953 * top.c (print_gdb_version): Update copyright year.
7955 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
7957 Fix break *FUN'address thread NUM.
7958 * ada-lex.l (task): Expand rule to also match the thread keyword.
7960 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7962 Fix break *FUN'address task NUM.
7963 * ada-lex.l (task): New rule.
7964 * ada-lang.c (valid_task_id): Make sure the Ada task list has
7965 been built before using it.
7967 For older changes see ChangeLog-2009.
7973 version-control: never