1 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3 * dwarf2loc.c (locexpr_tracepoint_var_ref)
4 (loclist_tracepoint_var_ref): Handle optimized out values.
6 2010-07-01 Pedro Alves <pedro@codesourcery.com>
8 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
9 unnecessary space in string.
10 * filesystem.c (_initialize_filesystem): Ditto.
11 * frame.c (_initialize_frame): Ditto.
12 * infcmd.c (step_once): Ditto.
13 * infrun.c (_initialize_infrun): Ditto.
14 * linux-nat.c (linux_child_follow_fork): Ditto.
15 * maint.c (maintenance_deprecate): Ditto.
16 * memattr.c (_initialize_mem): Ditto.
17 * mips-tdep.c (_initialize_mips_tdep): Ditto.
18 * monitor.c (monitor_open): Ditto.
19 * procfs.c (procfs_xfer_memory): Ditto.
20 * reverse.c (bookmarks_info): Ditto.
21 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
22 * stack.c (_initialize_stack): Ditto.
23 * tracepoint.c (_initialize_tracepoint): Ditto.
24 * xtensa-tdep.c (xtensa_supply_gregset,
25 xtensa_regset_from_core_section): Ditto.
27 2010-07-01 Tom Tromey <tromey@redhat.com>
29 * value.h (struct lval_funcs) <check_any_valid>: Rename from
31 * value.c (value_entirely_optimized_out): Invert result. Update
32 for new function name.
34 2010-07-01 Pedro Alves <pedro@codesourcery.com>
36 Static tracepoints support.
38 * NEWS: Mention new support for static tracepoints.
39 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
40 qXfer:statictrace:read.
41 (New features in the GDB remote stub, GDBserver): Mention static
42 tracepoints support using an UST based backend.
43 (New commands): Mention "info static-tracepoint-markers" and
45 * breakpoint.c (is_marker_spec): New.
46 (is_tracepoint): Handle static tracepoints.
47 (validate_commands_for_breakpoint): Static tracepoints can't do
49 (static_tracepoints_here): New.
50 (bpstat_what): Handle static tracepoints.
51 (print_one_breakpoint_location, allocate_bp_location, mention):
53 (create_breakpoint_sal): Ditto.
54 (decode_static_tracepoint_spec): New.
55 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
56 `type_wanted'. Adjust. Handle static tracepoint marker
58 (break_command_1): Adjust.
59 (update_static_tracepoint): New.
60 (update_breakpoint_locations): Handle static tracepoints.
61 (breakpoint_re_set_one): Handle static tracepoint marker
63 (disable_command, enable_command): Handle static tracepoints.
64 (trace_command, ftrace_command): Adjust.
65 (strace_command): New.
66 (create_tracepoint_from_upload): Adjust.
67 (save_breakpoints): Handle static tracepoints.
68 (_initialize_breakpoint): Install the "strace" command.
69 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
70 (struct breakpoint): New fields static_trace_marker_id and
71 static_trace_marker_id_idx.
72 (breakpoints_here_p): Declare.
73 (create_breakpoint): Adjust.
74 (static_tracepoints_here): Declare.
75 * remote.c (struct remote_state) <static_tracepoints>: New field.
76 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
77 (remote_static_tracepoint_marker_at): New.
78 (remote_static_tracepoint_markers_by_strid): New.
79 (remote_static_tracepoint_feature): New.
80 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
81 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
82 (remote_supports_static_tracepoints): New.
83 (remote_download_tracepoint): Download static tracepoints.
84 (init_remote_ops): Install remote_static_tracepoint_marker_at and
85 remote_static_tracepoint_markers_by_strid.
86 (_initialize_remote): Install set|show remote static-tracepoints,
87 and set|show remote read-sdata-object commands.
88 * target.c (update_current_target): Inherit and default
89 to_static_tracepoint_marker_at, and
90 to_static_tracepoint_markers_by_strid.
91 * target.h (static_tracepoint_marker): Forward declare.
92 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
93 (static_tracepoint_marker_p): New typedef.
94 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
95 (struct target_ops): New fields to_static_tracepoint_marker_at and
96 to_static_tracepoint_markers_by_strid.
97 (target_static_tracepoint_marker_at)
98 (target_static_tracepoint_markers_by_strid): New.
99 * tracepoint.c: Include source.h.
100 (validate_actionline): Handle $_sdata.
101 (struct collection_list): New field strace_data.
102 (add_static_trace_data): New.
103 (clear_collection_list): Clear strace_data.
104 (stringify_collection_list): Account for a possible static trace
106 (encode_actions_1): Encode an $_sdata collection.
107 (parse_tracepoint_definition): Handle static tracepoints.
108 (parse_static_tracepoint_marker_definition): New.
109 (release_static_tracepoint_marker): New.
110 (print_one_static_tracepoint_marker): New.
111 (info_static_tracepoint_markers_command): New.
112 (sdata_make_value): New.
113 (_initialize_tracepoint): Create the $_sdata convenience variable.
114 Add the "info static-tracepoint-markers" command.
115 Mention $_sdata in the "collect" command's help output.
116 * tracepoint.h (struct static_tracepoint_marker): New.
117 (parse_static_tracepoint_marker_definition)
118 (release_static_tracepoint_marker): Declare.
119 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
120 * python/py-breakpoint.c (bppy_new): Adjust.
122 2010-06-30 Joel Brobecker <brobecker@adacore.com>
124 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
127 2010-06-29 Doug Evans <dje@google.com>
130 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
131 DW_AT_external is present.
135 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
136 create a symbol for the field and record the value.
137 (new_symbol): Handle DW_TAG_member.
138 * gdbtypes.c (field_is_static): Remove FIXME.
139 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
140 only ignore LOC_CONST symbols that are enums.
142 * dwarf2read.c: Remove trailing whitespace.
144 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
145 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
146 (struct main_type, field loc): Delete dwarf_block.
147 (FIELD_DWARF_BLOCK): Delete.
148 (SET_FIELD_DWARF_BLOCK): Delete.
149 (TYPE_FIELD_DWARF_BLOCK): Delete.
150 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
153 2010-06-29 Hui Zhu <teawater@gmail.com>
155 * record.c (set_record_pic_cmdlist,
156 show_record_pic_cmdlist): New variables.
157 (set_record_pic_command,
158 show_record_pic_command): New functions.
159 (record_pic_function, record_pic_line, record_pic_enum,
160 set_record_pic_type, record_pic_hide_nofunction,
161 record_pic_hide_nosource, record_pic_hide_same): New variables.
162 (record_pic_fputs): New function.
163 (function_list, node_list, edge_list): New struct.
164 (function_list, node_list, edge_list): New variables.
165 (record_pic_cleanups, record_pic_node,
166 record_pic_edge, cmd_record_pic): New functions.
167 (_initialize_record): Add new commands for record pic.
169 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
171 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
172 ALLOCATE_CPLUS_STRUCT_TYPE.
174 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
175 Tom Tromey <tromey@redhat.com>
176 Thiago Jung Bauermann <bauerman@br.ibm.com>
178 * value.c (pack_unsigned_long): New function.
179 (value_from_ulongest): New function.
180 * value.h (value_from_ulongest): Declare.
181 * python/python.c (_initialize_python): Call
182 gdbpy_initialize_thread and gdbpy_initialize_inferior.
183 * python/python-internal.h: Define thread_object.
184 (gdbpy_inferiors, gdbpy_selected_thread)
185 (frame_info_to_frame_object, create_thread_object)
186 (find_thread_object, find_inferior_object)
187 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
188 (gdbpy_is_value_object, get_addr_from_python): Declare.
189 * python/py-value.c (builtin_type_upylong): Define.
190 (convert_value_from_python): Add logic for ulongest.
191 (gdbpy_is_value_object): New function.
192 * python/py-utils.c (get_addr_from_python): New function.
193 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
194 (gdbpy_selected_frame): Use PyObject over frame_info.
195 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
197 (SUBDIR_PYTHON_SRCS): Likewise.
198 (py-inferior.o): New Rule.
199 (py-infthread.o): New Rule.
200 * python/py-inferior.c: New File.
201 * python/py-infthread.c: New File.
203 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
205 * c-typeprint.c (c_type_print_base): For no fields check include also
206 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
207 * dwarf2read.c (struct typedef_field_list)
208 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
209 (dwarf2_add_typedef): New.
210 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
211 Copy also FI.TYPEDEF_FIELD_LIST.
212 * gdbtypes.h (struct typedef_field)
213 (struct cplus_struct_type) <typedef_field, typedef_field_count>
214 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
215 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
217 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
219 * cp-namespace.c (cp_lookup_nested_type): New variable
220 concatenated_name. Turn the current return condition into a reverse
221 one. Call also lookup_static_symbol_aux on the constructed qualified
223 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
224 other files into a called ...
225 (lookup_static_symbol_aux): ... new function here.
226 * symtab.h (lookup_static_symbol_aux): New prototype.
227 * valops.c (value_maybe_namespace_elt): Call also
228 lookup_static_symbol_aux if we failed otherwise.
230 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
232 Fix PR c++/11703 and PR gdb/1448.
233 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
236 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
238 Fix modification of cplus_struct_default.
239 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
240 Call ALLOCATE_CPLUS_STRUCT_TYPE.
241 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
243 2010-06-28 Joel Brobecker <brobecker@adacore.com>
245 * NEWS: Add entry announcing the python directory.
247 2010-06-28 Tom Tromey <tromey@redhat.com>
249 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
251 2010-06-28 Doug Evans <dje@google.com>
253 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
256 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
258 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
259 obstack_begin after each obstack_free.
261 2010-06-27 Doug Evans <dje@google.com>
263 * value.c (value_static_field): Use `switch' instead of `if'.
264 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
266 * valops.c (search_struct_field): Fix typo in error message.
268 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
270 * dwarf2expr.c (execute_stack_op): Place preprocessor
271 directives at the start of the source line.
273 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
275 * defs.h (make_command_stats_cleanup): Declare.
276 (set_display_time): Declare.
277 (set_display_space): Declare.
278 * event-top.c (command_handler): Use make_command_stats_cleanup.
279 * main.c (display_time, display_space): Move definitions to utils.c.
280 (captured_main): Use make_command_stats_cleanup to get start-up
282 Use set_display_time and set_display_space for processing OPT_STATISTICS
284 * maint.c (maintenance_time_display): Use set_display_time.
285 (maintenance_space_display): Use set_display_space.
286 * top.c (execute_command): Remove obsolete 'maint time' code.
287 (command_loop): Use make_command_stats_cleanup.
288 * utils.c (struct cmd_stats): Structure for storing initial time
290 (display_time, display_space): Move definitions here from utils.c.
291 (set_display_time): New function.
292 (set_display_space): New function.
293 (make_command_stats_cleanup): New function.
294 (report_command_stats): New auxiliary function for
295 make_command_stats_cleanup.
297 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
299 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
300 hosts where CORE_ADDR is long long.
302 2010-06-25 Tom Tromey <tromey@redhat.com>
305 * python/python.c (execute_gdb_command): Add keywords. Accept
306 "to_string" argument.
307 (struct restore_ui_file_closure): New.
308 (restore_ui_file): New function.
309 (make_cleanup_restore_ui_file): Likewise.
310 (GdbMethods) <execute>: Update.
312 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
314 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
315 during inferior call stack frame setup.
317 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
319 * solib-spu.c: Include "exception.h".
320 (ocl_program_data_key): New variable.
321 (append_ocl_sos): New function.
322 (ocl_enable_break): Likewise.
323 (spu_current_sos): Call append_ocl_sos.
324 (spu_solib_loaded): Call ocl_enable_break.
325 (_initialize_spu_solib): Register ocl_program_data_key.
327 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
329 * cp-support.c (reset_directive_searched): New function.
330 (make_symbol_overload_list_using): Prevent recursive calls.
332 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
334 * printcmd.c (print_variable_and_value): Print error message on
337 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
339 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
341 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
343 (dwarf_expr_push): Change input type to ULONGEST.
344 (dwarf_expr_fetch): Change return type to ULONGEST.
345 (dwarf_expr_fetch_address): Add prototype.
346 (dwarf2_read_address): Remove prototype.
347 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
348 Truncate stack values to ctx->addr_size bytes.
349 (dwarf_expr_fetch): Change return value to ULONGEST.
350 (dwarf_expr_fetch_address): New function.
351 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
352 when appropriate. Update for struct dwarf_expr_piece changes.
353 (dwarf2_read_address): Remove.
354 (unsigned_address_type): Remove.
355 (signed_address_type): Remove.
356 (execute_stack_op): Use dwarf_expr_fetch_address instead of
357 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
358 values. Perform operations on ULONGEST instead of on GDB values,
359 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
360 values and DW_OP_deref results as unsigned integers.
361 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
363 (write_pieced_value): Likewise.
364 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
365 dwarf_expr_fetch when appropriate.
366 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
367 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
368 instead of dwarf_expr_fetch when appropriate.
370 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
372 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
374 2010-06-24 Joel Brobecker <brobecker@adacore.com>
376 * python/python.c (_initialize_python): Add new "constant"
377 PYTHONDIR in gdb module. Insert this path at the head of
378 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
379 exec its __init__.py script if it exists in that directory.
381 2010-06-24 Kevin Buettner <kevinb@redhat.com>
383 * rx-tdep.c (RX_ACC_REGNUM): Define.
384 (RX_NUM_REGS): Redefine to 26.
385 (rx_register_name): Add register "acc". Change order of several
386 registers. Change name of "vct" register to "fintv" to match RX
388 (rx_register_type): Add case for RX_ACC_REGNUM.
390 2010-06-24 Tom Tromey <tromey@redhat.com>
392 * psymtab.c (lookup_partial_symbol): Mark definition as static.
394 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
395 Tom Tromey <tromey@redhat.com>
397 Fix GDB startup on readonly filesystem.
398 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
400 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
401 Pedro Alves <pedro@codesourcery.com>
404 * breakpoint.c (handle_jit_event): New function.
405 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
406 jit, err, table and bs_class. New variables shlib_event, jit_event,
407 this_action and bptype. Change bs_class assignments to this_action
408 assignments. new unhandled bptype internal error. Move here
409 shlib_event and jit_event handling from handle_inferior_event.
410 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
411 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
412 BPSTAT_WHAT_CHECK_JIT.
413 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
414 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
415 (handle_inferior_event): Reinitialize frame and gdbarch after
416 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
417 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
418 gdbarch when frame gets reinitialized.
420 2010-06-24 Hui Zhu <teawater@gmail.com>
422 * printcmd.c (ui_printf): New function.
423 (printf_command): Call ui_printf.
424 (_initialize_printcmd): New command "eval".
426 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
428 * infrun.c (handle_inferior_event): Handle presence of single-step
429 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
430 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
431 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
432 * breakpoint.c (detach_single_step_breakpoints): New function.
433 (detach_breakpoints): Call it.
434 (cancel_single_step_breakpoints): New function.
435 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
437 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
438 (spu_gdbarch_init): Install it.
440 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
442 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
443 * configure: Regenerate.
445 2010-06-22 Hui Zhu <teawater@gmail.com>
447 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
448 (i386_process_record): Ditto.
449 * record.c (record_memory_query): New variable.
450 (_initialize_record): New command "set record memory-query".
451 * record.h (record_memory_query): New extern.
453 2010-06-21 Doug Evans <dje@google.com>
455 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
456 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
457 (i386_syscall_p): Change type of lengthp to int.
458 (i386_displaced_step_fixup): Handle kernels that run one past a
460 * i386-linux-tdep.c (i386_linux_init_abi): Use
461 i386_displaced_step_copy_insn instead of
462 simple_displaced_step_copy_insn.
464 2010-06-21 Tom Tromey <tromey@redhat.com>
466 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
467 (dwarf_type_encoding_name): Likewise.
469 2010-06-21 Tom Tromey <tromey@redhat.com>
471 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
472 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
473 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
474 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
475 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
476 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
477 * dwarf2read.c (tag_type_to_type): Create a new error type on
479 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
480 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
482 2010-06-21 Michael Snyder <msnyder@vmware.com>
484 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
485 not add_abbrev_prefix_cmd, for "enable breakpoints".
487 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
489 * dwarf2loc.c (find_location_expression): Add relocation offset
490 to base-address-selection entry base addresses. Read addresses
491 (and offsets) as signed/unsigned integers, depending on the
492 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
493 (loclist_describe_location): Likewise.
494 (disassemble_dwarf_expression): Read DW_OP_addr operand as
495 unsigned integer. Do not call dwarf2_read_address.
496 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
498 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
500 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
501 value instead of hard-coded SPU_LS_SIZE.
502 (spu_software_single_step): Likewise.
503 * spu-tdep.h (SPU_LS_SIZE): Remove.
505 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
507 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
508 limit on local store memory accesses.
509 * spu-linux-nat.c (spu_xfer_partial): Likewise.
510 * spu-tdep.c (spu_lslr): Remove.
511 (spu_pointer_to_address): Do not truncate addresses.
512 (spu_integer_to_address): Likewise.
513 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
514 * spu-tdep.h: Add comments.
515 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
516 (SPU_OVERLAY_LMA): Define.
518 2010-06-18 Stan Shebs <stan@codesourcery.com>
520 * osdata.c (get_osdata): Warn separately if target does not report
522 (info_osdata_command): Allow empty type, report error if target
523 does not return available types of OS data.
524 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
525 types if no annex supplied.
527 * thread.c (thread_id_make_value): Make a value representing the
529 (_initialize_thread): Create $_thread.
531 2010-06-17 Joel Brobecker <brobecker@adacore.com>
533 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
534 last local variable declaration. No real code change.
536 2010-06-17 Tom Tromey <tromey@redhat.com>
538 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
539 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
542 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
543 Jan Kratochvil <jan.kratochvil@redhat.com>
545 * breakpoint.c: Include parser-defs.h.
546 (watchpoint_exp_is_const): New function.
547 (watch_command_1): Call watchpoint_exp_is_const to check
548 if the expression is constant.
550 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
552 * configure.ac: Check for RDYNAMIC also for cross builds.
553 * configure: Regenerate.
555 2010-06-15 Pedro Alves <pedro@codesourcery.com>
557 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
558 (SFILES): Remove solib-null.c, add solib-target.c.
559 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
560 (ALLDEPFILES): Remove solib-target.c.
561 * solib-target.c (_initialize_solib_target): Set
562 current_target_so_ops to solib_target_so_ops if not already set.
563 * solib-null.c: Delete.
565 2010-06-14 Pedro Alves <pedro@codesourcery.com>
567 * NEWS: Mention GDBserver's JIT compilation of tracepoint
570 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
572 * cp-valprint.c (cp_print_static_field): Members of
573 dont_print_stat_array_obstack are of type "struct type *".
574 (_initialize_cp_valprint): Likewise.
576 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
578 * frame.c (frame_register_unwind): Do not access contents
579 of "optimized out" unwound register value.
581 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
583 * ada-lang.h (ada_print_type): Make varstring const.
584 * ada-typeprint.c (print_func_type): Make name const.
585 (ada_print_type): Make varstring const.
586 * c-lang.h (c_print_type): Make varstring const.
587 * c-typeprint.c (c_print_type): Likewise.
588 * f-lang.h (f_print_type): Likewise.
589 * f-typeprint.c (f_print_type): Likewise.
590 * jv-lang.h (java_print_type): Likewise.
591 * jv-typeprint.c (java_print_type): Likewise.
592 * language.c (unk_lang_print_type): Likewise.
593 * language.h (struct language_defn) <la_print_type>: Likewise.
594 * m2-lang.h (m2_print_type): Likewise.
595 * m2-typeprint.c (m2_print_type): Likewise.
596 * p-lang.h (pascal_print_type): Likewise.
597 * p-typeprint.c (pascal_print_type): Likewise.
599 2010-06-11 Stan Shebs <stan@codesourcery.com>
601 Add per-operation permission flags.
603 * target.h (struct target_ops): New method to_set_permissions.
604 (target_set_permissions): New macro.
605 (target_insert_breakpoint): Change macro to function.
606 (target_remove_breakpoint): Ditto.
607 (target_stop): Ditto.
608 (may_write_registers): Declare.
609 (may_write_memory): Declare.
610 (may_insert_breakpoints): Declare.
611 (may_insert_tracepoints): Declare.
612 (may_insert_fast_tracepoints): Declare.
614 * target.c (may_write_registers, may_write_registers_1): New globals.
615 (may_write_memory, may_write_memory_1): New globals.
616 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
617 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
618 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
620 (may_stop, may_stop_1): New global.
621 (target_xfer_partial): Test for write permission.
622 (target_store_registers): Ditto.
623 (target_insert_breakpoint): New function.
624 (target_remove_breakpoint): New function.
625 (target_stop): New function.
626 (_initialize_targets): Add new set/show variables.
627 (set_write_memory_permission): New function.
628 (update_target_permissions): New function.
629 (set_target_permissions): New function.
630 (update_current_target): Default to_set_permissions.
631 (_initialize_targets): Use new globals and setter function.
632 * tracepoint.c (start_tracing): Test for permission.
633 * inferior.h (update_observer_mode): Declare.
634 * infrun.c (non_stop_1): Define earlier.
635 (observer_mode, observer_mode_1): New globals.
636 (set_observer_mode, show_observer_mode): New functions.
637 (update_observer_mode): New function.
638 (_initialize_infrun): Define "set observer" command.
639 * remote.c (PACKET_QAllow): New optional packet.
640 (remote_protocol_features): Add QAllow.
641 (remote_set_permissions): New function.
642 (remote_start_remote): Call it.
643 (init_remote_ops): Add it to target vector.
644 (_initialize_remote): Add config command for QAllow.
646 2010-06-11 Tom Tromey <tromey@redhat.com>
648 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
649 DW_AT_vtable_elem_location even when GCC extension is seen.
651 2010-06-11 Tom Tromey <tromey@redhat.com>
653 PR gdb/9977, PR exp/11636:
654 * value.h (value_offset): Update.
655 (struct lval_funcs) <check_validity>: New field.
656 <copy_closure>: Make argument const.
657 (value_computed_closure): Update.
658 (value_contents_for_printing): Declare.
659 (value_bits_valid): Likewise.
660 (val_print): Likewise.
661 (set_value_component_location): Update.
662 (value_entirely_optimized_out): Declare.
663 * value.c (value_offset): Argument now const.
664 (require_not_optimized_out): New function.
665 (value_contents_for_printing): New function.
666 (value_contents_all): Call require_not_optimized_out.
667 (value_contents): Likewise.
668 (value_bits_valid): New function.
669 (value_computed_closure): Argument now const.
670 (set_value_component_location): Make 'whole' argument const.
671 (value_entirely_optimized_out): New function.
672 (value_bitsize): Argument now 'const'.
673 (value_bitpos): Likewise.
674 (value_type): Likewise.
675 * valprint.h (val_print_array_elements): Update.
676 * valprint.c (val_print): Add 'val' argument. Use
677 valprint_check_validity.
678 (valprint_check_validity): New function.
679 (value_check_printable): Use value_entirely_optimized_out.
680 (common_val_print): Update.
681 (value_print): Likewise.
682 (val_print_array_elements): Add 'val' argument.
683 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
684 value_bits_valid. Reinit frame cache for lval_computed.
685 * sh64-tdep.c (sh64_do_register): Update.
686 * scm-valprint.c (scm_val_print): Add 'val' argument.
687 * scm-lang.h (scm_val_print): Update.
688 * python/python.h (apply_val_pretty_printer): Update.
689 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
690 argument. Call set_value_component_location.
691 * printcmd.c (print_scalar_formatted): Update.
692 * p-valprint.c (pascal_val_print): Add 'val' argument.
693 (pascal_object_print_value_fields): Likewise.
694 (pascal_object_print_value): Likewise.
695 (pascal_object_print_static_field): Update.
696 * p-lang.h (pascal_val_print): Update.
697 (pascal_object_print_value_fields): Update.
698 * mt-tdep.c (mt_registers_info): Update.
699 * mi/mi-main.c (get_register): Update.
700 (mi_cmd_data_evaluate_expression): Use common_val_print.
701 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
702 (m2_print_unbounded_array): Likewise.
703 (m2_val_print): Likewise.
704 * m2-lang.h (m2_val_print): Update.
705 * language.h (struct language_defn) <la_val_print>: Add 'val'
707 (LA_VAL_PRINT): Likewise.
708 * language.c (unk_lang_val_print): Add 'val' argument.
709 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
710 (java_val_print): Likewise.
711 * jv-lang.h (java_val_print): Add 'val' argument.
712 * infcmd.c (default_print_registers_info): Update.
713 * f-valprint.c (f77_print_array_1): Add 'val' argument.
714 (f77_print_array): Likewise.
715 (f_val_print): Likewise.
716 * f-lang.h (f_val_print): Add 'val' argument.
717 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
719 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
720 set_value_optimized_out.
721 (write_pieced_value): Use value_bitsize and value_bitpos.
722 <default>: Don't exit loop.
723 (check_pieced_value_validity): New function.
724 (pieced_value_funcs): Reference check_pieced_value_validity,
725 check_pieced_value_invalid.
726 (copy_pieced_value_closure): Update.
727 (check_pieced_value_bits): New function.
728 (check_pieced_value_invalid): New function.
729 * d-valprint.c (dynamic_array_type): Add 'val' argument.
730 (d_val_print): Likewise.
731 * d-lang.h (d_val_print): Update.
732 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
733 (cp_print_value_fields_rtti): Likewise.
734 (cp_print_value): Likewise.
735 (cp_print_static_field): Update.
736 * c-valprint.c (c_val_print): Add 'val' argument.
737 (c_value_print): Update.
738 * c-lang.h (c_val_print): Update.
739 (cp_print_value_fields): Likewise.
740 (cp_print_value_fields_rtti): Likewise.
741 * ada-valprint.c (struct ada_val_print_args): Remove.
742 (val_print_packed_array_elements): Add 'val' argument.
743 (ada_val_print): Likewise. Rewrite.
744 (ada_val_print_stub): Remove.
745 (ada_val_print_array): Add 'val' argument.
746 (ada_val_print_1): Likewise.
747 (print_variant_part): Likewise.
748 (ada_value_print): Update.
749 (print_record): Add 'val' argument.
750 (print_field_values): Likewise.
751 * ada-lang.h (ada_val_print): Update.
753 2010-06-11 Tom Tromey <tromey@redhat.com>
755 * vec.h (VEC_cleanup): New macro.
756 (DEF_VEC_ALLOC_FUNC_I): Update.
757 (DEF_VEC_ALLOC_FUNC_P): Likewise.
758 (DEF_VEC_ALLOC_FUNC_O): Likewise.
759 * dwarf2loc.c (struct axs_var_loc): Remove.
760 (unimplemented): New function.
761 (translate_register): Likewise.
762 (access_memory): Likewise.
763 (compile_dwarf_to_ax): Likewise.
764 (dwarf2_tracepoint_var_loc): Remove.
765 (dwarf2_tracepoint_var_access): Likewise.
766 (dwarf2_tracepoint_var_ref): Likewise.
767 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
768 (loclist_tracepoint_var_ref): Likewise.
769 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
770 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
771 require_composition. No longer static.
772 (execute_stack_op): Update.
773 * ax-gdb.h (trace_kludge): Declare.
775 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
777 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
778 (should_be_inserted): Return zero also on NULL OWNER.
779 (breakpoint_program_space_exit): New OWNER comment.
780 (insert_breakpoint_locations): Extend comment for OWNER.
781 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
782 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
784 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
785 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
786 (bpstat_check_location): New assert on OWNER.
787 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
788 and B initializations to the code block. New assert on them.
789 (print_one_breakpoint_location): New OWNER comment.
790 (watchpoint_locations_match): Assert on OWNER.
791 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
792 initializations to the code block. New assert on OWNER.
793 (set_breakpoint_location_function): New assert on OWNER.
794 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
795 (bp_location_compare, update_global_location_list)
796 (update_global_location_list): New OWNER comment.
798 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
800 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
802 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
804 * config/nm-linux.h (struct target_ops): Remove forward declaration.
805 (lin_thread_get_thread_signals): Remove prototype.
806 (GET_THREAD_SIGNALS): Remove.
807 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
808 * linux-thread-db.c (check_thread_signals): Directly call
809 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
811 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
813 * gregset.h (GDB_FPXREGSET_T): Remove.
814 (gdb_fpxregset_t): Likewise.
815 (supply_fpxregset): Remove prototype.
816 (fill_fpxregset): Likewise.
817 * i386-linux-nat.c (supply_fpxregset): Remove.
818 (fill_fpxregset): Likewise.
819 (fetch_fpxregs): Inline supply_fpxregset call.
820 (store_fpxregs): Inline fill_fpxregset call.
822 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
823 * config/i386/nm-linux.h: Remove file.
825 2010-06-09 Michael Snyder <msnyder@vmware.com>
827 * target.c (update_current_target): Fix spelling error in comment.
828 (target_mourn_inferior): Fix spelling error in error message.
830 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
832 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
833 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
835 2010-06-08 Michael Snyder <msnyder@vmware.com>
837 * remote.c (remote_close): Set inferior_ptid to null_ptid.
839 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
841 * configure.ac <"${have_libpython}" != no>: New workaround of
843 * configure: Regenerate.
845 2010-06-08 Hui Zhu <teawater@gmail.com>
847 * record.c (record_wait): Move signal out of replay code.
849 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
852 * dwarf2-frame.c (no_dwarf_call): New function.
853 (execute_stack_op): Set CTX->DWARF_CALL.
854 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
855 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
856 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
857 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
858 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
859 (needs_frame_dwarf_call): New function.
860 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
861 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
862 Update the comment. Move variables die, offset and error call to ...
863 (follow_die_ref): ... a new function.
864 (dwarf2_fetch_die_location_block): New function.
865 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
867 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
869 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
870 (dwarf_expr_tls_address): Use per_cu instead of objfile.
871 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
872 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
874 (struct needs_frame_baton): New field per_cu.
875 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
876 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
878 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
880 * cp-support.c (make_symbol_overload_list_namespace): Only search
881 static and global blocks.
882 (make_symbol_overload_list_block): New function.
883 (make_symbol_overload_list): Separate namespace search from block
885 (make_symbol_overload_list_qualified): Use
886 make_symbol_overload_list_block.
888 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
890 * value.h: Created oload_search_type enum.
891 (find_overload_match): Use oload_search_type enum.
892 * valops.c (find_overload_match): Support combined member and
894 * eval.c (evaluate_subexp_standard): Calls to
895 find_overload_match now use oload_search_type enum.
896 (oload_method_static): Verify index is a proper value.
897 * valarith.c (value_user_defined_cpp_op): Search for and handle
898 both member and non-member operators.
899 (value_user_defined_cpp_op): New function.
900 (value_user_defined_op): New function.
901 (value_x_unop): Use value_user_defined_op.
902 (value_x_binop): Ditto.
903 * cp-support.c (make_symbol_overload_list_using): Added block
905 Add check for namespace aliases and imported declarations.
907 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
909 * breakpoint.h (owner): Extend the comment.
911 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
913 Clear stale specific bp_location from former whole breakpoint.
914 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
916 (free_bp_location): ... here. Rename there the called function to
917 bpstat_remove_bp_location_callback.
918 (bpstat_remove_breakpoint_callback): Rename to ...
919 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
920 to struct bp_location. Change the called function to
921 bpstat_remove_bp_location. Create new declaration for the function.
922 (bpstat_remove_breakpoint): Rename to ...
923 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
924 code for the new parameter type.
926 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
928 * README: Make version-agnostic.
930 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
932 Fix duplicate types for single DIE.
933 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
935 (read_array_type): Remove type initialization. Recheck get_die_type
936 after initial die_type. Move set_die_type before set_descriptive_type.
937 (read_set_type): New variable domain_type. Recheck get_die_type after
938 initial die_type. Move attr initialization later.
939 (read_tag_pointer_type, read_tag_reference_type): New variable
940 target_type. Recheck get_die_type after initial die_type.
941 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
942 die_type and die_containing_type.
943 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
944 Recheck get_die_type after initial die_type.
945 (read_subrange_type): Recheck get_die_type after initial die_type.
946 Move set_die_type before set_descriptive_type.
947 (set_die_type): Extend the function comment. Call complaint if DIE has
948 some type already set.
950 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
952 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
953 for current naming of thread groups (iN, not N).
955 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
957 * ada-lang.c (ada_operator_length): Constify `struct expression'.
958 * parse.c (operator_length): Likewise.
959 (operator_length_standard): Likewise.
960 * parser-defs.h (operator_length): Likewise.
961 (operator_length_standard): Likewise.
962 (struct exp_descriptor <operator_length>): Likewise.
964 2010-06-04 Doug Evans <dje@google.com>
966 Add support for enabling/disabling individual pretty-printers.
967 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
968 * python/python-internal.h (gdbpy_enabled_cst): Declare.
969 * python/python.c (gdbpy_enabled_cst): Define.
970 (_initialize_python): Initialize gdbpy_enabled_cst.
973 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
975 * breakpoint.c (update_global_location_list): Fix comment typo.
977 2010-06-04 Hui Zhu <teawater@gmail.com>
979 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
981 2010-06-03 Doug Evans <dje@google.com>
983 * configure.ac: Don't fail if python is unusable when
984 configured with --with-python=auto.
985 * configure: Regenerate.
987 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
989 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
991 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
993 * valprint.h (get_array_bounds): Change low and high parameter types
995 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
997 (val_print_array_elements): Adapt to change above.
998 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
999 * p-valprint.c (pascal_val_print): Likewise.
1001 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1003 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
1004 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
1007 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1009 Support DW_TAG_module as separate namespaces.
1010 * dwarf2read.c (typename_concat): New parameter physname.
1011 (read_module_type): New function and declaration.
1012 (scan_partial_symbols): Scan also DW_TAG_module children.
1013 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
1014 to typename_concat backward compatible physname value 0.
1015 (partial_die_full_name, read_namespace_type): Pass to typename_concat
1016 backward compatible physname value 0.
1017 (add_partial_module, read_module): Remove FIXME comment.
1018 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
1019 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
1020 DIEs under DW_TAG_module.
1021 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
1022 DW_AT_MIPS_linkage_name first, extend it for language_fortran
1023 && physname and return there instead of just setting NAME. Extend
1024 the main block for language_fortran. Pass physname parameter to the
1025 typename_concat call.
1026 (read_import_statement, read_func_scope, get_scope_pc_bounds)
1027 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
1028 (new_symbol): Fill in cplus_specific.demangled_name if it is still
1029 missing from SYMBOL_SET_NAMES in the language_fortran case.
1030 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
1032 (read_type_die) <DW_TAG_module>: New.
1033 (MAX_SEP_LEN): Increase to 7.
1034 (typename_concat): New parameter physname. New variable lead. Support
1035 also language_fortran.
1036 * f-exp.y (yylex): Consider : also as a symbol name character class.
1037 * f-lang.c: Include cp-support.h.
1038 (f_word_break_characters, f_make_symbol_completion_list): New functions.
1039 (f_language_defn): Use cp_lookup_symbol_nonlocal,
1040 f_word_break_characters and f_make_symbol_completion_list.
1041 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
1042 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
1043 * symtab.c (symbol_init_language_specific): Support language_fortran.
1044 (symbol_find_demangled_name): New comment on language_fortran.
1045 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
1046 for language_fortran.
1047 (lookup_symbol_aux_local): Check imports also for language_fortran.
1048 (default_make_symbol_completion_list): Rename to ...
1049 (default_make_symbol_completion_list_break_on): ... this name. New
1050 parameter break_on, use it.
1051 (default_make_symbol_completion_list): New stub.
1052 * symtab.h (default_make_symbol_completion_list_break_on): New
1055 2010-06-02 Joel Brobecker <brobecker@adacore.com>
1057 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
1060 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1062 * dwarf2read.c (typename_concat): Add const to the variable sep.
1064 2010-06-02 Tom Tromey <tromey@redhat.com>
1066 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
1067 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
1068 type is const. Add 'def' argument. Add missing operators, remove
1070 (decode_locdesc): Update.
1071 (dwarf2_always_disassemble): New global.
1072 (show_dwarf2_always_disassemble): New function.
1073 (_initialize_dwarf2_read): Add always-disassemble.
1074 (dwarf2_per_cu_offset_size): New function.
1075 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
1076 (piece_end_p): New function.
1077 (locexpr_describe_location_piece): Replace 'size' argument with
1078 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
1079 some constants. Remove errors.
1080 (disassemble_dwarf_expression): New function.
1081 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
1082 Add 'offset_size' argument.
1083 (loclist_describe_location): Change output formatting.
1084 * dwarf2expr.h (dwarf_stack_op_name): Declare.
1086 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
1088 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
1089 anonymous type case.
1091 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
1093 * dwarf2read.c (read_subrange_type): Handle missing base type
1094 according to Dwarf-2 specifications.
1096 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
1098 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
1100 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
1101 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
1102 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
1103 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
1104 UNOP_CHMAX, UNOP_CHMIN.
1105 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
1106 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
1107 UNOP_CHMIN>: Remove opcodes.
1109 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
1111 * dwarf2read.c (read_func_scope): Do not complain for
1112 external function if bounds are not found.
1114 2010-06-01 Pedro Alves <pedro@codesourcery.com>
1116 * NEWS: Mention gdbserver fast tracepoints support.
1118 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
1120 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
1122 (windows_set_console_info): New function.
1123 (windows_create_inferior): Call windows_set_console_info
1124 if NEW_CONSOLE is true.
1125 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
1126 (_initialize_loadable): Initialize GetConsoleFontSize and
1127 GetCurrentConsoleFont.
1129 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1131 * Makefile.in (RDYNAMIC): New.
1132 (SFILES): Add proc-service.list.
1133 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
1134 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
1135 * config/arm/linux.mh: Likewise.
1136 * config/i386/linux.mh: Likewise.
1137 * config/i386/linux64.mh: Likewise.
1138 * config/ia64/linux.mh: Likewise.
1139 * config/m32r/linux.mh: Likewise.
1140 * config/m68k/linux.mh: Likewise.
1141 * config/mips/linux.mh: Likewise.
1142 * config/pa/linux.mh: Likewise.
1143 * config/powerpc/linux.mh: Likewise.
1144 * config/powerpc/ppc64-linux.mh: Likewise.
1145 * config/s390/s390.mh: Likewise.
1146 * config/sparc/linux.mh: Likewise.
1147 * config/sparc/linux64.mh: Likewise.
1148 * config/xtensa/linux.mh: Likewise.
1149 * configure.ac: New RDYNAMIC on native host and GCC.
1150 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
1151 * configure: Regenerate.
1152 * proc-service.list: New.
1154 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1156 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
1159 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1161 * linux-nat.c (linux_nat_wait_1): Do not call
1162 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
1163 TARGET_WAITKIND_SIGNALLED.
1165 2010-05-27 Joel Brobecker <brobecker@adacore.com>
1167 * ada-lang.c (ada_inferior_data): New struct.
1168 (ada_inferior_data): New static global.
1169 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
1170 (ada_get_tsd_type): New functions.
1171 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
1172 to look the tsd type up.
1173 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
1174 event. Set ada_inferior_data.
1176 2010-05-27 Pedro Alves <pedro@codesourcery.com>
1178 * remote.c (unpack_varlen_hex): Remove forward declaration.
1179 (remote_console_output): Make static, and add forward declaration.
1180 * remote.h: Drop FIXME comment.
1181 (unpack_varlen_hex): Declare.
1182 (remote_console_output, remote_cisco_objfile_relocate)
1183 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
1184 Delete declarations.
1185 * tracepoint.c: Include "remote.h".
1186 (unpack_varlen_hex): Delete declaration.
1188 2010-05-27 Tom Tromey <tromey@redhat.com>
1190 * dwarf2loc.c (struct piece_closure) <refc>: New field.
1191 (allocate_piece_closure): Initialize refc.
1192 (copy_pieced_value_closure): Use refc.
1193 (free_pieced_value_closure): Likewise.
1195 2010-05-27 Tom Tromey <tromey@redhat.com>
1197 * arm-tdep.c (push_stack_item): 'contents' now const.
1198 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
1199 value_contents_writeable. Introduce new temporary.
1201 2010-05-27 Tom Tromey <tromey@redhat.com>
1203 * findcmd.c (parse_find_args): Use value_contents, not
1206 2010-05-27 Tom Tromey <tromey@redhat.com>
1208 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
1209 const. Use value_contents, not value_contents_writeable.
1211 2010-05-27 Joel Brobecker <brobecker@adacore.com>
1213 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
1214 by call to value_contents.
1216 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
1218 * MAINTAINERS: Add myself for write after approval privileges.
1220 2010-05-26 Doug Evans <dje@google.com>
1222 Allow python to find its files if moved from original location.
1223 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
1224 (GDB_AC_WITH_DIR): Call it.
1225 * configure.ac: Define WITH_PYTHON_PATH if we can find the
1226 python installation directory.
1227 * config.in: Regenerate.
1228 * configure: Regenerate.
1229 * defs.h (python_libdir): Declare.
1230 * main.c (python_libdir): Define.
1231 (captured_main): Initialize python_libdir.
1232 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
1233 call Py_SetProgramName to make sure python can find its libraries
1236 * configure.ac: Try to use python's distutils to fetch compilation
1238 * configure: Regenerate.
1239 * python/python-config.py: New file.
1241 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
1243 * ser-tcp.c (net_open): Check error return from socket() call by its
1244 equality to -1 not by it being negative.
1245 (net_close): Likewise.
1247 2010-05-26 Pedro Alves <pedro@codesourcery.com>
1249 * NEWS: Mention the `qRelocInsn' feature.
1250 * gdbarch.sh (relocate_instruction): New.
1251 * amd64-tdep.c (rip_relative_offset): New.
1252 (append_insns): New.
1253 (amd64_relocate_instruction): New.
1254 (amd64_init_abi): Install it.
1255 * i386-tdep.c (append_insns): New.
1256 (i386_relocate_instruction): New.
1257 (i386_gdbarch_init): Install it.
1258 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
1259 * gdbarch.h, gdbarch.c: Regenerate.
1261 2010-05-26 Tom Tromey <tromey@redhat.com>
1263 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
1264 (struct dwarf2_loclist_baton) <data>: Likewise.
1265 * dwarf2loc.c (find_location_expression): Constify return type.
1266 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
1267 (dwarf2_loc_desc_needs_frame): Likewise.
1268 (loclist_read_variable): Constify.
1269 (loclist_describe_location): Likewise.
1270 (loclist_tracepoint_var_ref): Likewise.
1272 2010-05-25 Tom Tromey <tromey@redhat.com>
1274 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
1275 (dwarf_expr_frame_base_1): Likewise.
1276 (read_pieced_value): Update.
1277 (needs_frame_frame_base): Constify.
1278 (dwarf2_tracepoint_var_loc): Likewise.
1279 (dwarf2_tracepoint_var_access): Likewise.
1280 (locexpr_describe_location_piece): Likewise.
1281 (locexpr_describe_location_1): Likewise.
1282 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
1285 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
1286 (dwarf_expr_eval, read_uleb128, read_sleb128)
1287 (dwarf2_read_address): Update.
1288 * dwarf2expr.c (dwarf_expr_eval): Constify.
1289 (read_uleb128): Likewise.
1290 (read_sleb128): Likewise.
1291 (dwarf2_read_address): Likewise.
1292 (require_composition): Likewise.
1293 (execute_stack_op): Likewise.
1294 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
1296 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
1298 (no_get_frame_base): Constify.
1299 (execute_stack_op): Likewise.
1300 (execute_cfa_program): Likewise.
1301 (read_encoded_value): Likewise.
1303 2010-05-25 Doug Evans <dje@google.com>
1305 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
1307 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
1308 * event-loop.c: ... here.
1309 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
1310 `error' for clarity.
1311 (tui_getc): Pass correct value for `error' parameter to
1312 tui_readline_output.
1314 Add python gdb.GdbError and gdb.string_to_argv.
1315 * NEWS: Document them.
1316 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
1317 the exception is gdb.GdbError. Print a second traceback if there's
1318 an error computing the error message.
1319 (gdbpy_string_to_argv): New function.
1320 * python/py-utils.c (gdbpy_obj_to_string): New function.
1321 (gdbpy_exception_to_string): New function.
1322 * python/python-internal.h (gdbpy_string_to_argv): Declare.
1323 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
1324 (gdbpy_gdberror_exc): Declare.
1325 * python/python.c (gdbpy_gdberror_exc): New global.
1326 (_initialize_python): Initialize gdbpy_gdberror_exc and create
1328 (GdbMethods): Add string_to_argv.
1330 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1332 * windows-nat.c (display_selector): Call GetLastError to give better
1333 failure explanation.
1335 2010-05-24 Pedro Alves <pedro@codesourcery.com>
1337 * config.in: Regenerate.
1339 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1342 * target.c (push_target): Return only void. Remove the return value
1344 * target.h (push_target): Return only void.
1346 2010-05-23 Pedro Alves <pedro@codesourcery.com>
1348 Update gnulib from latest git.
1349 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1351 * gnulib/memcmp.c: Removed.
1352 * gnulib/memchr.valgrind: New.
1353 * gnulib/stddef.in.h: New.
1354 * gnulib/Makefile.am: Updated.
1355 * gnulib/memchr.c: Updated.
1356 * gnulib/memmem.c: Updated.
1357 * gnulib/stdint.in.h: Updated.
1358 * gnulib/str-two-way.h: Updated.
1359 * gnulib/string.in.h: Updated.
1360 * gnulib/wchar.in.h: Updated.
1362 * gnulib/extra/link-warning.h: Removed.
1363 * gnulib/extra/c++defs.h: New.
1364 * gnulib/extra/warn-on-use.h: New.
1365 * gnulib/extra/arg-nonnull.h: Updated.
1367 * gnulib/m4/extensions.m4: Updated.
1368 * gnulib/m4/gnulib-cache.m4: Updated.
1369 * gnulib/m4/gnulib-common.m4: Updated.
1370 * gnulib/m4/gnulib-comp.m4: Updated.
1371 * gnulib/m4/gnulib-tool.m4: Updated.
1372 * gnulib/m4/include_next.m4: Updated.
1373 * gnulib/m4/longlong.m4: Updated.
1374 * gnulib/m4/memchr.m4: Updated.
1375 * gnulib/m4/memmem.m4: Updated.
1376 * gnulib/m4/stdint.m4: Updated.
1377 * gnulib/m4/string_h.m4: Updated.
1378 * gnulib/m4/memcmp.m4: Removed.
1379 * gnulib/m4/onceonly_2_57.m4: Removed.
1380 * gnulib/m4/00gnulib.m4: New.
1381 * gnulib/m4/mmap-anon.m4: New.
1382 * gnulib/m4/multiarch.m4: New.
1383 * gnulib/m4/onceonly.m4: New.
1384 * gnulib/m4/stddef_h.m4: New.
1385 * gnulib/m4/warn-on-use.m4: New.
1386 * gnulib/m4/wchar.m4: Removed.
1387 * gnulib/m4/wchar_h.m4: New.
1388 * gnulib/m4/wchar_t.m4: New.
1389 * gnulib/m4/wint_t.m4: New.
1391 * aclocal.m4: Regenerate.
1392 * config.in: Likewise.
1393 * configure: Likewise.
1394 * gnulib/Makefile.in: Likewise.
1396 2010-05-21 Tom Tromey <tromey@redhat.com>
1398 * dwarf2loc.c (extract_bits_primitive): New function.
1399 (extract_bits): Likewise.
1400 (insert_bits): Likewise.
1401 (copy_bitwise): Likewise.
1402 (read_pieced_value): Do all operations in bits.
1403 (write_pieced_value): Likewise.
1404 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
1405 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
1406 Always use xrealloc to resize piece array.
1407 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
1408 <DW_OP_piece>: Update.
1409 <DW_OP_bit_piece>: New case.
1411 2010-05-21 Tom Tromey <tromey@redhat.com>
1413 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
1414 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
1415 * dwarf2expr.h (enum dwarf_value_location)
1416 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
1417 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
1418 (add_piece): Handle empty piece.
1419 (execute_stack_op) <DW_OP_piece>: Handle
1420 DWARF_VALUE_OPTIMIZED_OUT.
1422 2010-05-21 Tom Tromey <tromey@redhat.com>
1424 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
1425 evaluate_subexp, not evaluate_subexp_with_coercion.
1427 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1429 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1432 2010-05-21 Tom Tromey <tromey@redhat.com>
1434 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
1436 (write_pieced_value): Likewise.
1438 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1440 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1441 and DW_TAG_volatile_type.
1442 (new_symbol): Likewise.
1444 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
1446 * p-valprint.c (pascal_val_print): Call get_array_bounds
1447 to obtain the number of elements in an array.
1449 2010-05-19 Doug Evans <dje@google.com>
1451 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
1453 * python.c (source_python_script): Add comment.
1454 (source_python_script_for_objfile): Remove unnecessary call to
1457 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1458 Sergio Durigan Junior <sergiodj@redhat.com>
1461 * parse.c (exp_iterate): Use operator_length wrapper function.
1463 2010-05-18 Michael Snyder <msnyder@vmware.com>
1465 * ada-lang.c: White space.
1466 * ada-typeprint.c: White space.
1467 * ada-valprint.c: White space.
1468 * addrmap.c: White space.
1469 * auxv.c: White space.
1470 * ax-gdb.c: White space.
1472 2010-05-18 Hui Zhu <teawater@gmail.com>
1474 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
1476 (inferior_call_waitpid): Move make_cleanup out of check.
1477 Check the return of waitpid.
1478 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
1480 2010-05-17 Michael Snyder <msnyder@vmware.com>
1482 * tui/tui.c: White space.
1483 * tui/tui-data.c: White space.
1484 * tui/tui-disasm.c: White space.
1485 * tui/tui-file.c: White space.
1486 * tui/tui-interp.c: White space.
1487 * tui/tui-main.c: White space.
1488 * tui/tui-out.c: White space.
1489 * tui/tui-regs.c: White space.
1490 * tui/tui-source.c: White space.
1491 * tui/tui-stack.c: White space.
1492 * tui/tui-win.c: White space.
1493 * tui/tui-winsource.c: White space.
1495 * procfs.c: White space.
1497 * python/py-auto-load.c: White space.
1498 * python/py-block.c: White space.
1499 * python/py-breakpoint.c: White space.
1500 * python/py-cmd.c: White space.
1501 * python/py-function.c: White space.
1502 * python/py-lazy-string.c: White space.
1503 * python/py-objfile.c: White space.
1504 * python/py-param.c: White space.
1505 * python/py-prettyprint.c: White space.
1506 * python/py-progspace.c: White space.
1507 * python/py-symtab.c: White space.
1508 * python/python.c: White space.
1509 * python/py-type.c: White space.
1510 * python/py-utils.c: White space.
1511 * python/py-value.c: White space.
1513 * mi/mi-cmd-break.c: White space.
1514 * mi/mi-cmd-env.c: White space.
1515 * mi/mi-cmds.c: White space.
1516 * mi/mi-cmd-stack.c: White space.
1517 * mi/mi-cmd-var.c: White space.
1518 * mi/mi-console.c: White space.
1519 * mi/mi-getopt.c: White space.
1520 * mi/mi-interp.c: White space.
1521 * mi/mi-main.c: White space.
1522 * mi/mi-out.c: White space.
1523 * mi/mi-parse.c: White space.
1525 * cli/cli-cmds.c: White space.
1526 * cli/cli-decode.c: White space.
1527 * cli/cli-dump.c: White space.
1528 * cli/cli-interp.c: White space.
1529 * cli/cli-logging.c: White space.
1530 * cli/cli-script.c: White space.
1531 * cli/cli-setshow.c: White space.
1533 * valarith.c: White space.
1534 * valops.c: White space.
1535 * valprint.c: White space.
1536 * value.c: White space.
1537 * varobj.c: White space.
1538 * xcoffread.c: White space.
1539 * xml-support.c: White space.
1540 * xml-tdesc.c: White space.
1542 2010-05-17 Andreas Schwab <schwab@redhat.com>
1545 * c-lang.c (c_printstr): Compute real length of NUL terminated
1548 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1550 * parse.c (parse_exp_in_context): When block is not NULL, use
1551 its associated language to parse the expression instead of
1552 the current_language.
1554 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1556 * jv-lang.c (java_lookup_class): Remove commented out code.
1557 (type_from_class): Likewise.
1558 (java_op_print_tab): Remove commented-out elements.
1560 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1562 * ada-lang.c (to_fixed_range_type): The the raw index type as
1563 argument instead of the raw type name. Remove orig_type parameter.
1564 Update calls throughout.
1565 (ada_fixup_array_indexes_type): New function.
1566 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
1567 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
1568 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
1569 Remove name parameter.
1570 (print_array_type): Add call to ada_fixup_array_indexes_type.
1571 Update calls to print_range_type.
1572 (ada_print_type): Update calls to print_range_type.
1574 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1576 * dwarf2read.c (read_set_type): Set type length if
1577 DW_AT_byte_size attribute is present.
1579 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1581 * p-valprint.c (pascal_val_print): Handle set type if range limits
1582 are undefined but size is known.
1584 2010-05-17 Pedro Alves <pedro@codesourcery.com>
1586 * procfs.c: Reformat.
1588 2010-05-16 Michael Snyder <msnyder@vmware.com>
1590 * target.c: White space.
1591 * target-descriptions.c: White space.
1592 * target-memory.c: White space.
1593 * thread.c: White space.
1594 * top.c: White space.
1595 * tracepoint.c: White space.
1596 * trad-frame.c: White space.
1597 * tramp-frame.c: White space.
1598 * ui-file.c: White space.
1599 * ui-out.c: White space.
1600 * user-regs.c: White space.
1601 * utils.c: White space.
1603 * scm-exp.c: White space.
1604 * scm-lang.c: White space.
1605 * scm-valprint.c: White space.
1606 * sentinel-frame.c: White space.
1607 * ser-base.c: White space.
1608 * ser-go32.c: White space.
1609 * serial.c: White space.
1610 * ser-mingw.c: White space.
1611 * ser-pipe.c: White space.
1612 * ser-tcp.c: White space.
1613 * ser-unix.c: White space.
1614 * solib.c: White space.
1615 * solib-darwin.c: White space.
1616 * solib-frv.c: White space.
1617 * solib-irix.c: White space.
1618 * solib-osf.c: White space.
1619 * solib-pa64.c: White space.
1620 * solib-som.c: White space.
1621 * solib-spu.c: White space.
1622 * solib-svr4.c: White space.
1623 * solib-target.c: White space.
1624 * source.c: White space.
1625 * stabsread.c: White space.
1626 * stack.c: White space.
1627 * std-regs.c: White space.
1628 * symfile.c: White space.
1629 * symmisc.c: White space.
1630 * symtab.c: White space.
1632 2010-05-16 Michael Snyder <msnyder@vmware.com>
1634 * source.c (_initialize_source): Add "rev" as an abbreviation
1635 for the "reverse-search" command.
1637 2010-05-16 Michael Snyder <msnyder@vmware.com>
1639 * record.c: White space.
1640 * regcache.c: White space.
1641 * reggroups.c: White space.
1642 * remote-fileio.c: White space.
1643 * remote-m32r-sdi.c: White space.
1644 * remote-mips.c: White space.
1645 * remote-sim.c: White space.
1646 * remote.c: White space.
1647 (process_g_packet): Remove orphan braces.
1649 2010-05-15 Michael Snyder <msnyder@vmware.com>
1651 * parse.c: White space.
1652 * p-lang.c: White space.
1653 * posix-hdep.c: White space.
1654 * printcmd.c: White space.
1655 * progspace.c: White space.
1656 * prologue-value.c: White space.
1657 * psymtab.c: White space.
1658 * p-typeprint.c: White space.
1659 * p-valprint.c: White space.
1661 * objc-lang.c: White space.
1662 * objfiles.c: White space.
1663 * observer.c: White space.
1664 * osabi.c: White space.
1665 * osdata.c: White space.
1667 * m2-lang.c: White space.
1668 * m2-valprint.c: White space.
1669 * macrocmd.c: White space.
1670 * macroexp.c: White space.
1671 * macroscope.c: White space.
1672 * macrotab.c: White space.
1673 * main.c: White space.
1674 * maint.c: White space.
1675 * mdebugread.c: White space.
1676 * memattr.c: White space.
1677 * minsyms.c: White space.
1678 * monitor.c: White space.
1680 2010-05-14 Michael Snyder <msnyder@vmware.com>
1682 * jv-lang.c: White space.
1683 * jv-typeprint.c: White space.
1684 * jv-valprint.c: White space.
1685 * language.c: White space.
1686 * libunwind-frame.c: White space.
1687 * linespec.c: White space.
1688 * linux-nat.c: White space.
1689 * linux-record.c: White space.
1690 * linux-thread-db.c: White space.
1692 * infcall.c: White space.
1693 * inf-child.c: White space.
1694 * infcmd.c: White space.
1695 * inferior.c: White space.
1696 * inf-loop.c: White space.
1697 * inflow.c: White space.
1698 * inline-frame.c: White space.
1699 * interps.c: White space.
1701 * gcore.c: White space.
1702 * gdb.c: White space.
1703 * gdbtypes.c: White space.
1704 * gnu-nat.c: White space.
1705 * gnu-v2-abi.c: White space.
1706 * gnu-v3-abi.c: White space.
1708 * findcmd.c: White space.
1709 * findvar.c: White space.
1710 * fork-child.c: White space.
1711 * frame-base.c: White space.
1712 * frame.c: White space.
1713 * frame-unwind.c: White space.
1714 * f-valprint.c: White space.
1716 * elfread.c: White space.
1717 * environ.c: White space.
1718 * eval.c: White space.
1719 * event-loop.c: White space.
1720 * event-top.c: White space.
1721 * exceptions.c: White space.
1722 * exec.c: White space.
1723 * expprint.c: White space.
1725 * dbxread.c: White space.
1726 * dcache.c: White space.
1727 * disasm.c: White space.
1728 * doublest.c: White space.
1729 * dsrec.c: White space.
1730 * dummy-frame.c: White space.
1731 * dwarf2expr.c: White space.
1732 * dwarf2-frame.c: White space.
1733 * dwarf2loc.c: White space.
1734 * dwarf2read.c: White space.
1736 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
1740 * python/py-value.c (valpy_hash): New function.
1741 (value_object_type): Register valpy_hash.
1743 2010-05-14 Hui Zhu <teawater@gmail.com>
1744 Michael Snyder <msnyder@vmware.com>
1746 * linux-fork.c (gdbthread.h): New include.
1747 (fork_info): Add parent_ptid.
1748 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
1750 (delete_checkpoint_command): Call inferior_call_waitpid.
1751 (checkpoint_command): Set parent_ptid.
1753 2010-05-13 Michael Snyder <msnyder@vmware.com>
1755 * dictionary.c: Re-indent to GNU coding standard.
1757 * charset.c: White space.
1758 * c-lang.c: White space.
1759 * cli-out.c: White space.
1760 * coffread.c: White space.
1761 * complaints.c: White space.
1762 * completer.c: White space.
1763 * corefile.c: White space.
1764 * corelow.c: White space.
1765 * cp-abi.c: White space.
1766 * cp-namespace.c: White space.
1767 * cp-support.c: White space.
1768 * cp-valprint.c: White space.
1769 * c-typeprint.c: White space.
1770 * c-valprint.c: White space.
1771 * blockframe.c: White space.
1772 * breakpoint.c: White space.
1773 * buildsym.c: White space.
1774 * blockframe.c: White space.
1775 * bcache.c: White space.
1776 * gdbarch.sh: White space, add blank lines.
1777 * arch-utils.c: Ditto.
1778 * gdbarch.c: Regenerate.
1779 * frame.c: White space, add blank lines.
1780 * stack.c: White space, add blank lines.
1781 (initialize_stack): Remove long-dead code.
1783 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1786 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
1787 (locexpr_read_variable, loclist_read_variable): Update the callers.
1789 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1792 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
1793 Remove check of NULL returned by tag_type_to_type.
1794 (die_containing_type): Remove variable type. Remove type_die variable
1795 initialization. Remove check of NULL returned by tag_type_to_type.
1797 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1800 * gdbtypes.c (lookup_struct_elt_type): Also lookup
1801 names of unnamed structures or unions.
1803 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1805 * procfs.c (proc_watchpoint_address): New function.
1806 (procfs_stopped_by_watchpoint): Remove useless check after
1807 find_procinfo_or_die call.
1808 (procfs_stopped_data_address): New function.
1809 (procfs_use_watchpoints): Register new watchpoint related function.
1811 2010-05-11 Tom Tromey <tromey@redhat.com>
1813 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
1815 2010-05-10 Michael Snyder <msnyder@vmware.com>
1817 * utils.c: White space cleanup.
1819 2010-05-10 Tom Tromey <tromey@redhat.com>
1821 * eval.c (ptrmath_type_p): Add 'lang' argument.
1822 (evaluate_subexp_standard): Update.
1823 (evaluate_subexp_with_coercion): Update.
1824 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
1826 2010-05-10 Michael Snyder <msnyder@vmware.com>
1828 * utils.c (do_fclose_cleanup) Restore local variable.
1830 2010-05-09 Doug Evans <dje@google.com>
1832 * record.c (init_record_core_ops): Rename record_core to record-core.
1834 2010-05-08 Joel Brobecker <brobecker@adacore.com>
1836 Implement task switching on pa-hpux.
1837 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
1838 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
1840 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1842 * valops.c (find_overload_match): Add missing i18n markup.
1844 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1846 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
1848 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1850 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
1851 list for the obconcat call.
1852 * mdebugread.c (parse_symbol): Likewise.
1853 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
1855 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
1856 New variable ap. Remove variables len and val.
1857 * symfile.h (obconcat): Likewise for the prototype.
1859 2010-05-07 Michael Snyder <msnyder@vmware.com>
1861 * python/python.c (execute_gdb_command): Remove unused variables.
1862 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
1863 * python/py-breakpoint.c (gdbpy_breakpoint_created):
1864 Remove unused variable.
1865 * python/py-cmd.c (cmdpy_function): Remove unused variable.
1866 (cmdpy_completer): Remove unused variable.
1867 * python/py-frame.c (frapy_find_sal): Remove unused variable.
1868 * python/py-function.c (fnpy_call): Remove unused variable.
1869 * python/py-objfile.c (objfile_to_objfile_object):
1870 Remove unused variable.
1871 * python/py-param.c (parmpy_init): Remove unused variable.
1872 * python/py-prettyprint.c (apply_varobj_pretty_printer):
1873 Remove unused variable.
1874 (gdbpy_default_visualizer): Remove unused variable.
1875 * python/py-progspace.c (pspace_to_pspace_object):
1876 Remove unused variable.
1877 * python/py-symtab.c (symtab_and_line_to_sal_object):
1878 Remove unused variable.
1879 * python/py-type.c (typy_template_argument):
1880 Remove unused variable.
1881 * python/py-value.c (valpy_string): Remove unused variable.
1882 (convert_value_from_python): Remove unused variables.
1884 2010-05-07 Michael Snyder <msnyder@vmware.com>
1886 * valops.c (value_cast_pointers): Restore unused variable 'type1',
1887 and use it to compute variable 't1'.
1889 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1891 * ada-lang.c (assign_aggregate): Remove unused variable.
1893 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
1896 * valops.c (find_overload_match): Handle fsym == NULL case.
1897 Add int no_adl argument.
1898 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
1900 Add int no_adl argument.
1901 (find_oload_champ_namespace): Add int no_adl argument.
1902 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
1904 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
1905 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
1906 Evaluate arguments and use them to perform ADL lookup.
1907 Pass no_adl argument to find_overload_match.
1908 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
1909 * cp-support.h: Added prototype for
1910 make_symbol_overload_list_namespace.
1911 * cp-support.c (make_symbol_overload_list_namespace): New function.
1912 (make_symbol_overload_list_adl_namespace): New function.
1913 (make_symbol_overload_list_adl): New function.
1914 (make_symbol_overload_list_using): Moved code to add function to
1915 overload set to make_symbol_overload_list_namespace.
1916 * c-exp.y: create UNKNOWN_CPP_NAME token.
1917 Add parse rule for ADL functions.
1918 (classify_name): Recognize an UNKNOWN_CPP_NAME.
1920 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1922 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
1925 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1927 Implement task switching on solaris targets.
1928 * sol-thread.c (thread_db_find_thread_from_tid)
1929 (sol_get_ada_task_ptid): New functions.
1930 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
1932 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1934 * remote.c (remote_query_supported_append): Use reconcat.
1935 (remote_query_supported): Install a cleanup. Use reconcat.
1937 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1939 * gdbarch.sh (qsupported): Delete.
1940 * gdbarch.h, gdbarch.c: Regenerate.
1941 * remote.c (remote_query_supported): Remove use of
1944 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1946 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
1949 2010-05-06 Michael Snyder <msnyder@vmware.com>
1951 * xml-support.c (xinclude_start_include): Delete unused variable.
1952 (xml_process_xincludes): Delete unused variable.
1953 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
1954 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
1955 (tdesc_find_arch_register): Delete unused variable.
1956 (tdesc_use_registers): Delete unused variable.
1957 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
1958 * inferior.c (print_inferior): Delete unused variable.
1959 * record.c (record_open_1): Delete unused variable.
1960 (record_restore): Delete unused variable.
1961 (cmd_record_save): Delete unused variable.
1962 * gcore.c (derive_heap_segment): Delete unused variable.
1963 (objfile_find_memory_regions): Use unused variable.
1964 * jit.c (jit_inferior_init): Delete unused variable.
1965 * progspace.c (clone_program_space): Delete unused variable.
1966 (pspace_empty_p): Delete unused variable.
1968 * frame-unwind.c (frame_unwind_find_by_frame):
1969 Delete unused variable.
1970 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
1971 * cp-support.c (mangled_name_to_comp): Delete unused variable.
1972 (method_name_from_physname): Delete unused variable.
1973 (cp_func_name): Delete unused variable.
1974 (cp_validate_operator): Delete unused variable.
1975 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1976 Delete unused variable.
1977 * trad-frame.c (trad_frame_get_prev_register):
1978 Delete unused variable.
1979 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
1981 * serial.c (serial_for_fd): Delete unused variable.
1982 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
1983 * top.c (execute_command): Delete unused variable.
1984 (init_main): Delete unused variable.
1985 * utils.c (do_fclose_cleanup): Delete unused variable.
1986 (do_all_inferior_continuations): Delete unused variable.
1987 (initialize_utils): Delete unused variable.
1988 (internal_problem_mode): Delete unused global.
1989 * frame.c (get_prev_frame): Delete unused global.
1990 (get_frame_locals_address): Delete unused global.
1991 (get_frame_args_address): Delete unused global.
1993 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
1994 (pascal_type_print_varspec_prefix): Delete unused variable.
1995 * f-typeprint.c (f_type_print_base): Delete unused variable.
1996 (f_type_print_varspec_suffix): Delete unused variable.
1997 * m2-typeprint.c (m2_print_type): Delete unused variable.
1998 (m2_long_set): Delete unused variable.
1999 * ada-valprint.c (ada_val_print_1): Delete unused variable.
2000 * d-valprint.c (dynamic_array_type): Delete unused variable.
2001 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
2002 Delete unused variable.
2003 (f77_create_arrayprint_offset_tbl): Delete unused variable.
2004 * m2-valprint.c (m2_val_print): Delete unused variable.
2006 * ui-out.c (ui_out_field_int): Delete unused variable.
2007 (ui_out_field_fmt_int): Delete unused variable.
2008 * varobj.c (varobj_list_children): Delete unused variable.
2009 (varobj_set_value): Delete unused variable.
2010 (install_new_value_visualizer): Delete unused variable.
2011 (varobj_set_visualizer): Delete unused variable.
2012 (varobj_update): Delete unused variable.
2013 (varobj_editable_p): Delete unused variable.
2014 (c_value_of_root): Delete unused variable.
2015 (cplus_describe_child): Delete unused variable.
2017 * ada-lang.c (add_defn_to_vec): Delete unused variable.
2018 (decode_constrained_packed_array_type): Delete unused variable.
2019 (add_defn_to_vec): Delete unused variable.
2020 (symbol_completion_match): Delete unused variable.
2021 (value_tag_from_contents_and_address): Delete unused variable.
2022 (ada_evaluate_subexp): Delete unused variable.
2023 * c-lang.c (classify_type): Delete unused variable.
2024 * f-lang.c (f_printstr): Delete unused variable.
2025 * objc-lang.c (objc_printstr): Delete unused variable.
2026 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
2027 * jv-lang.c (type_from_class): ifdef unused variable.
2028 (java_class_name_from_physname): Delete unused variable.
2029 * m2-lang.c (m2_printstr): Delete unused variable.
2031 * objfiles.c (objfile_relocate): Delete unused variable.
2032 * maint.c (_initialize_maint_cmds): Delete unused variable.
2033 * demangle.c (_initialize_demangler): Delete unused variable.
2034 * corefile.c (reopen_exec_file): Delete unused variable.
2035 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
2036 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
2038 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
2039 * memattr.c (mem_delete): Delete unused variable.
2040 (invalidate_target_mem_regions): Delete unused variable.
2041 * mem-break.c (default_memory_insert_breakpoint):
2042 Delete unused variable.
2043 * target.c (target_get_osdata): Delete unused variable.
2044 * parse.c (length_of_subexp): Delete unused variable.
2045 (prefixify_subexp): Delete unused variable.
2046 (exp_iterate): Delete unused variable.
2047 * reverse.c (delete_bookmark_command): Delete unused variable.
2049 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
2050 * macroexp.c (gather_arguments): Delete unused variable.
2051 (substitute_args): Delete unused variable.
2052 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
2053 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
2054 (_initialize_gdbarch): Delete unused variable.
2055 * gdbarch.c, gdbarch.h: Regenerate.
2056 * arch-utils.c (initialize_current_architecture):
2057 Delete unused variable.
2058 (_initialize_gdbarch_utils): Delete unused variable.
2059 * gdbtypes.c (make_cv_type): Delete unused variable.
2060 (make_type_with_address_space): Delete unused variable.
2062 * linespec.c (decode_compound): Delete unused variable.
2063 * dictionary.c (iterator_next_hashed): Delete unused variable.
2064 * infcall.c (call_function_by_hand): Delete unused variable.
2065 * infcmd.c (step_1): Delete unused variable.
2066 (registers_info): Delete unused variable.
2067 (attach_command): Delete unused variable.
2068 * infrun.c (follow_exec): Delete unused variable.
2069 (handle_step_into_function_backwards): Delete unused variable.
2070 (_initialize_infrun): Delete unused variable.
2071 * stack.c (parse_frame_specification_1): Delete unused variable.
2072 (frame_info): Delete unused variable.
2073 (backtrace_command_1): Delete unused variable.
2074 (catch_info): Delete unused variable.
2076 * eval.c (evaluate_subexp_standard): Delete unused variable.
2077 * valops.c (value_cast_pointers): Delete unused variable.
2078 (value_dynamic_cast): Delete unused variable.
2079 (value_array): Delete unused variable.
2080 (find_overload_match): Delete unused variable.
2081 * valarith.c (value_subscript): Delete unused variable.
2082 (value_binop): Delete unused variable.
2083 * valprint.c (_initialize_valprint): Delete unused variable.
2084 * printcmd.c (print_command_1): Delete unused variable.
2085 (address_info): Delete unused variable.
2086 (printf_command): Delete unused variable.
2088 * auxv.c (target_auxv_search): Delete unused variable.
2089 * blockframe.c (get_frame_block): Delete unused variable.
2090 * regcache.c (regcache_cpy): Delete unused variable.
2091 (regcache_cpy_no_passthrough): Delete unused variable.
2092 * charset.c (wchar_iterate): Delete unused variable.
2093 (find_charset_names): Delete unused variable.
2094 (_initialize_charset): Delete unused variable.
2095 * disasm.c (do_mixed_source_and_assembly):
2096 Delete unused variable.
2097 * source.c (set_default_source_symtab_and_line):
2098 Delete unused variable.
2099 (set_substitute_path_command): Delete unused variable.
2100 * value.c (preserve_values): Delete unused variable.
2101 (value_from_double): Delete unused variable.
2103 2010-05-05 Michael Snyder <msnyder@vmware.com>
2105 * psymtab.c (lookup_partial_symbol): Delete unused variable.
2106 (find_last_source_symtab_from_partial): Delete unused variable.
2107 * symfile.c (place_section): Delete unused variable.
2108 (default_symfile_offsets): Delete unused variable.
2109 (get_debug_link_info): Delete unused variable.
2110 (find_separate_debug_file_by_debuglink): Delete unused variable.
2111 (add_symbol_file_command): Delete unused variable.
2112 (symfile_find_segment_sections): Delete unused variable.
2113 * symmisc.c (free_symtab): Delete unused variable.
2114 (dump_symtab_1): Delete unused variable.
2115 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
2116 (find_pc_sect_symtab): Delete unused variable.
2117 (skip_prologue_using_lineinfo): Delete unused variable.
2118 (sources_info): Delete unused variable.
2119 (completion_list_add_name): Delete unused variable.
2120 (expand_line_sal): Delete unused variable.
2122 * breakpoint.c (validate_commands_for_breakpoint):
2123 Delete unused variables.
2124 (insert_catchpoint): Delete unused variable.
2125 (update_watchpoint): Delete unused variable.
2126 (insert_bp_location): Delete unused variable.
2127 (insert_breakpoint_locations): Delete unused variable.
2128 (remove_breakpoint_1): Delete unused variable.
2129 (software_breakpoint_inserted_here_p): Delete unused variable.
2130 (watchpoints_triggered): Delete unused variable.
2131 (bpstat_check_watchpoint): Delete unused variable.
2132 (bpstat_stop_status): Delete unused variable.
2133 (print_one_breakpoint_location): Delete unused variable.
2134 (allocate_bp_location): Delete unused variable.
2135 (create_breakpoint): Delete unused variable.
2136 (watch_command_1): Delete unused variable.
2137 (catch_exception_command_1): Delete unused variable.
2138 (catch_ada_exception_command): Delete unused variable.
2139 (delete_breakpoint): Delete unused variable.
2140 (breakpoint_re_set_one): Delete unused variable.
2141 (do_enable_breakpoint): Delete unused variable.
2143 2010-05-06 Pedro Alves <pedro@codesourcery.com>
2145 * amd64-tdep.c: Include disasm.h.
2146 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
2147 (amd64_insn_length): Moved to disasm.c and renamed.
2148 (fixup_riprel): Adjust.
2149 * disasm.c (do_ui_file_delete): New.
2150 (gdb_insn_length): New.
2151 (gdb_buffered_insn_length_fprintf)
2152 (gdb_buffered_insn_length_init_dis)
2153 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
2155 * disasm.h (gdb_insn_length): Declare.
2156 (gdb_buffered_insn_length): Declare.
2158 2010-05-06 Pedro Alves <pedro@codesourcery.com>
2160 * remote.c (clear_threads_parsing_context): New.
2161 (remote_threads_info): Delete unused null_cleanup. Install a
2162 cleanup to clear the threads_parsing_context in case parsing
2165 2010-05-05 Michael Snyder <msnyder@vmware.com>
2167 * c-exp.y (parse_string_or_char): Delete unused variable.
2168 (c_lex): Delete unused variable.
2169 * cp-name-parser.y (cpname_lex): Delete unused variable.
2170 * ada-exp.y (find_primitive_type): Delete unused variable.
2171 (write_var_or_type): Delete unused variable.
2172 * jv-exp.y (java_parse): Delete unused variable.
2173 (push_expression_name): Delete unused variable.
2174 * p-exp.y (pascal_lex): Delete unused variable.
2176 2010-05-05 Pedro Alves <pedro@codesourcery.com>
2178 * remote.c (remote_threads_info): Really revert previous previous
2181 2010-05-05 Michael Snyder <msnyder@vmware.com>
2183 * elfread.c (elf_symtab_read): Delete unused variable.
2184 (find_separate_debug_file_by_buildid): Delete unused variables.
2185 (elf_symfile_read): Delete unused variable.
2187 * coffread.c (coff_symfile_read): Delete unused variables.
2189 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
2190 (read_pe_exported_syms): Delete unused variable.
2192 * stabsread.c (define_symbol): Delete unused variable.
2194 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
2195 (process_psymtab_comp_unit): Delete unused variable.
2196 (dwarf2_build_psymtabs_hard): Delete unused variable.
2197 (load_partial_comp_unit): Delete unused variable.
2198 (create_all_comp_units): Delete unused variable.
2199 (scan_partial_symbols): Delete unused variable.
2200 (add_partial_symbol): Delete unused variable.
2201 (add_partial_namespace): Delete unused variable.
2202 (add_partial_enumeration): Delete unused variable.
2203 (load_full_comp_unit): Delete unused variable.
2204 (process_full_comp_unit): Delete unused variable.
2205 (read_file_scope): Delete unused variable.
2206 (read_type_unit_scope): Delete unused variable.
2207 (process_structure_scope): Delete unused variable.
2208 (process_enumeration_scope): Delete unused variable.
2209 (read_tag_ptr_to_member_type): Delete unused variable.
2210 (read_typedef): Delete unused variable.
2211 (read_partial_die): Delete unused variable.
2212 (decode_locdesc): Delete unused variable.
2213 (zeroed_partial_die): Delete unused global variable.
2215 * tui/tui-interp.c (_initialize_tui_interp):
2216 Delete unused variable.
2217 * tui/tui-regs.c tui_display_registers_from):
2218 Delete unused variable.
2219 (tui_check_register_values): Delete unused variable.
2220 (tui_register_format): Delete unused variable.
2221 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
2222 * tui/tui-windata.c (tui_display_data_from_line):
2223 Delete unused variables.
2224 (tui_vertical_data_scroll): Delete unused variables.
2226 2010-05-05 Michael Snyder <msnyder@vmware.com>
2228 * remote.c (remote_threads_info): Revert questionable part of
2229 the previous change.
2231 2010-05-05 Michael Snyder <msnyder@vmware.com>
2233 * mi/mi-out.c (mi_table_begin): Delete unused variable.
2234 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
2235 (mi_cmd_var_list_children): Delete unused variable.
2236 (varobj_update_one): Delete unused variable.
2237 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
2238 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
2239 Delete unused variable.
2240 (mi_cmd_stack_list_variables): Delete unused variable.
2241 (list_args_or_locals): Delete unused variable.
2242 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
2243 Delete unused variables.
2244 (mi_cmd_file_list_exec_source_files): Delete unused variable.
2245 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
2246 Delete unused variable.
2247 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
2248 (mi_cmd_interpreter_exec): Delete unused variable.
2249 (mi_on_normal_stop): Delete unused variable.
2250 * mi/mi-main.c (run_one_inferior): Delete unused variable.
2251 (print_one_inferior): Delete unused variables.
2252 (mi_execute_command): Delete unused variable.
2253 (mi_cmd_execute): Delete unused variable.
2254 (timestamp): Delete unused variable.
2256 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
2257 (restore_binary_file): Delete unused variable.
2258 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
2259 * cli/cli-script.c (define_command): Delete unused variables.
2260 (recurse_read_control_structure): Delete unused variable.
2261 (script_from_file): Delete unused variable.
2262 * cli/cli-cmds.c (complete_command): Delete unused variable.
2263 (disassemble_command): Delete unused variable.
2265 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
2266 * tracepoint.c (delete_trace_variable_command):
2267 Delete unused variables.
2268 (encode_actions_1): Delete unused variables.
2269 (start_tracing): Delete unused variable.
2270 (trace_status_mi): Delete unused variable.
2271 (tfind_1): Delete unused variable.
2272 (trace_find_pc_command): Delete unused variable.
2273 (trace_find_line_command): Delete unused variables.
2274 (trace_find_range_command): Delete unused variables.
2275 (trace_find_outside_command): Delete unused variables.
2276 (parse_tracepoint_definition): Delete unused variables.
2277 (tfile_fetch_registers): Delete unused variable.
2279 * dcache.c (dcache_init): Delete unused variable.
2280 (dcache_info): Delete unused variable.
2282 * remote.c (remote_threads_info): Delete unused variable.
2283 (process_stop_reply) :Delete unused variable.
2284 (remote_get_trace_status): Delete unused variables.
2286 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
2287 (thread_from_lwp): Delete unused variable.
2288 (enable_thread_event_reporting): Delete unused variable.
2289 (check_for_thread_db): Delete unused variables.
2290 (thread_db_find_new_threads_2): Delete unused variable.
2292 * linux-fork.c (info_checkpoints_command): Delete unused variables.
2293 (checkpoint_command): Delete unused variable.
2294 (linux_fork_context): Delete unused variables.
2296 * linux-nat.c (linux_parent_pid): Delete unused global variable.
2297 (linux_tracefork_child): Delete unused variable.
2298 (linux_child_follow_fork): Delete unused variable.
2299 (linux_nat_detach): Delete unused variable.
2300 (linux_handle_extended_wait): Delete unused variable.
2301 (linux_nat_has_pending_sigint): Delete unused variable.
2302 (linux_nat_find_memory_regions): Delete unused variable.
2303 (linux_nat_make_corefile_notes): Delete unused variables.
2304 (linux_nat_info_proc_cmd): Delete unused variable.
2305 (linux_proc_pending_signals): Delete unused variable.
2306 (linux_nat_stop_lwp): Delete unused variables.
2307 (_initialize_linux_nat): Delete unused variable.
2309 * ser-pipe.c (pipe_ops): Delete unused global variable.
2311 * linux-record.c (record_linux_system_call):
2312 Delete unused variables.
2314 * corelow.c (core_xfer_partial): Delete unused variables.
2316 * solib-svr4.c (find_program_interpreter): Delete unused variable.
2317 (svr4_solib_create_inferior_hook): Add ifdef around
2318 conditionally-used variable declarations.
2320 * solib.c (solib_find): Delete unused variable.
2321 (free_so_symbols): Delete unused variable.
2322 (info_sharedlibrary_command): Delete unused variable.
2323 (reload_shared_libraries_1): Delete unused variable.
2324 (_initialize_solib): Delete unused variable.
2326 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
2327 (i386_collect_xstateregset): Delete unused variable.
2328 * i387-tdep.c (i387_print_float_info): Delete unused variable.
2330 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
2331 Delete unused variable 'type'.
2333 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2335 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
2336 ada-lang.c: Remove comment mentioning these macros.
2337 * m2-exp.y: Delete commented out code.
2339 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2341 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
2343 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
2345 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2347 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
2348 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
2350 (cleanup_kernel_helper_return): Likewise.
2351 * arm-tdep.c (copy_unmodified): Likewise.
2352 (copy_preload): Likewise.
2353 (copy_copro_load_store): Likewise.
2354 (cleanup_branch): Likewise.
2355 (copy_b_bl_blx): Likewise.
2356 (copy_bx_blx_reg): Likewise.
2357 (copy_alu_imm): Likewise.
2358 (copy_alu_reg): Likewise.
2359 (copy_alu_shifted_reg): Likewise.
2360 (cleanup_load): Likewise.
2361 (cleanup_store): Likewise.
2362 (cleanup_block_load_pc): Likewise.
2363 (cleanup_svc): Likewise.
2364 (copy_undef): Likewise.
2365 (copy_unpred): Likewise.
2366 * remote.c (register_remote_support_xml): Likewise.
2368 2010-05-05 Hui Zhu <teawater@gmail.com>
2370 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
2372 2010-05-04 Mark Kettenis <kettenis@gnu.org>
2374 * remote.c (register_remote_support_xml)
2375 (remote_query_supported_append, remote_query_supported): Add cast
2376 to NULL used as sentinel.
2377 * tracepoint.c (tvariables_info_1): Likewise.
2378 * utils.c (add_internal_problem_command): Likewise.
2380 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2382 * dwarf2loc.c (read_pieced_value, write_pieced_value,
2383 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
2384 registers gracefully.
2386 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2388 * exec.c (print_section_info): Display entry point without arch
2391 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2394 * printcmd.c (x_command): Only dereference once implicitly for
2397 2010-05-03 Doug Evans <dje@google.com>
2399 * event-loop.c (gdb_timer): Delete unused global.
2400 (create_timer): Update.
2402 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2404 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
2405 CURRENT->DECLARATION case.
2406 * cp-support.h (struct using_direct): Provide extended comment.
2408 2010-05-03 Mark Kettenis <kettenis@gnu.org>
2410 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
2411 HPPABSD_SIZEOF_GREGS.
2412 (HPPAOBSD_SIZEOF_FPREGS): New define.
2413 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
2414 (hppaobsd_supply_fpregset): New function.
2415 (hppaobsd_gregset): Renamed from hppabsd_gregset.
2416 (hppaobsd_fpregset): New variable.
2417 (hppaobsd_regset_from_core_section): Handle floating-point registers.
2418 (_initialize_hppabsd_tdep): Remove spurious blank line.
2420 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2423 * p-valprint.c (pascal_value_print): Always dereference a value with
2424 type code TYPE_CODE_REF.
2426 2010-05-03 Pedro Alves <pedro@codesourcery.com>
2428 * remote.c (remote_notice_signals): New.
2429 (remote_start_remote): In non-stop mode, update the remote end on
2430 which signals it can silently pass.
2431 (init_remote_ops): Install remote_notice_signals.
2433 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2435 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
2436 * command.h (error_no_arg): ... here. Remove NORETURN, change
2437 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2438 * defs.h (NORETURN, ATTR_NORETURN): Remove.
2439 (perror_with_name, verror, error, error_stream, vfatal, fatal)
2440 (internal_verror, internal_error, nomem): Remove NORETURN, change
2441 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2442 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
2443 (throw_vfatal, throw_error): Remove NORETURN.
2444 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
2445 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
2446 (throw_error, deprecated_throw_reason): Remove NORETURN, change
2447 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2448 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
2449 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
2451 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
2452 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
2454 * target.c (tcomplain): Likewise.
2455 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
2457 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
2458 (internal_error, perror_with_name, nomem): Remove NORETURN.
2459 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
2462 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2464 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2465 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
2466 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
2467 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2468 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
2469 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2470 * complaints.h (complaint, internal_complaint): Likewise.
2471 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
2472 (ATTR_FORMAT): Remove.
2473 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
2474 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
2475 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
2476 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
2477 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
2478 (internal_error, internal_vwarning, internal_warning, warning)
2479 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2480 * disasm.c (fprintf_disasm): Likewise.
2481 * exceptions.c (throw_it): Likewise.
2482 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
2483 (throw_error): Likewise.
2484 * language.h (type_error, range_error): Likewise.
2485 * linespec.c (cplusplus_error): Likewise.
2486 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
2487 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
2488 * monitor.c (monitor_debug): Likewise.
2489 * parser-defs.h (parser_fprintf): Likewise.
2490 * serial.h (serial_printf): Likewise.
2491 * tui/tui-hooks.c (tui_query_hook): Likewise.
2492 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
2493 (uo_message): Likewise.
2494 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
2495 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
2497 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
2499 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2501 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
2502 (cli_table_header, cli_begin, cli_end, cli_field_int)
2503 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
2504 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
2505 Delete forward declarations.
2506 (cli_ui_out_impl): Move below the callbacks.
2507 (_initialize_cli_out): Delete.
2509 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2511 * README: Use consistent `GDB' and `GDBserver' spellings.
2513 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2515 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2517 2010-05-01 Pedro Alves <pedro@codesourcery.com>
2519 * infrun.c (prepare_for_detach): In non-stop, context switch to
2520 the thread that got the event before handling the event.
2522 2010-04-30 Tom Tromey <tromey@redhat.com>
2524 * symtab.c (symbol_set_names): Fix typo.
2526 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2528 * python/py-param.c (parm_constants): Avoid ARI warning
2529 by adding ARI comment.
2530 (parmpy_init): Likewise.
2532 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2534 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
2535 and created type for re-use.
2537 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2539 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
2541 2010-04-29 Doug Evans <dje@google.com>
2543 * ser-base.h (reschedule): Delete prototype.
2544 * ser-base.c (reschedule): Make static.
2546 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2548 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
2549 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
2550 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
2552 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
2555 2010-04-29 Pedro Alves <pedro@codesourcery.com>
2559 * regcache.c (registers_changed): Rename to ...
2560 (registers_changed_ptid): ... this, and only delete register cache
2561 entries matching the ptid filter argument.
2562 (registers_changed): Reimplement on top of registers_changed_ptid.
2563 * regcache.h (registers_changed_ptid): Declare.
2564 * target.c (target_resume): Flush register caches.
2566 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
2567 Tom Tromey <tromey@redhat.com>
2568 Thiago Jung Bauermann <bauerman@br.ibm.com>
2570 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
2571 (SUBDIR_PYTHON_SRCS): Likewise.
2572 (py-parameter.o): New rule.
2573 * python/py-parameter.c: New file.
2574 * python/python-internal.h (gdbpy_initialize_parameter)
2575 (gdbpy_parameter, gdbpy_parameter_value)
2576 (gdbpy_parse_command_name): Declare.
2577 * python/py-cmd.c (parse_command_name): Rename to
2578 gdbpy_parse_command_name.
2579 (gdbpy_parse_command_name): Accept a starting list parameter and
2581 (cmdpy_init): Use gdbpy_parse_command_name.
2582 * python/python.c (parameter_to_python): Rename to
2583 gdbpy_parameter_to_python. Accept enum var_types and value.
2584 (gdbpy_parameter): Use gdbpy_parameter_value.
2585 (_initialize_python): Call gdbpy_initialize_parameters.
2587 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2589 * MAINTAINERS: Add myself for write after approval privileges.
2591 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
2594 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
2595 (COMMON_OBS): Add d-lang.o d-valprint.o.
2596 (HFILES_NO_SRCDIR): Add d-lang.h.
2597 * NEWS: Mention D language support.
2598 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
2599 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
2600 * d-lang.c: New file.
2601 * d-lang.h: New file.
2602 * d-valprint.c: New file.
2603 * defs.h (enum language): Add language_d.
2604 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
2605 * language.c (binop_result_type, integral_type, character_type)
2606 (string_type, boolean_type, structured_type): Add language_d.
2607 * symfile.c (init_filename_language_table): Add language_d.
2608 * symtab.c: Include d-lang.h.
2609 (symbol_init_language_specific, symbol_find_demangled_name)
2610 (symbol_natural_name, lookup_symbol_in_language)
2611 (symbol_demangled_name, symbol_matches_domain): Add language_d.
2613 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2615 * solib-svr4.c (solib_svr4_r_map): Expand function description.
2617 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2619 * symfile.c (init_filename_language_table): Register .dg files
2622 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2624 * gdbtypes.h (struct main_type): Expand comment about target_type
2627 2010-04-27 Pedro Alves <pedro@codesourcery.com>
2628 Tristan Gingold <gingold@adacore.com>
2630 * symfile.c (reread_symbols): Also search for file in libraries.
2633 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2635 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
2636 in terms of configuration.
2638 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2640 * objfiles.c: Include solist.h.
2641 (free_all_objfiles): New variable so. Check stale solist objfiles.
2642 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
2643 and no_shared_libraries.
2645 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2648 * python/py-auto-load.c (source_section_scripts): Remove trailing
2649 new-line in i18n string.
2651 2010-04-26 Doug Evans <dje@google.com>
2653 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
2655 2010-04-26 Tom Tromey <tromey@redhat.com>
2657 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
2660 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2662 Removal of config/i386/nm-i386sol2.h native configuration file.
2663 * config/i386/nm-i386sol2.h: Remove file.
2664 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
2665 * config/i386/sol2-64.mh: Idem.
2666 * config/djgpp/fnchange.lst: Remove reference to that file.
2667 * Makefile.in (HFILES_NO_SRCDIR): Idem.
2669 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2671 PR breakpoints/11531.
2672 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
2673 macro definition and related comment.
2674 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
2675 (resume): Remove code and comment related to this macro.
2677 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2679 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
2682 2010-04-24 Pedro Alves <pedro@codesourcery.com>
2684 * defs.h: Adjust comment.
2685 * filesystem.h, filesystem.c: New files.
2686 * Makefile.in (SFILES): Add filesystem.c.
2687 (COMMON_OBS): Add filesystem.o.
2688 * solib.c (solib_find): Handle DOS-based filesystems. Handle
2689 different target and host path flavours.
2690 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2691 has_dos_based_file_system on the gdbarch.
2692 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
2693 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
2694 * i386-tdep.c (i386_go32_init_abi): Ditto.
2695 * gdbarch.sh (has_dos_based_file_system): New.
2696 * gdbarch.h, gdbarch.c: Regenerate.
2697 * NEWS: Mention improved support for remote targets with DOS-based
2698 filesystems. Mention new `set/show target-file-system-kind'
2701 2010-04-23 Stan Shebs <stan@codesourcery.com>
2703 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
2705 (struct agent_reqs): Remove.
2706 (ax_reg_mask): Declare.
2707 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
2708 (free_agent_expr): Free reg_mask.
2709 (ax_print): Add scope and register mask info.
2710 (ax_reqs): Remove agent_reqs argument, use agent expression
2711 fields, and move part of register mask computation to...
2712 (ax_reg_mask): New function.
2713 * ax-gdb.c (gen_trace_static_fields): Call it.
2714 (gen_traced_pop): Ditto.
2715 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
2716 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
2717 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
2718 (gen_eval_for_expr): Ditto, and require an rvalue.
2719 (agent_command): Call ax_reqs.
2720 (agent_eval_command): Ditto.
2721 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
2722 (validate_action_line): Ditto.
2723 (collect_symbol): Ditto.
2724 (encode_actions_1): Ditto.
2726 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
2727 Paul Pluzhnikov <ppluzhnikov@google.com>
2728 Jan Kratochvil <jan.kratochvil@redhat.com>
2730 Fix deadlock on looped list of loaded shared objects.
2731 * solib-svr4.c (LM_PREV): New function.
2732 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
2733 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
2734 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
2735 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
2737 2010-04-23 Doug Evans <dje@google.com>
2739 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
2741 * configure: Regenerate.
2742 * main.c: #include "python/python.h".
2743 (captured_main): Defer loading auto-loaded scripts until after
2744 local_gdbinit has been sourced.
2745 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
2746 (load_auto_scripts_for_objfile): New function.
2747 (auto_load_new_objfile): Call it.
2748 * python/python.h (gdbpy_global_auto_load): Declare.
2749 (load_auto_scripts_for_objfile): Declare.
2751 Add support for auto-loading scripts from .debug_gdb_scripts section.
2752 * NEWS: Add entry for .debug_gdb_scripts.
2753 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
2754 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
2755 (py-auto-load.o): New rule.
2756 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
2757 * cli/cli-cmds.h (find_and_open_script): Update prototype.
2758 * python/py-auto-load.c: New file.
2759 * python/python-internal.h: #include <stdio.h>.
2760 (set_python_list, show_python_list): Declare.
2761 (gdbpy_initialize_auto_load): Declare.
2762 (source_python_script_for_objfile): Declare.
2763 * python/python.c: Remove #include of observer.h.
2764 (gdbpy_auto_load): Moved to py-auto-load.c.
2765 (GDBPY_AUTO_FILENAME): Ditto.
2766 (gdbpy_new_objfile): Delete.
2767 (source_python_script_for_objfile): New function.
2768 (set_python_list, show_python_list): Make externally visible.
2769 (_initialize_python): Move "auto-load" command to py-auto-load.c
2770 and observer_attach_new_objfile to py-auto-load.c.
2772 2010-04-23 Jerome Guitton <guitton@adacore.com>
2774 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
2775 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
2776 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
2778 (alpha_heuristic_analyze_probing_loop): New function.
2779 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
2780 and handle cases when a stack probe loop is generated.
2781 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
2782 (alpha_mdebug_max_frame_size_exceeded): New function.
2783 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
2784 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
2785 Return 0 when the maximum debuggable frame size has been exceeded.
2787 2010-04-23 Joel Brobecker <brobecker@adacore.com>
2790 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
2792 2010-04-20 Chris Moller <cmoller@redhat.com>
2796 * symtab.c (rbreak_command): Added code to include a filename
2797 specification in the rbreak argument.
2798 * NEWS: Added a brief description of filename-qualified rbreak.
2800 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2802 Fix crashes on dangling display expressions.
2803 * ada-lang.c (ada_operator_check): New function.
2804 (ada_exp_descriptor): Fill-in the field operator_check.
2805 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
2806 * jv-lang.c (exp_descriptor_java): Likewise.
2807 * m2-lang.c (exp_descriptor_modula2): Likewise.
2808 * scm-lang.c (exp_descriptor_scm): Likewise.
2809 * parse.c (exp_descriptor_standard): Likewise.
2810 (operator_check_standard): New function.
2811 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
2812 * parser-defs.h (struct exp_descriptor): New field operator_check.
2813 (operator_check_standard, exp_uses_objfile): New declarations.
2814 * printcmd.c: Remove the inclusion of solib.h.
2815 (display_uses_solib_p): Remove the function.
2816 (clear_dangling_display_expressions): Call lookup_objfile_from_block
2817 and exp_uses_objfile instead of display_uses_solib_p.
2818 * solist.h (struct so_list) <objfile>: New comment.
2819 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
2820 * symtab.h (lookup_objfile_from_block): New declaration.
2821 (struct general_symbol_info) <obj_section>: Extend the comment.
2823 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2824 Thiago Jung Bauermann <bauerman@br.ibm.com>
2826 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
2827 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
2828 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
2829 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
2830 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
2831 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
2832 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
2833 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
2834 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
2835 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
2836 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
2837 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
2838 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
2839 Define, in case <ptrace.h> doesn't provide it.
2840 (booke_debug_info): New variable.
2841 (max_slots_number): Ditto.
2842 (hw_break_tuple): New struct.
2843 (thread_points): Ditto.
2844 (ppc_threads): New variable.
2845 (PPC_DEBUG_CURRENT_VERSION): New define.
2846 (have_ptrace_new_debug_booke): New function.
2847 (ppc_linux_check_watch_resources): Renamed to ...
2848 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
2849 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
2850 (booke_cmp_hw_point): New function.
2851 (booke_find_thread_points_by_tid): Ditto.
2852 (booke_insert_point): Ditto.
2853 (booke_remove_point): Ditto.
2854 (ppc_linux_insert_hw_breakpoint): Ditto.
2855 (ppc_linux_remove_hw_breakpoint): Ditto.
2856 (get_trigger_type): Ditto.
2857 (ppc_linux_insert_watchpoint): Handle BookE processors.
2858 (ppc_linux_remove_watchpoint): Ditto.
2859 (ppc_linux_new_thread): Ditto.
2860 (ppc_linux_thread_exit): New function..
2861 (ppc_linux_stopped_data_address): Handle BookE processors.
2862 (ppc_linux_watchpoint_addr_within_range): Ditto.
2863 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
2864 to_remove_hw_breakpoint fields of the target operations struct.
2865 Add observe for the thread_exit event.
2867 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2869 * i386-linux-nat.c (regmap): Removed.
2870 (fetch_register): Replace regmap with
2871 i386_linux_gregset_reg_offset.
2872 (store_register): Likewise.
2873 (supply_gregset): Likewise.
2874 (fill_gregset): Likewise.
2876 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
2879 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
2881 2010-04-22 Chris Moller <cmoller@redhat.com>
2883 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2884 method of popping recursion-detection stack with a method based on
2885 obstack_object_size(). (Similar to the PR9167 patch below, but for
2886 the static array obstack rather than the static member obstack.)
2888 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2890 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
2891 (_initialize_amd64_linux_nat): Replace
2892 amd64_linux_gregset64_reg_offset with
2893 amd64_linux_gregset_reg_offset.
2895 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
2898 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
2900 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2903 * stabsread.c (set_length_in_type_chain): New function.
2904 (read_struct_type): Call set_length_in_type_chain function.
2905 (read_enum_type): Idem.
2907 2010-04-21 Stan Shebs <stan@codesourcery.com>
2908 Nathan Sidwell <nathan@codesourcery.com>
2910 * tracepoint.c (trace_save): Open in binary mode.
2912 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2914 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
2916 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
2917 builtin_char32 fields.
2918 * printcmd.c (decode_format): Set char size to '\0'
2919 for strings unless explicit size is given.
2920 (print_formatted): Correct calculation of NEXT_ADDRESS
2921 for 16 or 32 bit strings.
2922 (do_examine): Do not force byte size for strings.
2923 Use builtin_char16 and builtin_char32 types to display
2924 16 or 32 bit-wide strings.
2925 (x_command): Set LAST_SIZE to 'b' for string type.
2927 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
2930 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2933 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
2934 there is no .reg-xstate section.
2935 (i386_linux_core_read_description): Check XCR0 first.
2937 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2939 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
2942 2010-04-21 Chris Moller <cmoller@redhat.com>
2945 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2946 method of popping recursion-detection stack with a method based on
2947 obstack_object_size().
2949 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2952 * p-valprint.c (pascal_val_print): Fix default printing of integer
2955 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2957 Fix compilation warning on gcc-4.1.2.
2958 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
2959 local variable`pc' to zero.
2961 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2963 Implement thread support with core files on alpha-tru64.
2964 * dec-thread.c (dec_thread_find_new_threads): New function,
2965 extracted from resync_thread_list.
2966 (resync_thread_list): Add OPS parameter. Replace extracted-out
2967 code by call to dec_thread_find_new_threads.
2968 (dec_thread_wait): Update call to resync_thread_list.
2969 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
2971 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2973 * ada-lang.c (value_pointer): New function.
2974 (make_array_descriptor): Call value_pointer to convert addresses to
2977 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2979 * rs6000-aix-tdep.c: #include exceptions.h.
2980 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
2981 while reading the memory at ADDR, then ADDR cannot be a function
2984 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2986 * ada-typeprint.c (ada_print_typedef): New function.
2987 * ada-lang.h (ada_print_typedef): Add declaration.
2988 * ada-lang.c (ada_language_defn): set la_print_typdef field
2989 to ada_print_typedef.
2991 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2993 * procfs.c (procfs_address_to_host_pointer): Only define when used.
2995 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2997 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
2998 (iterate_over_mappings): Adjust function profile. Add declaration.
2999 (insert_dbx_link_bpt_in_region, info_mappings_callback):
3002 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3004 * procfs.c (solib_mappings_callback): Move function up to avoid
3007 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3009 * procfs.c (find_signalled_thread, find_stop_signal): Move
3010 these functions down to define them only when used.
3012 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3014 * valprint.c (common_val_print): Fix the value before extracting
3016 * ada-lang.c (ada_to_fixed_value): Make this function extern.
3017 * ada-lang.h (ada_to_fixed_value): New function declaration.
3018 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
3019 to avoid code duplication and fix a bug in the handling of
3020 fixed types contents.
3022 2010-04-20 Tom Tromey <tromey@redhat.com>
3024 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
3025 (read_partial_die): Likewise.
3026 (dwarf_attr_name): Likewise.
3028 2010-04-20 Chris Moller <cmoller@redhat.com>
3032 * cp-valprint.c (global): Adding new static array recursion
3034 (cp_print_value_fields, cp_print_static_field): Added new static
3035 array recursion detection code.
3037 2010-04-20 Mark Kettenis <kettenis@gnu.org>
3039 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
3040 general-purpose register set should be 68 instead of 144.
3041 (i386_linux_sse_regset_sections): Likewise.
3042 (i386_linux_avx_regset_sections): Likewise.
3044 2010-04-20 Stan Shebs <stan@codesourcery.com>
3045 Nathan Sidwell <nathan@codesourcery.com>
3047 * dwarf2loc.c (struct axs_var_loc): New struct.
3048 (dwarf2_tracepoint_var_loc): New function.
3049 (dwarf2_tracepoint_var_access): New function.
3050 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
3052 (locexpr_describe_location_piece): New function.
3053 (locexpr_describe_location_1): New function.
3054 (locexpr_describe_location): Call it, update signature.
3055 (loclist_describe_location): Rewrite to loop over locations,
3057 * symtab.h (struct symbol_computed_ops): Add address to
3058 describe_location arguments, return void.
3059 * printcmd.c (address_info): Get context PC, pass to computed
3060 location description.
3061 * tracepoint.c (scope_info): Ditto.
3062 * ax-gdb.c (trace_kludge): Export.
3064 2010-04-20 Tom Tromey <tromey@redhat.com>
3066 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
3067 (struct dwarf2_cie) <segment_size>: New field.
3068 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
3069 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
3071 (read_attribute_value): Handle DW_FORM_flag_present,
3072 DW_FORM_sec_offset, DW_FORM_exprloc.
3073 (dump_die_shallow): Likewise.
3074 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
3075 (dwarf2_const_value): Handle DW_FORM_exprloc.
3076 (attr_form_is_block): Likewise.
3077 (struct line_header) <maximum_ops_per_instruction>: New field.
3078 (dwarf_decode_line_header): Set new field.
3079 (dwarf_decode_lines): Handle new field.
3081 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3083 * f-exp.y: Add new production to recognize the `logical*8' type.
3084 (LOGICAL_S8_KEYWORD): New token.
3085 * f-lang.c (enum f_primitive_types)
3086 <f_primitive_type_logical_s8>: New field.
3087 (f_language_arch_info): Handling `logical*8' type.
3088 (build_fortran_types): Building `logical*8' type.
3089 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
3091 2010-04-19 Doug Evans <dje@google.com>
3093 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
3094 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
3095 (pipe_close): Ditto.
3097 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3099 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
3101 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3103 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
3104 type to void function.
3106 2010-04-19 Stan Shebs <stan@codesourcery.com>
3107 Vladimir Prus <vladimir@codesourcery.com>
3109 * tracepoint.c (tfind_1): Add missing newline, report exit from
3111 * target.c (update_current_target): Make default
3112 to_trace_find return -1.
3114 2010-04-19 Mike Frysinger <vapier@gentoo.org>
3116 * objc-lang.c (find_methods): Move symname check up.
3118 2010-04-19 Pedro Alves <pedro@codesourcery.com>
3120 * ada-lang.c (print_recreate_exception)
3121 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
3122 not "catch unhandled".
3124 2010-04-19 Pedro Alves <pedro@codesourcery.com>
3126 PR breakpoints/8554.
3128 Implement `save-breakpoints'.
3130 * breakpoint.c (save_cmdlist): New.
3131 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
3133 (print_recreate_catch_fork): New.
3134 (catch_fork_breakpoint_ops): Install it.
3135 (print_recreate_catch_vfork): New.
3136 (catch_vfork_breakpoint_ops): Install it.
3137 (print_recreate_catch_syscall): New.
3138 (catch_syscall_breakpoint_ops): Install it.
3139 (print_recreate_catch_exec): New.
3140 (catch_exec_breakpoint_ops): Install it.
3141 (print_recreate_exception_catchpoint): New.
3142 (gnu_v3_exception_catchpoint_ops): Install it.
3143 (save_breakpoints): New, based on tracepoint_save_command, but
3144 handle all breakpoint types.
3145 (save_breakpoints_command): New.
3146 (tracepoint_save_command): Rename to...
3147 (save_tracepoints_command): ... this, and reimplement using
3149 (save_command): New.
3150 (_initialize_breakpoints): Install the "save" command prefix.
3151 Install the "save breakpoints" command. Make "save-tracepoints" a
3152 deprecated alias for "save tracepoints".
3153 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
3154 * ada-lang.c (print_recreate_exception): New.
3155 (print_recreate_catch_exception): New.
3156 (catch_exception_breakpoint_ops): Install it.
3157 (print_recreate_catch_exception_unhandled): New.
3158 (catch_exception_unhandled_breakpoint_ops): Install it.
3159 (print_recreate_catch_assert): New.
3160 (catch_assert_breakpoint_ops): Install it.
3162 * NEWS: Mention the new `save breakpoints' command. Mention the
3163 new `save tracepoints' alias and that `save-tracepoints' is now
3166 2010-04-18 Pedro Alves <pedro@codesourcery.com>
3170 * tui/tui-out.c: Include cli-out.h.
3171 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3172 (tui_begin, tui_end, tui_field_int, tui_field_skip)
3173 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
3174 (tui_message, tui_wrap_hint, tui_flush): Delete forward
3176 (struct ui_out_data): Rename to...
3177 (struct tui_ui_out_data): ... this. Remove `stream' and
3178 `suppress_output' fields, and inherit cli_ui_out_data.
3179 (tui_out_data): New typedef.
3180 (tui_ui_out_impl): Don't initialize fields staticaly.
3181 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3182 (tui_begin, tui_end): Delete.
3183 (tui_field_int): Adjust to delegate most work to the base type.
3184 (tui_field_skip): Delete.
3185 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
3186 delegate most work to the base type.
3187 (tui_spaces): Delete.
3188 (tui_text): Adjust to delegate most work to the base type.
3189 (tui_message): Delete.
3190 (tui_wrap_hint): Delete.
3191 (tui_flush): Delete.
3192 (out_field_fmt): Delete.
3193 (field_separator): Delete.
3194 (tui_out_new): Adjust to initialize the base type.
3195 (_initialize_tui_out): Initialize tui_ui_out_impl.
3196 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
3198 (cli_out_data): Adjust.
3199 (cli_ui_out_impl): Make extern.
3200 (cli_table_header, cli_field_int, cli_field_skip): Use
3201 uo_field_string instead of cli_field_string.
3202 (cli_redirect): Adjust to use cli_out_data.
3203 (cli_out_data_ctor): New.
3204 (cli_out_new): Use it.
3205 * cli-out.h (struct ui_file): Remove forward declaration.
3206 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
3207 (cli_ui_out_impl): Declare.
3208 (cli_out_data_ctor): Declare.
3209 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
3210 (uo_field_string): No longer static.
3211 (ui_out_data): Change return type to void pointer.
3212 (ui_out_new): Change `data' parameter type to void pointer.
3213 * ui-out.h (struct ui_out_data): Don't forward declare.
3214 (ui_out_data): Change return type to void pointer.
3215 (ui_out_new): Change `data' parameter type to void pointer.
3216 (uo_field_string): Declare.
3218 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3220 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
3221 instead of always false.
3223 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
3226 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
3229 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3231 * breakpoint.c (watchpoints_triggered): Use
3232 is_hardware_watchpoint.
3233 (watchpoints_triggered): Ditto.
3234 (bpstat_check_location): Use is_watchpoint and
3235 is_hardware_watchpoint.
3236 (bpstat_check_watchpoint): Use is_watchpoint and
3237 is_hardware_watchpoint.
3238 (bpstat_stop_status): Fix comment.
3239 (user_settable_breakpoint): Use is_watchpoint.
3240 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
3241 (disable_watchpoints_before_interactive_call_start): Use
3243 (enable_watchpoints_after_interactive_call_stop): Use
3245 (clear_command): Use is_watchpoint.
3246 (do_enable_breakpoint): Use is_watchpoint.
3248 2010-04-16 Mike Frysinger <vapier@gentoo.org>
3250 * solib-frv.c (enable_break1_done): Delete.
3251 (enable_break2): Do not check enable_break1_done. Move the
3252 enable_break2_done setting and call to
3253 remove_solib_event_breakpoints() to the end. Return without
3254 warning when the contents of _dl_debug_addr are 0.
3255 (enable_break): Do not set enable_break1_done.
3256 (frv_clear_solib): Likewise.
3258 2010-04-16 Kevin Buettner <kevinb@redhat.com>
3260 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
3261 instead of an error if no PLT entry is found. Return a
3262 potentially useful result.
3263 (m32c_m16c_pointer_to_address): Add code to search for function
3264 address when no .plt entry is found.
3266 2010-04-16 Stan Shebs <stan@codesourcery.com>
3268 * tracepoint.c (trace_variable_command): Run a cleanup.
3270 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3272 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
3274 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3276 Support for Windows OS Thread Information Block.
3277 * NEWS: Document new feature.
3278 * remote.c (PACKET_qGetTIBAddr): New enum element.
3279 (remote_get_tib_address): New function.
3280 (init_remote_ops): Set to_get_tib_address field
3281 to remote_get_tib_address.
3282 (_initialize_remote): Add add_packet_config_cmd
3283 for PACKET_qGetTIBAddr.
3284 * target.c (update_current_target): Set default value for
3285 new to_get_tib_address field.
3286 * target.h (target_ops): New field to_get_tib_address.
3287 (target_get_tib_address): New macro.
3288 * windows-nat.c (thread_info): Add thread_local_base field.
3289 (windows_add_thread): Add tlb argument of type 'void *'.
3290 (fake_create_process): Adapt windows_add_thread call.
3291 (get_windows_debug_event): Idem.
3292 (windows_get_tib_address): New function.
3293 (init_windows_ops): Set to_get_tib_address field
3294 to remote_get_tib_address.
3295 (_initialize_windows_nat): Replace info_w32_cmdlist
3296 initialization by a call to init_w32_command_list.
3297 (info_w32_command, info_w32_cmdlist): Removed from here...
3298 to windows-tdep.c file.
3299 * windows-tdep.h (info_w32_cmdlist): Declare.
3300 (init_w32_command_list): New external function
3302 * windows-tdep.c: Add several headers.
3303 (info_w32_cmdlist): to here, made global.
3304 (thread_information_32): New struct.
3305 (thread_information_64): New struct.
3306 (TIB_NAME): New char array.
3307 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
3308 (maint_display_all_tib): New static variable.
3309 (windows_get_tlb_type): New function.
3310 (tlb_value_read, tlb_value_write): New functions.
3311 (tlb_value_funcs): New static struct.
3312 (tlb_make_value): New function.
3313 (display_one_tib): New function.
3314 (display_tib): New function.
3315 (show_maint_show_all_tib):New function.
3316 (info_w32_command): Moved from windows-nat.c.
3317 (init_w32_command_list): New function.
3318 (_initialize_windows_tdep): New function.
3319 New "maint set/show show-all-tib" command
3320 New "$_tlb" internal variable.
3322 2010-04-16 Joel Brobecker <brobecker@adacore.com>
3324 * tui/tui-regs.c (tui_display_register): Add comment about
3326 * tui/tui-stack.c (tui_show_locator_content): Ditto.
3328 2010-04-15 Stan Shebs <stan@codesourcery.com>
3330 * frame.c: Include tracepoint.h.
3331 (get_current_frame): Allow a trace frame to be an alternate source
3332 of stack frame data.
3333 * tracepoint.c (tfind_1): Don't try to get current stack frame if
3336 2010-04-15 Pedro Alves <pedro@codesourcery.com>
3338 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
3340 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
3342 2010-04-15 Doug Evans <dje@google.com>
3344 * NEWS: Add entry for python program space support.
3345 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
3346 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
3347 (py-progspace.o): New rule.
3348 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
3350 (find_pretty_printer_from_progspace): New function.
3351 (find_pretty_printer_from_gdb): New function.
3352 (find_pretty_printer): Rewrite.
3353 * python/py-progspace.c: New file.
3354 * python/python-internal.h (program_space): Add forward decl.
3355 (pspace_to_pspace_object, pspy_get_printers): Declare.
3356 (gdbpy_initialize_pspace): Declare.
3357 * python/python.c: #include "progspace.h".
3358 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
3359 (_initialize_python): Call gdbpy_initialize_pspace.
3360 (GdbMethods): Add current_progspace, progspaces.
3362 Add -s option to source command.
3363 * NEWS: Document new option.
3364 * cli/cli-cmds.c (find_and_open_script): Add function comment.
3365 Delete from_tty and cleanupp args. Split filep arg into file and
3366 full_pathp. New arg search_path.
3367 (source_script_from_stream): New function.
3368 (source_script_with_search): New function.
3369 (source_script): Rewrite.
3370 (source_command): Parse "-s" option.
3371 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
3372 * python/python.c (source_python_script): Make file arg a const char *.
3373 Don't call fclose, leave for caller.
3374 * python/python.h (source_python_script): Update.
3376 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3377 Pedro Alves <pedro@codesourcery.com>
3379 Avoid rereading shared libraries that haven't changed.
3381 * solib.c (free_so_symbols): New function, from ...
3382 (free_so): ... here. Call it.
3383 (solib_read_symbols): Don't warn here if symbols have already been
3385 (solib_add): Warn here instead, if a pattern was specified.
3386 (reload_shared_libraries_1): New.
3387 (reload_shared_libraries): Rewrite to not fetch the library list.
3389 2010-04-14 Doug Evans <dje@google.com>
3391 * source.c (openp): Strip DOS drive letter if present before
3392 concatenating string to search path.
3394 2010-04-14 Pedro Alves <pedro@codesourcery.com>
3396 * objfiles.h (gdb_bfd_close_or_warn): Declare.
3397 * objfiles.c (gdb_bfd_close_or_warn): New.
3398 * corelow.c: Include objfiles.h
3399 (core_close): Use gdb_bfd_close_or_warn.
3400 * elfread.c (build_id_verify): Ditto.
3401 * exec.c (exec_close, exec_close_1): Ditto.
3403 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3404 Pedro Alves <pedro@codesourcery.com>
3406 Group errors for many missing shared libraries.
3408 * solist.h (struct so_list): Remove from_tty.
3409 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
3410 (solib_map_sections): Take so_list argument. Return 0 if we
3411 failed to open a BFD. Add target sections here.
3412 (symbol_add_stub): Delete.
3413 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
3414 not from_tty copied from the so_list. Don't warn a second time
3415 for a missing library.
3416 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
3417 add to the section table here. Print out a single warning for all
3419 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
3422 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3424 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
3425 error/warning messages. Capitalize and use complete sentences.
3426 (blpy_block_syms_iternext): Likewise.
3427 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
3428 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
3429 (frame_info_to_frame_object, frapy_read_var)
3430 (gdbpy_frame_stop_reason_string): Likewise.
3431 * python/py-lazy-string.c (stpy_convert_to_value)
3432 (gdbpy_create_lazy_string_object): Likewise.
3433 * python/py-objfile.c (objfpy_set_printers): Likewise.
3434 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
3435 * python/python.c (parameter_to_python): Likewise.
3436 * python/py-type.c (typy_range, typy_target): Likewise.
3437 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
3438 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
3441 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3445 * python/py-prettyprint.c (pretty_print_one_value): Test for
3447 (print_string_repr): Test for Py_None. Set flags accordingly.
3448 Return value depending on return type.
3449 (print_children): Take a value indicating whether data was printed
3450 before this function was called. Alter output accordingly.
3451 (apply_val_pretty_printer): Capture return value from
3452 print_string_repr and pass to print_children.
3454 2010-04-13 Mark Kettenis <kettenis@gnu.org>
3457 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
3458 register note sections.
3459 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3461 (i386_linux_init_abi): Install list of supported register note
3462 sections that matches the target description.
3464 2010-04-13 Pedro Alves <pedro@codesourcery.com>
3466 * remote.c (remote_get_noisy_reply): Don't error out on empty
3468 (remote_start_remote): Update and merge tracepoints and trace
3469 state variables as long as the target supports tracepoints.
3470 (remote_trace_init): Fix prototype.
3471 (remote_download_trace_state_variable): Validate reply.
3472 (remote_trace_set_readonly_regions): Fix prototype.
3473 (remote_trace_start): Fix prototype. Check for empty reply.
3474 (remote_get_trace_status): Small cleanup.
3475 (remote_trace_stop): Fix prototype. Check for empty reply.
3476 (remote_trace_find): Check for empty reply.
3477 (remote_save_trace_data): Validate reply.
3478 (remote_set_disconnected_tracing): Check for empty reply, and
3480 (remote_set_circular_trace_buffer): Ditto.
3482 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
3484 Suppress unused value warning during compilation.
3485 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
3487 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3489 2010-04-12 Stan Shebs <stan@codesourcery.com>
3491 * tracepoint.c (tfile_xfer_partial): Check read result.
3493 2010-04-12 Mike Frysinger <vapier@gentoo.org>
3495 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
3496 * remote-sim.c (gdbsim_files_info): Likewise.
3498 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3500 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
3501 * arm-linux-nat.c (arm_linux_vfp_register_count): New
3503 (fetch_vfp_registers): New function to fetch VFP registers.
3504 (store_vfp_registers): New function to store VFP registers.
3505 (arm_linux_fetch_inferior_registers): Add support for VFP
3507 (arm_linux_store_inferior_registers): Likewise.
3508 (arm_linux_read_description): Likewise.
3509 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
3512 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
3514 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
3516 (amd64_collect_xstateregset): Likewise.
3518 2010-04-09 Stan Shebs <stan@codesourcery.com>
3520 * tracepoint.c (trace_status_mi): Report frames created.
3522 * tracepoint.c (trace_dump_command): Include default-collect
3525 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
3527 * symtab.c (find_function_start_sal): Never return SAL pointing
3528 before function start address, even if line info is missing.
3530 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3532 * NEWS: Mention tracepoints support.
3534 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3536 * tracepoint.c (trace_status_mi): Report disconnected tracing and
3537 circular trace buffer statuses.
3539 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3541 * config/djgpp/fnchange.lst: Fix typo in translations for
3542 symbol-without-target_section.exp and symbol-without-target_section.c.
3544 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3546 * breakpoint.c (condition_command): Pass condition expression to
3547 set_breakpoint_condition stripped from breakpoint number.
3549 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
3550 Thiago Jung Bauermann <bauerman@br.ibm.com>
3551 Tom Tromey <tromey@redhat.com>
3553 * breakpoint.c (condition_command): Simplify. Move condition
3555 (set_breakpoint_condition): ... here. New function.
3556 * breakpoint.h (set_breakpoint_condition): Declare.
3557 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
3558 (SUBDIR_PYTHON_SRCS): Likewise.
3559 (py-breakpoint.o): New rule.
3560 * python/py-breakpoint.c: New file.
3561 * python/python-internal.h (gdbpy_breakpoints)
3562 (gdbpy_initialize_breakpoints): Declare.
3563 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
3565 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3567 * regformats/regdat.sh: Include server.h. Don't include
3570 2010-04-08 Stan Shebs <stan@codesourcery.com>
3571 Pedro Alves <pedro@codesourcery.com>
3573 * tracepoint.h (struct trace_status): New fields disconnected_tracing
3574 and circular_buffer.
3575 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
3576 * tracepoint.c (trace_status_command): Display target's status for
3577 disconnected tracing and circular buffer.
3578 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
3579 query for non-disconnected-tracing case, remove the stop_tracing
3581 (tfile_open): Clear disconnected and circular buffer status.
3582 (trace_save): Save disconnected and circular buffer status.
3583 (parse_trace_status): Parse disconnected and circular buffer status,
3584 also recognize disconnected as a stop reason.
3585 * remote.c (remote_set_disconnected_tracing): Only set
3586 QTDisconnected if the remote end supports disconnected tracing.
3587 Warn otherwise, if trying to enable disconnected tracing.
3588 * infcmd.c (detach_command): Update disconnect_tracing call.
3589 * cli/cli-cmds.c (quit_command): Ditto.
3591 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3593 * i387-tdep.c (i387_collect_xsave): Replace abort with
3596 2010-04-08 Stan Shebs <stan@codesourcery.com>
3598 * breakpoint.c (default_collect_info): New function.
3599 (breakpoints_info): Call it.
3600 (maintenance_info_breakpoints): Ditto.
3601 (tracepoints_info): Ditto.
3603 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3605 * i387-tdep.c (i387_collect_xsave): Re-indent.
3607 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3609 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
3610 if HAVE_PTRACE_GETFPXREGS is defined.
3611 (i386_linux_read_description): Set have_ptrace_getfpxregs and
3612 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
3614 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
3615 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
3616 if .reg-xfp section doesn't exist.
3617 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
3619 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
3621 * i386-tdep.c: Include "features/i386/i386-mmx.c".
3622 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
3623 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
3624 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
3625 (i386_gdbarch_init): Update comments.
3626 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
3628 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
3630 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
3632 * features/Makefile (i386/i386-mmx-expedite): New.
3633 (i386/i386-mmx-linux-expedite): Likewise.
3634 ($(outdir)/i386/i386-mmx.dat): Likewise.
3635 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
3637 * features/i386/i386-mmx-linux.c: New.
3638 * features/i386/i386-mmx-linux.xml: Likewise.
3639 * features/i386/i386-mmx.c: Likewise.
3640 * features/i386/i386-mmx.xml: Likewise.
3641 * regformats/i386/i386-mmx-linux.dat: Likewise.
3642 * regformats/i386/i386-mmx.dat: Likewise.
3644 * features/Makefile (WHICH): Add i386/i386-mmx and
3645 i386/i386-mmx-linux.
3647 2010-04-08 Doug Evans <dje@google.com>
3649 * source.c (openp): Skip $cdir in PATH.
3651 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
3654 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3656 (gdbpy_create_lazy_string_object): Allow strings with a NULL
3657 address and a zero length.
3659 2010-04-08 Hui Zhu <teawater@gmail.com>
3661 * i386-tdep.c (i386_process_record): Add support for insn
3664 2010-04-07 Doug Evans <dje@google.com>
3666 * python/python.c (source_python_script): Use ensure_python_env
3667 to prepare environment for script.
3669 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3671 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
3672 <sys/uio.h> and "i386-xstate.h".
3673 (PTRACE_GETREGSET): New.
3674 (PTRACE_SETREGSET): Likewise.
3675 (have_ptrace_getregset): Likewise.
3676 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
3678 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
3680 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
3681 (amd64_linux_store_inferior_registers): Likewise.
3682 (amd64_linux_read_description): Check and enable AVX target
3685 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
3686 and "features/i386/amd64-avx-linux.c".
3687 (amd64_linux_regset_sections): New.
3688 (amd64_linux_core_read_description): Check and enable AVX
3690 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
3691 set_gdbarch_core_regset_sections.
3692 (_initialize_amd64_linux_tdep): Call
3693 initialize_tdesc_amd64_avx_linux.
3695 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
3696 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
3697 (tdesc_amd64_avx_linux): New.
3698 (amd64_linux_update_xstateregset): Likewise.
3700 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
3701 (amd64_ymm_names): New.
3702 (amd64_ymmh_names): Likewise.
3703 (amd64_register_name): Likewise.
3704 (amd64_supply_xstateregset): Likewise.
3705 (amd64_collect_xstateregset): Likewise.
3706 (amd64_supply_xsave): Likewise.
3707 (amd64_collect_xsave): Likewise.
3708 (AMD64_NUM_REGS): Removed.
3709 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
3710 %xmmN if AVX is available.
3711 (amd64_pseudo_register_name): Support pseudo YMM registers.
3712 (amd64_regset_from_core_section): Support .reg-xstate section.
3713 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
3714 and ymm0h_regnum. Call set_gdbarch_register_name.
3715 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
3717 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
3718 AMD64_YMM15H_REGNUM.
3719 (AMD64_NUM_REGS): New.
3720 (amd64_supply_xsave): Likewise.
3721 (amd64_collect_xsave): Likewise.
3722 (amd64_register_name): Removed.
3723 (amd64_register_type): Likewise.
3725 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3727 * i387-tdep.c: Include "i386-xstate.h".
3728 (XSAVE_XSTATE_BV_ADDR): New.
3729 (xsave_avxh_offset): Likewise.
3730 (XSAVE_AVXH_ADDR): Likewise.
3731 (i387_supply_xsave): Likewise.
3732 (i387_collect_xsave): Likewise.
3734 * i387-tdep.h (I387_NUM_YMM_REGS): New.
3735 (I387_YMM0H_REGNUM): Likewise.
3736 (I387_YMMENDH_REGNUM): Likewise.
3737 (i387_supply_xsave): Likewise.
3738 (i387_collect_xsave): Likewise.
3740 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3742 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
3743 <sys/uio.h> and "i386-xstate.h".
3744 (PTRACE_GETREGSET): New.
3745 (PTRACE_SETREGSET): Likewise.
3746 (fetch_xstateregs): Likewise.
3747 (store_xstateregs): Likewise.
3748 (GETXSTATEREGS_SUPPLIES): Likewise.
3749 (regmap): Include 8 upper YMM registers.
3750 (i386_linux_fetch_inferior_registers): Support XSAVE extended
3752 (i386_linux_store_inferior_registers): Likewise.
3753 (i386_linux_read_description): Check and enable AVX target
3756 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
3757 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
3758 (i386_linux_regset_sections): Add ".reg-xstate".
3759 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
3760 (i386_linux_core_read_xcr0): New.
3761 (i386_linux_core_read_description): Check and enable AVX target
3763 (i386_linux_init_abi): Set xsave_xcr0_offset.
3764 (_initialize_i386_linux_tdep): Call
3765 initialize_tdesc_i386_avx_linux.
3767 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
3768 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
3769 (i386_linux_core_read_xcr0): New.
3770 (tdesc_i386_avx_linux): Likewise.
3771 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
3773 * i386-tdep.c: Include "i386-xstate.h" and
3774 "features/i386/i386-avx.c".
3775 (i386_ymm_names): New.
3776 (i386_ymmh_names): Likewise.
3777 (i386_ymmh_regnum_p): Likewise.
3778 (i386_ymm_regnum_p): Likewise.
3779 (i386_xmm_regnum_p): Likewise.
3780 (i386_register_name): Likewise.
3781 (i386_ymm_type): Likewise.
3782 (i386_supply_xstateregset): Likewise.
3783 (i386_collect_xstateregset): Likewise.
3784 (i386_sse_regnum_p): Removed.
3785 (i386_pseudo_register_name): Support pseudo YMM registers.
3786 (i386_pseudo_register_type): Likewise.
3787 (i386_pseudo_register_read): Likewise.
3788 (i386_pseudo_register_write): Likewise.
3789 (i386_dbx_reg_to_regnum): Return %ymmN register number for
3790 %xmmN if AVX is available.
3791 (i386_regset_from_core_section): Support .reg-xstate section.
3792 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
3793 (i386_process_record): Replace i386_sse_regnum_p with
3795 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
3796 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
3797 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
3798 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
3799 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
3800 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
3802 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
3804 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
3805 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
3807 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
3808 (I386_AVX_NUM_REGS): New.
3809 (i386_xmm_regnum_p): Likewise.
3810 (i386_ymm_regnum_p): Likewise.
3811 (i386_ymmh_regnum_p): Likewise.
3813 * common/i386-xstate.h: New.
3815 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3817 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
3819 * features/Makefile (WHICH): Add i386/i386-avx,
3820 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
3821 (i386/i386-avx-expedite): New.
3822 (i386/i386-avx-linux-expedite): Likewise.
3823 (i386/x86-64-avx-expedite):Likewise.
3824 (i386/x86-64-avx-linux-expedite): Likewise.
3825 ($(outdir)/i386/i386-avx.dat): New dependency.
3826 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
3827 ($(outdir)/i386/x86-avx-64.dat): Likewise.
3828 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
3830 * features/i386/32bit-avx.xml: New.
3831 * features/i386/64bit-avx.xml: Likewise.
3832 * features/i386/i386-avx-linux.c: Likewise.
3833 * features/i386/i386-avx-linux.xml: Likewise.
3834 * features/i386/i386-avx.c: Likewise.
3835 * features/i386/i386-avx.xml: Likewise.
3836 * features/i386/x86-64-avx-linux.c: Likewise.
3837 * features/i386/x86-64-avx-linux.xml: Likewise.
3838 * features/i386/x86-64-avx.c: Likewise.
3839 * features/i386/x86-64-avx.xml: Likewise.
3840 * regformats/i386/i386-avx-linux.dat: Likewise.
3841 * regformats/i386/i386-avx.dat: Likewise.
3842 * regformats/i386/x86-64-avx-linux.dat: Likewise.
3843 * regformats/i386/x86-64-avx.dat: Likewise.
3845 2010-04-07 Doug Evans <dje@google.com>
3847 * top.c (source_file_name): Make const char *.
3848 * top.h (source_file_name): Update.
3849 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
3851 (script_from_file): Change `file' arg to const char *.
3852 * cli/cli-script.h (script_from_file): Update.
3854 2010-04-06 Doug Evans <dje@google.com>
3856 * cli/cli-cmds.c (source_command): Run cleanups.
3858 2010-04-06 Stan Shebs <stan@codesourcery.com>
3860 * defs.h (char_ptr): Move typedef here from...
3861 * ada-lang.c (char_ptr): Remove.
3862 * charset.c (char_ptr): Remove.
3863 * tracepoint.h (struct uploaded_string): Remove.
3864 (struct uploaded_tp): Use vectors for string arrays.
3865 * tracepoint.c (trace_save): Use vectors of actions.
3866 (parse_tracepoint_definition): Ditto.
3867 (get_uploaded_tp): Clear vectors.
3868 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
3869 (next_cmd): Change to an int.
3870 (read_next_cmd): Use vector of command strings.
3872 2010-04-06 Doug Evans <dje@google.com>
3874 * top.h (source_script, cd_command): Delete.
3875 * main.c: #include "cli/cli-cmds.h"
3877 2010-04-06 Kevin Buettner <kevinb@redhat.com>
3879 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
3880 type in bytes, not bits.
3882 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3884 * stabsread.c (define_symbol): Add support for char
3885 and string constants.
3887 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3889 Remove remaining "%ll" uses.
3890 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
3892 * rs6000-nat.c (rs6000_ptrace64): Idem.
3893 * solib-pa64.c (pa64_current_sos): Idem.
3894 * solib-spu.c (spu_current_sos): Idem.
3895 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
3897 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
3899 * sh64-tdep.c (sh64_show_media_regs): Idem.
3901 2010-04-05 Stan Shebs <stan@codesourcery.com>
3903 * tracepoint.c: Include gdbcore.h.
3904 (tfile_xfer_partial): Return partial results, also try reading
3906 (tfile_has_all_memory): New function.
3907 (init_tfile_ops): Use it.
3909 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
3912 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
3913 the changes in data-directory.
3914 (init_sysinfo): Reload the syscall XML file if the data-directory
3917 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3920 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
3922 2010-04-04 Stan Shebs <stan@codesourcery.com>
3923 Nathan Sidwell <nathan@codesourcery.com>
3925 * breakpoint.c (breakpoint_1): Add filter argument, return number of
3926 breakpoints printed.
3927 (is_hardware_watchpoint): Make argument const.
3928 (is_watchpoint): Ditto.
3929 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
3931 (breakpoints_info): Pass NULL to breakpoint_1.
3932 (maintenance_info_breakpoints): Ditto.
3933 (watchpoints_info): New function.
3934 (tracepoints_info): Use breakpoint_1 filter.
3935 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
3936 (_initialize_breakpoint): Make "info watchpoints" its own command.
3937 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
3938 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
3940 2010-04-04 Stan Shebs <stan@codesourcery.com>
3942 * tracepoint.c (tfile_fetch_registers): Add fallback case.
3944 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3946 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
3947 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
3949 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3951 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
3952 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
3954 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3956 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
3959 2010-04-02 Hui Zhu <teawater@gmail.com>
3961 * i386-tdep.c (OT_DQUAD): New enum.
3962 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
3963 SSE3, SSSE3 and SSE4.
3965 2010-04-02 Hui Zhu <teawater@gmail.com>
3967 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
3970 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3972 * tracepoint.c (trace_dump_actions): New, factored out from
3973 trace_dump_command, and adjusted to recurse into while-stepping's
3975 (trace_dump_command): Use it.
3977 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3979 * breakpoint.h (struct counted_command_line): Moved definition to
3980 breakpoint.c, and forward declare.
3981 (breakpoint_commands): Declare.
3982 * breakpoint.c (struct counted_command_line): Moved here.
3983 (breakpoint_commands): New.
3984 * tracepoint.c (encode_actions): Use breakpoint_commands.
3985 * remote.c (remote_download_tracepoint): Ditto.
3987 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3989 * remote.c (remote_parse_stop_reply): Use hex_string instead
3990 of phex_nz for error.
3992 2010-04-01 Stan Shebs <stan@codesourcery.com>
3993 Nathan Sidwell <nathan@codesourcery.com>
3995 * tracepoint.h (enum actionline_type): Remove.
3996 (validate_actionline): Change return to void.
3997 * tracepoint.c (report_agent_reqs_errors): New function.
3998 (validate_actionline): Call it, change return to void, report errors
4000 (collect_symbol): Call report_agent_reqs_errors.
4001 (encode_actions_1): Ditto.
4002 (encode_actions): Don't expect a result from validate_actionline.
4004 2010-04-01 Stan Shebs <stan@codesourcery.com>
4006 * tracepoint.c (trace_start_command): Confirm if trace is running.
4007 (trace_stop_command): Error if trace not running.
4009 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
4011 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
4012 (AMD64_NUM_LOWER_BYTE_REGS): New.
4013 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
4014 (amd64_pseudo_register_write): Likewise.
4015 (amd64_init_abi): Set num_byte_regs to 20.
4017 2010-04-01 Pedro Alves <pedro@codesourcery.com>
4019 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
4020 (prev_breakpoint_count): New.
4021 (set_breakpoint_count): Adjust.
4022 (rbreak_start_breakpoint_count): New.
4023 (start_rbreak_breakpoints): Adjust.
4024 (end_rbreak_breakpoints): Adjust.
4025 (struct commands_info) <arg>: New field.
4026 (do_map_commands_command): Tweak output to include breakpoint spec
4028 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
4029 ARG was empty on entry. Set INFO's arg.
4030 (create_breakpoint): Adjust.
4032 * NEWS: Clarify `commands' changes.
4034 2010-04-01 Pedro Alves <pedro@codesourcery.com>
4036 * tracepoint.c: Include stack.h.
4037 (struct add_local_symbols_data): New.
4038 (do_collect_symbol): New.
4039 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
4040 iterate_over_block_local_vars.
4041 * stack.c (print_block_frame_locals): Rewrite as ...
4042 (iterate_over_block_locals): ... this. Take a callback function
4043 pointer and generic data pointer, and call that instead of
4044 print_variable_and_value.
4045 (struct print_variable_and_value_data): New.
4046 (do_print_variable_and_value): New.
4047 (iterate_over_block_local_vars): New, abstracted out from
4048 print_frame_local_vars.
4049 (print_frame_local_vars): Rewrite using
4050 iterate_over_block_local_vars.
4051 (iterate_over_block_arg_vars): New, abstracted out from
4052 print_frame_arg_vars.
4053 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
4054 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
4055 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
4057 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
4059 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
4060 instructions. Use the PC+4 if the base of the TBB or TBH is the
4063 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4065 Fix crash on reading wrong function declaration DWARF.
4066 * dwarf2read.c (read_subroutine_type): New variable void_type.
4067 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
4068 more close to their use.
4070 2010-03-31 Stan Shebs <stan@codesourcery.com>
4072 * breakpoint.c (tracepoint_save_command): Include variables,
4073 conditionals, tracepoint types, and default-collect.
4074 * tracepoint.c (save_trace_state_variables): New function.
4075 * tracepoint.h (save_trace_state_variables): Declare it.
4077 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
4079 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
4081 2010-03-30 Keith Seitz <keiths@redhat.com>
4083 * c-typeprint.c (c_type_print_args): Don't print "void"
4084 for java, regardless of whether it is TYPE_PROTOTYPED.
4085 Use the passed-in language instead of current_language.
4086 (c_type_print_varspec_suffix): Use current_language instead
4087 of assuming language_c.
4088 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
4089 any return type specifier from the physname.
4091 2010-03-30 Pedro Alves <pedro@codesourcery.com>
4093 * tui/tui-interp.c (tui_is_toplevel): New.
4095 (tui_allowed_p): New.
4096 * tui/tui.c (tui_enable): Check if the TUI is allowed before
4098 * tui/tui.h (tui_allowed_p): Declare.
4100 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
4102 * serial.h: Include winsock2.h before windows.h.
4104 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
4106 * NEWS: Mention xmlRegisters= in qSupported packet.
4108 * i386-tdep.c: Include "remote.h".
4109 (_initialize_i386_tdep): Call register_remote_support_xml.
4111 * remote.c (remote_support_xml): New.
4112 (register_remote_support_xml): Likewise.
4113 (remote_query_supported_append): Likewise.
4114 (remote_query_supported): Support remote_support_xml.
4116 * remote.h (register_remote_support_xml): New.
4118 2010-03-29 Stan Shebs <stan@codesourcery.com>
4120 * tracepoint.c (trace_find_line_command): Remove dead code.
4122 * tracepoint.h (struct uploaded_string): New struct.
4123 (struct uploaded_tp): New fields for source strings.
4124 * breakpoint.c (this_utp, next_cmd): New globals.
4125 (read_uploaded_action): New function.
4126 (create_tracepoint_from_upload): Fill in more parts
4128 * tracepoint.c (encode_source_string): New function.
4129 (trace_save): Write out source strings, fix error checks.
4130 (parse_tracepoint_definition): Add source string parsing.
4131 * remote.c (PACKET_TracepointSource): New packet type.
4132 (remote_download_command_source): New function.
4133 (remote_download_tracepoint): Download source pieces also.
4134 (_initialize_remote): Add packet config command.
4136 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
4139 * tracepoint.c (start_tracing): Check tracepoints before sending
4140 commands to target, don't start if all tracepoints disabled.
4142 2010-03-28 Pedro Alves <pedro@codesourcery.com>
4144 * cli/cli-script.c (process_next_line): Handle 'stepping'.
4146 2010-03-26 Stan Shebs <stan@codesourcery.com>
4148 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
4150 2010-03-26 Tom Tromey <tromey@redhat.com>
4152 * breakpoint.c (commands_command_1): Duplicate 'arg'.
4154 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4156 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
4157 (skip_prologue_sal): Remove local definition.
4158 (resolve_sal_pc): Remove now unnecessary code.
4159 * linespec.c (minsym_found): Call skip_prologue_sal.
4160 * symtab.c (find_function_start_pc): Remove.
4161 (find_function_start_sal): Extract prologue skipping into ...
4162 (skip_prologue_sal): ... this new function. Handle code both
4163 with and without debug info. Respect SAL's explicit_pc and
4164 explicit_line flags. Inline old find_function_start_pc.
4165 * symtab.h (find_function_start_pc): Remove.
4166 (skip_prologue_sal): Add prototype.
4168 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4170 * dwarf2read.c (read_func_scope): Also scan specification DIEs
4171 for DW_TAG_imported_module children.
4173 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4175 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
4176 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
4177 * completer.c (add_struct_fields): Fix inverted logic.
4179 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4181 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
4183 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4185 * tracepoint.c (current_trace_status): Don't make sure error_desc
4187 (parse_trace_status): Release a previous error_desc string, and
4188 set it to NULL by default. If stop reason is tracepoint_error,
4189 make sure error_desc is not left NULL.
4191 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4193 * tracepoint.c (trace_save): Remove X from tracepoint error
4196 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4198 * tracepoint.c (parse_trace_status): Don't allow plain strings in
4199 the terror description. Don't expect an X prefix.
4201 2010-03-25 Stan Shebs <stan@codesourcery.com>
4203 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
4204 (struct trace_status): New field error_desc.
4205 * tracepoint.c (stop_reason_names): Add terror.
4206 (current_trace_status): Ensure non-NULL error description.
4207 (trace_status_command): Add error report.
4208 (trace_status_mi): Ditto.
4209 (trace_save): Add special case for error description.
4210 (parse_trace_status): Add case for errors.
4212 2010-03-25 Keith Seitz <keiths@redhat.com>
4214 * dwarf2read.c (read_subroutine_type): If the compilation unit
4215 language is Java, mark any formal parameter named "this" as
4216 artificial (GCC/43521).
4217 (dwarf2_name): Add special handling for Java constructors.
4219 2010-03-25 Tom Tromey <tromey@redhat.com>
4221 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
4222 * infrun.c (handle_inferior_event): Change initialization of
4224 (handle_inferior_event): Change assignment to stop_stack_dummy.
4225 (normal_stop): Update use of stop_stack_dummy.
4226 (struct inferior_status) <stop_stack_dummy>: Change type.
4227 * inferior.h (stop_stack_dummy): Update.
4228 * infcmd.c (stop_stack_dummy): Change type.
4229 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
4231 (call_function_by_hand): Call set_std_terminate_breakpoint.
4232 Rewrite std::terminate handling.
4233 * breakpoint.h (enum bptype) <bp_std_terminate,
4234 bp_std_terminate_master>: New.
4235 (enum stop_stack_kind): New.
4236 (struct bpstat_what) <call_dummy>: Change type.
4237 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
4239 * breakpoint.c (create_std_terminate_master_breakpoint): New
4241 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
4242 Call create_std_terminate_master_breakpoint.
4243 (print_it_typical): Handle new breakpoint kinds.
4244 (bpstat_stop_status): Handle bp_std_terminate_master.
4245 (bpstat_what): Correctly set call_dummy field. Handle
4246 bp_std_terminate_master and bp_std_terminate.
4247 (print_one_breakpoint_location): Update.
4248 (allocate_bp_location): Update.
4249 (set_std_terminate_breakpoint): New function.
4250 (delete_std_terminate_breakpoint): Likewise.
4251 (create_thread_event_breakpoint): Update.
4252 (delete_command): Update.
4253 (breakpoint_re_set_one): Update.
4254 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
4256 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4258 * symfile.c (build_section_addr_info_from_bfd): New.
4259 (build_section_addr_info_from_objfile): Base it on
4260 build_section_addr_info_from_bfd.
4261 (addrs_section_compar, addrs_section_sort): New.
4262 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
4263 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
4264 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
4266 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
4268 * elfread.c (find_separate_debug_file_by_buildid):
4269 Remove unused local variable.
4271 2010-03-24 Tom Tromey <tromey@redhat.com>
4273 PR breakpoints/9352:
4274 * NEWS: Mention changes to `commands' and `rbreak'.
4275 * symtab.c (do_end_rbreak_breakpoints): New function.
4276 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
4277 end_rbreak_breakpoints.
4278 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
4279 (set_breakpoint_count): Likewise. Clear last_was_multi.
4280 (multi_start, multi_end, last_was_multi): New globals.
4281 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
4283 (struct commands_info): New
4284 (do_map_commands_command): New function.
4285 (commands_command_1): New function.
4286 (commands_command): Use it.
4287 (commands_from_control_command): Likewise.
4288 (do_delete_breakpoint): New function.
4289 (delete_command): Use it.
4290 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
4291 (do_map_disable_breakpoint): New function.
4292 (disable_command): Use it.
4293 (do_map_enable_breakpoint): New function.
4294 (enable_command): Use it.
4295 (enable_once_breakpoint): Add argument.
4296 (enable_once_command): Update.
4297 (enable_delete_breakpoint): Add argument.
4298 (enable_delete_command): Update.
4299 (break_command_really): Set last_was_multi when needed.
4300 (check_tracepoint_command): Fix formatting.
4301 (validate_commands_for_breakpoint): New function.
4302 (breakpoint_set_commands): Use it.
4303 (tracepoint_save_command): Update.
4304 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
4307 2010-03-24 Tom Tromey <tromey@redhat.com>
4309 * breakpoint.h (struct counted_command_line): New struct.
4310 (struct breakpoint) <commands>: Change type.
4311 (struct bpstats) <commands>: Change type.
4312 <commands_left>: New field.
4313 * breakpoint.c (alloc_counted_command_line): New function.
4314 (incref_counted_command_line): Likewise.
4315 (decref_counted_command_line): Likewise.
4316 (do_cleanup_counted_command_line): Likewise.
4317 (make_cleanup_decref_counted_command_line): Likewise.
4318 (breakpoint_set_commands): Use decref_counted_command_line and
4319 alloc_counted_command_line.
4320 (commands_command): Don't error if breakpoint commands are
4322 (commands_from_control_command): Likewise.
4323 (bpstat_free): Update.
4324 (bpstat_copy): Likewise.
4325 (bpstat_clear_actions): Likewise.
4326 (bpstat_do_actions_1): Likewise.
4327 (bpstat_stop_status): Likewise.
4328 (print_one_breakpoint_location): Likewise.
4329 (delete_breakpoint): Likewise.
4330 (bpstat_alloc): Initialize new field.
4331 (tracepoint_save_command): Update.
4332 * tracepoint.c (encode_actions): Update.
4333 (trace_dump_command): Update.
4335 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4337 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
4338 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
4339 (read_structure_type): For RealView, set TYPE_STUB on structures with
4340 no byte size and no children.
4341 (read_subroutine_type): Mark functions as prototyped by default.
4342 * symtab.c (producer_is_realview): New function.
4343 * symtab.h (expand_line_sal): Fix declaration formatting.
4344 (producer_is_realview): Declare.
4346 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4348 * arm-tdep.c (skip_prologue_function): New function.
4349 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
4350 (thumb_analyze_prologue): Document return value. Recognize more
4351 Thumb instructions, skippable calls, and some Thumb-2 instructions.
4353 (arm_skip_prologue): Remove call dummy check. Check the prologue
4354 for non-GNU compilers.
4355 (arm_instruction_changes_pc): New function.
4356 (arm_analyze_prologue): New function, broken out from
4357 arm_scan_prologue. Recognize more ARM instructions and skippable
4358 calls. Update comments. Handle NULL cache. Return the address
4359 of the first unrecognized instruction. Do not skip past other
4360 instructions which change control flow. Add debug output.
4361 (arm_scan_prologue): Use arm_analyze_prologue.
4362 (ARM_PC_32): Delete.
4363 (shifted_reg_val): Simplify ARM_PC_32 check.
4365 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4367 * tracepoint.c (tvariables_info_1): Actually compute
4368 the number of rows in the result.
4370 2010-03-24 Pedro Alves <pedro@codesourcery.com>
4372 * remote.c (crc32): Constify `buf' parameter.
4373 (remote_verify_memory): New, abstracted out from...
4374 (compare_sections_command): ... this. Remove hardcoded target
4376 (init_remote_ops): Install remote_verify_memory.
4377 * target.c (target_verify_memory): New.
4378 * target.h (struct target_ops) <to_verify_memory>: New field.
4379 (target_verify_memory): Declare.
4381 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4383 Implement -trace-save.
4385 * mi-cmds.h (mi_cmds_trace_save): Declare.
4386 * mi-cmds.c (mi_cmds): Register -trace-save.
4387 * mi/mi-main.c (mi_cmd_trace_save): New.
4388 * remote.c (remote_save_trace_data): Take const parameter.
4389 * target.h (struct target_ops::to_save_trace_data): Take
4391 * target.c (update_current_target): Adjust to the above.
4392 * tracepoint.c (trave_save): New, extracted from
4393 (trace_save_command): ...this.
4394 (tfile_trace_find): Remove message that is unnecessary now
4395 that 'tfind' reports found frame.
4396 * tracepoint.h (trace_save): Declare.
4398 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4400 Implement -trace-find.
4402 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
4403 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
4404 * mi/mi-main.c (mi_cmd_trace_find): New.
4405 * target.h (struct target_ops): Document to_trace_find.
4406 * tracepoint.h (tfind_1): Declare.
4407 * tracepoint.c (finish_tfind_command): Rename to...
4409 * remote.c (remote_trace_find): Return -1 if target say
4410 there's no frame. Improve error diagnostics.
4412 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4414 -trace-define-variable and -trace-list-variables.
4416 * tracepoint.c (create_trace_state_variable): Make
4417 private copy of name, as opposed to assuming the
4418 pointer lives forever.
4419 (tvariables_info_1): New.
4420 (tvariables_info): Use the above.
4421 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
4423 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
4424 and -trace-list-variables.
4425 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
4426 (mi_cmd_trace_list_variables): New.
4427 * mi/mi-main.c (mi_cmd_trace_define_variable)
4428 (mi_cmd_trace_list_variables): New.
4430 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4432 Implement -break-passcount.
4434 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
4435 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
4436 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
4438 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4440 -trace-start/-trace-end/-trace-status.
4442 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
4444 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
4445 (mi_cmd_trace_stop): Declare.
4446 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
4447 (mi_cmd_trace_stop): New.
4448 * tracepoint.c (start_tracing): New, extracted from...
4449 (trace_start_command): ...this.
4450 (trace_status_mi): New.
4451 * tracepoint.h (struct trace_status): Document
4452 stopping_tracepoint.
4453 (start_tracing, stop_tracing, trace_status_mi): Declare.
4455 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4457 Implement creating tracepoints with -break-insert.
4459 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
4460 to mean that tracepoint should be created.
4462 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4464 * breakpoint.c (check_no_tracepoint_commands): Use
4465 current spelling of 'teval'.
4467 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4469 Unify actions and commands
4471 * defs.h (read_command_lines, read_command_lines_1): New
4472 parameters validator and closure.
4473 * tracepoint.h (struct action_line): Remove.
4474 * breakpoint.h (struct breakpoint): Remove the 'actions'
4476 * defs.h (enum command_control_type): New value
4477 while_stepping_control.
4478 (struct command_line): Add comments.
4479 * breakpoint.c (breakoint_is_tracepoint): New.
4480 (breakpoint_set_commands): For tracepoints,
4481 verify the commands are permissible.
4482 (check_tracepoint_commands): New.
4483 (commands_command): Require that each new line is validated using
4484 check_tracepoint_command, if we set commands for a tracepoint.
4485 (create_tracepoint_from_upload): Likewise.
4486 (print_one_breakpoint_location): Remove the code to print
4487 actions specifically.
4488 (tracepoint_save_command): Relay to print_command_lines.
4489 * cli/cli-script.c (process_next_line): New parameters validator
4490 and closure. Handle 'while-stepping'. Call validator if not null.
4491 (read_command_lines, read_command_lines1): Likewise.
4492 (recurse_read_control_structure): New parameters validator and
4493 closure. Handle while_stepping_control.
4494 (print_command_lines): Handle while-stepping.
4495 (get_command_line, define_command, document_command): Adjust.
4496 * remote.c (remote_download_tracepoint): Adjust.
4497 * tracepoint.c (make_cleanup_free_actions, read_actions)
4498 (free_actions, do_free_actions_cleanup): Remove.
4499 (trace_actions_command): Use read_command_lines.
4500 (validate_actionline): Use error in one place.
4501 (encode_actions_1): New, extracted from...
4502 (encode_actions): ...this. Also use cleanups for exception
4504 (trace_dump_command): Adjust.
4505 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
4508 2010-03-23 Mike Frysinger <vapier@gentoo.org>
4510 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
4512 2010-03-22 Stan Shebs <stan@codesourcery.com>
4514 * value.c (value_static_field): Be lazy about the field's value.
4516 2010-03-22 Reid Kleckner <reid@kleckner.net>
4519 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
4521 (disable_breakpoints_in_shlibs): Likewise.
4523 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
4525 * dwarf2read.c (partial_die_parent_scope): Work around buggy
4526 GCC 4.1 debug info generation (GCC PR c++/28460).
4527 (determine_prefix): Likewise.
4529 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
4531 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
4533 * tui/tui-layout.c (extract_display_start_addr): Likewise.
4535 2010-03-19 Stan Shebs <stan@codesourcery.com>
4537 * ax-gdb.c (gen_fetch): Handle bool.
4538 (gen_usual_unary): Ditto.
4540 (gen_equal): New function.
4541 (gen_less): New function.
4542 (gen_expr_binop_rest): Call them, also return integer type from
4546 2010-03-19 Tom Tromey <tromey@redhat.com>
4548 * jv-lang.c (jv_dynamics_objfile_data_key)
4549 (jv_type_objfile_data_key): New globals.
4550 (class_symtab): Move earlier.
4551 (jv_per_objfile_free): New function.
4552 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
4554 Remove ancient #if 1.
4555 (add_class_symbol): Remove redundant declaration.
4556 (java_lookup_class): Use alloc_type, not alloc_type_arch.
4557 (java_link_class_type): Mark as static. Update.
4558 (jv_clear_object_type): New function.
4559 (set_java_object_type): Likewise.
4560 (get_java_object_type): Use set_java_object_type.
4561 (is_object_type): Likewise.
4562 (_initialize_java_language): Register new objfile keys.
4563 (get_java_class_symtab): Add 'gdbarch' parameter.
4564 (add_class_symtab_symbol): Update.
4565 (type_from_class): Update.
4567 2010-03-19 Stan Shebs <stan@codesourcery.com>
4569 * ax-general.c (ax_const_l): Fix a sizing bug.
4571 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4575 2010-03-18 Stan Shebs <stan@codesourcery.com>
4576 Pedro Alves <pedro@codesourcery.com>
4578 * target.h (struct target_ops): New method
4579 to_set_circular_trace_buffer.
4580 (target_set_circular_trace_buffer): New macro.
4581 * target.c (update_current_target): Add
4582 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
4584 * remote.c (remote_set_circular_trace_buffer): New function.
4585 (init_remote_ops): Add it to vector.
4586 * tracepoint.h (struct trace_status): New field traceframes_created,
4587 change buffer_size and buffer_free to int.
4588 * tracepoint.c (circular_trace_buffer): New global.
4589 (start_tracing): Send values of disconnected tracing and circular
4590 trace buffer settings.
4591 (set_circular_trace_buffer): New function.
4592 (parse_trace_state): Handle total space and frames created.
4593 (trace_status_command): Display total space and total frames
4595 (trace_save): Write out new status values.
4596 (parse_trace_status): Set traceframe_count, traceframes_created,
4597 buffer_free and buffer_size to -1 by default.
4598 (_initialize_tracepoint): New setshow for circular-trace-buffer.
4599 * NEWS: Mention the circular trace buffer option.
4601 2010-03-18 Tom Tromey <tromey@redhat.com>
4603 * infcmd.c (finish_command_continuation): Wrap print_return_value
4606 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4608 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
4609 DIE has a name before creating the associated partial symbol.
4610 (read_func_scope): Emit a complaint if the subprogram does not
4611 have a name or when we can't extract the subprogram PC bounds.
4613 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4615 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
4616 instead of selected frame architecture.
4618 2010-03-18 Pedro Alves <pedro@codesourcery.com>
4620 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
4621 a valid selected thread, and that it is not running.
4622 (advance_command): Ditto.
4623 (finish_command): Ditto.
4625 2010-03-17 Stan Shebs <stan@codesourcery.com>
4627 * ax-gdb.c (require_rvalue): Disallow non-scalars.
4629 * infcall.c: Include tracepoint.h.
4630 (call_function_by_hand): Disallow calls in tfind mode.
4631 * infcmd.c: Include tracepoint.h.
4632 (ensure_not_tfind_mode): New function.
4633 (continue_1): Call it.
4635 (jump_command): Ditto.
4636 (signal_command): Ditto.
4637 (advance_command): Ditto.
4638 (until_command): Ditto.
4639 (finish_command): Ditto.
4640 * tracepoint.h (disconnect_or_stop_tracing): Declare.
4642 * ax-gdb.h (struct axs_value): New field optimized_out.
4643 (gen_trace_for_var): Add gdbarch argument.
4644 * ax-gdb.c (gen_trace_static_fields): New function.
4645 (gen_traced_pop): Call it, add gdbarch argument.
4646 (gen_trace_for_expr): Update call to it.
4647 (gen_trace_for_var): Ditto, and report optimized-out variables.
4648 (gen_struct_ref_recursive): Check for optimized-out value.
4649 (gen_struct_elt_for_reference): Ditto.
4650 (gen_static_field): Pass gdbarch instead of expression, assume
4651 optimization if field not found.
4652 (gen_var_ref): Set the optimized_out flag.
4653 (gen_expr): Error on optimized-out variable.
4654 * tracepoint.c (collect_symbol): Handle struct-valued vars as
4655 expressions, skip optimized-out variables with computed locations.
4656 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
4657 erroring out if location expression missing.
4658 (loclist_tracepoint_var_ref): Don't error out here.
4660 2010-03-17 Tom Tromey <tromey@redhat.com>
4662 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
4663 DWARF data is available.
4665 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4667 * symfile.c (generic_load): Reset breakpoints after loading.
4669 2010-03-17 Tom Tromey <tromey@redhat.com>
4671 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
4673 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4675 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
4676 create_breakpoint call, adjust the parameters.
4678 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4679 Chandru <chandru@in.ibm.com>
4681 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
4682 * valarith.c (value_subscripted_rvalue): Suppress error if
4683 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
4685 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
4687 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
4689 2010-03-16 Joel Brobecker <brobecker@adacore.com>
4691 * ada-tasks.c (task_command_1): Check that the task ptid is valid
4692 before doing the associated thread switch.
4694 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
4696 * MAINTAINERS: Update my email address.
4698 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
4700 Simplify MI breakpoint setting.
4702 * breakpoint.c (break_command_really): Make nonstatic and
4704 (create_breakpoint): ...this. Rename prior function by this name
4706 (create_breakpoint_sal): ...this.
4707 (create_breakpoints): Rename to...
4708 (create_breakpoints_sal): ...this.
4709 (set_breakpoint): Remove.
4710 * breakpoint.h: Adjust to above changes.
4711 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
4713 2010-03-15 Stan Shebs <stan@codesourcery.com>
4715 * ax-gdb.c: Include cp-support.h.
4716 (find_field): Remove.
4717 (gen_primitive_field): New function.
4718 (gen_struct_ref_recursive): New function.
4719 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
4721 (gen_static_field): New function.
4722 (gen_struct_elt_for_reference): New.
4723 (gen_namespace_elt): New.
4724 (gen_maybe_namespace_elt): New.
4725 (gen_aggregate_elt_ref): New.
4726 (gen_expr): Add OP_SCOPE, display opcode name in error message.
4728 2010-03-15 Tom Tromey <tromey@redhat.com>
4730 * dwarf2read.c (die_needs_namespace): Also return 0 for
4733 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
4736 * cp-support.h: Added char *declaration element to using_direct
4738 (cp_add_using): Added char *declaration argument.
4739 (cp_add_using_directive): Ditto.
4740 (cp_lookup_symbol_imports): made extern.
4741 * cp-namespace.c: Updated with the above changes.
4742 * dwarf2read.c (read_import_statement): Ditto.
4743 (read_namespace): Ditto.
4744 (read_import_statement): Support import declarations.
4745 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
4747 Added support for 'declaration_only' search.
4748 (cp_lookup_symbol_namespace): Attempt to search for the name as
4749 is before consideration of imports.
4750 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
4751 search at every block level search.
4752 Now takes language argument.
4753 (lookup_symbol_aux): Updated.
4755 2010-03-15 Tom Tromey <tromey@redhat.com>
4757 * c-exp.y (name_not_typename): Add 'operator' clause.
4759 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
4761 * configure.ac: Exit if ${gdb_target_obs}" is not set.
4762 * configure: Regenerate.
4764 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4766 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
4767 and ".sdynbss". Update the comment.
4769 2010-03-15 Jie Zhang <jie@codesourcery.com>
4771 * MAINTAINERS: Update my email address.
4773 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4775 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
4777 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4779 * charset.c [USE_WIN32API]: Include <windows.h>.
4780 (_initialize_charset): Correct type of w32_host_default_charset.
4782 2010-03-14 Pedro Alves <pedro@codesourcery.com>
4784 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
4786 2010-03-12 Tom Tromey <tromey@redhat.com>
4789 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
4790 in a lexical block does not need a namespace.
4791 (new_symbol) <DW_TAG_variable>: Put extern variables on
4792 list_in_scope in all cases.
4794 2010-03-12 Stan Shebs <stan@codesourcery.com>
4796 * ax-gdb.c (gen_expr): Add shift expressions.
4797 (gen_expr_binop_rest): Ditto.
4799 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
4801 * buildsym.c (finish_block): Reset using_directives pointer
4802 after block initialization.
4804 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
4806 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
4807 * i386-tdep.c (i386_word_names): Likewise.
4809 2010-03-12 Pedro Alves <pedro@codesourcery.com>
4811 * target.c (memory_xfer_partial): Don't use the stack cache if
4812 inspecting trace frames.
4813 * tracepoint.c (finish_tfind_command): Invalidate the target
4816 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4818 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
4819 for the PIC displacement, print also the displacement value.
4820 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
4822 2010-03-10 Kevin Buettner <kevinb@redhat.com>
4824 * remote-mips.c (close_ports, mips_initialize_cleanups)
4825 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
4826 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
4827 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
4828 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
4829 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
4830 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
4831 comments describing each of these functions.
4832 (mips_enter_debug, mips_exit_debug, common_open)
4833 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
4834 blank line after the comment describing the function.
4836 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4838 * solib-svr4.c (svr4_exec_displacement): Return now success, new
4839 parameter displacementp. Update comment.
4840 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
4841 element exists. Return if svr4_exec_displacement was not successful.
4844 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4845 Daniel Jacobowitz <dan@codesourcery.com>
4847 * solib-svr4.c (read_program_header): Support type == -1 to read
4848 all program headers.
4849 (read_program_headers_from_bfd): New function.
4850 (svr4_static_exec_displacement): Remove and move the comment ...
4851 (svr4_exec_displacement): ... here. Remove variable found. New
4852 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
4853 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
4854 targets using read_program_headers_from_bfd. Remove the call of
4855 svr4_static_exec_displacement.
4857 2010-03-10 Tom Tromey <tromey@redhat.com>
4859 * dwarf2read.c (struct pubnames_header): Remove.
4860 (_PUBNAMES_HEADER): Remove.
4861 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
4862 (struct aranges_header): Remove.
4863 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
4864 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
4865 (PUBNAMES_SECTION): Remove.
4866 (ARANGES_SECTION): Remove.
4867 (dwarf2_locate_sections): Don't handle pubnames or aranges.
4868 (dwarf2_build_psymtabs): Remove dead code.
4869 (dwarf2_build_psymtabs_easy): Remove.
4871 2010-03-10 Tom Tromey <tromey@redhat.com>
4873 * elfread.c (elf_symfile_read): Don't call
4874 dwarf2_build_frame_info.
4875 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
4876 (struct dwarf2_per_objfile) <objfile>: New field.
4877 (dwarf2_has_info): Now idempotent. Set objfile field.
4878 (dwarf2_read_section): Check and set readin field. Call
4880 (dwarf2_build_psymtabs): Don't read all sections.
4881 (read_type_comp_unit_head): Read types section.
4882 (create_debug_types_hash_table): Likewise.
4883 (init_cu_die_reader): Add asserts.
4884 (process_type_comp_unit): Add assert.
4885 (dwarf2_build_psymtabs_hard): Read info section.
4886 (load_partial_comp_unit): Add assert.
4887 (create_all_comp_units): Read info section.
4888 (load_full_comp_unit): Likewise.
4889 (dwarf2_ranges_read): Read ranges section.
4890 (dwarf2_record_block_ranges): Add assert.
4891 (dwarf2_read_abbrevs): Read abbrev section.
4892 (read_indirect_string): Read str section.
4893 (dwarf_decode_line_header): Read line section.
4894 (read_signatured_type_at_offset): Read types section.
4895 (dwarf_decode_macros): Read macinfo section.
4896 (dwarf2_symbol_mark_computed): Read loc section.
4897 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
4898 dwarf2_build_frame_info.
4899 (dwarf2_build_frame_info): Unconditionally set
4900 dwarf2_frame_objfile_data on the objfile.
4901 * configure.ac: Check for posix_madvise.
4902 * config.in, configure: Rebuild.
4904 2010-03-10 Tom Tromey <tromey@redhat.com>
4906 * xcoffread.c (xcoff_start_psymtab): Update.
4907 (xcoff_end_psymtab): Update.
4908 * psymtab.c (allocate_psymtab): Remove dead code.
4909 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
4911 * mdebugread.c (parse_partial_symbols): Update.
4912 (new_psymtab): Likewise.
4913 * dwarf2read.c (process_psymtab_comp_unit): Update.
4914 (psymtab_to_symtab_1): Update.
4915 * dbxread.c (start_psymtab): Update.
4916 (end_psymtab): Likewise.
4918 2010-03-10 Tom Tromey <tromey@redhat.com>
4920 * xcoffread.c: Include psymtab.h.
4921 (xcoff_sym_fns): Update.
4922 * symtab.h (struct partial_symbol): Remove.
4923 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
4924 (struct partial_symtab): Remove.
4925 (PSYMTAB_TO_SYMTAB): Remove.
4926 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
4927 (find_pc_sect_psymtab): Remove.
4928 (find_pc_sect_symtab_via_partial): Declare.
4929 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
4930 (find_main_psymtab): Remove.
4931 (find_main_filename): Declare.
4932 (fixup_psymbol_section): Remove.
4933 (fixup_section): Declare.
4934 * symtab.c: Include psymtab.h.
4935 (lookup_symtab): Use lookup_symtab method.
4936 (lookup_partial_symtab): Remove.
4937 (find_pc_sect_psymtab_closer): Remove.
4938 (find_pc_sect_psymtab): Remove.
4939 (find_pc_sect_symtab_via_partial): New function.
4940 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
4941 (fixup_section): No longer static.
4942 (fixup_psymbol_section): Remove.
4943 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
4944 (lookup_global_symbol_from_objfile): Likewise.
4945 (lookup_symbol_aux_psymtabs): Remove.
4946 (lookup_symbol_aux_quick): New function.
4947 (lookup_symbol_global): Use lookup_symbol_aux_quick.
4948 (lookup_partial_symbol): Remove.
4949 (basic_lookup_transparent_type_quick): New function.
4950 (basic_lookup_transparent_type): Use it.
4951 (find_main_psymtab): Remove.
4952 (find_main_filename): New function.
4953 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
4954 (find_line_symtab): Use expand_symtabs_with_filename method.
4955 (output_partial_symbol_filename): New function.
4956 (sources_info): Use map_partial_symbol_filenames.
4957 (struct search_symbols_data): New type.
4958 (search_symbols_file_matches): New function.
4959 (search_symbols_name_matches): Likewise.
4960 (search_symbols): Use expand_symtabs_matching method.
4961 (struct add_name_data): Rename from add_macro_name_data.
4962 (add_macro_name): Update.
4963 (add_partial_symbol_name): New function.
4964 (default_make_symbol_completion_list): Use
4965 map_partial_symbol_names.
4966 (struct add_partial_symbol_name): New type.
4967 (maybe_add_partial_symtab_filename): New function.
4968 (make_source_files_completion_list): Use
4969 map_partial_symbol_filenames.
4970 (expand_line_sal): Use expand_symtabs_with_filename method.
4971 * symmisc.c: Include psymtab.h.
4972 (print_objfile_statistics): Use print_stats method.
4973 (dump_objfile): Use dump method.
4974 (dump_psymtab, maintenance_print_psymbols)
4975 (maintenance_info_psymtabs, maintenance_check_symtabs)
4976 (extend_psymbol_list): Remove.
4977 * symfile.h (struct quick_symbol_functions): New struct.
4978 (struct sym_fns) <qf>: New field.
4979 (sort_pst_symbols): Remove.
4980 (increment_reading_symtab): Declare.
4981 * symfile.c: Include psymtab.h.
4982 (compare_psymbols, sort_pst_symbols): Remove.
4983 (psymtab_to_symtab): Remove.
4984 (increment_reading_symtab): New function.
4985 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
4987 (set_initial_language): Use find_main_filename.
4988 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
4989 (free_named_symtabs): Remove unused code.
4990 (start_psymtab_common, add_psymbol_to_bcache)
4991 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
4993 * stack.c: Include psymtab.h, symfile.h.
4994 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
4995 * source.h (psymtab_to_fullname): Don't declare.
4996 * source.c: Include psymtab.h.
4997 (select_source_symtab): Use find_last_source_symtab method.
4998 (forget_cached_source_info): Use forget_cached_source_info
5000 (find_and_open_source): No longer static.
5001 (psymtab_to_fullname): Remove.
5002 * somread.c: Include psymtab.h.
5003 (som_sym_fns): Update.
5004 * psympriv.h: New file.
5005 * psymtab.h: New file.
5006 * psymtab.c: New file.
5007 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
5008 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
5009 * objfiles.c: Include psymtab.h.
5010 (objfile_relocate1): Use relocate method.
5011 (objfile_has_partial_symbols): Use has_symbols method.
5012 * mipsread.c: Include psymtab.h.
5013 (ecoff_sym_fns): Update.
5014 * mi/mi-cmd-file.c: Include psymtab.h.
5015 (print_partial_file_name): New function.
5016 (mi_cmd_file_list_exec_source_files): Use
5017 map_partial_symbol_filenames.
5018 * mdebugread.c: Include psympriv.h.
5019 * machoread.c: Include psympriv.h.
5020 (macho_sym_fns): Update.
5021 * m2-exp.y (yylex): Use lookup_symtab.
5022 * elfread.c: Include psympriv.h.
5023 (elf_sym_fns): Update.
5024 * dwarf2read.c: Include psympriv.h.
5025 * dbxread.c: Include psympriv.h.
5026 (aout_sym_fns): Update.
5027 * cp-support.c: Include psymtab.h.
5028 (read_in_psymtabs): Remove.
5029 (make_symbol_overload_list_qualified): Use
5030 expand_symtabs_for_function method.
5031 * coffread.c: Include psympriv.h.
5032 (coff_sym_fns): Update.
5033 * blockframe.c: Include psymtab.h.
5034 (find_pc_partial_function): Use find_pc_sect_symtab method.
5035 * ada-lang.h (ada_update_initial_language): Update.
5036 * ada-lang.c: Include psymtab.h.
5037 (ada_update_initial_language): Remove 'main_pst' argument.
5038 (ada_lookup_partial_symbol): Remove.
5039 (struct ada_psym_data): New type.
5040 (ada_add_psyms): New function.
5041 (ada_add_non_local_symbols): Use map_ada_symtabs method.
5042 (struct add_partial_datum): New type.
5043 (ada_add_partial_symbol_completions): New function.
5044 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
5045 (ada_exception_support_info_sniffer): Update.
5046 * Makefile.in (SFILES): Add psymtab.c.
5047 (COMMON_OBS): Add psymtab.o.
5048 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
5050 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5052 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
5054 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
5057 * cp-namespace.c (cp_add_using): Deleted.
5058 (cp_add_using_directive): Use obstack allocations.
5059 Merged the function cp_add_using into this one.
5060 Added 'struct obstack *' argument.
5061 (cp_scan_for_anonymous_namespaces): Updated.
5062 * cp-support.h: Updated.
5063 * dwarf2read.c (read_import_statement): Updated.
5064 (read_namespace): Updated.
5066 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5068 * windows-nat.c (cygwin_conv_path): Remove old macro.
5070 2010-03-10 Pedro Alves <pedro@codesourcery.com>
5072 * breakpoint.c (condition_command): Handle watchpoint conditions.
5073 (is_hardware_watchpoint): Add comment.
5074 (is_watchpoint): New.
5075 (update_watchpoint): Don't reparse the watchpoint's condition
5078 (watchpoint_check): Use it.
5079 (bpstat_check_watchpoint): Handle it.
5080 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
5081 conditions in a frame where it makes sense.
5082 (watch_command_1): Store the innermost block of the condition
5084 (delete_breakpoint): Delete the watchpoint condition expression.
5085 * breakpoint.h (struct bp_location) <cond>: Update comment.
5086 (struct breakpoint): New field `cond_exp_valid_block'.
5088 2010-03-09 Joel Brobecker <brobecker@adacore.com>
5090 Adjust handling of Ada DIEs after dwarf2_physname patch.
5091 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
5093 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
5094 Pierre Muller <muller@ics.u-strasbg.fr>
5096 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
5097 from/to posix/win32.
5098 (windows_make_so): Use non-Cygwin 1.7 specific function.
5099 (windows_create_inferior): Make sure that cygallargs points to
5100 original args in non Cygwin 1.7. case.
5102 2010-03-09 Michael Snyder <msnyder@vmware.com>
5104 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
5105 after target_read_memory to get host byte order.
5106 (i386_process_record): Ditto.
5108 2010-03-09 Keith Seitz <keiths@redhat.com>
5110 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
5111 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
5112 print out const or volatile qualifiers, too.
5113 (c_type_print_args): Add parameters show_artificial and language.
5114 Skip artificial parameters when requested.
5115 Use the appropriate language printer.
5116 (c_type_print_varspec): Tell c_type_print_args to skip artificial
5117 parameters and pass language_c.
5118 * dwarf2read.c (die_list): New file global.
5119 (struct partial_die_info): Update comments for name field.
5120 (pdi_needs_namespace): Renamed to ...
5121 (die_needs_namespace): ... this. Rewrite.
5122 (dwarf2_linkage_name): Remove.
5123 (add_partial_symbol): Do not predicate the call to
5124 partial_die_full_name based on pdi_needs_namespace.
5125 Remove call to cp_check_possible_namespace_symbols and associated
5127 (guess_structure_name): Do not inspect child subprogram DIEs.
5128 (dwarf2_fullname): Update comments.
5129 Use die_needs_namespace to assist in computing the name.
5130 (read_func_scope): Use dwarf2_name to get the DIE's name.
5131 Use dwarf2_physname to get the "linkage name" of the DIE.
5132 (dwarf2_add_member_field): Use dwarf2_physname instead of
5133 dwarf2_linkage_name.
5134 (read_structure_type): For structs and classes, set TYPE_NAME, too.
5135 (determine_class): Remove.
5136 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
5138 (new_symbol): Unconditionally call dwarf2_name.
5139 Compute the "linkage name" using dwarf2_physname.
5140 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
5141 When determining to scan for anonymous C++ namespaces, ignore
5143 (dwarf2_physname): New function.
5144 (dwarf2_full_name): Move content to new function and call
5146 (dwarf2_compute_name): "New" function.
5147 (_initialize_dwarf2_read): Initialize die_list.
5148 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
5150 (gnu_v3_print_method_ptr): Use the physname for virtual methods
5151 without a demangled name.
5152 Print out type information for non-virtual methods.
5153 * linespec.c (decode_line_1): Force ANY string using "::" (or
5154 "." for java) to use decode_compound, and clean up any stray quoting.
5155 If we found a file symtab, re-evaluate whether the remainder is_quoted.
5156 (decode_compound): Stop consuming at an open parenthesis.
5157 Keep template parameters.
5158 Keep any overload information.
5159 Keep keywords like "const".
5160 Remove paren_pointer.
5161 Move is_quoted check from set_flags to here.
5162 Remove #if 0 code from 2000. Ten years is long enough.
5163 (find_method): Before comparing symbol names, canonicalize the string
5165 If a specific overload is requested, find it. Otherwise throw an error.
5166 (find_method_overload_end): New function.
5167 (set_flags): Remove.
5168 (decode_compound): Assume that parentheses are matched.
5170 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
5172 * linespec.c (decode_line_1): Keep important keywords like
5173 "const" and "volatile".
5174 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
5175 * typeprint.h (c_type_print_args): Add declaration.
5176 * ui-file.c (do_ui_file_obsavestring): New function.
5177 (ui_file_obsavestring): New function.
5178 * ui-file.h (ui_file_obsavestring): Add declaration.
5179 * valops.c (find_overload_match): Resolve the object to
5181 If the object is a data member, search the object for the member
5182 and return with staticp set.
5183 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
5184 Do not attempt to extract a function name from non-function types.
5185 If the extracted function name and the original name are the same,
5186 we don't have a C++ method.
5188 From Jan Kratochvil <jan.kratochvil@redhat.com>:
5189 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
5191 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
5192 and arguments from symbol lookups.
5193 * ax-gdb.c (gen_expr): Likewise.
5194 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
5195 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
5196 lookup_possible_namespace_symbol): Likewise.
5197 * cp-support.c (read_in_psymtabs): Likewise.
5198 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
5199 * language.h (la_lookup_symbol_nonlocal): Likewise.
5200 * scm-valprint.c (scm_inferior_print): Likewise.
5201 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
5202 * solib-svr.c (elf_lookup_lib): Likewise.
5203 * solib.c (show_auto_solib_add): Likewise.
5204 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
5205 * symmisc.c (maintenance_check_symtabs): Likewise.
5206 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
5207 lookup_symbol_aux_local, lookup_symbol_aux_block,
5208 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
5209 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
5210 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
5211 basic_lookup_transparent_type, find_main_psymtab,
5212 lookup_block_symbol): Likewise.
5213 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
5214 lookup_symbol_global, lookup_symbol_aux_block,
5215 lookup_symbol_partial_symbol, lookup_block_symbol,
5216 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
5218 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
5220 * python/python-internal.h: Include symtab.h.
5222 2010-03-09 Joel Brobecker <brobecker@adacore.com>
5223 Pierre Muller <muller@ics.u-strasbg.fr>
5225 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
5226 * p-valprint.c (pascal_val_print): Remove undeed block and fix
5229 2010-03-08 Tom Tromey <tromey@redhat.com>
5231 * breakpoint.c (breakpoint_1): Add "QUIT".
5233 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
5234 Pedro Alves <pedro@codesourcery.com>
5236 * solib.c (solib_find): Replace extension if
5237 solib_symbols_extension is set in the target gdbarch.
5238 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5239 solib_symbols_extension to "sym".
5240 * gdbarch.sh (solib_symbols_extension): New variable.
5241 (pstring): New function.
5242 * gdbarch.h, gdbarch.c: Regenerate.
5244 2010-03-08 Tom Tromey <tromey@redhat.com>
5248 * utils.c: Include main.h.
5249 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
5250 (defaulted_query): Use default answer if `batch_flag'.
5251 * main.h (batch_flag): Declare.
5252 * main.c (batch_flag): New global.
5253 (captured_main): Remove 'batch'. Update.
5255 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5257 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
5260 * remote-mips.c (rockhopper_ops): New target_ops struct.
5261 (MON_ROCKHOPPER): New mips_monitor_type.
5262 (read_hex_value): New function.
5263 (mips_request): Send 8-byte values with a 'T' packet. Read the
5264 packet argument as a string and use read_hex_value to parse it.
5265 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
5266 (rockhopper_open): New function.
5267 (mips_wait): Read the PC, FP and SP fields as strings. Use
5268 read_hex_value to parse them and mips_set_register to commit them.
5269 (mips_set_register): New function.
5270 (mips_fetch_registers): Do not cast register value to "unsigned"
5271 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
5272 (mips_store_registers): Use a 'T' packet to set registers when
5273 using MON_ROCKHOPPER.
5274 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
5275 and expect the total to be printed before the entry address.
5276 (_initialize_remote_mips): Initialize and add rockhopper_ops.
5278 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5280 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
5281 Change return value to int. Store value fetched in location
5282 addressed by `val'. Use function's return value as success
5283 or failure indicator. Adjust all callers.
5285 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
5287 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
5289 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5290 Hui Zhu <teawater@gmail.com>
5292 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
5293 tmp_to_stopped_data_address.
5294 (record_open): Reset tmp_to_stopped_by_watchpoint and
5295 tmp_to_stopped_data_address.
5296 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
5297 to_stopped_data_address.
5299 2010-03-08 Hui Zhu <teawater@gmail.com>
5301 * i386-tdep.c (i386_process_record): Initialize regnum.
5303 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5305 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
5306 Do not warn on ".gnu.liblist" and ".gnu.conflict".
5308 2010-03-08 Joel Brobecker <brobecker@adacore.com>
5310 Memory error when reading wrong core file.
5311 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
5312 errors while reading the inferior memory, and return zero if
5313 an exception was raised.
5315 2010-03-07 Michael Snyder <msnyder@vmware.com>
5317 * record.c (record_restore): Rename tmpu8 to rectype.
5319 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
5320 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
5322 (i386_record_push): Rename local tmpulongest to addr.
5324 (i386_process_record): Rename local tmpulongest to addr.
5326 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
5329 Rename local variable tmpu8 to opcode8 and regnum.
5331 2010-03-07 Joel Brobecker <brobecker@adacore.com>
5333 * remote.c (remote_get_ada_task_ptid): New function.
5334 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
5336 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
5338 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
5339 block. Define helper macros to reduce ifdefs in code.
5340 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
5341 size. Call unadorned GetModuleFileNameEx rather than
5342 GetModuleFileNameEx*.
5343 (windows_make_so): Use __PMAX to denote maximum buffer size and
5344 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
5346 (get_image_name): Use __PMAX to denote maximum buffer size.
5347 (handle_load_dll): Likewise.
5348 (windows_pid_to_exec_file): Likewise.
5349 (windows_create_inferior): Add many accommodations for older Cygwin and
5351 (bad_GetModuleFileNameExW): Control inclusion of this function based on
5352 __USEWIDE conditional.
5353 (bad_GetModuleFileNameExA): Likewise.
5354 (_initialize_loadable): Just use real function names without the dyn_
5355 part since they are defined earlier.
5357 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
5358 Tom Tromey <tromey@redhat.com>
5360 * utils.c (host_char_to_target): Add 'gdbarch' argument.
5361 (parse_escape): Likewise.
5362 * python/py-utils.c (unicode_to_target_string): Update.
5363 (unicode_to_target_python_string): Update.
5364 (target_string_to_unicode): Update.
5365 * printcmd.c (printf_command): Update.
5366 * p-exp.y (yylex): Update.
5367 * objc-exp.y (yylex): Update.
5368 * mi/mi-parse.c: Include charset.h.
5369 (mi_parse_escape): New function.
5370 (mi_parse_argv): Use it.
5371 * jv-exp.y (yylex): Update.
5372 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
5374 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
5375 * gdbarch.sh (auto_charset, auto_wide_charset): New.
5376 * gdbarch.c: Rebuild.
5377 * gdbarch.h: Rebuild.
5378 * defs.h (parse_escape): Update.
5379 * cli/cli-setshow.c: Include arch-utils.h.
5380 (do_setshow_command): Update.
5381 * cli/cli-cmds.c (echo_command): Update.
5382 * charset.h (target_charset, target_wide_charset): Update.
5383 * charset.c: Include arch-utils.h.
5384 (target_charset_name): Default to "auto".
5385 (target_wide_charset_name): Likewise.
5386 (show_target_charset_name): Handle "auto".
5387 (show_target_wide_charset_name): Likewise.
5388 (be_le_arch): New global.
5389 (set_be_le_names): Add 'gdbarch' argument.
5390 (validate): Likewise. Don't call set_be_le_names.
5391 (set_charset_sfunc, set_host_charset_sfunc)
5392 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
5394 (target_charset): Add 'gdbarch' argument.
5395 (target_wide_charset): Likewise. Remove 'byte_order' argument.
5396 (auto_target_charset_name): New global.
5397 (default_auto_charset, default_auto_wide_charset): New functions.
5398 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
5399 for target charsets. Copy result of nl_langinfo. Use GetACP if
5401 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
5402 remove 'byte_order' argument. Update.
5403 (classify_type): Likewise.
5404 (c_emit_char): Update.
5405 (c_printchar): Update.
5406 (c_printstr): Update.
5407 (c_get_string): Update.
5408 (evaluate_subexp_c): Update.
5409 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
5411 * python/python.c (gdbpy_target_charset): New function.
5412 (gdbpy_target_wide_charset): Likewise.
5413 (GdbMethods): Update.
5416 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5418 * symfile.c (build_section_addr_info_from_objfile): Do not mask
5419 off high address bits.
5421 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5423 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
5424 address as UnsignedLongLong, not LongLong.
5426 2010-03-05 Kevin Buettner <kevinb@redhat.com>
5427 Pedro Alves <pedro@codesourcery.com>
5429 * remote-mips.c (gdbthread.h): Include.
5430 (remote_mips_ptid): Declare.
5431 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
5432 (common_open): Set inferior_ptid, add it as an inferior, and
5433 as a thread too. Delete FIXME comment regarding start_remote().
5434 (mips_close): Invoke generic_mourn_inferior().
5435 (mips_kill): Make sure that target_mourn_inferior is invoked.
5436 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
5437 it's now invoked from mips_close().
5438 (mips_load): Don't null out inferior_ptid. Don't call
5439 clear_symtab_users().
5440 (mips_thread_alive, mips_pid_to_str): New functions.
5441 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
5442 to_thread_alive and to_pid_to_str operations.
5444 2010-03-04 Tom Tromey <tromey@redhat.com>
5446 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
5447 in DWARF 3 and later.
5448 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
5450 2010-03-04 Keith Seitz <keiths@redhat.com>
5452 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
5453 If the filename portion of the linespec was quoted, recheck the
5454 remainder for additional quoting.
5455 (locate_first_half): Skip over completer chars, too.
5457 2010-03-04 Tom Tromey <tromey@redhat.com>
5459 * printcmd.c (printf_command): Pass dummy argument to
5462 2010-03-04 Doug Evans <dje@google.com>
5464 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
5467 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
5469 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5471 * breakpoint.c (update_watchpoint): Create a sentinel location if
5472 the software watchpoint isn't watching any memory.
5473 (breakpoint_address_bits): Skip dummy software watchpoint locations.
5475 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5477 * utils.c (fputs_maybe_filtered): Check if there's already a top
5478 level interpreter before dereferencing it. If there isn't one,
5479 don't paginate either.
5481 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5483 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
5484 the state right when single stepping.
5485 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
5486 Get the next PC along with the instruction state.
5487 (thumb_get_next_pc): Remove.
5488 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
5490 2010-03-04 Hui Zhu <teawater@gmail.com>
5492 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
5494 2010-03-03 Pedro Alves <pedro@codesourcery.com>
5496 * utils.c (fputs_maybe_filtered): Always disable pagination if the
5497 top level interpreter is MI.
5499 2010-03-03 Stan Shebs <stan@codesourcery.com>
5501 * remote.c (remote_download_tracepoint): Iterate over locations.
5502 * tracepoint.c (validate_actionline): Ditto.
5503 (encode_actions): Add location argument.
5504 (trace_dump_command): Check all locations to see if stepping
5507 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
5508 Eli Zaretskii <eliz@gnu.org>
5510 * NEWS: Add X86 general purpose registers section.
5512 2010-03-03 Tom Tromey <tromey@redhat.com>
5515 * varobj.c (install_new_value): Handle case where new print_value
5518 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
5521 * printcmd.c (printf_command): Print end of format string using
5524 2010-03-02 Tom Tromey <tromey@redhat.com>
5526 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
5527 * defs.h (read_command_lines_1): Add missing 'void'.
5528 * cli/cli-script.c (recurse_read_control_structure): Add missing
5530 (read_next_line): Likewise.
5531 (read_command_lines_1): Likewise.
5533 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5535 * spu-tdep.c (spu_analyze_prologue): Track instruction to
5536 store backchain as part of prologue.
5538 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
5540 * progspace.c (update_address_spaces): Update inferior address spaces
5543 2010-03-02 Doug Evans <dje@google.com>
5545 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
5546 lowpc,highpc args to addrmap_set_empty.
5548 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
5550 * amd64-tdep.c (amd64_byte_names): New.
5551 (amd64_word_names): Likewise.
5552 (amd64_dword_names): Likewise.
5553 (amd64_pseudo_register_name): Likewise.
5554 (amd64_pseudo_register_read): Likewise.
5555 (amd64_pseudo_register_write): Likewise.
5556 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
5557 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
5558 set_gdbarch_pseudo_register_write and
5559 set_tdesc_pseudo_register_name. Don't call
5560 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
5562 * i386-tdep.c (i386_num_mmx_regs): Removed.
5563 (i386_num_pseudo_regs): Likewise.
5564 (i386_byte_names): New.
5565 (i386_word_names): Likewise.
5566 (i386_byte_regnum_p): Likewise.
5567 (i386_word_regnum_p): Likewise.
5568 (i386_mmx_regnum_p): Updated.
5569 (i386_pseudo_register_name): Make it global. Handle byte and
5570 word pseudo-registers.
5571 (i386_pseudo_register_read): Likewise.
5572 (i386_pseudo_register_write): Likewise.
5573 (i386_pseudo_register_type): Handle byte, word and dword
5575 (i386_register_reggroup_p): Don't include pseudo
5576 registers, except for MXX, in any register groups. Don't
5577 include pseudo byte, word, dword registers in general_reggroup.
5578 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
5579 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
5580 pseudo-registers after word pseudo-registers. Call
5581 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
5583 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
5584 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
5586 (i386_byte_regnum_p): New.
5587 (i386_word_regnum_p): Likewise.
5588 (i386_dword_regnum_p): Likewise.
5589 (i386_pseudo_register_name): Likewise.
5590 (i386_pseudo_register_read): Likewise.
5591 (i386_pseudo_register_write): Likewise.
5593 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5595 * target-descriptions.c (tdesc_type): Remove
5596 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5597 (tdesc_predefined_types): Likewise.
5598 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
5599 if flag name is empty.
5600 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
5602 * features/i386/32bit-core.xml: Define i386_eflags.
5603 * features/i386/64bit-core.xml: Likewise.
5605 * features/i386/32bit-sse.xml: Define i386_mxcsr.
5606 * features/i386/64bit-sse.xml: Likewise.
5608 * features/i386/amd64-linux.c: Regenerated.
5609 * features/i386/amd64.c: Likewise.
5610 * features/i386/i386-linux.c: Likewise.
5611 * features/i386/i386.c: Likewise.
5613 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
5615 * gdbtypes.c (append_composite_type_field_raw): New.
5616 (append_composite_type_field_aligned): Use the new function.
5617 * gdbtypes.h (append_composite_type_field_raw): Declare.
5618 * target-descriptions.c (struct tdesc_type_field): Add start and end.
5619 (struct tdesc_type_flag): New type.
5620 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
5621 kind. Add size to u.u. Add u.f for flags.
5622 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
5623 (tdesc_free_type): Likewise.
5624 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
5625 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
5626 (tdesc_add_bitfield, tdesc_add_flag): New.
5627 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
5628 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
5629 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
5630 current_type. Add current_type_size and current_type_is_flags.
5631 (tdesc_start_union): Clear the new fields.
5632 (tdesc_start_struct, tdesc_start_flags): New.
5633 (tdesc_start_field): Handle struct fields, including bitfields.
5634 (field_attributes): Make type optional. Add start and end.
5635 (union_children): Rename to struct_union_children.
5636 (union_attributes): Rename to struct_union_attributes. Add optional
5638 (flags_attributes): New.
5639 (feature_children): Add struct and flags.
5640 * features/gdb-target.dtd: Add flags and struct to features.
5641 Make field type optional. Add field start and end.
5643 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5645 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
5646 (amd64_linux_read_description): Likewise.
5647 (_initialize_amd64_linux_nat): Set to_read_description to
5648 amd64_linux_read_description.
5650 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
5651 (amd64_linux_register_name): Removed.
5652 (amd64_linux_register_type): Likewise.
5653 (amd64_linux_core_read_description): New.
5654 (amd64_linux_init_abi): Set target description to
5655 tdesc_amd64_linux if needed. Support orig_rax in target
5656 description. Don't call set_gdbarch_register_name nor
5657 set_gdbarch_register_type. Call
5658 set_gdbarch_core_read_description.
5659 (_initialize_amd64_linux_tdep): Call
5660 initialize_tdesc_amd64_linux.
5662 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
5664 * amd64-tdep.c: Include "features/i386/amd64.c".
5665 (amd64_register_names): Removed.
5666 (amd64_register_name): Likewise.
5667 (amd64_register_type): Likewise.
5668 (amd64_init_abi): Set num_core_regs and register_names. Set
5669 target description to tdesc_amd64 if needed. Don't call
5670 set_gdbarch_register_name nor set_gdbarch_register_type.
5671 (_initialize_amd64_tdep): New.
5673 * i386-linux-nat.c (i386_linux_read_description): New.
5674 (_initialize_i386_linux_nat): Set to_read_description to
5675 i386_linux_read_description.
5677 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
5678 (i386_linux_register_name): Removed.
5679 (i386_linux_core_read_description): New.
5680 (i386_linux_read_description): Likewise.
5681 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
5682 Set target description to tdesc_i386_linux if needed. Support
5683 orig_eax. Set register_reggroup_p. Call
5684 set_gdbarch_core_read_description.
5685 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
5687 * i386-linux-tdep.h (tdesc_i386_linux): New.
5689 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
5692 * i386-tdep.c: Include "features/i386/i386.c".
5693 (i386_register_names): Make it const.
5694 (i386_mmx_names): Likewise.
5695 (i386_num_register_names): Removed.
5696 (i386_register_name): Likewise.
5697 (i386_eflags_type): Likewise.
5698 (i386_mxcsr_type): Likewise.
5699 (i386_sse_type): Likewise.
5700 (i386_register_type): Likewise.
5701 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
5702 (i386_pseudo_register_name): New.
5703 (i386_pseudo_register_type): Likewise.
5704 (i386_mmx_type): Make it static.
5705 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
5706 I387_NUM_REGS. Set num_core_regs and register_names. Don't
5707 call set_gdbarch_register_name nor set_gdbarch_register_type.
5708 Set register_reggroup_p. Set target description to tdesc_i386
5709 if needed. Call set_tdesc_pseudo_register_type,
5710 set_tdesc_pseudo_register_name and tdesc_use_registers.
5711 (_initialize_i386_tdep): Call initialize_tdesc_i386.
5712 initialize_tdesc_x86_64.
5714 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
5715 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
5716 register_names, tdesc and register_reggroup_p.
5717 (I386_NUM_FREGS): Removed.
5718 (i386_eflags_type): Likewise.
5719 (i386_mxcsr_type): Likewise.
5720 (i386_mmx_type): Likewise.
5721 (i386_sse_type): Likewise.
5722 (i386_register_name): Likewise.
5723 (i386_regnum): Add I386_MXCSR_REGNUM.
5724 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
5726 * i387-tdep.h (I387_NUM_REGS): New.
5728 * regformats/i386/i386-linux.dat: Generated.
5729 * regformats/i386/i386.dat: Likewise.
5730 * regformats/i386/amd64-linux.dat: Likewise.
5731 * regformats/i386/amd64.dat: Likewise.
5733 * regformats/reg-i386-linux.dat: Removed.
5734 * regformats/reg-i386.dat: Likewise.
5735 * regformats/reg-x86-64-linux.dat: Likewise.
5736 * regformats/reg-x86-64.dat: Likewise.
5738 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
5740 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
5741 cygwin_conv_path API rather than the deprecated
5742 cygwin_conv_to_full_posix_path.
5744 (GetModuleFileNameExA): Undefine for Cygwin.
5745 (GetModuleFileNameExW): Define for Cygwin.
5746 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
5747 Call GetModuleFileNameExW and convert path to POSIX using
5749 (windows_make_so): Always define p. Drop unused variable m.
5750 Don't use Win32 functions to check file existance, rather use
5751 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
5752 Use canonicalize_file_name to get full path.
5753 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
5754 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
5755 use correct target buffer size in call to WideCharToMultiByte.
5756 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
5757 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
5758 (windows_create_inferior): Convert all paths and arguments to wchar_t
5759 and use CreateProcessW on Cygwin.
5760 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
5761 (bad_GetModuleFileNameExA): Undefine for Cygwin.
5762 (bad_GetModuleFileNameExW): Define for Cygwin.
5763 (_initialize_loadable): Load GetModuleFileNameExW into
5764 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
5766 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
5769 * python/py-frame.c (frapy_read_var): Add block argument and logic
5770 to cope with user provided blocks.
5772 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5774 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
5777 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
5779 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
5780 (COMMON_OBS): ... to here since it's used unconditionally.
5781 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
5784 2010-02-26 David Daney <ddaney@caviumnetworks.com>
5786 * mips-linux-tdep.c: Update struct sigframe comments.
5787 (SIGFRAME_CODE_OFFSET): Delete macro.
5788 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
5790 (mips_linux_n32n64_sigframe_init): Same.
5792 2010-02-26 Kevin Buettner <kevinb@redhat.com>
5794 * remote-mips.c (mips_load): Don't use pseudo-register when
5795 invalidating regcache.
5797 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5799 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
5801 2010-02-26 Pedro Alves <pedro@codesourcery.com>
5803 * NEWS: Add "New targets" section, and mention ARM Symbian
5806 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
5808 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
5809 add ADDR_SIZE member.
5810 (allocate_piece_closure): Update.
5811 (copy_pieced_value_closure): Likewise.
5812 (dwarf2_evaluate_loc_desc): Likewise.
5813 (read_pieced_value): Use DWARF address size instead of
5814 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
5816 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
5817 Tom Tromey <tromey@redhat.com>
5819 * python/py-type.c (typy_lookup_typename): Add in block argument.
5820 If provided restrict lookup to specified blocks.
5821 (gdbpy_lookup_type): Likewise.
5822 (typy_lookup_type): Likewise.
5824 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5829 * arm-symbian-tdep.c: New.
5830 * configure.tgt (arm*-*-symbianelf*): New target.
5831 (*-*-symbianelf*): New OS.
5832 * osabi.c (gdb_osabi_names): Add Symbian.
5833 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
5834 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
5835 (ALLDEPFILES): Add arm-symbian-tdep.c.
5837 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5839 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
5841 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5843 * mi/mi-main.c (mi_cmd_execute): Fix typo.
5845 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
5846 Tom Tromey <tromey@redhat.com>
5847 Thiago Jung Bauermann <bauerman@br.ibm.com>
5849 * python/python.c (_initialize_python): Call
5850 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
5851 gdbpy_initialize_blocks.
5852 * python/python-internal.h: Declare struct symbol, block and
5853 symtab_and_line. Declare block_object_type and
5855 (gdbpy_lookup_symbol gdbpy_block_for_pc)
5856 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
5857 (symbol_to_symbol_object, block_to_block_object)
5858 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
5859 (gdbpy_initialize_blocks ): Declare.
5860 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
5861 (frapy_select): Add methods.
5862 (frapy_read_var): Add symbol branch.
5863 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
5865 (SUBDIR_PYTHON_SRCS): Likewise.
5866 (py-symbol.o): New rule.
5867 (py-symtab.o): Likewise.
5868 (py-block.o): Likewise.
5869 * python/py-symbol.c: New file.
5870 * python/py-symtab.c: Likewise.
5871 * python/py-block.c: Likewise.
5873 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5877 * inferior.h (prepare_for_detach): Declare.
5878 (struct inferior) <detaching>: New field.
5879 * infrun.c (prepare_for_detach): New.
5880 (handle_inferior_event) <random signal>: Don't stop if detaching.
5881 * target.c (target_detach): Call prepare_for_detach.
5883 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5885 Per-process displaced stepping queue.
5887 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
5888 (displaced_step_gdbarch, displaced_step_closure,
5889 (displaced_step_original, displaced_step_copy): Move globals to
5891 (struct displaced_step_inferior_state): ... new structure.
5892 (displaced_step_inferior_states): New global.
5893 (get_displaced_stepping_state, add_displaced_stepping_state)
5894 (remove_displaced_stepping_state, infrun_inferior_exit): New
5896 (displaced_step_clear): Add displaced_step_inferior_state
5897 parameter, and adjust to handle it.
5898 (displaced_step_clear_cleanup): Parameter is now a
5899 displaced_step_inferior_state. Adjust.
5900 (displaced_step_prepare): Adjust.
5901 (displaced_step_fixup, displaced_step_fixup)
5902 (infrun_thread_ptid_changed, resume): Adjust.
5903 (init_wait_for_inferior): Don't call displaced_step_clear.
5904 (infrun_thread_stop_requested): Rewrite.
5905 (_initialize_infrun): Install infrun_inferior_exit as
5906 inferior_exit observer.
5908 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5910 * inferior.h (ptid_match): Declare.
5911 * infrun.c (ptid_match): New.
5912 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
5913 (handle_notification): Add debug output.
5914 * linux-nat.c (ptid_match): Delete.
5916 2010-02-24 David S. Miller <davem@davemloft.net>
5918 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
5919 * syscalls/sparc-linux.xml: New.
5920 * syscalls/sparc64-linux.xml: New.
5921 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
5922 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
5923 (sparc32_linux_get_syscall_number): New function.
5924 (sparc32_linux_init_abi): Set syscall XML file name and hook up
5925 syscall number fetcher.
5926 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
5927 (sparc64_linux_get_syscall_number): New function.
5928 (sparc64_linux_init_abi): Set syscall XML file name and hook up
5929 syscall number fetcher.
5931 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5935 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
5936 * inferior.c (add_inferior_silent): Notify inferior_added
5938 (delete_inferior_1): Notify inferior_removed observer.
5939 (exit_inferior_1): Pass inferior, not pid, to observer.
5940 (inferior_appeared): Likewise.
5941 (add_inferior_with_spaces): New.
5942 (add_inferior_command): Use the above.
5943 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
5946 * inflow.c (inflow_inferior_exit): Likewise.
5947 * jit.c (jit_inferior_exit_hook): Likewise.
5949 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
5951 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5952 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
5953 (report_initial_inferior): New.
5954 (mi_inferior_removed): Register the above. Make sure
5955 inferior_added observer is called on the first inferior.
5956 (mi_new_thread, mi_thread_exit): Thread group is now identified by
5957 inferior number, not pid.
5958 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
5960 * mi/mi-main.c (current_context): New.
5961 (proceed_thread_callback): Use typed closure.
5962 Proceed everything if pid is 0. Most implementation split into
5963 (proceed_thread): ... this.
5964 (run_one_inferior): New.
5965 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
5966 Adjust for multiexec behaviour.
5967 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5968 (mi_cmd_execute): Handle the 'thread-group' option here.
5969 Do some extra checks.
5970 * mi-parse.c (mi_parse): Handle the --all and --thread-group
5972 * mi-parse.h (struct mi_parse): New fields all and thread_group.
5974 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5976 Make -exec-run a proper MI commands.
5978 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
5979 * mi/mi-cmds.c (mi_cmds): Adjust.
5980 * mi/mi-main.c (mi_cmd_exec_run): New.
5982 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5983 Stan Shebs <stan@codesourcery.com>
5985 * tracepoint.h (set_traceframe_number)
5986 (cleanup_restore_current_traceframe): Declare.
5987 * tracepoint.c (set_traceframe_number): New.
5988 (struct current_traceframe_cleanup): New.
5989 (do_restore_current_traceframe_cleanup)
5990 (restore_current_traceframe_cleanup_dtor)
5991 (make_cleanup_restore_current_traceframe): New.
5992 * infrun.c: Include tracepoint.h.
5993 (fetch_inferior_event): Switch out and in of tfind mode.
5995 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5997 * breakpoint.c (breakpoint_init_inferior): Also delete
5998 bp_shlib_event breakpoints.
5999 * solib-frv.c (enable_break): Remove call to
6000 remove_solib_event_breakpoints.
6001 * solib-svr4.c (enable_break): Ditto.
6002 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
6003 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
6004 * solib-som.c (som_solib_create_inferior_hook): Ditto.
6005 * solib-spu.c (spu_enable_break): Ditto.
6007 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6009 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
6011 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6013 * varobj.c (varobj_update): Avoid non-constants in initializers.
6015 2010-02-23 Tom Tromey <tromey@redhat.com>
6017 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
6018 handle big-endian values.
6019 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
6021 2010-02-22 Pedro Alves <pedro@codesourcery.com>
6026 * breakpoint.c (insert_bp_location): If inserting the read
6027 watchpoint failed, fallback to an access watchpoint.
6028 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
6029 if the value changed, if not watching the same memory for writes.
6030 (watchpoint_locations_match): Add comment.
6031 (update_global_location_list): Copy the location's watchpoint type.
6032 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
6033 handle read watchpoints here.
6034 (i386_insert_watchpoint): Read watchpoints aren't supported.
6035 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
6037 * target.h (target_insert_watchpoint): Update description.
6039 2010-02-19 Tom Tromey <tromey@redhat.com>
6041 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
6042 * m2-typeprint.c (m2_print_type): Update.
6043 * gdbtypes.c (recursive_dump_type): Update.
6044 (copy_type_recursive): Update.
6045 * c-typeprint.c (c_type_print_varspec_prefix): Update.
6046 (c_type_print_base): Update.
6047 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
6049 (struct cplus_struct_type) <ntemplate_args>: Remove.
6050 <struct template_arg>: Remove.
6051 <is_dynamic>: Move earlier.
6052 (TYPE_TEMPLATE_ARGS): Remove.
6053 (TYPE_NTEMPLATE_ARGS): Remove.
6054 (TYPE_TEMPLATE_ARG): Remove.
6056 2010-02-19 Tom Tromey <tromey@redhat.com>
6058 PR c++/8693, PR c++/9496:
6059 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
6060 * c-exp.y (lex_one_token): Rename from yylex. Don't call
6061 write_dollar_variable. Don't try to classify NAME tokens.
6062 (token_and_value): New type.
6063 (token_fifo, popping, name_obstack): New globals.
6064 (classify_name): New function.
6065 (classify_inner_name): Likewise.
6067 (VARIABLE): Now has type sval.
6068 (exp : VARIABLE): Call write_dollar_variable.
6069 (qualified_name): Use TYPENAME, not typebase. Add production for
6070 multiple "::" instances.
6071 (variable): Use name_not_typename.
6072 (qualified_type): Remove.
6075 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6077 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
6078 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
6079 found by bfd_get_section_by_name.
6080 * symfile.h (struct section_addr_info) <sectindex>: New comment.
6082 2010-02-19 Joel Brobecker <brobecker@adacore.com>
6084 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
6085 7.0 section" into "Changes in 7.1".
6087 2010-02-19 Joel Brobecker <brobecker@adacore.com>
6089 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
6090 * version.in: Bump version to 7.1.50.20100219-cvs.
6092 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
6094 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
6095 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
6097 2010-02-17 Tom Tromey <tromey@redhat.com>
6099 * NEWS: Add Python API Improvements section.
6101 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
6103 * NEWS: Correct typo.
6105 2010-02-17 Tom Tromey <tromey@redhat.com>
6107 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
6109 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6111 * symfile.c (build_section_addr_info_from_objfile): Include sections
6112 only if they are SEC_ALLOC or SEC_LOAD.
6114 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
6117 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
6118 of ULONGEST for address size.
6120 2010-02-17 Tom Tromey <tromey@redhat.com>
6122 * NEWS: Add C++ improvements section.
6124 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
6126 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
6127 PyThreadState_Swap): Avoid "statement with no effect" warning.
6129 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6131 * solib-svr4.c (enable_break <target_auxv_search>): New variable
6132 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
6134 2010-02-17 Tristan Gingold <gingold@adacore.com>
6135 Petr Hluzin <petr.hluzin@gmail.com>
6137 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
6138 gdb_assert. Fix info->size for SIG prologue.
6140 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6142 * infcmd.c (show_inferior_tty_command): Check for NULL.
6143 Correct output message.
6145 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6147 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
6148 FUNCTION contains parentheses. Improve removal of a trailing
6151 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6153 * gcore.c (do_bfd_delete_cleanup): New function.
6154 (gcore_command): Use it. Discard the cleanup after success.
6155 (gcore_copy_callback): Delete dead code.
6157 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6159 * symfile.c (addr_info_make_relative): Always use
6160 find_lowest_section.
6162 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
6164 * NEWS: Added entry for namespace fixes.
6166 2010-02-15 Tom Tromey <tromey@redhat.com>
6168 * dwarf2read.c (guess_structure_name): Allocate name on the
6171 2010-02-15 Tom Tromey <tromey@redhat.com>
6173 * c-typeprint.c (c_type_print_base): Reverse order of test.
6175 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6177 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
6178 initialize it from ELF BFD. Extend the prelink condition by it.
6180 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6182 * defs.h (parse_pid_to_attach): New.
6183 * utils.c (parse_pid_to_attach): New.
6184 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
6185 * gnu-nat.c (gnu_attach): Likewise.
6186 * nto-procfs.c (procfs_attach): Likewise.
6187 * procfs.c (procfs_attach): Likewise.
6188 * windows-nat.c (windows_attach): Likewise.
6189 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
6190 * inf-ttrace.c (inf_ttrace_attach): Likewise.
6191 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
6194 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
6196 * MAINTAINERS: Add myself for write after approval privileges.
6198 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6200 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
6203 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6205 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
6206 only if INFO_VERBOSE.
6208 2010-02-12 Tomas Holmberg <th@virtutech.com>
6210 * mi/mi-main.c: Added the --reverse flag to the following MI
6211 commands: exec-continue, exec-finish, exec-next, exec-step,
6212 exec-next-instruction, exec-step-instruction. This is to
6213 support reverse execution over the MI interface to gdb.
6215 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6217 * tracepoint.c (_initialize_tracepoint): Specify that the address
6218 range of `tfind outsize' is exclusive, and that the address range
6219 of `tfind range' is inclusive, in the commands' help strings.
6221 2010-02-12 Joel Brobecker <brobecker@adacore.com>
6223 Spurious "dll not found" error messages on x64-windows.
6224 * windows-nat.c: Add include of complaints.h.
6225 (handle_unload_dll): Change dll-not-found error into a complaint.
6227 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6229 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
6230 bp_tracepoint and bp_fast_tracepoint, not
6231 bp_loc_software_breakpoint.
6232 (update_global_location_list): Tracepoints are never duplicates of
6235 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6237 * breakpoint.c (break_command_really): Change return type to int.
6238 Return false if no breakpoint was created, true otherwise.
6239 (trace_command): Don't set the tracepoint count if no tracepoint
6241 (ftrace_command): Ditto.
6242 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
6243 created in the breakpoints table.
6245 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6246 Ulrich Weigand <uweigand@de.ibm.com>
6248 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
6250 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6252 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
6253 the offset value isn't of integral type.
6255 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6257 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
6260 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6262 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
6263 non-subscriptable types.
6264 * valarith.c (binop_types_user_defined_p): New, abstracted out
6266 (binop_user_defined_p): ... this.
6267 * value.h (binop_types_user_defined_p): Declare.
6269 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6271 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
6272 Merge uploaded TSVs before merging uploaded tracepoints.
6274 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6276 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
6278 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
6280 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
6281 whitespace character after a dot in comment.
6282 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
6284 (list_args_or_locals): For the 'all' (that is
6285 -stack-list-variables) case, always output list of tuples.
6286 Output 'arg' field if variable is argument.
6288 2010-02-10 Tom Tromey <tromey@redhat.com>
6290 * parser-defs.h (parser_debug): Declare.
6291 * parse.c (_initialize_parse): Install "debug parser" set/show
6293 (parser_debug): New global.
6294 (show_parserdebug): New function.
6295 * c-exp.y (c_parse): Set yydebug.
6297 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
6299 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
6300 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6301 (tdesc_predefined_types): Add i387_ext, i386_eflags and
6303 (tdesc_find_type): New.
6304 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
6305 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6307 * target-descriptions.h (tdesc_find_type): New.
6309 2010-02-10 Michael Snyder <msnyder@vmware.com>
6311 * gdb-gdb.py: Comment fix.
6313 2010-02-09 Tristan Gingold <gingold@adacore.com>
6315 * machoread.c (macho_symfile_relocate): New function.
6316 (macho_sym_fns): Use macho_symfile_relocate instead of
6317 default_symfile_relocate.
6318 (macho_oso_data): New type.
6319 (current_oso): New variable.
6320 (macho_add_oso_symfile): Do not compute section_addr_info, but
6321 instead set vma of sections.
6322 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
6323 Set and clear current_oso.
6325 2010-02-09 Joel Brobecker <brobecker@adacore.com>
6327 Wrong type description for tagged type parameter.
6328 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
6329 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
6330 reference to a tagged type.
6332 2010-02-09 Tristan Gingold <gingold@adacore.com>
6334 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
6335 brothers of the parent.
6337 2010-02-08 Tom Tromey <tromey@redhat.com>
6341 * valops.c (search_struct_field): Make 'name' const.
6342 (search_struct_method): Likewise.
6343 (find_method_list): Make 'method' const.
6344 (value_struct_elt): Make 'name' and 'err' const.
6345 (value_find_oload_method_list): Make 'method' const.
6346 (find_overload_match): Make 'name' const.
6347 * eval.c (evaluate_subexp_standard): New locals function,
6349 <OP_FUNCALL>: Handle OP_SCOPE specially.
6351 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6353 * infrun.c (handle_inferior_event): Do not look up regcache
6354 for exited processes.
6356 2010-02-08 Chris Moller <moller@mollerware.com>
6359 * valarith.c (value_ptrdiff): Added a test for a zero type length,
6360 warn if found, and assume length = 1.
6362 2010-02-08 Chris Moller <cmoller@redhat.com>
6365 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6366 (cp_print_static_field) Fix use of obstacks.
6368 2010-02-08 Pedro Alves <pedro@codesourcery.com>
6370 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
6371 resumed LWPs as resumed.
6372 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
6373 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
6374 of throwing an internal error. If an LWP of a process we're not
6375 waiting for reports a signal, don't force collecting a SIGSTOP,
6376 and if it was breakpoint hit in non-stop mode, cancel it. Don't
6377 go through all LWPs cancelling breakpoints in non-stop mode.
6378 (resume_stopped_resumed_lwps): New.
6379 (linux_nat_wait): Use it.
6381 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
6383 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
6384 i386/amd64 and i386/amd64-linux.
6385 (i386/i386-expedite): New.
6386 (i386/i386-linux-expedite): Likewise.
6387 (i386/amd64-expedite):Likewise.
6388 (i386/amd64-linux-expedite): Likewise.
6389 ($(outdir)/i386/i386-linux.dat): Likewise.
6390 ($(outdir)/i386/amd64.dat): Likewise.
6391 ($(outdir)/i386/amd64-linux.dat): Likewise.
6393 * features/i386/32bit-core.xml: New.
6394 * features/i386/32bit-linux.xml: Likewise.
6395 * features/i386/32bit-sse.xml: Likewise.
6396 * features/i386/64bit-core.xml: Likewise.
6397 * features/i386/64bit-linux.xml: Likewise.
6398 * features/i386/64bit-sse.xml: Likewise.
6399 * features/i386/i386-linux.xml: Likewise.
6400 * features/i386/i386.xml: Likewise.
6401 * features/i386/amd64-linux.xml: Likewise.
6402 * features/i386/amd64.xml: Likewise.
6403 * features/i386/i386-linux.c: Likewise.
6404 * features/i386/i386.c: Likewise.
6405 * features/i386/amd64-linux.c: Likewise.
6406 * features/i386/amd64.c: Likewise.
6408 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
6411 * cp-support.h: Added char* alias element to using_direct data
6413 (cp_add_using): Added char* alias argument.
6414 (cp_add_using_directive): Ditto.
6415 * cp-namespace.c: Updated with the above changes.
6416 (cp_lookup_symbol_imports): Check for aliases.
6417 * dwarf2read.c (read_import_statement): Figure out local alias
6418 for the import and pass it on to cp_add_using.
6419 (read_namespace): Pass alias argument to cp_add_using.
6421 2010-02-05 Hui Zhu <teawater@gmail.com>
6423 * defs.h (gdb_bfd_errmsg): New extern.
6424 * exec.c (exec_file_attach): Change bfd_errmsg to
6426 * utils.c (AMBIGUOUS_MESS1): New macro.
6427 (AMBIGUOUS_MESS2): New macro.
6428 (gdb_bfd_errmsg): New function.
6430 2010-02-04 Doug Evans <dje@google.com>
6432 * solib-svr4.c (enable_break): Add comment.
6434 2010-02-04 Anthony Green <green@moxielogic.com>
6436 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
6439 2010-02-04 Tom Tromey <tromey@redhat.com>
6441 * valops.c (search_struct_field): Account for
6442 value_embedded_offset. Fix check for virtual base past the end of
6443 the object. Use value_copy when making a slice of the value.
6445 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6448 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
6449 only if gdb_stdout is a tty.
6451 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6453 * target-descriptions.c: Include "osabi.h".
6454 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
6457 2010-02-04 Tristan Gingold <gingold@adacore.com>
6459 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
6460 (macho_symtab_read): Adjust calls to macho_add_oso.
6461 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
6462 (macho_symfile_read): Adjust call to macho_oso_symfile.
6463 (macho_new_init): Move this function after declarations.
6464 (macho_symfile_init): Ditto.
6465 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
6466 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
6468 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
6470 Include MI command in remotelog.
6472 * mi/mi-main.c (mi_execute_command): Call target_log_command.
6474 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6476 * remote.c (remote_state): Remove gdbarch.
6477 (init_remote_state): Don't set gdbarch.
6478 (remote_query_supported): Pass target_gdbarch instead of
6479 rs->gdbarch to gdbarch_qsupported.
6481 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6483 * gdbarch.sh: Add qsupported.
6485 * gdbarch.c: Regenerated.
6486 * gdbarch.h: Likewise.
6488 * remote.c (remote_state): Add gdbarch.
6489 (init_remote_state): Set gdbarch.
6490 (remote_query_supported): Support gdbarch_qsupported.
6492 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
6494 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
6495 __FreeBSD_kernel_version.
6497 2010-02-03 Tristan Gingold <gingold@adacore.com>
6499 * symfile.h (struct sym_fns): Add sym_relocate field.
6500 (default_symfile_relocate): New prototype.
6501 (symfile_relocate_debug_section): First argument is now an objfile.
6502 * symfile.c (default_symfile_relocate): Rename from
6503 symfile_relocate_debug_section, first argument is now an objfile.
6504 (symfile_relocate_debug_section): New function.
6505 * coffread.c (coff_sym_fns): Set sym_relocate field.
6506 * somread.c (som_sym_fns): Ditto.
6507 * mipsread.c (ecoff_sym_fns): Ditto.
6508 * machoread.c (macho_sym_fns): Ditto.
6509 * elfread.c (elf_sym_fns): Ditto.
6510 * dwarf2read.c (dwarf2_read_section): Ditto.
6511 * xcoffread.c (xcoff_sym_fns): Ditto.
6512 * dbxread.c (aout_sym_fns): Ditto.
6513 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
6514 (elfstab_build_psymtabs): Ditto.
6516 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6518 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
6520 2010-02-02 Tom Tromey <tromey@redhat.com>
6522 * valops.c (value_cast_structs): Try downcasting using the RTTI
6525 2010-02-02 Tom Tromey <tromey@redhat.com>
6527 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
6528 (gnuv2_baseclass_offset): Now static.
6529 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
6530 * gnu-v2-abi.h: Remove.
6532 2010-02-02 Tom Tromey <tromey@redhat.com>
6534 * m2-typeprint.c (m2_record_fields): Don't use
6536 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
6537 (struct main_type) <flag_declared_class>: New field.
6538 (struct cplus_struct_type) <declared_type>: Remove.
6539 <ntemplate_args>: Move earlier.
6540 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
6541 (DECLARED_TYPE_TEMPLATE): Remove.
6542 (TYPE_DECLARED_TYPE): Remove.
6543 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
6544 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
6545 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
6548 2010-02-02 Tom Tromey <tromey@redhat.com>
6550 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
6551 * valops.c (search_struct_field): Compute nbases after calling
6553 (check_field): Call CHECK_TYPEDEF.
6554 * cp-valprint.c (cp_print_value): Pass correct address to
6555 baseclass_offset. Fix check for virtual base past the end of the
6556 object. Don't offset address passed to cp_print_value_fields or
6557 apply_val_pretty_printer.
6558 (cp_print_value_fields): Fix call to val_print.
6559 (cp_print_value_fields_rtti): New function.
6560 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
6561 * p-valprint.c (pascal_object_print_value_fields): Fix call to
6563 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
6565 * language.h (struct language_defn) <la_val_print>: Document.
6566 * c-lang.h (cp_print_value_fields_rtti): Declare.
6568 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6571 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6572 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
6573 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6575 2010-02-01 Michael Matz <matz@suse.de>
6576 Daniel Jacobowitz <dan@codesourcery.com>
6578 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
6579 functions use a frame pointer.
6581 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6583 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
6584 by a conditional setting DYN_ADDR. Use DYN_ADDR.
6585 * config/djgpp/fnchange.lst: Add translations for
6586 symbol-without-target_section.exp and symbol-without-target_section.c.
6588 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6590 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
6591 (remote_breakpoint_for_pc): Correct invalid_p check.
6592 * gdbarch.c: Regenerated.
6594 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6596 * arm-tdep.c (arm_find_mapping_symbol): New function, from
6598 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
6599 (extend_buffer_earlier): New function.
6600 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
6601 (arm_adjust_breakpoint_address): New function.
6602 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
6604 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6606 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
6607 (arm_linux_thumb2_le_breakpoint): New constants.
6608 (arm_linux_init_abi): Set thumb2_breakpoint and
6609 thumb2_breakpoint_size.
6610 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
6611 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
6612 Implement support for single stepping through IT blocks if
6613 a 32-bit Thumb breakpoint instruction is available.
6614 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
6615 is available, use it when needed.
6616 (arm_remote_breakpoint_from_pc): New function.
6617 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
6618 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
6619 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
6621 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6623 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
6624 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
6625 * gdbarch.c, gdbarch.h: Regenerated.
6626 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
6627 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
6628 gdbarch_remote_breakpoint_from_pc.
6630 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6632 * infrun.c (prepare_to_proceed): Handle other signals which might
6634 (handle_inferior_event): Move the check for unusual breakpoint
6637 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
6639 amd64 - function returning record with field straddling 2 registers.
6640 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
6641 a record of length <= 16 in which a field straddles the two
6644 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6646 Implement return values on amd64-windows.
6647 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
6648 (amd64_windows_return_value): New function.
6649 (amd64_windows_init_abi): Call set_gdbarch_return_value with
6650 amd64_windows_return_value.
6652 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6654 amd64-windows: 32 bytes allocated on stack by caller for integer
6655 parameter registers.
6656 * i386-tdep.h (struct gdbarch_tdep): Add new field
6657 integer_param_regs_saved_in_caller_frame.
6658 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6659 tdep->integer_param_regs_saved_in_caller_frame to 1.
6660 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
6661 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
6663 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6665 amd64-windows: memory args passed by pointer during function calls.
6666 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
6667 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
6668 where tdep->memory_args_by_pointer is non-zero.
6669 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6670 tdep->memory_args_by_pointer to 1.
6672 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6674 amd64-windows: Integer parameters in function calls.
6675 * i386-tdep.h (enum amd64_reg_class): New, moved here from
6677 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
6678 call_dummy_integer_regs, and classify.
6679 * amd64-tdep.h (amd64_classify): Add declaration.
6680 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
6681 (amd64_reg_class): Delete, moved to i386-tdep.h.
6682 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
6683 Replace call to amd64_classify by call to tdep->classify.
6684 (amd64_push_arguments): Get the list of registers to use for
6685 passing integer parameters from the gdbarch tdep structure,
6686 rather than using a hardcoded one. Replace calls to amd64_classify
6687 by calls to tdep->classify.
6688 (amd64_push_dummy_call): Get the register number used for
6689 the "hidden" argument from tdep->call_dummy_integer_regs.
6690 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
6691 and tdep->call_dummy_integer_regs. Set tdep->classify.
6692 * amd64-windows-tdep.c: Add include of gdbtypes.h.
6693 (amd64_windows_dummy_call_integer_regs): New static global.
6694 (amd64_windows_classify): New function.
6695 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
6696 tdep->call_dummy_integer_regs and tdep->classify.
6698 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6700 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
6701 for the new regcache. All callers updated.
6702 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
6703 (get_thread_arch_regcache): Do not set aspace here.
6704 * regcache.h (regcache_xmalloc): Update declaration.
6706 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
6707 regcache_xmalloc updated.
6709 2010-01-28 Joel Brobecker <brobecker@adacore.com>
6711 Another -Wunused-function error in procfs.c (sparc-solaris)
6712 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
6713 Only define if SYS_syssgi is defined.
6714 (remove_dbx_link_breakpoint): Delete declaration. Move up.
6715 (dbx_link_addr, insert_dbx_link_bpt_in_file)
6716 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
6719 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
6721 * windows-nat.c (windows_initialization_done): New variable.
6722 (get_windows_debug_event): Issue error when process dies before
6723 completely initializing.
6724 (do_initial_windows_stuff): Set flag to indicate when we are done with
6725 the initial steps of attaching to the child.
6727 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6729 * symtab.h (struct symbol <symtab>): New comment on NULL values.
6731 2010-01-27 Doug Evans <dje@google.com>
6733 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
6735 * breakpoint.c (bpstat_stop_status): Delete useless code.
6737 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6739 * printcmd.c (display_uses_solib_p): Remove variable section. Access
6740 objfile via SYMBOL_SYMTAB.
6742 2010-01-26 Tom Tromey <tromey@redhat.com>
6745 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
6746 coerce_array on result.
6748 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6750 * cp-namespace.c (cp_lookup_symbol_namespace): Added
6751 search_parent argument.
6752 (cp_add_using): Initialize 'searched' field.
6753 (reset_directive_searched): New function.
6754 * cp-support.h: Add 'searched' field to using_direct struct.
6755 (cp_lookup_symbol_imports): Ditto.
6756 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
6757 Perform recursive search.
6758 Implement non parent search.
6759 * valops.c (value_maybe_namespace_elt): Updated.
6761 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6764 * dwarf2read.c (read_lexical_block_scope): Create blocks for
6765 scopes which contain using directives even if they contain no
6767 * symtab.c (lookup_symbol_aux): Pass lowest level block to
6768 la_lookup_symbol_nonlocal.
6769 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
6770 cp_lookup_symbol_namespace.
6771 (cp_lookup_symbol_namespace): Perform an import lookup at every
6773 (cp_lookup_symbol_imports): New function.
6774 (cp_lookup_symbol_in_namespace): New function.
6776 2010-01-25 Tom Tromey <tromey@redhat.com>
6779 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
6782 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6784 * configure.ac: Only use host_os part when disabling TUI on osf.
6785 Use test to check variables, prefix strings with x.
6786 * configure: Regenerate.
6788 * solib-osf.c (osf_current_sos): Initialize tail.
6790 2010-01-25 gingold <gingold@adacore.com>
6792 * windows-nat.c (windows_continue): Use %x to print thread id.
6793 (get_windows_debug_event): Ditto.
6795 2010-01-22 Tom Tromey <tromey@redhat.com>
6798 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
6799 type and arguments. Use smash_to_methodptr_type.
6800 (read_structure_type): Call quirk_gcc_member_function_pointer
6802 * gdbtypes.h (smash_to_methodptr_type): Declare.
6803 * gdbtypes.c (smash_to_methodptr_type): New function.
6804 (lookup_methodptr_type): Use it.
6806 2010-01-21 Tom Tromey <tromey@redhat.com>
6809 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
6810 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
6811 * glibc-tdep.c (find_minsym_and_objfile): Remove.
6812 (glibc_skip_solib_resolver): Use
6813 lookup_minimal_symbol_and_objfile.
6815 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
6817 * inflow.c (check_syscall): Guard by #if clause for GO32 and
6820 2010-01-20 Tom Tromey <tromey@redhat.com>
6823 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
6824 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
6825 * dwarf2expr.c (new_dwarf_expr_context): Allocate
6826 dwarf_stack_values, not CORE_ADDRs.
6827 (execute_stack_op): Change DW_OP_div and comparison operators to
6828 use signed operands.
6830 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
6832 Per-inferior args and tty and environment.
6834 * infcmd.c (inferior_args): Rename to ...
6835 (inferior_args_scratch): ... this.
6836 (inferior_io_terminal): Rename to ...
6837 (inferior_io_terminal_scratch): ... this.
6838 (inferior_argc, inferior_argv): Remove.
6839 (set_inferior_io_terminal, get_inferior_io_terminal): Store
6840 inside current_inferior().
6841 (set_inferior_tty_command, show_inferior_tty_command): New.
6842 (get_inferior_args, set_inferior_args): Store inside
6844 (notice_args_set): Likewise and rename to...
6845 (set_args_command): ... this.
6846 (set_inferior_args_vector): Likewise.
6847 (notice_args_read): Rename to...
6848 (show_args_command): ...new.
6849 (tty_command): Remove.
6850 (run_command_1): Don't free old args, as they are freed by
6851 set_inferior_arg now.
6852 (run_no_args_command): Likewise.
6853 (inferior_environ): Remove.
6854 (run_command_1): Use environment of the current inferior.
6855 (environment_info, set_environment_command)
6856 (unset_environment_command, path_info, path_command): Likewise.
6857 (_initialize_infcmd): Adjust for function and variable renames.
6858 Do not init inferior_environ.
6859 * inferior.h (set_inferior_arg): Adjust prototype.
6860 (struct inferior): New fields args, argc, argv, terminal, environment.
6861 (inferior_environ): Remove declaration.
6862 * inferior.c (free_inferior): Free new fields.
6863 (add_inferior_silent): Initialize 'environment' field.
6864 * main.c (captured_main): Set arguments only after the initial
6865 inferior has been created. Set set_inferior_io_terminal,
6867 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
6869 (_initialize_mi_cmd_env): Adjust for disappearance of global
6871 * solib.c (solib_find): Use environment of the current inferior.
6873 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6875 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
6877 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
6879 2010-01-20 Joel Brobecker <brobecker@adacore.com>
6881 Get rid of ada-lang.c:function_name_from_pc.
6882 * ada-lang.c: Add "stack.h" #include.
6883 (function_name_from_pc): Delete.
6884 (is_known_support_routine): Replace call to function_name_from_pc
6885 by call to find_frame_funname.
6886 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6888 2010-01-19 Tom Tromey <tromey@redhat.com>
6891 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
6894 2010-01-19 Tom Tromey <tromey@redhat.com>
6896 * top.c (stop_sig, float_handler, do_nothing): Remove.
6898 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6900 * breakpoint.c (watchpoint_check): Check the call
6901 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
6903 * config/djgpp/fnchange.lst: Add translations for
6904 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
6905 watchpoint-cond-gone-stripped.c.
6907 2010-01-19 Tom Tromey <tromey@redhat.com>
6910 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
6911 into parent scope, and enumerator into grandparent scope.
6913 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6915 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
6917 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6919 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
6920 i[34567]86-*-solaris2.1[0-9]*.
6921 * configure.tgt: Likewise.
6923 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6925 * NEWS: Document the source command enhancement allowing it
6926 to load Python scripts. Document the "set/show script-extension"
6929 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6931 Add -Wunused-function to compile flags.
6932 * configure.ac: Add -Wunused-function to build_warnings.
6933 * configure: Regenerate.
6935 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6937 "delete" ada-lex.c:input function, not used.
6938 * ada-lex.l: #define YY_NO_INPUT.
6940 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6942 Delete free_named_symtabs and associated cleanup.
6943 * symfile.h (free_named_symtabs): Delete declaration.
6944 * symfile.c: Remove some commented out code (clear_symtab_users_once).
6945 (cashier_psymtab): Comment function out.
6947 (free_named_symtabs): Delete.
6948 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
6949 * dbxread.c (end_psymtab): Likewise.
6950 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
6951 * exec.c (exec_close_1): Ditto.
6952 * xcoffread.c (xcoff_end_psymtab): Likewise.
6954 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6956 * stack.c (print_block_frame_labels): Comment function out.
6958 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6960 Delete unused or undefined functions.
6961 * breakpoint.c (ep_parse_optional_filename): Delete.
6962 * dcache.c (dcache_write_line): Remove declaration.
6963 * infrun.c (build_infrun): Remove declaration.
6964 * tracepoint.c (tracepoint_save_command): Remove declaration.
6965 * linux-nat.c (init_lwp_list): Delete. No longer used.
6966 * event-loop.c (check_async_signal_handlers): Delete declaration.
6967 * infrun.c (init_execution_control_state): Delete.
6968 (proceed): Update comment to avoid mentioning
6969 init_execution_control_state.
6970 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
6971 * ada-lang.c (ada_to_static_fixed_value): Delete.
6972 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
6973 * cp-namespace.c (cp_copy_usings): Delete.
6974 * xml-syscall.c (xml_number_of_syscalls): Delete.
6975 * progspace.c (find_program_space_by_num): Delete.
6976 * inflow.c (handle_sigio): Delete declaration.
6977 * hppa-tdep.c (hppa_alignof): Delete.
6978 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
6979 (mipsnbsd_core_osabi_sniffer): Delete.
6981 2010-01-18 Tom Tromey <tromey@redhat.com>
6984 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
6985 (CONST_CAST): New tokens.
6986 (exp): Add new productions.
6987 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
6989 (is_cast_operator): New function.
6990 (yylex): Handle cast operators specially.
6991 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
6992 UNOP_REINTERPRET_CAST>: New cases.
6993 * expprint.c (print_subexp_standard): Likewise.
6994 (op_name_standard): Likewise.
6995 (dump_subexp_body_standard): Likewise.
6996 * parse.c (operator_length_standard): Likewise.
6997 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
6998 UNOP_REINTERPRET_CAST.
6999 * gdbtypes.c (class_types_same_p): New function.
7000 (is_ancestor): Use it.
7001 (is_public_ancestor): New function.
7002 (is_unique_ancestor_worker): Likewise.
7003 (is_unique_ancestor): Likewise.
7004 * gdbtypes.h (class_types_same_p, is_public_ancestor)
7005 (is_unique_ancestor): Declare.
7006 * valops.c (value_reinterpret_cast): New function.
7007 (dynamic_cast_check_1): Likewise.
7008 (dynamic_cast_check_2): Likewise.
7009 (value_dynamic_cast): Likewise.
7010 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
7012 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7014 Fix build failure when building without Python support.
7015 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
7018 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7020 Use XVS field type instead of doing a parallel lookup.
7021 * ada-lang.c (ada_get_base_type): Follow the XVS field type
7022 if it is a reference type instead of doing a type lookup using
7025 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7027 Trust PAD types instead of using PAD___XVS.
7028 * ada-lang.c (trust_pad_over_xvs): New static variable.
7029 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
7030 parallel XVS type, follow the XVS type instead of the PAD type.
7031 (unwrap_value): Make sure that there is no parallel XVE type
7032 before returning the value as is.
7033 (set_ada_list, show_ada_list): New static variables.
7034 (set_ada_command, show_ada_command): New functions.
7035 (_initialize_ada_language): Add new "set/show ada" prefix commands.
7036 Add new "set/show ada trust-PAD-over-XVS" setting.
7038 2010-01-18 Tom Tromey <tromey@redhat.com>
7039 Thiago Jung Bauermann <bauerman@br.ibm.com>
7041 Allow "source" to load python scripts.
7042 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
7043 * python/python.c (source_python_script): New function.
7044 * python/python.h (source_python_script): Add declaration.
7045 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
7046 (script_ext_off, script_ext_soft, script_ext_strict)
7047 (script_ext_enums, script_ext_mode): New static constants.
7048 (show_script_ext_mode, find_and_open_script): New functions.
7049 (source_script): Enhance to handle Python scripts.
7050 (init_cli_cmds): Add set/show script-extension commands.
7052 2010-01-16 Stan Shebs <stan@codesourcery.com>
7054 * tracepoint.h (struct trace_status): Use unsigned long long
7056 * tracepoint.c (trace_status_command): Fix printf directive.
7057 (trace_save_command): Check fwrite returns, fix printf directive.
7058 (trace_filename): New global.
7059 (tfile_open): Set it, check read returns.
7060 (tfile_close): Free trace_filename.
7061 (tfile_get_traceframe_address): Check read returns.
7062 (tfile_trace_find): Ditto.
7063 (tfile_fetch_registers): Ditto.
7064 (tfile_xfer_partial): Ditto.
7065 (tfile_get_trace_state_variable_value): Ditto.
7067 2010-01-15 Stan Shebs <stan@codesourcery.com>
7069 Add trace file support.
7070 * tracepoint.h (enum trace_stop_reason): New enum.
7071 (struct trace_status): New struct.
7072 (parse_trace_status): Declare.
7073 (struct uploaded_tp): Move here from remote.c,
7074 add fields for actions.
7075 (struct uploaded_tsv): New struct.
7076 * tracepoint.c (tfile_ops): New target vector.
7077 (trace_fd): New global.
7078 (tfile_open): New function.
7079 (tfile_close): New function.
7080 (tfile_files_info): New function.
7081 (tfile_get_trace_status): New function.
7082 (tfile_get_traceframe_address): New function.
7083 (tfile_trace_find): New function.
7084 (tfile_fetch_registers): New function.
7085 (tfile_xfer_partial): New function.
7086 (tfile_get_trace_state_variable_value): New function.
7087 (init_tfile_ops): New function.
7088 (_initialize_tracepoint): Call it, add tfile target.
7089 (trace_status): New global.
7090 (current_trace_status): New function.
7091 (trace_running_p): Remove, change all users to get from
7092 current_trace_status()->running.
7093 (get_trace_status): Remove.
7094 (trace_status_command): Call target_get_trace_status directly,
7095 report more detail including tracing stop reasons.
7096 (trace_find_command): Always allow tfind on a file.
7097 (trace_find_pc_command): Ditto.
7098 (trace_find_tracepoint_command): Ditto.
7099 (trace_find_line_command): Ditto.
7100 (trace_find_range_command): Ditto.
7101 (trace_find_outside_command): Ditto.
7102 (trace_frames_offset, cur_offset): Declare as off_t.
7103 (trace_regblock_size): Rename from reg_size, update users.
7104 (parse_trace_status): New function.
7105 (tfile_interp_line): New function.
7106 (disconnect_or_stop_tracing): Ensure current trace
7107 status before asking what to do.
7108 (stop_reason_names): New global.
7109 (trace_save_command): New command.
7110 (get_uploaded_tp): Move here from remote.c.
7111 (find_matching_tracepoint): Ditto.
7112 (merge_uploaded_tracepoints): New function.
7113 (parse_trace_status): Use stop_reason_names.
7114 (_initialize_tracepoint): Define tsave command.
7115 * target.h (target_ops): New fields to_save_trace_data,
7116 to_upload_tracepoints, to_upload_trace_state_variables,
7117 to_get_raw_trace_data, change to_get_trace_status
7118 to take a pointer to a status struct.
7119 (target_save_trace_data): New macro.
7120 (target_upload_tracepoints): New macro.
7121 (target_upload_trace_state_variables): New macro.
7122 (target_get_raw_trace_data): New macro.
7123 * target.c (update_current_target): Add new methods, change
7124 signature of to_get_trace_status.
7125 * remote.c (hex2bin): Make globally visible.
7127 (remote_download_trace_state_variable): Download name also.
7128 (remote_get_trace_status): Update parameter, use
7130 (remote_save_trace_data): New function.
7131 (remote_upload_tracepoints): New function.
7132 (remote_upload_trace_state_variables): New function.
7133 (remote_get_raw_trace_data): New function.
7134 (remote_start_remote): Use them.
7135 (_initialize_remote_ops): Add operations.
7136 * ax-gdb.c: Include breakpoint.h.
7137 * breakpoint.c (create_tracepoint_from_upload): Use
7138 break_command_really, return tracepoint, warn about unimplemented
7140 * NEWS: Mention trace file addition.
7142 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7144 Fix compilation warning on gcc-3.4.
7145 * exec.c (print_section_info): Move the `displacement' variable
7146 initialization to its declaration.
7148 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7150 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
7153 2010-01-15 Eric Botcazou <botcazou@adacore.com>
7155 "info tasks" broken by typedefs in ATCB type definitions.
7156 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
7157 ada_check_typedef before retrieving the length of the type for
7160 2010-01-15 Joel Brobecker <brobecker@adacore.com>
7162 Do not use name-based lookup for unconstrained packed arrays.
7163 * ada-lang.c (find_parallel_type_by_descriptive_type):
7164 Limit the fallback to name-based lookups to the case where
7165 the type is a constrained packed array.
7167 2010-01-15 Joel Brobecker <brobecker@adacore.com>
7169 Enhance gdb-gdb.py to handle main_type.type_specific.
7170 * gdb-gdb.py: Print the type-specific part of struct main_type.
7172 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7174 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
7175 * configure: Regenerate.
7176 * config.in: Regenerate.
7177 * utils.c: Include sys/resource.h.
7178 (dump_core, can_dump_core): New.
7179 (internal_vproblem): Update the comment. Check can_dump_core while
7180 setting dump_core_p. Replace two abort calls by dump_core calls.
7182 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7183 Eli Zaretskii <eliz@gnu.org>
7185 * NEWS: Document the PIE support.
7187 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7189 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
7190 (check_is_pie_binary, _initialize_linux_tdep): Remove.
7192 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7194 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
7195 Replace exec_entry_point call by bfd_get_start_address.
7197 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7199 Support Valgrind attachments broken by the PIE support.
7200 * auxv.c: Include gdbcore.h.
7201 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
7202 parameters ops, object and annex. Remove their assertions.
7203 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
7204 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
7205 (memory_xfer_auxv): ... here.
7206 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
7208 * procfs.c (procfs_xfer_partial): Likewise.
7209 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
7210 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
7211 (svr4_solib_create_inferior_hook): Conditionalize the
7212 svr4_relocate_main_executable call.
7214 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7216 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
7217 target_section. Find SECT in current_target_sections, gdb_assert it.
7218 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
7220 * symtab.c (lookup_objfile_from_block): Return the binary file instead
7221 of separate debug info file.
7223 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7225 Support PIEs with no symfile_objfile.
7226 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
7227 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
7229 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7231 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
7233 (svr4_static_exec_displacement): ... a new function.
7234 (svr4_exec_displacement): New function.
7235 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
7236 new_offsets using alloca now. Remove variable old_chain and changed.
7237 Call objfile_relocate unconditionally now.
7239 2010-01-14 Doug Evans <dje@google.com>
7241 * gdbtypes.c (arch_flags_type): Fix comment.
7242 * gdbtypes.h (arch_composite_type): Fix comment.
7244 2009-01-14 Tristan Gingold <gingold@adacore.com>
7246 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
7247 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
7248 to symbol_file_add_from_bfd. Add OSO as separate objfile.
7249 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
7250 macho_add_oso_symfile.
7251 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
7253 2010-01-14 Joel Brobecker <brobecker@adacore.com>
7255 Tru64: Dead threads are never deleted.
7256 * dec-thread.c (dec_thread_ptid_is_alive): New function.
7257 (dec_thread_count_gdb_threads): Fix counter increment.
7258 (dec_thread_add_gdb_thread): Fix *listp increment.
7259 (resync_thread_list): Fix bug in deletion of dead threads that
7260 caused all threads to be deleted, instead of just the dead ones.
7262 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
7266 * python/python-internal.h: Add lazy_string_object_type
7268 (create_lazy_string_object, gdbpy_initialize_lazy_string)
7269 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
7270 * python/py-value.c (valpy_lazy_string): New function.
7271 (convert_value_from_python): Add lazy string conversion.
7272 * python/py-prettyprint.c (pretty_print_one_value): Check if
7273 return is also a lazy string.
7274 (print_string_repr): Add lazy string printing branch.
7275 (print_children): Likewise.
7276 * python/py-lazy-string.c: New file. Implement lazy strings.
7277 * python/python.c (_initialize_python): Call
7278 gdbpy_initialize_lazy_string.
7279 * varobj.c (value_get_print_value): Add lazy string printing
7280 branch. Account for encoding.
7281 * c-lang.c (c_printstr): Account for new encoding argument. If
7282 encoding is NULL, find encoding suited for type, otherwise use
7284 * language.h (language_defn): Add encoding argument.
7285 (LA_PRINT_STRING): Likewise.
7286 * language.c (unk_lang_printstr): Update to reflect new encoding
7287 argument to language_defn.
7288 * ada-lang.h (ada_printstr): Likewise.
7289 * c-lang.h (c_printstr): Likewise.
7290 * p-lang.h (pascal_printstr);
7291 * f-lang.c (f_printstr): Likewise.
7292 * m2-lang.c (m2_printstr): Likewise.
7293 * objc-lang.c (objc_printstr): Likewise.
7294 * p-lang.c (pascal_printstr): Likewise.
7295 * scm-lang.c (scm_printstr): Likewise.
7296 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
7298 * ada-valprint.c (ada_printstr): Likewise.
7299 * f-valprint.c (f_val_print): Likewise
7300 * m2-valprint.c (m2_val_print): Likewise.
7301 * p-valprint.c (pascal_val_print): Likewise.
7302 * expprint.c (print_subexp_standard): Likewise.
7303 * valprint.c (val_print_string): Likewise.
7304 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
7305 (SUBDIR_PYTHON_SRCS): Likewise.
7306 (py-lazy-string.o): New rule.
7308 2010-01-13 Doug Evans <dje@google.com>
7310 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
7311 uninitialized" warning from gcc on local `tree'.
7313 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
7315 Implement core awareness.
7317 * bcache.c (compare_ints): Remove
7318 (print_percentage): Use compare_positive_ints.
7319 * defs.h (compare_positive_ints): Declare.
7320 * linux-nat.h (struct lin_lwp): New field core.
7321 (linux_nat_core_of_thread_1): Declare.
7322 * linux-nat.c (add_lwp): Init the 'core' field.
7323 (linux_nat_wait_1): Record the core.
7324 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
7325 (linux_nat_add_target): Register the above.
7326 * linux-thread-db.c (update_thread_core): New.
7327 (thread_db_find_new_threads): Update core information for
7329 * remote.c (struct private_thread_info): New.
7330 (free_private_thread_info, demand_private_info): New.
7331 (PACKET_qXfer_threads, use_osdata_threads): New.
7332 (struct thread_item, threads_parsing_context
7333 (start_thread, end_thread, thread_attributes)
7334 (thread_children, threads_children, threads_elements): New.
7335 (remote_threads_info): Try qXfer:threads before anything
7337 (remote_protocol_packets): Register qXfer:threads.
7338 (remote_open_1): Init use_osdata_threads.
7339 (struct stop_reply): New field 'core'.
7340 (remote_parse_stop_reply): Parse core number.
7341 (process_stop_reply): Record core number.
7342 (remote_xfer_partial): Handle qXfer:threads.
7343 (remote_core_of_thread): New.
7344 (init_remote_ops): Register remote_core_of_thread.
7345 (_initialize_remote): Register qXfer:read.
7346 * target.c (target_core_of_thread): New
7347 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
7348 (struct target_ops): New field to_core_of_threads.
7349 (target_core_of_thread): Declare.
7350 * gdbthread.h (struct thread_info): New field private_dtor.
7351 * thread.c (print_thread_info): Report the core.
7352 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
7353 * utils.c (compare_positive_ints): New.
7354 * features/threads.dtd: New.
7355 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
7356 * mi/mi-main.c (struct collect_cores_data, collect_cores)
7357 (do_nothing, free_vector_of_osdata_items)
7358 (splay_tree_int_comparator, free_splay_tree): New.
7359 (print_one_inferior_data): Implemented printing of selected
7360 inferiors. Collect and print cores.
7361 (output_cores): New.
7362 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
7363 thread groups together with --available.
7365 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7367 * configure: Regenerate (for _STRUCTURED_PROC).
7369 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7371 Delete dead function.
7372 * ada-lang.c (extract_string): Delete. No longer used.
7374 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7376 Fix -Wunused warning in dec-thread.c.
7377 * dec-thread.c (dec_thread_count_gdb_threads)
7378 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
7380 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7382 * ada-valprint.c (ada_print_floating): Remove trailing space.
7384 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7386 Add support for DW_AT_GNAT_descriptive_type.
7387 * gdbtypes.h (enum type_specific_kind): New enum.
7388 (struct main_type) [type_specific_field]: New component.
7389 [type_specific]: Add new component "gnat_stuff".
7390 (struct gnat_aux_type): New type.
7391 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
7392 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
7393 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
7394 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
7395 (TYPE_SPECIFIC_FIELD): New macros.
7396 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
7397 type does not hold any cplus-specific data.
7398 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
7399 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
7400 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
7401 cplus-specific data.
7402 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
7403 Set new component TYPE_SPECIFIC_FIELD (type).
7404 (gnat_aux_default): New constant.
7405 (allocate_gnat_aux_type): New function.
7406 (init_type): Add initialization the type-specific stuff for
7407 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
7408 (print_gnat_stuff): New function.
7409 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
7410 specific data. Adjust code that prints the contents of the
7411 type-specific union using the TYPE_SPECIFIC_FIELD value.
7412 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
7413 the type cplus stuff for Ada types.
7414 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
7415 Error out if these routines are called with an Ada type.
7416 (read_structure_type, read_array_type, read_subrange_type):
7417 Add call to set_descriptive_type.
7418 (set_die_type): Initialize the gnat-specific data if necessary.
7419 (need_gnat_info, die_descriptive_type, set_descriptive_type):
7421 * ada-lang.c (decode_constrained_packed_array_type): Use
7422 decode_constrained_packed_array_type instead of doing a standard
7423 lookup to locate a parallel type.
7424 (find_parallel_type_by_descriptive_type): New function.
7425 (ada_find_parallel_type_with_name): New function.
7426 (ada_find_parallel_type): Reimplement using
7427 ada_find_parallel_type_with_name.
7428 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
7429 to check if type has a cplus stuff.
7430 * linespec.c (total_number_of_methods): Likewise.
7431 * mdebugread.c (new_type): Likewise.
7433 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7435 * NEWS: Document the 0b binary number prefix parsing.
7437 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7439 * objfiles.c (objfile_relocate1): Change the return type to int.
7440 Describe the new return value. Return non-zero if data changed.
7441 (objfile_relocate): New variable changed. Set it. Call
7442 breakpoint_re_set depending on CHANGED.
7444 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7446 Implement binary numbers parsing.
7447 * c-exp.y (parse_number): New case 'b' and 'B'.
7449 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7450 Tristan Gingold <gingold@adacore.com>
7452 * solib.c (info_sharedlibrary_command): Replace
7453 objfile_has_partial_symbols and objfile_has_full_symbols calls by
7454 objfile_has_symbols.
7456 2010-01-10 Joel Brobecker <brobecker@adacore.com>
7458 * NEWS: Document the improvements made to the mips-irix port.
7460 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7462 Fix the documentation of valprint.c:value_print.
7463 * valprint.c (value_print): Update the function description to
7464 mention that the syntax of the output follows the current_language,
7467 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7469 Fix displacement of separate debug info files.
7470 * objfiles.c (objfile_relocate): Rename to ...
7471 (objfile_relocate1): ... here and make it static. Extend the comment.
7472 (objfile_relocate): New function.
7473 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
7474 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
7475 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
7476 allocated using alloca.
7477 * symfile.c (copy_section_addr_info): Remove.
7478 (build_section_addr_info_from_objfile): Make it global. New variables
7479 addr_bit and mask, use them.
7480 * symfile.h (build_section_addr_info_from_objfile): New prototype.
7481 (copy_section_addr_info): Remove.
7483 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7485 Signal unwinder for mips-irix N32.
7486 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
7488 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
7489 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
7490 (SIGCONTEXT_LO_OFF): New macros.
7491 (mips_irix_n32_tramp_frame_init): New function.
7492 (mips_irix_n32_tramp_frame): New static constant.
7493 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
7495 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7497 Breakpoint in shared library does not work on mips-irix.
7498 * procfs.c: #include "observer.h".
7499 (procfs_inferior_created): New function, moving here the code
7500 which unsets the syssgi syscall-exit notifications.
7501 (procfs_create_inferior): Remove the code which unsets the syssgi
7502 syscall-exit notifications. It is too early to do this here.
7503 (_initialize_procfs): Attach the procfs_inferior_created observer.
7505 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7507 Wrong return convention for arrays (mips-irix).
7508 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
7509 128 bits or smaller are returned the same way as structs
7510 and unions of the the same size.
7512 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7514 Cannot set the PC on mips-irix.
7515 * irix5-nat.c (fill_gregset): Check regno against the raw PC
7516 register number, no the cooked one.
7518 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7520 Error while loading core file on mips-irix.
7521 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
7522 if debugging from a core file.
7524 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7526 GDB hangs when attaching to process on mips-irix.
7527 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
7528 attaching to a process.
7530 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7532 Use the correct breakpoint instruction on mips-irix.
7533 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
7534 containing the correct breakpoint instruction to use on mips-irix.
7535 Use it when the osabi is GDB_OSABI_IRIX.
7537 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7539 -Wunused warning in procfs.c (mips-irix only).
7540 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
7541 throughout instead of using praddset and prdelset respectively.
7543 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7545 GDB crash while stepping into function.
7546 * infrun.c (handle_inferior_event): Refetch the current frame
7547 after handling what.main_action, in case that pointer became
7550 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7552 Fix build failure of solaris-hosted cross debuggers.
7553 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
7555 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
7557 Fix build failure on sparc-solaris.
7558 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
7560 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7562 Move some symfile code into subroutines.
7563 * symfile.h (relative_addr_info_to_section_offsets)
7564 (addr_info_make_relative): New prototypes.
7565 * symfile.c (default_symfile_offsets): Move a part to ...
7566 (relative_addr_info_to_section_offsets): ... this new function.
7567 (default_symfile_offsets): Call it.
7568 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
7570 (addr_info_make_relative): ... this new function.
7572 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7574 Add from_tty to solib_create_inferior_hook.
7575 * infcmd.c (post_create_inferior): Move solib_add after
7576 solib_create_inferior_hook. Pass from_tty to
7577 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
7578 0 from_tty and comment why.
7579 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
7580 * linux-nat.c (linux_child_follow_fork): Likewise.
7581 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
7582 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
7584 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
7585 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
7586 * solib-null.c (null_solib_create_inferior_hook): Likewise.
7587 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
7588 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
7589 * solib-som.c (som_solib_create_inferior_hook): Likewise.
7590 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
7591 Pass it to svr4_so_ops.solib_create_inferior_hook.
7592 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
7594 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
7596 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
7598 * solib-target.c (solib_target_solib_create_inferior_hook): New
7600 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
7601 it to ops->solib_create_inferior_hook.
7602 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
7603 Move solib_add after solib_create_inferior_hook, call it now with
7604 from_tty as 0. New comment there.
7605 * solib.h (solib_create_inferior_hook): New parameter from_tty.
7606 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
7609 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
7612 * infrun.c (handle_inferior_event): Use get_thread_regcache
7613 with events ptid, not get_current_regcache.
7615 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7617 GDB crash with empty executable name (MinGW).
7618 * source.c (openp): Add assert that parameter string is not NULL.
7619 if parameter string is an empty string, then return with a failure
7622 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7624 Get rid of support for VAX Floats.
7625 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7626 (ada_vax_float_print_function): Delete.
7627 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7628 (ada_vax_float_print_function): Delete.
7629 * ada-typeprint.c (print_vax_floating_point_type): Delete.
7630 (ada_print_type): Remove support for VAX floats.
7631 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
7633 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7635 * stabsread.c (read_args): Handle zero arguments.
7637 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7639 Cannot find in-tree libiconv.a after reconfigure.
7640 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
7641 that we can use, then cache the path to this archive.
7642 * configure: Regenerate.
7644 2010-01-07 Stan Shebs <stan@codesourcery.com>
7646 Make tracepoint operations go through target vector.
7647 * target.h (enum trace_find_type): New enum.
7648 (struct target_ops): New fields to_trace_init,
7649 to_download_tracepoint, to_download_trace_state_variable,
7650 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
7651 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
7652 to_set_disconnected_tracing.
7653 (target_trace_init): New macro.
7654 (target_download_tracepoint): New macro.
7655 (target_download_trace_state_variable): New macro.
7656 (target_trace_start): New macro.
7657 (target_trace_set_readonly_regions): New macro.
7658 (target_get_trace_status): New macro.
7659 (target_trace_stop): New macro.
7660 (target_trace_find): New macro.
7661 (target_get_trace_state_variable_value): New macro.
7662 (target_set_disconnected_tracing): New macro.
7663 * target.c (update_current_target): Inherit and set defaults for
7664 tracepoint operations.
7665 * tracepoint.c (default_collect): Make globally visible.
7666 (target_is_remote): Remove, along with all calls.
7667 (tvariables_info): Call target_get_trace_state_variable_value.
7668 (remote_set_transparent_ranges): Remove.
7669 (trace_start_command): Call target_trace_init,
7670 target_download_tracepoint, etc.
7671 (download_tracepoint): Remove.
7672 (trace_stop_command): Simplify.
7673 (stop_tracing): Call target_trace_stop.
7674 (get_trace_status): Call target_get_trace_status.
7675 (trace_status_command): Add case for targets that cannot trace.
7676 (finish_tfind_command): Change to take numerical arguments, call
7678 (trace_find_command): Update call to finish_tfind_command.
7679 (trace_find_pc_command): Ditto.
7680 (trace_find_tracepoint_command): Ditto.
7681 (trace_find_line_command): Ditto.
7682 (trace_find_range_command): Ditto.
7683 (trace_find_outside_command): Ditto.
7684 (set_disconnected_tracing_value): Call
7685 target_set_disconnected_tracing.
7686 * remote.c: Add protocol encoding bits from tracepoint.c.
7687 (trace_error): Move from tracepoint.c.
7688 (remote_get_noisy_reply): Ditto.
7689 (free_actions_list_cleanup_wrapper): Ditto.
7690 (free_actions_list): Ditto.
7691 (remote_trace_init): New function.
7692 (remote_download_tracepoint): New function.
7693 (remote_download_trace_state_variable): New function.
7694 (remote_trace_set_readonly_regions): New function.
7695 (remote_trace_start): New function.
7696 (remote_get_trace_status): New function.
7697 (remote_trace_stop): New function.
7698 (remote_trace_find): New function.
7699 (remote_download_trace_state_variable): New function.
7700 (remote_set_disconnected_tracing): New function.
7701 (init_remote_ops): Add tracepoint operations.
7703 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
7705 2010-01-07 Tristan Gingold <gingold@adacore.com>
7707 * symfile.c (build_section_addr_info_from_objfile): New function.
7708 (symbol_file_add_separate): Don't use offsets from objfile but
7711 2010-01-06 Stan Shebs <stan@codesourcery.com>
7713 Support disconnected tracing.
7714 * infcmd.c (detach_command): Ask whether to stop tracing.
7715 * cli/cli-cmds.c (quit_command): Ditto.
7716 * breakpoint.h (struct breakpoint): New field number_on_target.
7717 * breakpoint.c (create_tracepoint_from_upload): New function.
7718 (get_tracepoint_by_number_on_target): New function.
7719 * remote.c (struct remote): New field disconnected_tracing.
7720 (remote_disconnected_tracing_feature): New function.
7721 (remote_protocol_features): Add DisconnectedTracing.
7722 (struct uploaded_tp): New struct.
7723 (uploaded_tps): New global.
7724 (get_uploaded_tp): New function.
7725 (find_matching_tracepoint): New function.
7726 (remote_get_tracing_state): New function.
7727 (remote_start_remote): Call it.
7728 * tracepoint.c (disconnected_tracing): New global.
7729 (trace_start_command): Initialize number_on_target.
7730 (stop_tracing): New function, split out from...
7731 (trace_stop_command): Call stop_tracing.
7732 (get_trace_status): New function, split out from...
7733 (trace_status_command): Call get_trace_status, add info on
7734 disconnection behavior.
7735 (disconnect_or_stop_tracing): New function.
7736 (finish_tfind_command): Translate from number on target.
7737 (trace_find_tracepoint_command): Translate to number on target.
7738 (send_disconnected_tracing_value): New function.
7739 (set_disconnected_tracing): New function.
7740 (_initialize_tracepoint): Add disconnected-tracing variable.
7741 * NEWS: Mention disconnected tracing.
7743 2010-01-06 Tristan Gingold <gingold@adacore.com>
7745 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
7746 parameter to main_objfile. Iterate on all separate debug objfiles.
7747 * symfile.h (symbol_file_add_separate)
7748 (find_separate_debug_file_by_debuglink): Remove parameter names.
7749 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
7750 (reread_symbols): Use free_objfile_separate_debug.
7751 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
7753 (objfile_separate_debug_iterate, add_separate_debug_objfile)
7754 (free_objfile_separate_debug): New prototypes.
7755 * objfiles.c (objfile_separate_debug_iterate): New function.
7756 (add_separate_debug_objfile, free_objfile_separate_debug): New
7758 (free_objfile): Use free_objfile_separate_debug. Adjust for
7759 multiple separate debug objfile.
7760 (objfile_has_symbols): Adjust comment. Iterate on all separate
7762 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
7764 (lookup_minimal_symbol_text): Ditto.
7765 (lookup_minimal_symbol_by_pc_name): Ditto.
7766 (lookup_minimal_symbol_solib_trampoline): Ditto.
7767 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
7770 2010-01-05 Stan Shebs <stan@codesourcery.com>
7772 Add fast tracepoints.
7773 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
7774 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
7775 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
7776 * breakpoint.c (tracepoint_type): New function.
7777 (ALL_TRACEPOINTS): Use it.
7778 (should_be_inserted): Ditto.
7779 (bpstat_check_location): Ditto.
7780 (print_one_breakpoint_location): Ditto.
7781 (user_settable_breakpoint): Ditto.
7782 (set_breakpoint_location_function): Ditto.
7783 (disable_breakpoints_in_shlibs): Ditto.
7784 (delete_trace_command): Ditto.
7785 (print_it_typical): Add bp_fast_tracepoint case.
7786 (bpstat_what): Ditto.
7787 (print_one_breakpoint_location): Ditto.
7788 (allocate_bp_location): Ditto.
7790 (breakpoint_re_set_one): Ditto.
7791 (disable_command): Ditto.
7792 (enable_command): Ditto.
7793 (check_fast_tracepoint_sals): New function.
7794 (break_command_really): Call it.
7795 (ftrace_command): New function.
7796 (_initialize_breakpoint): Add ftrace command.
7797 * gdbarch.sh (fast_tracepoint_valid_at): New.
7798 * gdbarch.h, gdbarch.c: Regenerate.
7799 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
7800 (i386_gdbarch_init): Use it.
7801 * remote.c (struct remote_state): New field fast_tracepoints.
7802 (PACKET_FastTracepoints): New packet config type.
7803 (remote_fast_tracepoint_feature): New function.
7804 (remote_protocol_features): Add FastTracepoints.
7805 (remote_supports_fast_tracepoints): New function.
7806 (_initialize_remote): Add FastTracepoints.
7807 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
7808 * NEWS: Mention fast tracepoints.
7810 2010-01-06 Joel Brobecker <brobecker@adacore.com>
7812 * gdb-gdb.py: New file.
7814 2010-01-05 Michael Snyder <msnyder@vmware.com>
7816 * infrun.c (handle_inferior_event): Fix typo in comment.
7818 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7820 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
7822 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7824 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7826 (s390-linux32-expedite): Define.
7827 (s390-linux64-expedite): Define.
7828 (s390x-linux64-expedite): Define.
7829 * features/s390-acr.xml: New file.
7830 * features/s390-fpr.xml: New file.
7831 * features/s390-core32.xml: New file.
7832 * features/s390-core64.xml: New file.
7833 * features/s390x-core64.xml: New file.
7834 * features/s390-linux32.xml: New file.
7835 * features/s390-linux64.xml: New file.
7836 * features/s390x-linux64.xml: New file.
7837 * features/s390-linux32.c: New generated file.
7838 * features/s390-linux64.c: New generated file.
7839 * features/s390x-linux64.c: New generated file.
7841 * regformats/s390-linux32.dat: New generated file.
7842 * regformats/s390-linux64.dat: New generated file.
7843 * regformats/s390x-linux64.dat: New generated file.
7844 * regformats/reg-s390.dat: Remove.
7845 * regformats/reg-s390x.dat: Remove.
7847 * s390-nat.c: Include "auxv.h" and <elf.h>.
7848 (HWCAP_S390_HIGH_GPRS): Define if undefined.
7849 (s390_target_wordsize): New function.
7850 (s390_auxv_parse): Likewise.
7851 (s390_get_hwcap): Likewise.
7852 (s390_read_description): Likewise.
7853 (_initialize_s390_nat): Install s390_auxv_parse and
7854 s390_read_description.
7856 * s390-tdep.c: Include "features/s390-linux32.c",
7857 "features/s390-linux64.c", and "features/s390x-linux64.c".
7858 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
7859 (s390_register_call_saved): New function.
7860 (s390_register_name): Remove.
7861 (s390_register_type): Remove.
7862 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
7863 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
7864 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
7865 (s390_pseudo_register_name): New function.
7866 (s390_pseudo_register_type): New function.
7867 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
7868 Handle full GPR pesudos and varying pseudo register numbers.
7869 (s390_pseudo_register_write): Likewise
7870 (s390x_pseudo_register_read): Remove.
7871 (s390x_pseudo_register_write): Likewise.
7872 (s390_register_group): Remove.
7873 (s390_pseudo_register_group): New function.
7874 (s390_regmap_gregset): Add GPR upper halves.
7875 (s390x_regmap_gregset): Likewise.
7876 (s390_regmap_fpregset): Likewise.
7877 (s390_regmap_upper): New global variable.
7878 (s390_upper_regset): New global variable.
7879 (s390_upper_regset_sections): New global variable.
7880 (s390_regset_from_core_section): Handle GPR upper halves.
7881 (s390_core_read_description): New function.
7882 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
7883 register information. Handle varying pseudo register numbers.
7884 (s390_backchain_frame_unwind_cache): Likewise.
7885 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
7886 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
7887 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
7888 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
7889 Handle varying pseudo register numbers.
7890 (s390_unwind_pc): Handle varying pseudo register numbers.
7891 (s390_dwarf2_prev_register): New function.
7892 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
7893 register information. Handle varying pseudo register numbers.
7894 Install s390_dwarf2_prev_register to unwind full GPRs.
7895 (s390_gdbarch_init): Handle target descriptions. Assign varying
7896 pseudo register numbers. Install s390_adjust_frame_regnum.
7897 (_initialize_s390_tdep): Initialize target descriptions.
7899 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
7900 (S390_NUM_REGS): Redefine to include upper half registers.
7901 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
7902 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
7903 (tdesc_s390_linux32): Add declaration.
7904 (tdesc_s390_linux64): Likewise.
7905 (tdesc_s390x_linux64): Likewise.
7907 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7909 * regset.h (struct core_regset_section): Add HUMAN_NAME.
7910 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
7911 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
7912 (ppc_linux_vmx_regset_sections): Likewise.
7913 (ppc_linux_fp_regset_sections): Likewise.
7915 * corelow.c (get_core_register_section): Constify arguments.
7916 (get_core_registers): Use gdbarch_core_regset_sections instead
7917 of hard-coded platform-specific register section names.
7919 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7921 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
7922 a register, assume the least-significant part is used.
7923 (write_pieced_value): Likewise.
7925 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7927 * printcmd.c: Include "arch-utils.h".
7928 (do_one_display): Re-parse expression if current architecture changed.
7930 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7931 Joel Brobecker <brobecker@adacore.com>
7933 * gdbtypes.c (check_typedef): New comment on type length.
7934 * value.c (allocate_value_lazy): Remove the unused atype variable. New
7935 comment on type length.
7936 (value_primitive_field): Keep the original TYPE value, new comment.
7938 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7940 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
7941 p_start. Change != comparisons to > and < comparisons.
7943 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7945 * cli/cli-script.c (process_next_line): Check P2 overrun.
7947 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7949 Update the copyright hearder to add year 2010 for most GDB files.
7951 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7953 Fix build failure in inf-ptrace.c.
7954 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
7956 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7958 * top.c (print_gdb_version): Update copyright year.
7960 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
7962 Fix break *FUN'address thread NUM.
7963 * ada-lex.l (task): Expand rule to also match the thread keyword.
7965 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7967 Fix break *FUN'address task NUM.
7968 * ada-lex.l (task): New rule.
7969 * ada-lang.c (valid_task_id): Make sure the Ada task list has
7970 been built before using it.
7972 For older changes see ChangeLog-2009.
7978 version-control: never